Skip to content

draw.io is a JavaScript, client-side editor for general diagramming.

26.0.7 release

David Bensonad0ee18526c6
diff --git a/ChangeLog b/ChangeLog
index 750406206..4d22fb9c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+22-JAN-2025: 26.0.7
+
+- Fixes for Atlas theme dark mode
+- Dark mode fixes
+- Changes raster images to SVG
+- Stroke width fix for some BPMN2 shapes. Ticket [jgraph/drawio#4861]
+- [conf cloud] Adds disableGithubEmbedding config to hide Github tab from embed editor [DID-14232]
+
15-JAN-2025: 26.0.6
- Various dark mode improvements
diff --git a/VERSION b/VERSION
index 6f1854ab5..3f7e68d3c 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-26.0.6
\ No newline at end of file
+26.0.7
\ No newline at end of file
diff --git a/src/main/webapp/clear.html b/src/main/webapp/clear.html
index 0ab7a7d1a..468d1661e 100644
--- a/src/main/webapp/clear.html
+++ b/src/main/webapp/clear.html
@@ -5,69 +5,79 @@
<meta charset="utf-8">
<title>Clear diagrams.net Cache</title>
<style type="text/css">
- @media only screen {
- body {
- font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans",
- Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
- background: light-dark(rgb(255, 255, 255), rgb(18, 18, 18));
- color: light-dark(rgb(18, 18, 18), white);
- margin: 10px 5% 10px 5%;
- color-scheme: dark;
- font-size: 16px;
- }
- textarea {
- box-sizing: border-box;
- font-family: monospace;
- color: lightgray;
- resize: vertical;
- font-size: inherit;
- border-radius: 4px;
- padding: 4px;
- }
- button {
- background: #1a4cad;
- border-radius: 4px;
- padding: 10px;
- border: none;
- }
- button {
- cursor: default;
- opacity: 0.9;
- }
- button:hover:not(:disabled) {
- opacity: 1;
- }
- button:active:not(:disabled) {
- filter:invert(1);
- }
- input {
- padding: 2px 6px;
- margin: 0 0 0 4px;
- font-size: inherit;
+ @media (prefers-color-scheme: dark) {
+ .adaptive-asset {
+ filter: invert(1);
}
}
+ body {
+ font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans",
+ Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
+ background: light-dark(rgb(255, 255, 255), rgb(18, 18, 18));
+ color: light-dark(rgb(18, 18, 18), white);
+ color-scheme: light dark;
+ font-size: 12px;
+ }
+ hr {
+ border: 0;
+ border-top: 1px solid light-dark(rgb(0, 0, 0), rgb(255, 255, 255));
+ }
+ textarea {
+ box-sizing: border-box;
+ font-family: monospace;
+ resize: vertical;
+ font-size: inherit;
+ border-radius: 4px;
+ padding: 4px;
+ }
+ button {
+ background: light-dark(#29b6f2, #003555);
+ border-radius: 4px;
+ padding: 10px;
+ border: none;
+ }
+ button {
+ cursor: default;
+ opacity: 0.9;
+ }
+ button:hover:not(:disabled) {
+ opacity: 1;
+ }
+ button:active:not(:disabled) {
+ filter:invert(1);
+ }
+ input {
+ padding: 2px 6px;
+ margin: 0 0 0 4px;
+ font-size: inherit;
+ }
</style>
</head>
<body>
- <div style="display:flex;opacity:0.9;align-items:center;padding:20px 0 10px 0;">
- <svg viewBox="24 26 68 68" style="width:28px;display:inline-block;">
- <line y2="72.394" x2="41.061" y1="43.384" x1="58.069" stroke-miterlimit="10" stroke-width="3.5528"
- stroke="currentColor" fill="none" />
- <line y2="72.394" x2="75.076" y1="43.384" x1="58.068" stroke-miterlimit="10" stroke-width="3.5008"
- stroke="currentColor" fill="none" />
- <path
- d="M52.773,77.084c0,1.954-1.599,3.553-3.553,3.553H36.999c-1.954,0-3.553-1.599-3.553-3.553v-9.379c0-1.954,1.599-3.553,3.553-3.553h12.222c1.954,0,3.553,1.599,3.553,3.553V77.084z"
- fill="currentColor" />
- <path
- d="M67.762,48.074c0,1.954-1.599,3.553-3.553,3.553H51.988c-1.954,0-3.553-1.599-3.553-3.553v-9.379c0-1.954,1.599-3.553,3.553-3.553H64.21c1.954,0,3.553,1.599,3.553,3.553V48.074z"
- fill="currentColor" />
- <path
- d="M82.752,77.084c0,1.954-1.599,3.553-3.553,3.553H66.977c-1.954,0-3.553-1.599-3.553-3.553v-9.379c0-1.954,1.599-3.553,3.553-3.553h12.222c1.954,0,3.553,1.599,3.553,3.553V77.084z"
- fill="currentColor" />
- </svg>
- <span style="font-family:Helvetica;font-weight:700;font-size:20px;margin-left:4px;">draw.io</span>
+ <div id="content" style="position:relative;display:block;left:50%;transform:translate(-50%,0);width:50%;padding-top:2%;text-align:center;">
+ <div style="display:flex;align-items:center;opacity:0.7;width:250px;min-width:130px;position:relative;left:50%;transform:translate(-50%,0);">
+ <svg viewBox="24 26 68 68" style="width:28px;display:inline-block;">
+ <line y2="72.394" x2="41.061" y1="43.384" x1="58.069" stroke-miterlimit="10" stroke-width="3.5528"
+ stroke="currentColor" fill="none" />
+ <line y2="72.394" x2="75.076" y1="43.384" x1="58.068" stroke-miterlimit="10" stroke-width="3.5008"
+ stroke="currentColor" fill="none" />
+ <path
+ d="M52.773,77.084c0,1.954-1.599,3.553-3.553,3.553H36.999c-1.954,0-3.553-1.599-3.553-3.553v-9.379c0-1.954,1.599-3.553,3.553-3.553h12.222c1.954,0,3.553,1.599,3.553,3.553V77.084z"
+ fill="currentColor" />
+ <path
+ d="M67.762,48.074c0,1.954-1.599,3.553-3.553,3.553H51.988c-1.954,0-3.553-1.599-3.553-3.553v-9.379c0-1.954,1.599-3.553,3.553-3.553H64.21c1.954,0,3.553,1.599,3.553,3.553V48.074z"
+ fill="currentColor" />
+ <path
+ d="M82.752,77.084c0,1.954-1.599,3.553-3.553,3.553H66.977c-1.954,0-3.553-1.599-3.553-3.553v-9.379c0-1.954,1.599-3.553,3.553-3.553h12.222c1.954,0,3.553,1.599,3.553,3.553V77.084z"
+ fill="currentColor" />
+ </svg>
+ <span style="font-family:Helvetica;font-weight:700;font-size:20px;margin-left:4px;">draw.io</span>
+ <a style="position:absolute;right:0px;" class="adaptive-asset" href="https://www.drawio.com/blog/clear-diagrams-net-cache" title="Help" target="_blank">
+ <img style="opacity:0.6;height:16px;width:16px;" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJub25lIiBkPSJNMCAwaDI0djI0SDB6Ii8+PHBhdGggZD0iTTExIDE4aDJ2LTJoLTJ2MnptMS0xNkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMCAxOGMtNC40MSAwLTgtMy41OS04LThzMy41OS04IDgtOCA4IDMuNTkgOCA4LTMuNTkgOC04IDh6bTAtMTRjLTIuMjEgMC00IDEuNzktNCA0aDJjMC0xLjEuOS0yIDItMnMyIC45IDIgMmMwIDItMyAxLjc1LTMgNWgyYzAtMi4yNSAzLTIuNSAzLTUgMC0yLjIxLTEuNzktNC00LTR6Ii8+PC9zdmc+" border="0">
+ </a>
+ </div>
+ <script src="js/app.min.js"></script>
+ <script src="js/clear.js"></script>
</div>
- <script src="js/app.min.js"></script>
- <script src="js/clear.js"></script>
</body>
</html>
diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js
index c1c0964fe..26e1b9916 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.0.6",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.0.7",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||
@@ -302,15 +302,16 @@ function(){this.scrollbars=mxUtils.hasScrollbars(a.container);this.scrollLeft=a.
this.getDy())}),this.delay)});this.isActive=function(){return active};this.getDx=function(){return Math.round(this.tdx)};this.getDy=function(){return Math.round(this.tdy)};this.start=function(){this.t0x=a.view.translate.x;this.t0y=a.view.translate.y;this.active=!0};this.panTo=function(c,d,e,f){this.active||this.start();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop;var g=a.container;this.dx=c+(null!=e?e:0)-g.scrollLeft-g.clientWidth;this.dx=0>this.dx&&Math.abs(this.dx)<
this.border?this.border+this.dx:this.handleMouseOut?Math.max(this.dx,0):0;0==this.dx&&(this.dx=c-g.scrollLeft,this.dx=0<this.dx&&this.dx<this.border?this.dx-this.border:this.handleMouseOut?Math.min(0,this.dx):0);this.dy=d+(null!=f?f:0)-g.scrollTop-g.clientHeight;this.dy=0>this.dy&&Math.abs(this.dy)<this.border?this.border+this.dy:this.handleMouseOut?Math.max(this.dy,0):0;0==this.dy&&(this.dy=d-g.scrollTop,this.dy=0<this.dy&&this.dy<this.border?this.dy-this.border:this.handleMouseOut?Math.min(0,this.dy):
0);0!=this.dx||0!=this.dy?(this.dx*=this.damper,this.dy*=this.damper,null==this.thread&&(this.thread=b())):null!=this.thread&&(window.clearInterval(this.thread),this.thread=null)};this.stop=function(){if(this.active)if(this.active=!1,null!=this.thread&&(window.clearInterval(this.thread),this.thread=null),this.tdy=this.tdx=0,this.scrollbars)a.panDx=0,a.panDy=0,a.fireEvent(new mxEventObject(mxEvent.PAN));else{var c=a.panDx,d=a.panDy;if(0!=c||0!=d)a.panGraph(0,0),a.view.setTranslate(this.t0x+c/a.view.scale,
-this.t0y+d/a.view.scale)}};this.destroy=function(){a.removeMouseListener(this.mouseListener);mxEvent.removeListener(document,"mouseup",this.mouseUpListener)}}mxPanningManager.prototype.damper=1/6;mxPanningManager.prototype.delay=10;mxPanningManager.prototype.handleMouseOut=!0;mxPanningManager.prototype.border=0;function mxPopupMenu(a){this.factoryMethod=a;null!=a&&this.init()}mxPopupMenu.prototype=new mxEventSource;mxPopupMenu.prototype.constructor=mxPopupMenu;
-mxPopupMenu.prototype.submenuImage=mxClient.imageBasePath+"/submenu.gif";mxPopupMenu.prototype.zIndex=10006;mxPopupMenu.prototype.factoryMethod=null;mxPopupMenu.prototype.useLeftButtonForPopup=!1;mxPopupMenu.prototype.enabled=!0;mxPopupMenu.prototype.itemCount=0;mxPopupMenu.prototype.autoExpand=!1;mxPopupMenu.prototype.smartSeparators=!1;mxPopupMenu.prototype.labels=!0;
+this.t0y+d/a.view.scale)}};this.destroy=function(){a.removeMouseListener(this.mouseListener);mxEvent.removeListener(document,"mouseup",this.mouseUpListener)}}mxPanningManager.prototype.damper=1/6;mxPanningManager.prototype.delay=10;mxPanningManager.prototype.handleMouseOut=!0;mxPanningManager.prototype.border=0;function mxPopupMenu(a){this.factoryMethod=a;null!=a&&this.init()}mxPopupMenu.prototype=new mxEventSource;mxPopupMenu.prototype.constructor=mxPopupMenu;mxPopupMenu.prototype.submenuImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDAwLTI4MHYtNDAwbDIwMCAyMDAtMjAwIDIwMFoiLz48L3N2Zz4=";
+mxPopupMenu.prototype.zIndex=10006;mxPopupMenu.prototype.factoryMethod=null;mxPopupMenu.prototype.useLeftButtonForPopup=!1;mxPopupMenu.prototype.enabled=!0;mxPopupMenu.prototype.itemCount=0;mxPopupMenu.prototype.autoExpand=!1;mxPopupMenu.prototype.smartSeparators=!1;mxPopupMenu.prototype.labels=!0;
mxPopupMenu.prototype.init=function(){this.table=document.createElement("table");this.table.className="mxPopupMenu";this.tbody=document.createElement("tbody");this.table.appendChild(this.tbody);this.div=document.createElement("div");this.div.className="mxPopupMenu";this.div.style.display="inline";this.div.style.zIndex=this.zIndex;this.div.appendChild(this.table);mxEvent.disableContextMenu(this.div)};mxPopupMenu.prototype.isEnabled=function(){return this.enabled};
mxPopupMenu.prototype.setEnabled=function(a){this.enabled=a};mxPopupMenu.prototype.isPopupTrigger=function(a){return a.isPopupTrigger()||this.useLeftButtonForPopup&&mxEvent.isLeftMouseButton(a.getEvent())};
mxPopupMenu.prototype.addItem=function(a,b,c,d,e,f,g,k){d=d||this;this.itemCount++;d.willAddSeparator&&(d.containsItems&&this.addSeparator(d,!0),d.willAddSeparator=!1);d.containsItems=!0;var l=document.createElement("tr");l.className="mxPopupMenuItem";var m=document.createElement("td");m.className="mxPopupMenuIcon";null!=b?(e=document.createElement("img"),e.src=b,m.appendChild(e)):null!=e&&(b=document.createElement("div"),b.className=e,m.appendChild(b));l.appendChild(m);this.labels&&(m=document.createElement("td"),
m.className="mxPopupMenuItem"+(null==f||f?"":" mxDisabled"),mxUtils.write(m,a),m.align="left",l.appendChild(m),a=document.createElement("td"),a.className="mxPopupMenuItem"+(null==f||f?"":" mxDisabled"),a.style.paddingRight="6px",a.style.textAlign="right",l.appendChild(a),null==d.div&&this.createSubmenu(d));d.tbody.appendChild(l);if(0!=g&&0!=f){var n=null;mxEvent.addGestureListeners(l,mxUtils.bind(this,function(p){this.eventReceiver=l;d.activeRow!=l&&d.activeRow!=d&&(null!=d.activeRow&&null!=d.activeRow.div.parentNode&&
this.hideSubmenu(d),null!=l.div&&(this.showSubmenu(d,l),d.activeRow=l));null!=document.selection&&8==document.documentMode&&(n=document.selection.createRange());mxEvent.consume(p)}),mxUtils.bind(this,function(p){d.activeRow!=l&&d.activeRow!=d&&(null!=d.activeRow&&null!=d.activeRow.div.parentNode&&this.hideSubmenu(d),this.autoExpand&&null!=l.div&&(this.showSubmenu(d,l),d.activeRow=l));k||(l.className="mxPopupMenuItemHover")}),mxUtils.bind(this,function(p){if(this.eventReceiver==l){d.activeRow!=l&&
-this.hideMenu();if(null!=n){try{n.select()}catch(q){}n=null}null!=c&&c(p)}this.eventReceiver=null;mxEvent.consume(p)}));k||mxEvent.addListener(l,"mouseout",mxUtils.bind(this,function(p){l.className="mxPopupMenuItem"}))}return l};mxPopupMenu.prototype.addCheckmark=function(a,b){a=a.firstChild.nextSibling;a.style.backgroundImage="url('"+b+"')";a.style.backgroundRepeat="no-repeat";a.style.backgroundPosition="2px 50%"};
-mxPopupMenu.prototype.createSubmenu=function(a){a.table=document.createElement("table");a.table.className="mxPopupMenu";a.tbody=document.createElement("tbody");a.table.appendChild(a.tbody);a.div=document.createElement("div");a.div.className="mxPopupMenu";a.div.style.position="absolute";a.div.style.display="inline";a.div.style.zIndex=this.zIndex;a.div.appendChild(a.table);var b=document.createElement("img");b.setAttribute("src",this.submenuImage);td=a.firstChild.nextSibling.nextSibling;td.appendChild(b)};
+this.hideMenu();if(null!=n){try{n.select()}catch(q){}n=null}null!=c&&c(p)}this.eventReceiver=null;mxEvent.consume(p)}));k||mxEvent.addListener(l,"mouseout",mxUtils.bind(this,function(p){l.className="mxPopupMenuItem"}))}return l};mxPopupMenu.prototype.addCheckmark=function(a,b){a=this.addImage(a.firstChild.nextSibling,b);a.style.marginTop="-2px";a.style.left="6px"};
+mxPopupMenu.prototype.addImage=function(a,b){var c=document.createElement("div");c.style.position="absolute";c.style.display="inline-block";c.style.backgroundRepeat="no-repeat";c.style.backgroundPosition="center center";c.style.backgroundImage="url("+b+")";c.style.backgroundSize="22px";c.style.height="22px";c.style.width="22px";a.appendChild(c);return c};
+mxPopupMenu.prototype.createSubmenu=function(a){a.table=document.createElement("table");a.table.className="mxPopupMenu";a.tbody=document.createElement("tbody");a.table.appendChild(a.tbody);a.div=document.createElement("div");a.div.className="mxPopupMenu";a.div.style.position="absolute";a.div.style.display="inline";a.div.style.zIndex=this.zIndex;a.div.appendChild(a.table);a=this.addImage(a.firstChild.nextSibling.nextSibling,this.submenuImage);a.style.marginLeft="-18px";a.style.marginTop="-11px"};
mxPopupMenu.prototype.showSubmenu=function(a,b){if(null!=b.div){b.div.style.left=a.div.offsetLeft+b.offsetLeft+b.offsetWidth-1+"px";b.div.style.top=a.div.offsetTop+b.offsetTop+"px";document.body.appendChild(b.div);var c=parseInt(b.div.offsetLeft),d=parseInt(b.div.offsetWidth),e=mxUtils.getDocumentScrollOrigin(document),f=document.documentElement;c+d>e.x+(document.body.clientWidth||f.clientWidth)&&(b.div.style.left=Math.max(0,a.div.offsetLeft-d+16)+"px");b.div.style.overflowY="auto";b.div.style.overflowX=
"hidden";b.div.style.maxHeight=Math.max(document.body.clientHeight,document.documentElement.clientHeight)-10+"px";mxUtils.fit(b.div)}};
mxPopupMenu.prototype.addSeparator=function(a,b){a=a||this;if(this.smartSeparators&&!b)a.willAddSeparator=!0;else if(null!=a.tbody){a.willAddSeparator=!1;b=document.createElement("tr");var c=document.createElement("td");c.className="mxPopupMenuIcon";c.style.padding="0 0 0 0px";b.appendChild(c);c=document.createElement("td");c.style.padding="0 0 0 0px";c.setAttribute("colSpan","2");var d=document.createElement("hr");d.setAttribute("size","1");c.appendChild(d);b.appendChild(c);a.tbody.appendChild(b)}};
@@ -1941,28 +1942,38 @@ Editor.colorDropperImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3
Editor.magnifyImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik03ODQtMTIwIDUzMi0zNzJxLTMwIDI0LTY5IDM4dC04MyAxNHEtMTA5IDAtMTg0LjUtNzUuNVQxMjAtNTgwcTAtMTA5IDc1LjUtMTg0LjVUMzgwLTg0MHExMDkgMCAxODQuNSA3NS41VDY0MC01ODBxMCA0NC0xNCA4M3QtMzggNjlsMjUyIDI1Mi01NiA1NlpNMzgwLTQwMHE3NSAwIDEyNy41LTUyLjVUNTYwLTU4MHEwLTc1LTUyLjUtMTI3LjVUMzgwLTc2MHEtNzUgMC0xMjcuNSA1Mi41VDIwMC01ODBxMCA3NSA1Mi41IDEyNy41VDM4MC00MDBaIi8+PC9zdmc+";
Editor.sendImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik0xMjAtMTYwdi02NDBsNzYwIDMyMC03NjAgMzIwWm04MC0xMjAgNDc0LTIwMC00NzQtMjAwdjE0MGwyNDAgNjAtMjQwIDYwdjE0MFptMCAwdi00MDAgNDAwWiIvPjwvc3ZnPg==";Editor.sparklesImage="data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyB3aWR0aD0iODAwcHgiIGhlaWdodD0iODAwcHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0iI2ZjZmY0NyIgZGF0YS1kYXJrcmVhZGVyLWlubGluZS1maWxsPSIiIHN0eWxlPSItLWRhcmtyZWFkZXItaW5saW5lLWZpbGw6ICNkNmQ4NTA7IC0tZGFya3JlYWRlci1pbmxpbmUtc3Ryb2tlOiAjZDZkODUwOyIgc3Ryb2tlPSIjZmNmZjQ3IiBkYXRhLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZT0iIj4KDTxnIGlkPSJTVkdSZXBvX2JnQ2FycmllciIgc3Ryb2tlLXdpZHRoPSIwIi8+Cg08ZyBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KDTxnIGlkPSJTVkdSZXBvX2ljb25DYXJyaWVyIj4KDTxwYXRoIGQ9Ik0yNTkuOTIsMjYyLjkxLDIxNi40LDE0OS43N2E5LDksMCwwLDAtMTYuOCwwTDE1Ni4wOCwyNjIuOTFhOSw5LDAsMCwxLTUuMTcsNS4xN0wzNy43NywzMTEuNmE5LDksMCwwLDAsMCwxNi44bDExMy4xNCw0My41MmE5LDksMCwwLDEsNS4xNyw1LjE3TDE5OS42LDQ5MC4yM2E5LDksMCwwLDAsMTYuOCwwbDQzLjUyLTExMy4xNGE5LDksMCwwLDEsNS4xNy01LjE3TDM3OC4yMywzMjguNGE5LDksMCwwLDAsMC0xNi44TDI2NS4wOSwyNjguMDhBOSw5LDAsMCwxLDI1OS45MiwyNjIuOTFaIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxOS45NjgiIGRhdGEtZGFya3JlYWRlci1pbmxpbmUtc3Ryb2tlPSIiIHN0eWxlPSItLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZTogIzE4MWExYjsiLz4KDTxwb2x5Z29uIHBvaW50cz0iMTA4IDY4IDg4IDE2IDY4IDY4IDE2IDg4IDY4IDEwOCA4OCAxNjAgMTA4IDEwOCAxNjAgODggMTA4IDY4IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxOS45NjgiIGRhdGEtZGFya3JlYWRlci1pbmxpbmUtc3Ryb2tlPSIiIHN0eWxlPSItLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZTogIzE4MWExYjsiLz4KDTxwb2x5Z29uIHBvaW50cz0iNDI2LjY3IDExNy4zMyA0MDAgNDggMzczLjMzIDExNy4zMyAzMDQgMTQ0IDM3My4zMyAxNzAuNjcgNDAwIDI0MCA0MjYuNjcgMTcwLjY3IDQ5NiAxNDQgNDI2LjY3IDExNy4zMyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMTkuOTY4IiBkYXRhLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZT0iIiBzdHlsZT0iLS1kYXJrcmVhZGVyLWlubGluZS1zdHJva2U6ICMxODFhMWI7Ii8+Cg08L2c+Cg08L3N2Zz4=";
Editor.arrowRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNNDAwLTI4MHYtNDAwbDIwMCAyMDAtMjAwIDIwMFoiLz48L3N2Zz4=";Editor.arrowDownImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNNDgwLTM2MCAyODAtNTYwaDQwMEw0ODAtMzYwWiIvPjwvc3ZnPg==";
-Editor.refreshImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDgwLTE2MHEtMTM0IDAtMjI3LTkzdC05My0yMjdxMC0xMzQgOTMtMjI3dDIyNy05M3E2OSAwIDEzMiAyOC41VDcyMC02OTB2LTExMGg4MHYyODBINTIwdi04MGgxNjhxLTMyLTU2LTg3LjUtODhUNDgwLTcyMHEtMTAwIDAtMTcwIDcwdC03MCAxNzBxMCAxMDAgNzAgMTcwdDE3MCA3MHE3NyAwIDEzOS00NHQ4Ny0xMTZoODRxLTI4IDEwNi0xMTQgMTczdC0xOTYgNjdaIi8+PC9zdmc+";
-Editor.checkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzgyLTI0MCAxNTQtNDY4bDU3LTU3IDE3MSAxNzEgMzY3LTM2NyA1NyA1Ny00MjQgNDI0WiIvPjwvc3ZnPg==";Editor.boldImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjcyLTIwMHYtNTYwaDIyMXE2NSAwIDEyMCA0MHQ1NSAxMTFxMCA1MS0yMyA3OC41VDYwMi00OTFxMjUgMTEgNTUuNSA0MXQzMC41IDkwcTAgODktNjUgMTI0LjVUNTAxLTIwMEgyNzJabTEyMS0xMTJoMTA0cTQ4IDAgNTguNS0yNC41VDU2Ni0zNzJxMC0xMS0xMC41LTM1LjVUNDk0LTQzMkgzOTN2MTIwWm0wLTIyOGg5M3EzMyAwIDQ4LTE3dDE1LTM4cTAtMjQtMTctMzl0LTQ0LTE1aC05NXYxMDlaIi8+PC9zdmc+";
+Editor.arrowUpImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJtMjgwLTQwMCAyMDAtMjAwIDIwMCAyMDBIMjgwWiIvPjwvc3ZnPg==";Editor.refreshImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDgwLTE2MHEtMTM0IDAtMjI3LTkzdC05My0yMjdxMC0xMzQgOTMtMjI3dDIyNy05M3E2OSAwIDEzMiAyOC41VDcyMC02OTB2LTExMGg4MHYyODBINTIwdi04MGgxNjhxLTMyLTU2LTg3LjUtODhUNDgwLTcyMHEtMTAwIDAtMTcwIDcwdC03MCAxNzBxMCAxMDAgNzAgMTcwdDE3MCA3MHE3NyAwIDEzOS00NHQ4Ny0xMTZoODRxLTI4IDEwNi0xMTQgMTczdC0xOTYgNjdaIi8+PC9zdmc+";
+Editor.checkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzgyLTI0MCAxNTQtNDY4bDU3LTU3IDE3MSAxNzEgMzY3LTM2NyA1NyA1Ny00MjQgNDI0WiIvPjwvc3ZnPg==";Editor.dockRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNTYwcTAtMzMgMjMuNS01Ni41VDIwMC04NDBoNTYwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NTYwcTAgMzMtMjMuNSA1Ni41VDc2MC0xMjBIMjAwWm0xMjAtODB2LTU2MEgyMDB2NTYwaDEyMFptODAgMGgzNjB2LTU2MEg0MDB2NTYwWm0tODAgMEgyMDBoMTIwWiIvPjwvc3ZnPg==";
+Editor.toFrontImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzYwLTI4MHEtMzMgMC01Ni41LTIzLjVUMjgwLTM2MHYtNDAwcTAtMzMgMjMuNS01Ni41VDM2MC04NDBoNDAwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NDAwcTAgMzMtMjMuNSA1Ni41VDc2MC0yODBIMzYwWm0wLTgwaDQwMHYtNDAwSDM2MHY0MDBaTTIwMC0yMDB2ODBxLTMzIDAtNTYuNS0yMy41VDEyMC0yMDBoODBabS04MC04MHYtODBoODB2ODBoLTgwWm0wLTE2MHYtODBoODB2ODBoLTgwWm0wLTE2MHYtODBoODB2ODBoLTgwWm0xNjAgNDgwdi04MGg4MHY4MGgtODBabTE2MCAwdi04MGg4MHY4MGgtODBabTE2MCAwdi04MGg4MHY4MGgtODBaIi8+PC9zdmc+";
+Editor.toBackImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNDgwaDgwdjQ4MGg0ODB2ODBIMjAwWm0xNjAtMjQwdjgwcS0zMyAwLTU2LjUtMjMuNVQyODAtMzYwaDgwWm0tODAtODB2LTgwaDgwdjgwaC04MFptMC0xNjB2LTgwaDgwdjgwaC04MFptODAtMTYwaC04MHEwLTMzIDIzLjUtNTYuNVQzNjAtODQwdjgwWm04MCA0ODB2LTgwaDgwdjgwaC04MFptMC00ODB2LTgwaDgwdjgwaC04MFptMTYwIDB2LTgwaDgwdjgwaC04MFptMCA0ODB2LTgwaDgwdjgwaC04MFptMTYwLTQ4MHYtODBxMzMgMCA1Ni41IDIzLjVUODQwLTc2MGgtODBabTAgNDAwaDgwcTAgMzMtMjMuNSA1Ni41VDc2MC0yODB2LTgwWm0wLTgwdi04MGg4MHY4MGgtODBabTAtMTYwdi04MGg4MHY4MGgtODBaIi8+PC9zdmc+";
+Editor.fillColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJtMjQ3LTkwNCA1Ny01NiAzNDMgMzQzcTIzIDIzIDIzIDU3dC0yMyA1N0w0NTctMzEzcS0yMyAyMy01NyAyM3QtNTctMjNMMTUzLTUwM3EtMjMtMjMtMjMtNTd0MjMtNTdsMTkwLTE5MS05Ni05NlptMTUzIDE1M0wyMDktNTYwaDM4Mkw0MDAtNzUxWm0zNjAgNDcxcS0zMyAwLTU2LjUtMjMuNVQ2ODAtMzYwcTAtMjEgMTIuNS00NXQyNy41LTQ1cTktMTIgMTktMjV0MjEtMjVxMTEgMTIgMjEgMjV0MTkgMjVxMTUgMjEgMjcuNSA0NXQxMi41IDQ1cTAgMzMtMjMuNSA1Ni41VDc2MC0yODBaTTgwIDB2LTE2MGg4MDBWMEg4MFoiLz48L3N2Zz4=";
+Editor.strokeColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAgMHYtMTYwaDgwMFYwSDgwWm0xNjAtMzIwaDU2bDMxMi0zMTEtMjktMjktMjgtMjgtMzExIDMxMnY1NlptLTgwIDgwdi0xNzBsNDQ4LTQ0N3ExMS0xMSAyNS41LTE3dDMwLjUtNnExNiAwIDMxIDZ0MjcgMThsNTUgNTZxMTIgMTEgMTcuNSAyNnQ1LjUgMzFxMCAxNS01LjUgMjkuNVQ3NzctNjg3TDMzMC0yNDBIMTYwWm01NjAtNTA0LTU2LTU2IDU2IDU2Wk02MDgtNjMxbC0yOS0yOS0yOC0yOCA1NyA1N1oiLz48L3N2Zz4=";
+Editor.fontColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAgMHYtMTYwaDgwMFYwSDgwWm0xNDAtMjgwIDIxMC01NjBoMTAwbDIxMCA1NjBoLTk2bC01MC0xNDRIMzY4bC01MiAxNDRoLTk2Wm0xNzYtMjI0aDE2OGwtODItMjMyaC00bC04MiAyMzJaIi8+PC9zdmc+";Editor.backgroundColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAgMHYtMTYwaDgwMFYwSDgwWm01MDQtNDgwTDQ4MC01ODQgMzIwLTQyNGwxMDMgMTA0IDE2MS0xNjBabS00Ny0xNjAgMTAzIDEwMyAxNjAtMTU5LTEwNC0xMDQtMTU5IDE2MFptLTg0LTI5IDIxNiAyMTYtMTg5IDE5MHEtMjQgMjQtNTYuNSAyNFQzNjctMjYzbC0yNyAyM0gxNDBsMTI2LTEyNXEtMjQtMjQtMjUtNTcuNXQyMy01Ny41bDE4OS0xODlabTAgMCAxODctMTg3cTI0LTI0IDU2LjUtMjR0NTYuNSAyNGwxMDQgMTAzcTI0IDI0IDI0IDU2LjVUODU3LTY0MEw2NjktNDUzIDQ1My02NjlaIi8+PC9zdmc+";
+Editor.shadowImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTgwcS0zMyAwLTU2LjUtMjMuNVQ4MC0xNjB2LTQ4MHEwLTMzIDIzLjUtNTYuNVQxNjAtNzIwaDgwdi04MHEwLTMzIDIzLjUtNTYuNVQzMjAtODgwaDQ4MHEzMyAwIDU2LjUgMjMuNVQ4ODAtODAwdjQ4MHEwIDMzLTIzLjUgNTYuNVQ4MDAtMjQwaC04MHY4MHEwIDMzLTIzLjUgNTYuNVQ2NDAtODBIMTYwWm0xNjAtMjQwaDQ4MHYtNDgwSDMyMHY0ODBaIi8+PC9zdmc+";
+Editor.boldImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjcyLTIwMHYtNTYwaDIyMXE2NSAwIDEyMCA0MHQ1NSAxMTFxMCA1MS0yMyA3OC41VDYwMi00OTFxMjUgMTEgNTUuNSA0MXQzMC41IDkwcTAgODktNjUgMTI0LjVUNTAxLTIwMEgyNzJabTEyMS0xMTJoMTA0cTQ4IDAgNTguNS0yNC41VDU2Ni0zNzJxMC0xMS0xMC41LTM1LjVUNDk0LTQzMkgzOTN2MTIwWm0wLTIyOGg5M3EzMyAwIDQ4LTE3dDE1LTM4cTAtMjQtMTctMzl0LTQ0LTE1aC05NXYxMDlaIi8+PC9zdmc+";
Editor.italicImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTIwMHYtMTAwaDE2MGwxMjAtMzYwSDMyMHYtMTAwaDQwMHYxMDBINTgwTDQ2MC0zMDBoMTQwdjEwMEgyMDBaIi8+PC9zdmc+";Editor.underlineImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHYtODBoNTYwdjgwSDIwMFptMjgwLTE2MHEtMTAxIDAtMTU3LTYzdC01Ni0xNjd2LTMzMGgxMDN2MzM2cTAgNTYgMjggOTF0ODIgMzVxNTQgMCA4Mi0zNXQyOC05MXYtMzM2aDEwM3YzMzBxMCAxMDQtNTYgMTY3dC0xNTcgNjNaIi8+PC9zdmc+";
Editor.strikethroughImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDg2LTE2MHEtNzYgMC0xMzUtNDV0LTg1LTEyM2w4OC0zOHExNCA0OCA0OC41IDc5dDg1LjUgMzFxNDIgMCA3Ni0yMHQzNC02NHEwLTE4LTctMzN0LTE5LTI3aDExMnE1IDE0IDcuNSAyOC41VDY5NC0zNDBxMCA4Ni02MS41IDEzM1Q0ODYtMTYwWk04MC00ODB2LTgwaDgwMHY4MEg4MFptNDAyLTMyNnE2NiAwIDExNS41IDMyLjVUNjc0LTY3NGwtODggMzlxLTktMjktMzMuNS01MlQ0ODQtNzEwcS00MSAwLTY4IDE4LjVUMzg2LTY0MGgtOTZxMi02OSA1NC41LTExNy41VDQ4Mi04MDZaIi8+PC9zdmc+";
-Editor.verticalTextImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjQwLTI0MHYtMjAwcS02NiAwLTExMy00N1Q4MC02MDBxMC02NiA0Ny0xMTN0MTEzLTQ3aDMyMHY4MGgtODB2NDQwaC04MHYtNDQwaC04MHY0NDBoLTgwWm00ODAgODBMNTYwLTMyMGw1Ni01NiA2NCA2M3YtNDQ3aDgwdjQ0N2w2NC02NCA1NiA1Ny0xNjAgMTYwWk0yNDAtNTIwdi0xNjBxLTMzIDAtNTYuNSAyMy41VDE2MC02MDBxMCAzMyAyMy41IDU2LjVUMjQwLTUyMFptMC04MFoiLz48L3N2Zz4=";
-Editor.alignLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDQ4MHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNDgwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";Editor.alignCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";
-Editor.alignRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";Editor.alignJustifyImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";
-Editor.alignTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTc2MHYtODBoNjQwdjgwSDE2MFptMjgwIDY0MHYtNDA4TDMzNi00MjRsLTU2LTU2IDIwMC0yMDAgMjAwIDIwMC01NiA1Ni0xMDQtMTA0djQwOGgtODBaIi8+PC9zdmc+";Editor.alignMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0xNjhsLTY0IDY0LTU2LTU2IDE2MC0xNjAgMTYwIDE2MC01NiA1Ni02NC02NHYxNjhoLTgwWk0xNjAtNDQwdi04MGg2NDB2ODBIMTYwWm0zMjAtMTIwTDMyMC03MjBsNTYtNTYgNjQgNjR2LTE2OGg4MHYxNjhsNjQtNjQgNTYgNTYtMTYwIDE2MFoiLz48L3N2Zz4=";
-Editor.alignBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTEyMHYtODBoNjQwdjgwSDE2MFptMzIwLTE2MEwyODAtNDgwbDU2LTU2IDEwNCAxMDR2LTQwOGg4MHY0MDhsMTA0LTEwNCA1NiA1Ni0yMDAgMjAwWiIvPjwvc3ZnPg==";Editor.alignHorizontalLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwMGg4MHY4MDBIODBabTE2MC0yMDB2LTEyMGg0MDB2MTIwSDI0MFptMC0yODB2LTEyMGg2NDB2MTIwSDI0MFoiLz48L3N2Zz4=";
-Editor.alignHorizontalCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0yMDBIMjQwdi0xMjBoMjAwdi0xNjBIMTIwdi0xMjBoMzIwdi0yMDBoODB2MjAwaDMyMHYxMjBINTIwdjE2MGgyMDB2MTIwSDUyMHYyMDBoLTgwWiIvPjwvc3ZnPg==";Editor.alignHorizontalRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAwLTgwdi04MDBoODB2ODAwaC04MFpNMzIwLTI4MHYtMTIwaDQwMHYxMjBIMzIwWk04MC01NjB2LTEyMGg2NDB2MTIwSDgwWiIvPjwvc3ZnPg==";
-Editor.alignVerticalTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTgwdi02NDBoMTIwdjY0MEgyODBabTI4MC0yNDB2LTQwMGgxMjB2NDAwSDU2MFpNODAtODAwdi04MGg4MDB2ODBIODBaIi8+PC9zdmc+";Editor.alignVerticalMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTEyMHYtMzIwSDgwdi04MGgyMDB2LTMyMGgxMjB2MzIwaDE2MHYtMjAwaDEyMHYyMDBoMjAwdjgwSDY4MHYyMDBINTYwdi0yMDBINDAwdjMyMEgyODBaIi8+PC9zdmc+";
-Editor.alignVerticalBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwaDgwMHY4MEg4MFptMjAwLTE2MHYtNjQwaDEyMHY2NDBIMjgwWm0yODAgMHYtNDAwaDEyMHY0MDBINTYwWiIvPjwvc3ZnPg==";Editor.subscriptImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTE2MHYtODBxMC0xNyAxMS41LTI4LjVUODAwLTI4MGg4MHYtNDBINzYwdi00MGgxMjBxMTcgMCAyOC41IDExLjVUOTIwLTMyMHY0MHEwIDE3LTExLjUgMjguNVQ4ODAtMjQwaC04MHY0MGgxMjB2NDBINzYwWm0tNTI1LTgwIDE4NS0yOTEtMTcyLTI2OWgxMDZsMTI0IDIwMGg0bDEyMy0yMDBoMTA3TDUzOS01MzFsMTg2IDI5MUg2MThMNDgyLTQ1N2gtNEwzNDItMjQwSDIzNVoiLz48L3N2Zz4=";
+Editor.verticalTextImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTE2MGgtODB2LTUyOGwtNDIgNDItNTYtNTYgMTM4LTEzOCAxNDAgMTM4LTU4IDU2LTQyLTQydjUyOFpNNTYwLTI3NiAxMjAtNDQwdi04MGw0NDAtMTY0djc2bC0xMTIgMzh2MTc4bDExMiA0MHY3NlpNMzg0LTQxNHYtMTMybC0xODIgNjR2NGwxODIgNjRaIi8+PC9zdmc+";Editor.alignLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDQ4MHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNDgwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";
+Editor.alignCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";Editor.alignRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";
+Editor.alignJustifyImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";Editor.alignTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTc2MHYtODBoNjQwdjgwSDE2MFptMjgwIDY0MHYtNDA4TDMzNi00MjRsLTU2LTU2IDIwMC0yMDAgMjAwIDIwMC01NiA1Ni0xMDQtMTA0djQwOGgtODBaIi8+PC9zdmc+";
+Editor.alignMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0xNjhsLTY0IDY0LTU2LTU2IDE2MC0xNjAgMTYwIDE2MC01NiA1Ni02NC02NHYxNjhoLTgwWk0xNjAtNDQwdi04MGg2NDB2ODBIMTYwWm0zMjAtMTIwTDMyMC03MjBsNTYtNTYgNjQgNjR2LTE2OGg4MHYxNjhsNjQtNjQgNTYgNTYtMTYwIDE2MFoiLz48L3N2Zz4=";Editor.alignBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTEyMHYtODBoNjQwdjgwSDE2MFptMzIwLTE2MEwyODAtNDgwbDU2LTU2IDEwNCAxMDR2LTQwOGg4MHY0MDhsMTA0LTEwNCA1NiA1Ni0yMDAgMjAwWiIvPjwvc3ZnPg==";
+Editor.alignHorizontalLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwMGg4MHY4MDBIODBabTE2MC0yMDB2LTEyMGg0MDB2MTIwSDI0MFptMC0yODB2LTEyMGg2NDB2MTIwSDI0MFoiLz48L3N2Zz4=";Editor.alignHorizontalCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0yMDBIMjQwdi0xMjBoMjAwdi0xNjBIMTIwdi0xMjBoMzIwdi0yMDBoODB2MjAwaDMyMHYxMjBINTIwdjE2MGgyMDB2MTIwSDUyMHYyMDBoLTgwWiIvPjwvc3ZnPg==";
+Editor.alignHorizontalRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAwLTgwdi04MDBoODB2ODAwaC04MFpNMzIwLTI4MHYtMTIwaDQwMHYxMjBIMzIwWk04MC01NjB2LTEyMGg2NDB2MTIwSDgwWiIvPjwvc3ZnPg==";Editor.alignVerticalTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTgwdi02NDBoMTIwdjY0MEgyODBabTI4MC0yNDB2LTQwMGgxMjB2NDAwSDU2MFpNODAtODAwdi04MGg4MDB2ODBIODBaIi8+PC9zdmc+";
+Editor.alignVerticalMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTEyMHYtMzIwSDgwdi04MGgyMDB2LTMyMGgxMjB2MzIwaDE2MHYtMjAwaDEyMHYyMDBoMjAwdjgwSDY4MHYyMDBINTYwdi0yMDBINDAwdjMyMEgyODBaIi8+PC9zdmc+";Editor.alignVerticalBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwaDgwMHY4MEg4MFptMjAwLTE2MHYtNjQwaDEyMHY2NDBIMjgwWm0yODAgMHYtNDAwaDEyMHY0MDBINTYwWiIvPjwvc3ZnPg==";
+Editor.subscriptImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTE2MHYtODBxMC0xNyAxMS41LTI4LjVUODAwLTI4MGg4MHYtNDBINzYwdi00MGgxMjBxMTcgMCAyOC41IDExLjVUOTIwLTMyMHY0MHEwIDE3LTExLjUgMjguNVQ4ODAtMjQwaC04MHY0MGgxMjB2NDBINzYwWm0tNTI1LTgwIDE4NS0yOTEtMTcyLTI2OWgxMDZsMTI0IDIwMGg0bDEyMy0yMDBoMTA3TDUzOS01MzFsMTg2IDI5MUg2MThMNDgyLTQ1N2gtNEwzNDItMjQwSDIzNVoiLz48L3N2Zz4=";
Editor.superscriptImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTYwMHYtODBxMC0xNyAxMS41LTI4LjVUODAwLTcyMGg4MHYtNDBINzYwdi00MGgxMjBxMTcgMCAyOC41IDExLjVUOTIwLTc2MHY0MHEwIDE3LTExLjUgMjguNVQ4ODAtNjgwaC04MHY0MGgxMjB2NDBINzYwWk0yMzUtMTYwbDE4NS0yOTEtMTcyLTI2OWgxMDZsMTI0IDIwMGg0bDEyMy0yMDBoMTA3TDUzOS00NTFsMTg2IDI5MUg2MThMNDgyLTM3N2gtNEwzNDItMTYwSDIzNVoiLz48L3N2Zz4=";
Editor.orderedListImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTgwdi02MGgxMDB2LTMwaC02MHYtNjBoNjB2LTMwSDEyMHYtNjBoMTIwcTE3IDAgMjguNSAxMS41VDI4MC0yODB2NDBxMCAxNy0xMS41IDI4LjVUMjQwLTIwMHExNyAwIDI4LjUgMTEuNVQyODAtMTYwdjQwcTAgMTctMTEuNSAyOC41VDI0MC04MEgxMjBabTAtMjgwdi0xMTBxMC0xNyAxMS41LTI4LjVUMTYwLTUxMGg2MHYtMzBIMTIwdi02MGgxMjBxMTcgMCAyOC41IDExLjVUMjgwLTU2MHY3MHEwIDE3LTExLjUgMjguNVQyNDAtNDUwaC02MHYzMGgxMDB2NjBIMTIwWm02MC0yODB2LTE4MGgtNjB2LTYwaDEyMHYyNDBoLTYwWm0xODAgNDQwdi04MGg0ODB2ODBIMzYwWm0wLTI0MHYtODBoNDgwdjgwSDM2MFptMC0yNDB2LTgwaDQ4MHY4MEgzNjBaIi8+PC9zdmc+";
Editor.unorderedListImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzYwLTIwMHYtODBoNDgwdjgwSDM2MFptMC0yNDB2LTgwaDQ4MHY4MEgzNjBabTAtMjQwdi04MGg0ODB2ODBIMzYwWk0yMDAtMTYwcS0zMyAwLTU2LjUtMjMuNVQxMjAtMjQwcTAtMzMgMjMuNS01Ni41VDIwMC0zMjBxMzMgMCA1Ni41IDIzLjVUMjgwLTI0MHEwIDMzLTIzLjUgNTYuNVQyMDAtMTYwWm0wLTI0MHEtMzMgMC01Ni41LTIzLjVUMTIwLTQ4MHEwLTMzIDIzLjUtNTYuNVQyMDAtNTYwcTMzIDAgNTYuNSAyMy41VDI4MC00ODBxMCAzMy0yMy41IDU2LjVUMjAwLTQwMFptMC0yNDBxLTMzIDAtNTYuNS0yMy41VDEyMC03MjBxMC0zMyAyMy41LTU2LjVUMjAwLTgwMHEzMyAwIDU2LjUgMjMuNVQyODAtNzIwcTAgMzMtMjMuNSA1Ni41VDIwMC02NDBaIi8+PC9zdmc+";
Editor.indentImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMzIwLTE2MHYtODBoNDAwdjgwSDQ0MFptMC0xNjB2LTgwaDQwMHY4MEg0NDBabTAtMTYwdi04MGg0MDB2ODBINDQwWk0xMjAtNzYwdi04MGg3MjB2ODBIMTIwWm0wIDQ0MHYtMzIwbDE2MCAxNjAtMTYwIDE2MFoiLz48L3N2Zz4=";Editor.outdentImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMzIwLTE2MHYtODBoNDAwdjgwSDQ0MFptMC0xNjB2LTgwaDQwMHY4MEg0NDBabTAtMTYwdi04MGg0MDB2ODBINDQwWk0xMjAtNzYwdi04MGg3MjB2ODBIMTIwWm0xNjAgNDQwTDEyMC00ODBsMTYwLTE2MHYzMjBaIi8+PC9zdmc+";
-Editor.removeFormatImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJtNTI4LTU0Ni05My05My0xMjEtMTIxaDQ4NnYxMjBINTY4bC00MCA5NFpNNzkyLTU2IDQ2MC0zODhsLTgwIDE4OEgyNDlsMTE5LTI4MEw1Ni03OTJsNTYtNTYgNzM2IDczNi01NiA1NloiLz48L3N2Zz4=";Editor.codeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzIwLTI0MCA4MC00ODBsMjQwLTI0MCA1NyA1Ny0xODQgMTg0IDE4MyAxODMtNTYgNTZabTMyMCAwLTU3LTU3IDE4NC0xODQtMTgzLTE4MyA1Ni01NiAyNDAgMjQwLTI0MCAyNDBaIi8+PC9zdmc+";
-Editor.linkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTI4MEgyODBxLTgzIDAtMTQxLjUtNTguNVQ4MC00ODBxMC04MyA1OC41LTE0MS41VDI4MC02ODBoMTYwdjgwSDI4MHEtNTAgMC04NSAzNXQtMzUgODVxMCA1MCAzNSA4NXQ4NSAzNWgxNjB2ODBaTTMyMC00NDB2LTgwaDMyMHY4MEgzMjBabTIwMCAxNjB2LTgwaDE2MHE1MCAwIDg1LTM1dDM1LTg1cTAtNTAtMzUtODV0LTg1LTM1SDUyMHYtODBoMTYwcTgzIDAgMTQxLjUgNTguNVQ4ODAtNDgwcTAgODMtNTguNSAxNDEuNVQ2ODAtMjgwSDUyMFoiLz48L3N2Zz4=";
+Editor.removeFormatImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJtNTI4LTU0Ni05My05My0xMjEtMTIxaDQ4NnYxMjBINTY4bC00MCA5NFpNNzkyLTU2IDQ2MC0zODhsLTgwIDE4OEgyNDlsMTE5LTI4MEw1Ni03OTJsNTYtNTYgNzM2IDczNi01NiA1NloiLz48L3N2Zz4=";Editor.textFormatImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTIwMHYtODBoNTYwdjgwSDIwMFptNzYtMTYwIDE2NC00NDBoODBsMTY0IDQ0MGgtNzZsLTM4LTExMkgzOTJsLTQwIDExMmgtNzZabTEzOC0xNzZoMTMybC02NC0xODJoLTRsLTY0IDE4MloiLz48L3N2Zz4=";
+Editor.codeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzIwLTI0MCA4MC00ODBsMjQwLTI0MCA1NyA1Ny0xODQgMTg0IDE4MyAxODMtNTYgNTZabTMyMCAwLTU3LTU3IDE4NC0xODQtMTgzLTE4MyA1Ni01NiAyNDAgMjQwLTI0MCAyNDBaIi8+PC9zdmc+";Editor.linkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTI4MEgyODBxLTgzIDAtMTQxLjUtNTguNVQ4MC00ODBxMC04MyA1OC41LTE0MS41VDI4MC02ODBoMTYwdjgwSDI4MHEtNTAgMC04NSAzNXQtMzUgODVxMCA1MCAzNSA4NXQ4NSAzNWgxNjB2ODBaTTMyMC00NDB2LTgwaDMyMHY4MEgzMjBabTIwMCAxNjB2LTgwaDE2MHE1MCAwIDg1LTM1dDM1LTg1cTAtNTAtMzUtODV0LTg1LTM1SDUyMHYtODBoMTYwcTgzIDAgMTQxLjUgNTguNVQ4ODAtNDgwcTAgODMtNTguNSAxNDEuNVQ2ODAtMjgwSDUyMFoiLz48L3N2Zz4=";
Editor.imageImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNTYwcTAtMzMgMjMuNS01Ni41VDIwMC04NDBoNTYwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NTYwcTAgMzMtMjMuNSA1Ni41VDc2MC0xMjBIMjAwWm0wLTgwaDU2MHYtNTYwSDIwMHY1NjBabTQwLTgwaDQ4MEw1NzAtNDgwIDQ1MC0zMjBsLTkwLTEyMC0xMjAgMTYwWm0tNDAgODB2LTU2MCA1NjBaIi8+PC9zdmc+";
Editor.horizontalRuleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTQ0MHYtODBoNjQwdjgwSDE2MFoiLz48L3N2Zz4=";Editor.tableImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNTYwcTAtMzMgMjMuNS01Ni41VDIwMC04NDBoNTYwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NTYwcTAgMzMtMjMuNSA1Ni41VDc2MC0xMjBIMjAwWm0yNDAtMjQwSDIwMHYxNjBoMjQwdi0xNjBabTgwIDB2MTYwaDI0MHYtMTYwSDUyMFptLTgwLTgwdi0xNjBIMjAwdjE2MGgyNDBabTgwIDBoMjQwdi0xNjBINTIwdjE2MFpNMjAwLTY4MGg1NjB2LTgwSDIwMHY4MFoiLz48L3N2Zz4=";
-Editor.autosizeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDAtNDB2LTI0MGg4MHYtNDAwSDQwdi0yNDBoMjQwdjgwaDQwMHYtODBoMjQwdjI0MGgtODB2NDAwaDgwdjI0MEg2ODB2LTgwSDI4MHY4MEg0MFptMjQwLTE2MGg0MDB2LTgwaDgwdi00MDBoLTgwdi04MEgyODB2ODBoLTgwdjQwMGg4MHY4MFptMzItMTIwIDEzNi0zNjBoNjRsMTM2IDM2MGgtNjJsLTMyLTkySDQwOGwtMzIgOTJoLTY0Wm0xMTQtMTQ0aDEwOGwtNTItMTUwaC00bC01MiAxNTBaTTEyMC03NjBoODB2LTgwaC04MHY4MFptNjQwIDBoODB2LTgwaC04MHY4MFptMCA2NDBoODB2LTgwaC04MHY4MFptLTY0MCAwaDgwdi04MGgtODB2ODBabTgwLTY0MFptNTYwIDBabTAgNTYwWm0tNTYwIDBaIi8+PC9zdmc+";
-Editor.checkmarkImage="data:image/gif;base64,R0lGODlhFQAVAMQfAGxsbHx8fIqKioaGhvb29nJycvr6+sDAwJqamltbW5OTk+np6YGBgeTk5Ly8vJiYmP39/fLy8qWlpa6ursjIyOLi4vj4+N/f3+3t7fT09LCwsHZ2dubm5r6+vmZmZv///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IFdpbmRvd3MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OEY4NTZERTQ5QUFBMTFFMUE5MTVDOTM5MUZGMTE3M0QiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OEY4NTZERTU5QUFBMTFFMUE5MTVDOTM5MUZGMTE3M0QiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4Rjg1NkRFMjlBQUExMUUxQTkxNUM5MzkxRkYxMTczRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4Rjg1NkRFMzlBQUExMUUxQTkxNUM5MzkxRkYxMTczRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAB8ALAAAAAAVABUAAAVI4CeOZGmeaKqubKtylktSgCOLRyLd3+QJEJnh4VHcMoOfYQXQLBcBD4PA6ngGlIInEHEhPOANRkaIFhq8SuHCE1Hb8Lh8LgsBADs=";
+Editor.spacingImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjQwLTgwIDgwLTI0MGwxNjAtMTYwIDU3IDU2LTY0IDY0aDQ5NGwtNjMtNjQgNTYtNTYgMTYwIDE2MEw3MjAtODBsLTU3LTU2IDY0LTY0SDIzM2w2MyA2NC01NiA1NlptMzYtMzYwIDE2NC00NDBoODBsMTY0IDQ0MGgtNzZsLTM4LTExMkgzOTJsLTQwIDExMmgtNzZabTEzOC0xNzZoMTMybC02NC0xODJoLTRsLTY0IDE4MloiLz48L3N2Zz4=";Editor.addColumnLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAwLTIwMHYtNTYwSDU2MHY1NjBoMjQwWm0tNjQwIDgwdi0xNjBoODB2ODBoMjQwdi01NjBIMjQwdjgwaC04MHYtMTYwaDcyMHY3MjBIMTYwWm0zMjAtMzYwWm04MCAwaC04MCA4MFptMCAwWk0xNjAtMzYwdi04MEg4MHYtODBoODB2LTgwaDgwdjgwaDgwdjgwaC04MHY4MGgtODBaIi8+PC9zdmc+";
+Editor.addColumnRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTc2MHY1NjBoMjQwdi01NjBIMTYwWk04MC0xMjB2LTcyMGg3MjB2MTYwaC04MHYtODBINDgwdjU2MGgyNDB2LTgwaDgwdjE2MEg4MFptNDAwLTM2MFptLTgwIDBoODAtODBabTAgMFptMzIwIDEyMHYtODBoLTgwdi04MGg4MHYtODBoODB2ODBoODB2ODBoLTgwdjgwaC04MFoiLz48L3N2Zz4=";Editor.removeColumnImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIiB0cmFuc2Zvcm09InJvdGF0ZSg5MCkgc2NhbGUoMSwtMSkiPjxwYXRoIGQ9Ik01NjAtMjgwSDEyMHYtNDAwaDcyMHYxMjBoLTgwdi00MEgyMDB2MjQwaDM2MHY4MFptLTM2MC04MHYtMjQwIDI0MFptNDQwIDEwNCA4NC04NC04NC04NCA1Ni01NiA4NCA4NCA4NC04NCA1NiA1Ni04MyA4NCA4MyA4NC01NiA1Ni04NC04My04NCA4My01Ni01NloiLz48L3N2Zz4=";
+Editor.addRowAboveImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTE2MGg1NjB2LTI0MEgyMDB2MjQwWm02NDAgODBIMTIwdi03MjBoMTYwdjgwaC04MHYyNDBoNTYwdi0yNDBoLTgwdi04MGgxNjB2NzIwWk00ODAtNDgwWm0wIDgwdi04MCA4MFptMCAwWm0tNDAtMjQwdi04MGgtODB2LTgwaDgwdi04MGg4MHY4MGg4MHY4MGgtODB2ODBoLTgwWiIvPjwvc3ZnPg==";Editor.addRowBelowImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTU2MGg1NjB2LTI0MEgyMDB2MjQwWm0tODAgNDAwdi03MjBoNzIwdjcyMEg2ODB2LTgwaDgwdi0yNDBIMjAwdjI0MGg4MHY4MEgxMjBabTM2MC0zMjBabTAtODB2ODAtODBabTAgMFpNNDQwLTgwdi04MGgtODB2LTgwaDgwdi04MGg4MHY4MGg4MHY4MGgtODB2ODBoLTgwWiIvPjwvc3ZnPg==";
+Editor.removeRowImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNTYwLTI4MEgxMjB2LTQwMGg3MjB2MTIwaC04MHYtNDBIMjAwdjI0MGgzNjB2ODBabS0zNjAtODB2LTI0MCAyNDBabTQ0MCAxMDQgODQtODQtODQtODQgNTYtNTYgODQgODQgODQtODQgNTYgNTYtODMgODQgODMgODQtNTYgNTYtODQtODMtODQgODMtNTYtNTZaIi8+PC9zdmc+";Editor.autosizeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDAtNDB2LTI0MGg4MHYtNDAwSDQwdi0yNDBoMjQwdjgwaDQwMHYtODBoMjQwdjI0MGgtODB2NDAwaDgwdjI0MEg2ODB2LTgwSDI4MHY4MEg0MFptMjQwLTE2MGg0MDB2LTgwaDgwdi00MDBoLTgwdi04MEgyODB2ODBoLTgwdjQwMGg4MHY4MFptMzItMTIwIDEzNi0zNjBoNjRsMTM2IDM2MGgtNjJsLTMyLTkySDQwOGwtMzIgOTJoLTY0Wm0xMTQtMTQ0aDEwOGwtNTItMTUwaC00bC01MiAxNTBaTTEyMC03NjBoODB2LTgwaC04MHY4MFptNjQwIDBoODB2LTgwaC04MHY4MFptMCA2NDBoODB2LTgwaC04MHY4MFptLTY0MCAwaDgwdi04MGgtODB2ODBabTgwLTY0MFptNTYwIDBabTAgNTYwWm0tNTYwIDBaIi8+PC9zdmc+";
+Editor.checkmarkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjJweCIgaGVpZ2h0PSIxOHB4IiB2ZXJzaW9uPSIxLjEiPjxwYXRoIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQgMCkiIGQ9Ik03LjE4MSwxNS4wMDdhMSwxLDAsMCwxLS43OTMtMC4zOTFMMy4yMjIsMTAuNUExLDEsMCwxLDEsNC44MDgsOS4yNzRMNy4xMzIsMTIuM2w2LjA0NC04Ljg2QTEsMSwwLDEsMSwxNC44Myw0LjU2OWwtNi44MjMsMTBhMSwxLDAsMCwxLS44LjQzN0g3LjE4MVoiIGZpbGw9IiMwMDAwMDAiLz48L3N2Zz4=";
Editor.roughFillStyles=[{val:"auto",dispName:"Auto"},{val:"hachure",dispName:"Hachure"},{val:"solid",dispName:"Solid"},{val:"zigzag",dispName:"ZigZag"},{val:"cross-hatch",dispName:"Cross Hatch"},{val:"dashed",dispName:"Dashed"},{val:"zigzag-line",dispName:"ZigZag Line"}];
Editor.fillStyles=[{val:"auto",dispName:"Auto"},{val:"hatch",dispName:"Hatch"},{val:"solid",dispName:"Solid"},{val:"dots",dispName:"Dots"},{val:"cross-hatch",dispName:"Cross Hatch"},{val:"dashed",dispName:"Dashed"},{val:"zigzag-line",dispName:"ZigZag Line"}];Editor.themes=[];Editor.ctrlKey=mxClient.IS_MAC?"Cmd":"Ctrl";Editor.hintOffset=20;Editor.shapePickerHoverDelay=300;Editor.fitWindowBorders=null;Editor.popupsAllowed=null!=window.urlParams?"1"!=urlParams.noDevice:!0;Editor.simpleLabels=!1;
Editor.enableNativeCipboard=window==window.top&&!mxClient.IS_FF&&null!=navigator.clipboard;Editor.sketchMode=!1;Editor.darkMode=!1;Editor.currentTheme=uiTheme;Editor.darkColor="#121212";Editor.darkColorVar="--ge-dark-color";Editor.fontSizeUnit="px";Editor.pageSizeUnit=mxConstants.INCHES;Editor.isDarkMode=function(){return Editor.darkMode};Editor.isPngDataUrl=function(a){return null!=a&&"data:image/png;"==a.substring(0,15)};
@@ -1992,12 +2003,12 @@ Editor.prototype.setModified=function(a){this.modified=a};Editor.prototype.setFi
Editor.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 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&&
+function Dialog(a,b,e,f,h,d,g,m,p,k,u){this.editorUi=a;var x=p?57:0,z=e,C=f,E=p?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 T=a.createDiv(q?"geTransDialog":"geDialog");h=this.getPosition(D,I,e,f);D=h.x;I=h.y;T.style.width=e+"px";T.style.height=f+"px";T.style.left=D+"px";T.style.top=I+"px";T.style.zIndex=this.zIndex;T.appendChild(b);document.body.appendChild(T);!m&&b.clientHeight>T.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 K=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(U){K=!0}),null,mxUtils.bind(this,function(U){K&&(a.hideDialog(!0),K=!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||
+h&&document.body.appendChild(this.bg);var T=a.createDiv(p?"geTransDialog":"geDialog");h=this.getPosition(D,I,e,f);D=h.x;I=h.y;T.style.width=e+"px";T.style.height=f+"px";T.style.left=D+"px";T.style.top=I+"px";T.style.zIndex=this.zIndex;T.appendChild(b);document.body.appendChild(T);!m&&b.clientHeight>T.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-x+"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 K=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(U){K=!0}),null,mxUtils.bind(this,function(U){K&&(a.hideDialog(!0),K=!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 Q=mxUtils.getDocumentScrollOrigin(document);U+=Q.x;Y+=Q.y;Editor.inlineFullscreen||
-null==a.embedViewport||(Y+=a.embedViewport.y,U+=a.embedViewport.x);T.style.left=U+"px";T.style.top=Y+"px";T.style.width=e+"px";T.style.height=f+"px";!m&&b.clientHeight>T.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=T;a.editor.fireEvent(new mxEventObject("showDialog"))}
+null==a.embedViewport||(Y+=a.embedViewport.y,U+=a.embedViewport.x);T.style.left=U+"px";T.style.top=Y+"px";T.style.width=e+"px";T.style.height=f+"px";!m&&b.clientHeight>T.clientHeight-E&&(b.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=Y+14+"px",this.dialogImg.style.left=U+e+38-x+"px")});null!=a.embedViewport?a.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=g;this.container=T;a.editor.fireEvent(new mxEventObject("showDialog"))}
Dialog.prototype.zIndex=mxPopupMenu.prototype.zIndex-2;
Dialog.prototype.noColorImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkEzRDlBMUUwODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkEzRDlBMUUxODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QTNEOUExREU4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QTNEOUExREY4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xh3fmAAAABlBMVEX////MzMw46qqDAAAAGElEQVR42mJggAJGKGAYIIGBth8KAAIMAEUQAIElnLuQAAAAAElFTkSuQmCC":IMAGE_PATH+
"/nocolor.png";Dialog.prototype.closeImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAQMAAADaX5RTAAAABlBMVEV7mr3///+wksspAAAAAnRSTlP/AOW3MEoAAAAdSURBVAgdY9jXwCDDwNDRwHCwgeExmASygSL7GgB12QiqNHZZIwAAAABJRU5ErkJggg==":IMAGE_PATH+"/close.png";
@@ -2005,92 +2016,92 @@ Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKA
"/clear.gif";Dialog.prototype.bgOpacity=80;Dialog.prototype.getDocumentSize=function(){return mxUtils.getDocumentSize()};Dialog.prototype.getPosition=function(a,b){return new mxPoint(a,b)};
Dialog.prototype.close=function(a,b){if(null!=this.onDialogClose){if(0==this.onDialogClose(a,b))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&&
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){this.create(a,b,e)};
-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 T=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,T-=D.y*G.height):
-E=!0;E=PrintDialog.createPrintPreview(e,I,G,0,L,T,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,
+var ErrorDialog=function(a,b,e,f,h,d,g,m,p,k,u){p=null!=p?p:!0;var x=document.createElement("div");x.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);x.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);x.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(){p&&a.hideDialog();null!=h&&h()});C.className="geBtn";e.appendChild(C);null!=g&&(f=mxUtils.button(g,function(){p&&a.hideDialog();null!=m&&m()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){C.focus()};x.appendChild(e);this.container=x},PrintDialog=function(a,b,e){this.create(a,b,e)};
+PrintDialog.prototype.create=function(a){function b(C){var E=g.checked||k.checked,D=parseInt(x.value)/100;isNaN(D)&&(D=1,x.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 T=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,T-=D.y*G.height):
+E=!0;E=PrintDialog.createPrintPreview(e,I,G,0,L,T,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 p=document.createElement("span");mxUtils.write(p," "+mxResources.get("fitPage"));
+m.appendChild(p);mxEvent.addListener(p,"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);p=document.createElement("span");mxUtils.write(p," "+mxResources.get("posterPrint")+":");m.appendChild(p);mxEvent.addListener(p,
"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;
-m.style.paddingTop="20px";m.setAttribute("align","right");q=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});q.className="geBtn";a.editor.cancelFirst&&m.appendChild(q);if(PrintDialog.previewEnabled){var z=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();b(!1)});z.className="geBtn";m.appendChild(z)}z=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();b(!0)});z.className="geBtn gePrimaryBtn";m.appendChild(z);a.editor.cancelFirst||
-m.appendChild(q);d.appendChild(m);h.appendChild(d);f.appendChild(h);this.container=f};PrintDialog.printPreview=function(a){try{null!=a.wnd&&window.setTimeout(function(){a.wnd.focus();a.wnd.print();a.wnd.close()},500)}catch(b){}};
-PrintDialog.createPrintPreview=function(a,b,e,f,h,d,g){b=new mxPrintPreview(a,b,e,f,h,d);b.title=mxResources.get("preview");b.addPageCss=!mxClient.IS_SF;b.printBackgroundImage=!0;b.autoOrigin=g;g=a.background;if(null==g||""==g||g==mxConstants.NONE)g="#ffffff";b.backgroundColor=g;var m=b.isTextLabel;b.isTextLabel=function(k){return"geHint"==!k.className&&m.apply(this,arguments)};var q=b.getLinkForCellState;b.getLinkForCellState=function(k){return a.getAbsoluteUrl(q.apply(this,arguments))};return b};
+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 x=document.createElement("input");x.setAttribute("value","100 %");x.setAttribute("size","5");x.style.width="50px";m.appendChild(x);d.appendChild(m);h.appendChild(d);d=document.createElement("tr");m=document.createElement("td");m.colSpan=2;
+m.style.paddingTop="20px";m.setAttribute("align","right");p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});p.className="geBtn";a.editor.cancelFirst&&m.appendChild(p);if(PrintDialog.previewEnabled){var z=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();b(!1)});z.className="geBtn";m.appendChild(z)}z=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();b(!0)});z.className="geBtn gePrimaryBtn";m.appendChild(z);a.editor.cancelFirst||
+m.appendChild(p);d.appendChild(m);h.appendChild(d);f.appendChild(h);this.container=f};PrintDialog.printPreview=function(a){try{null!=a.wnd&&window.setTimeout(function(){a.wnd.focus();a.wnd.print();a.wnd.close()},500)}catch(b){}};
+PrintDialog.createPrintPreview=function(a,b,e,f,h,d,g){b=new mxPrintPreview(a,b,e,f,h,d);b.title=mxResources.get("preview");b.addPageCss=!mxClient.IS_SF;b.printBackgroundImage=!0;b.autoOrigin=g;g=a.background;if(null==g||""==g||g==mxConstants.NONE)g="#ffffff";b.backgroundColor=g;var m=b.isTextLabel;b.isTextLabel=function(k){return"geHint"==!k.className&&m.apply(this,arguments)};var p=b.getLinkForCellState;b.getLinkForCellState=function(k){return a.getAbsoluteUrl(p.apply(this,arguments))};return b};
PrintDialog.previewEnabled=!0;
-var PageSetupDialog=function(a){function b(){var D=w;null!=D&&null!=D.originalSrc&&(D=a.createImageForPageLink(D.originalSrc,null));null!=D&&null!=D.src?(u.style.backgroundImage="url("+D.src+")",u.style.display="inline-block"):(u.style.backgroundImage="",u.style.display="none");u.style.backgroundColor="";null!=z&&z!=mxConstants.NONE&&(u.style.backgroundColor=z,u.style.display="inline-block")}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var h=document.createElement("tbody");
+var PageSetupDialog=function(a){function b(){var D=x;null!=D&&null!=D.originalSrc&&(D=a.createImageForPageLink(D.originalSrc,null));null!=D&&null!=D.src?(u.style.backgroundImage="url("+D.src+")",u.style.display="inline-block"):(u.style.backgroundImage="",u.style.display="none");u.style.backgroundColor="";null!=z&&z!=mxConstants.NONE&&(u.style.backgroundColor=z,u.style.display="inline-block")}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("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")+":");
+g=document.createElement("td");g.style.whiteSpace="nowrap";var p=document.createElement("input");p.setAttribute("type","number");p.setAttribute("min","0");p.style.width="40px";p.style.marginLeft="6px";p.value=e.getGridSize();g.appendChild(p);mxEvent.addListener(p,"change",function(){var D=parseInt(p.value);p.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,I,L,T){I||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=T);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&&
+u.style.width="64px";u.style.cursor="pointer";u.style.padding="4px";var x=e.backgroundImage,z=e.background,C=e.shadowVisible,E=function(D){a.showBackgroundImageDialog(function(G,I,L,T){I||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),x=G,C=T);z=L;b()},x,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(p.value);isNaN(D)||e.gridSize===D||e.setGridSize(D);D=new ChangePageSetup(a,z,x,m.get());D.ignoreColor=e.background==z;D.ignoreImage=(null!=e.backgroundImage?e.backgroundImage.src:null)===(null!=x?x.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);
+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 p=document.createElement("span");p.style.width="100px";mxUtils.write(p,mxResources.get("landscape"));
+m.appendChild(p);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 x=document.createElement("input");x.setAttribute("size","7");x.setAttribute("title",mxResources.get("height"));x.style.textAlign="right";k.appendChild(x);
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={},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 K=0;K<I.length;K++){var U=I[K];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 T=function(K,U){K=G[g.value];null!=K.format?(u.value=Editor.toUnit(d.checked?K.format.height:K.format.width,z.value),w.value=Editor.toUnit(d.checked?K.format.width:K.format.height,z.value),k.style.display="none",
-m.style.display=""):(m.style.display="none",k.style.display="");K=parseFloat(u.value);if(isNaN(K)||0>=K)u.value=Editor.toUnit(e.width,z.value);K=parseFloat(w.value);if(isNaN(K)||0>=K)w.value=Editor.toUnit(e.height,z.value);K=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(u.value),z.value)),Math.floor(Editor.fromUnit(parseFloat(w.value),z.value)));U||K.width==e.width&&K.height==e.height||(e=K,null!=f&&f(e))};mxEvent.addListener(b,"click",function(K){h.checked=!0;T(K);mxEvent.consume(K)});
-mxEvent.addListener(q,"click",function(K){d.checked=!0;T(K);mxEvent.consume(K)});mxEvent.addListener(u,"blur",T);mxEvent.addListener(u,"click",T);mxEvent.addListener(w,"blur",T);mxEvent.addListener(w,"click",T);mxEvent.addListener(d,"change",T);mxEvent.addListener(h,"change",T);mxEvent.addListener(g,"change",function(K){T(K,"custom"==g.value);mxEvent.consume(K)});mxEvent.addListener(z,"change",function(K){u.value=Editor.toUnit(Editor.fromUnit(u.value,Editor.pageSizeUnit),z.value);w.value=Editor.toUnit(Editor.fromUnit(w.value,
-Editor.pageSizeUnit),z.value);Editor.pageSizeUnit=z.value;T(K,!0);mxEvent.consume(K)});T(null,!0);return{set:function(K){e=K;L(null,null,!0)},get:function(){return e},widthInput:u,heightInput:w}};
+(u.value=Editor.toUnit(e.width,z.value),x.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 T=function(K,U){K=G[g.value];null!=K.format?(u.value=Editor.toUnit(d.checked?K.format.height:K.format.width,z.value),x.value=Editor.toUnit(d.checked?K.format.width:K.format.height,z.value),k.style.display="none",
+m.style.display=""):(m.style.display="none",k.style.display="");K=parseFloat(u.value);if(isNaN(K)||0>=K)u.value=Editor.toUnit(e.width,z.value);K=parseFloat(x.value);if(isNaN(K)||0>=K)x.value=Editor.toUnit(e.height,z.value);K=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(u.value),z.value)),Math.floor(Editor.fromUnit(parseFloat(x.value),z.value)));U||K.width==e.width&&K.height==e.height||(e=K,null!=f&&f(e))};mxEvent.addListener(b,"click",function(K){h.checked=!0;T(K);mxEvent.consume(K)});
+mxEvent.addListener(p,"click",function(K){d.checked=!0;T(K);mxEvent.consume(K)});mxEvent.addListener(u,"blur",T);mxEvent.addListener(u,"click",T);mxEvent.addListener(x,"blur",T);mxEvent.addListener(x,"click",T);mxEvent.addListener(d,"change",T);mxEvent.addListener(h,"change",T);mxEvent.addListener(g,"change",function(K){T(K,"custom"==g.value);mxEvent.consume(K)});mxEvent.addListener(z,"change",function(K){u.value=Editor.toUnit(Editor.fromUnit(u.value,Editor.pageSizeUnit),z.value);x.value=Editor.toUnit(Editor.fromUnit(x.value,
+Editor.pageSizeUnit),z.value);Editor.pageSizeUnit=z.value;T(K,!0);mxEvent.consume(K)});T(null,!0);return{set:function(K){e=K;L(null,null,!0)},get:function(){return e},widthInput:u,heightInput:x}};
PageSetupDialog.getFormats=function(){return[{key:"letter",title:'US-Letter (8,5" x 11")',format:mxConstants.PAGE_FORMAT_LETTER_PORTRAIT},{key:"legal",title:'US-Legal (8,5" x 14")',format:new mxRectangle(0,0,850,1400)},{key:"tabloid",title:'US-Tabloid (11" x 17")',format:new mxRectangle(0,0,1100,1700)},{key:"executive",title:'US-Executive (7" x 10")',format:new mxRectangle(0,0,700,1E3)},{key:"a0",title:"A0 (841 mm x 1189 mm)",format:new mxRectangle(0,0,3300,4681)},{key:"a1",title:"A1 (594 mm x 841 mm)",
format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",format:new mxRectangle(0,0,1654,2336)},{key:"a3",title:"A3 (297 mm x 420 mm)",format:new mxRectangle(0,0,1169,1654)},{key:"a4",title:"A4 (210 mm x 297 mm)",format:mxConstants.PAGE_FORMAT_A4_PORTRAIT},{key:"a5",title:"A5 (148 mm x 210 mm)",format:new mxRectangle(0,0,583,827)},{key:"a6",title:"A6 (105 mm x 148 mm)",format:new mxRectangle(0,0,413,583)},{key:"a7",title:"A7 (74 mm x 105 mm)",format:new mxRectangle(0,0,291,413)},
{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!=
+var FilenameDialog=function(a,b,e,f,h,d,g,m,p,k,u){p=null!=p?p:!0;var x=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))p&&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 I=z.parentNode;if(null!=I){var L=null;mxEvent.addListener(I,"dragleave",function(T){null!=L&&(L.style.backgroundColor="",L=null);T.stopPropagation();T.preventDefault()});mxEvent.addListener(I,"dragover",mxUtils.bind(this,function(T){null==L&&(!mxClient.IS_IE||10<document.documentMode)&&(L=D,L.style.backgroundColor=
"#ebf2f9");T.stopPropagation();T.preventDefault()}));mxEvent.addListener(I,"drop",mxUtils.bind(this,function(T){null!=L&&(L.style.backgroundColor="",L=null);0<=mxUtils.indexOf(T.dataTransfer.types,"text/uri-list")&&(D.value=decodeURIComponent(T.dataTransfer.getData("text/uri-list")),G.click());T.stopPropagation();T.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(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;
+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);x.appendChild(z);this.container=x};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"in
-document?(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)}))};
-(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!=
+document?(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 p=e[m].extension,k=null;"drawio"!=p&&(k=p,p=".drawio."+p);if(d.substring(d.length-p.length-1)=="."+p||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(p){null==p&&(p=window.event);return null!=p&&a.isSelectionAllowed(p)}))};
+(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 p=g.container.firstChild;null!=p&&p.nodeType!=mxConstants.NODETYPE_ELEMENT;)p=p.nextSibling;null!=p&&(this.backgroundPageShape=this.createBackgroundPageShape(m),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
+this.backgroundPageShape.init(g.container),p.style.position="absolute",g.container.insertBefore(this.backgroundPageShape.node,p),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="";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,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,!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,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(T){if(null!=T){for(var K=T==this.horizontalPageBreaks?D:G,U=0;U<=K;U++){var Y=T==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),Math.round(C.y+(U+1)*E.height)),new mxPoint(Math.round(I),
+mxGraphView.prototype.validateBackgroundStyles=function(g,m,p){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,x=mxUtils.getLightDarkColor(k.defaultPageBorderColor).cssText,z=null!=u&&this.gridColor!=u.toLowerCase()?this.gridColor:"#ffffff",C="none",E="";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;p=null!=p?p-this.translate.y*this.scale:0;var G=k.gridSize*this.scale*this.gridSteps,I=m%G;G=p%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+p,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=x,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,!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 p=this.graph.gridSize*this.scale*(null!=m?m:
+1);p<this.minGridSize;)p*=2;m=this.gridSteps*p;for(var k=[],u=1;u<this.gridSteps;u++){var x=u*p;k.push("M 0 "+x+" L "+m+" "+x+" M "+x+" 0 L "+x+" "+m)}g=mxUtils.getLightDarkColor(g);p="color-scheme: light dark;";mxClient.IS_SF&&(p="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+p+'" 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 p=this.view.canvas;null!=
+p.ownerSVGElement&&(p=p.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";p.style.backgroundPosition=k}};mxGraph.prototype.updatePageBreaks=function(g,m,p){var k=this.view.scale,u=this.view.translate,x=this.pageFormat,z=k*this.pageScale,C=this.view.getBackgroundPageBounds();m=C.width;p=C.height;var E=new mxRectangle(k*u.x,k*
+u.y,x.width*z,x.height*z),D=(g=g&&Math.min(E.width,E.height)>this.minPageBreakDist)?Math.ceil(p/E.height)-1:0,G=g?Math.ceil(m/E.width)-1:0,I=C.x+m,L=C.y+p;null==this.horizontalPageBreaks&&0<D&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);g=mxUtils.bind(this,function(T){if(null!=T){for(var K=T==this.horizontalPageBreaks?D:G,U=0;U<=K;U++){var Y=T==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!=T[U]?(T[U].points=Y,T[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(),T[U]=Y)}for(U=K;U<T.length;U++)null!=T[U]&&T[U].destroy();T.splice(K,T.length-K)}});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==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=
-g+"px",this.view.backgroundPageShape.node.style.marginTop=m+"px")};var h=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(g,m,q,k,u,w){var z=h.apply(this,arguments);null==w||w||mxEvent.addListener(z,"mousedown",function(C){mxEvent.consume(C)});return z};var d=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(g,m,q){var k=this.graph.model.getParent(g);if(m){var u=this.graph.model.isEdge(g)?null:this.graph.getCellGeometry(g);
-u=!this.graph.model.isEdge(k)&&!this.graph.isSiblingSelected(g)&&(null!=u&&u.relative||!this.graph.isContainer(k)||this.graph.isPart(g))}else if(u=d.apply(this,arguments),this.graph.isTableCell(g)||this.graph.isTableRow(g))u=k,this.graph.isTable(u)||(u=this.graph.model.getParent(u)),u=!this.graph.selectionCellsHandler.isHandled(u)||this.graph.isCellSelected(u)&&this.graph.isToggleEvent(q.getEvent())||this.graph.isCellSelected(g)&&!this.graph.isToggleEvent(q.getEvent())||this.graph.isTableCell(g)&&
-this.graph.isCellSelected(k);return u};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(g){g=g.getCell();for(var m=this.graph.getModel(),q=m.getParent(g),k=this.graph.view.getState(q),u=this.graph.isCellSelected(g);null!=k&&(m.isVertex(q)||m.isEdge(q));){var w=this.graph.isCellSelected(q);u=u||w;if(w||!u&&(this.graph.isTableCell(g)||this.graph.isTableRow(g)))g=q;q=m.getParent(q)}return g}})();EditorUi=function(a,b,e){mxEventSource.call(this);this.destroyFunctions=[];this.editor=a||new Editor;this.container=b||document.body;var f=this,h=this.editor.graph;h.lightbox=e;var d=h.getGraphBounds;h.getGraphBounds=function(){var M=d.apply(this,arguments),W=this.backgroundImage;if(null!=W&&null!=W.width&&null!=W.height){var aa=this.view.translate,ia=this.view.scale;M=mxRectangle.fromRectangle(M);M.add(new mxRectangle((aa.x+W.x)*ia,(aa.y+W.y)*ia,W.width*ia,W.height*ia))}return M};h.useCssTransforms&&
-(this.lazyZoomDelay=0);mxPopupMenu.prototype.submenuImage=Graph.createSvgImage(10,10,'<path d="M3,1L8,5L3,9Z" fill="light-dark(#3F3F3F, #C0C0C0)"/>').src;Editor.checkmarkImage=Graph.createSvgImage(22,18,'<path transform="translate(4 0)" d="M7.181,15.007a1,1,0,0,1-.793-0.391L3.222,10.5A1,1,0,1,1,4.808,9.274L7.132,12.3l6.044-8.86A1,1,0,1,1,14.83,4.569l-6.823,10a1,1,0,0,1-.8.437H7.181Z" fill="light-dark(#3F3F3F, #C0C0C0)"/>').src;this.selectionStateListener=mxUtils.bind(this,function(M,W){this.clearSelectionState()});
-h.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);h.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);h.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);h.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);h.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){this.footerHeight=0;h.isEnabled=function(){return!1};h.panningHandler.isForcePanningEvent=function(M){for(var W=
-M.getSource();null!=W&&W!=h.container;){if("foreignObject"===W.nodeName||"text"===W.nodeName)return!1;W=W.parentNode}return!mxEvent.isPopupTrigger(M.getEvent())};var g=h.panningHandler.start;h.panningHandler.start=function(){g.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!h.standalone){var m=!1,q=!1;this.setDefaultStyle=function(M){try{h.getModel().isEdge(M)?q=h.pasteEdgeStyle=!1:m=!1;var W=h.getCellStyle(M,!1),aa=[],ia=[],oa;for(oa in W)aa.push(W[oa]),
-ia.push(oa);h.getModel().isEdge(M)?h.currentEdgeStyle={}:h.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",ia,"values",aa,"cells",[M],"force",!0));h.getModel().isEdge(M)?q=h.pasteEdgeStyle=!0:m=!0}catch(qa){this.handleError(qa)}};this.clearDefaultStyle=function(){h.currentEdgeStyle=mxUtils.clone(h.defaultEdgeStyle);h.currentVertexStyle=mxUtils.clone(h.defaultVertexStyle);m=q=h.pasteEdgeStyle=!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",
-[]))};h.addListener("cellsInserted",function(M,W){h.pasteCellStyles(h.includeDescendants(W.getProperty("cells")))});h.addListener("textInserted",function(M,W){h.pasteCellStyles(W.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var k=mxUtils.bind(this,function(M){null==M&&(M=window.event);return h.isEditing()||null!=M&&this.isSelectionAllowed(M)});this.container!=document.body||this.editor.chromeless&&!this.editor.editable||(this.menubarContainer.onselectstart=k,this.menubarContainer.onmousedown=
-k,this.toolbarContainer.onselectstart=k,this.toolbarContainer.onmousedown=k,this.diagramContainer.onselectstart=k,this.diagramContainer.onmousedown=k,this.sidebarContainer.onselectstart=k,this.sidebarContainer.onmousedown=k,this.formatContainer.onselectstart=k,this.formatContainer.onmousedown=k,this.footerContainer.onselectstart=k,this.footerContainer.onmousedown=k,null!=this.tabContainer&&(this.tabContainer.onselectstart=k),mxClient.IS_IOS&&(b=function(){var M=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var W=
-navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{M=[parseInt(W[1],10),parseInt(W[2],10),parseInt(W[3]||0,10)]}catch(aa){}}return M}(),null!=b&&16<=b[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.formatContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.footerContainer.style,
-"userSelect","none"),null!=this.tabContainer&&mxUtils.setPrefixedStyle(this.tabContainer.style,"userSelect","none"))));!this.editor.chromeless||this.editor.editable?(b=function(M){if(null!=M){var W=mxEvent.getSource(M);if("A"==W.nodeName)for(;null!=W;){if("geHint"==W.className)return!0;W=W.parentNode}}return k(M)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?mxEvent.addListener(this.diagramContainer,"contextmenu",b):this.diagramContainer.oncontextmenu=b):h.panningHandler.usePopupTrigger=
-!1;h.init(this.diagramContainer);mxClient.IS_SVG&&null!=h.view.getDrawPane()&&(b=h.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=h.graphHandler){var u=h.graphHandler.start;h.graphHandler.start=function(){null!=f.hoverIcons&&f.hoverIcons.reset();u.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,function(M){var W=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(M)-
-W.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(M)-W.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var w=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(M,W){return f.isSpaceDown()||w.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(M){16==M.which?this.shiftDown=!0:32!=M.which||h.isEditing()?mxEvent.isConsumed(M)||27!=M.keyCode||this.hideDialog(null,
-!0):(this.spaceDown=!0,this.hoverIcons.reset(),h.container.style.cursor="move",h.isEditing()||mxEvent.getSource(M)!=h.container||mxEvent.consume(M))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(M){h.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var z=h.panningHandler.isForcePanningEvent;h.panningHandler.isForcePanningEvent=function(M){return z.apply(this,arguments)||
-f.isSpaceDown()||mxEvent.isMouseEvent(M.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(M.getEvent()))&&(!mxEvent.isControlDown(M.getEvent())&&mxEvent.isRightMouseButton(M.getEvent())||mxEvent.isMiddleMouseButton(M.getEvent()))};var C=h.cellEditor.isStopEditingEvent;h.cellEditor.isStopEditingEvent=function(M){return C.apply(this,arguments)||13==M.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(M)||mxClient.IS_MAC&&mxEvent.isMetaDown(M)||mxClient.IS_SF&&mxEvent.isShiftDown(M))};var E=
-h.isZoomWheelEvent;h.isZoomWheelEvent=function(){return f.isSpaceDown()||E.apply(this,arguments)};var D=!1,G=null,I=null,L=null,T=mxUtils.bind(this,function(){if(null!=this.toolbar&&D!=h.cellEditor.isContentEditing()){for(var M=this.toolbar.container.firstChild,W=[];null!=M;){var aa=M.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,M)&&(M.parentNode.removeChild(M),W.push(M));M=aa}M=this.toolbar.fontMenu;aa=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=M;I=aa;L=W}}),K=h.cellEditor.startEditing;h.cellEditor.startEditing=function(){K.apply(this,arguments);T();if(h.cellEditor.isContentEditing()){var M=!1,W=function(){M||(M=!0,window.setTimeout(function(){var aa=h.getSelectedEditingElement();null!=aa&&(aa=mxUtils.getCurrentStyle(aa),null!=aa&&null!=f.toolbar&&(f.toolbar.setFontName(mxUtils.getCssFontFamily(aa.fontFamily)),
-f.toolbar.setFontSize(parseInt(aa.fontSize))));M=!1},0))};mxEvent.addListener(h.cellEditor.textarea,"input",W);mxEvent.addListener(h.cellEditor.textarea,"touchend",W);mxEvent.addListener(h.cellEditor.textarea,"mouseup",W);mxEvent.addListener(h.cellEditor.textarea,"keyup",W);W()}};var U=h.cellEditor.stopEditing;h.cellEditor.stopEditing=function(M,W){try{U.apply(this,arguments),T()}catch(aa){f.handleError(aa)}};h.container.setAttribute("tabindex","0");h.container.style.cursor="default";if(window.self===
-window.top&&null!=h.container.parentNode)try{h.container.focus()}catch(M){}var Y=h.fireMouseEvent;h.fireMouseEvent=function(M,W,aa){try{M==mxEvent.MOUSE_DOWN&&this.container.focus(),Y.apply(this,arguments)}catch(ia){f.handleError(ia)}};var Q=h.foldCells;h.foldCells=function(M,W,aa,ia,oa){try{Q.apply(this,arguments)}catch(qa){f.handleError(qa)}};h.popupMenuHandler.autoExpand=!0;null!=this.menus&&(h.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(M,W,aa){this.menus.createPopupMenu(M,W,aa)}));
-mxEvent.addGestureListeners(document,mxUtils.bind(this,function(M){h.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};h.connectionHandler.addListener(mxEvent.CONNECT,function(M,W){var aa=[W.getProperty("cell")];W.getProperty("terminalInserted")&&(aa.push(W.getProperty("terminal")),window.setTimeout(function(){null!=f.hoverIcons&&f.hoverIcons.update(h.view.getState(aa[aa.length-1]))},0));h.pasteCellStyles(aa)});this.addListener("styleChanged",
-mxUtils.bind(this,function(M,W){M=W.getProperty("force");(this.updateDefaultStyle||M)&&h.copyCellStyles(W.getProperty("cells"),W.getProperty("keys"),W.getProperty("values"),h.currentVertexStyle,h.currentEdgeStyle,m,q);null!=this.toolbar&&(this.toolbar.setFontName(h.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(h.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0].className=
-"orthogonalEdgeStyle"==h.currentEdgeStyle.edgeStyle&&"1"==h.currentEdgeStyle.curved?"geSprite geSprite-curved":"straight"==h.currentEdgeStyle.edgeStyle||"none"==h.currentEdgeStyle.edgeStyle||null==h.currentEdgeStyle.edgeStyle?"geSprite geSprite-straight":"entityRelationEdgeStyle"==h.currentEdgeStyle.edgeStyle?"geSprite geSprite-entity":"elbowEdgeStyle"==h.currentEdgeStyle.edgeStyle?"geSprite geSprite-"+("vertical"==h.currentEdgeStyle.elbow?"verticalelbow":"horizontalelbow"):"isometricEdgeStyle"==
-h.currentEdgeStyle.edgeStyle?"geSprite geSprite-"+("vertical"==h.currentEdgeStyle.elbow?"verticalisometric":"horizontalisometric"):"geSprite geSprite-orthogonal"),null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0].className="link"==h.currentEdgeStyle.shape?"geSprite geSprite-linkedge":"flexArrow"==h.currentEdgeStyle.shape?"geSprite geSprite-arrow":"arrow"==h.currentEdgeStyle.shape?"geSprite geSprite-simplearrow":"geSprite geSprite-connection"))}));null!=this.toolbar&&
-(a=mxUtils.bind(this,function(){var M=h.currentVertexStyle.fontFamily||"Helvetica",W=String(h.currentVertexStyle.fontSize||"12"),aa=h.getView().getState(h.getSelectionCell());null!=aa&&(M=aa.style[mxConstants.STYLE_FONTFAMILY]||M,W=aa.style[mxConstants.STYLE_FONTSIZE]||W,10<M.length&&(M=M.substring(0,8)+"..."));this.toolbar.setFontName(M);this.toolbar.setFontSize(W)}),h.getSelectionModel().addListener(mxEvent.CHANGE,a),h.getModel().addListener(mxEvent.CHANGE,a));h.addListener(mxEvent.CELLS_ADDED,
-function(M,W){M=W.getProperty("cells");W=W.getProperty("parent");null!=W&&h.getModel().isLayer(W)&&!h.isCellVisible(W)&&null!=M&&0<M.length&&h.getModel().setVisible(W,!0)});Graph.selectParentLayer&&h.selectionModel.addListener(mxEvent.CHANGE,function(){if(h.isEnabled()&&!h.isSelectionEmpty()){var M=h.getLayerForCells(h.getSelectionCells());null!=M&&h.setDefaultParent(M)}});this.gestureHandler=mxUtils.bind(this,function(M){null!=this.currentMenu&&mxEvent.getSource(M)!=this.currentMenu.div&&this.hideCurrentMenu()});
-mxEvent.addGestureListeners(document,this.gestureHandler);var P=null;this.resizeHandler=mxUtils.bind(this,function(){null!=P&&window.clearTimeout(P);P=window.setTimeout(mxUtils.bind(this,function(){P=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==
-typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){h.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){h.view.validateBackground()}));h.addListener("gridSizeChanged",mxUtils.bind(this,function(){h.isGridEnabled()&&
-h.view.validateBackground()}));this.editor.resetGraph()}this.init();h.standalone||this.open()};EditorUi.compactUi=!0;
-EditorUi.parsePng=function(a,b,e){function f(m,q){var k=d;d+=q;return m.substring(k,d)}function h(m){m=f(m,4);return m.charCodeAt(3)+(m.charCodeAt(2)<<8)+(m.charCodeAt(1)<<16)+(m.charCodeAt(0)<<24)}var d=0;if(f(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(f(a,4),"IHDR"!=f(a,4))null!=e&&e();else{f(a,17);do{e=h(a);var g=f(a,4);if(null!=b&&b(d-8,g,e))break;value=f(a,e);f(a,4);if("IEND"==g)break}while(e)}};mxUtils.extend(EditorUi,mxEventSource);
+mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(g,m,p){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,p){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,p=0<g.height?g.y/this.scale-this.translate.y:0,k=this.graph.pageFormat,u=this.graph.pageScale,x=k.width*u;k=k.height*u;u=Math.floor(Math.min(0,m)/x);var z=Math.floor(Math.min(0,
+p)/k);return new mxRectangle(this.scale*(this.translate.x+u*x),this.scale*(this.translate.y+z*k),this.scale*(Math.ceil(Math.max(1,m+g.width/this.scale)/x)-u)*x,this.scale*(Math.ceil(Math.max(1,p+g.height/this.scale)/k)-z)*k)};var f=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(g,m){f.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=
+g+"px",this.view.backgroundPageShape.node.style.marginTop=m+"px")};var h=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(g,m,p,k,u,x){var z=h.apply(this,arguments);null==x||x||mxEvent.addListener(z,"mousedown",function(C){mxEvent.consume(C)});return z};var d=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(g,m,p){var k=this.graph.model.getParent(g);if(m){var u=this.graph.model.isEdge(g)?null:this.graph.getCellGeometry(g);
+u=!this.graph.model.isEdge(k)&&!this.graph.isSiblingSelected(g)&&(null!=u&&u.relative||!this.graph.isContainer(k)||this.graph.isPart(g))}else if(u=d.apply(this,arguments),this.graph.isTableCell(g)||this.graph.isTableRow(g))u=k,this.graph.isTable(u)||(u=this.graph.model.getParent(u)),u=!this.graph.selectionCellsHandler.isHandled(u)||this.graph.isCellSelected(u)&&this.graph.isToggleEvent(p.getEvent())||this.graph.isCellSelected(g)&&!this.graph.isToggleEvent(p.getEvent())||this.graph.isTableCell(g)&&
+this.graph.isCellSelected(k);return u};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(g){g=g.getCell();for(var m=this.graph.getModel(),p=m.getParent(g),k=this.graph.view.getState(p),u=this.graph.isCellSelected(g);null!=k&&(m.isVertex(p)||m.isEdge(p));){var x=this.graph.isCellSelected(p);u=u||x;if(x||!u&&(this.graph.isTableCell(g)||this.graph.isTableRow(g)))g=p;p=m.getParent(p)}return g}})();EditorUi=function(a,b,e){mxEventSource.call(this);this.destroyFunctions=[];this.editor=a||new Editor;this.container=b||document.body;var f=this,h=this.editor.graph;h.lightbox=e;var d=h.getGraphBounds;h.getGraphBounds=function(){var M=d.apply(this,arguments),V=this.backgroundImage;if(null!=V&&null!=V.width&&null!=V.height){var aa=this.view.translate,ia=this.view.scale;M=mxRectangle.fromRectangle(M);M.add(new mxRectangle((aa.x+V.x)*ia,(aa.y+V.y)*ia,V.width*ia,V.height*ia))}return M};h.useCssTransforms&&
+(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(M,V){this.clearSelectionState()});h.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);h.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);h.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);h.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);h.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){this.footerHeight=
+0;h.isEnabled=function(){return!1};h.panningHandler.isForcePanningEvent=function(M){for(var V=M.getSource();null!=V&&V!=h.container;){if("foreignObject"===V.nodeName||"text"===V.nodeName)return!1;V=V.parentNode}return!mxEvent.isPopupTrigger(M.getEvent())};var g=h.panningHandler.start;h.panningHandler.start=function(){g.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!h.standalone){var m=!1,p=!1;this.setDefaultStyle=function(M){try{h.getModel().isEdge(M)?
+p=h.pasteEdgeStyle=!1:m=!1;var V=h.getCellStyle(M,!1),aa=[],ia=[],na;for(na in V)aa.push(V[na]),ia.push(na);h.getModel().isEdge(M)?h.currentEdgeStyle={}:h.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",ia,"values",aa,"cells",[M],"force",!0));h.getModel().isEdge(M)?p=h.pasteEdgeStyle=!0:m=!0}catch(qa){this.handleError(qa)}};this.clearDefaultStyle=function(){h.currentEdgeStyle=mxUtils.clone(h.defaultEdgeStyle);h.currentVertexStyle=mxUtils.clone(h.defaultVertexStyle);m=
+p=h.pasteEdgeStyle=!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};h.addListener("cellsInserted",function(M,V){h.pasteCellStyles(h.includeDescendants(V.getProperty("cells")))});h.addListener("textInserted",function(M,V){h.pasteCellStyles(V.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var k=mxUtils.bind(this,function(M){null==M&&(M=window.event);return h.isEditing()||null!=M&&this.isSelectionAllowed(M)});this.container!=document.body||
+this.editor.chromeless&&!this.editor.editable||(this.menubarContainer.onselectstart=k,this.menubarContainer.onmousedown=k,this.toolbarContainer.onselectstart=k,this.toolbarContainer.onmousedown=k,this.diagramContainer.onselectstart=k,this.diagramContainer.onmousedown=k,this.sidebarContainer.onselectstart=k,this.sidebarContainer.onmousedown=k,this.formatContainer.onselectstart=k,this.formatContainer.onmousedown=k,this.footerContainer.onselectstart=k,this.footerContainer.onmousedown=k,null!=this.tabContainer&&
+(this.tabContainer.onselectstart=k),mxClient.IS_IOS&&(b=function(){var M=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var V=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{M=[parseInt(V[1],10),parseInt(V[2],10),parseInt(V[3]||0,10)]}catch(aa){}}return M}(),null!=b&&16<=b[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect",
+"none"),mxUtils.setPrefixedStyle(this.formatContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.footerContainer.style,"userSelect","none"),null!=this.tabContainer&&mxUtils.setPrefixedStyle(this.tabContainer.style,"userSelect","none"))));!this.editor.chromeless||this.editor.editable?(b=function(M){if(null!=M){var V=mxEvent.getSource(M);if("A"==V.nodeName)for(;null!=V;){if("geHint"==V.className)return!0;V=V.parentNode}}return k(M)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||
+9>document.documentMode)?mxEvent.addListener(this.diagramContainer,"contextmenu",b):this.diagramContainer.oncontextmenu=b):h.panningHandler.usePopupTrigger=!1;h.init(this.diagramContainer);mxClient.IS_SVG&&null!=h.view.getDrawPane()&&(b=h.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=h.graphHandler){var u=h.graphHandler.start;h.graphHandler.start=function(){null!=f.hoverIcons&&f.hoverIcons.reset();u.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,
+"mousemove",mxUtils.bind(this,function(M){var V=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(M)-V.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(M)-V.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var x=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(M,V){return f.isSpaceDown()||x.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,
+function(M){16==M.which?this.shiftDown=!0:32!=M.which||h.isEditing()?mxEvent.isConsumed(M)||27!=M.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),h.container.style.cursor="move",h.isEditing()||mxEvent.getSource(M)!=h.container||mxEvent.consume(M))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(M){h.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);
+var z=h.panningHandler.isForcePanningEvent;h.panningHandler.isForcePanningEvent=function(M){return z.apply(this,arguments)||f.isSpaceDown()||mxEvent.isMouseEvent(M.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(M.getEvent()))&&(!mxEvent.isControlDown(M.getEvent())&&mxEvent.isRightMouseButton(M.getEvent())||mxEvent.isMiddleMouseButton(M.getEvent()))};var C=h.cellEditor.isStopEditingEvent;h.cellEditor.isStopEditingEvent=function(M){return C.apply(this,arguments)||13==M.keyCode&&(!mxClient.IS_SF&&
+mxEvent.isControlDown(M)||mxClient.IS_MAC&&mxEvent.isMetaDown(M)||mxClient.IS_SF&&mxEvent.isShiftDown(M))};var E=h.isZoomWheelEvent;h.isZoomWheelEvent=function(){return f.isSpaceDown()||E.apply(this,arguments)};var D=!1,G=null,I=null,L=null,T=mxUtils.bind(this,function(){if(null!=this.toolbar&&D!=h.cellEditor.isContentEditing()){for(var M=this.toolbar.container.firstChild,V=[];null!=M;){var aa=M.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,M)&&(M.parentNode.removeChild(M),V.push(M));
+M=aa}M=this.toolbar.fontMenu;aa=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=M;I=aa;L=V}}),K=h.cellEditor.startEditing;h.cellEditor.startEditing=function(){K.apply(this,arguments);T();if(h.cellEditor.isContentEditing()){var M=!1,V=function(){M||(M=!0,window.setTimeout(function(){var aa=h.getSelectedEditingElement();null!=
+aa&&(aa=mxUtils.getCurrentStyle(aa),null!=aa&&null!=f.toolbar&&(f.toolbar.setFontName(mxUtils.getCssFontFamily(aa.fontFamily)),f.toolbar.setFontSize(parseInt(aa.fontSize))));M=!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(M,V){try{U.apply(this,arguments),
+T()}catch(aa){f.handleError(aa)}};h.container.setAttribute("tabindex","0");h.container.style.cursor="default";if(window.self===window.top&&null!=h.container.parentNode)try{h.container.focus()}catch(M){}var Y=h.fireMouseEvent;h.fireMouseEvent=function(M,V,aa){try{M==mxEvent.MOUSE_DOWN&&this.container.focus(),Y.apply(this,arguments)}catch(ia){f.handleError(ia)}};var Q=h.foldCells;h.foldCells=function(M,V,aa,ia,na){try{Q.apply(this,arguments)}catch(qa){f.handleError(qa)}};h.popupMenuHandler.autoExpand=
+!0;null!=this.menus&&(h.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(M,V,aa){this.menus.createPopupMenu(M,V,aa)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(M){h.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};h.connectionHandler.addListener(mxEvent.CONNECT,function(M,V){var aa=[V.getProperty("cell")];V.getProperty("terminalInserted")&&(aa.push(V.getProperty("terminal")),window.setTimeout(function(){null!=
+f.hoverIcons&&f.hoverIcons.update(h.view.getState(aa[aa.length-1]))},0));h.pasteCellStyles(aa)});this.addListener("styleChanged",mxUtils.bind(this,function(M,V){M=V.getProperty("force");(this.updateDefaultStyle||M)&&h.copyCellStyles(V.getProperty("cells"),V.getProperty("keys"),V.getProperty("values"),h.currentVertexStyle,h.currentEdgeStyle,m,p);null!=this.toolbar&&(this.toolbar.setFontName(h.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(h.currentVertexStyle.fontSize||
+Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&(V=this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0],V.style.backgroundPosition="left center",V.style.backgroundRepeat="no-repeat",V.className="geAdaptiveAsset",V.style.height="100%",V.style.width="100%",V.style.backgroundImage="orthogonalEdgeStyle"==h.currentEdgeStyle.edgeStyle&&"1"==h.currentEdgeStyle.curved?"url("+Format.curvedImage.src+")":"straight"==h.currentEdgeStyle.edgeStyle||"none"==h.currentEdgeStyle.edgeStyle||
+null==h.currentEdgeStyle.edgeStyle?"url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==h.currentEdgeStyle.edgeStyle?"url("+Format.entityImage.src+")":"elbowEdgeStyle"==h.currentEdgeStyle.edgeStyle?"vertical"==h.currentEdgeStyle.elbow?"url("+Format.verticalElbowImage.src+")":"url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==h.currentEdgeStyle.edgeStyle?"vertical"==h.currentEdgeStyle.elbow?"url("+Format.verticalIsometricImage.src+")":"url("+Format.horizontalIsometricImage.src+
+")":"url("+Format.orthogonalImage.src+")"),null!=this.toolbar.edgeShapeMenu&&(V=this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0],V.style.backgroundPosition="left center",V.style.backgroundRepeat="no-repeat",V.className="geAdaptiveAsset",V.style.height="100%",V.style.width="100%",V.style.backgroundImage="link"==h.currentEdgeStyle.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==h.currentEdgeStyle.shape?"url("+Format.arrowImage.src+")":"arrow"==h.currentEdgeStyle.shape?"url("+Format.simpleArrowImage.src+
+")":"url("+Format.connectionImage.src+")"))}));null!=this.toolbar&&(a=mxUtils.bind(this,function(){var M=h.currentVertexStyle.fontFamily||"Helvetica",V=String(h.currentVertexStyle.fontSize||"12"),aa=h.getView().getState(h.getSelectionCell());null!=aa&&(M=aa.style[mxConstants.STYLE_FONTFAMILY]||M,V=aa.style[mxConstants.STYLE_FONTSIZE]||V,10<M.length&&(M=M.substring(0,8)+"..."));this.toolbar.setFontName(M);this.toolbar.setFontSize(V)}),h.getSelectionModel().addListener(mxEvent.CHANGE,a),h.getModel().addListener(mxEvent.CHANGE,
+a));h.addListener(mxEvent.CELLS_ADDED,function(M,V){M=V.getProperty("cells");V=V.getProperty("parent");null!=V&&h.getModel().isLayer(V)&&!h.isCellVisible(V)&&null!=M&&0<M.length&&h.getModel().setVisible(V,!0)});Graph.selectParentLayer&&h.selectionModel.addListener(mxEvent.CHANGE,function(){if(h.isEnabled()&&!h.isSelectionEmpty()){var M=h.getLayerForCells(h.getSelectionCells());null!=M&&h.setDefaultParent(M)}});this.gestureHandler=mxUtils.bind(this,function(M){null!=this.currentMenu&&mxEvent.getSource(M)!=
+this.currentMenu.div&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var P=null;this.resizeHandler=mxUtils.bind(this,function(){null!=P&&window.clearTimeout(P);P=window.setTimeout(mxUtils.bind(this,function(){P=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&
+!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){h.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){h.view.validateBackground()}));h.addListener("gridSizeChanged",
+mxUtils.bind(this,function(){h.isGridEnabled()&&h.view.validateBackground()}));this.editor.resetGraph()}this.init();h.standalone||this.open()};EditorUi.compactUi=!0;
+EditorUi.parsePng=function(a,b,e){function f(m,p){var k=d;d+=p;return m.substring(k,d)}function h(m){m=f(m,4);return m.charCodeAt(3)+(m.charCodeAt(2)<<8)+(m.charCodeAt(1)<<16)+(m.charCodeAt(0)<<24)}var d=0;if(f(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(f(a,4),"IHDR"!=f(a,4))null!=e&&e();else{f(a,17);do{e=h(a);var g=f(a,4);if(null!=b&&b(d-8,g,e))break;value=f(a,e);f(a,4);if("IEND"==g)break}while(e)}};mxUtils.extend(EditorUi,mxEventSource);
EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.menubarHeight=30;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.toolbarHeight=38;EditorUi.prototype.footerHeight=28;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?212:240);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;
EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;EditorUi.prototype.hsplitClickEnabled=!1;EditorUi.prototype.updateDefaultStyle=!1;EditorUi.prototype.spaceDown=!1;EditorUi.prototype.shiftDown=!1;
EditorUi.prototype.init=function(){var a=this.editor.graph;if(!a.standalone){"0"!=urlParams["shape-picker"]&&this.installShapePicker();mxEvent.addListener(a.container,"scroll",mxUtils.bind(this,function(){a.tooltipHandler.hide();null!=a.connectionHandler&&null!=a.connectionHandler.constraintHandler&&a.connectionHandler.constraintHandler.reset()}));a.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){a.tooltipHandler.hide();var f=a.getRubberband();null!=f&&f.cancel()}));mxEvent.addListener(a.container,
@@ -2098,30 +2109,31 @@ EditorUi.prototype.init=function(){var a=this.editor.graph;if(!a.standalone){"0"
arguments);e.updateActionStates()};a.showLinkDialog=mxUtils.bind(e,e.showLinkDialog);a.editLink=e.actions.get("editLink").funct;this.updateActionStates();this.initClipboard();this.initCanvas();null!=this.format&&this.format.init()}};EditorUi.prototype.clearSelectionState=function(){this.selectionState=null};EditorUi.prototype.getSelectionState=function(){null==this.selectionState&&(this.selectionState=this.createSelectionState());return this.selectionState};
EditorUi.prototype.createSelectionState=function(){for(var a=this.editor.graph,b=a.getSelectionCells(),e=this.initSelectionState(),f=!0,h=0;h<b.length;h++){var d=a.getCurrentCellStyle(b[h]);"0"!=mxUtils.getValue(d,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(e,b[h],b,f),f=!1)}this.updateSelectionStateForTableCells(e);return e};
EditorUi.prototype.initSelectionState=function(){return{vertices:[],edges:[],cells:[],x:null,y:null,width:null,height:null,style:{},containsImage:!1,containsLabel:!1,fill:!0,glass:!0,html:!0,rounded:!0,autoSize:!1,image:!1,shadow:!0,lineJumps:!0,resizable:!0,table:!1,cell:!1,row:!1,movable:!0,rotatable:!0,stroke:!0,swimlane:!1,unlocked:this.editor.graph.isEnabled(),connections:!1}};
-EditorUi.prototype.updateSelectionStateForTableCells=function(a){if(1<a.cells.length&&a.cell){var b=mxUtils.sortCells(a.cells),e=this.editor.graph.model,f=e.getParent(b[0]),h=e.getParent(f);if(null!=f&&null!=h){for(var d=f.getIndex(b[0]),g=h.getIndex(f),m=null,q=1,k=1,u=0,w=g<h.getChildCount()-1?e.getChildAt(e.getChildAt(h,g+1),d):null;u<b.length-1;){var z=b[++u];null==w||w!=z||null!=m&&q!=m||(m=q,q=0,k++,f=e.getParent(w),w=g+k<h.getChildCount()?e.getChildAt(e.getChildAt(h,g+k),d):null);var C=this.editor.graph.view.getState(z);
-if(z==e.getChildAt(f,d+q)&&null!=C&&1==mxUtils.getValue(C.style,"colspan",1)&&1==mxUtils.getValue(C.style,"rowspan",1))q++;else break}u==k*q-1&&(a.mergeCell=b[0],a.colspan=q,a.rowspan=k)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
+EditorUi.prototype.updateSelectionStateForTableCells=function(a){if(1<a.cells.length&&a.cell){var b=mxUtils.sortCells(a.cells),e=this.editor.graph.model,f=e.getParent(b[0]),h=e.getParent(f);if(null!=f&&null!=h){for(var d=f.getIndex(b[0]),g=h.getIndex(f),m=null,p=1,k=1,u=0,x=g<h.getChildCount()-1?e.getChildAt(e.getChildAt(h,g+1),d):null;u<b.length-1;){var z=b[++u];null==x||x!=z||null!=m&&p!=m||(m=p,p=0,k++,f=e.getParent(x),x=g+k<h.getChildCount()?e.getChildAt(e.getChildAt(h,g+k),d):null);var C=this.editor.graph.view.getState(z);
+if(z==e.getChildAt(f,d+p)&&null!=C&&1==mxUtils.getValue(C.style,"colspan",1)&&1==mxUtils.getValue(C.style,"rowspan",1))p++;else break}u==k*p-1&&(a.mergeCell=b[0],a.colspan=p,a.rowspan=k)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
EditorUi.prototype.createTimeout=function(a,b,e){var f=!0,h=null,d=mxUtils.bind(this,function(m){h.clear()&&(f=!1,m=null!=m?m:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(a,b,e)})},null!=e?e(m):this.handleError(m))}),g=window.setTimeout(d,null!=a?a:this.timeout);h={clear:function(){window.clearTimeout(g);return f},isAlive:function(){return f}};null!=b&&this.tryAndHandle(mxUtils.bind(this,function(){b(h)}),d);return h};
EditorUi.prototype.tryAndHandle=function(a,b){try{a()}catch(e){null!=b?b(e):this.handleError(e)}};
-EditorUi.prototype.removeUserDefinedDarkColors=function(a,b,e){var f=this.editor.graph;a=null!=a?a:f.getSelectionCells();var h=Graph.colorStyles,d=document.createElement("div");f.model.beginUpdate();try{for(var g=0;g<a.length;g++)if(f.model.isEdge(a[g])||f.model.isVertex(a[g])){var m=f.getCellStyle(a[g],!1);if(null!=m)for(var q=0;q<h.length;q++)try{var k=m[h[q]];if(mxUtils.isLightDarkColor(k)){var u=mxUtils.getLightDarkColor(k);f.setCellStyles(h[q],u.light,[a[g]])}}catch(z){}b&&f.isHtmlLabel(a[g])&&
-"0"!=mxUtils.getValue(m,"html","0")&&(d.innerHTML=Graph.sanitizeHtml(f.getLabel(a[g])),Graph.addLightDarkColors(d,null,null,function(z,C,E){return mxUtils.isLightDarkColor(E)?(E=mxUtils.getLightDarkColor(E),z.style.setProperty(C,E.light),!0):!1})&&f.cellLabelChanged(a[g],d.innerHTML))}if(e&&mxUtils.isLightDarkColor(f.background)){u=mxUtils.getLightDarkColor(f.background);var w=new ChangePageSetup(this,u.light);w.ignoreImage=!0;f.model.execute(w)}}finally{f.model.endUpdate()}return a};
+EditorUi.prototype.removeUserDefinedDarkColors=function(a,b,e){var f=this.editor.graph;a=null!=a?a:f.getSelectionCells();var h=Graph.colorStyles,d=document.createElement("div");f.model.beginUpdate();try{for(var g=0;g<a.length;g++)if(f.model.isEdge(a[g])||f.model.isVertex(a[g])){var m=f.getCellStyle(a[g],!1);if(null!=m)for(var p=0;p<h.length;p++)try{var k=m[h[p]];if(mxUtils.isLightDarkColor(k)){var u=mxUtils.getLightDarkColor(k);f.setCellStyles(h[p],u.light,[a[g]])}}catch(z){}b&&f.isHtmlLabel(a[g])&&
+"0"!=mxUtils.getValue(m,"html","0")&&(d.innerHTML=Graph.sanitizeHtml(f.getLabel(a[g])),Graph.addLightDarkColors(d,null,null,function(z,C,E){return mxUtils.isLightDarkColor(E)?(E=mxUtils.getLightDarkColor(E),z.style.setProperty(C,E.light),!0):!1})&&f.cellLabelChanged(a[g],d.innerHTML))}if(e&&mxUtils.isLightDarkColor(f.background)){u=mxUtils.getLightDarkColor(f.background);var x=new ChangePageSetup(this,u.light);x.ignoreImage=!0;f.model.execute(x)}}finally{f.model.endUpdate()}return a};
EditorUi.prototype.updateSelectionStateForCell=function(a,b,e,f){e=this.editor.graph;a.cells.push(b);if(e.getModel().isVertex(b)){a.connections=0<e.model.getEdgeCount(b);a.unlocked=a.unlocked&&!e.isCellLocked(b);a.resizable=a.resizable&&e.isCellResizable(b);a.rotatable=a.rotatable&&e.isCellRotatable(b);a.movable=a.movable&&e.isCellMovable(b)&&!e.isTableRow(b)&&!e.isTableCell(b);a.swimlane=a.swimlane||e.isSwimlane(b);a.table=a.table||e.isTable(b);a.cell=a.cell||e.isTableCell(b);a.row=a.row||e.isTableRow(b);
a.vertices.push(b);var h=e.getCellGeometry(b);if(null!=h&&(0<h.width?null==a.width?a.width=h.width:a.width!=h.width&&(a.width=""):a.containsLabel=!0,0<h.height?null==a.height?a.height=h.height:a.height!=h.height&&(a.height=""):a.containsLabel=!0,!h.relative||null!=h.offset)){var d=h.relative?h.offset.x:h.x;h=h.relative?h.offset.y:h.y;null==a.x?a.x=d:a.x!=d&&(a.x="");null==a.y?a.y=h:a.y!=h&&(a.y="")}}else e.getModel().isEdge(b)&&(a.edges.push(b),a.connections=!0,a.resizable=!1,a.rotatable=!1,a.movable=
!1);d=e.view.getState(b);null!=d&&(a.html=a.html&&e.isHtmlLabel(b),a.autoSize=a.autoSize||e.isAutoSizeState(d),a.glass=a.glass&&e.isGlassState(d),a.rounded=a.rounded&&e.isRoundedState(d),a.lineJumps=a.lineJumps&&e.isLineJumpState(d),a.image=a.image||e.isImageState(d),a.shadow=a.shadow&&e.isShadowState(d),a.fill=a.fill&&e.isFillState(d),a.gradient=a.fill&&e.isGradientState(d),a.stroke=a.stroke&&e.isStrokeState(d),b=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE,null),a.containsImage=a.containsImage||
"image"==b,e.mergeStyle(d.style,a.style,f))};
-EditorUi.prototype.installShapePicker=function(){var a=this.editor.graph,b=this;a.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(q,k){"mouseDown"==k.getProperty("eventName")&&b.hideShapePicker()}));var e=mxUtils.bind(this,function(){b.hideShapePicker(!0)});a.addListener("wheel",e);a.addListener(mxEvent.ESCAPE,e);a.view.addListener(mxEvent.SCALE,e);a.view.addListener(mxEvent.SCALE_AND_TRANSLATE,e);a.getSelectionModel().addListener(mxEvent.CHANGE,e);var f=a.popupMenuHandler.isMenuShowing;
-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(I){null!=I&&a.connectVertex(D,w,a.defaultEdgeLength,z,!0,!1,function(L,T,K){K(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.installShapePicker=function(){var a=this.editor.graph,b=this;a.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(p,k){"mouseDown"==k.getProperty("eventName")&&b.hideShapePicker()}));var e=mxUtils.bind(this,function(){b.hideShapePicker(!0)});a.addListener("wheel",e);a.addListener(mxEvent.ESCAPE,e);a.view.addListener(mxEvent.SCALE,e);a.view.addListener(mxEvent.SCALE_AND_TRANSLATE,e);a.getSelectionModel().addListener(mxEvent.CHANGE,e);var f=a.popupMenuHandler.isMenuShowing;
+a.popupMenuHandler.isMenuShowing=function(){return f.apply(this,arguments)||null!=b.shapePicker||null!=b.currentMenu};var h=a.dblClick;a.dblClick=function(p,k){if(this.isEnabled())if(null!=k||null==b.sidebar||mxEvent.isShiftDown(p)||a.isCellLocked(a.getDefaultParent()))h.apply(this,arguments);else{var u=mxUtils.convertPoint(this.container,mxEvent.getClientX(p),mxEvent.getClientY(p));mxEvent.consume(p);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(p,k,u){var x=u.getEvent();this.graph.isCloneEvent(x)||mxEvent.isShiftDown(x)?g.apply(this,arguments):this.graph.connectVertex(p.cell,k,this.graph.defaultEdgeLength,x,null,null,mxUtils.bind(this,function(z,C,E){var D=a.getCompositeParent(p.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,x,this)}))};var m=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m);m=window.setTimeout(mxUtils.bind(this,function(){var u=
+k.getProperty("arrow"),x=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,x,a.defaultEdgeLength,z,!0,!1,function(L,T,K){K(I);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(I))},
+function(L){a.selectCellsForConnectVertex(L)},z,this.hoverIcons)}),x,!0);null!=G&&(this.centerShapePicker(G,u,E,C,x),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(p,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,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="geItem";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 T=w.cloneCell(D);if(null!=f)f(T);else{var K=q([T]);w.model.isEdge(T)?T.geometry.translate(K.x,K.y):(T.geometry.x=K.x,T.geometry.y=K.y);w.model.beginUpdate();try{w.addCell(T),w.model.isVertex(T)&&w.isAutoSizeCell(T)&&w.updateCellSize(T)}finally{w.model.endUpdate()}w.setSelectionCell(T);w.scrollCellToVisible(T);u&&w.startEditing(T);null!=C.hoverIcons&&C.hoverIcons.update(w.view.getState(T))}}else T=
-w.getEditableCells(null!=e?[e]:w.getSelectionCells()),w.updateShapes(D,T);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=
+EditorUi.prototype.showShapePicker=function(a,b,e,f,h,d,g,m,p){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,p),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,p,k,u){u=null!=u?u:!0;var x=this.editor.graph,z=null;p=null!=p?p:function(D){D=D[0];var G=0,I=0,L=D.geometry;null!=L&&(x.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(x.snap(Math.round(a/x.view.scale)-x.view.translate.x-G),x.snap(Math.round(b/x.view.scale)-x.view.translate.y-I))};if(null!=g&&0<g.length){var C=this;x=this.editor.graph;z=document.createElement("div");
+h=x.view.getState(e);var E=null==e||null!=h&&x.isTransparentState(h)?null:x.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)");x.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],x.currentVertexStyle,x.currentEdgeStyle);var I=D.geometry;x.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&&x.isSelectionEmpty()){var T=x.cloneCell(D);if(null!=f)f(T);else{var K=p([T]);x.model.isEdge(T)?T.geometry.translate(K.x,K.y):(T.geometry.x=K.x,T.geometry.y=K.y);x.model.beginUpdate();try{x.addCell(T),x.model.isVertex(T)&&x.isAutoSizeCell(T)&&x.updateCellSize(T)}finally{x.model.endUpdate()}x.setSelectionCell(T);x.scrollCellToVisible(T);u&&
+x.startEditing(T);null!=C.hoverIcons&&C.hoverIcons.update(x.view.getState(T))}}else T=x.getEditableCells(null!=e?[e]:x.getSelectionCells()),x.updateShapes(D,T);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-(x.container.scrollTop+x.container.offsetHeight);0<g&&(z.style.top=Math.max(x.container.scrollTop+22,b-g)+"px");g=z.offsetLeft+z.clientWidth-(x.container.scrollLeft+x.container.offsetWidth);0<g&&(z.style.left=
+Math.max(x.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,p){return f.createVertex(null,null,p||"",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=
!0;return d});if(null!=a)try{a=f.cloneCell(a),f.model.isVertex(a)&&null!=a.geometry&&(a.geometry.x=0,a.geometry.y=0)}catch(d){a=null}null==a&&(a=h(f.appendFontSize("text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;",f.vertexFontSize),40,20,"Text"),f.model.isVertex(a)&&f.isAutoSizeCell(a)&&Graph.createOffscreenGraph(f.getStylesheet()).updateCellSize(a));a=[a,h("whiteSpace=wrap;html=1;"),h("ellipse;whiteSpace=wrap;html=1;",80,80),h("rhombus;whiteSpace=wrap;html=1;",
80,80),h("rounded=1;whiteSpace=wrap;html=1;"),h("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),h("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),h("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),h("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),h("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),h("triangle;whiteSpace=wrap;html=1;",
60,80),h("shape=document;whiteSpace=wrap;html=1;boundedLbl=1;",120,80),h("shape=tape;whiteSpace=wrap;html=1;",120,100),h("ellipse;shape=cloud;whiteSpace=wrap;html=1;",120,80),h("shape=singleArrow;whiteSpace=wrap;html=1;arrowWidth=0.4;arrowSize=0.4;",80,60),h("shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;",20,20)];e&&(a=a.concat([b("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),b("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;endArrow=classic;startArrow=classic;endSize=8;startSize=8;"),
@@ -2130,30 +2142,30 @@ EditorUi.prototype.hideShapePicker=function(a){null!=this.shapePicker&&(this.sha
EditorUi.prototype.onKeyDown=function(a){var b=this.editor.graph;if(9==a.which&&b.isEnabled()&&!mxEvent.isControlDown(a)){if(b.isEditing())if(mxEvent.isAltDown(a))b.stopEditing(!1);else try{var e=b.cellEditor.isContentEditing()&&b.cellEditor.isTextSelected();if(window.getSelection&&b.cellEditor.isContentEditing()&&!e&&!mxClient.IS_IE&&!mxClient.IS_IE11){var f=window.getSelection(),h=0<f.rangeCount?f.getRangeAt(0).commonAncestorContainer:null;e=null!=h&&("LI"==h.nodeName||null!=h.parentNode&&"LI"==
h.parentNode.nodeName)}e?document.execCommand(mxEvent.isShiftDown(a)?"outdent":"indent",!1,null):mxEvent.isShiftDown(a)?b.stopEditing(!1):b.cellEditor.insertTab(b.cellEditor.isContentEditing()?null:4)}catch(d){}else mxEvent.isAltDown(a)?b.selectParentCell():b.selectCell(!mxEvent.isShiftDown(a));mxEvent.consume(a)}};
EditorUi.prototype.onKeyPress=function(a){var b=this.editor.graph;!this.isImmediateEditingEvent(a)||b.isEditing()||b.isSelectionEmpty()||0===a.which||27===a.which||mxEvent.isAltDown(a)||mxEvent.isControlDown(a)||mxEvent.isMetaDown(a)||(b.escape(),b.startEditing(null,String.fromCharCode(a.which)))};EditorUi.prototype.isImmediateEditingEvent=function(a){return!0};
-EditorUi.prototype.updateCssForMarker=function(a,b,e,f,h){a.style.display="inline-flex";a.style.alignItems="center";a.style.justifyContent="center";a.innerText="";"flexArrow"==e?a.className=null!=f&&f!=mxConstants.NONE?"geSprite geSprite-"+b+"blocktrans":"geSprite geSprite-noarrow":(e=this.getImageForMarker(f,h),null!=e?(f=document.createElement("img"),f.className="geAdaptiveAsset",f.setAttribute("src",e),a.className="","end"==b&&mxUtils.setPrefixedStyle(f.style,"transform","scaleX(-1)"),a.appendChild(f)):
-(a.className="geSprite geSprite-noarrow",a.innerHTML=mxUtils.htmlEntities(mxResources.get("none")),a.style.backgroundImage="none",a.style.fontSize="11px",a.style.filter="none"))};
-EditorUi.prototype.getImageForMarker=function(a,b){var e=null;a==mxConstants.ARROW_CLASSIC?e="1"!=b?Format.classicMarkerImage.src:Format.classicFilledMarkerImage.src:a==mxConstants.ARROW_CLASSIC_THIN?e="1"!=b?Format.classicThinMarkerImage.src:Format.openThinFilledMarkerImage.src:a==mxConstants.ARROW_OPEN?e=Format.openFilledMarkerImage.src:a==mxConstants.ARROW_OPEN_THIN?e=Format.openThinFilledMarkerImage.src:a==mxConstants.ARROW_BLOCK?e="1"!=b?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:
-a==mxConstants.ARROW_BLOCK_THIN?e="1"!=b?Format.blockThinMarkerImage.src:Format.blockThinFilledMarkerImage.src:a==mxConstants.ARROW_OVAL?e="1"!=b?Format.ovalMarkerImage.src:Format.ovalFilledMarkerImage.src:a==mxConstants.ARROW_DIAMOND?e="1"!=b?Format.diamondMarkerImage.src:Format.diamondFilledMarkerImage.src:a==mxConstants.ARROW_DIAMOND_THIN?e="1"!=b?Format.diamondThinMarkerImage.src:Format.diamondThinFilledMarkerImage.src:"doubleBlock"==a?e="1"!=b?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:
-"box"==a?e=Format.boxMarkerImage.src:"halfCircle"==a?e=Format.halfCircleMarkerImage.src:"openAsync"==a?e=Format.openAsyncFilledMarkerImage.src:"async"==a?e="1"!=b?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==a?e=Format.dashMarkerImage.src:"baseDash"==a?e=Format.baseDashMarkerImage.src:"cross"==a?e=Format.crossMarkerImage.src:"circle"==a?e=Format.circleMarkerImage.src:"circlePlus"==a?e=Format.circlePlusMarkerImage.src:"ERone"==a?e=Format.EROneMarkerImage.src:"ERmandOne"==a?
-e=Format.ERmandOneMarkerImage.src:"ERmany"==a?e=Format.ERmanyMarkerImage.src:"ERoneToMany"==a?e=Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==a?e=Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==a&&(e=Format.ERzeroToManyMarkerImage.src);return e};EditorUi.prototype.createMenus=function(){return null};
+EditorUi.prototype.updateCssForMarker=function(a,b,e,f,h){a.style.display="inline-flex";a.style.alignItems="center";a.style.justifyContent="center";a.innerText="";e=this.getImageForMarker(f,h,e);null==e?(a.innerHTML=mxUtils.htmlEntities(mxResources.get("none")),a.style.backgroundImage="none",a.style.fontSize="11px",a.style.filter="none"):(f=document.createElement("img"),f.className="geAdaptiveAsset",f.setAttribute("src",e),a.className="","end"==b&&mxUtils.setPrefixedStyle(f.style,"transform","scaleX(-1)"),
+a.appendChild(f))};
+EditorUi.prototype.getImageForMarker=function(a,b,e){return"flexArrow"==e?null!=a&&a!=mxConstants.NONE?Format.blockMarkerImage.src:null:a==mxConstants.ARROW_CLASSIC?"1"!=b?Format.classicMarkerImage.src:Format.classicFilledMarkerImage.src:a==mxConstants.ARROW_CLASSIC_THIN?"1"!=b?Format.classicThinMarkerImage.src:Format.openThinFilledMarkerImage.src:a==mxConstants.ARROW_OPEN?Format.openFilledMarkerImage.src:a==mxConstants.ARROW_OPEN_THIN?Format.openThinFilledMarkerImage.src:a==mxConstants.ARROW_BLOCK?"1"!=
+b?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:a==mxConstants.ARROW_BLOCK_THIN?"1"!=b?Format.blockThinMarkerImage.src:Format.blockThinFilledMarkerImage.src:a==mxConstants.ARROW_OVAL?"1"!=b?Format.ovalMarkerImage.src:Format.ovalFilledMarkerImage.src:a==mxConstants.ARROW_DIAMOND?"1"!=b?Format.diamondMarkerImage.src:Format.diamondFilledMarkerImage.src:a==mxConstants.ARROW_DIAMOND_THIN?"1"!=b?Format.diamondThinMarkerImage.src:Format.diamondThinFilledMarkerImage.src:"doubleBlock"==a?"1"!=
+b?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:"box"==a?Format.boxMarkerImage.src:"halfCircle"==a?Format.halfCircleMarkerImage.src:"openAsync"==a?Format.openAsyncFilledMarkerImage.src:"async"==a?"1"!=b?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==a?Format.dashMarkerImage.src:"baseDash"==a?Format.baseDashMarkerImage.src:"cross"==a?Format.crossMarkerImage.src:"circle"==a?Format.circleMarkerImage.src:"circlePlus"==a?Format.circlePlusMarkerImage.src:
+"ERone"==a?Format.EROneMarkerImage.src:"ERmandOne"==a?Format.ERmandOneMarkerImage.src:"ERmany"==a?Format.ERmanyMarkerImage.src:"ERoneToMany"==a?Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==a?Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==a?Format.ERzeroToManyMarkerImage.src:null};EditorUi.prototype.createMenus=function(){return null};
EditorUi.prototype.updatePasteActionStates=function(){var a=this.editor.graph,b=this.actions.get("paste"),e=this.actions.get("pasteHere");b.setEnabled(this.editor.graph.cellEditor.isContentEditing()||(!mxClient.IS_FF&&null!=navigator.clipboard||!mxClipboard.isEmpty())&&a.isEnabled()&&!a.isCellLocked(a.getDefaultParent()));e.setEnabled(b.isEnabled())};
-EditorUi.prototype.initClipboard=function(){var a=this,b=mxClipboard.cut;mxClipboard.cut=function(d){d.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):b.apply(this,arguments);a.updatePasteActionStates()};mxClipboard.copy=function(d){var g=null;if(d.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{g=g||d.getSelectionCells();g=d.getExportableCells(d.model.getTopmostCells(g));for(var m={},q=d.createCellLookup(g),k=d.cloneCells(g,null,m),u=new mxGraphModel,w=u.getChildAt(u.getRoot(),
-0),z=0;z<k.length;z++){u.add(w,k[z]);var C=d.view.getState(g[z]);if(null!=C){var E=d.getCellGeometry(k[z]);null!=E&&E.relative&&!u.isEdge(g[z])&&null==q[mxObjectIdentity.get(u.getParent(g[z]))]&&(E.offset=null,E.relative=!1,E.x=C.x/C.view.scale-C.view.translate.x,E.y=C.y/C.view.scale-C.view.translate.y)}}d.updateCustomLinks(d.createCellMapping(m,q),k);mxClipboard.insertCount=1;mxClipboard.setCells(k)}a.updatePasteActionStates();return g};var e=mxClipboard.paste;mxClipboard.paste=function(d){var g=
+EditorUi.prototype.initClipboard=function(){var a=this,b=mxClipboard.cut;mxClipboard.cut=function(d){d.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):b.apply(this,arguments);a.updatePasteActionStates()};mxClipboard.copy=function(d){var g=null;if(d.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{g=g||d.getSelectionCells();g=d.getExportableCells(d.model.getTopmostCells(g));for(var m={},p=d.createCellLookup(g),k=d.cloneCells(g,null,m),u=new mxGraphModel,x=u.getChildAt(u.getRoot(),
+0),z=0;z<k.length;z++){u.add(x,k[z]);var C=d.view.getState(g[z]);if(null!=C){var E=d.getCellGeometry(k[z]);null!=E&&E.relative&&!u.isEdge(g[z])&&null==p[mxObjectIdentity.get(u.getParent(g[z]))]&&(E.offset=null,E.relative=!1,E.x=C.x/C.view.scale-C.view.translate.x,E.y=C.y/C.view.scale-C.view.translate.y)}}d.updateCustomLinks(d.createCellMapping(m,p),k);mxClipboard.insertCount=1;mxClipboard.setCells(k)}a.updatePasteActionStates();return g};var e=mxClipboard.paste;mxClipboard.paste=function(d){var g=
null;d.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):g=e.apply(this,arguments);a.updatePasteActionStates();return g};var f=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){f.apply(this,arguments);a.updatePasteActionStates()};var h=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(d,g){h.apply(this,arguments);a.updatePasteActionStates()};this.updatePasteActionStates()};
EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=500;EditorUi.prototype.buttonZoomDelay=600;
EditorUi.prototype.initCanvas=function(){var a=this.editor.graph;a.timerAutoScroll=!0;a.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((a.container.offsetWidth-34)/a.view.scale)),Math.max(0,Math.round((a.container.offsetHeight-34)/a.view.scale)))};a.view.getBackgroundPageBounds=function(){var H=this.graph.getPageLayout(),ea=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+H.x*ea.width),this.scale*(this.translate.y+H.y*ea.height),this.scale*H.width*ea.width,
-this.scale*H.height*ea.height)};a.getPreferredPageSize=function(H,ea,la){H=this.getPageLayout();ea=this.getPageSize();return new mxRectangle(0,0,H.width*ea.width,H.height*ea.height)};var b=null,e=this;if(this.editor.isChromelessView()){this.chromelessResize=b=mxUtils.bind(this,function(H,ea,la,sa){if(null!=a.container&&!a.isViewer()){la=null!=la?la:0;sa=null!=sa?sa:0;var Pa=a.pageVisible?a.view.getBackgroundPageBounds():a.getGraphBounds(),ma=mxUtils.hasScrollbars(a.container),Ca=a.view.translate,
-Da=a.view.scale,Ga=mxRectangle.fromRectangle(Pa);Ga.x=Ga.x/Da-Ca.x;Ga.y=Ga.y/Da-Ca.y;Ga.width/=Da;Ga.height/=Da;Ca=a.container.scrollTop;var Ia=a.container.scrollLeft,Ha=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)Ha+=3;var Ja=a.container.offsetWidth-Ha;Ha=a.container.offsetHeight-Ha;H=H?Math.max(.3,Math.min(ea||1,Ja/Ga.width)):Da;ea=(Ja-H*Ga.width)/2/H;var ta=0==this.lightboxVerticalDivider?0:(Ha-H*Ga.height)/this.lightboxVerticalDivider/H;ma&&(ea=Math.max(ea,
-0),ta=Math.max(ta,0));if(ma||Pa.width<Ja||Pa.height<Ha)a.view.scaleAndTranslate(H,Math.floor(ea-Ga.x),Math.floor(ta-Ga.y)),a.container.scrollTop=Ca*H/Da,a.container.scrollLeft=Ia*H/Da;else if(0!=la||0!=sa)Pa=a.view.translate,a.view.setTranslate(Math.floor(Pa.x+la/Da),Math.floor(Pa.y+sa/Da))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var f=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",f);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
+this.scale*H.height*ea.height)};a.getPreferredPageSize=function(H,ea,oa){H=this.getPageLayout();ea=this.getPageSize();return new mxRectangle(0,0,H.width*ea.width,H.height*ea.height)};var b=null,e=this;if(this.editor.isChromelessView()){this.chromelessResize=b=mxUtils.bind(this,function(H,ea,oa,sa){if(null!=a.container&&!a.isViewer()){oa=null!=oa?oa:0;sa=null!=sa?sa:0;var Pa=a.pageVisible?a.view.getBackgroundPageBounds():a.getGraphBounds(),la=mxUtils.hasScrollbars(a.container),Ba=a.view.translate,
+Ca=a.view.scale,Fa=mxRectangle.fromRectangle(Pa);Fa.x=Fa.x/Ca-Ba.x;Fa.y=Fa.y/Ca-Ba.y;Fa.width/=Ca;Fa.height/=Ca;Ba=a.container.scrollTop;var Ia=a.container.scrollLeft,Ha=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)Ha+=3;var Ja=a.container.offsetWidth-Ha;Ha=a.container.offsetHeight-Ha;H=H?Math.max(.3,Math.min(ea||1,Ja/Fa.width)):Ca;ea=(Ja-H*Fa.width)/2/H;var ta=0==this.lightboxVerticalDivider?0:(Ha-H*Fa.height)/this.lightboxVerticalDivider/H;la&&(ea=Math.max(ea,
+0),ta=Math.max(ta,0));if(la||Pa.width<Ja||Pa.height<Ha)a.view.scaleAndTranslate(H,Math.floor(ea-Fa.x),Math.floor(ta-Fa.y)),a.container.scrollTop=Ba*H/Ca,a.container.scrollLeft=Ia*H/Ca;else if(0!=oa||0!=sa)Pa=a.view.translate,a.view.setTranslate(Math.floor(Pa.x+oa/Ca),Math.floor(Pa.y+sa/Ca))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var f=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",f);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
"resize",f)});this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(H){a.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(H){a.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var h=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));this.chromelessToolbar=document.createElement("div");this.chromelessToolbar.style.position=
"fixed";this.chromelessToolbar.style.overflow="hidden";this.chromelessToolbar.style.boxSizing="border-box";this.chromelessToolbar.style.whiteSpace="nowrap";this.chromelessToolbar.style.padding="10px 10px 8px 10px";this.chromelessToolbar.style.left=a.isViewer()?"0":"50%";mxClient.IS_IE||mxClient.IS_IE11?(this.chromelessToolbar.style.backgroundColor="#ffffff",this.chromelessToolbar.style.border="3px solid black"):this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,
-"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var d=mxUtils.bind(this,function(){var H=mxUtils.getCurrentStyle(a.container);a.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=H?parseInt(H["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",d);d();var g=0;d=mxUtils.bind(this,function(H,ea,la){g++;
-var sa=document.createElement("span");sa.style.paddingLeft="8px";sa.style.paddingRight="8px";sa.style.cursor="pointer";mxEvent.addListener(sa,"click",H);null!=la&&sa.setAttribute("title",la);H=document.createElement("img");H.setAttribute("border","0");H.setAttribute("src",ea);H.style.width="36px";H.style.filter="invert(100%)";sa.appendChild(H);this.chromelessToolbar.appendChild(sa);return sa});if(null!=h.backBtn){var m=Graph.sanitizeLink(h.backBtn.url);null!=m&&d(mxUtils.bind(this,function(H){window.location.href=
-m;mxEvent.consume(H)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var q=d(mxUtils.bind(this,function(H){this.actions.get("previousPage").funct();mxEvent.consume(H)}),Editor.previousImage,mxResources.get("previousPage")),k=document.createElement("div");k.style.fontFamily=Editor.defaultHtmlFont;k.style.display="inline-block";k.style.verticalAlign="top";k.style.fontWeight="bold";k.style.marginTop="8px";k.style.fontSize="14px";k.style.cursor="default";k.style.color=
-mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(k);var u=d(mxUtils.bind(this,function(H){this.actions.get("nextPage").funct();mxEvent.consume(H)}),Editor.nextImage,mxResources.get("nextPage")),w=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){k.innerText="";var H=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(k,H+1+" / "+this.pages.length);k.setAttribute("title",mxResources.get("currentPage")+": "+this.currentPage.getName());
-q.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(H-1,this.pages.length)].getName());u.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(H+1,this.pages.length)].getName())}});q.style.paddingLeft="0px";q.style.paddingRight="4px";u.style.paddingLeft="4px";u.style.paddingRight="0px";var z=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(u.style.display="",q.style.display="",k.style.display="inline-block"):
-(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 la=mxUtils.getOffset(k);ea.popup(la.x,la.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()?
+"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var d=mxUtils.bind(this,function(){var H=mxUtils.getCurrentStyle(a.container);a.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=H?parseInt(H["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",d);d();var g=0;d=mxUtils.bind(this,function(H,ea,oa){g++;
+var sa=document.createElement("span");sa.style.paddingLeft="8px";sa.style.paddingRight="8px";sa.style.cursor="pointer";mxEvent.addListener(sa,"click",H);null!=oa&&sa.setAttribute("title",oa);H=document.createElement("img");H.setAttribute("border","0");H.setAttribute("src",ea);H.style.width="36px";H.style.filter="invert(100%)";sa.appendChild(H);this.chromelessToolbar.appendChild(sa);return sa});if(null!=h.backBtn){var m=Graph.sanitizeLink(h.backBtn.url);null!=m&&d(mxUtils.bind(this,function(H){window.location.href=
+m;mxEvent.consume(H)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var p=d(mxUtils.bind(this,function(H){this.actions.get("previousPage").funct();mxEvent.consume(H)}),Editor.previousImage,mxResources.get("previousPage")),k=document.createElement("div");k.style.fontFamily=Editor.defaultHtmlFont;k.style.display="inline-block";k.style.verticalAlign="top";k.style.fontWeight="bold";k.style.marginTop="8px";k.style.fontSize="14px";k.style.cursor="default";k.style.color=
+mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(k);var u=d(mxUtils.bind(this,function(H){this.actions.get("nextPage").funct();mxEvent.consume(H)}),Editor.nextImage,mxResources.get("nextPage")),x=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){k.innerText="";var H=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(k,H+1+" / "+this.pages.length);k.setAttribute("title",mxResources.get("currentPage")+": "+this.currentPage.getName());
+p.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(H-1,this.pages.length)].getName());u.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(H+1,this.pages.length)].getName())}});p.style.paddingLeft="0px";p.style.paddingRight="4px";u.style.paddingLeft="4px";u.style.paddingRight="0px";var z=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(u.style.display="",p.style.display="",k.style.display="inline-block"):
+(u.style.display="none",p.style.display="none",k.style.display="none");x()});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 oa=mxUtils.getOffset(k);ea.popup(oa.x,oa.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",x)}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)}),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=
@@ -2164,20 +2176,20 @@ U?window.location.href=U:window.location.reload();mxEvent.consume(H)}),Editor.re
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)||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 Q=a.view.validate,P=new mxPoint,M=!1,W=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=e.currentPage&&W!=e.currentPage){W=e.currentPage;M=!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,P,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 la=a.getPageSize();H=ea.x-(this.x0||0)*la.width;ea=ea.y-(this.y0||0)*la.height;if(this.translate.x!=H||this.translate.y!=ea)this.invalidate(),this.translate.x=H,this.translate.y=ea}Q.apply(this,
-arguments)};if(!a.isViewer()){var aa=a.sizeDidChange;a.sizeDidChange=function(){var H=M;M=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var ea=this.getPageLayout(),la=this.getDefaultTranslate(ea),sa=this.view.translate.x,Pa=this.view.translate.y;if(la.x!=sa||la.y!=Pa){this.view.x0=ea.x;this.view.y0=ea.y;this.autoTranslate=!0;this.view.setTranslate(la.x,la.y);this.autoTranslate=!1;H||(this.container.scrollLeft+=Math.round((la.x-
-sa)*this.view.scale),this.container.scrollTop+=Math.round((la.y-Pa)*this.view.scale));return}}aa.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 qa=null,O=null,Z=null,ca=null,V=null,ja=function(H){null!=qa&&window.clearTimeout(qa);0<=H&&window.setTimeout(function(){if(!a.isMouseDown||ca)qa=window.setTimeout(mxUtils.bind(this,function(){a.isFastZoomEnabled()&&
-(null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform",null)),oa.style.transformOrigin="",ia.style.transformOrigin="",mxClient.IS_SF?(oa.style.transform="scale(1)",ia.style.transform="scale(1)",window.setTimeout(function(){oa.style.transform="";ia.style.transform=""},0)):(oa.style.transform="",ia.style.transform=""),
-a.view.getDecoratorPane().style.opacity="",a.view.getOverlayPane().style.opacity="");var ea=new mxPoint(a.container.scrollLeft,a.container.scrollTop),la=mxUtils.getOffset(a.container),sa=a.view.scale,Pa=0,ma=0;null!=O&&(Pa=a.container.offsetWidth/2-O.x+la.x,ma=a.container.offsetHeight/2-O.y+la.y);a.zoom(a.cumulativeZoomFactor,null,a.isFastZoomEnabled()?20:null);a.view.scale!=sa&&(null!=Z&&(Pa+=ea.x-Z.x,ma+=ea.y-Z.y),null!=b&&e.chromelessResize(!1,null,Pa*(a.cumulativeZoomFactor-1),ma*(a.cumulativeZoomFactor-
-1)),!mxUtils.hasScrollbars(a.container)||0==Pa&&0==ma||(a.container.scrollLeft-=Pa*(a.cumulativeZoomFactor-1),a.container.scrollTop-=ma*(a.cumulativeZoomFactor-1)));null!=V&&oa.setAttribute("filter",V);a.cumulativeZoomFactor=1;V=ca=O=Z=qa=null}),null!=H?H:a.isFastZoomEnabled()?e.wheelZoomDelay:e.lazyZoomDelay)},0)};a.lazyZoom=function(H,ea,la,sa){sa=null!=sa?sa:this.zoomFactor;(ea=ea||!a.scrollbars)&&(O=new mxPoint(a.container.offsetLeft+a.container.clientWidth/2,a.container.offsetTop+a.container.clientHeight/
+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 Q=a.view.validate,P=new mxPoint,M=!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;M=!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,P,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 oa=a.getPageSize();H=ea.x-(this.x0||0)*oa.width;ea=ea.y-(this.y0||0)*oa.height;if(this.translate.x!=H||this.translate.y!=ea)this.invalidate(),this.translate.x=H,this.translate.y=ea}Q.apply(this,
+arguments)};if(!a.isViewer()){var aa=a.sizeDidChange;a.sizeDidChange=function(){var H=M;M=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var ea=this.getPageLayout(),oa=this.getDefaultTranslate(ea),sa=this.view.translate.x,Pa=this.view.translate.y;if(oa.x!=sa||oa.y!=Pa){this.view.x0=ea.x;this.view.y0=ea.y;this.autoTranslate=!0;this.view.setTranslate(oa.x,oa.y);this.autoTranslate=!1;H||(this.container.scrollLeft+=Math.round((oa.x-
+sa)*this.view.scale),this.container.scrollTop+=Math.round((oa.y-Pa)*this.view.scale));return}}aa.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var ia=a.view.getBackgroundPane(),na=a.view.getDrawPane();a.cumulativeZoomFactor=1;var qa=null,O=null,Z=null,ca=null,W=null,ja=function(H){null!=qa&&window.clearTimeout(qa);0<=H&&window.setTimeout(function(){if(!a.isMouseDown||ca)qa=window.setTimeout(mxUtils.bind(this,function(){a.isFastZoomEnabled()&&
+(null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform",null)),na.style.transformOrigin="",ia.style.transformOrigin="",mxClient.IS_SF?(na.style.transform="scale(1)",ia.style.transform="scale(1)",window.setTimeout(function(){na.style.transform="";ia.style.transform=""},0)):(na.style.transform="",ia.style.transform=""),
+a.view.getDecoratorPane().style.opacity="",a.view.getOverlayPane().style.opacity="");var ea=new mxPoint(a.container.scrollLeft,a.container.scrollTop),oa=mxUtils.getOffset(a.container),sa=a.view.scale,Pa=0,la=0;null!=O&&(Pa=a.container.offsetWidth/2-O.x+oa.x,la=a.container.offsetHeight/2-O.y+oa.y);a.zoom(a.cumulativeZoomFactor,null,a.isFastZoomEnabled()?20:null);a.view.scale!=sa&&(null!=Z&&(Pa+=ea.x-Z.x,la+=ea.y-Z.y),null!=b&&e.chromelessResize(!1,null,Pa*(a.cumulativeZoomFactor-1),la*(a.cumulativeZoomFactor-
+1)),!mxUtils.hasScrollbars(a.container)||0==Pa&&0==la||(a.container.scrollLeft-=Pa*(a.cumulativeZoomFactor-1),a.container.scrollTop-=la*(a.cumulativeZoomFactor-1)));null!=W&&na.setAttribute("filter",W);a.cumulativeZoomFactor=1;W=ca=O=Z=qa=null}),null!=H?H:a.isFastZoomEnabled()?e.wheelZoomDelay:e.lazyZoomDelay)},0)};a.lazyZoom=function(H,ea,oa,sa){sa=null!=sa?sa:this.zoomFactor;(ea=ea||!a.scrollbars)&&(O=new mxPoint(a.container.offsetLeft+a.container.clientWidth/2,a.container.offsetTop+a.container.clientHeight/
2));H?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=sa,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale-.05)/this.view.scale:(this.cumulativeZoomFactor/=sa,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale);
-this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,160))/this.view.scale;if(a.isFastZoomEnabled()){null==V&&""!=oa.getAttribute("filter")&&(V=oa.getAttribute("filter"),oa.removeAttribute("filter"));Z=new mxPoint(a.container.scrollLeft,a.container.scrollTop);H=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);sa=ea||null==O?a.container.scrollLeft+a.container.clientWidth/2:O.x+a.container.scrollLeft-a.container.offsetLeft;
-var Pa=ea||null==O?a.container.scrollTop+a.container.clientHeight/2:O.y+a.container.scrollTop-a.container.offsetTop;oa.style.transformOrigin=sa+"px "+Pa+"px";oa.style.transform="scale("+H+")";ia.style.transformOrigin=sa+"px "+Pa+"px";ia.style.transform="scale("+H+")";null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node?(sa=a.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(sa.style,"transform-origin",(ea||null==O?a.container.clientWidth/2+a.container.scrollLeft-sa.offsetLeft+
+this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,160))/this.view.scale;if(a.isFastZoomEnabled()){null==W&&""!=na.getAttribute("filter")&&(W=na.getAttribute("filter"),na.removeAttribute("filter"));Z=new mxPoint(a.container.scrollLeft,a.container.scrollTop);H=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);sa=ea||null==O?a.container.scrollLeft+a.container.clientWidth/2:O.x+a.container.scrollLeft-a.container.offsetLeft;
+var Pa=ea||null==O?a.container.scrollTop+a.container.clientHeight/2:O.y+a.container.scrollTop-a.container.offsetTop;na.style.transformOrigin=sa+"px "+Pa+"px";na.style.transform="scale("+H+")";ia.style.transformOrigin=sa+"px "+Pa+"px";ia.style.transform="scale("+H+")";null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node?(sa=a.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(sa.style,"transform-origin",(ea||null==O?a.container.clientWidth/2+a.container.scrollLeft-sa.offsetLeft+
"px":O.x+a.container.scrollLeft-sa.offsetLeft-a.container.offsetLeft+"px")+" "+(ea||null==O?a.container.clientHeight/2+a.container.scrollTop-sa.offsetTop+"px":O.y+a.container.scrollTop-sa.offsetTop-a.container.offsetTop+"px")),mxUtils.setPrefixedStyle(sa.style,"transform","scale("+H+")")):a.view.validateBackgroundStyles(H,sa,Pa);a.view.getDecoratorPane().style.opacity="0";a.view.getOverlayPane().style.opacity="0";null!=e.hoverIcons&&e.hoverIcons.reset();a.fireEvent(new mxEventObject("zoomPreview",
-"factor",H))}ja(a.isFastZoomEnabled()?la:0)};mxEvent.addGestureListeners(a.container,function(H){null!=qa&&window.clearTimeout(qa)},null,function(H){1!=a.cumulativeZoomFactor&&ja(0)});mxEvent.addListener(a.container,"scroll",function(H){null==qa||a.isMouseDown||1==a.cumulativeZoomFactor||ja(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(H,ea,la,sa,Pa){a.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!a.scrollbars&&!la&&a.isScrollWheelEvent(H))la=
-a.view.getTranslate(),sa=40/a.view.scale,mxEvent.isShiftDown(H)?a.view.setTranslate(la.x+(ea?-sa:sa),la.y):a.view.setTranslate(la.x,la.y+(ea?sa:-sa));else if(la||a.isZoomWheelEvent(H))for(var ma=mxEvent.getSource(H);null!=ma;){if(ma==a.container)return a.tooltipHandler.hideTooltip(),O=null!=sa&&null!=Pa?new mxPoint(sa,Pa):new mxPoint(mxEvent.getClientX(H),mxEvent.getClientY(H)),ca=la,la=a.zoomFactor,sa=null,H.ctrlKey&&null!=H.deltaY&&40>Math.abs(H.deltaY)&&Math.round(H.deltaY)!=H.deltaY?la=1+Math.abs(H.deltaY)/
-20*(la-1):null!=H.movementY&&"pointermove"==H.type&&(la=1+Math.max(1,Math.abs(H.movementY))/20*(la-1),sa=-1),a.lazyZoom(ea,null,sa,la),mxEvent.consume(H),!1;ma=ma.parentNode}}),a.container);a.panningHandler.zoomGraph=function(H){a.cumulativeZoomFactor=H.scale;a.lazyZoom(0<H.scale,!0);mxEvent.consume(H)}};EditorUi.prototype.addChromelessToolbarItems=function(a){a(mxUtils.bind(this,function(b){this.actions.get("print").funct();mxEvent.consume(b)}),Editor.printImage,mxResources.get("print"))};
+"factor",H))}ja(a.isFastZoomEnabled()?oa:0)};mxEvent.addGestureListeners(a.container,function(H){null!=qa&&window.clearTimeout(qa)},null,function(H){1!=a.cumulativeZoomFactor&&ja(0)});mxEvent.addListener(a.container,"scroll",function(H){null==qa||a.isMouseDown||1==a.cumulativeZoomFactor||ja(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(H,ea,oa,sa,Pa){a.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!a.scrollbars&&!oa&&a.isScrollWheelEvent(H))oa=
+a.view.getTranslate(),sa=40/a.view.scale,mxEvent.isShiftDown(H)?a.view.setTranslate(oa.x+(ea?-sa:sa),oa.y):a.view.setTranslate(oa.x,oa.y+(ea?sa:-sa));else if(oa||a.isZoomWheelEvent(H))for(var la=mxEvent.getSource(H);null!=la;){if(la==a.container)return a.tooltipHandler.hideTooltip(),O=null!=sa&&null!=Pa?new mxPoint(sa,Pa):new mxPoint(mxEvent.getClientX(H),mxEvent.getClientY(H)),ca=oa,oa=a.zoomFactor,sa=null,H.ctrlKey&&null!=H.deltaY&&40>Math.abs(H.deltaY)&&Math.round(H.deltaY)!=H.deltaY?oa=1+Math.abs(H.deltaY)/
+20*(oa-1):null!=H.movementY&&"pointermove"==H.type&&(oa=1+Math.max(1,Math.abs(H.movementY))/20*(oa-1),sa=-1),a.lazyZoom(ea,null,sa,oa),mxEvent.consume(H),!1;la=la.parentNode}}),a.container);a.panningHandler.zoomGraph=function(H){a.cumulativeZoomFactor=H.scale;a.lazyZoom(0<H.scale,!0);mxEvent.consume(H)}};EditorUi.prototype.addChromelessToolbarItems=function(a){a(mxUtils.bind(this,function(b){this.actions.get("print").funct();mxEvent.consume(b)}),Editor.printImage,mxResources.get("print"))};
EditorUi.prototype.isPagesEnabled=function(){return this.editor.editable||"1"!=urlParams["hide-pages"]};EditorUi.prototype.createTemporaryGraph=function(a){return Graph.createOffscreenGraph(a)};EditorUi.prototype.addChromelessClickHandler=function(){var a=urlParams.highlight;null!=a&&0<a.length&&(a="#"+a);this.editor.graph.addClickHandler(a)};
EditorUi.prototype.toggleFormatPanel=function(a){a=null!=a?a:0==this.formatWidth;null!=this.format&&(this.formatWidth=a?240:0,this.formatContainer.style.width=this.formatWidth+"px",this.refresh(),this.format.refresh(),this.fireEvent(new mxEventObject("formatWidthChanged")))};EditorUi.prototype.isFormatPanelVisible=function(){return 0<this.formatWidth};
EditorUi.prototype.lightboxFit=function(a){if(this.isDiagramEmpty())this.editor.graph.view.setScale(1);else{var b=urlParams.border,e=60;null!=b&&(e=parseInt(b));this.editor.graph.maxFitScale=this.lightboxMaxFitScale;this.editor.graph.fit(e,null,null,null,null,null,a);this.editor.graph.maxFitScale=null}};EditorUi.prototype.isDiagramEmpty=function(){var a=this.editor.graph.getModel();return 1==a.getChildCount(a.root)&&0==a.getChildCount(a.getChildAt(a.root,0))};
@@ -2198,7 +2210,7 @@ b.scrollTop=Math.floor(Math.max(0,e.y-Math.max(20,(b.clientHeight-f)/4)))}else{e
EditorUi.prototype.setPageVisible=function(a){var b=this.editor.graph,e=mxUtils.hasScrollbars(b.container),f=0,h=0;e&&(f=b.view.translate.x*b.view.scale-b.container.scrollLeft,h=b.view.translate.y*b.view.scale-b.container.scrollTop);b.pageVisible=a;b.pageBreaksVisible=a;b.preferPageSize=a;b.view.validateBackground();if(e){var d=b.getSelectionCells();b.clearSelection();b.setSelectionCells(d)}b.sizeDidChange();e&&(b.container.scrollLeft=b.view.translate.x*b.view.scale-f,b.container.scrollTop=b.view.translate.y*
b.view.scale-h);b.defaultPageVisible=a;this.fireEvent(new mxEventObject("pageViewChanged"))};
EditorUi.prototype.installResizeHandler=function(a,b,e){b&&(a.window.setSize=function(h,d){if(!this.minimized){var g=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;h=Math.min(h,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());d=Math.min(d,g-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});a.window.setLocation=function(h,d){var g=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
-m=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,q=parseInt(this.div.style.width),k=parseInt(this.div.style.height);h=Math.max(0,Math.min(h,g-q));d=Math.max(0,Math.min(d,m-k));this.getX()==h&&this.getY()==d||mxWindow.prototype.setLocation.apply(this,arguments);b&&!this.minimized&&this.setSize(q,k)};var f=mxUtils.bind(this,function(){var h=a.window.getX(),d=a.window.getY();a.window.setLocation(h,d)});mxEvent.addListener(window,"resize",f);a.destroy=function(){mxEvent.removeListener(window,
+m=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,p=parseInt(this.div.style.width),k=parseInt(this.div.style.height);h=Math.max(0,Math.min(h,g-p));d=Math.max(0,Math.min(d,m-k));this.getX()==h&&this.getY()==d||mxWindow.prototype.setLocation.apply(this,arguments);b&&!this.minimized&&this.setSize(p,k)};var f=mxUtils.bind(this,function(){var h=a.window.getX(),d=a.window.getY();a.window.setLocation(h,d)});mxEvent.addListener(window,"resize",f);a.destroy=function(){mxEvent.removeListener(window,
"resize",f);a.window.destroy();null!=e&&e()}};function ChangeGridColor(a,b){this.ui=a;this.color=b}ChangeGridColor.prototype.execute=function(){var a=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=a};(function(){var a=new mxObjectCodec(new ChangeGridColor,["ui"]);mxCodecRegistry.register(a)})();
function ChangePageSetup(a,b,e,f,h){this.ui=a;this.previousColor=this.color=b;this.previousImage=this.image=e;this.previousFormat=this.format=f;this.previousPageScale=this.pageScale=h;this.ignoreImage=this.ignoreColor=!1}
ChangePageSetup.prototype.execute=function(){var a=this.ui.editor.graph;if(!this.ignoreColor){this.color=this.previousColor;var b=a.background;this.ui.setBackgroundColor(this.previousColor);this.previousColor=b}if(!this.ignoreImage){this.image=this.previousImage;b=a.backgroundImage;var e=this.previousImage;null!=e&&Graph.isPageLink(e.src)&&(e=this.ui.createImageForPageLink(e.src,this.ui.currentPage));this.ui.setBackgroundImage(e);this.previousImage=b}null!=this.previousFormat&&(this.format=this.previousFormat,
@@ -2234,22 +2246,22 @@ EditorUi.prototype.setStatusText=function(a){this.statusContainer.innerHTML=Grap
"transition","all 0.2s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(e,100);mxUtils.setPrefixedStyle(e.style,"transform","scaleX(1)");mxUtils.setPrefixedStyle(e.style,"transition","all 1s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(e.style,"transform","scaleX(0)");mxUtils.setOpacity(e,0);window.setTimeout(mxUtils.bind(this,function(){null!=e.parentNode&&e.parentNode.removeChild(e)}),1E3)}),Editor.updateStatusInterval/2)}),0)})(a[b])};
EditorUi.prototype.createStatusDiv=function(a){var b=document.createElement("div");b.style.textOverflow="ellipsis";b.style.display="inline-block";b.style.whiteSpace="nowrap";b.style.overflow="hidden";b.style.minWidth="0";b.setAttribute("title",a);b.innerHTML=Graph.sanitizeHtml(a);return b};EditorUi.prototype.createToolbar=function(a){return new Toolbar(this,a)};EditorUi.prototype.createSidebar=function(a){return new Sidebar(this,a)};
EditorUi.prototype.createFormat=function(a){return new Format(this,a)};EditorUi.prototype.createFooter=function(){return this.createDiv("geFooter")};EditorUi.prototype.createDiv=function(a){var b=document.createElement("div");b.className=a;return b};
-EditorUi.prototype.addSplitHandler=function(a,b,e,f){function h(w){if(null!=g){var z=new mxPoint(mxEvent.getClientX(w),mxEvent.getClientY(w));f(Math.max(0,m+(b?z.x-g.x:g.y-z.y)-e));mxEvent.consume(w);m!=u()&&(q=!0,k=null)}}function d(w){h(w);g=m=null}var g=null,m=null,q=!0,k=null;mxClient.IS_POINTER&&(a.style.touchAction="none");var u=mxUtils.bind(this,function(){var w=parseInt(b?a.style.left:a.style.bottom);b||(w=w+e-this.footerHeight);return w});mxEvent.addGestureListeners(a,function(w){g=new mxPoint(mxEvent.getClientX(w),
-mxEvent.getClientY(w));m=u();q=!1;mxEvent.consume(w)});mxEvent.addListener(a,"click",mxUtils.bind(this,function(w){if(!q&&this.hsplitClickEnabled){var z=null!=k?k-e:0;k=u();f(z);mxEvent.consume(w)}}));mxEvent.addGestureListeners(document,null,h,d);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,h,d)})};
+EditorUi.prototype.addSplitHandler=function(a,b,e,f){function h(x){if(null!=g){var z=new mxPoint(mxEvent.getClientX(x),mxEvent.getClientY(x));f(Math.max(0,m+(b?z.x-g.x:g.y-z.y)-e));mxEvent.consume(x);m!=u()&&(p=!0,k=null)}}function d(x){h(x);g=m=null}var g=null,m=null,p=!0,k=null;mxClient.IS_POINTER&&(a.style.touchAction="none");var u=mxUtils.bind(this,function(){var x=parseInt(b?a.style.left:a.style.bottom);b||(x=x+e-this.footerHeight);return x});mxEvent.addGestureListeners(a,function(x){g=new mxPoint(mxEvent.getClientX(x),
+mxEvent.getClientY(x));m=u();p=!1;mxEvent.consume(x)});mxEvent.addListener(a,"click",mxUtils.bind(this,function(x){if(!p&&this.hsplitClickEnabled){var z=null!=k?k-e:0;k=u();f(z);mxEvent.consume(x)}}));mxEvent.addGestureListeners(document,null,h,d);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,h,d)})};
EditorUi.prototype.prompt=function(a,b,e){a=new FilenameDialog(this,b,mxResources.get("apply"),function(f){e(parseFloat(f))},a);this.showDialog(a.container,300,80,!0,!0);a.init()};
EditorUi.prototype.handleError=function(a,b,e,f,h){a=null!=a&&null!=a.error?a.error:a;if(null!=a||null!=b){h=mxUtils.htmlEntities(mxResources.get("unknownError"));var d=mxResources.get("ok");b=null!=b?b:mxResources.get("error");null!=a&&null!=a.message&&(h=mxUtils.htmlEntities(a.message));this.showError(b,h,d,e,null,null,null,null,null,null,null,null,f?e:null)}else null!=e&&e()};
-EditorUi.prototype.showError=function(a,b,e,f,h,d,g,m,q,k,u,w,z){a=new ErrorDialog(this,a,b,e||mxResources.get("ok"),f,h,d,g,w,m,q);b=Math.ceil(null!=b?b.length/50:1);this.showDialog(a.container,k||340,u||100+20*b,!0,!1,z);a.init()};EditorUi.prototype.showDialog=function(a,b,e,f,h,d,g,m,q,k){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,a,b,e,f,h,d,g,m,q,k);this.dialogs.push(this.dialog)};
+EditorUi.prototype.showError=function(a,b,e,f,h,d,g,m,p,k,u,x,z){a=new ErrorDialog(this,a,b,e||mxResources.get("ok"),f,h,d,g,x,m,p);b=Math.ceil(null!=b?b.length/50:1);this.showDialog(a.container,k||340,u||100+20*b,!0,!1,z);a.init()};EditorUi.prototype.showDialog=function(a,b,e,f,h,d,g,m,p,k){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,a,b,e,f,h,d,g,m,p,k);this.dialogs.push(this.dialog)};
EditorUi.prototype.hideDialog=function(a,b,e){var f=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var h=this.dialogs.length-1;0<=h;h--)if(!this.dialogs[h].closing){f=this.dialogs[h];break}null==f||null!=e&&e!=this.dialog.container.firstChild||(f.closing=!0,0==f.close(a,b)?delete f.closing:(delete f.closing,a=mxUtils.lastIndexOf(this.dialogs,f),0<=a&&this.dialogs.splice(a,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog",
"dialog",f)),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null==this.editor||null!=this.dialogs&&0!=this.dialogs.length||(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};
EditorUi.prototype.ctrlEnter=function(){var a=this.editor.graph;if(a.isEnabled())try{for(var b=a.getSelectionCells(),e=new mxDictionary,f=[],h=0;h<b.length;h++){var d=a.isTableCell(b[h])?a.model.getParent(b[h]):b[h];null==d||e.get(d)||(e.put(d,!0),f.push(d))}a.setSelectionCells(a.duplicateCells(f,!1))}catch(g){this.handleError(g)}};
-EditorUi.prototype.pickColor=function(a,b,e,f,h){var d=this.editor.graph,g=d.cellEditor.saveSelection(),m=(h?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));a=new ColorDialog(this,a,function(q){d.cellEditor.restoreSelection(g);b(q)},function(){d.cellEditor.restoreSelection(g)},e,f,h);this.showDialog(a.container,230,m,!0,!1);a.init()};
+EditorUi.prototype.pickColor=function(a,b,e,f,h){var d=this.editor.graph,g=d.cellEditor.saveSelection(),m=(h?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));a=new ColorDialog(this,a,function(p){d.cellEditor.restoreSelection(g);b(p)},function(){d.cellEditor.restoreSelection(g)},e,f,h);this.showDialog(a.container,230,m,!0,!1);a.init()};
EditorUi.prototype.openFile=function(){window.openFile=new OpenFile(mxUtils.bind(this,function(a){this.hideDialog(a)}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:320,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null})};
-EditorUi.prototype.base64ToBlob=function(a,b){b=b||"";a=atob(a);for(var e=a.length,f=Math.ceil(e/1024),h=Array(f),d=0;d<f;++d){for(var g=1024*d,m=Math.min(g+1024,e),q=Array(m-g),k=0;g<m;++k,++g)q[k]=a[g].charCodeAt(0);h[d]=new Uint8Array(q)}return new Blob(h,{type:b})};
+EditorUi.prototype.base64ToBlob=function(a,b){b=b||"";a=atob(a);for(var e=a.length,f=Math.ceil(e/1024),h=Array(f),d=0;d<f;++d){for(var g=1024*d,m=Math.min(g+1024,e),p=Array(m-g),k=0;g<m;++k,++g)p[k]=a[g].charCodeAt(0);h[d]=new Uint8Array(p)}return new Blob(h,{type:b})};
EditorUi.prototype.writeImageToClipboard=function(a,b,e,f){var h=this.base64ToBlob(a.substring(a.indexOf(",")+1),"image/png");a=new ClipboardItem({"image/png":h,"text/html":new Blob(['<img src="'+a+'" width="'+b+'" height="'+e+'">'],{type:"text/html"})});navigator.clipboard.write([a])["catch"](f)};EditorUi.prototype.writeHtmlToClipboard=function(a,b){a=new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(a)],{type:"text/plain"}),"text/html":new Blob([a],{type:"text/html"})});navigator.clipboard.write([a])["catch"](b)};
EditorUi.prototype.writeTextToClipboard=function(a,b){navigator.clipboard.writeText(a)["catch"](b)};EditorUi.prototype.extractGraphModelFromHtml=function(a){var b=null;try{var e=a.indexOf("&lt;mxGraphModel ");if(0<=e){var f=a.lastIndexOf("&lt;/mxGraphModel&gt;");f>e&&(b=a.substring(e,f+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(h){}return b};
EditorUi.prototype.readGraphModelFromClipboard=function(a){this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(b){null!=b?a(b):this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(e){if(null!=e){var f=decodeURIComponent(e);this.isCompatibleString(f)&&(e=f)}a(e)}),"text")}),"html")};
EditorUi.prototype.readGraphModelFromClipboardWithType=function(a,b){navigator.clipboard.read().then(mxUtils.bind(this,function(e){if(null!=e&&0<e.length&&"html"==b&&0<=mxUtils.indexOf(e[0].types,"text/html"))e[0].getType("text/html").then(mxUtils.bind(this,function(f){f.text().then(mxUtils.bind(this,function(h){try{var d=this.parseHtmlData(h),g="text/plain"!=d.getAttribute("data-type")?d.innerHTML:mxUtils.trim(null==d.innerText?mxUtils.getTextContent(d):d.innerText);try{var m=g.lastIndexOf("%3E");
-0<=m&&m<g.length-3&&(g=g.substring(0,m+3))}catch(u){}try{var q=d.getElementsByTagName("span"),k=null!=q&&0<q.length?mxUtils.trim(decodeURIComponent(q[0].textContent)):decodeURIComponent(g);this.isCompatibleString(k)&&(g=k)}catch(u){}}catch(u){}a(this.isCompatibleString(g)?g:null)}))["catch"](function(h){a(null)})}))["catch"](function(f){a(null)});else if(null!=e&&0<e.length&&"text"==b&&0<=mxUtils.indexOf(e[0].types,"text/plain"))e[0].getType("text/plain").then(function(f){f.text().then(function(h){a(h)})["catch"](function(){a(null)})})["catch"](function(){a(null)});
+0<=m&&m<g.length-3&&(g=g.substring(0,m+3))}catch(u){}try{var p=d.getElementsByTagName("span"),k=null!=p&&0<p.length?mxUtils.trim(decodeURIComponent(p[0].textContent)):decodeURIComponent(g);this.isCompatibleString(k)&&(g=k)}catch(u){}}catch(u){}a(this.isCompatibleString(g)?g:null)}))["catch"](function(h){a(null)})}))["catch"](function(f){a(null)});else if(null!=e&&0<e.length&&"text"==b&&0<=mxUtils.indexOf(e[0].types,"text/plain"))e[0].getType("text/plain").then(function(f){f.text().then(function(h){a(h)})["catch"](function(){a(null)})})["catch"](function(){a(null)});
else a(null)}))["catch"](function(e){a(null)})};
EditorUi.prototype.parseHtmlData=function(a){var b=null;if(null!=a&&0<a.length){var e="<meta "==a.substring(0,6);b=document.createElement("div");b.innerHTML=(e?'<meta charset="utf-8">':"")+Graph.sanitizeHtml(a);asHtml=!0;a=b.getElementsByTagName("style");if(null!=a)for(;0<a.length;)a[0].parentNode.removeChild(a[0]);null!=b.firstChild&&b.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=b.firstChild.nextSibling&&b.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==b.firstChild.nodeName&&
"A"==b.firstChild.nextSibling.nodeName&&null==b.firstChild.nextSibling.nextSibling&&(a=null==b.firstChild.nextSibling.innerText?mxUtils.getTextContent(b.firstChild.nextSibling):b.firstChild.nextSibling.innerText,a==b.firstChild.nextSibling.getAttribute("href")&&(mxUtils.setTextContent(b,a),asHtml=!1));e=e&&null!=b.firstChild?b.firstChild.nextSibling:b.firstChild;null!=e&&null==e.nextSibling&&e.nodeType==mxConstants.NODETYPE_ELEMENT&&"IMG"==e.nodeName?(a=e.getAttribute("src"),null!=a&&(Editor.isPngDataUrl(a)&&
@@ -2265,14 +2277,14 @@ EditorUi.prototype.showDataDialog=function(a){null!=a&&"undefined"!==typeof wind
EditorUi.prototype.showBackgroundImageDialog=function(a,b){a=null!=a?a:mxUtils.bind(this,function(f){f=new ChangePageSetup(this,null,f);f.ignoreColor=!0;this.editor.graph.model.execute(f)});var e=mxUtils.prompt(mxResources.get("backgroundImage"),null!=b?b.src:"");null!=e&&0<e.length?(b=new Image,b.onload=function(){a(new mxImage(e,b.width,b.height),!1)},b.onerror=function(){a(null,!0);mxUtils.alert(mxResources.get("fileNotFound"))},b.src=e):a(null)};
EditorUi.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 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 T=L.roundLength(L.currentDx/I),K=L.roundLength(L.currentDy/I);L.moveCells(L.cells,T,K);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)&&(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],
-!1)):f.setSelectionCell(C[C.length-1]),f.scrollCellToVisible(f.getSelectionCell()),null!=e.hoverIcons&&e.hoverIcons.update(f.view.getState(f.getSelectionCell())))}}else return this.isControlDown(w)?function(){b(w.keyCode,mxEvent.isShiftDown(w)?f.gridSize:null,!0)}:function(){b(w.keyCode,mxEvent.isShiftDown(w)?f.gridSize:null)}}return q.apply(this,arguments)};h.bindAction=mxUtils.bind(this,function(w,z,C,E){var D=this.actions.get(C);null!=D&&(C=function(){D.isEnabled()&&D.funct.apply(this,arguments)},
-z?E?h.bindControlShiftKey(w,C):h.bindControlKey(w,C):E?h.bindShiftKey(w,C):h.bindKey(w,C))});var k=this,u=h.escape;h.escape=function(w){u.apply(this,arguments)};h.enter=function(){};h.bindControlShiftKey(36,function(){f.exitGroup()});h.bindControlShiftKey(35,function(){f.enterGroup()});h.bindShiftKey(36,function(){f.home()});h.bindKey(35,function(){f.refresh()});h.bindAction(80,!0,"print");h.bindAction(107,!0,"zoomIn");h.bindAction(109,!0,"zoomOut");h.bindAction(61,!0,"zoomIn");h.bindAction(187,!0,
+EditorUi.prototype.createKeyHandler=function(a){function b(x,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==x?G.width=Math.max(0,G.width-z):38==x?G.height=Math.max(0,G.height-z):39==x?G.width+=z:40==x&&(G.height+=z),f.getModel().setGeometry(E[D],
+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==x||38==x?f.model.add(G,D,Math.max(0,z-1)):(39==x||40==x)&&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==x?E=-z:38==x?D=-z:39==x?E=z:40==x&&(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 T=L.roundLength(L.currentDx/I),K=L.roundLength(L.currentDy/I);L.moveCells(L.cells,T,K);L.reset()}},400))}}}}var e=this,f=this.editor.graph,h=new mxKeyHandler(f),d=h.isEventIgnored;h.isEventIgnored=function(x){return!(mxEvent.isShiftDown(x)&&9==x.keyCode)&&(!this.isControlDown(x)||mxEvent.isShiftDown(x)||
+90!=x.keyCode&&89!=x.keyCode&&188!=x.keyCode&&190!=x.keyCode&&85!=x.keyCode)&&(66!=x.keyCode&&73!=x.keyCode||!this.isControlDown(x)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=x.keyCode&&107!=x.keyCode||!this.isControlDown(x)&&!mxEvent.isShiftDown(x)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&d.apply(this,arguments)};h.isEnabledForEvent=function(x){return!mxEvent.isConsumed(x)&&this.isGraphEvent(x)&&this.isEnabled()&&(null==
+e.dialogs||0==e.dialogs.length)};h.isControlDown=function(x){return mxEvent.isControlDown(x)||mxClient.IS_MAC&&x.metaKey};var g=null,m={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},p=h.getFunction;mxKeyHandler.prototype.getFunction=function(x){if(f.isEnabled()){var z=null;mxEvent.isShiftDown(x)&&this.isControlDown(x)&&mxEvent.isAltDown(x)?z=e.actions.get(e.ctrlAltShiftActions[x.keyCode]):mxEvent.isShiftDown(x)&&mxEvent.isAltDown(x)?
+z=e.actions.get(e.altShiftActions[x.keyCode]):this.isControlDown(x)&&mxEvent.isAltDown(x)&&(z=e.actions.get(e.ctrlAltActions[x.keyCode]));if(null!=z)return z.funct;if(null!=m[x.keyCode]&&!f.isSelectionEmpty())if(!this.isControlDown(x)&&mxEvent.isShiftDown(x)&&mxEvent.isAltDown(x)){if(f.model.isVertex(f.getSelectionCell()))return function(){var C=f.connectVertex(f.getSelectionCell(),m[x.keyCode],f.defaultEdgeLength,x,!0);null!=C&&0<C.length&&(1==C.length&&f.model.isEdge(C[0])?f.setSelectionCell(f.model.getTerminal(C[0],
+!1)):f.setSelectionCell(C[C.length-1]),f.scrollCellToVisible(f.getSelectionCell()),null!=e.hoverIcons&&e.hoverIcons.update(f.view.getState(f.getSelectionCell())))}}else return this.isControlDown(x)?function(){b(x.keyCode,mxEvent.isShiftDown(x)?f.gridSize:null,!0)}:function(){b(x.keyCode,mxEvent.isShiftDown(x)?f.gridSize:null)}}return p.apply(this,arguments)};h.bindAction=mxUtils.bind(this,function(x,z,C,E){var D=this.actions.get(C);null!=D&&(C=function(){D.isEnabled()&&D.funct.apply(this,arguments)},
+z?E?h.bindControlShiftKey(x,C):h.bindControlKey(x,C):E?h.bindShiftKey(x,C):h.bindKey(x,C))});var k=this,u=h.escape;h.escape=function(x){u.apply(this,arguments)};h.enter=function(){};h.bindControlShiftKey(36,function(){f.exitGroup()});h.bindControlShiftKey(35,function(){f.enterGroup()});h.bindShiftKey(36,function(){f.home()});h.bindKey(35,function(){f.refresh()});h.bindAction(80,!0,"print");h.bindAction(107,!0,"zoomIn");h.bindAction(109,!0,"zoomOut");h.bindAction(61,!0,"zoomIn");h.bindAction(187,!0,
"zoomIn");h.bindAction(222,!0,"zoomIn");h.bindAction(173,!0,"zoomOut");h.bindAction(189,!0,"zoomOut");if(!this.editor.chromeless||this.editor.editable)h.bindAction(79,!0,"outline",!0),h.bindControlKey(36,function(){f.isEnabled()&&f.foldCells(!0)}),h.bindControlKey(35,function(){f.isEnabled()&&f.foldCells(!1)}),h.bindControlKey(13,function(){k.ctrlEnter()}),h.bindAction(8,!1,"delete"),h.bindAction(8,!0,"deleteAll"),h.bindAction(8,!1,"deleteLabels",!0),h.bindAction(46,!1,"delete"),h.bindAction(46,!0,
"deleteAll"),h.bindAction(46,!1,"deleteLabels",!0),h.bindAction(36,!1,"resetView"),h.bindAction(72,!0,"fitWindow",!0),h.bindAction(74,!0,"fitPage"),h.bindAction(74,!0,"fitTwoPages",!0),h.bindAction(48,!0,"customZoom"),h.bindAction(82,!0,"turn"),h.bindAction(82,!0,"clearDefaultStyle",!0),h.bindAction(83,!0,"save"),h.bindAction(83,!0,"saveAs",!0),h.bindAction(65,!0,"selectAll"),h.bindAction(65,!0,"selectNone",!0),h.bindAction(73,!0,"selectVertices",!0),h.bindAction(69,!0,"selectEdges",!0),h.bindAction(69,
!0,"editStyle"),h.bindAction(66,!0,"bold"),h.bindAction(66,!0,"toBack",!0),h.bindAction(70,!0,"toFront",!0),h.bindAction(68,!0,"duplicate"),h.bindAction(68,!0,"setAsDefaultStyle",!0),h.bindAction(90,!0,"undo"),h.bindAction(90,!0,"redo",!0),h.bindAction(89,!0,"redo"),h.bindAction(89,!0,"autosize",!0),h.bindAction(88,!0,"cut"),h.bindAction(67,!0,"copy"),h.bindAction(86,!0,"paste"),h.bindAction(71,!0,"group"),h.bindAction(77,!0,"editData"),h.bindAction(71,!0,"grid",!0),h.bindAction(73,!0,"italic"),h.bindAction(76,
@@ -2301,11 +2313,11 @@ Sidebar.prototype.getTooltipOffset=function(a,b){if(mxUtils.isAncestorNode(this.
2-b.height/2-6)};
Sidebar.prototype.createMoreShapes=function(){var a=this.editorUi.createDiv("geSidebarFooter");a.style.position="absolute";a.style.overflow="hidden";a.style.display="inline-flex";a.style.alignItems="center";a.style.justifyContent="center";a.style.width="100%";a.style.marginTop="-1px";a.style.height=this.moreShapesHeight+"px";var b=document.createElement("button");b.className="geBtn gePrimaryBtn";b.style.display="inline-flex";b.style.alignItems="center";b.style.whiteSpace="nowrap";b.style.padding=
"8px";b.style.margin="0px";b.innerHTML="<span>+</span>";var e=b.getElementsByTagName("span")[0];e.style.fontSize="18px";e.style.marginRight="5px";mxUtils.write(b,mxResources.get("moreShapes"));mxEvent.addListener(b,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(f){f.preventDefault()}));mxEvent.addListener(b,"click",mxUtils.bind(this,function(f){this.editorUi.actions.get("shapes").funct();mxEvent.consume(f)}));a.appendChild(b);return a};
-Sidebar.prototype.createTooltip=function(a,b,e,f,h,d,g,m,q,k,u){u=null!=u?u:!0;this.tooltipMouseDown=q;q=this.editorUi.editor.graph;if(null==this.tooltip){this.tooltip=document.createElement("div");this.tooltip.className="geSidebarTooltip";this.tooltip.style.userSelect="none";this.tooltip.style.zIndex=mxPopupMenu.prototype.zIndex-1;document.body.appendChild(this.tooltip);mxEvent.addMouseWheelListener(mxUtils.bind(this,function(z){this.hideTooltip()}),this.tooltip);this.graph2=new Graph(this.tooltip,
-null,null,this.editorUi.editor.graph.getStylesheet());this.graph2.shapeBackgroundColor=this.graph.shapeBackgroundColor;this.graph2.resetViewOnRootChange=!1;this.graph2.foldingEnabled=!1;this.graph2.gridEnabled=!1;this.graph2.autoScroll=!1;this.graph2.setTooltips(!1);this.graph2.setConnectable(!1);this.graph2.setPanning(!1);this.graph2.setEnabled(!1);if(this.graph2.dialect==mxConstants.DIALECT_SVG){var w=this.graph2.view.getDrawPane().ownerSVGElement;null!=w&&(w.style.overflow="visible")}else this.graph2.view.canvas.style.overflow=
-"visible";this.graph2.openLink=mxUtils.bind(this,function(){this.hideTooltip()});mxEvent.addGestureListeners(this.tooltip,mxUtils.bind(this,function(z){null!=this.tooltipMouseDown&&this.tooltipMouseDown(z);window.setTimeout(mxUtils.bind(this,function(){null!=this.tooltipCloseImage&&"none"!=this.tooltipCloseImage.style.display||this.hideTooltip()}),0)}),null,mxUtils.bind(this,function(z){this.hideTooltip()}));mxClient.IS_SVG||(this.graph2.view.canvas.style.position="relative");w=document.createElement("img");
-w.setAttribute("src",Dialog.prototype.closeImage);w.setAttribute("title",mxResources.get("close"));w.style.position="absolute";w.style.cursor="default";w.style.padding="8px";w.style.right="2px";w.style.top="2px";this.tooltip.appendChild(w);this.tooltipCloseImage=w;mxEvent.addListener(w,"click",mxUtils.bind(this,function(z){this.hideTooltip();mxEvent.consume(z)}))}this.tooltipCloseImage.style.display=k?"":"none";this.graph2.model.clear();this.graph2.view.setTranslate(this.tooltipBorder,this.tooltipBorder);
-this.graph2.view.scale=!m&&(e>this.maxTooltipWidth||f>this.maxTooltipHeight)?Math.round(100*Math.min(this.maxTooltipWidth/e,this.maxTooltipHeight/f))/100:1;this.tooltip.style.display="block";this.graph2.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;null!=b&&(b=this.graph2.cloneCells(b),this.graph2.pasteCellStyles(q.includeDescendants(b),u?q.currentVertexStyle:q.defaultVertexStyle,u?q.currentEdgeStyle:q.defaultEdgeStyle,null,q.pasteEdgeStyle),this.graph2.addCells(b));
+Sidebar.prototype.createTooltip=function(a,b,e,f,h,d,g,m,p,k,u){u=null!=u?u:!0;this.tooltipMouseDown=p;p=this.editorUi.editor.graph;if(null==this.tooltip){this.tooltip=document.createElement("div");this.tooltip.className="geSidebarTooltip";this.tooltip.style.userSelect="none";this.tooltip.style.zIndex=mxPopupMenu.prototype.zIndex-1;document.body.appendChild(this.tooltip);mxEvent.addMouseWheelListener(mxUtils.bind(this,function(z){this.hideTooltip()}),this.tooltip);this.graph2=new Graph(this.tooltip,
+null,null,this.editorUi.editor.graph.getStylesheet());this.graph2.shapeBackgroundColor=this.graph.shapeBackgroundColor;this.graph2.resetViewOnRootChange=!1;this.graph2.foldingEnabled=!1;this.graph2.gridEnabled=!1;this.graph2.autoScroll=!1;this.graph2.setTooltips(!1);this.graph2.setConnectable(!1);this.graph2.setPanning(!1);this.graph2.setEnabled(!1);if(this.graph2.dialect==mxConstants.DIALECT_SVG){var x=this.graph2.view.getDrawPane().ownerSVGElement;null!=x&&(x.style.overflow="visible")}else this.graph2.view.canvas.style.overflow=
+"visible";this.graph2.openLink=mxUtils.bind(this,function(){this.hideTooltip()});mxEvent.addGestureListeners(this.tooltip,mxUtils.bind(this,function(z){null!=this.tooltipMouseDown&&this.tooltipMouseDown(z);window.setTimeout(mxUtils.bind(this,function(){null!=this.tooltipCloseImage&&"none"!=this.tooltipCloseImage.style.display||this.hideTooltip()}),0)}),null,mxUtils.bind(this,function(z){this.hideTooltip()}));mxClient.IS_SVG||(this.graph2.view.canvas.style.position="relative");x=document.createElement("img");
+x.setAttribute("src",Dialog.prototype.closeImage);x.setAttribute("title",mxResources.get("close"));x.style.position="absolute";x.style.cursor="default";x.style.padding="8px";x.style.right="2px";x.style.top="2px";this.tooltip.appendChild(x);this.tooltipCloseImage=x;mxEvent.addListener(x,"click",mxUtils.bind(this,function(z){this.hideTooltip();mxEvent.consume(z)}))}this.tooltipCloseImage.style.display=k?"":"none";this.graph2.model.clear();this.graph2.view.setTranslate(this.tooltipBorder,this.tooltipBorder);
+this.graph2.view.scale=!m&&(e>this.maxTooltipWidth||f>this.maxTooltipHeight)?Math.round(100*Math.min(this.maxTooltipWidth/e,this.maxTooltipHeight/f))/100:1;this.tooltip.style.display="block";this.graph2.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;null!=b&&(b=this.graph2.cloneCells(b),this.graph2.pasteCellStyles(p.includeDescendants(b),u?p.currentVertexStyle:p.defaultVertexStyle,u?p.currentEdgeStyle:p.defaultEdgeStyle,null,p.pasteEdgeStyle),this.graph2.addCells(b));
mxClient.NO_FO=d;u=this.graph2.getGraphBounds();m&&0<e&&0<f&&(u.width>e||u.height>f)?(e=Math.round(100*Math.min(e/u.width,f/u.height))/100,mxClient.NO_FO?(this.graph2.view.setScale(Math.round(100*Math.min(this.maxTooltipWidth/u.width,this.maxTooltipHeight/u.height))/100),u=this.graph2.getGraphBounds()):(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="scale("+e+")",this.graph2.view.getDrawPane().ownerSVGElement.style.transformOrigin="0 0",u.width*=e,u.height*=e)):mxClient.NO_FO||(this.graph2.view.getDrawPane().ownerSVGElement.style.transform=
"");e=u.width+2*this.tooltipBorder+4;f=u.height+2*this.tooltipBorder;this.tooltip.style.overflow="visible";this.tooltip.style.width=e+"px";m=e;this.tooltipTitles&&null!=h&&0<h.length?(null==this.tooltipTitle?(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.style.borderTopStyle="solid",this.tooltipTitle.style.borderTopWidth="1px",this.tooltipTitle.style.textAlign="center",this.tooltipTitle.style.width="100%",this.tooltipTitle.style.overflow="hidden",this.tooltipTitle.style.position=
"absolute",this.tooltipTitle.style.paddingTop="6px",this.tooltipTitle.style.bottom="6px",this.tooltip.appendChild(this.tooltipTitle)):this.tooltipTitle.innerText="",this.tooltipTitle.style.display="",mxUtils.write(this.tooltipTitle,h),this.tooltipTitle.setAttribute("title",h),m=Math.min(this.maxTooltipWidth,Math.max(e,this.tooltipTitle.scrollWidth+4)),h=this.tooltipTitle.offsetHeight+10,f+=h,mxClient.IS_SVG?this.tooltipTitle.style.marginTop=2-h+"px":(f-=6,this.tooltipTitle.style.top=f-h+"px")):null!=
@@ -2317,19 +2329,19 @@ Sidebar.prototype.addEntries=function(a){for(var b=0;b<a.length;b++)mxUtils.bind
mxUtils.bind(this,function(){var d=this.editorUi.stringToCells("<"==e.xml.charAt(0)?e.xml:Graph.decompress(e.xml));return this.createVertexTemplateFromCells(d,e.w,e.h,e.title||"",!0,!1,!0)}))})(a[b])};Sidebar.prototype.setCurrentSearchEntryLibrary=function(a,b){this.currentSearchEntryLibrary=null!=a?{id:a,lib:b}:null};
Sidebar.prototype.getKeyStyle=function(a){var b=[];if(null!=a){a=a.split(";");for(var e=0;e<a.length;e++){var f=a[e].split("=");1<f.length&&0>mxUtils.indexOf(this.ignoredStyles,f[0])&&b.push(f[0]+"="+f[1])}}return b.join(";")};Sidebar.prototype.addLibForStyle=function(a,b){""!=a&&(null==this.styleToLibs&&(this.styleToLibs={}),null==this.styleToLibs[a]&&(this.styleToLibs[a]=[]),this.styleToLibs[a].push(b))};
Sidebar.prototype.getLibsForStyle=function(a){return null!=this.styleToLibs?this.styleToLibs[a]:null};
-Sidebar.prototype.addEntry=function(a,b){if(null!=this.currentSearchEntryLibrary){var e=this,f=this.createVertexTemplateFromCells;this.createVertexTemplateFromCells=function(m,q,k,u,w){if(null!=m)for(q=0;q<m.length;q++)e.addLibForStyle(e.getKeyStyle(m[q].style),this.currentSearchEntryLibrary)};b();this.createVertexTemplateFromCells=f}if(null!=this.taglist&&null!=a&&0<a.length){null!=this.currentSearchEntryLibrary&&(b.parentLibraries=[this.currentSearchEntryLibrary]);a=a.toLowerCase().replace(/[\/,\(\)]/g,
+Sidebar.prototype.addEntry=function(a,b){if(null!=this.currentSearchEntryLibrary){var e=this,f=this.createVertexTemplateFromCells;this.createVertexTemplateFromCells=function(m,p,k,u,x){if(null!=m)for(p=0;p<m.length;p++)e.addLibForStyle(e.getKeyStyle(m[p].style),this.currentSearchEntryLibrary)};b();this.createVertexTemplateFromCells=f}if(null!=this.taglist&&null!=a&&0<a.length){null!=this.currentSearchEntryLibrary&&(b.parentLibraries=[this.currentSearchEntryLibrary]);a=a.toLowerCase().replace(/[\/,\(\)]/g,
" ").split(" ");f=[];for(var h={},d=0;d<a.length;d++){null==h[a[d]]&&(h[a[d]]=!0,f.push(a[d]));var g=Editor.soundex(a[d].replace(/\.*\d*$/,""));g!=a[d]&&null==h[g]&&(h[g]=!0,f.push(g))}for(d=0;d<f.length;d++)this.addEntryForTag(f[d],b)}return b};Sidebar.prototype.addEntryForTag=function(a,b){if(null!=a&&1<a.length){var e=this.taglist[a];"object"!==typeof e&&(e={entries:[]},this.taglist[a]=e);e.entries.push(b)}};
Sidebar.prototype.isEntryIgnored=function(a,b){b=!b;if(null!=a.parentLibraries&&b)for(var e=0;e<a.parentLibraries.length;e++)if(this.isEntryVisible(a.parentLibraries[e].id)){b=!1;break}return b};
-Sidebar.prototype.searchEntries=function(a,b,e,f,h,d){if(null!=this.taglist&&null!=a){var g=a.toLowerCase().split(" ");a=new mxDictionary;h=(e+1)*b;for(var m=[],q=0,k=0;k<g.length;k++){var u=Editor.soundex(g[k].replace(/\.*\d*$/,""));if(0<u.length){m=this.taglist[g[k]];var w=null!=m?m.entries.slice():[];m=this.taglist[u];w=null!=m?w.concat(m.entries):w;u=new mxDictionary;if(0<w.length){m=[];for(var z=0;z<w.length;z++){var C=w[z];if(0==q==(null==a.get(C))&&null==u.get(C)&&(u.put(C,C),!this.isEntryIgnored(C,
-d)&&(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=
+Sidebar.prototype.searchEntries=function(a,b,e,f,h,d){if(null!=this.taglist&&null!=a){var g=a.toLowerCase().split(" ");a=new mxDictionary;h=(e+1)*b;for(var m=[],p=0,k=0;k<g.length;k++){var u=Editor.soundex(g[k].replace(/\.*\d*$/,""));if(0<u.length){m=this.taglist[g[k]];var x=null!=m?m.entries.slice():[];m=this.taglist[u];x=null!=m?x.concat(m.entries):x;u=new mxDictionary;if(0<x.length){m=[];for(var z=0;z<x.length;z++){var C=x[z];if(0==p==(null==a.get(C))&&null==u.get(C)&&(u.put(C,C),!this.isEntryIgnored(C,
+d)&&(m.push(C),k==g.length-1&&m.length==h))){f(m.slice(e*b,h),h,!0,g);return}}}else m=[];a=u;p++}}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"));p.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 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")+
+"')";h.appendChild(g);f.appendChild(h);var m=document.createElement("center"),p=mxUtils.button(mxResources.get("moreResults"),function(){G()});p.style.display="none";p.style.lineHeight="normal";p.style.fontSize="12px";p.style.padding="6px 12px 6px 12px";p.style.marginTop="4px";p.style.marginBottom="8px";m.style.paddingTop="4px";m.style.paddingBottom="4px";m.appendChild(p);f.appendChild(m);var k="",u=!1,x=!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={},x=!1,z=0),!u&&!x)){p.setAttribute("disabled","true");p.style.display="";p.style.cursor="wait";p.innerHTML=mxResources.get("loading")+
"...";u=!0;var I={};this.currentSearch=I;try{this.searchEntries(k,E,z,mxUtils.bind(this,function(L,T,K,U){if(this.currentSearch==I){L=null!=L?L:[];u=!1;z++;this.insertSearchHint(f,k,E,z,L,T,K,U);0==L.length&&1==z&&(k="");null!=m.parentNode&&m.parentNode.removeChild(m);for(T=0;T<L.length;T++)mxUtils.bind(this,function(Y){try{var Q=Y();null!=this.closedLibraryOpacity&&this.searchClosedLibraries&&this.isEntryIgnored(Y,!1)&&(Q.style.opacity=this.closedLibraryOpacity);null==C[Q.innerHTML]?(C[Q.innerHTML]=
-null!=Y.parentLibraries?Y.parentLibraries.slice():[],f.appendChild(Q)):null!=Y.parentLibraries&&(C[Q.innerHTML]=C[Q.innerHTML].concat(Y.parentLibraries));mxEvent.addGestureListeners(Q,null,null,mxUtils.bind(this,function(P){var M=C[Q.innerHTML];mxEvent.isPopupTrigger(P)&&this.showPopupMenuForEntry(Q,M,P)}));mxEvent.disableContextMenu(Q)}catch(P){"1"==urlParams.test&&(null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(P.stack)):console.error(P))}})(L[T]);K?(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(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,
+null!=Y.parentLibraries?Y.parentLibraries.slice():[],f.appendChild(Q)):null!=Y.parentLibraries&&(C[Q.innerHTML]=C[Q.innerHTML].concat(Y.parentLibraries));mxEvent.addGestureListeners(Q,null,null,mxUtils.bind(this,function(P){var M=C[Q.innerHTML];mxEvent.isPopupTrigger(P)&&this.showPopupMenuForEntry(Q,M,P)}));mxEvent.disableContextMenu(Q)}catch(P){"1"==urlParams.test&&(null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(P.stack)):console.error(P))}})(L[T]);K?(p.removeAttribute("disabled"),
+p.innerHTML=mxResources.get("moreResults")):(p.innerHTML=mxResources.get("reset"),p.style.display="none",x=!0);p.style.cursor="";f.appendChild(m)}}),mxUtils.bind(this,function(){p.style.cursor=""}),this.searchClosedLibraries)}catch(L){this.editorUi.handleError(L)}}}else D(),k=d.value="",C={},p.style.display="none",x=!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?(x=!0,p.style.display="none"):d.value!=k?(p.style.display="none",x=!1):u||(p.style.display=x?"none":"")}),0)});mxEvent.addListener(d,"keyup",a);mxEvent.addListener(d,"paste",a);mxEvent.addListener(d,"cut",a);mxEvent.addListener(d,
"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;"+
@@ -2436,62 +2448,62 @@ d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new
0,"Use","Dependency",null,"uml dependency use"),this.createEdgeTemplateEntry("endArrow=block;endSize=16;endFill=0;html=1;",160,0,"Extends","Generalization",null,"uml generalization extend"),this.createEdgeTemplateEntry("endArrow=block;startArrow=block;endFill=1;startFill=1;html=1;",160,0,"","Association 2",null,"uml association"),this.createEdgeTemplateEntry("endArrow=open;startArrow=circlePlus;endFill=0;startFill=0;endSize=8;html=1;",160,0,"","Inner Class",null,"uml inner class"),this.createEdgeTemplateEntry("endArrow=open;startArrow=cross;endFill=0;startFill=0;endSize=8;startSize=10;html=1;",
160,0,"","Terminate",null,"uml terminate"),this.createEdgeTemplateEntry("endArrow=block;dashed=1;endFill=0;endSize=12;html=1;",160,0,"","Implementation",null,"uml realization implementation"),this.createEdgeTemplateEntry("endArrow=diamondThin;endFill=0;endSize=24;html=1;",160,0,"","Aggregation 2",null,"uml aggregation"),this.createEdgeTemplateEntry("endArrow=diamondThin;endFill=1;endSize=24;html=1;",160,0,"","Composition 2",null,"uml composition"),this.createEdgeTemplateEntry("endArrow=open;endFill=1;endSize=12;html=1;",
160,0,"","Association 3",null,"uml association")];this.addPaletteFunctions("uml",mxResources.get("uml"),a||!1,h);this.setCurrentSearchEntryLibrary()};Sidebar.prototype.createTitle=function(a){var b=document.createElement("a");b.setAttribute("title",mxResources.get("sidebarTooltip"));b.className="geTitle";var e=document.createElement("span");mxUtils.write(e,a);b.appendChild(e);return b};
-Sidebar.prototype.createThumb=function(a,b,e,f,h,d,g,m,q,k,u,w){this.graph.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;this.graph.shapeForegroundColor="light-dark(#000000, #c0c0c0)";this.graph.shapeBackgroundColor=null!=k?k:"light-dark(#f1f3f4, #1b1d1e)";this.graph.view.scaleAndTranslate(null!=w?w:1,0,0);this.graph.addCells(a);a=this.graph.getGraphBounds();null==w&&(k=Math.floor(100*Math.min((b-2*this.thumbBorder)/a.width,(e-2*this.thumbBorder)/
+Sidebar.prototype.createThumb=function(a,b,e,f,h,d,g,m,p,k,u,x){this.graph.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;this.graph.shapeForegroundColor="light-dark(#000000, #c0c0c0)";this.graph.shapeBackgroundColor=null!=k?k:"light-dark(#f1f3f4, #1b1d1e)";this.graph.view.scaleAndTranslate(null!=x?x:1,0,0);this.graph.addCells(a);a=this.graph.getGraphBounds();null==x&&(k=Math.floor(100*Math.min((b-2*this.thumbBorder)/a.width,(e-2*this.thumbBorder)/
a.height))/100,this.graph.view.scaleAndTranslate(k,(b-a.width*k)/2/k-a.x,(e-a.height*k)/2/k-a.y));this.graph.dialect!=mxConstants.DIALECT_SVG||mxClient.NO_FO||null==this.graph.view.getCanvas().ownerSVGElement?(k=this.graph.container.cloneNode(!1),k.innerHTML=this.graph.container.innerHTML):k=this.graph.view.getCanvas().ownerSVGElement.cloneNode(!0);this.graph.getModel().clear();this.graph.view.scaleAndTranslate(1,0,0);this.graph.shapeBackgroundColor="#f1f3f4";mxClient.NO_FO=d;k.style.position="relative";
-k.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=
+k.style.overflow=null!=x?"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(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(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,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 T=g.layoutManager.getLayout(q);if(null!=T){C=g.view.scale;E=g.view.translate;D=(k+E.x)*C;G=(u+E.y)*C;for(var K=0;K<z.length;K++)T.moveCell(z[K],D,G)}}!e||null!=m&&mxEvent.isShiftDown(m)||g.fireEvent(new mxEventObject("cellsInserted","cells",z));for(K=0;K<z.length;K++)g.model.isVertex(z[K])&&g.isAutoSizeCell(z[K])&&g.updateCellSize(z[K])}catch(U){this.editorUi.handleError(U)}finally{g.model.endUpdate()}null!=z&&0<z.length&&(g.scrollCellToVisible(z[0]),
+Sidebar.prototype.createItem=function(a,b,e,f,h,d,g,m,p,k,u,x,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!=x?(E.style.backgroundImage="url("+x+")",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,p,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,p)),!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,p,k,u,x){for(x=x?null:mxEvent.isTouchEvent(m)||mxEvent.isPenEvent(m)?document.elementFromPoint(mxEvent.getClientX(m),mxEvent.getClientY(m)):mxEvent.getSource(m);null!=x&&x!=this.container;)x=x.parentNode;if(null==x&&g.isEnabled()){a=g.getImportableCells(a);if(0<a.length){g.stopEditing();x=null==p||mxEvent.isAltDown(m)?!1:g.isValidDropTarget(p,a,m);var z=null;null==p||x||(p=null);if(!g.isCellLocked(p||
+g.getDefaultParent())){g.model.beginUpdate();try{k=Math.round(k);u=Math.round(u);if(b&&g.isSplitTarget(p,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(p,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,p),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 T=g.layoutManager.getLayout(p);if(null!=T){C=g.view.scale;E=g.view.translate;D=(k+E.x)*C;G=(u+E.y)*C;for(var K=0;K<z.length;K++)T.moveCell(z[K],D,G)}}!e||null!=m&&mxEvent.isShiftDown(m)||g.fireEvent(new mxEventObject("cellsInserted","cells",z));for(K=0;K<z.length;K++)g.model.isVertex(z[K])&&g.isAutoSizeCell(z[K])&&g.updateCellSize(z[K])}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 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),T=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(M,W,aa){return!m.isContainer(M.cell)});if(null!=T&&T!=C)k=m.view.getState(T),null!=k&&(I=k.origin,C=T,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-
+Sidebar.prototype.dropAndConnect=function(a,b,e,f,h,d,g){var m=this.editorUi.editor.graph,p=m.model.isEdge(a)||null!=d?d:g;p=this.getDropAndConnectGeometry(a,b[p],e,b);var k=[];if(null!=p){var u=null;m.model.beginUpdate();try{var x=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!=x&&!x.relative&&E),T=m.getCellAt((p.x+D+m.view.translate.x)*m.view.scale,(p.y+G+m.view.translate.y)*m.view.scale,null,null,null,function(M,V,aa){return!m.isContainer(M.cell)});if(null!=T&&T!=C)k=m.view.getState(T),null!=k&&(I=k.origin,C=T,L=!0,m.model.isEdge(a)||(p.x-=I.x-D,p.y-=I.y-G));else if(!E||m.isTableRow(a)||m.isTableCell(a))p.x+=D,p.y+=G;D=z.x;G=z.y;m.model.isEdge(b[f])&&(G=D=0);k=b=m.importCells(b,p.x-(L?D:0),p.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 K=m.getCellGeometry(b[f]),U=null!=K?K.getTerminalPoint(!0):null;K.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]),Q=null!=Y?Y.getTerminalPoint(!0):null;null!=Q&&Q.x==U.x&&Q.y==U.y&&m.model.setTerminal(b[e],
-a,!0)}if(null!=K.getTerminalPoint(!1))K.setTerminalPoint(q.getTerminalPoint(!1),!1);else if(L&&m.model.isVertex(C)){var P=m.view.getState(C);I=P.cell!=m.view.currentRoot?P.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,
+a,!0)}if(null!=K.getTerminalPoint(!1))K.setTerminalPoint(p.getTerminalPoint(!1),!1);else if(L&&m.model.isVertex(C)){var P=m.view.getState(C);I=P.cell!=m.view.currentRoot?P.origin:new mxPoint(0,0);m.cellsMoved(b,I.x,I.y,null,null,!0)}}else null!=d&&(z=m.getCellGeometry(b[d]),D=p.x-Math.round(z.x),G=p.y-Math.round(z.y),p.x=Math.round(z.x),p.y=Math.round(z.y),m.model.setGeometry(b[f],p),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(M){this.editorUi.handleError(M)}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+
-f.width,f.y),!1)):e==mxConstants.DIRECTION_SOUTH?(f.height=d,f.y=q.y+q.height,f.setTerminalPoint(new mxPoint(f.x,f.y+f.height),!1)):e==mxConstants.DIRECTION_WEST&&(f.width=d,f.x=q.x-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1))):(!g&&45<f.width&&45<f.height&&45<q.width&&45<q.height&&(f.width*=q.height/f.height,f.height=q.height),f.x=q.x+q.width/2-f.width/2,f.y=q.y+q.height/2-f.height/2,e==mxConstants.DIRECTION_NORTH?f.y=f.y-q.height/2-f.height/2-d:e==mxConstants.DIRECTION_EAST?f.x=f.x+q.width/2+
-f.width/2+d:e==mxConstants.DIRECTION_SOUTH?f.y=f.y+q.height/2+f.height/2+d:e==mxConstants.DIRECTION_WEST&&(f.x=f.x-q.width/2-f.width/2-d),h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=b.getTerminal(!1)&&(q=h.getCellGeometry(b.getTerminal(!1)),null!=q&&(e==mxConstants.DIRECTION_NORTH?(f.x-=q.getCenterX(),f.y-=q.getCenterY()+q.height/2):e==mxConstants.DIRECTION_EAST?(f.x-=q.getCenterX()-q.width/2,f.y-=q.getCenterY()):e==mxConstants.DIRECTION_SOUTH?(f.x-=q.getCenterX(),f.y-=q.getCenterY()-q.height/
-2):e==mxConstants.DIRECTION_WEST&&(f.x-=q.getCenterX()+q.width/2,f.y-=q.getCenterY()))))));return f};Sidebar.prototype.isDropStyleEnabled=function(a,b){var e=!0;null!=b&&1==a.length&&(a=this.graph.getCellStyle(a[b]),null!=a&&(e=mxUtils.getValue(a,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(a,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE));return e};
+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),p=h.getCellGeometry(a);f=h.getCellGeometry(b);null!=m&&null!=p&&null!=f&&(f=f.clone(),h.model.isEdge(a)?(p=m.absolutePoints,b=p[0],h=p[p.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)):(p.relative&&(p=p.clone(),
+p.x=(m.x-d.translate.x)/d.scale,p.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=p.getCenterX(),f.y=p.getCenterY(),f.width=1,f.height=1,e==mxConstants.DIRECTION_NORTH?(f.height=d,f.y=p.y-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1)):e==mxConstants.DIRECTION_EAST?(f.width=d,f.x=p.x+p.width,f.setTerminalPoint(new mxPoint(f.x+
+f.width,f.y),!1)):e==mxConstants.DIRECTION_SOUTH?(f.height=d,f.y=p.y+p.height,f.setTerminalPoint(new mxPoint(f.x,f.y+f.height),!1)):e==mxConstants.DIRECTION_WEST&&(f.width=d,f.x=p.x-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1))):(!g&&45<f.width&&45<f.height&&45<p.width&&45<p.height&&(f.width*=p.height/f.height,f.height=p.height),f.x=p.x+p.width/2-f.width/2,f.y=p.y+p.height/2-f.height/2,e==mxConstants.DIRECTION_NORTH?f.y=f.y-p.height/2-f.height/2-d:e==mxConstants.DIRECTION_EAST?f.x=f.x+p.width/2+
+f.width/2+d:e==mxConstants.DIRECTION_SOUTH?f.y=f.y+p.height/2+f.height/2+d:e==mxConstants.DIRECTION_WEST&&(f.x=f.x-p.width/2-f.width/2-d),h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=b.getTerminal(!1)&&(p=h.getCellGeometry(b.getTerminal(!1)),null!=p&&(e==mxConstants.DIRECTION_NORTH?(f.x-=p.getCenterX(),f.y-=p.getCenterY()+p.height/2):e==mxConstants.DIRECTION_EAST?(f.x-=p.getCenterX()-p.width/2,f.y-=p.getCenterY()):e==mxConstants.DIRECTION_SOUTH?(f.x-=p.getCenterX(),f.y-=p.getCenterY()-p.height/
+2):e==mxConstants.DIRECTION_WEST&&(f.x-=p.getCenterX()+p.width/2,f.y-=p.getCenterY()))))));return f};Sidebar.prototype.isDropStyleEnabled=function(a,b){var e=!0;null!=b&&1==a.length&&(a=this.graph.getCellStyle(a[b]),null!=a&&(e=mxUtils.getValue(a,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(a,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE));return e};
Sidebar.prototype.isDropStyleTargetIgnored=function(a){return this.graph.isSwimlane(a.cell)||this.graph.isTableCell(a.cell)||this.graph.isTableRow(a.cell)||this.graph.isTable(a.cell)};Sidebar.prototype.disablePointerEvents=function(a){mxUtils.visitNodes(a,mxUtils.bind(this,function(b){b.nodeType==mxConstants.NODETYPE_ELEMENT&&(b.style.pointerEvents="none",b.removeAttribute("pointer-events"))}))};
-Sidebar.prototype.createDragSource=function(a,b,e,f,h,d){function g(ma,Ca){var Da=mxUtils.createImage(ma.src);Da.style.width=ma.width+"px";Da.style.height=ma.height+"px";null!=Ca&&Da.setAttribute("title",Ca);mxUtils.setOpacity(Da,ma==this.refreshTarget?30:20);Da.style.position="absolute";Da.style.cursor="crosshair";return Da}function m(ma,Ca,Da,Ga){null!=Ga.parentNode&&(mxUtils.contains(Da,ma,Ca)?(mxUtils.setOpacity(Ga,100),O=Ga):mxUtils.setOpacity(Ga,Ga==W?30:20));return Da}var q=this.editorUi,k=
-q.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,Ca,Da,Ga,Ia){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=f&&null!=
-K&&O==W){var Ha=ma.isCellSelected(K.cell)?ma.getSelectionCells():[K.cell];ma.updateShapes(ma.model.isEdge(K.cell)?f[0]:f[w],Ha,!0);ma.setSelectionCells(Ha)}else null!=f&&null!=O&&null!=L&&O!=W?(Ha=ma.model.isEdge(L.cell)||null==u?w:u,ma.setSelectionCells(this.dropAndConnect(L.cell,f,qa,Ha,Ca,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 Ca=document.createElement("a");Ca.className="geItem";Ca.style.overflow="visible";ma=ma.view.scale;Ca.style.width=ma*Math.max(1,h.width)+"px";Ca.style.height=ma*Math.max(1,h.height)+"px";mxUtils.setOpacity(Ca,50);var Da=k.cloneCells(f);this.graph.pasteCellStyles(k.includeDescendants(Da),k.currentVertexStyle,k.currentEdgeStyle,null,k.pasteEdgeStyle);z.createThumb(Da,ma*Math.max(1,h.width),ma*Math.max(1,h.height),Ca,null,null,null,null,null,k.shapeBackgroundColor,
-0,ma);return Ca}));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,T=null,K=null,U=!1,Y=g(this.triangleUp,mxResources.get("connect")),Q=g(this.triangleRight,mxResources.get("connect")),P=g(this.triangleDown,mxResources.get("connect")),M=g(this.triangleLeft,mxResources.get("connect")),W=g(this.refreshTarget,mxResources.get("replace")),aa=null,ia=g(this.roundDrop),
-oa=g(this.roundDrop),qa=mxConstants.DIRECTION_NORTH,O=null,Z=G.createPreviewElement;G.createPreviewElement=function(ma){var Ca=Z.apply(this,arguments);mxClient.IS_SVG&&(Ca.style.pointerEvents="none");this.previewElementWidth=Ca.style.width;this.previewElementHeight=Ca.style.height;return Ca};var ca=G.dragEnter;G.dragEnter=function(ma,Ca){null!=q.hoverIcons&&q.hoverIcons.setDisplay("none");ca.apply(this,arguments)};var V=G.dragExit;G.dragExit=function(ma,Ca){null!=q.hoverIcons&&q.hoverIcons.setDisplay("");
-V.apply(this,arguments)};G.dragOver=function(ma,Ca){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=O&&this.currentGuide.hide();if(null!=this.previewElement){q.hideShapePicker();var Da=ma.view;if(null!=K&&O==W)this.previewElement.style.display="none";else if(null!=L&&null!=O){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Ga=ma.model.isEdge(L.cell)||null!=w?w:u,Ia=z.getDropAndConnectGeometry(L.cell,f[Ga],qa,f),Ha=ma.model.isEdge(L.cell)?
-null:ma.getCellGeometry(L.cell),Ja=ma.getCellGeometry(f[Ga]),ta=ma.model.getParent(L.cell),La=Da.translate.x*Da.scale,Xa=Da.translate.y*Da.scale;null!=Ha&&!Ha.relative&&ma.model.isVertex(ta)&&ta!=Da.currentRoot&&(Xa=Da.getState(ta),La=Xa.x,Xa=Xa.y);Ha=Ja.x;Ja=Ja.y;ma.model.isEdge(f[Ga])&&(Ja=Ha=0);this.previewElement.style.left=(Ia.x-Ha)*Da.scale+La+"px";this.previewElement.style.top=(Ia.y-Ja)*Da.scale+Xa+"px";1==f.length&&(this.previewElement.style.width=Ia.width*Da.scale+"px",this.previewElement.style.height=
-Ia.height*Da.scale+"px",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="none",this.previewElement.className="geDragPreview",mxUtils.setOpacity(this.previewElement,100)));this.previewElement.style.display=""}else null!=G.currentHighlight&&null!=G.currentHighlight.state&&ma.model.isEdge(G.currentHighlight.state.cell)?(this.previewElement.style.left=Math.round(parseInt(this.previewElement.style.left)-h.width*Da.scale/2)+"px",this.previewElement.style.top=Math.round(parseInt(this.previewElement.style.top)-
-h.height*Da.scale/2)+"px"):(this.previewElement.style.width=this.previewElementWidth,this.previewElement.style.height=this.previewElementHeight,this.previewElement.style.display="",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="",mxUtils.setOpacity(this.previewElement,50),this.previewElement.className=""))}};var ja=(new Date).getTime(),H=0,ea=null,la=this.editorUi.editor.graph.getCellStyle(f[0]);G.getDropTarget=mxUtils.bind(this,function(ma,Ca,Da,Ga){var Ia=mxEvent.isAltDown(Ga)||
-null==f?null:ma.getCellAt(Ca,Da,null,null,null,function(Xa,Ya,cb){return ma.isContainer(Xa.cell)&&"0"!=mxUtils.getValue(Xa.style,"dropTarget","1")});if(null!=Ia&&!this.graph.isCellConnectable(Ia)&&!this.graph.model.isEdge(Ia)){var Ha=this.graph.getModel().getParent(Ia);this.graph.getModel().isVertex(Ha)&&this.graph.isCellConnectable(Ha)&&(Ia=Ha)}ma.isCellLocked(Ia)&&(Ia=null);var Ja=ma.view.getState(Ia);Ha=O=null;ea!=Ja?(ja=(new Date).getTime(),H=0,ea=Ja,null!=this.updateThread&&window.clearTimeout(this.updateThread),
-null!=Ja&&(this.updateThread=window.setTimeout(function(){null==O&&(ea=Ja,G.getDropTarget(ma,Ca,Da,Ga))},this.dropTargetDelay+10))):H=(new Date).getTime()-ja;if(D&&2500>H&&null!=Ja&&!mxEvent.isShiftDown(Ga)&&(mxUtils.getValue(Ja.style,mxConstants.STYLE_SHAPE)!=mxUtils.getValue(la,mxConstants.STYLE_SHAPE)&&(mxUtils.getValue(Ja.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ja.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ja.style,
-mxConstants.STYLE_GRADIENTCOLOR,mxConstants.NONE)!=mxConstants.NONE)||"image"==mxUtils.getValue(la,mxConstants.STYLE_SHAPE)||1500<H||ma.model.isEdge(Ja.cell))&&H>this.dropTargetDelay&&!this.isDropStyleTargetIgnored(Ja)&&(ma.model.isVertex(Ja.cell)&&null!=w||ma.model.isEdge(Ja.cell)&&ma.model.isEdge(f[0]))){if(ma.isCellEditable(Ja.cell)){K=Ja;var ta=ma.model.isEdge(Ja.cell)?ma.view.getPoint(Ja):new mxPoint(Ja.getCenterX(),Ja.getCenterY());ta=new mxRectangle(ta.x-this.refreshTarget.width/2,ta.y-this.refreshTarget.height/
-2,this.refreshTarget.width,this.refreshTarget.height);W.style.left=Math.floor(ta.x)+"px";W.style.top=Math.floor(ta.y)+"px";null==aa&&(ma.container.appendChild(W),aa=W.parentNode);m(Ca,Da,ta,W)}}else null==K||!mxUtils.contains(K,Ca,Da)||1500<H&&!mxEvent.isShiftDown(Ga)?(K=null,null!=aa&&(W.parentNode.removeChild(W),aa=null)):null!=K&&null!=aa&&(ta=ma.model.isEdge(K.cell)?ma.view.getPoint(K):new mxPoint(K.getCenterX(),K.getCenterY()),ta=new mxRectangle(ta.x-this.refreshTarget.width/2,ta.y-this.refreshTarget.height/
-2,this.refreshTarget.width,this.refreshTarget.height),m(Ca,Da,ta,W));if(U&&null!=L&&!mxEvent.isAltDown(Ga)&&null==O){Ha=mxRectangle.fromRectangle(L);if(ma.model.isEdge(L.cell)){var La=L.absolutePoints;null!=ia.parentNode&&(ta=La[0],Ha.add(m(Ca,Da,new mxRectangle(ta.x-this.roundDrop.width/2,ta.y-this.roundDrop.height/2,this.roundDrop.width,this.roundDrop.height),ia)));null!=oa.parentNode&&(La=La[La.length-1],Ha.add(m(Ca,Da,new mxRectangle(La.x-this.roundDrop.width/2,La.y-this.roundDrop.height/2,this.roundDrop.width,
-this.roundDrop.height),oa)))}else ta=mxRectangle.fromRectangle(L),null!=L.shape&&null!=L.shape.boundingBox&&(ta=mxRectangle.fromRectangle(L.shape.boundingBox)),ta.grow(this.graph.tolerance),ta.grow(HoverIcons.prototype.arrowSpacing),La=this.graph.selectionCellsHandler.getHandler(L.cell),null!=La&&(ta.x-=La.horizontalOffset/2,ta.y-=La.verticalOffset/2,ta.width+=La.horizontalOffset,ta.height+=La.verticalOffset,null!=La.rotationShape&&null!=La.rotationShape.node&&"hidden"!=La.rotationShape.node.style.visibility&&
-"none"!=La.rotationShape.node.style.display&&null!=La.rotationShape.boundingBox&&ta.add(La.rotationShape.boundingBox)),Ha.add(m(Ca,Da,new mxRectangle(L.getCenterX()-this.triangleUp.width/2,ta.y-this.triangleUp.height,this.triangleUp.width,this.triangleUp.height),Y)),Ha.add(m(Ca,Da,new mxRectangle(ta.x+ta.width,L.getCenterY()-this.triangleRight.height/2,this.triangleRight.width,this.triangleRight.height),Q)),Ha.add(m(Ca,Da,new mxRectangle(L.getCenterX()-this.triangleDown.width/2,ta.y+ta.height,this.triangleDown.width,
-this.triangleDown.height),P)),Ha.add(m(Ca,Da,new mxRectangle(ta.x-this.triangleLeft.width,L.getCenterY()-this.triangleLeft.height/2,this.triangleLeft.width,this.triangleLeft.height),M));null!=Ha&&Ha.grow(10)}qa=mxConstants.DIRECTION_NORTH;O==Q?qa=mxConstants.DIRECTION_EAST:O==P||O==oa?qa=mxConstants.DIRECTION_SOUTH:O==M&&(qa=mxConstants.DIRECTION_WEST);null!=K&&O==W&&(Ja=K);ta=(null==w||ma.isCellConnectable(f[w]))&&(ma.model.isEdge(Ia)&&null!=w||ma.model.isVertex(Ia)&&ma.isCellConnectable(Ia));if(null!=
-L&&5E3<=H||L!=Ja&&(null==Ha||!mxUtils.contains(Ha,Ca,Da)||500<H&&null==O&&ta))if(U=!1,L=5E3>H&&H>this.dropTargetDelay||ma.model.isEdge(Ia)?Ja:null,null!=L&&ta){Ha=[ia,oa,Y,Q,P,M];for(ta=0;ta<Ha.length;ta++)null!=Ha[ta].parentNode&&Ha[ta].parentNode.removeChild(Ha[ta]);ma.model.isEdge(Ia)?(La=Ja.absolutePoints,null!=La&&(ta=La[0],La=La[La.length-1],ia.style.left=Math.floor(ta.x-this.roundDrop.width/2)+"px",ia.style.top=Math.floor(ta.y-this.roundDrop.height/2)+"px",oa.style.left=Math.floor(La.x-this.roundDrop.width/
-2)+"px",oa.style.top=Math.floor(La.y-this.roundDrop.height/2)+"px",null==ma.model.getTerminal(Ia,!0)&&ma.container.appendChild(ia),null==ma.model.getTerminal(Ia,!1)&&ma.container.appendChild(oa))):(ta=mxRectangle.fromRectangle(Ja),null!=Ja.shape&&null!=Ja.shape.boundingBox&&(ta=mxRectangle.fromRectangle(Ja.shape.boundingBox)),ta.grow(this.graph.tolerance),ta.grow(HoverIcons.prototype.arrowSpacing),La=this.graph.selectionCellsHandler.getHandler(Ja.cell),null!=La&&(ta.x-=La.horizontalOffset/2,ta.y-=
+Sidebar.prototype.createDragSource=function(a,b,e,f,h,d){function g(la,Ba){var Ca=mxUtils.createImage(la.src);Ca.style.width=la.width+"px";Ca.style.height=la.height+"px";null!=Ba&&Ca.setAttribute("title",Ba);mxUtils.setOpacity(Ca,la==this.refreshTarget?30:20);Ca.style.position="absolute";Ca.style.cursor="crosshair";return Ca}function m(la,Ba,Ca,Fa){null!=Fa.parentNode&&(mxUtils.contains(Ca,la,Ba)?(mxUtils.setOpacity(Fa,100),O=Fa):mxUtils.setOpacity(Fa,Fa==V?30:20));return Ca}var p=this.editorUi,k=
+p.editor.graph,u=null,x=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==x&&k.model.isVertex(f[E])?x=E:null==u&&k.model.isEdge(f[E])&&null==k.model.getTerminal(f[E],!0)&&(u=E),null==x||null==u);E++);var D=this.isDropStyleEnabled(f,x),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(la,Ba,Ca,Fa,Ia){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=f&&null!=
+K&&O==V){var Ha=la.isCellSelected(K.cell)?la.getSelectionCells():[K.cell];la.updateShapes(la.model.isEdge(K.cell)?f[0]:f[x],Ha,!0);la.setSelectionCells(Ha)}else null!=f&&null!=O&&null!=L&&O!=V?(Ha=la.model.isEdge(L.cell)||null==u?x:u,la.setSelectionCells(this.dropAndConnect(L.cell,f,qa,Ha,Ba,x,u))):b.apply(this,arguments);null!=this.editorUi.hoverIcons&&this.editorUi.hoverIcons.update(la.view.getState(la.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(la){var Ba=document.createElement("a");Ba.className="geItem";Ba.style.overflow="visible";la=la.view.scale;Ba.style.width=la*Math.max(1,h.width)+"px";Ba.style.height=la*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,la*Math.max(1,h.width),la*Math.max(1,h.height),Ba,null,null,null,null,null,k.shapeBackgroundColor,
+0,la);return Ba}));var I=G.mouseDown;G.mouseDown=function(la){mxEvent.isPopupTrigger(la)||mxEvent.isMultiTouchEvent(la)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),I.apply(this,arguments))};var L=null,T=null,K=null,U=!1,Y=g(this.triangleUp,mxResources.get("connect")),Q=g(this.triangleRight,mxResources.get("connect")),P=g(this.triangleDown,mxResources.get("connect")),M=g(this.triangleLeft,mxResources.get("connect")),V=g(this.refreshTarget,mxResources.get("replace")),aa=null,ia=g(this.roundDrop),
+na=g(this.roundDrop),qa=mxConstants.DIRECTION_NORTH,O=null,Z=G.createPreviewElement;G.createPreviewElement=function(la){var Ba=Z.apply(this,arguments);mxClient.IS_SVG&&(Ba.style.pointerEvents="none");this.previewElementWidth=Ba.style.width;this.previewElementHeight=Ba.style.height;return Ba};var ca=G.dragEnter;G.dragEnter=function(la,Ba){null!=p.hoverIcons&&p.hoverIcons.setDisplay("none");ca.apply(this,arguments)};var W=G.dragExit;G.dragExit=function(la,Ba){null!=p.hoverIcons&&p.hoverIcons.setDisplay("");
+W.apply(this,arguments)};G.dragOver=function(la,Ba){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=O&&this.currentGuide.hide();if(null!=this.previewElement){p.hideShapePicker();var Ca=la.view;if(null!=K&&O==V)this.previewElement.style.display="none";else if(null!=L&&null!=O){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Fa=la.model.isEdge(L.cell)||null!=x?x:u,Ia=z.getDropAndConnectGeometry(L.cell,f[Fa],qa,f),Ha=la.model.isEdge(L.cell)?
+null:la.getCellGeometry(L.cell),Ja=la.getCellGeometry(f[Fa]),ta=la.model.getParent(L.cell),La=Ca.translate.x*Ca.scale,Xa=Ca.translate.y*Ca.scale;null!=Ha&&!Ha.relative&&la.model.isVertex(ta)&&ta!=Ca.currentRoot&&(Xa=Ca.getState(ta),La=Xa.x,Xa=Xa.y);Ha=Ja.x;Ja=Ja.y;la.model.isEdge(f[Fa])&&(Ja=Ha=0);this.previewElement.style.left=(Ia.x-Ha)*Ca.scale+La+"px";this.previewElement.style.top=(Ia.y-Ja)*Ca.scale+Xa+"px";1==f.length&&(this.previewElement.style.width=Ia.width*Ca.scale+"px",this.previewElement.style.height=
+Ia.height*Ca.scale+"px",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="none",this.previewElement.className="geDragPreview",mxUtils.setOpacity(this.previewElement,100)));this.previewElement.style.display=""}else null!=G.currentHighlight&&null!=G.currentHighlight.state&&la.model.isEdge(G.currentHighlight.state.cell)?(this.previewElement.style.left=Math.round(parseInt(this.previewElement.style.left)-h.width*Ca.scale/2)+"px",this.previewElement.style.top=Math.round(parseInt(this.previewElement.style.top)-
+h.height*Ca.scale/2)+"px"):(this.previewElement.style.width=this.previewElementWidth,this.previewElement.style.height=this.previewElementHeight,this.previewElement.style.display="",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="",mxUtils.setOpacity(this.previewElement,50),this.previewElement.className=""))}};var ja=(new Date).getTime(),H=0,ea=null,oa=this.editorUi.editor.graph.getCellStyle(f[0]);G.getDropTarget=mxUtils.bind(this,function(la,Ba,Ca,Fa){var Ia=mxEvent.isAltDown(Fa)||
+null==f?null:la.getCellAt(Ba,Ca,null,null,null,function(Xa,Ya,cb){return la.isContainer(Xa.cell)&&"0"!=mxUtils.getValue(Xa.style,"dropTarget","1")});if(null!=Ia&&!this.graph.isCellConnectable(Ia)&&!this.graph.model.isEdge(Ia)){var Ha=this.graph.getModel().getParent(Ia);this.graph.getModel().isVertex(Ha)&&this.graph.isCellConnectable(Ha)&&(Ia=Ha)}la.isCellLocked(Ia)&&(Ia=null);var Ja=la.view.getState(Ia);Ha=O=null;ea!=Ja?(ja=(new Date).getTime(),H=0,ea=Ja,null!=this.updateThread&&window.clearTimeout(this.updateThread),
+null!=Ja&&(this.updateThread=window.setTimeout(function(){null==O&&(ea=Ja,G.getDropTarget(la,Ba,Ca,Fa))},this.dropTargetDelay+10))):H=(new Date).getTime()-ja;if(D&&2500>H&&null!=Ja&&!mxEvent.isShiftDown(Fa)&&(mxUtils.getValue(Ja.style,mxConstants.STYLE_SHAPE)!=mxUtils.getValue(oa,mxConstants.STYLE_SHAPE)&&(mxUtils.getValue(Ja.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ja.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ja.style,
+mxConstants.STYLE_GRADIENTCOLOR,mxConstants.NONE)!=mxConstants.NONE)||"image"==mxUtils.getValue(oa,mxConstants.STYLE_SHAPE)||1500<H||la.model.isEdge(Ja.cell))&&H>this.dropTargetDelay&&!this.isDropStyleTargetIgnored(Ja)&&(la.model.isVertex(Ja.cell)&&null!=x||la.model.isEdge(Ja.cell)&&la.model.isEdge(f[0]))){if(la.isCellEditable(Ja.cell)){K=Ja;var ta=la.model.isEdge(Ja.cell)?la.view.getPoint(Ja):new mxPoint(Ja.getCenterX(),Ja.getCenterY());ta=new mxRectangle(ta.x-this.refreshTarget.width/2,ta.y-this.refreshTarget.height/
+2,this.refreshTarget.width,this.refreshTarget.height);V.style.left=Math.floor(ta.x)+"px";V.style.top=Math.floor(ta.y)+"px";null==aa&&(la.container.appendChild(V),aa=V.parentNode);m(Ba,Ca,ta,V)}}else null==K||!mxUtils.contains(K,Ba,Ca)||1500<H&&!mxEvent.isShiftDown(Fa)?(K=null,null!=aa&&(V.parentNode.removeChild(V),aa=null)):null!=K&&null!=aa&&(ta=la.model.isEdge(K.cell)?la.view.getPoint(K):new mxPoint(K.getCenterX(),K.getCenterY()),ta=new mxRectangle(ta.x-this.refreshTarget.width/2,ta.y-this.refreshTarget.height/
+2,this.refreshTarget.width,this.refreshTarget.height),m(Ba,Ca,ta,V));if(U&&null!=L&&!mxEvent.isAltDown(Fa)&&null==O){Ha=mxRectangle.fromRectangle(L);if(la.model.isEdge(L.cell)){var La=L.absolutePoints;null!=ia.parentNode&&(ta=La[0],Ha.add(m(Ba,Ca,new mxRectangle(ta.x-this.roundDrop.width/2,ta.y-this.roundDrop.height/2,this.roundDrop.width,this.roundDrop.height),ia)));null!=na.parentNode&&(La=La[La.length-1],Ha.add(m(Ba,Ca,new mxRectangle(La.x-this.roundDrop.width/2,La.y-this.roundDrop.height/2,this.roundDrop.width,
+this.roundDrop.height),na)))}else ta=mxRectangle.fromRectangle(L),null!=L.shape&&null!=L.shape.boundingBox&&(ta=mxRectangle.fromRectangle(L.shape.boundingBox)),ta.grow(this.graph.tolerance),ta.grow(HoverIcons.prototype.arrowSpacing),La=this.graph.selectionCellsHandler.getHandler(L.cell),null!=La&&(ta.x-=La.horizontalOffset/2,ta.y-=La.verticalOffset/2,ta.width+=La.horizontalOffset,ta.height+=La.verticalOffset,null!=La.rotationShape&&null!=La.rotationShape.node&&"hidden"!=La.rotationShape.node.style.visibility&&
+"none"!=La.rotationShape.node.style.display&&null!=La.rotationShape.boundingBox&&ta.add(La.rotationShape.boundingBox)),Ha.add(m(Ba,Ca,new mxRectangle(L.getCenterX()-this.triangleUp.width/2,ta.y-this.triangleUp.height,this.triangleUp.width,this.triangleUp.height),Y)),Ha.add(m(Ba,Ca,new mxRectangle(ta.x+ta.width,L.getCenterY()-this.triangleRight.height/2,this.triangleRight.width,this.triangleRight.height),Q)),Ha.add(m(Ba,Ca,new mxRectangle(L.getCenterX()-this.triangleDown.width/2,ta.y+ta.height,this.triangleDown.width,
+this.triangleDown.height),P)),Ha.add(m(Ba,Ca,new mxRectangle(ta.x-this.triangleLeft.width,L.getCenterY()-this.triangleLeft.height/2,this.triangleLeft.width,this.triangleLeft.height),M));null!=Ha&&Ha.grow(10)}qa=mxConstants.DIRECTION_NORTH;O==Q?qa=mxConstants.DIRECTION_EAST:O==P||O==na?qa=mxConstants.DIRECTION_SOUTH:O==M&&(qa=mxConstants.DIRECTION_WEST);null!=K&&O==V&&(Ja=K);ta=(null==x||la.isCellConnectable(f[x]))&&(la.model.isEdge(Ia)&&null!=x||la.model.isVertex(Ia)&&la.isCellConnectable(Ia));if(null!=
+L&&5E3<=H||L!=Ja&&(null==Ha||!mxUtils.contains(Ha,Ba,Ca)||500<H&&null==O&&ta))if(U=!1,L=5E3>H&&H>this.dropTargetDelay||la.model.isEdge(Ia)?Ja:null,null!=L&&ta){Ha=[ia,na,Y,Q,P,M];for(ta=0;ta<Ha.length;ta++)null!=Ha[ta].parentNode&&Ha[ta].parentNode.removeChild(Ha[ta]);la.model.isEdge(Ia)?(La=Ja.absolutePoints,null!=La&&(ta=La[0],La=La[La.length-1],ia.style.left=Math.floor(ta.x-this.roundDrop.width/2)+"px",ia.style.top=Math.floor(ta.y-this.roundDrop.height/2)+"px",na.style.left=Math.floor(La.x-this.roundDrop.width/
+2)+"px",na.style.top=Math.floor(La.y-this.roundDrop.height/2)+"px",null==la.model.getTerminal(Ia,!0)&&la.container.appendChild(ia),null==la.model.getTerminal(Ia,!1)&&la.container.appendChild(na))):(ta=mxRectangle.fromRectangle(Ja),null!=Ja.shape&&null!=Ja.shape.boundingBox&&(ta=mxRectangle.fromRectangle(Ja.shape.boundingBox)),ta.grow(this.graph.tolerance),ta.grow(HoverIcons.prototype.arrowSpacing),La=this.graph.selectionCellsHandler.getHandler(Ja.cell),null!=La&&(ta.x-=La.horizontalOffset/2,ta.y-=
La.verticalOffset/2,ta.width+=La.horizontalOffset,ta.height+=La.verticalOffset,null!=La.rotationShape&&null!=La.rotationShape.node&&"hidden"!=La.rotationShape.node.style.visibility&&"none"!=La.rotationShape.node.style.display&&null!=La.rotationShape.boundingBox&&ta.add(La.rotationShape.boundingBox)),Y.style.left=Math.floor(Ja.getCenterX()-this.triangleUp.width/2)+"px",Y.style.top=Math.floor(ta.y-this.triangleUp.height)+"px",Q.style.left=Math.floor(ta.x+ta.width)+"px",Q.style.top=Math.floor(Ja.getCenterY()-
-this.triangleRight.height/2)+"px",P.style.left=Y.style.left,P.style.top=Math.floor(ta.y+ta.height)+"px",M.style.left=Math.floor(ta.x-this.triangleLeft.width)+"px",M.style.top=Q.style.top,"eastwest"!=Ja.style.portConstraint&&(ma.container.appendChild(Y),ma.container.appendChild(P)),ma.container.appendChild(Q),ma.container.appendChild(M));null!=Ja&&(T=ma.selectionCellsHandler.getHandler(Ja.cell),null!=T&&null!=T.setHandlesVisible&&T.setHandlesVisible(!1));U=!0}else for(Ha=[ia,oa,Y,Q,P,M],ta=0;ta<Ha.length;ta++)null!=
-Ha[ta].parentNode&&Ha[ta].parentNode.removeChild(Ha[ta]);U||null==T||T.setHandlesVisible(!0);Ia=mxEvent.isAltDown(Ga)&&!mxEvent.isShiftDown(Ga)||null!=K&&O==W?null:mxDragSource.prototype.getDropTarget.apply(this,arguments);null==Ia||null==O&&ma.isSplitTarget(Ia,f,Ga)||(Ia=ma.getDropTarget(f,Ga,Ia,!0));return Ia});var sa=G.startDrag;G.startDrag=function(ma){z.activeDragSource=this;sa.apply(this,arguments)};var Pa=G.stopDrag;G.stopDrag=function(){Pa.apply(this,arguments);for(var ma=[ia,oa,W,Y,Q,P,M],
-Ca=0;Ca<ma.length;Ca++)null!=ma[Ca].parentNode&&ma[Ca].parentNode.removeChild(ma[Ca]);null!=L&&null!=T&&T.reset();O=aa=K=L=T=z.activeDragSource=null};return G};
+this.triangleRight.height/2)+"px",P.style.left=Y.style.left,P.style.top=Math.floor(ta.y+ta.height)+"px",M.style.left=Math.floor(ta.x-this.triangleLeft.width)+"px",M.style.top=Q.style.top,"eastwest"!=Ja.style.portConstraint&&(la.container.appendChild(Y),la.container.appendChild(P)),la.container.appendChild(Q),la.container.appendChild(M));null!=Ja&&(T=la.selectionCellsHandler.getHandler(Ja.cell),null!=T&&null!=T.setHandlesVisible&&T.setHandlesVisible(!1));U=!0}else for(Ha=[ia,na,Y,Q,P,M],ta=0;ta<Ha.length;ta++)null!=
+Ha[ta].parentNode&&Ha[ta].parentNode.removeChild(Ha[ta]);U||null==T||T.setHandlesVisible(!0);Ia=mxEvent.isAltDown(Fa)&&!mxEvent.isShiftDown(Fa)||null!=K&&O==V?null:mxDragSource.prototype.getDropTarget.apply(this,arguments);null==Ia||null==O&&la.isSplitTarget(Ia,f,Fa)||(Ia=la.getDropTarget(f,Fa,Ia,!0));return Ia});var sa=G.startDrag;G.startDrag=function(la){z.activeDragSource=this;sa.apply(this,arguments)};var Pa=G.stopDrag;G.stopDrag=function(){Pa.apply(this,arguments);for(var la=[ia,na,V,Y,Q,P,M],
+Ba=0;Ba<la.length;Ba++)null!=la[Ba].parentNode&&la[Ba].parentNode.removeChild(la[Ba]);null!=L&&null!=T&&T.reset();O=aa=K=L=T=z.activeDragSource=null};return G};
Sidebar.prototype.itemClicked=function(a,b,e,f){f=this.editorUi.editor.graph;f.container.focus();if(mxEvent.isAltDown(e)&&1==f.getSelectionCount()&&f.model.isVertex(f.getSelectionCell())){b=null;for(var h=0;h<a.length&&null==b;h++)f.model.isVertex(a[h])&&(b=h);null!=b&&(f.setSelectionCells(this.dropAndConnect(f.getSelectionCell(),a,mxEvent.isMetaDown(e)||mxEvent.isControlDown(e)?mxEvent.isShiftDown(e)?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH:mxEvent.isShiftDown(e)?mxConstants.DIRECTION_EAST:
mxConstants.DIRECTION_SOUTH,b,e)),f.scrollCellToVisible(f.getSelectionCell()))}else mxEvent.isShiftDown(e)&&!f.isSelectionEmpty()?(e=f.getEditableCells(f.getSelectionCells()),f.updateShapes(a[0],e,!0),f.scrollCellToVisible(e)):(a=mxEvent.isAltDown(e)?f.getFreeInsertPoint():f.getCenterInsertPoint(f.getBoundingBoxFromGeometry(a,!0)),b.drop(f,e,null,a.x,a.y,!0))};
-Sidebar.prototype.addClickHandler=function(a,b,e,f){var h=b.getGraphForEvent,d=b.mouseDown,g=b.mouseMove,m=b.mouseUp,q=this.editorUi.editor.graph.tolerance,k=!1,u=null,w=this,z=null;b.getGraphForEvent=function(C){return k?h.apply(this,arguments):null};b.mouseDown=function(C){d.apply(this,arguments);u=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C));z=a.style.opacity;k=!1;""==z&&(z="1");null!=this.dragElement&&(this.dragElement.style.display="none",mxUtils.setOpacity(a,50))};b.mouseMove=function(C){(k=
-null!=u&&(Math.abs(u.x-mxEvent.getClientX(C))>q||Math.abs(u.y-mxEvent.getClientY(C))>q))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="",mxUtils.setOpacity(a,100*z));g.apply(this,arguments)};b.mouseUp=function(C){try{mxEvent.isPopupTrigger(C)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=f&&f(C),mxEvent.isConsumed(C)||w.itemClicked(e,b,C,a)),m.apply(b,arguments),mxUtils.setOpacity(a,100*z),u=null,
-w.currentElt=a}catch(E){b.reset(),w.editorUi.handleError(E)}}};Sidebar.prototype.createVertexTemplateEntry=function(a,b,e,f,h,d,g,m){null!=m&&null!=h&&(m+=" "+h);m=null!=m&&0<m.length?m:null!=h?h.toLowerCase():"";return this.addEntry(m,mxUtils.bind(this,function(){return this.createVertexTemplate(a,b,e,f,h,d,g)}))};
-Sidebar.prototype.createVertexTemplate=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){a=[new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a)];a[0].vertex=!0;return this.createVertexTemplateFromCells(a,b,e,h,d,g,m,q,k,u,w,z,C)};
-Sidebar.prototype.createVertexTemplateFromData=function(a,b,e,f,h,d,g,m){var q=null;try{var k=mxUtils.parseXml(Graph.decompress(a)),u=new mxCodec(k),w=new mxGraphModel;u.decode(k.documentElement,w);q=this.graph.cloneCells(w.root.getChildAt(0).children)}catch(z){f=mxResources.get("error")+": "+z.message}return this.createVertexTemplateFromCells(q,b,e,f,h,d,g,m)};Sidebar.prototype.createVertexTemplateFromCells=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){return this.createItem(a,f,h,d,b,e,g,m,q,k,u,w,z,C)};
-Sidebar.prototype.createEdgeTemplateEntry=function(a,b,e,f,h,d,g,m,q){g=null!=g&&0<g.length?g:h.toLowerCase();return this.addEntry(g,mxUtils.bind(this,function(){return this.createEdgeTemplate(a,b,e,f,h,d,m,q)}))};
-Sidebar.prototype.createEdgeTemplate=function(a,b,e,f,h,d,g,m){a=new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a);a.geometry.setTerminalPoint(new mxPoint(0,e),!0);a.geometry.setTerminalPoint(new mxPoint(b,0),!1);a.geometry.relative=!0;a.edge=!0;return this.createEdgeTemplateFromCells([a],b,e,h,d,g,m)};Sidebar.prototype.createEdgeTemplateFromCells=function(a,b,e,f,h,d,g,m,q,k,u,w){return this.createItem(a,f,h,null!=m?m:!0,b,e,d,g,q,k,u,w)};
+Sidebar.prototype.addClickHandler=function(a,b,e,f){var h=b.getGraphForEvent,d=b.mouseDown,g=b.mouseMove,m=b.mouseUp,p=this.editorUi.editor.graph.tolerance,k=!1,u=null,x=this,z=null;b.getGraphForEvent=function(C){return k?h.apply(this,arguments):null};b.mouseDown=function(C){d.apply(this,arguments);u=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C));z=a.style.opacity;k=!1;""==z&&(z="1");null!=this.dragElement&&(this.dragElement.style.display="none",mxUtils.setOpacity(a,50))};b.mouseMove=function(C){(k=
+null!=u&&(Math.abs(u.x-mxEvent.getClientX(C))>p||Math.abs(u.y-mxEvent.getClientY(C))>p))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="",mxUtils.setOpacity(a,100*z));g.apply(this,arguments)};b.mouseUp=function(C){try{mxEvent.isPopupTrigger(C)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=f&&f(C),mxEvent.isConsumed(C)||x.itemClicked(e,b,C,a)),m.apply(b,arguments),mxUtils.setOpacity(a,100*z),u=null,
+x.currentElt=a}catch(E){b.reset(),x.editorUi.handleError(E)}}};Sidebar.prototype.createVertexTemplateEntry=function(a,b,e,f,h,d,g,m){null!=m&&null!=h&&(m+=" "+h);m=null!=m&&0<m.length?m:null!=h?h.toLowerCase():"";return this.addEntry(m,mxUtils.bind(this,function(){return this.createVertexTemplate(a,b,e,f,h,d,g)}))};
+Sidebar.prototype.createVertexTemplate=function(a,b,e,f,h,d,g,m,p,k,u,x,z,C){a=[new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a)];a[0].vertex=!0;return this.createVertexTemplateFromCells(a,b,e,h,d,g,m,p,k,u,x,z,C)};
+Sidebar.prototype.createVertexTemplateFromData=function(a,b,e,f,h,d,g,m){var p=null;try{var k=mxUtils.parseXml(Graph.decompress(a)),u=new mxCodec(k),x=new mxGraphModel;u.decode(k.documentElement,x);p=this.graph.cloneCells(x.root.getChildAt(0).children)}catch(z){f=mxResources.get("error")+": "+z.message}return this.createVertexTemplateFromCells(p,b,e,f,h,d,g,m)};Sidebar.prototype.createVertexTemplateFromCells=function(a,b,e,f,h,d,g,m,p,k,u,x,z,C){return this.createItem(a,f,h,d,b,e,g,m,p,k,u,x,z,C)};
+Sidebar.prototype.createEdgeTemplateEntry=function(a,b,e,f,h,d,g,m,p){g=null!=g&&0<g.length?g:h.toLowerCase();return this.addEntry(g,mxUtils.bind(this,function(){return this.createEdgeTemplate(a,b,e,f,h,d,m,p)}))};
+Sidebar.prototype.createEdgeTemplate=function(a,b,e,f,h,d,g,m){a=new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a);a.geometry.setTerminalPoint(new mxPoint(0,e),!0);a.geometry.setTerminalPoint(new mxPoint(b,0),!1);a.geometry.relative=!0;a.edge=!0;return this.createEdgeTemplateFromCells([a],b,e,h,d,g,m)};Sidebar.prototype.createEdgeTemplateFromCells=function(a,b,e,f,h,d,g,m,p,k,u,x){return this.createItem(a,f,h,null!=m?m:!0,b,e,d,g,p,k,u,x)};
Sidebar.prototype.addPaletteFunctions=function(a,b,e,f){this.addPalette(a,b,e,mxUtils.bind(this,function(h){for(var d=0;d<f.length;d++)h.appendChild(f[d](h))}))};
Sidebar.prototype.addPalette=function(a,b,e,f){b=this.createTitle(b);this.appendChild(b);var h=document.createElement("div");h.className="geSidebar";mxClient.IS_POINTER&&(h.style.touchAction="none");e&&this.expandLibraries?(f(h),f=null):h.style.display="none";this.addFoldingHandler(b,h,f);e=document.createElement("div");e.appendChild(h);this.appendChild(e);null!=a&&(this.palettes[a]=[b,e]);return h};
Sidebar.prototype.addFoldingHandler=function(a,b,e){var f=!1;a.style.backgroundImage="none"==b.style.display?"url('"+Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+"')";a.style.backgroundRepeat="no-repeat";a.style.backgroundPosition="0px 50%";a.style.backgroundSize="20px";mxEvent.addListener(a,"click",mxUtils.bind(this,function(h){if(a.contains(mxEvent.getSource(h))){if("none"==b.style.display){if(f)this.setContentVisible(b,!0);else if(f=!0,null!=e){a.style.cursor="wait";for(var d=[],g=
@@ -2499,49 +2511,50 @@ Sidebar.prototype.addFoldingHandler=function(a,b,e){var f=!1;a.style.backgroundI
"')",this.setContentVisible(b,!1);mxEvent.consume(h)}}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(h){h.preventDefault()}))};
Sidebar.prototype.setContentVisible=function(a,b){mxUtils.setPrefixedStyle(a.style,"transition","all 0.2s linear");mxUtils.setPrefixedStyle(a.style,"transform-origin","top left");b?(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),a.style.display="block",window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform","scaleY(1)");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform",null);mxUtils.setPrefixedStyle(a.style,"transition",
null)}),200)}),0)):(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform",null);mxUtils.setPrefixedStyle(a.style,"transition",null);a.style.display="none"}),200))};Sidebar.prototype.removePalette=function(a){var b=this.palettes[a];if(null!=b){this.palettes[a]=null;for(a=0;a<b.length;a++)this.container.removeChild(b[a]);return!0}return!1};
-Sidebar.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,
+Sidebar.prototype.addImagePalette=function(a,b,e,f,h,d,g){for(var m=[],p=0;p<h.length;p++)mxUtils.bind(this,function(k,u,x){if(null==x&&(null==e||"img/lib/clip_art/"!=e.substring(0,17))){x=k.lastIndexOf("/");var z=k.lastIndexOf(".");x=k.substring(0<=x?x+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(x)))})(h[p],null!=d?d[p]:null,null!=g?g[h[p]]: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,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.addStencilPalette=function(a,b,e,f,h,d,g,m,p,k){g=null!=g?g:1;if(this.addStencilsToIndex){var u=[];if(null!=p)for(k=0;k<p.length;k++)u.push(p[k]);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(x,z,C,E,D){if(null==h||0>mxUtils.indexOf(h,z)){C=this.getTagsForStencil(x,z);var G=null!=m?m[z]:null;null!=G&&C.push(G);u.push(this.createVertexTemplateEntry("shape="+x+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(x){null==f&&(f="");null!=d&&d.call(this,x);if(null!=p)for(var z=0;z<p.length;z++)p[z](x);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(C,E,D,G,I){(null==h||0>mxUtils.indexOf(h,E))&&x.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()});
Uint8Array.from||(Uint8Array.from=function(){var a=Object.prototype.toString,b=function(f){return"function"===typeof f||"[object Function]"===a.call(f)},e=Math.pow(2,53)-1;return function(f){var h=Object(f);if(null==f)throw new TypeError("Array.from requires an array-like object - not null or undefined");var d=1<arguments.length?arguments[1]:void 0,g;if("undefined"!==typeof d){if(!b(d))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(g=
-arguments[2])}var m=Number(h.length);m=isNaN(m)?0:0!==m&&isFinite(m)?(0<m?1:-1)*Math.floor(Math.abs(m)):m;m=Math.min(Math.max(m,0),e);for(var q=b(this)?Object(new this(m)):Array(m),k=0,u;k<m;)u=h[k],q[k]=d?"undefined"===typeof g?d(u,k):d.call(g,u,k):u,k+=1;q.length=m;return q}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
+arguments[2])}var m=Number(h.length);m=isNaN(m)?0:0!==m&&isFinite(m)?(0<m?1:-1)*Math.floor(Math.abs(m)):m;m=Math.min(Math.max(m,0),e);for(var p=b(this)?Object(new this(m)):Array(m),k=0,u;k<m;)u=h[k],p[k]=d?"undefined"===typeof g?d(u,k):d.call(g,u,k):u,k+=1;p.length=m;return p}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
mxGraph.prototype.pageBreakColor="#c0c0c0";mxGraph.prototype.pageScale=1;(function(){try{if(null!=navigator&&null!=navigator.language){var a=navigator.language.toLowerCase();mxGraph.prototype.pageFormat="en-us"===a||"en-ca"===a||"es-mx"===a?mxConstants.PAGE_FORMAT_LETTER_PORTRAIT:mxConstants.PAGE_FORMAT_A4_PORTRAIT}}catch(b){}})();mxText.prototype.baseSpacingTop=5;mxText.prototype.baseSpacingBottom=1;mxGraphModel.prototype.ignoreRelativeEdgeParent=!1;
mxGraphView.prototype.gridImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhCgAKAJEAAAAAAP///8zMzP///yH5BAEAAAMALAAAAAAKAAoAAAIJ1I6py+0Po2wFADs=":IMAGE_PATH+"/grid.gif";mxGraphView.prototype.gridSteps=4;mxGraphView.prototype.minGridSize=4;mxGraphView.prototype.defaultGridColor="#d0d0d0";mxGraphView.prototype.defaultDarkGridColor="#424242";mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultGridColor;mxGraphView.prototype.unit=mxConstants.POINTS;
mxGraphView.prototype.setUnit=function(a){this.unit!=a&&(this.unit=a,this.graph.refresh(),this.fireEvent(new mxEventObject("unitChanged","unit",a)))};mxSvgCanvas2D.prototype.foAltText="[Not supported by viewer]";mxShape.prototype.getConstraints=function(a,b,e){return null};
mxImageShape.prototype.getImageDataUri=function(){var a=String(this.image);if("data:image/svg+xml;base64,"==a.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=a)this.clippedSvg=Graph.clipSvgDataUri(a,!0),this.clippedImage=a;a=this.clippedSvg}return a};
(function(){var a=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(b,e,f,h,d){return"default"==h&&null!=d?"fillcolor"==f.nodeName?d.shapeBackgroundColor:d.shapeForegroundColor:a.apply(this,arguments)}})();(function(){var a=mxResources.get;mxResources.get=function(b,e,f){null==f&&(f=b);return a.apply(this,[b,e,f])}})();
+(function(){var a=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(b,e,f,h,d,g,m,p){var k=a.apply(this,arguments);if(null!=e){var u=k.getElementsByTagName("img");0<u.length&&(u[0].className="geToolbarButton geAdaptiveAsset",u[0].style.margin="4px",u[0].style.width="18px")}return k}})();
Graph=function(a,b,e,f,h,d){mxGraph.call(this,a,b,e,f);this.themes=h||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=d?d:!1;a=this.baseUrl;b=a.indexOf("//");this.domainPathUrl=this.domainUrl="";0<b&&(b=a.indexOf("/",b+2),0<b&&(this.domainUrl=a.substring(0,b)),b=a.lastIndexOf("/"),0<b&&(this.domainPathUrl=a.substring(0,b+1)));this.isHtmlLabel=function(O){O=this.getCurrentCellStyle(O);
-return null!=O?"1"==O.html||"wrap"==O[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var g=null,m=null,q=null,k=null,u=!1,w=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,Z){if("mouseDown"==Z.getProperty("eventName")&&this.isEnabled()){O=Z.getProperty("event");var ca=O.getState();Z=this.view.scale;if(!mxEvent.isAltDown(O.getEvent())&&null!=ca&&(w=this.isCellSelected(ca.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(O.getEvent()))){var V=this.selectionCellsHandler.getHandler(ca.cell);
-if(null==V||null==V.getHandleForEvent(O)){var ja=new mxRectangle(O.getGraphX()-1,O.getGraphY()-1),H=mxEvent.isTouchEvent(O.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;V=H+2;ja.grow(H);if(this.isTableCell(ca.cell)&&this.isCellMovable(ca.cell)&&!this.isCellSelected(ca.cell)&&!(mxUtils.contains(ca,O.getGraphX()-V,O.getGraphY()-V)&&mxUtils.contains(ca,O.getGraphX()-V,O.getGraphY()+V)&&mxUtils.contains(ca,O.getGraphX()+V,O.getGraphY()+V)&&mxUtils.contains(ca,
-O.getGraphX()+V,O.getGraphY()-V))){var ea=this.model.getParent(ca.cell);V=this.model.getParent(ea);if(!this.isCellSelected(V)){H*=Z;var la=2*H;if(this.model.getChildAt(V,0)!=ea&&mxUtils.intersects(ja,new mxRectangle(ca.x,ca.y-H,ca.width,la))||this.model.getChildAt(ea,0)!=ca.cell&&mxUtils.intersects(ja,new mxRectangle(ca.x-H,ca.y,la,ca.height))||mxUtils.intersects(ja,new mxRectangle(ca.x,ca.y+ca.height-H,ca.width,la))||mxUtils.intersects(ja,new mxRectangle(ca.x+ca.width-H,ca.y,la,ca.height)))ea=this.selectionCellsHandler.isHandled(V),
-this.selectCellForEvent(V,O.getEvent()),V=this.selectionCellsHandler.getHandler(V),null!=V&&(H=V.getHandleForEvent(O),null!=H&&(V.start(O.getGraphX(),O.getGraphY(),H),V.blockDelayedSelection=!ea,O.consume()))}}for(;!O.isConsumed()&&null!=ca&&(this.isTableCell(ca.cell)||this.isTableRow(ca.cell)||this.isTable(ca.cell));)this.isSwimlane(ca.cell)&&this.isCellMovable(ca.cell)&&(V=this.getActualStartSize(ca.cell),(0<V.x||0<V.width)&&mxUtils.intersects(ja,new mxRectangle(ca.x+(V.x-V.width-1)*Z+(0==V.x?ca.width:
-0),ca.y,1,ca.height))||(0<V.y||0<V.height)&&mxUtils.intersects(ja,new mxRectangle(ca.x,ca.y+(V.y-V.height-1)*Z+(0==V.y?ca.height:0),ca.width,1)))&&(this.selectCellForEvent(ca.cell,O.getEvent()),V=this.selectionCellsHandler.getHandler(ca.cell),null!=V&&null!=V.customHandles&&(H=mxEvent.CUSTOM_HANDLE-V.customHandles.length+1,V.start(O.getGraphX(),O.getGraphY(),H),O.consume())),ca=this.view.getState(this.model.getParent(ca.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,function(O,
-Z){if("mouseDown"==Z.getProperty("eventName")&&this.isEnabled()){O=Z.getProperty("event");var ca=O.getState();mxEvent.isAltDown(O.getEvent())||mxEvent.isControlDown(Z)||mxEvent.isShiftDown(Z)||w||null==ca||!this.model.isEdge(ca.cell)||(g=new mxPoint(O.getGraphX(),O.getGraphY()),u=this.isCellSelected(ca.cell),q=ca,m=O,null!=ca.text&&null!=ca.text.boundingBox&&mxUtils.contains(ca.text.boundingBox,O.getGraphX(),O.getGraphY())?k=mxEvent.LABEL_HANDLE:(Z=this.selectionCellsHandler.getHandler(ca.cell),null!=
-Z&&null!=Z.bends&&0<Z.bends.length&&(k=Z.getHandleForEvent(O))))}}));this.addMouseListener({mouseDown:function(O,Z){},mouseMove:mxUtils.bind(this,function(O,Z){O=this.selectionCellsHandler.handlers.map;for(var ca in O)if(null!=O[ca].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(Z.getEvent())){var V=this.tolerance;if(null!=g&&null!=q&&null!=m){if(ca=q,null!=k||Math.abs(g.x-Z.getGraphX())>V||Math.abs(g.y-Z.getGraphY())>V){var ja=null;mxEvent.isShiftDown(Z.getEvent())||
-(ja=this.selectionCellsHandler.getHandler(ca.cell));if(null!=ja&&null!=ja.bends&&0<ja.bends.length){ja.redrawHandles();var H=null!=k?k:ja.getHandleForEvent(m),ea=this.view.getEdgeStyle(ca),la=ea==mxEdgeStyle.EntityRelation;V=ca.absolutePoints;u||(H=k);H!=mxEvent.LABEL_HANDLE&&null!=V&&(H=k,null==H&&(O=new mxRectangle(g.x,g.y),O.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(O,V[0].x,V[0].y)?H=0:mxUtils.contains(O,V[V.length-1].x,V[V.length-1].y)?H=ja.bends.length-1:null!=V&&(null==
-ea&&null==H||ea==mxEdgeStyle.SegmentConnector||ea==mxEdgeStyle.OrthConnector)&&(null!=ea&&(2==V.length||3==V.length&&(0==Math.round(V[0].x-V[1].x)&&0==Math.round(V[1].x-V[2].x)||0==Math.round(V[0].y-V[1].y)&&0==Math.round(V[1].y-V[2].y)))?H=2:(H=mxUtils.findNearestSegment(ca,g.x,g.y),H=null==ea?mxEvent.VIRTUAL_HANDLE-H:H+1))),null==H&&(H=mxEvent.VIRTUAL_HANDLE));O=H==mxEvent.LABEL_HANDLE||0==H||H==ja.bends.length-1;if(!la&&(null!=ca.visibleSourceState||null!=ca.visibleTargetState)||O)ja.start(Z.getGraphX(),
-Z.getGraphX(),H),Z.consume(),this.graphHandler.reset()}null!=ja&&(this.selectionCellsHandler.isHandlerActive(ja)?this.isCellSelected(ca.cell)||(this.selectionCellsHandler.handlers.put(ca.cell,ja),this.selectCellForEvent(ca.cell,Z.getEvent())):this.isCellSelected(ca.cell)||ja.destroy());u=!1;g=m=q=k=null}}else if(ca=Z.getState(),null!=ca&&this.isCellEditable(ca.cell)){O=this.model.getParent(ca.cell);ja=null;if(this.model.isEdge(ca.cell)&&!this.isCellSelected(ca.cell)&&!mxEvent.isAltDown(Z.getEvent())&&
-!mxEvent.isShiftDown(Z.getEvent())&&!this.isAncestorSelected(ca.cell)&&(this.isSwimlane(O)||this.model.isLayer(O)||this.getCurrentRoot()==O)){if(O=new mxRectangle(Z.getGraphX(),Z.getGraphY()),O.grow(mxEdgeHandler.prototype.handleImage.width/2),V=ca.absolutePoints,null!=V)null!=ca.text&&null!=ca.text.boundingBox&&mxUtils.contains(ca.text.boundingBox,Z.getGraphX(),Z.getGraphY())?ja="move":mxUtils.contains(O,V[0].x,V[0].y)||mxUtils.contains(O,V[V.length-1].x,V[V.length-1].y)?ja="pointer":(ea=this.view.getEdgeStyle(ca),
-ea==mxEdgeStyle.EntityRelation||null==ca.visibleSourceState&&null==ca.visibleTargetState||(ja="crosshair",ea!=mxEdgeStyle.SegmentConnector&&ea!=mxEdgeStyle.OrthConnector))||(Z=mxUtils.findNearestSegment(ca,Z.getGraphX(),Z.getGraphY()),Z<V.length-1&&0<=Z&&(ja=0==Math.round(V[Z].x-V[Z+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(Z.getEvent())){V=mxShape.prototype.svgStrokeTolerance/2;O=new mxRectangle(Z.getGraphX(),Z.getGraphY());O.grow(V);if(this.isTableCell(ca.cell)&&this.isCellMovable(ca.cell)&&
-(Z=this.model.getParent(ca.cell),V=this.model.getParent(Z),!this.isCellSelected(V)))if(mxUtils.intersects(O,new mxRectangle(ca.x,ca.y-2,ca.width,4))&&this.model.getChildAt(V,0)!=Z||mxUtils.intersects(O,new mxRectangle(ca.x,ca.y+ca.height-2,ca.width,4)))ja="row-resize";else if(mxUtils.intersects(O,new mxRectangle(ca.x-2,ca.y,4,ca.height))&&this.model.getChildAt(Z,0)!=ca.cell||mxUtils.intersects(O,new mxRectangle(ca.x+ca.width-2,ca.y,4,ca.height)))ja="col-resize";for(Z=ca;null==ja&&null!=Z&&(this.isTableCell(Z.cell)||
-this.isTableRow(Z.cell)||this.isTable(Z.cell));)this.isSwimlane(Z.cell)&&this.isCellMovable(Z.cell)&&(V=this.getActualStartSize(Z.cell),H=this.view.scale,(0<V.x||0<V.width)&&mxUtils.intersects(O,new mxRectangle(Z.x+(V.x-V.width-1)*H+(0==V.x?Z.width*H:0),Z.y,1,Z.height))?ja="col-resize":(0<V.y||0<V.height)&&mxUtils.intersects(O,new mxRectangle(Z.x,Z.y+(V.y-V.height-1)*H+(0==V.y?Z.height:0),Z.width,1))&&(ja="row-resize")),Z=this.view.getState(this.model.getParent(Z.cell))}null!=ja&&ca.setCursor(ja)}}}),
-mouseUp:mxUtils.bind(this,function(O,Z){k=g=m=q=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var z=document.createElement("div");this.cellRenderer.getLabelValue=function(O){var Z=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);O.view.graph.isHtmlLabel(O.cell)&&("0"==mxUtils.getValue(O.style,"html","0")?Z=mxUtils.htmlEntities(Z,!1):(O.lastLabelValue!=Z&&(O.lastLabelValue=Z,O.lastSanitizedLabelValue=Graph.sanitizeHtml(Z),z.innerHTML=O.lastSanitizedLabelValue,Graph.addLightDarkColors(z,
+return null!=O?"1"==O.html||"wrap"==O[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var g=null,m=null,p=null,k=null,u=!1,x=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,Z){if("mouseDown"==Z.getProperty("eventName")&&this.isEnabled()){O=Z.getProperty("event");var ca=O.getState();Z=this.view.scale;if(!mxEvent.isAltDown(O.getEvent())&&null!=ca&&(x=this.isCellSelected(ca.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(O.getEvent()))){var W=this.selectionCellsHandler.getHandler(ca.cell);
+if(null==W||null==W.getHandleForEvent(O)){var ja=new mxRectangle(O.getGraphX()-1,O.getGraphY()-1),H=mxEvent.isTouchEvent(O.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;W=H+2;ja.grow(H);if(this.isTableCell(ca.cell)&&this.isCellMovable(ca.cell)&&!this.isCellSelected(ca.cell)&&!(mxUtils.contains(ca,O.getGraphX()-W,O.getGraphY()-W)&&mxUtils.contains(ca,O.getGraphX()-W,O.getGraphY()+W)&&mxUtils.contains(ca,O.getGraphX()+W,O.getGraphY()+W)&&mxUtils.contains(ca,
+O.getGraphX()+W,O.getGraphY()-W))){var ea=this.model.getParent(ca.cell);W=this.model.getParent(ea);if(!this.isCellSelected(W)){H*=Z;var oa=2*H;if(this.model.getChildAt(W,0)!=ea&&mxUtils.intersects(ja,new mxRectangle(ca.x,ca.y-H,ca.width,oa))||this.model.getChildAt(ea,0)!=ca.cell&&mxUtils.intersects(ja,new mxRectangle(ca.x-H,ca.y,oa,ca.height))||mxUtils.intersects(ja,new mxRectangle(ca.x,ca.y+ca.height-H,ca.width,oa))||mxUtils.intersects(ja,new mxRectangle(ca.x+ca.width-H,ca.y,oa,ca.height)))ea=this.selectionCellsHandler.isHandled(W),
+this.selectCellForEvent(W,O.getEvent()),W=this.selectionCellsHandler.getHandler(W),null!=W&&(H=W.getHandleForEvent(O),null!=H&&(W.start(O.getGraphX(),O.getGraphY(),H),W.blockDelayedSelection=!ea,O.consume()))}}for(;!O.isConsumed()&&null!=ca&&(this.isTableCell(ca.cell)||this.isTableRow(ca.cell)||this.isTable(ca.cell));)this.isSwimlane(ca.cell)&&this.isCellMovable(ca.cell)&&(W=this.getActualStartSize(ca.cell),(0<W.x||0<W.width)&&mxUtils.intersects(ja,new mxRectangle(ca.x+(W.x-W.width-1)*Z+(0==W.x?ca.width:
+0),ca.y,1,ca.height))||(0<W.y||0<W.height)&&mxUtils.intersects(ja,new mxRectangle(ca.x,ca.y+(W.y-W.height-1)*Z+(0==W.y?ca.height:0),ca.width,1)))&&(this.selectCellForEvent(ca.cell,O.getEvent()),W=this.selectionCellsHandler.getHandler(ca.cell),null!=W&&null!=W.customHandles&&(H=mxEvent.CUSTOM_HANDLE-W.customHandles.length+1,W.start(O.getGraphX(),O.getGraphY(),H),O.consume())),ca=this.view.getState(this.model.getParent(ca.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,function(O,
+Z){if("mouseDown"==Z.getProperty("eventName")&&this.isEnabled()){O=Z.getProperty("event");var ca=O.getState();mxEvent.isAltDown(O.getEvent())||mxEvent.isControlDown(Z)||mxEvent.isShiftDown(Z)||x||null==ca||!this.model.isEdge(ca.cell)||(g=new mxPoint(O.getGraphX(),O.getGraphY()),u=this.isCellSelected(ca.cell),p=ca,m=O,null!=ca.text&&null!=ca.text.boundingBox&&mxUtils.contains(ca.text.boundingBox,O.getGraphX(),O.getGraphY())?k=mxEvent.LABEL_HANDLE:(Z=this.selectionCellsHandler.getHandler(ca.cell),null!=
+Z&&null!=Z.bends&&0<Z.bends.length&&(k=Z.getHandleForEvent(O))))}}));this.addMouseListener({mouseDown:function(O,Z){},mouseMove:mxUtils.bind(this,function(O,Z){O=this.selectionCellsHandler.handlers.map;for(var ca in O)if(null!=O[ca].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(Z.getEvent())){var W=this.tolerance;if(null!=g&&null!=p&&null!=m){if(ca=p,null!=k||Math.abs(g.x-Z.getGraphX())>W||Math.abs(g.y-Z.getGraphY())>W){var ja=null;mxEvent.isShiftDown(Z.getEvent())||
+(ja=this.selectionCellsHandler.getHandler(ca.cell));if(null!=ja&&null!=ja.bends&&0<ja.bends.length){ja.redrawHandles();var H=null!=k?k:ja.getHandleForEvent(m),ea=this.view.getEdgeStyle(ca),oa=ea==mxEdgeStyle.EntityRelation;W=ca.absolutePoints;u||(H=k);H!=mxEvent.LABEL_HANDLE&&null!=W&&(H=k,null==H&&(O=new mxRectangle(g.x,g.y),O.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(O,W[0].x,W[0].y)?H=0:mxUtils.contains(O,W[W.length-1].x,W[W.length-1].y)?H=ja.bends.length-1:null!=W&&(null==
+ea&&null==H||ea==mxEdgeStyle.SegmentConnector||ea==mxEdgeStyle.OrthConnector)&&(null!=ea&&(2==W.length||3==W.length&&(0==Math.round(W[0].x-W[1].x)&&0==Math.round(W[1].x-W[2].x)||0==Math.round(W[0].y-W[1].y)&&0==Math.round(W[1].y-W[2].y)))?H=2:(H=mxUtils.findNearestSegment(ca,g.x,g.y),H=null==ea?mxEvent.VIRTUAL_HANDLE-H:H+1))),null==H&&(H=mxEvent.VIRTUAL_HANDLE));O=H==mxEvent.LABEL_HANDLE||0==H||H==ja.bends.length-1;if(!oa&&(null!=ca.visibleSourceState||null!=ca.visibleTargetState)||O)ja.start(Z.getGraphX(),
+Z.getGraphX(),H),Z.consume(),this.graphHandler.reset()}null!=ja&&(this.selectionCellsHandler.isHandlerActive(ja)?this.isCellSelected(ca.cell)||(this.selectionCellsHandler.handlers.put(ca.cell,ja),this.selectCellForEvent(ca.cell,Z.getEvent())):this.isCellSelected(ca.cell)||ja.destroy());u=!1;g=m=p=k=null}}else if(ca=Z.getState(),null!=ca&&this.isCellEditable(ca.cell)){O=this.model.getParent(ca.cell);ja=null;if(this.model.isEdge(ca.cell)&&!this.isCellSelected(ca.cell)&&!mxEvent.isAltDown(Z.getEvent())&&
+!mxEvent.isShiftDown(Z.getEvent())&&!this.isAncestorSelected(ca.cell)&&(this.isSwimlane(O)||this.model.isLayer(O)||this.getCurrentRoot()==O)){if(O=new mxRectangle(Z.getGraphX(),Z.getGraphY()),O.grow(mxEdgeHandler.prototype.handleImage.width/2),W=ca.absolutePoints,null!=W)null!=ca.text&&null!=ca.text.boundingBox&&mxUtils.contains(ca.text.boundingBox,Z.getGraphX(),Z.getGraphY())?ja="move":mxUtils.contains(O,W[0].x,W[0].y)||mxUtils.contains(O,W[W.length-1].x,W[W.length-1].y)?ja="pointer":(ea=this.view.getEdgeStyle(ca),
+ea==mxEdgeStyle.EntityRelation||null==ca.visibleSourceState&&null==ca.visibleTargetState||(ja="crosshair",ea!=mxEdgeStyle.SegmentConnector&&ea!=mxEdgeStyle.OrthConnector))||(Z=mxUtils.findNearestSegment(ca,Z.getGraphX(),Z.getGraphY()),Z<W.length-1&&0<=Z&&(ja=0==Math.round(W[Z].x-W[Z+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(Z.getEvent())){W=mxShape.prototype.svgStrokeTolerance/2;O=new mxRectangle(Z.getGraphX(),Z.getGraphY());O.grow(W);if(this.isTableCell(ca.cell)&&this.isCellMovable(ca.cell)&&
+(Z=this.model.getParent(ca.cell),W=this.model.getParent(Z),!this.isCellSelected(W)))if(mxUtils.intersects(O,new mxRectangle(ca.x,ca.y-2,ca.width,4))&&this.model.getChildAt(W,0)!=Z||mxUtils.intersects(O,new mxRectangle(ca.x,ca.y+ca.height-2,ca.width,4)))ja="row-resize";else if(mxUtils.intersects(O,new mxRectangle(ca.x-2,ca.y,4,ca.height))&&this.model.getChildAt(Z,0)!=ca.cell||mxUtils.intersects(O,new mxRectangle(ca.x+ca.width-2,ca.y,4,ca.height)))ja="col-resize";for(Z=ca;null==ja&&null!=Z&&(this.isTableCell(Z.cell)||
+this.isTableRow(Z.cell)||this.isTable(Z.cell));)this.isSwimlane(Z.cell)&&this.isCellMovable(Z.cell)&&(W=this.getActualStartSize(Z.cell),H=this.view.scale,(0<W.x||0<W.width)&&mxUtils.intersects(O,new mxRectangle(Z.x+(W.x-W.width-1)*H+(0==W.x?Z.width*H:0),Z.y,1,Z.height))?ja="col-resize":(0<W.y||0<W.height)&&mxUtils.intersects(O,new mxRectangle(Z.x,Z.y+(W.y-W.height-1)*H+(0==W.y?Z.height:0),Z.width,1))&&(ja="row-resize")),Z=this.view.getState(this.model.getParent(Z.cell))}null!=ja&&ca.setCursor(ja)}}}),
+mouseUp:mxUtils.bind(this,function(O,Z){k=g=m=p=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var z=document.createElement("div");this.cellRenderer.getLabelValue=function(O){var Z=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);O.view.graph.isHtmlLabel(O.cell)&&("0"==mxUtils.getValue(O.style,"html","0")?Z=mxUtils.htmlEntities(Z,!1):(O.lastLabelValue!=Z&&(O.lastLabelValue=Z,O.lastSanitizedLabelValue=Graph.sanitizeHtml(Z),z.innerHTML=O.lastSanitizedLabelValue,Graph.addLightDarkColors(z,
null,"simple"==O.view.graph.getAdaptiveColors())&&(O.lastSanitizedLabelValue=z.innerHTML)),Z=O.lastSanitizedLabelValue));return Z};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);
-this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(O,Z){return!1};this.alternateEdgeStyle="vertical";null==f&&this.loadStylesheet();var C=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var O=C.apply(this,arguments);if(this.graph.pageVisible){var Z=[],ca=this.graph.pageFormat,V=this.graph.pageScale,ja=ca.width*V;ca=ca.height*V;V=this.graph.view.translate;for(var H=this.graph.view.scale,ea=this.graph.getPageLayout(),la=0;la<ea.width;la++)Z.push(new mxRectangle(((ea.x+
-la)*ja+V.x)*H,(ea.y*ca+V.y)*H,ja*H,ca*H));for(la=1;la<ea.height;la++)Z.push(new mxRectangle((ea.x*ja+V.x)*H,((ea.y+la)*ca+V.y)*H,ja*H,ca*H));O=Z.concat(O)}return O};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(O,Z){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 Z=E.apply(this,arguments),ca=new mxDictionary,V=[],ja=0;ja<Z.length;ja++){var H=this.graph.isTableCell(O)&&this.graph.isTableCell(Z[ja])&&this.graph.isCellSelected(Z[ja])?this.graph.model.getParent(Z[ja]):this.graph.isTableRow(O)&&this.graph.isTableRow(Z[ja])&&this.graph.isCellSelected(Z[ja])?Z[ja]:this.graph.getCompositeParent(Z[ja]);null==H||ca.get(H)||(ca.put(H,!0),V.push(H))}return V};var D=this.graphHandler.start;
-this.graphHandler.start=function(O,Z,ca,V){var ja=!1;this.graph.isTableCell(O)&&(this.graph.isCellSelected(O)?ja=!0:O=this.graph.model.getParent(O));ja||this.graph.isTableRow(O)&&this.graph.isCellSelected(O)||(O=this.graph.getCompositeParent(O));D.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(O,Z){Z=this.graph.getCompositeParent(Z);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(O,Z,ca,V,ja,H){var ea=
-mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=V&&this.graph.applyNewEdgeStyle(V,[ea]);return ea};var G=new mxRubberband(this);this.getRubberband=function(){return G};var I=(new Date).getTime(),L=0,T=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var O=this.currentState;T.apply(this,arguments);O!=this.currentState?(I=(new Date).getTime(),L=0):L=(new Date).getTime()-I};var K=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=
+this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(O,Z){return!1};this.alternateEdgeStyle="vertical";null==f&&this.loadStylesheet();var C=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var O=C.apply(this,arguments);if(this.graph.pageVisible){var Z=[],ca=this.graph.pageFormat,W=this.graph.pageScale,ja=ca.width*W;ca=ca.height*W;W=this.graph.view.translate;for(var H=this.graph.view.scale,ea=this.graph.getPageLayout(),oa=0;oa<ea.width;oa++)Z.push(new mxRectangle(((ea.x+
+oa)*ja+W.x)*H,(ea.y*ca+W.y)*H,ja*H,ca*H));for(oa=1;oa<ea.height;oa++)Z.push(new mxRectangle((ea.x*ja+W.x)*H,((ea.y+oa)*ca+W.y)*H,ja*H,ca*H));O=Z.concat(O)}return O};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(O,Z){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 Z=E.apply(this,arguments),ca=new mxDictionary,W=[],ja=0;ja<Z.length;ja++){var H=this.graph.isTableCell(O)&&this.graph.isTableCell(Z[ja])&&this.graph.isCellSelected(Z[ja])?this.graph.model.getParent(Z[ja]):this.graph.isTableRow(O)&&this.graph.isTableRow(Z[ja])&&this.graph.isCellSelected(Z[ja])?Z[ja]:this.graph.getCompositeParent(Z[ja]);null==H||ca.get(H)||(ca.put(H,!0),W.push(H))}return W};var D=this.graphHandler.start;
+this.graphHandler.start=function(O,Z,ca,W){var ja=!1;this.graph.isTableCell(O)&&(this.graph.isCellSelected(O)?ja=!0:O=this.graph.model.getParent(O));ja||this.graph.isTableRow(O)&&this.graph.isCellSelected(O)||(O=this.graph.getCompositeParent(O));D.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(O,Z){Z=this.graph.getCompositeParent(Z);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(O,Z,ca,W,ja,H){var ea=
+mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=W&&this.graph.applyNewEdgeStyle(W,[ea]);return ea};var G=new mxRubberband(this);this.getRubberband=function(){return G};var I=(new Date).getTime(),L=0,T=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var O=this.currentState;T.apply(this,arguments);O!=this.currentState?(I=(new Date).getTime(),L=0):L=(new Date).getTime()-I};var K=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"))&&K.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 Q=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(Q=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=Q)}));this.popupMenuHandler.autoExpand=
-!0;this.popupMenuHandler.isSelectOnPopup=function(O){return mxEvent.isMouseEvent(O.getEvent())};var P=this.click;this.click=function(O){var Z=null==O.state&&null!=O.sourceState&&this.isCellLocked(this.getLayerForCell(O.sourceState.cell));if(this.isEnabled()&&!Z||O.isConsumed())return P.apply(this,arguments);var ca=Z?O.sourceState.cell:O.getCell();if(null!=ca){var V=this.getClickableLinkForCell(ca);null!=V?this.isCustomLink(V)?this.customLinkClicked(V,ca):this.openLink(V):Z&&this.clearSelection()}};
+!0;this.popupMenuHandler.isSelectOnPopup=function(O){return mxEvent.isMouseEvent(O.getEvent())};var P=this.click;this.click=function(O){var Z=null==O.state&&null!=O.sourceState&&this.isCellLocked(this.getLayerForCell(O.sourceState.cell));if(this.isEnabled()&&!Z||O.isConsumed())return P.apply(this,arguments);var ca=Z?O.sourceState.cell:O.getCell();if(null!=ca){var W=this.getClickableLinkForCell(ca);null!=W?this.isCustomLink(W)?this.customLinkClicked(W,ca):this.openLink(W):Z&&this.clearSelection()}};
this.tooltipHandler.getStateForEvent=function(O){return O.sourceState};var M=this.tooltipHandler.show;this.tooltipHandler.show=function(){M.apply(this,arguments);if(null!=this.div)for(var O=this.div.getElementsByTagName("a"),Z=0;Z<O.length;Z++)null!=O[Z].getAttribute("href")&&null==O[Z].getAttribute("target")&&O[Z].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(O){return O.sourceState};this.getCursorForMouseEvent=function(O){var Z=null==O.state&&null!=O.sourceState&&
-this.isCellLocked(O.sourceState.cell);return this.getCursorForCell(Z?O.sourceState.cell:O.getCell())};var W=this.getCursorForCell;this.getCursorForCell=function(O){if(!this.isEnabled()||this.isCellLocked(O)){if(null!=this.getClickableLinkForCell(O))return"pointer";if(this.isCellLocked(O))return"default"}return W.apply(this,arguments)};this.selectRegion=function(O,Z){var ca=mxEvent.isAltDown(Z)?O:null;O=this.getCells(O.x,O.y,O.width,O.height,null,null,ca,null,!0);if(this.isToggleEvent(Z))for(ca=0;ca<
+this.isCellLocked(O.sourceState.cell);return this.getCursorForCell(Z?O.sourceState.cell:O.getCell())};var V=this.getCursorForCell;this.getCursorForCell=function(O){if(!this.isEnabled()||this.isCellLocked(O)){if(null!=this.getClickableLinkForCell(O))return"pointer";if(this.isCellLocked(O))return"default"}return V.apply(this,arguments)};this.selectRegion=function(O,Z){var ca=mxEvent.isAltDown(Z)?O:null;O=this.getCells(O.x,O.y,O.width,O.height,null,null,ca,null,!0);if(this.isToggleEvent(Z))for(ca=0;ca<
O.length;ca++)this.selectCellForEvent(O[ca],Z);else this.selectCellsForEvent(O,Z);return O};var aa=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(O,Z,ca){return this.graph.isCellSelected(O)?!1:aa.apply(this,arguments)};var ia=this.updateMouseEvent;this.updateMouseEvent=function(O){O=ia.apply(this,arguments);null!=O.state&&this.isCellLocked(this.getLayerForCell(O.getCell()))&&(null==this.getLinkForCell(O.getCell())?O.state=this.view.getState(this.getCellAt(O.getGraphX(),
-O.getGraphY(),null,null,null,mxUtils.bind(this,function(Z,ca,V){return O.state==Z||this.isCellLocked(this.getLayerForCell(Z.cell))&&null==this.getLinkForCell(Z.cell)}))):O.state=null);return O};var oa=this.isCellSelectable;this.isCellSelectable=function(O){return oa.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(O))};this.isCellLocked=function(O){for(;null!=O;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(O),"locked","0"))return!0;O=this.model.getParent(O)}return!1};var qa=null;
+O.getGraphY(),null,null,null,mxUtils.bind(this,function(Z,ca,W){return O.state==Z||this.isCellLocked(this.getLayerForCell(Z.cell))&&null==this.getLinkForCell(Z.cell)}))):O.state=null);return O};var na=this.isCellSelectable;this.isCellSelectable=function(O){return na.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(O))};this.isCellLocked=function(O){for(;null!=O;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(O),"locked","0"))return!0;O=this.model.getParent(O)}return!1};var qa=null;
this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,Z){"mouseDown"==Z.getProperty("eventName")&&(O=Z.getProperty("event").getState(),qa=null==O||this.isSelectionEmpty()||this.isCellSelected(O.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(O,Z){if(!mxEvent.isMultiTouchEvent(Z)){O=Z.getProperty("event");var ca=Z.getProperty("cell");null==ca?(O=mxUtils.convertPoint(this.container,mxEvent.getClientX(O),mxEvent.getClientY(O)),
G.start(O.x,O.y)):null!=qa?this.addSelectionCells(qa):1<this.getSelectionCount()&&this.isCellSelected(ca)&&this.removeSelectionCell(ca);qa=null;Z.consume()}}));this.connectionHandler.selectCells=function(O,Z){this.graph.setSelectionCell(Z||O)};this.connectionHandler.constraintHandler.isStateIgnored=function(O,Z){var ca=O.view.graph;return Z&&(ca.isCellSelected(O.cell)||ca.isTableRow(O.cell)&&ca.selectionCellsHandler.isHandled(ca.model.getParent(O.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,
mxUtils.bind(this,function(){var O=this.connectionHandler.constraintHandler;null!=O.currentFocus&&O.isStateIgnored(O.currentFocus,!0)&&(O.currentFocus=null,O.constraints=null,O.destroyIcons());O.destroyFocusHighlight()}));Graph.touchStyle&&this.initTouch()}this.currentTranslate=new mxPoint(0,0)};Graph.touchStyle=mxClient.IS_TOUCH||mxClient.IS_FF&&mxClient.IS_WIN||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints||null==window.urlParams||"1"==urlParams.touch;
@@ -2557,36 +2570,37 @@ Graph.createSvgImage=function(a,b,e,f,h){e=unescape(encodeURIComponent(Graph.svg
Graph.getSvgFromDataUri=function(a){return null!=a&&"data:image/svg"==a.substring(0,14)?Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+decodeURIComponent(escape(atob(a.substring(a.indexOf(",")+1)))):null};
Graph.createSvgNode=function(a,b,e,f,h){var d=mxUtils.createXmlDocument(),g=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"svg"):d.createElement("svg");null!=h&&g.setAttribute("style","background: "+h.light+"; background-color: "+h.cssText+";");null==d.createElementNS?(g.setAttribute("xmlns",mxConstants.NS_SVG),g.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):g.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);g.setAttribute("version","1.1");g.setAttribute("width",
e+"px");g.setAttribute("height",f+"px");g.setAttribute("viewBox",a+" "+b+" "+e+" "+f);d.appendChild(g);return g};
-Graph.htmlToPng=function(a,b,e,f,h,d){h=null!=h?h:"";d=null!=d?d:Editor.htmlRasterScale;var g=document.createElement("canvas");g.width=b*d;g.height=e*d;var m=document.createElement("img");m.onload=mxUtils.bind(this,function(){try{var k=g.getContext("2d");k.scale(d,d);k.drawImage(m,0,0);f(g.toDataURL())}catch(u){f(null)}});var q=mxUtils.createXmlDocument();q=null!=q.createElementNS?q.createElementNS(mxConstants.NS_SVG,"svg"):q.createElement("svg");a=(new mxSvgCanvas2D(q)).convertHtml(a);m.onerror=
+Graph.htmlToPng=function(a,b,e,f,h,d){h=null!=h?h:"";d=null!=d?d:Editor.htmlRasterScale;var g=document.createElement("canvas");g.width=b*d;g.height=e*d;var m=document.createElement("img");m.onload=mxUtils.bind(this,function(){try{var k=g.getContext("2d");k.scale(d,d);k.drawImage(m,0,0);f(g.toDataURL())}catch(u){f(null)}});var p=mxUtils.createXmlDocument();p=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");a=(new mxSvgCanvas2D(p)).convertHtml(a);m.onerror=
function(k){f(null)};m.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+b+'" height="'+e+'">'+(""!=h?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+h+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+a+"</div></foreignObject></svg>")};
-Graph.addLightDarkColors=function(a,b,e,f){function h(z,C,E){return null!=f?f(z,C,E):mxUtils.isValidColor(E)?(null==q&&null!=b&&(q={}),null!=q&&(q[C]=z.style.getPropertyValue(C)),E=mxUtils.getLightDarkColor(E,null,null,e),z.style.setProperty(C,E.cssText),!0):!1}for(var d=a.getElementsByTagName("*"),g=!1,m=0;m<d.length;m++)if(d[m]!=a){for(var q=null,k=0;k<d[m].style.length;k++){var u=d[m].style.item(k),w=d[m].style.getPropertyValue(u);g=h(d[m],u,w)||g}"FONT"==d[m].nodeName&&""==d[m].style.getPropertyValue("color")&&
-(w=d[m].getAttribute("color"),g=h(d[m],"color",w)||g);null!=b&&null!=q&&d[m].setAttribute(b,JSON.stringify(q))}return g};Graph.removeLightDarkColors=function(a,b){a=a.getElementsByTagName("*");for(var e=!1,f=0;f<a.length;f++)try{var h=a[f].getAttribute(b);if(null!=h){a[f].removeAttribute(b);var d=JSON.parse(h),g;for(g in d){var m=d[g];""==m?(a[f].style[g]=null,""==a[f].getAttribute("style")&&a[f].removeAttribute("style")):a[f].style[g]=m;e=!0}}}catch(q){}return e};
-Graph.setTextColor=function(a,b,e){for(var f=e?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,h=e?"color":"background-color",d=a.getElementsByTagName("*"),g=[],m=0;m<d.length;m++)g.push({node:d[m],value:d[m].style[h]});document.execCommand(e?"forecolor":"backcolor",!1,f);a=a.getElementsByTagName("*");for(m=0;m<a.length;m++){if(m<g.length&&g[m].node==a[m]&&g[m].value!=a[m].style[h]&&""==a[m].style[h])try{if(d=a[m].getAttribute(Graph.backupStyleAttribute),null!=d){var q=JSON.parse(d);q[h]=
-"";a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(q))}}catch(k){}if(e&&a[m].getAttribute("color")==f||a[m].style[h]==f){e&&a[m].getAttribute("color")==f&&a[m].removeAttribute("color");a[m].style[h]=b!=mxConstants.NONE?mxUtils.getLightDarkColor(b).cssText:null;try{d=a[m].getAttribute(Graph.backupStyleAttribute),q=null!=d?JSON.parse(d):{},q[h]=b!=mxConstants.NONE?b:"",a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(q))}catch(k){}if(e&&mxClient.IS_FF){b=a[m];e=b.firstChild;if(null!=
+Graph.addLightDarkColors=function(a,b,e,f){function h(z,C,E){return null!=f?f(z,C,E):mxUtils.isValidColor(E)?(null==g&&null!=b&&(g={}),null!=g&&(g[C]=z.style.getPropertyValue(C)),E=mxUtils.getLightDarkColor(E,null,null,e),z.style.setProperty(C,E.cssText),!0):!1}for(var d=a.getElementsByTagName("*"),g=null,m=!1,p=0;p<d.length;p++)if(d[p]!=a&&null!=d[p].style){g=null;for(var k=0;k<d[p].style.length;k++){var u=d[p].style.item(k),x=d[p].style.getPropertyValue(u);m=h(d[p],u,x)||m}"FONT"==d[p].nodeName&&
+""==d[p].style.getPropertyValue("color")&&(x=d[p].getAttribute("color"),m=h(d[p],"color",x)||m);null!=b&&null!=g&&d[p].setAttribute(b,JSON.stringify(g))}return m};Graph.removeLightDarkColors=function(a,b){a=a.getElementsByTagName("*");for(var e=!1,f=0;f<a.length;f++)try{var h=a[f].getAttribute(b);if(null!=h){a[f].removeAttribute(b);var d=JSON.parse(h),g;for(g in d){var m=d[g];""==m?(a[f].style[g]=null,""==a[f].getAttribute("style")&&a[f].removeAttribute("style")):a[f].style[g]=m;e=!0}}}catch(p){}return e};
+Graph.getGivenColor=function(a,b){var e=null;if(a.nodeType==mxConstants.NODETYPE_ELEMENT){try{var f=a.getAttribute(Graph.backupStyleAttribute);if(null!=f){var h=JSON.parse(f);null!=h&&null!=h[b]&&("color"==b&&"FONT"==a.nodeName&&""==h[b]&&null!=a.getAttribute("color")?e=a.getAttribute("color"):""!=h[b]&&(e=h[b]))}}catch(d){}null==e&&""!=a.style[b]&&(e=a.style[b])}return e};
+Graph.setTextColor=function(a,b,e){for(var f=e?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,h=e?"color":"background-color",d=a.getElementsByTagName("*"),g=[],m=0;m<d.length;m++)g.push({node:d[m],value:d[m].style[h]});document.execCommand(e?"forecolor":"backcolor",!1,f);a=a.getElementsByTagName("*");for(m=0;m<a.length;m++){if(m<g.length&&g[m].node==a[m]&&g[m].value!=a[m].style[h]&&""==a[m].style[h])try{if(d=a[m].getAttribute(Graph.backupStyleAttribute),null!=d){var p=JSON.parse(d);p[h]=
+"";a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(p))}}catch(k){}if(e&&a[m].getAttribute("color")==f||a[m].style[h]==f){e&&a[m].getAttribute("color")==f&&a[m].removeAttribute("color");a[m].style[h]=b!=mxConstants.NONE?mxUtils.getLightDarkColor(b).cssText:null;try{d=a[m].getAttribute(Graph.backupStyleAttribute),p=null!=d?JSON.parse(d):{},p[h]=b!=mxConstants.NONE?b:"",a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(p))}catch(k){}if(e&&mxClient.IS_FF){b=a[m];e=b.firstChild;if(null!=
e&&"A"==e.nodeName&&null==e.nextSibling&&null!=e.firstChild){b.parentNode.insertBefore(e,b);for(f=e.firstChild;null!=f;)h=f.nextSibling,b.appendChild(f),f=h;e.appendChild(b)}break}}}};Graph.zapGremlins=function(a){return mxUtils.zapGremlins(a)};Graph.stringToBytes=function(a){for(var b=Array(a.length),e=0;e<a.length;e++)b[e]=a.charCodeAt(e);return b};Graph.bytesToString=function(a){for(var b=Array(a.length),e=0;e<a.length;e++)b[e]=String.fromCharCode(a[e]);return b.join("")};
Graph.base64EncodeUnicode=function(a){return btoa(encodeURIComponent(a).replace(/%([0-9A-F]{2})/g,function(b,e){return String.fromCharCode(parseInt(e,16))}))};Graph.base64DecodeUnicode=function(a){return decodeURIComponent(Array.prototype.map.call(atob(a),function(b){return"%"+("00"+b.charCodeAt(0).toString(16)).slice(-2)}).join(""))};Graph.compressNode=function(a,b){a=mxUtils.getXml(a);return Graph.compress(b?a:Graph.zapGremlins(a))};
Graph.arrayBufferToString=function(a){var b="";a=new Uint8Array(a);for(var e=a.byteLength,f=0;f<e;f++)b+=String.fromCharCode(a[f]);return b};Graph.stringToArrayBuffer=function(a){return Uint8Array.from(a,function(b){return b.charCodeAt(0)})};
Graph.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),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 T=w.startIndex||0;I=G.slice(Math.max(0,T),Math.min(G.length,T+pageSize))}I=f.getOpposites(I,D).concat(I);var K=u.cloneCells(I);for(L=0;L<I.length;L++)if(K[L].sourceCellId=I[L].id,u.model.isEdge(K[L]))for(K[L].geometry.x=0,K[L].geometry.y=0,K[L].geometry.points=null,K[L].setStyle(K[L].getStyle()+
-";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffc0;textOpacity=100;"),K[L].setTerminal(E,null==K[L].getTerminal(!0)),D=0;D<K[L].getChildCount();D++){var U=K[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);K.splice(0,0,Y)}if(G.length>(w.startIndex||0)+pageSize){var Q=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;");Q.referenceCell=
-E;Q.startIndex=(w.startIndex||0)+pageSize;K.splice(0,0,Q)}for(var P in u.getModel().cells){var M=u.getModel().getCell(P);M!=u.rootCell&&!u.getModel().isAncestor(u.rootCell,M)&&u.getModel().isVertex(M)&&u.removeCells([M])}u.addCells(K);var W=u.getModel().getGeometry(u.rootCell);null!=W&&(W=W.clone(),W.x=z-W.width/2,W.y=C-W.height/3,u.getModel().setGeometry(u.rootCell,W));w=[];for(P in u.getModel().cells)M=u.getModel().getCell(P),M!=u.rootCell&&u.getModel().isVertex(M)&&u.getModel().getParent(M)==u.getDefaultParent()&&
-(w.push(M),W=u.getModel().getGeometry(M),null!=W&&(W.x=z-W.width/2,W.y=C-W.height/2));var aa=w.length,ia=2*Math.PI/aa,oa=Math.max(minSize,Math.min(u.container.scrollWidth/2.5-80,u.container.scrollHeight/2.5-80));for(z=0;z<aa;z++)W=u.getModel().getGeometry(w[z]),null!=W&&(W=W.clone(),W.x+=oa*Math.sin(z*ia),W.y+=oa*Math.cos(z*ia),u.getModel().setGeometry(w[z],W))}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(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(),T=null!=L?null!=L.referenceCell?L.referenceCell:L:null;null!=L&&w.rootCell!=L&&0<w.getEdges(T).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 T=new mxParallelEdgeLayout(w);T.spacing=60;var K=T.layout;T.layout=function(U){T.spacing=Math.min(60,Math.max(30,60-5*U.length));K.apply(this,arguments)};T.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.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,x){if(u.getModel().isVertex(x)){var z=u.container.scrollWidth/2,C=u.container.scrollHeight/2;u.rootCell=x.referenceCell||x;u.getModel().beginUpdate();try{for(var E=x.referenceCell||x,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!=x.startIndex||0<pageSize&&G.length>pageSize){var T=x.startIndex||0;I=G.slice(Math.max(0,T),Math.min(G.length,T+pageSize))}I=f.getOpposites(I,D).concat(I);var K=u.cloneCells(I);for(L=0;L<I.length;L++)if(K[L].sourceCellId=I[L].id,u.model.isEdge(K[L]))for(K[L].geometry.x=0,K[L].geometry.y=0,K[L].geometry.points=null,K[L].setStyle(K[L].getStyle()+
+";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffc0;textOpacity=100;"),K[L].setTerminal(E,null==K[L].getTerminal(!0)),D=0;D<K[L].getChildCount();D++){var U=K[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<x.startIndex){var Y=u.createVertex(null,null,mxResources.get("previousPage")+
+" ("+Math.ceil((x.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,(x.startIndex||0)-pageSize);K.splice(0,0,Y)}if(G.length>(x.startIndex||0)+pageSize){var Q=u.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((x.startIndex||0)/pageSize)+2)+"/"+Math.ceil(G.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");Q.referenceCell=
+E;Q.startIndex=(x.startIndex||0)+pageSize;K.splice(0,0,Q)}for(var P in u.getModel().cells){var M=u.getModel().getCell(P);M!=u.rootCell&&!u.getModel().isAncestor(u.rootCell,M)&&u.getModel().isVertex(M)&&u.removeCells([M])}u.addCells(K);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));x=[];for(P in u.getModel().cells)M=u.getModel().getCell(P),M!=u.rootCell&&u.getModel().isVertex(M)&&u.getModel().getParent(M)==u.getDefaultParent()&&
+(x.push(M),V=u.getModel().getGeometry(M),null!=V&&(V.x=z-V.width/2,V.y=C-V.height/2));var aa=x.length,ia=2*Math.PI/aa,na=Math.max(minSize,Math.min(u.container.scrollWidth/2.5-80,u.container.scrollHeight/2.5-80));for(z=0;z<aa;z++)V=u.getModel().getGeometry(x[z]),null!=V&&(V=V.clone(),V.x+=na*Math.sin(z*ia),V.y+=na*Math.cos(z*ia),u.getModel().setGeometry(x[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 p=document.createElement("div");p.style.position="absolute";p.style.cursor="pointer";p.style.right="38px";p.style.top="14px";p.style.textAlign="right";p.style.verticalAlign=
+"top";mxUtils.write(p,mxResources.get("close"));g.appendChild(p);document.body.appendChild(g);var k=function(u){27==u.keyCode&&m.click()};mxEvent.addListener(document,"keydown",k);(function(u){if(mxClient.isBrowserSupported()){var x=new Graph(u);x.keepEdgesInBackground=!0;x.isCellResizable=function(){return!1};x.isCellRotatable=function(){return!1};x.getCursorForCell=function(I){return this.model.isVertex(I)?"pointer":null};x.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(p,"click",z);x.setEnabled(!1);var C=x.click;x.click=function(I){var L=I.getCell(),T=null!=L?null!=L.referenceCell?L.referenceCell:L:null;null!=L&&x.rootCell!=L&&0<x.getEdges(T).length?d(x,L):C.apply(this,arguments)};z=x.container.scrollWidth/2;var E=x.container.scrollHeight/3;x.model.beginUpdate();var D=x.importCells([h])[0];D.sourceCellId=h.id;D.geometry.x=z-D.geometry.width/2;
+D.geometry.y=E-D.geometry.height/2;x.model.endUpdate();var G=!1;x.getModel().addListener(mxEvent.CHANGE,function(I,L){G||(I=L.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,x.labelsVisible=!1,G=!0,mxEffects.animateChanges(x,I,function(){var T=new mxParallelEdgeLayout(x);T.spacing=60;var K=T.layout;T.layout=function(U){T.spacing=Math.min(60,Math.max(30,60-5*U.length));K.apply(this,arguments)};T.execute(x.getDefaultParent());mxText.prototype.enableBoundingBox=!0;x.labelsVisible=!0;
+x.tooltipHandler.hide();x.refresh();G=!1}))});d(x,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)};
Graph.sanitizeLink=function(a){if(null==a)return null;var b=document.createElement("a");b.setAttribute("href",a);Graph.sanitizeNode(b);return b.getAttribute("href")};Graph.sanitizeNode=function(a){return Graph.domPurify(a,!0)};DOMPurify.addHook("afterSanitizeAttributes",function(a){"use"==a.nodeName&&(null!=a.getAttribute("xlink:href")&&!a.getAttribute("xlink:href").startsWith("#")||null!=a.getAttribute("href")&&!a.getAttribute("href").startsWith("#"))&&a.remove()});
Graph.domPurify=function(a,b){window.DOM_PURIFY_CONFIG.IN_PLACE=b;return DOMPurify.sanitize(a,window.DOM_PURIFY_CONFIG)};
Graph.clipSvgDataUri=function(a,b){if(!mxClient.IS_IE&&!mxClient.IS_IE11&&null!=a&&"data:image/svg+xml;base64,"==a.substring(0,26))try{var e=document.createElement("div");e.style.position="absolute";e.style.visibility="hidden";var f=decodeURIComponent(escape(atob(a.substring(26)))),h=f.indexOf("<svg");if(0<=h){e.innerHTML=Graph.sanitizeHtml(f.substring(h));var d=e.getElementsByTagName("svg");if(0<d.length){if(b||null!=d[0].getAttribute("preserveAspectRatio")){document.body.appendChild(e);try{f=b=
-1;var g=d[0].getAttribute("width"),m=d[0].getAttribute("height");g=null!=g&&"%"!=g.charAt(g.length-1)?parseFloat(g):NaN;m=null!=m&&"%"!=m.charAt(m.length-1)?parseFloat(m):NaN;var q=d[0].getAttribute("viewBox");h=null;if(null!=q&&!isNaN(g)&&!isNaN(m)){var k=q.split(" ");4<=q.length&&(b=parseFloat(k[2])/g,f=parseFloat(k[3])/m,h=new mxRectangle(parseFloat(k[0]),parseFloat(k[1]),parseFloat(k[2]),parseFloat(k[3])))}var u=d[0].getBBox();0<u.width&&0<u.height&&(null==h||u.width*u.height<h.width*h.height*
-.7)&&(e.getElementsByTagName("svg")[0].setAttribute("viewBox",u.x+" "+u.y+" "+u.width+" "+u.height),e.getElementsByTagName("svg")[0].setAttribute("width",u.width/b),e.getElementsByTagName("svg")[0].setAttribute("height",u.height/f))}catch(w){}finally{document.body.removeChild(e)}}a=Editor.createSvgDataUri(mxUtils.getXml(d[0]))}}}catch(w){}return a};
+1;var g=d[0].getAttribute("width"),m=d[0].getAttribute("height");g=null!=g&&"%"!=g.charAt(g.length-1)?parseFloat(g):NaN;m=null!=m&&"%"!=m.charAt(m.length-1)?parseFloat(m):NaN;var p=d[0].getAttribute("viewBox");h=null;if(null!=p&&!isNaN(g)&&!isNaN(m)){var k=p.split(" ");4<=p.length&&(b=parseFloat(k[2])/g,f=parseFloat(k[3])/m,h=new mxRectangle(parseFloat(k[0]),parseFloat(k[1]),parseFloat(k[2]),parseFloat(k[3])))}var u=d[0].getBBox();0<u.width&&0<u.height&&(null==h||u.width*u.height<h.width*h.height*
+.7)&&(e.getElementsByTagName("svg")[0].setAttribute("viewBox",u.x+" "+u.y+" "+u.width+" "+u.height),e.getElementsByTagName("svg")[0].setAttribute("width",u.width/b),e.getElementsByTagName("svg")[0].setAttribute("height",u.height/f))}catch(x){}finally{document.body.removeChild(e)}}a=Editor.createSvgDataUri(mxUtils.getXml(d[0]))}}}catch(x){}return a};
Graph.createRemoveIcon=function(a,b){var e=document.createElement("img");e.setAttribute("src",Dialog.prototype.clearImage);e.setAttribute("title",a);e.setAttribute("width","13");e.setAttribute("height","10");e.style.marginLeft="4px";e.style.marginBottom="-1px";e.style.cursor="pointer";mxEvent.addListener(e,"click",b);return e};Graph.isPageLink=function(a){return null!=a&&"data:page/id,"==a.substring(0,13)};
Graph.rewritePageLinks=function(a,b){function e(h,d){var g=h.getAttribute(d);if(null!=g){Graph.isPageLink(g)&&(g="#"+g.substring(g.indexOf(":")+1));var m=d;b&&"xlink:href"==d&&(h.removeAttribute(d),m="href");h.setAttribute(m,g)}}a=a.getElementsByTagName("a");if(null!=a)for(var f=0;f<a.length;f++)e(a[f],"href"),e(a[f],"xlink:href")};Graph.isLink=function(a){return null!=a&&a.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
mxUtils.extend(Graph,mxGraph);Graph.prototype.minFitScale=null;Graph.prototype.maxFitScale=null;Graph.prototype.linkPolicy="frame"==urlParams.target?"blank":urlParams.target||"auto";Graph.prototype.linkTarget="frame"==urlParams.target?"_self":"_blank";Graph.prototype.linkRelation="nofollow noopener noreferrer";Graph.prototype.defaultScrollbars=!0;Graph.prototype.defaultPageVisible=!0;Graph.prototype.defaultGridEnabled="0"!=urlParams.grid;Graph.prototype.lightbox=!1;
@@ -2594,32 +2608,33 @@ Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBa
Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%^{^}^ ^\"^ '^=^;]+)%","g");Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};
Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder"];Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");
Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";
-Graph.prototype.init=function(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(e,f){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var h=e.view.graph.tolerance,d=!0,g=null,m=mxUtils.bind(this,function(u){d=!0;g=new mxPoint(mxEvent.getClientX(u),mxEvent.getClientY(u))}),q=mxUtils.bind(this,function(u){d=d&&null!=g&&Math.abs(g.x-mxEvent.getClientX(u))<h&&Math.abs(g.y-mxEvent.getClientY(u))<h}),k=mxUtils.bind(this,function(u){if(d)for(var w=mxEvent.getSource(u);null!=
-w&&w!=f.node;){if("a"==w.nodeName.toLowerCase()){e.view.graph.labelLinkClicked(e,w,u);break}w=w.parentNode}});mxEvent.addGestureListeners(f.node,m,q,k);mxEvent.addListener(f.node,"click",function(u){mxEvent.consume(u)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(e){var f=mxEvent.getSource(e);"A"==f.nodeName&&(f=f.getAttribute("href"),null!=
+Graph.prototype.init=function(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(e,f){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var h=e.view.graph.tolerance,d=!0,g=null,m=mxUtils.bind(this,function(u){d=!0;g=new mxPoint(mxEvent.getClientX(u),mxEvent.getClientY(u))}),p=mxUtils.bind(this,function(u){d=d&&null!=g&&Math.abs(g.x-mxEvent.getClientX(u))<h&&Math.abs(g.y-mxEvent.getClientY(u))<h}),k=mxUtils.bind(this,function(u){if(d)for(var x=mxEvent.getSource(u);null!=
+x&&x!=f.node;){if("a"==x.nodeName.toLowerCase()){e.view.graph.labelLinkClicked(e,x,u);break}x=x.parentNode}});mxEvent.addGestureListeners(f.node,m,p,k);mxEvent.addListener(f.node,"click",function(u){mxEvent.consume(u)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(e){var f=mxEvent.getSource(e);"A"==f.nodeName&&(f=f.getAttribute("href"),null!=
f&&this.graph.isCustomLink(f)&&(mxEvent.isTouchEvent(e)||!mxEvent.isPopupTrigger(e))&&this.graph.customLinkClicked(f)&&mxEvent.consume(e))}))}}this.initLayoutManager()};
(function(){Graph.prototype.useCssTransforms=!1;Graph.prototype.currentScale=1;Graph.prototype.currentTranslate=new mxPoint(0,0);Graph.prototype.pasteEdgeStyle=!1;Graph.prototype.isFillState=function(g){return!this.isSpecialColor(g.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(g.style,"lineShape",null)&&(this.model.isVertex(g.cell)||"arrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"wire"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"filledEdge"==mxUtils.getValue(g.style,
-mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(g){return this.isFillState(g)&&"wire"!=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(g){return!0};Graph.prototype.isSpecialColor=function(g){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,
-"inherit","swimlane","indicated"],g)};Graph.prototype.isGlassState=function(g){g=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);return"label"==g||"rectangle"==g||"internalStorage"==g||"ext"==g||"umlLifeline"==g||"swimlane"==g||"process"==g};Graph.prototype.isRoundedState=function(g){return null!=g.shape?g.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(g){var m=mxUtils.getValue(g.style,
-mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,!1)&&("connector"==m||"filledEdge"==m||"wire"==m)};Graph.prototype.isAutoSizeState=function(g){return"1"==mxUtils.getValue(g.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(g){return null!=mxUtils.getValue(g.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(g){return!0};Graph.prototype.getVerticesAndEdges=function(g,m){g=null!=g?g:!0;m=null!=m?m:!0;var q=this.model;
-return q.filterDescendants(function(k){return g&&q.isVertex(k)||m&&q.isEdge(k)},q.getRoot())};Graph.prototype.applyNewEdgeStyle=function(g,m,q){g=this.getCellStyle(g).newEdgeStyle;if(null!=g){this.model.beginUpdate();try{var k=JSON.parse(g),u;for(u in k)this.setCellStyles(u,k[u],m),"edgeStyle"==u&&"elbowEdgeStyle"==k[u]&&null!=q&&this.setCellStyles("elbow",q==mxConstants.DIRECTION_SOUTH||q==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",m)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=
-function(g){for(var m={},q=0;q<g.length;q++){var k=this.view.getState(g[q]);null!=k&&this.mergeStyle(k.style,m,0==q)}return m};Graph.prototype.mergeStyle=function(g,m,q){if(null!=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]!=w&&delete m[u])}for(u in m)k[u]||delete m[u]}};Graph.prototype.getStartEditingCell=function(g,m){m=this.getCellStyle(g);m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0));this.isTable(g)&&(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&
-0<this.model.getChildCount(g)&&(g=this.model.getChildAt(g,0),m=this.getCellStyle(g),m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(g)&&(!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(";"):[],I=0;I<G.length;I++){var L=G[I],T=L.indexOf("=");if(0<=T){var K=L.substring(0,T),U=mxUtils.indexOf(D,K);0<=U&&D.splice(U,1);for(E=0;E<Graph.cellStyleGroups.length;E++){var Y=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(Y,K))for(var Q=0;Q<Y.length;Q++){var P=mxUtils.indexOf(D,Y[Q]);0<=P&&D.splice(P,1)}}}}var M=this.model.isEdge(z);
-E=M?q:m;for(I=0;I<D.length;I++){K=D[I];var W=E[K];null!=W&&("edgeStyle"!=K||u)&&(M||!M&&0>mxUtils.indexOf(Graph.edgeStyles,K))&&(C=mxUtils.setStyle(C,K,W),"fontFamily"==K&&null==E.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),M&&"rounded"==K&&"1"==W&&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<=z;z--){var C=this.model.getChildAt(q,z),E=this.getScaledCellAt(g,m,C,k,u,w);if(null!=E)return E;if(this.isCellVisible(C)&&(u&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(E=this.view.getState(C),null!=E&&(null==w||!w(E,g,m))&&this.intersects(E,g,m)))return C}return null};Graph.prototype.isRecursiveVertexResize=function(g){return!this.isSwimlane(g.cell)&&
-0<this.model.getChildCount(g.cell)&&!this.isCellCollapsed(g.cell)&&"1"==mxUtils.getValue(g.style,"recursiveResize","1")&&null==mxUtils.getValue(g.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(g){for(var m=this.getCellGeometry(g);null!=m&&m.relative;)g=this.getModel().getParent(g),m=this.getCellGeometry(g);return g};Graph.prototype.isPart=function(g){return"1"==mxUtils.getValue(this.getCurrentCellStyle(g),"part","0")||this.isTableCell(g)||this.isTableRow(g)};Graph.prototype.getCompositeParents=
-function(g){for(var m=new mxDictionary,q=[],k=0;k<g.length;k++){var u=this.getCompositeParent(g[k]);this.isTableCell(u)&&(u=this.graph.model.getParent(u));this.isTableRow(u)&&(u=this.graph.model.getParent(u));null==u||m.get(u)||(m.put(u,!0),q.push(u))}return q};Graph.prototype.getReferenceTerminal=function(g){if(null!=g){var m=this.getCellGeometry(g);null!=m&&m.relative&&(g=this.model.getParent(g))}null!=g&&this.model.isEdge(g)&&(g=this.model.getParent(g));null!=g&&(g=this.getCompositeParent(g));
-return g};Graph.prototype.getCompositeParent=function(g){for(;this.isPart(g);){var m=this.model.getParent(g);if(!this.model.isVertex(m))break;g=m}return g};Graph.prototype.filterSelectionCells=function(g){var m=this.getSelectionCells();if(null!=g){for(var q=[],k=0;k<m.length;k++)g(m[k])||q.push(m[k]);m=q}return m};var a=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(g){if(this.useCssTransforms){var m=this.currentScale,q=this.currentTranslate;g=new mxRectangle((g.x+
-2*q.x)*m-q.x,(g.y+2*q.y)*m-q.y,g.width*m,g.height*m)}a.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=function(g){g=this.strokeWidth;this.graph.useCssTransforms&&(g/=this.graph.currentScale);return g};mxGraphView.prototype.getGraphBounds=function(){var g=this.graphBounds;if(this.graph.useCssTransforms){var m=this.graph.currentTranslate,q=this.graph.currentScale;g=new mxRectangle((g.x+m.x)*q,(g.y+m.y)*q,g.width*q,g.height*q)}return g};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?
-this.validate():this.revalidate();this.graph.sizeDidChange()};var b=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(g){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);b.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,
-this.translate.y=this.graph.currentTranslate.y)};var e=mxGraph.prototype.getCellsForGroup;Graph.prototype.getCellsForGroup=function(g){g=e.apply(this,arguments);for(var m=[],q=0;q<g.length;q++)this.isTableRow(g[q])||this.isTableCell(g[q])||m.push(g[q]);return m};var f=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(g){g=f.apply(this,arguments);for(var m=[],q=0;q<g.length;q++)this.isTable(g[q])||this.isTableRow(g[q])||this.isTableCell(g[q])||m.push(g[q]);return m};
-Graph.prototype.updateCssTransform=function(){var g=this.view.getDrawPane();if(null!=g)if(g=g.parentNode,this.useCssTransforms){var m=g.getAttribute("transform");g.setAttribute("transformOrigin","0 0");var q=Math.round(100*this.currentScale)/100;g.setAttribute("transform","scale("+q+","+q+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");m!=g.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",
-g.getAttribute("transform"))}else g.removeAttribute("transformOrigin"),g.removeAttribute("transform")};var h=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var g=this.graph.useCssTransforms,m=this.scale,q=this.translate;g&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);h.apply(this,arguments);g&&(this.scale=m,this.translate=q)};var d=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(g,
-m,q){var k=this.useCssTransforms,u=this.view.scale,w=this.view.translate;k&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=!1);d.apply(this,arguments);k&&(this.view.scale=u,this.view.translate=w,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
+mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(g){return this.isFillState(g)&&"wire"!=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(g){return!0};Graph.prototype.getTextColor=function(g,m){for(var p=g==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(g,m?"color":
+"background-color");null==p&&null!=g&&g!=this.cellEditor.textarea.parentNode;)p=g==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(g,"color"),g=g.parentNode;if("rgba(0, 0, 0, 0)"==p||"transparent"==p)p=mxConstants.NONE;return p};Graph.prototype.isSpecialColor=function(g){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],g)};Graph.prototype.isGlassState=function(g){g=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);
+return"label"==g||"rectangle"==g||"internalStorage"==g||"ext"==g||"umlLifeline"==g||"swimlane"==g||"process"==g};Graph.prototype.isRoundedState=function(g){return null!=g.shape?g.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(g){var m=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,!1)&&("connector"==m||"filledEdge"==m||"wire"==
+m)};Graph.prototype.isAutoSizeState=function(g){return"1"==mxUtils.getValue(g.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(g){return null!=mxUtils.getValue(g.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(g){return!0};Graph.prototype.getVerticesAndEdges=function(g,m){g=null!=g?g:!0;m=null!=m?m:!0;var p=this.model;return p.filterDescendants(function(k){return g&&p.isVertex(k)||m&&p.isEdge(k)},p.getRoot())};Graph.prototype.applyNewEdgeStyle=
+function(g,m,p){g=this.getCellStyle(g).newEdgeStyle;if(null!=g){this.model.beginUpdate();try{var k=JSON.parse(g),u;for(u in k)this.setCellStyles(u,k[u],m),"edgeStyle"==u&&"elbowEdgeStyle"==k[u]&&null!=p&&this.setCellStyles("elbow",p==mxConstants.DIRECTION_SOUTH||p==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",m)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(g){for(var m={},p=0;p<g.length;p++){var k=this.view.getState(g[p]);null!=k&&this.mergeStyle(k.style,m,0==p)}return m};
+Graph.prototype.mergeStyle=function(g,m,p){if(null!=g){var k={},u;for(u in g){var x=g[u];null!=x&&(k[u]=!0,null==m[u]&&p?m[u]=x:m[u]!=x&&delete m[u])}for(u in m)k[u]||delete m[u]}};Graph.prototype.getStartEditingCell=function(g,m){m=this.getCellStyle(g);m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0));this.isTable(g)&&(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g)&&(g=this.model.getChildAt(g,0),m=this.getCellStyle(g),m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,
+0)));if(this.isTableRow(g)&&(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g))for(m=0;m<this.model.getChildCount(g);m++){var p=this.model.getChildAt(g,m);if(this.isCellEditable(p)){g=p;break}}return g};Graph.prototype.copyStyle=function(g){return this.getCellStyle(g,!1)};Graph.prototype.pasteStyle=function(g,m,p,k){null!=g&&(k||(p=null!=p?p:Graph.cellStyles,Graph.removeKeys(g,function(u){return 0>mxUtils.indexOf(p,u)})),this.updateCellStyles(g,m))};Graph.prototype.copyCellStyles=
+function(g,m,p,k,u,x,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&&!x;E=E&&!z;for(D=0;D<m.length;D++)if(g=0<=mxUtils.indexOf(Graph.textStyles,m[D]),"strokeColor"!=m[D]||null!=p[D]&&"none"!=p[D])if(0<=mxUtils.indexOf(Graph.cellStyles,m[D])||"shape"==m[D])if("shape"!=m[D]&&(C||g)&&(null==p[D]?delete k[m[D]]:k[m[D]]=p[D]),E||g)null==p[D]?delete u[m[D]]:u[m[D]]=p[D]};Graph.prototype.includeDescendants=
+function(g){for(var m=[],p=0;p<g.length;p++)m=m.concat(this.model.getDescendants(g[p]));return m};Graph.prototype.pasteCellStyles=function(g,m,p,k,u){m=null!=m?m:this.currentVertexStyle;p=null!=p?p:this.currentEdgeStyle;u=null!=u?u:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var x=0;x<g.length;x++){var z=g[x],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(";"):[],I=0;I<G.length;I++){var L=G[I],T=L.indexOf("=");if(0<=T){var K=L.substring(0,T),U=mxUtils.indexOf(D,K);0<=U&&D.splice(U,1);for(E=0;E<Graph.cellStyleGroups.length;E++){var Y=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(Y,K))for(var Q=0;Q<Y.length;Q++){var P=mxUtils.indexOf(D,Y[Q]);0<=P&&D.splice(P,1)}}}}var M=this.model.isEdge(z);E=M?p:m;for(I=0;I<D.length;I++){K=D[I];var V=E[K];null!=V&&("edgeStyle"!=K||u)&&(M||!M&&0>mxUtils.indexOf(Graph.edgeStyles,K))&&(C=mxUtils.setStyle(C,
+K,V),"fontFamily"==K&&null==E.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),M&&"rounded"==K&&"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 p=0;p<m.length;p++)if(this.model.isVertex(m[p])||this.model.isEdge(m[p])){var k=this.getCellStyle(m[p],
+!1),u=k[mxConstants.STYLE_PERIMETER],x=!1;for(C in g){var z=g[C];if(k[C]!=z){if(C==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[C]&&"umlLifeline"!=z){x=!0;var C="participant"}this.setCellStyles(C,z,[m[p]])}}x&&this.setCellStyles(mxConstants.STYLE_PERIMETER,u,[m[p]])}}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,p,k,u,x){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,p,k,u,x){k=null!=k?k:!0;u=null!=u?u:!0;null==p&&(p=this.getCurrentRoot(),null==p&&(p=this.getModel().getRoot()));if(null!=p)for(var z=
+this.model.getChildCount(p)-1;0<=z;z--){var C=this.model.getChildAt(p,z),E=this.getScaledCellAt(g,m,C,k,u,x);if(null!=E)return E;if(this.isCellVisible(C)&&(u&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(E=this.view.getState(C),null!=E&&(null==x||!x(E,g,m))&&this.intersects(E,g,m)))return C}return null};Graph.prototype.isRecursiveVertexResize=function(g){return!this.isSwimlane(g.cell)&&0<this.model.getChildCount(g.cell)&&!this.isCellCollapsed(g.cell)&&"1"==mxUtils.getValue(g.style,"recursiveResize",
+"1")&&null==mxUtils.getValue(g.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(g){for(var m=this.getCellGeometry(g);null!=m&&m.relative;)g=this.getModel().getParent(g),m=this.getCellGeometry(g);return g};Graph.prototype.isPart=function(g){return"1"==mxUtils.getValue(this.getCurrentCellStyle(g),"part","0")||this.isTableCell(g)||this.isTableRow(g)};Graph.prototype.getCompositeParents=function(g){for(var m=new mxDictionary,p=[],k=0;k<g.length;k++){var u=this.getCompositeParent(g[k]);
+this.isTableCell(u)&&(u=this.graph.model.getParent(u));this.isTableRow(u)&&(u=this.graph.model.getParent(u));null==u||m.get(u)||(m.put(u,!0),p.push(u))}return p};Graph.prototype.getReferenceTerminal=function(g){if(null!=g){var m=this.getCellGeometry(g);null!=m&&m.relative&&(g=this.model.getParent(g))}null!=g&&this.model.isEdge(g)&&(g=this.model.getParent(g));null!=g&&(g=this.getCompositeParent(g));return g};Graph.prototype.getCompositeParent=function(g){for(;this.isPart(g);){var m=this.model.getParent(g);
+if(!this.model.isVertex(m))break;g=m}return g};Graph.prototype.filterSelectionCells=function(g){var m=this.getSelectionCells();if(null!=g){for(var p=[],k=0;k<m.length;k++)g(m[k])||p.push(m[k]);m=p}return m};var a=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(g){if(this.useCssTransforms){var m=this.currentScale,p=this.currentTranslate;g=new mxRectangle((g.x+2*p.x)*m-p.x,(g.y+2*p.y)*m-p.y,g.width*m,g.height*m)}a.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=
+function(g){g=this.strokeWidth;this.graph.useCssTransforms&&(g/=this.graph.currentScale);return g};mxGraphView.prototype.getGraphBounds=function(){var g=this.graphBounds;if(this.graph.useCssTransforms){var m=this.graph.currentTranslate,p=this.graph.currentScale;g=new mxRectangle((g.x+m.x)*p,(g.y+m.y)*p,g.width*p,g.height*p)}return g};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var b=mxGraphView.prototype.validate;
+mxGraphView.prototype.validate=function(g){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);b.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var e=mxGraph.prototype.getCellsForGroup;
+Graph.prototype.getCellsForGroup=function(g){g=e.apply(this,arguments);for(var m=[],p=0;p<g.length;p++)this.isTableRow(g[p])||this.isTableCell(g[p])||m.push(g[p]);return m};var f=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(g){g=f.apply(this,arguments);for(var m=[],p=0;p<g.length;p++)this.isTable(g[p])||this.isTableRow(g[p])||this.isTableCell(g[p])||m.push(g[p]);return m};Graph.prototype.updateCssTransform=function(){var g=this.view.getDrawPane();if(null!=g)if(g=
+g.parentNode,this.useCssTransforms){var m=g.getAttribute("transform");g.setAttribute("transformOrigin","0 0");var p=Math.round(100*this.currentScale)/100;g.setAttribute("transform","scale("+p+","+p+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");m!=g.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",g.getAttribute("transform"))}else g.removeAttribute("transformOrigin"),g.removeAttribute("transform")};
+var h=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var g=this.graph.useCssTransforms,m=this.scale,p=this.translate;g&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);h.apply(this,arguments);g&&(this.scale=m,this.translate=p)};var d=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(g,m,p){var k=this.useCssTransforms,u=this.view.scale,x=this.view.translate;k&&(this.view.scale=1,this.view.translate=
+new mxPoint(0,0),this.useCssTransforms=!1);d.apply(this,arguments);k&&(this.view.scale=u,this.view.translate=x,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
Graph.prototype.labelLinkClicked=function(a,b,e){var f=b.getAttribute("href");f!=Graph.sanitizeLink(f)&&Graph.sanitizeNode(b);if(null!=f&&!this.isCustomLink(f)&&(mxEvent.isLeftMouseButton(e)&&!mxEvent.isPopupTrigger(e)||mxEvent.isTouchEvent(e))){if(!this.isEnabled()||this.isCellLocked(a.cell))a=this.isBlankLink(f)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(f),a);mxEvent.consume(e)}};
Graph.prototype.openLink=function(a,b,e){var f=window;try{if(a=Graph.sanitizeLink(a),null!=a)if("_self"==b&&window!=window.top)window.location.href=a;else if(a.substring(0,this.baseUrl.length)==this.baseUrl&&"#"==a.charAt(this.baseUrl.length)&&"_top"==b&&window==window.top){var h=a.split("#")[1];window.location.hash=="#"+h&&(window.location.hash="");window.location.hash=h}else f=window.open(a,null!=b?b:"_blank",e?null:"noopener,noreferrer"),null==f||e||(f.opener=null)}catch(d){}return f};
Graph.prototype.getLinkTitle=function(a){return a.substring(a.lastIndexOf("/")+1)};Graph.prototype.isCustomLink=function(a){return"data:"==a.substring(0,5)};Graph.prototype.customLinkClicked=function(a,b){return!1};Graph.prototype.isExternalProtocol=function(a){return"mailto:"===a.substring(0,7)};Graph.prototype.isBlankLink=function(a){return!this.isExternalProtocol(a)&&("blank"===this.linkPolicy||"self"!==this.linkPolicy&&!this.isRelativeUrl(a)&&a.substring(0,this.domainUrl.length)!==this.domainUrl)};
@@ -2634,7 +2649,7 @@ Graph.prototype.createLayouts=function(a){for(var b=[],e=0;e<a.length;e++)if(0<=
Graph.prototype.getDataForCells=function(a,b){for(var e=[],f=0;f<a.length;f++){var h={};h.id=a[f].id;var d=null!=a[f].value?a[f].value.attributes:null;this.isReplacePlaceholders(a[f])&&b&&(h.value=this.getLabel(a[f]));if(null!=d)for(var g=0;g<d.length;g++)h[d[g].nodeName]=d[g].nodeValue;else h.label=this.convertValueToString(a[f]);e.push(h)}return e};
Graph.prototype.getNodesForCells=function(a){for(var b=[],e=0;e<a.length;e++){var f=this.view.getState(a[e]);if(null!=f){for(var h=this.cellRenderer.getShapesForState(f),d=0;d<h.length;d++)null!=h[d]&&null!=h[d].node&&b.push(h[d].node);null!=f.control&&null!=f.control.node&&b.push(f.control.node)}}return b};
Graph.prototype.createWipeAnimations=function(a,b){for(var e=[],f=0;f<a.length;f++){var h=this.view.getState(a[f]);null!=h&&null!=h.shape&&(this.model.isEdge(h.cell)&&null!=h.absolutePoints&&1<h.absolutePoints.length?e.push(this.createEdgeWipeAnimation(h,b)):this.model.isVertex(h.cell)&&null!=h.shape.bounds&&e.push(this.createVertexWipeAnimation(h,b)))}return e};
-Graph.prototype.createEdgeWipeAnimation=function(a,b){var e=a.absolutePoints.slice(),f=a.segments,h=a.length,d=e.length;return{execute:mxUtils.bind(this,function(g,m){if(null!=a.shape){var q=[e[0]];m=g/m;b||(m=1-m);for(var k=h*m,u=1;u<d;u++)if(k<=f[u-1]){q.push(new mxPoint(e[u-1].x+(e[u].x-e[u-1].x)*k/f[u-1],e[u-1].y+(e[u].y-e[u-1].y)*k/f[u-1]));break}else k-=f[u-1],q.push(e[u]);a.shape.points=q;a.shape.redraw();0==g&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=
+Graph.prototype.createEdgeWipeAnimation=function(a,b){var e=a.absolutePoints.slice(),f=a.segments,h=a.length,d=e.length;return{execute:mxUtils.bind(this,function(g,m){if(null!=a.shape){var p=[e[0]];m=g/m;b||(m=1-m);for(var k=h*m,u=1;u<d;u++)if(k<=f[u-1]){p.push(new mxPoint(e[u-1].x+(e[u].x-e[u-1].x)*k/f[u-1],e[u-1].y+(e[u].y-e[u-1].y)*k/f[u-1]));break}else k-=f[u-1],p.push(e[u]);a.shape.points=p;a.shape.redraw();0==g&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=
a.text.node&&(a.text.node.style.opacity=m)}}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.points=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};
Graph.prototype.createVertexWipeAnimation=function(a,b){var e=new mxRectangle.fromRectangle(a.shape.bounds);return{execute:mxUtils.bind(this,function(f,h){null!=a.shape&&(h=f/h,b||(h=1-h),a.shape.bounds=new mxRectangle(e.x,e.y,e.width*h,e.height),a.shape.redraw(),0==f&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=h))}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.bounds=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&
(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};Graph.prototype.executeAnimations=function(a,b,e,f){e=null!=e?e:30;f=null!=f?f:30;var h=null,d=0,g=mxUtils.bind(this,function(){if(d==e||this.stoppingCustomActions){window.clearInterval(h);for(var m=0;m<a.length;m++)a[m].stop();null!=b&&b()}else for(m=0;m<a.length;m++)a[m].execute(d,e);d++});h=window.setInterval(g,f);g()};
@@ -2649,17 +2664,17 @@ Graph.prototype.isLabelMovable=function(a){var b=this.getCurrentCellStyle(a);ret
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(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(I){return I in G?G[I]:I.slice(1,
+/\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",p=a[m+"Date"](),k=a[m+"Day"](),u=a[m+"Month"](),x=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:p,dd:g(p),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(x).slice(2),yyyy:x,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<p%10?0:(10!=p%100-p%10)*p%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);
+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 p=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",[p]));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,p);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};
-Graph.prototype.replacePlaceholders=function(a,b,e,f){f=[];if(null!=b){for(var h=0;match=this.placeholderPattern.exec(b);){var d=match[0];if(2<d.length&&"%label%"!=d&&"%tooltip%"!=d){var g=null;if(match.index>h&&"%"==b.charAt(match.index-1))g=d.substring(1);else{var m=d.substring(1,d.length-1),q={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==m)g=a.id;else if("width"===m.substring(0,5)&&this.model.isVertex(a)){var k=this.getCellGeometry(a);
-null!=k&&(g=k.width,5<m.length&&(g=Editor.toUnit(g,q[m.substring(6)])))}else if("height"==m.substring(0,6)&&this.model.isVertex(a))k=this.getCellGeometry(a),null!=k&&(g=k.height,6<m.length&&(g=Editor.toUnit(g,q[m.substring(7)])));else if("length"==m.substring(0,6)){for(k=a;null!=k&&!this.model.isEdge(k);)k=this.model.getParent(k);k=this.view.getState(k);null!=k&&(g=Math.round(k.length/this.view.scale),6<m.length&&(g=Editor.toUnit(g,q[m.substring(7)])))}else if(0>m.indexOf("{"))for(q=a;null==g&&null!=
-q;)null!=q.value&&"object"==typeof q.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=q.getAttribute(m+"_"+Graph.diagramLanguage)),null==g&&(g=q.hasAttribute(m)?null!=q.getAttribute(m)?q.getAttribute(m):"":null)),q=this.model.getParent(q);null==g&&(g=this.getGlobalVariable(m));null==g&&null!=e&&(g=e[m])}f.push(b.substring(h,match.index)+(null!=g?g:d));h=match.index+d.length}}f.push(b.substring(h))}return f.join("")};
+Graph.prototype.replacePlaceholders=function(a,b,e,f){f=[];if(null!=b){for(var h=0;match=this.placeholderPattern.exec(b);){var d=match[0];if(2<d.length&&"%label%"!=d&&"%tooltip%"!=d){var g=null;if(match.index>h&&"%"==b.charAt(match.index-1))g=d.substring(1);else{var m=d.substring(1,d.length-1),p={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==m)g=a.id;else if("width"===m.substring(0,5)&&this.model.isVertex(a)){var k=this.getCellGeometry(a);
+null!=k&&(g=k.width,5<m.length&&(g=Editor.toUnit(g,p[m.substring(6)])))}else if("height"==m.substring(0,6)&&this.model.isVertex(a))k=this.getCellGeometry(a),null!=k&&(g=k.height,6<m.length&&(g=Editor.toUnit(g,p[m.substring(7)])));else if("length"==m.substring(0,6)){for(k=a;null!=k&&!this.model.isEdge(k);)k=this.model.getParent(k);k=this.view.getState(k);null!=k&&(g=Math.round(k.length/this.view.scale),6<m.length&&(g=Editor.toUnit(g,p[m.substring(7)])))}else if(0>m.indexOf("{"))for(p=a;null==g&&null!=
+p;)null!=p.value&&"object"==typeof p.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=p.getAttribute(m+"_"+Graph.diagramLanguage)),null==g&&(g=p.hasAttribute(m)?null!=p.getAttribute(m)?p.getAttribute(m):"":null)),p=this.model.getParent(p);null==g&&(g=this.getGlobalVariable(m));null==g&&null!=e&&(g=e[m])}f.push(b.substring(h,match.index)+(null!=g?g:d));h=match.index+d.length}}f.push(b.substring(h))}return f.join("")};
Graph.prototype.restoreSelection=function(a){if(null!=a&&0<a.length){for(var b=[],e=0;e<a.length;e++){var f=this.model.getCell(a[e].id);null!=f&&b.push(f)}this.setSelectionCells(b)}else this.clearSelection()};Graph.prototype.selectCellForEvent=function(a,b){mxEvent.isShiftDown(b)&&!this.isSelectionEmpty()&&this.selectTableRange(this.getSelectionCell(),a)||mxGraph.prototype.selectCellForEvent.apply(this,arguments)};
-Graph.prototype.selectTableRange=function(a,b){var e=!1;if(this.isTableCell(a)&&this.isTableCell(b)){var f=this.model.getParent(a),h=this.model.getParent(f),d=this.model.getParent(b);if(h==this.model.getParent(d)){a=f.getIndex(a);f=h.getIndex(f);var g=d.getIndex(b),m=h.getIndex(d);d=Math.max(f,m);b=Math.min(a,g);a=Math.max(a,g);g=[];for(f=Math.min(f,m);f<=d;f++){m=this.model.getChildAt(h,f);for(var q=b;q<=a;q++)g.push(this.model.getChildAt(m,q))}0<g.length&&(1<g.length||1<this.getSelectionCount()||
+Graph.prototype.selectTableRange=function(a,b){var e=!1;if(this.isTableCell(a)&&this.isTableCell(b)){var f=this.model.getParent(a),h=this.model.getParent(f),d=this.model.getParent(b);if(h==this.model.getParent(d)){a=f.getIndex(a);f=h.getIndex(f);var g=d.getIndex(b),m=h.getIndex(d);d=Math.max(f,m);b=Math.min(a,g);a=Math.max(a,g);g=[];for(f=Math.min(f,m);f<=d;f++){m=this.model.getChildAt(h,f);for(var p=b;p<=a;p++)g.push(this.model.getChildAt(m,p))}0<g.length&&(1<g.length||1<this.getSelectionCount()||
!this.isCellSelected(g[0]))&&(this.setSelectionCells(g),e=!0)}}return e};
Graph.prototype.snapCellsToGrid=function(a,b){this.getModel().beginUpdate();try{for(var e=0;e<a.length;e++){var f=a[e],h=this.getCellGeometry(f);if(null!=h){h=h.clone();if(this.getModel().isVertex(f))h.x=Math.round(h.x/b)*b,h.y=Math.round(h.y/b)*b,h.width=Math.round(h.width/b)*b,h.height=Math.round(h.height/b)*b;else if(this.getModel().isEdge(f)&&null!=h.points)for(var d=0;d<h.points.length;d++)h.points[d].x=Math.round(h.points[d].x/b)*b,h.points[d].y=Math.round(h.points[d].y/b)*b;this.getModel().setGeometry(f,
h)}}}finally{this.getModel().endUpdate()}};Graph.prototype.removeChildCells=function(a){this.model.beginUpdate();try{for(var b=this.model.getChildCount(a);0<=b;b--)this.model.remove(this.model.getChildAt(a,b))}finally{this.model.endUpdate()}};
@@ -2667,13 +2682,13 @@ Graph.prototype.updateShapes=function(a,b,e){this.model.beginUpdate();try{var f=
this.model.isEdge(a)&&this.model.isEdge(b[d]))if(e){var g=this.model.getStyle(b[d]);if(null!=g){var m=g.split(";");0<m.length&&0>m[0].indexOf("=")&&(m=m.slice(1));this.model.setStyle(b[d],m.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[b[d]]);this.setCellStyles("points",null,[b[d]]);this.pasteStyle(h,[b[d]],null,!0)}else h=this.copyStyle(b[d]),this.model.setStyle(b[d],f),this.pasteStyle(h,[b[d]]);"1"==mxUtils.getValue(this.getCellStyle(b[d],!1),"composite","0")&&this.removeChildCells(b[d])}}finally{this.model.endUpdate()}};
Graph.prototype.selectCellsForConnectVertex=function(a,b,e){2==a.length&&this.model.isVertex(a[1])?(this.setSelectionCell(a[1]),this.scrollCellToVisible(a[1]),null!=e&&(mxEvent.isTouchEvent(b)?e.update(e.getState(this.view.getState(a[1]))):e.reset())):this.setSelectionCells(a)};Graph.prototype.isCloneConnectSource=function(a){var b=null;null!=this.layoutManager&&(b=this.layoutManager.getLayout(this.model.getParent(a)));return this.isTableRow(a)||this.isTableCell(a)||null!=b&&b.constructor==mxStackLayout};
Graph.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 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=[],T=E;E=C;h=mxUtils.bind(this,function(K){if(null==g||null!=K||null==E&&q){this.model.beginUpdate();try{if(null==T&&I){var U=this.getAbsoluteParent(null!=K?K:a);U=q?a:this.getCompositeParent(U);T=null!=K?K:this.duplicateCells([U],
-!1)[0];null!=K&&this.addCells([T],this.model.getParent(a),null,null,null,!0);var Y=this.getCellGeometry(T);null!=Y&&(null!=K&&"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([T],C,null,null,null,!0),E=null):I&&!q&&this.addCells([T],this.getDefaultParent(),null,null,null,!0)}var Q=mxEvent.isControlDown(f)&&
-mxEvent.isShiftDown(f)&&I||null==E&&q?null:this.insertEdge(this.model.getParent(a),null,"",a,T,this.createCurrentEdgeStyle());null!=Q&&(L.push(Q),this.applyNewEdgeStyle(a,[Q],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(Q,a));if(null==E&&null!=T&&null!=a.parent&&q&&b==mxConstants.DIRECTION_WEST){var P=a.parent.getIndex(a);this.model.add(a.parent,T,P)}null==E&&null!=T&&L.push(T);null==T&&null!=Q&&Q.geometry.setTerminalPoint(u,!1);null!=Q&&this.fireEvent(new mxEventObject("cellsInserted",
-"cells",[Q]))}finally{this.model.endUpdate()}}if(null!=m)m(L);else return L});if(null==g||null!=T||!I||null==E&&q)return h(T);g(k+u.x*e,z+u.y*e,h)};
+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 p=this.isCloneConnectSource(a),k=p?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 x=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!=x&&this.model.isVertex(x.cell)&&(k=x.x,z=x.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;x=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==x||null==G||mxUtils.intersects(x,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=[],T=E;E=C;h=mxUtils.bind(this,function(K){if(null==g||null!=K||null==E&&p){this.model.beginUpdate();try{if(null==T&&I){var U=this.getAbsoluteParent(null!=K?K:a);U=p?a:this.getCompositeParent(U);T=null!=K?K:this.duplicateCells([U],
+!1)[0];null!=K&&this.addCells([T],this.model.getParent(a),null,null,null,!0);var Y=this.getCellGeometry(T);null!=Y&&(null!=K&&"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([T],C,null,null,null,!0),E=null):I&&!p&&this.addCells([T],this.getDefaultParent(),null,null,null,!0)}var Q=mxEvent.isControlDown(f)&&
+mxEvent.isShiftDown(f)&&I||null==E&&p?null:this.insertEdge(this.model.getParent(a),null,"",a,T,this.createCurrentEdgeStyle());null!=Q&&(L.push(Q),this.applyNewEdgeStyle(a,[Q],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(Q,a));if(null==E&&null!=T&&null!=a.parent&&p&&b==mxConstants.DIRECTION_WEST){var P=a.parent.getIndex(a);this.model.add(a.parent,T,P)}null==E&&null!=T&&L.push(T);null==T&&null!=Q&&Q.geometry.setTerminalPoint(u,!1);null!=Q&&this.fireEvent(new mxEventObject("cellsInserted",
+"cells",[Q]))}finally{this.model.endUpdate()}}if(null!=m)m(L);else return L});if(null==g||null!=T||!I||null==E&&p)return h(T);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};
@@ -2684,8 +2699,8 @@ mxConstants.STYLE_IMAGE_BACKGROUND,a);this.replaceDefaultColor(b,mxConstants.STY
Graph.prototype.getDefaultColor=function(a,b,e){b="default"+b.charAt(0).toUpperCase()+b.substring(1);"invert"==a[b]&&(a=mxUtils.getLightDarkColor(e),e="light-dark("+a.dark+", "+a.light+")");return e};
Graph.prototype.setAdaptiveColors=function(a){this.adaptiveColors="default"==a?null:a;"1"==urlParams.embedInline?null!=this.container&&(this.container.style.colorScheme="none"==this.getAdaptiveColors()?"light":""):(a=this.view.getDrawPane().ownerSVGElement,null!=a&&(a.style.colorScheme="none"==this.getAdaptiveColors()?"light":""))};Graph.prototype.getAdaptiveColors=function(){return null!=this.adaptiveColors?this.adaptiveColors:Graph.defaultAdaptiveColors};
Graph.prototype.updateAlternateBounds=function(a,b,e){if(null!=a&&null!=b&&null!=this.layoutManager&&null!=b.alternateBounds){var f=this.layoutManager.getLayout(this.model.getParent(a));null!=f&&f.constructor==mxStackLayout&&(f.horizontal?b.alternateBounds.height=0:b.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};Graph.prototype.isMoveCellsEvent=function(a,b){return mxEvent.isShiftDown(a)||"1"==mxUtils.getValue(b.style,"moveCells","0")};
-Graph.prototype.foldCells=function(a,b,e,f,h){b=null!=b?b:!1;null==e&&(e=this.getFoldableCells(this.getSelectionCells(),a));if(null!=e){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var d=0;d<e.length;d++){var g=this.view.getState(e[d]),m=this.getCellGeometry(e[d]);if(null!=g&&null!=m){var q=0,k=0;if(m.alternateBounds)q=m.width-m.alternateBounds.width,k=m.height-m.alternateBounds.height;else{var u=this.useCssTransforms?1:this.view.scale;
-q=Math.round(m.width-g.width/u);k=Math.round(m.height-g.height/u)}if(0!=k||0!=q){var w=this.model.getParent(e[d]),z=this.layoutManager.getLayout(w);null==z?null!=h&&this.isMoveCellsEvent(h,g)&&this.moveSiblings(g,w,q,k):null!=h&&mxEvent.isAltDown(h)||z.constructor!=mxStackLayout||z.resizeLast||this.resizeParentStacks(w,z,q,k)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(e)}};
+Graph.prototype.foldCells=function(a,b,e,f,h){b=null!=b?b:!1;null==e&&(e=this.getFoldableCells(this.getSelectionCells(),a));if(null!=e){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var d=0;d<e.length;d++){var g=this.view.getState(e[d]),m=this.getCellGeometry(e[d]);if(null!=g&&null!=m){var p=0,k=0;if(m.alternateBounds)p=m.width-m.alternateBounds.width,k=m.height-m.alternateBounds.height;else{var u=this.useCssTransforms?1:this.view.scale;
+p=Math.round(m.width-g.width/u);k=Math.round(m.height-g.height/u)}if(0!=k||0!=p){var x=this.model.getParent(e[d]),z=this.layoutManager.getLayout(x);null==z?null!=h&&this.isMoveCellsEvent(h,g)&&this.moveSiblings(g,x,p,k):null!=h&&mxEvent.isAltDown(h)||z.constructor!=mxStackLayout||z.resizeLast||this.resizeParentStacks(x,z,p,k)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(e)}};
Graph.prototype.moveSiblings=function(a,b,e,f){this.model.beginUpdate();try{var h=this.getCellsBeyond(a.x,a.y,b,!0,!0);for(b=0;b<h.length;b++)if(h[b]!=a.cell){var d=this.view.getState(h[b]),g=this.getCellGeometry(h[b]);null!=d&&null!=g&&(g=g.clone(),g.translate(Math.round(e*Math.max(0,Math.min(1,(d.x-a.x)/a.width))),Math.round(f*Math.max(0,Math.min(1,(d.y-a.y)/a.height)))),this.model.setGeometry(h[b],g))}}finally{this.model.endUpdate()}};
Graph.prototype.resizeParentStacks=function(a,b,e,f){if(null!=this.layoutManager&&null!=b&&b.constructor==mxStackLayout&&!b.resizeLast){this.model.beginUpdate();try{for(var h=b.horizontal;null!=a&&null!=b&&b.constructor==mxStackLayout&&b.horizontal==h&&!b.resizeLast;){var d=this.getCellGeometry(a),g=this.view.getState(a);null!=g&&null!=d&&(d=d.clone(),b.horizontal?d.width+=e+Math.min(0,g.width/this.view.scale-d.width):d.height+=f+Math.min(0,g.height/this.view.scale-d.height),this.model.setGeometry(a,
d));a=this.model.getParent(a);b=this.layoutManager.getLayout(a)}}finally{this.model.endUpdate()}}};Graph.prototype.isContainer=function(a){var b=this.getCurrentCellStyle(a);return this.isSwimlane(a)?"0"!=b.container:"1"==b.container};Graph.prototype.isCellConnectable=function(a){var b=this.getCurrentCellStyle(a);return!this.isCellLocked(this.getLayerForCell(a))&&(null!=b.connectable?"0"!=b.connectable:mxGraph.prototype.isCellConnectable.apply(this,arguments))};
@@ -2727,10 +2742,10 @@ HoverIcons.prototype.click=function(a,b,e){var f=e.getEvent(),h=e.getGraphX(),d=
HoverIcons.prototype.execute=function(a,b,e){e=e.getEvent();this.graph.selectCellsForConnectVertex(this.graph.connectVertex(a.cell,b,this.graph.defaultEdgeLength,e,this.graph.isCloneEvent(e),this.graph.isCloneEvent(e)),e,this)};HoverIcons.prototype.reset=function(a){null!=a&&!a||null==this.updateThread||window.clearTimeout(this.updateThread);this.activeArrow=this.currentState=this.mouseDownPoint=null;this.removeNodes();this.bbox=null;this.fireEvent(new mxEventObject("reset"))};
HoverIcons.prototype.repaint=function(){this.bbox=null;if(null!=this.currentState){this.currentState=this.getState(this.currentState);if(null!=this.currentState&&this.graph.model.isVertex(this.currentState.cell)&&this.graph.isCellConnectable(this.currentState.cell)){var a=mxRectangle.fromRectangle(this.currentState);null!=this.currentState.shape&&null!=this.currentState.shape.boundingBox&&(a=mxRectangle.fromRectangle(this.currentState.shape.boundingBox));a.grow(this.graph.tolerance);a.grow(this.arrowSpacing);
var b=this.graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentState.cell)&&(b=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.currentState.cell)));var e=null;null!=b&&(a.x-=b.horizontalOffset/2,a.y-=b.verticalOffset/2,a.width+=b.horizontalOffset,a.height+=b.verticalOffset,null!=b.rotationShape&&null!=b.rotationShape.node&&"hidden"!=b.rotationShape.node.style.visibility&&"none"!=b.rotationShape.node.style.display&&null!=b.rotationShape.boundingBox&&
-(e=b.rotationShape.boundingBox));b=mxUtils.bind(this,function(m,q,k){if(null!=e){var u=new mxRectangle(q,k,m.clientWidth,m.clientHeight);mxUtils.intersects(u,e)&&(m==this.arrowUp?k-=u.y+u.height-e.y:m==this.arrowRight?q+=e.x+e.width-u.x:m==this.arrowDown?k+=e.y+e.height-u.y:m==this.arrowLeft&&(q-=u.x+u.width-e.x))}m.style.left=q+"px";m.style.top=k+"px";mxUtils.setOpacity(m,this.inactiveOpacity)});b(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(a.y-
+(e=b.rotationShape.boundingBox));b=mxUtils.bind(this,function(m,p,k){if(null!=e){var u=new mxRectangle(p,k,m.clientWidth,m.clientHeight);mxUtils.intersects(u,e)&&(m==this.arrowUp?k-=u.y+u.height-e.y:m==this.arrowRight?p+=e.x+e.width-u.x:m==this.arrowDown?k+=e.y+e.height-u.y:m==this.arrowLeft&&(p-=u.x+u.width-e.x))}m.style.left=p+"px";m.style.top=k+"px";mxUtils.setOpacity(m,this.inactiveOpacity)});b(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(a.y-
this.triangleUp.height-this.tolerance));b(this.arrowRight,Math.round(a.x+a.width-this.tolerance),Math.round(this.currentState.getCenterY()-this.triangleRight.height/2-this.tolerance));b(this.arrowDown,parseInt(this.arrowUp.style.left),Math.round(a.y+a.height-this.tolerance));b(this.arrowLeft,Math.round(a.x-this.triangleLeft.width-this.tolerance),parseInt(this.arrowRight.style.top));if(this.checkCollisions){b=this.graph.getCellAt(a.x+a.width+this.triangleRight.width/2,this.currentState.getCenterY());
-var f=this.graph.getCellAt(a.x-this.triangleLeft.width/2,this.currentState.getCenterY()),h=this.graph.getCellAt(this.currentState.getCenterX(),a.y-this.triangleUp.height/2);a=this.graph.getCellAt(this.currentState.getCenterX(),a.y+a.height+this.triangleDown.height/2);null!=b&&b==f&&f==h&&h==a&&(a=h=f=b=null);var d=this.graph.getCellGeometry(this.currentState.cell),g=mxUtils.bind(this,function(m,q){var k=this.graph.model.isVertex(m)&&this.graph.getCellGeometry(m);null==m||this.graph.model.isAncestor(m,
-this.currentState.cell)||this.graph.isSwimlane(m)||!(null==k||null==d||k.height<3*d.height&&k.width<3*d.width)?q.style.visibility="visible":q.style.visibility="hidden"});g(b,this.arrowRight);g(f,this.arrowLeft);g(h,this.arrowUp);g(a,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
+var f=this.graph.getCellAt(a.x-this.triangleLeft.width/2,this.currentState.getCenterY()),h=this.graph.getCellAt(this.currentState.getCenterX(),a.y-this.triangleUp.height/2);a=this.graph.getCellAt(this.currentState.getCenterX(),a.y+a.height+this.triangleDown.height/2);null!=b&&b==f&&f==h&&h==a&&(a=h=f=b=null);var d=this.graph.getCellGeometry(this.currentState.cell),g=mxUtils.bind(this,function(m,p){var k=this.graph.model.isVertex(m)&&this.graph.getCellGeometry(m);null==m||this.graph.model.isAncestor(m,
+this.currentState.cell)||this.graph.isSwimlane(m)||!(null==k||null==d||k.height<3*d.height&&k.width<3*d.width)?p.style.visibility="visible":p.style.visibility="hidden"});g(b,this.arrowRight);g(f,this.arrowLeft);g(h,this.arrowUp);g(a,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
this.arrowRight.setAttribute("title",mxResources.get("plusTooltip")),this.arrowUp.setAttribute("title",mxResources.get("plusTooltip")),this.arrowDown.setAttribute("title",mxResources.get("plusTooltip"))):(this.arrowLeft.removeAttribute("title"),this.arrowRight.removeAttribute("title"),this.arrowUp.removeAttribute("title"),this.arrowDown.removeAttribute("title"))}else this.reset();null!=this.currentState&&(this.bbox=this.computeBoundingBox(),null!=this.bbox&&this.bbox.grow(10))}};
HoverIcons.prototype.computeBoundingBox=function(){var a=this.graph.model.isEdge(this.currentState.cell)?null:mxRectangle.fromRectangle(this.currentState);this.visitNodes(function(b){null!=b.parentNode&&(b=new mxRectangle(b.offsetLeft,b.offsetTop,b.offsetWidth,b.offsetHeight),null==a?a=b:a.add(b))});return a};
HoverIcons.prototype.getState=function(a){if(null!=a)if(a=a.cell,this.graph.getModel().contains(a)){if(this.graph.getModel().isVertex(a)&&!this.graph.isCellConnectable(a)){var b=this.graph.getModel().getParent(a);this.graph.getModel().isVertex(b)&&this.graph.isCellConnectable(b)&&(a=b)}if(this.graph.isCellLocked(a)||this.graph.model.isEdge(a))a=null;a=this.graph.view.getState(a);null!=a&&null==a.style&&(a=null)}else a=null;return a};
@@ -2740,43 +2755,43 @@ a||null==this.bbox||null==b||null==e||!mxUtils.contains(this.bbox,b,e))&&(null!=
HoverIcons.prototype.setCurrentState=function(a){"eastwest"!=a.style.portConstraint&&(this.graph.container.appendChild(this.arrowUp),this.graph.container.appendChild(this.arrowDown));this.graph.container.appendChild(this.arrowRight);this.graph.container.appendChild(this.arrowLeft);this.currentState=a};
Graph.prototype.removeTextStyleForCell=function(a,b){var e=this.getCurrentCellStyle(a),f=!1;this.getModel().beginUpdate();try{if("1"==mxUtils.getValue(e,"html","0")){var h=this.convertValueToString(a);"0"!=mxUtils.getValue(e,"nl2Br","1")&&(h=h.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n"));h=Editor.convertHtmlToText(h);this.cellLabelChanged(a,h);f=!0}b&&(this.setCellStyles("fontSource",null,[a]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[a]),this.setCellStyles(mxConstants.STYLE_FONTSIZE,
null,[a]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[a]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[a]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[a]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[a]))}finally{this.getModel().endUpdate()}return f};Graph.prototype.createParent=function(a,b,e,f,h){a=this.cloneCell(a);for(var d=0;d<e;d++){var g=this.cloneCell(b),m=this.getCellGeometry(g);null!=m&&(m.x+=d*f,m.y+=d*h);a.insert(g)}return a};
-Graph.prototype.createTable=function(a,b,e,f,h,d,g,m,q){e=null!=e?e:60;f=null!=f?f:40;d=null!=d?d:30;m=null!=m?m:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";q=null!=q?q:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
-null,null!=h?h:"",0,0,b*e,a*f+(null!=h?d:0),null!=g?g:"shape=table;startSize="+(null!=h?d:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,b*e,f,m),this.createVertex(null,null,"",0,0,e,f,q),b,e,0),a,0,f)};
+Graph.prototype.createTable=function(a,b,e,f,h,d,g,m,p){e=null!=e?e:60;f=null!=f?f:40;d=null!=d?d:30;m=null!=m?m:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";p=null!=p?p:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
+null,null!=h?h:"",0,0,b*e,a*f+(null!=h?d:0),null!=g?g:"shape=table;startSize="+(null!=h?d:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,b*e,f,m),this.createVertex(null,null,"",0,0,e,f,p),b,e,0),a,0,f)};
Graph.prototype.setTableValues=function(a,b,e){for(var f=this.model.getChildCells(a,!0),h=0;h<f.length;h++)if(null!=e&&(f[h].value=e[h]),null!=b)for(var d=this.model.getChildCells(f[h],!0),g=0;g<d.length;g++)null!=b[h][g]&&(d[g].value=b[h][g]);return a};
-Graph.prototype.createCrossFunctionalSwimlane=function(a,b,e,f,h,d,g,m,q){e=null!=e?e:120;f=null!=f?f:120;g=null!=g?g:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";m=null!=m?m:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
-q=null!=q?q:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";h=this.createVertex(null,null,null!=h?h:"",0,0,b*e,a*f,null!=d?d:"shape=table;childLayout=tableLayout;"+(null==h?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");d=mxUtils.getValue(this.getCellStyle(h),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);h.geometry.width+=d;h.geometry.height+=
-d;g=this.createVertex(null,null,"",0,d,b*e+d,f,g);h.insert(this.createParent(g,this.createVertex(null,null,"",d,0,e,f,m),b,e,0));return 1<a?(g.geometry.y=f+d,this.createParent(h,this.createParent(g,this.createVertex(null,null,"",d,0,e,f,q),b,e,0),a-1,0,f)):h};
-Graph.prototype.visitTableCells=function(a,b){var e=null,f=this.model.getChildCells(a,!0);a=this.getActualStartSize(a,!0);for(var h=0;h<f.length;h++){for(var d=this.getActualStartSize(f[h],!0),g=this.model.getChildCells(f[h],!0),m=this.getCellStyle(f[h],!0),q=null,k=[],u=0;u<g.length;u++){var w=this.getCellGeometry(g[u]),z={cell:g[u],rospan:1,colspan:1,row:h,col:u,geo:w};w=null!=w.alternateBounds?w.alternateBounds:w;z.point=new mxPoint(w.width+(null!=q?q.point.x:a.x+d.x),w.height+(null!=e&&null!=
-e[0]?e[0].point.y:a.y+d.y));z.actual=z;null!=e&&null!=e[u]&&1<e[u].rowspan?(z.rowspan=e[u].rowspan-1,z.colspan=e[u].colspan,z.actual=e[u].actual):null!=q&&1<q.colspan?(z.rowspan=q.rowspan,z.colspan=q.colspan-1,z.actual=q.actual):(q=this.getCurrentCellStyle(g[u],!0),null!=q&&(z.rowspan=parseInt(q.rowspan||1),z.colspan=parseInt(q.colspan||1)));q=1==mxUtils.getValue(m,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(m,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;b(z,g.length,
-f.length,a.x+(q?d.x:0),a.y+(q?d.y:0));k.push(z);q=z}e=k}};Graph.prototype.getTableLines=function(a,b,e){var f=[],h=[];(b||e)&&this.visitTableCells(a,mxUtils.bind(this,function(d,g,m,q,k){b&&d.row<m-1&&(null==f[d.row]&&(f[d.row]=[new mxPoint(q,d.point.y)]),1<d.rowspan&&f[d.row].push(null),f[d.row].push(d.point));e&&d.col<g-1&&(null==h[d.col]&&(h[d.col]=[new mxPoint(d.point.x,k)]),1<d.colspan&&h[d.col].push(null),h[d.col].push(d.point))}));return f.concat(h)};
+Graph.prototype.createCrossFunctionalSwimlane=function(a,b,e,f,h,d,g,m,p){e=null!=e?e:120;f=null!=f?f:120;g=null!=g?g:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";m=null!=m?m:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
+p=null!=p?p:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";h=this.createVertex(null,null,null!=h?h:"",0,0,b*e,a*f,null!=d?d:"shape=table;childLayout=tableLayout;"+(null==h?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");d=mxUtils.getValue(this.getCellStyle(h),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);h.geometry.width+=d;h.geometry.height+=
+d;g=this.createVertex(null,null,"",0,d,b*e+d,f,g);h.insert(this.createParent(g,this.createVertex(null,null,"",d,0,e,f,m),b,e,0));return 1<a?(g.geometry.y=f+d,this.createParent(h,this.createParent(g,this.createVertex(null,null,"",d,0,e,f,p),b,e,0),a-1,0,f)):h};
+Graph.prototype.visitTableCells=function(a,b){var e=null,f=this.model.getChildCells(a,!0);a=this.getActualStartSize(a,!0);for(var h=0;h<f.length;h++){for(var d=this.getActualStartSize(f[h],!0),g=this.model.getChildCells(f[h],!0),m=this.getCellStyle(f[h],!0),p=null,k=[],u=0;u<g.length;u++){var x=this.getCellGeometry(g[u]),z={cell:g[u],rospan:1,colspan:1,row:h,col:u,geo:x};x=null!=x.alternateBounds?x.alternateBounds:x;z.point=new mxPoint(x.width+(null!=p?p.point.x:a.x+d.x),x.height+(null!=e&&null!=
+e[0]?e[0].point.y:a.y+d.y));z.actual=z;null!=e&&null!=e[u]&&1<e[u].rowspan?(z.rowspan=e[u].rowspan-1,z.colspan=e[u].colspan,z.actual=e[u].actual):null!=p&&1<p.colspan?(z.rowspan=p.rowspan,z.colspan=p.colspan-1,z.actual=p.actual):(p=this.getCurrentCellStyle(g[u],!0),null!=p&&(z.rowspan=parseInt(p.rowspan||1),z.colspan=parseInt(p.colspan||1)));p=1==mxUtils.getValue(m,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(m,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;b(z,g.length,
+f.length,a.x+(p?d.x:0),a.y+(p?d.y:0));k.push(z);p=z}e=k}};Graph.prototype.getTableLines=function(a,b,e){var f=[],h=[];(b||e)&&this.visitTableCells(a,mxUtils.bind(this,function(d,g,m,p,k){b&&d.row<m-1&&(null==f[d.row]&&(f[d.row]=[new mxPoint(p,d.point.y)]),1<d.rowspan&&f[d.row].push(null),f[d.row].push(d.point));e&&d.col<g-1&&(null==h[d.col]&&(h[d.col]=[new mxPoint(d.point.x,k)]),1<d.colspan&&h[d.col].push(null),h[d.col].push(d.point))}));return f.concat(h)};
Graph.prototype.isTableCell=function(a){return this.model.isVertex(a)&&this.isTableRow(this.model.getParent(a))};Graph.prototype.isTableRow=function(a){return this.model.isVertex(a)&&this.isTable(this.model.getParent(a))};Graph.prototype.isTable=function(a){a=this.getCellStyle(a);return null!=a&&"tableLayout"==a.childLayout};Graph.prototype.isStack=function(a){a=this.getCellStyle(a);return null!=a&&"stackLayout"==a.childLayout};
Graph.prototype.isStackChild=function(a){return this.model.isVertex(a)&&this.isStack(this.model.getParent(a))};
-Graph.prototype.setTableRowHeight=function(a,b,e){e=null!=e?e:!0;var f=this.getModel();f.beginUpdate();try{var h=this.getCellGeometry(a);if(null!=h){h=h.clone();h.height+=b;f.setGeometry(a,h);var d=f.getParent(a),g=f.getChildCells(d,!0);if(!e){var m=mxUtils.indexOf(g,a);if(m<g.length-1){var q=g[m+1],k=this.getCellGeometry(q);null!=k&&(k=k.clone(),k.y+=b,k.height-=b,f.setGeometry(q,k))}}var u=this.getCellGeometry(d);null!=u&&(e||(e=a==g[g.length-1]),e&&(u=u.clone(),u.height+=b,f.setGeometry(d,u)))}}finally{f.endUpdate()}};
-Graph.prototype.setTableColumnWidth=function(a,b,e){e=null!=e?e:!1;var f=this.getModel(),h=f.getParent(a),d=f.getParent(h),g=f.getChildCells(h,!0);a=mxUtils.indexOf(g,a);var m=a==g.length-1;f.beginUpdate();try{for(var q=f.getChildCells(d,!0),k=0;k<q.length;k++){h=q[k];g=f.getChildCells(h,!0);var u=g[a],w=this.getCellGeometry(u);null!=w&&(w=w.clone(),w.width+=b,null!=w.alternateBounds&&(w.alternateBounds.width+=b),f.setGeometry(u,w));a<g.length-1&&(u=g[a+1],w=this.getCellGeometry(u),null!=w&&(w=w.clone(),
-w.x+=b,e||(w.width-=b,null!=w.alternateBounds&&(w.alternateBounds.width-=b)),f.setGeometry(u,w)))}if(m||e){var z=this.getCellGeometry(d);null!=z&&(z=z.clone(),z.width+=b,f.setGeometry(d,z))}null!=this.layoutManager&&this.layoutManager.executeLayout(d)}finally{f.endUpdate()}};function TableLayout(a){mxGraphLayout.call(this,a)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
+Graph.prototype.setTableRowHeight=function(a,b,e){e=null!=e?e:!0;var f=this.getModel();f.beginUpdate();try{var h=this.getCellGeometry(a);if(null!=h){h=h.clone();h.height+=b;f.setGeometry(a,h);var d=f.getParent(a),g=f.getChildCells(d,!0);if(!e){var m=mxUtils.indexOf(g,a);if(m<g.length-1){var p=g[m+1],k=this.getCellGeometry(p);null!=k&&(k=k.clone(),k.y+=b,k.height-=b,f.setGeometry(p,k))}}var u=this.getCellGeometry(d);null!=u&&(e||(e=a==g[g.length-1]),e&&(u=u.clone(),u.height+=b,f.setGeometry(d,u)))}}finally{f.endUpdate()}};
+Graph.prototype.setTableColumnWidth=function(a,b,e){e=null!=e?e:!1;var f=this.getModel(),h=f.getParent(a),d=f.getParent(h),g=f.getChildCells(h,!0);a=mxUtils.indexOf(g,a);var m=a==g.length-1;f.beginUpdate();try{for(var p=f.getChildCells(d,!0),k=0;k<p.length;k++){h=p[k];g=f.getChildCells(h,!0);var u=g[a],x=this.getCellGeometry(u);null!=x&&(x=x.clone(),x.width+=b,null!=x.alternateBounds&&(x.alternateBounds.width+=b),f.setGeometry(u,x));a<g.length-1&&(u=g[a+1],x=this.getCellGeometry(u),null!=x&&(x=x.clone(),
+x.x+=b,e||(x.width-=b,null!=x.alternateBounds&&(x.alternateBounds.width-=b)),f.setGeometry(u,x)))}if(m||e){var z=this.getCellGeometry(d);null!=z&&(z=z.clone(),z.width+=b,f.setGeometry(d,z))}null!=this.layoutManager&&this.layoutManager.executeLayout(d)}finally{f.endUpdate()}};function TableLayout(a){mxGraphLayout.call(this,a)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
TableLayout.prototype.isVertexIgnored=function(a){return!this.graph.getModel().isVertex(a)||!this.graph.isCellVisible(a)};TableLayout.prototype.getSize=function(a,b){for(var e=0,f=0;f<a.length;f++)if(!this.isVertexIgnored(a[f])){var h=this.graph.getCellGeometry(a[f]);null!=h&&(e+=b?h.width:h.height)}return e};
TableLayout.prototype.getRowLayout=function(a,b){var e=this.graph.model.getChildCells(a,!0),f=this.graph.getActualStartSize(a,!0);a=this.getSize(e,!0);b=b-f.x-f.width;var h=[];f=f.x;for(var d=0;d<e.length;d++){var g=this.graph.getCellGeometry(e[d]);null!=g&&(f+=(null!=g.alternateBounds?g.alternateBounds.width:g.width)*b/a,h.push(Math.round(f)))}return h};
-TableLayout.prototype.layoutRow=function(a,b,e,f){var h=this.graph.getModel(),d=h.getChildCells(a,!0);a=this.graph.getActualStartSize(a,!0);var g=a.x,m=0;null!=b&&(b=b.slice(),b.splice(0,0,a.x));for(var q=0;q<d.length;q++){var k=this.graph.getCellGeometry(d[q]);null!=k&&(k=k.clone(),k.y=a.y,k.height=e-a.y-a.height,null!=b?(k.x=b[q],k.width=b[q+1]-k.x,q==d.length-1&&q<b.length-2&&(k.width=f-k.x-a.x-a.width)):(k.x=g,g+=k.width,q==d.length-1?k.width=f-a.x-a.width-m:m+=k.width),k.alternateBounds=new mxRectangle(0,
-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(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],
+TableLayout.prototype.layoutRow=function(a,b,e,f){var h=this.graph.getModel(),d=h.getChildCells(a,!0);a=this.graph.getActualStartSize(a,!0);var g=a.x,m=0;null!=b&&(b=b.slice(),b.splice(0,0,a.x));for(var p=0;p<d.length;p++){var k=this.graph.getCellGeometry(d[p]);null!=k&&(k=k.clone(),k.y=a.y,k.height=e-a.y-a.height,null!=b?(k.x=b[p],k.width=b[p+1]-k.x,p==d.length-1&&p<b.length-2&&(k.width=f-k.x-a.x-a.width)):(k.x=g,g+=k.width,p==d.length-1?k.width=f-a.x-a.width-m:m+=k.width),k.alternateBounds=new mxRectangle(0,
+0,k.width,k.height),h.setGeometry(d[p],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 p=e.height-b.y-b.height,k=e.width-b.x-b.width,u=g.getChildCells(a,!0),x=0;x<u.length;x++)g.setVisible(u[x],!0);var z=this.getSize(u,!1);if(0<p&&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=p-z+C.height,g.setGeometry(u[u.length-1],C))}var E=d?null:this.getRowLayout(u[0],k),D=[],G=b.y;for(x=0;x<u.length;x++)C=this.graph.getCellGeometry(u[x]),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*p,C.height=Math.round(G)-C.y,g.setGeometry(u[x],C)),m=Math.max(m,this.layoutRow(u[x],E,C.height,k,D));f&&p<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(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(x=0;x<u.length;x++)g.setVisible(u[x],
!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,qa,O){var Z=new mxPoint(qa,O);Z.type=oa;E.push(Z);Z=null!=w.routedPoints?w.routedPoints[E.length-1]:null;return null==Z||Z.type!=oa||Z.x!=qa||Z.y!=O},G=.5*this.scale;
-C=!1;E=[];for(var I=0;I<z.length-1;I++){for(var L=z[I+1],T=z[I],K=[],U=z[I+2];I<z.length-2&&mxUtils.ptSegDistSq(T.x,T.y,U.x,U.y,L.x,L.y)<1*this.scale*this.scale;)L=U,I++,U=z[I+2];C=D(0,T.x,T.y)||C;for(var Y=0;Y<this.validEdges.length;Y++){var Q=this.validEdges[Y],P=Q.absolutePoints;if(null!=P&&mxUtils.intersects(w,Q)&&"1"!=Q.style.noJump){var M=null;for(Q=0;Q<P.length-1;Q++){var W=P[Q+1],aa=P[Q];for(U=P[Q+2];Q<P.length-2&&mxUtils.ptSegDistSq(aa.x,aa.y,U.x,U.y,W.x,W.y)<1*this.scale*this.scale;)W=U,
-Q++,U=P[Q+2];var ia=mxUtils.intersection(T.x,T.y,L.x,L.y,aa.x,aa.y,W.x,W.y);if(null!=ia&&(Math.abs(ia.x-T.x)>G||Math.abs(ia.y-T.y)>G)&&(Math.abs(ia.x-L.x)>G||Math.abs(ia.y-L.y)>G)&&(null==M||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,M.x,M.y)>G||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,aa.x,aa.y)>G)&&(null==U||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,U.x,U.y)>G||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,W.x,W.y)>G)){U=ia.x-T.x;M=ia.y-T.y;ia={distSq:U*U+M*M,x:ia.x,y:ia.y};for(U=0;U<K.length;U++)if(K[U].distSq>ia.distSq){K.splice(U,
-0,ia);ia=null;break}null==ia||0!=K.length&&K[K.length-1].x===ia.x&&K[K.length-1].y===ia.y||K.push(ia)}M=aa}}}for(Q=0;Q<K.length;Q++)C=D(1,K[Q].x,K[Q].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"),I=!0,L=null,T=null,K=[],U=null;w.begin();for(var Y=0;Y<this.state.routedPoints.length;Y++){var Q=this.state.routedPoints[Y],P=new mxPoint(Q.x/this.scale,Q.y/this.scale);0==Y?P=z[0]:Y==this.state.routedPoints.length-1&&(P=z[z.length-1]);var M=!1;if(null!=
-L&&1==Q.type){var W=this.state.routedPoints[Y+1];Q=W.x/this.scale-P.x;W=W.y/this.scale-P.y;Q=Q*Q+W*W;null==U&&(U=new mxPoint(P.x-L.x,P.y-L.y),T=Math.sqrt(U.x*U.x+U.y*U.y),0<T?(U.x=U.x*D/T,U.y=U.y*D/T):U=null);Q>D*D&&0<T&&(Q=L.x-P.x,W=L.y-P.y,Q=Q*Q+W*W,Q>D*D&&(M=new mxPoint(P.x-U.x,P.y-U.y),Q=new mxPoint(P.x+U.x,P.y+U.y),K.push(M),this.addPoints(w,K,C,E,!1,null,I),K=0>Math.round(U.x)||0==Math.round(U.x)&&0>=Math.round(U.y)?1:-1,I=!1,"sharp"==G?(w.lineTo(M.x-U.y*K,M.y+U.x*K),w.lineTo(Q.x-U.y*K,Q.y+
-U.x*K),w.lineTo(Q.x,Q.y)):"line"==G?(w.moveTo(M.x+U.y*K,M.y-U.x*K),w.lineTo(M.x-U.y*K,M.y+U.x*K),w.moveTo(Q.x-U.y*K,Q.y+U.x*K),w.lineTo(Q.x+U.y*K,Q.y-U.x*K),w.moveTo(Q.x,Q.y)):"arc"==G?(K*=1.3,w.curveTo(M.x-U.y*K,M.y+U.x*K,Q.x-U.y*K,Q.y+U.x*K,Q.x,Q.y)):(w.moveTo(Q.x,Q.y),I=!0),K=[Q],M=!0))}else U=null;M||(K.push(P),L=P)}this.addPoints(w,K,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 T=Math.cos(-I),K=Math.sin(-I);D=mxUtils.getRotatedPoint(D,T,K,L)}T=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);T+=parseFloat(w.style[E?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);D=this.getPerimeterPoint(z,D,0==I&&G,T);0!=I&&(T=Math.cos(I),K=Math.sin(I),D=mxUtils.getRotatedPoint(D,T,K,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)}})();
+(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(x,z){z=null!=z?z:!0;var C=this.getState(x);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 x=null!=this.node?this.node.getElementsByTagName("path"):null;if(null!=
+x)for(var z=0;z<x.length;z++)if("hidden"!=x[z].getAttribute("visibility"))return x[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(x){e.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var f=mxShape.prototype.createSvgCanvas;
+mxShape.prototype.createSvgCanvas=function(x){x=f.apply(this,arguments);null!=this.state&&(x.adaptiveColors=this.state.view.graph.getAdaptiveColors());return x};var h=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(x,z){return h.apply(this,arguments)||null!=x.routedPoints&&null!=z.routedPoints&&!mxUtils.equalPoints(z.routedPoints,x.routedPoints)};var d=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(x){d.apply(this,arguments);
+this.graph.model.isEdge(x.cell)&&1!=x.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(x)};mxGraphView.prototype.updateLineJumps=function(x){var z=x.absolutePoints;if(Graph.lineJumpsEnabled){var C=null!=x.routedPoints,E=null;if(null!=z&&null!=this.validEdges&&"none"!==mxUtils.getValue(x.style,"jumpStyle","none")){var D=function(na,qa,O){var Z=new mxPoint(qa,O);Z.type=na;E.push(Z);Z=null!=x.routedPoints?x.routedPoints[E.length-1]:null;return null==Z||Z.type!=na||Z.x!=qa||Z.y!=O},G=.5*this.scale;
+C=!1;E=[];for(var I=0;I<z.length-1;I++){for(var L=z[I+1],T=z[I],K=[],U=z[I+2];I<z.length-2&&mxUtils.ptSegDistSq(T.x,T.y,U.x,U.y,L.x,L.y)<1*this.scale*this.scale;)L=U,I++,U=z[I+2];C=D(0,T.x,T.y)||C;for(var Y=0;Y<this.validEdges.length;Y++){var Q=this.validEdges[Y],P=Q.absolutePoints;if(null!=P&&mxUtils.intersects(x,Q)&&"1"!=Q.style.noJump){var M=null;for(Q=0;Q<P.length-1;Q++){var V=P[Q+1],aa=P[Q];for(U=P[Q+2];Q<P.length-2&&mxUtils.ptSegDistSq(aa.x,aa.y,U.x,U.y,V.x,V.y)<1*this.scale*this.scale;)V=U,
+Q++,U=P[Q+2];var ia=mxUtils.intersection(T.x,T.y,L.x,L.y,aa.x,aa.y,V.x,V.y);if(null!=ia&&(Math.abs(ia.x-T.x)>G||Math.abs(ia.y-T.y)>G)&&(Math.abs(ia.x-L.x)>G||Math.abs(ia.y-L.y)>G)&&(null==M||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,M.x,M.y)>G||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,aa.x,aa.y)>G)&&(null==U||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,U.x,U.y)>G||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,V.x,V.y)>G)){U=ia.x-T.x;M=ia.y-T.y;ia={distSq:U*U+M*M,x:ia.x,y:ia.y};for(U=0;U<K.length;U++)if(K[U].distSq>ia.distSq){K.splice(U,
+0,ia);ia=null;break}null==ia||0!=K.length&&K[K.length-1].x===ia.x&&K[K.length-1].y===ia.y||K.push(ia)}M=aa}}}for(Q=0;Q<K.length;Q++)C=D(1,K[Q].x,K[Q].y)||C}ia=z[z.length-1];C=D(0,ia.x,ia.y)||C}x.routedPoints=E;return C}return!1};var g=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(x,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"),I=!0,L=null,T=null,K=[],U=null;x.begin();for(var Y=0;Y<this.state.routedPoints.length;Y++){var Q=this.state.routedPoints[Y],P=new mxPoint(Q.x/this.scale,Q.y/this.scale);0==Y?P=z[0]:Y==this.state.routedPoints.length-1&&(P=z[z.length-1]);var M=!1;if(null!=
+L&&1==Q.type){var V=this.state.routedPoints[Y+1];Q=V.x/this.scale-P.x;V=V.y/this.scale-P.y;Q=Q*Q+V*V;null==U&&(U=new mxPoint(P.x-L.x,P.y-L.y),T=Math.sqrt(U.x*U.x+U.y*U.y),0<T?(U.x=U.x*D/T,U.y=U.y*D/T):U=null);Q>D*D&&0<T&&(Q=L.x-P.x,V=L.y-P.y,Q=Q*Q+V*V,Q>D*D&&(M=new mxPoint(P.x-U.x,P.y-U.y),Q=new mxPoint(P.x+U.x,P.y+U.y),K.push(M),this.addPoints(x,K,C,E,!1,null,I),K=0>Math.round(U.x)||0==Math.round(U.x)&&0>=Math.round(U.y)?1:-1,I=!1,"sharp"==G?(x.lineTo(M.x-U.y*K,M.y+U.x*K),x.lineTo(Q.x-U.y*K,Q.y+
+U.x*K),x.lineTo(Q.x,Q.y)):"line"==G?(x.moveTo(M.x+U.y*K,M.y-U.x*K),x.lineTo(M.x-U.y*K,M.y+U.x*K),x.moveTo(Q.x-U.y*K,Q.y+U.x*K),x.lineTo(Q.x+U.y*K,Q.y-U.x*K),x.moveTo(Q.x,Q.y)):"arc"==G?(K*=1.3,x.curveTo(M.x-U.y*K,M.y+U.x*K,Q.x-U.y*K,Q.y+U.x*K,Q.x,Q.y)):(x.moveTo(Q.x,Q.y),I=!0),K=[Q],M=!0))}else U=null;M||(K.push(P),L=P)}this.addPoints(x,K,C,E,!1,null,I);x.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(x,z,C,E){return null!=z&&"centerPerimeter"==
+z.style[mxConstants.STYLE_PERIMETER]?new mxPoint(z.getCenterX(),z.getCenterY()):m.apply(this,arguments)};var p=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(x,z,C,E){if(null==z||null==x||"1"!=z.style.snapToPoint&&"1"!=x.style.snapToPoint)p.apply(this,arguments);else{z=this.getTerminalPort(x,z,E);var D=this.getNextPoint(x,C,E),G=this.graph.isOrthogonal(x),I=mxUtils.toRadians(Number(z.style[mxConstants.STYLE_ROTATION]||"0")),L=new mxPoint(z.getCenterX(),
+z.getCenterY());if(0!=I){var T=Math.cos(-I),K=Math.sin(-I);D=mxUtils.getRotatedPoint(D,T,K,L)}T=parseFloat(x.style[mxConstants.STYLE_PERIMETER_SPACING]||0);T+=parseFloat(x.style[E?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);D=this.getPerimeterPoint(z,D,0==I&&G,T);0!=I&&(T=Math.cos(I),K=Math.sin(I),D=mxUtils.getRotatedPoint(D,T,K,L));x.setAbsoluteTerminalPoint(this.snapToAnchorPoint(x,z,C,E,D),E)}};mxGraphView.prototype.snapToAnchorPoint=function(x,z,
+C,E,D){if(null!=z&&null!=x){x=this.graph.getAllConnectionConstraints(z);E=C=null;if(null!=x)for(var G=0;G<x.length;G++){var I=this.graph.getConnectionPoint(z,x[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(x,z,C){var E=k.apply(this,arguments);"1"==x.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(x){if(null!=x.style&&"undefined"!==typeof pako){var z=mxUtils.getValue(x.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,
null);else if(".js"==h.toLowerCase().substring(h.length-3,h.length))try{if(mxStencilRegistry.allowEval){var d=mxUtils.load(h);null!=d&&200<=d.getStatus()&&299>=d.getStatus()&&eval.call(window,d.getText())}}catch(g){null!=window.console&&console.log("error in getStencil:",a,e,b,h,g)}}mxStencilRegistry.packages[e]=1}}else e=e.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+e+".xml",null);b=mxStencilRegistry.stencils[a]}}return b};
@@ -2785,156 +2800,156 @@ mxStencilRegistry.loadStencilSet=function(a,b,e,f){var h=mxStencilRegistry.packa
h.documentElement&&mxStencilRegistry.parseStencilSet(h.documentElement,b,d)}};mxStencilRegistry.loadStencil=function(a,b){if(null!=b)mxUtils.get(a,mxUtils.bind(this,function(e){b(200<=e.getStatus()&&299>=e.getStatus()?e.getXml():null)}),mxUtils.bind(this,function(e){b(null)}));else return mxUtils.load(a).getXml()};mxStencilRegistry.parseStencilSets=function(a){for(var b=0;b<a.length;b++)mxStencilRegistry.parseStencilSet(mxUtils.parseXml(a[b]).documentElement)};
mxStencilRegistry.parseStencilSet=function(a,b,e){if("stencils"==a.nodeName)for(var f=a.firstChild;null!=f;)"shapes"==f.nodeName&&mxStencilRegistry.parseStencilSet(f,b,e),f=f.nextSibling;else{e=null!=e?e:!0;f=a.firstChild;var h="";a=a.getAttribute("name");for(null!=a&&(h=a+".");null!=f;){if(f.nodeType==mxConstants.NODETYPE_ELEMENT&&(a=f.getAttribute("name"),null!=a)){h=h.toLowerCase();var d=a.replace(/ /g,"_");e&&mxStencilRegistry.addStencil(h+d.toLowerCase(),new mxStencil(f));if(null!=b){var g=f.getAttribute("w"),
m=f.getAttribute("h");g=null==g?80:parseInt(g,10);m=null==m?80:parseInt(m,10);b(h,d,a,g,m)}}f=f.nextSibling}}};
-"undefined"!==typeof mxVertexHandler&&function(){function a(){var p=document.createElement("div");p.className="geHint";p.style.whiteSpace="nowrap";p.style.position="absolute";return p}function b(p,A){switch(A){case mxConstants.POINTS:return p;case mxConstants.MILLIMETERS:return(p/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(p/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(p/mxConstants.PIXELS_PER_INCH).toFixed(3)}}mxConstants.HANDLE_FILLCOLOR="#29b6f2";
+"undefined"!==typeof mxVertexHandler&&function(){function a(){var q=document.createElement("div");q.className="geHint";q.style.whiteSpace="nowrap";q.style.position="absolute";return q}function b(q,A){switch(A){case mxConstants.POINTS:return q;case mxConstants.MILLIMETERS:return(q/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(q/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(q/mxConstants.PIXELS_PER_INCH).toFixed(3)}}mxConstants.HANDLE_FILLCOLOR="#29b6f2";
mxConstants.HANDLE_STROKECOLOR="#0088cf";mxConstants.VERTEX_SELECTION_COLOR="#00a8ff";mxConstants.OUTLINE_COLOR="#00a8ff";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#99ccff";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#00a8ff";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.EDGE_SELECTION_COLOR="#00a8ff";mxConstants.DEFAULT_VALID_COLOR="#00a8ff";mxConstants.LABEL_HANDLE_FILLCOLOR="#cee7ff";mxConstants.GUIDE_COLOR="#0088cf";mxConstants.HIGHLIGHT_STROKEWIDTH=5;mxConstants.HIGHLIGHT_OPACITY=50;mxConstants.HIGHLIGHT_SIZE=
5;mxWindow.prototype.closeImage=Graph.createSvgImage(18,10,'<path d="M 5 1 L 13 9 M 13 1 L 5 9" stroke="#707070" stroke-width="2"/>').src;mxWindow.prototype.minimizeImage=Graph.createSvgImage(14,10,'<path d="M 3 7 L 7 3 L 11 7" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.normalizeImage=Graph.createSvgImage(14,10,'<path d="M 3 3 L 7 7 L 11 3" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.resizeImage=Graph.createSvgImage(10,10,'<path d="Z" stroke="#C0C0C0" stroke-width="1" fill="none"/>').src;
-mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(p){return!mxEvent.isAltDown(p)||mxEvent.isShiftDown(p)};var e=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(p){return e.apply(this,arguments)||this.graph.isTableRow(p)||this.graph.isTableCell(p)};var f=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
-function(p){return f.apply(this,arguments)||this.graph.isEdgeIgnored(p)};var h=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(p){return this.graph.isCloneEvent(p)!=h.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var p=new mxEllipse(null,this.highlightColor,this.highlightColor,0);p.opacity=mxConstants.HIGHLIGHT_OPACITY;return p};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
-"crosshair";mxConnectionHandler.prototype.createEdgeState=function(p){p=this.graph.createCurrentEdgeStyle();p=this.graph.createEdge(null,null,null,null,null,p);p=new mxCellState(this.graph.view,p,this.graph.getCellStyle(p));for(var A in this.graph.currentEdgeStyle)p.style[A]=this.graph.currentEdgeStyle[A];if(null!=this.previous){var B=this.previous.style.newEdgeStyle;if(null!=B)try{var F=JSON.parse(B);for(A in F)p.style[A]=F[A]}catch(N){}}p.style=this.graph.postProcessCellStyle(p.cell,p.style);return p};
-var d=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var p=d.apply(this,arguments);p.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return p};mxConnectionHandler.prototype.updatePreview=function(p){};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var p=g.apply(this,arguments),A=p.getCell;p.getCell=mxUtils.bind(this,function(B){var F=A.apply(this,arguments);this.error=null;return F});
-return p};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var p="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",A="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),B=0;B<A.length;B++)null!=
-this.currentEdgeStyle[A[B]]&&(p+=A[B]+"="+this.currentEdgeStyle[A[B]]+";");null!=this.currentEdgeStyle.orthogonalLoop?p+="orthogonalLoop="+this.currentEdgeStyle.orthogonalLoop+";":null!=Graph.prototype.defaultEdgeStyle.orthogonalLoop&&(p+="orthogonalLoop="+Graph.prototype.defaultEdgeStyle.orthogonalLoop+";");null!=this.currentEdgeStyle.jettySize?p+="jettySize="+this.currentEdgeStyle.jettySize+";":null!=Graph.prototype.defaultEdgeStyle.jettySize&&(p+="jettySize="+Graph.prototype.defaultEdgeStyle.jettySize+
-";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(p+="elbow="+this.currentEdgeStyle.elbow+";");return p=null!=this.currentEdgeStyle.html?p+("html="+this.currentEdgeStyle.html+";"):p+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var p=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=
-p&&(new mxCodec(p.ownerDocument)).decode(p,this.getStylesheet())};Graph.prototype.createCellLookup=function(p,A){A=null!=A?A:{};for(var B=0;B<p.length;B++){var F=p[B];A[mxObjectIdentity.get(F)]=F.getId();for(var N=this.model.getChildCount(F),R=0;R<N;R++)this.createCellLookup([this.model.getChildAt(F,R)],A)}return A};Graph.prototype.createCellMapping=function(p,A,B){B=null!=B?B:{};for(var F in p){var N=A[F];null==B[N]&&(B[N]=p[F].getId()||"")}return B};Graph.prototype.importGraphModel=function(p,A,
-B,F){A=null!=A?A:0;B=null!=B?B:0;var N=new mxCodec(p.ownerDocument),R=new mxGraphModel;N.decode(p,R);p=[];N={};var X={},fa=R.getChildren(this.cloneCell(R.root,this.isCloneInvalidEdges(),N));if(null!=fa){var da=this.createCellLookup([R.root]);fa=fa.slice();this.model.beginUpdate();try{if(1!=fa.length||this.isCellLocked(this.getDefaultParent()))for(R=0;R<fa.length;R++)ha=this.model.getChildren(this.moveCells([fa[R]],A,B,!1,this.model.getRoot())[0]),null!=ha&&(p=p.concat(ha));else{var ha=R.getChildren(fa[0]);
-null!=ha&&(p=this.moveCells(ha,A,B,!1,this.getDefaultParent()),X[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=p&&(this.createCellMapping(N,da,X),this.updateCustomLinks(X,p),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var wa=this.getBoundingBoxFromGeometry(p,!0);null!=wa&&this.moveCells(p,A-wa.x,B-wa.y)}}finally{this.model.endUpdate()}}return p};Graph.prototype.encodeCells=function(p){for(var A={},B=this.cloneCells(p,null,A),F=new mxDictionary,N=0;N<p.length;N++)F.put(p[N],
-!0);var R=new mxCodec,X=new mxGraphModel,fa=X.getChildAt(X.getRoot(),0);for(N=0;N<B.length;N++){X.add(fa,B[N]);var da=this.view.getState(p[N]);if(null!=da){var ha=this.getCellGeometry(B[N]);null!=ha&&ha.relative&&!this.model.isEdge(p[N])&&null==F.get(this.model.getParent(p[N]))&&(ha.offset=null,ha.relative=!1,ha.x=da.x/da.view.scale-da.view.translate.x,ha.y=da.y/da.view.scale-da.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(p)),B);return R.encode(X)};Graph.prototype.isSwimlane=
-function(p,A){var B=null;null==p||this.model.isEdge(p)||this.model.getParent(p)==this.model.getRoot()||(B=this.getCurrentCellStyle(p,A)[mxConstants.STYLE_SHAPE]);return B==mxConstants.SHAPE_SWIMLANE||"table"==B||"tableRow"==B};var m=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(p){return null!=p&&m.apply(this,arguments)?this.isTableCell(p)||this.isTableRow(p)?this.isCellEditable(this.model.getParent(p)):!0:!1};var q=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=
-function(p){return null!=p&&q.apply(this,arguments)?this.isTableCell(p)||this.isTableRow(p)?this.isCellMovable(this.model.getParent(p)):!0:!1};var k=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(p){var A=this.model.getParent(p);if(null!=A){var B=this.getCurrentCellStyle(A);if(null!=B.expand)return"0"!=B.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var u=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(p,A,B,F,N,R,X,fa){null==fa&&(fa=this.model.getParent(p),
-this.isTable(fa)||this.isTableRow(fa))&&(fa=this.getCellAt(R,X,null,!0,!1));B=null;this.model.beginUpdate();try{B=u.apply(this,[p,A,B,F,N,R,X,fa]);this.model.setValue(B,"");var da=this.getChildCells(B,!0);for(A=0;A<da.length;A++){var ha=this.getCellGeometry(da[A]);null!=ha&&ha.relative&&0<ha.x&&this.model.remove(da[A])}var wa=this.getChildCells(p,!0);for(A=0;A<wa.length;A++)ha=this.getCellGeometry(wa[A]),null!=ha&&ha.relative&&0>=ha.x&&this.model.remove(wa[A]);var Ma=this.model.getTerminal(B,!1);
-if(null!=Ma){var Na=this.getCurrentCellStyle(Ma);null!=Na&&"1"==Na.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[p]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[p]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[B]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[B]))}}finally{this.model.endUpdate()}return B};var w=Graph.prototype.selectCell;Graph.prototype.selectCell=function(p,A,B){if(A||B)w.apply(this,arguments);else{var F=this.getSelectionCell(),N=null,R=[],X=mxUtils.bind(this,
-function(fa){if(null!=this.view.getState(fa)&&(this.model.isVertex(fa)||this.model.isEdge(fa)))if(R.push(fa),fa==F)N=R.length-1;else if(p&&null==F&&0<R.length||null!=N&&p&&R.length>N||!p&&0<N)return;for(var da=0;da<this.model.getChildCount(fa);da++)X(this.model.getChildAt(fa,da))});X(this.model.root);0<R.length&&(N=null!=N?mxUtils.mod(N+(p?1:-1),R.length):0,this.setSelectionCell(R[N]))}};Graph.prototype.swapShapes=function(p,A){if(this.model.isVertex(p)&&this.model.isVertex(A)&&2==this.getMovableCells([p,
-A]).length){var B=this.getCellGeometry(p),F=this.getCellGeometry(A);if(null!=B&&null!=F){var N=B.clone(),R=F.clone();this.model.beginUpdate();try{N.x=F.getCenterX()-B.width/2,N.y=F.getCenterY()-B.height/2,R.x=B.getCenterX()-F.width/2,R.y=B.getCenterY()-F.height/2,this.model.setGeometry(p,N),this.model.setGeometry(A,R)}finally{this.model.endUpdate()}}}};var z=Graph.prototype.moveCells;Graph.prototype.moveCells=function(p,A,B,F,N,R,X){X=null!=X?X:{};if(this.isTable(N)){for(var fa=[],da=0;da<p.length;da++)this.isTable(p[da])?
-fa=fa.concat(this.model.getChildCells(p[da],!0).reverse()):fa.push(p[da]);p=fa}this.model.beginUpdate();try{fa=[];for(da=0;da<p.length;da++)if(null!=N&&this.isTableRow(p[da])){var ha=this.model.getParent(p[da]),wa=this.getCellGeometry(p[da]);this.isTable(ha)&&fa.push(ha);if(null!=ha&&null!=wa&&this.isTable(ha)&&this.isTable(N)&&(F||ha!=N)){if(!F){var Ma=this.getCellGeometry(ha);null!=Ma&&(Ma=Ma.clone(),Ma.height-=wa.height,this.model.setGeometry(ha,Ma))}Ma=this.getCellGeometry(N);null!=Ma&&(Ma=Ma.clone(),
-Ma.height+=wa.height,this.model.setGeometry(N,Ma));var Na=this.model.getChildCells(N,!0);if(0<Na.length){p[da]=F?this.cloneCell(p[da]):p[da];var ya=this.model.getChildCells(p[da],!0),za=this.model.getChildCells(Na[0],!0),va=za.length-ya.length;if(0<va)for(var ua=0;ua<va;ua++){var Va=this.cloneCell(ya[ya.length-1]);null!=Va&&(Va.value="",this.model.add(p[da],Va))}else if(0>va)for(ua=0;ua>va;ua--)this.model.remove(ya[ya.length+ua-1]);ya=this.model.getChildCells(p[da],!0);for(ua=0;ua<za.length;ua++){var Qa=
-this.getCellGeometry(za[ua]),Ka=this.getCellGeometry(ya[ua]);null!=Qa&&null!=Ka&&(Ka=Ka.clone(),Ka.width=Qa.width,this.model.setGeometry(ya[ua],Ka))}}}}var Ua=z.apply(this,arguments);for(da=0;da<fa.length;da++)!F&&this.model.contains(fa[da])&&0==this.model.getChildCount(fa[da])&&this.model.remove(fa[da]);F&&this.updateCustomLinks(this.createCellMapping(X,this.createCellLookup(p)),Ua)}finally{this.model.endUpdate()}return Ua};var C=Graph.prototype.removeCells;Graph.prototype.removeCells=function(p,
-A){var B=[];this.model.beginUpdate();try{for(var F=0;F<p.length;F++)if(this.isTableCell(p[F])){var N=this.model.getParent(p[F]),R=this.model.getParent(N);1==this.model.getChildCount(N)&&1==this.model.getChildCount(R)?0>mxUtils.indexOf(p,R)&&0>mxUtils.indexOf(B,R)&&B.push(R):this.labelChanged(p[F],"")}else{if(this.isTableRow(p[F])&&(R=this.model.getParent(p[F]),0>mxUtils.indexOf(p,R)&&0>mxUtils.indexOf(B,R))){for(var X=this.model.getChildCells(R,!0),fa=0,da=0;da<X.length;da++)0<=mxUtils.indexOf(p,
-X[da])&&fa++;fa==X.length&&B.push(R)}B.push(p[F])}B=C.apply(this,[B,A])}finally{this.model.endUpdate()}return B};Graph.prototype.updateCustomLinks=function(p,A,B){B=null!=B?B:new Graph;for(var F=0;F<A.length;F++)null!=A[F]&&B.updateCustomLinksForCell(p,A[F],B)};Graph.prototype.updateCustomLinksForCell=function(p,A){this.doUpdateCustomLinksForCell(p,A);for(var B=this.model.getChildCount(A),F=0;F<B;F++)this.updateCustomLinksForCell(p,this.model.getChildAt(A,F))};Graph.prototype.doUpdateCustomLinksForCell=
-function(p,A){};Graph.prototype.getAllConnectionConstraints=function(p,A){if(null!=p){A=mxUtils.getValue(p.style,"points",null);if(null!=A){p=[];try{var B=JSON.parse(A);for(A=0;A<B.length;A++){var F=B[A];p.push(new mxConnectionConstraint(new mxPoint(F[0],F[1]),2<F.length?"0"!=F[2]:!0,null,3<F.length?F[3]:0,4<F.length?F[4]:0))}}catch(R){}return p}if(null!=p.shape&&null!=p.shape.bounds){F=p.shape.direction;A=p.shape.bounds;var N=p.shape.scale;B=A.width/N;A=A.height/N;if(F==mxConstants.DIRECTION_NORTH||
-F==mxConstants.DIRECTION_SOUTH)F=B,B=A,A=F;A=p.shape.getConstraints(p.style,B,A);if(null!=A)return A;if(null!=p.shape.stencil&&null!=p.shape.stencil.constraints)return p.shape.stencil.constraints;if(null!=p.shape.constraints)return p.shape.constraints}}return null};Graph.prototype.flipEdge=function(p){if(null!=p){var A=this.getCurrentCellStyle(p);A=mxUtils.getValue(A,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;
-this.setCellStyles(mxConstants.STYLE_ELBOW,A,[p])}};Graph.prototype.isValidRoot=function(p){for(var A=this.model.getChildCount(p),B=0,F=0;F<A;F++){var N=this.model.getChildAt(p,F);this.model.isVertex(N)&&(N=this.getCellGeometry(N),null==N||N.relative||B++)}return 0<B||this.isContainer(p)};Graph.prototype.isValidDropTarget=function(p,A,B){for(var F=this.getCurrentCellStyle(p),N=!0,R=!0,X=0;X<A.length&&R;X++)N=N&&this.isTable(A[X]),R=R&&this.isTableRow(A[X]);return!this.isCellLocked(p)&&(this.isTargetShape(p,
-A,B)||("1"!=mxUtils.getValue(F,"part","0")||this.isContainer(p))&&"0"!=mxUtils.getValue(F,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(p))&&!this.isTableRow(p)&&(!this.isTable(p)||R||N))};Graph.prototype.createGroupCell=function(){var p=mxGraph.prototype.createGroupCell.apply(this,arguments);p.setStyle("group");return p};Graph.prototype.isExtendParentsOnAdd=function(p){var A=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(A&&null!=
-p&&null!=this.layoutManager){var B=this.model.getParent(p);null!=B&&(B=this.layoutManager.getLayout(B),null!=B&&B.constructor==mxStackLayout&&(A=!1))}return A};Graph.prototype.getPreferredSizeForCell=function(p,A,B){B=null!=B?B:this.gridEnabled;var F=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=F&&(F.width+=10,F.height+=4,B&&(F.width=this.snap(F.width),F.height=this.snap(F.height)));return F};Graph.prototype.turnShapes=function(p,A){var B=this.getModel(),F=[];B.beginUpdate();
-try{for(var N=0;N<p.length;N++){var R=p[N];if(B.isEdge(R)){var X=B.getTerminal(R,!0),fa=B.getTerminal(R,!1);B.setTerminal(R,fa,!0);B.setTerminal(R,X,!1);var da=B.getGeometry(R);if(null!=da){da=da.clone();null!=da.points&&da.points.reverse();var ha=da.getTerminalPoint(!0),wa=da.getTerminalPoint(!1);da.setTerminalPoint(ha,!1);da.setTerminalPoint(wa,!0);B.setGeometry(R,da);var Ma=this.view.getState(R),Na=this.view.getState(X),ya=this.view.getState(fa);if(null!=Ma){var za=null!=Na?this.getConnectionConstraint(Ma,
-Na,!0):null,va=null!=ya?this.getConnectionConstraint(Ma,ya,!1):null;this.setConnectionConstraint(R,X,!0,va);this.setConnectionConstraint(R,fa,!1,za);var ua=mxUtils.getValue(Ma.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(Ma.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[R]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,ua,[R])}F.push(R)}}else if(B.isVertex(R)&&(da=this.getCellGeometry(R),null!=
+mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(q){return!mxEvent.isAltDown(q)||mxEvent.isShiftDown(q)};var e=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(q){return e.apply(this,arguments)||this.graph.isTableRow(q)||this.graph.isTableCell(q)};var f=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
+function(q){return f.apply(this,arguments)||this.graph.isEdgeIgnored(q)};var h=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(q){return this.graph.isCloneEvent(q)!=h.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var q=new mxEllipse(null,this.highlightColor,this.highlightColor,0);q.opacity=mxConstants.HIGHLIGHT_OPACITY;return q};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
+"crosshair";mxConnectionHandler.prototype.createEdgeState=function(q){q=this.graph.createCurrentEdgeStyle();q=this.graph.createEdge(null,null,null,null,null,q);q=new mxCellState(this.graph.view,q,this.graph.getCellStyle(q));for(var A in this.graph.currentEdgeStyle)q.style[A]=this.graph.currentEdgeStyle[A];if(null!=this.previous){var B=this.previous.style.newEdgeStyle;if(null!=B)try{var F=JSON.parse(B);for(A in F)q.style[A]=F[A]}catch(N){}}q.style=this.graph.postProcessCellStyle(q.cell,q.style);return q};
+var d=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var q=d.apply(this,arguments);q.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return q};mxConnectionHandler.prototype.updatePreview=function(q){};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var q=g.apply(this,arguments),A=q.getCell;q.getCell=mxUtils.bind(this,function(B){var F=A.apply(this,arguments);this.error=null;return F});
+return q};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var q="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",A="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),B=0;B<A.length;B++)null!=
+this.currentEdgeStyle[A[B]]&&(q+=A[B]+"="+this.currentEdgeStyle[A[B]]+";");null!=this.currentEdgeStyle.orthogonalLoop?q+="orthogonalLoop="+this.currentEdgeStyle.orthogonalLoop+";":null!=Graph.prototype.defaultEdgeStyle.orthogonalLoop&&(q+="orthogonalLoop="+Graph.prototype.defaultEdgeStyle.orthogonalLoop+";");null!=this.currentEdgeStyle.jettySize?q+="jettySize="+this.currentEdgeStyle.jettySize+";":null!=Graph.prototype.defaultEdgeStyle.jettySize&&(q+="jettySize="+Graph.prototype.defaultEdgeStyle.jettySize+
+";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(q+="elbow="+this.currentEdgeStyle.elbow+";");return q=null!=this.currentEdgeStyle.html?q+("html="+this.currentEdgeStyle.html+";"):q+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var q=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=
+q&&(new mxCodec(q.ownerDocument)).decode(q,this.getStylesheet())};Graph.prototype.createCellLookup=function(q,A){A=null!=A?A:{};for(var B=0;B<q.length;B++){var F=q[B];A[mxObjectIdentity.get(F)]=F.getId();for(var N=this.model.getChildCount(F),R=0;R<N;R++)this.createCellLookup([this.model.getChildAt(F,R)],A)}return A};Graph.prototype.createCellMapping=function(q,A,B){B=null!=B?B:{};for(var F in q){var N=A[F];null==B[N]&&(B[N]=q[F].getId()||"")}return B};Graph.prototype.importGraphModel=function(q,A,
+B,F){A=null!=A?A:0;B=null!=B?B:0;var N=new mxCodec(q.ownerDocument),R=new mxGraphModel;N.decode(q,R);q=[];N={};var X={},fa=R.getChildren(this.cloneCell(R.root,this.isCloneInvalidEdges(),N));if(null!=fa){var da=this.createCellLookup([R.root]);fa=fa.slice();this.model.beginUpdate();try{if(1!=fa.length||this.isCellLocked(this.getDefaultParent()))for(R=0;R<fa.length;R++)ha=this.model.getChildren(this.moveCells([fa[R]],A,B,!1,this.model.getRoot())[0]),null!=ha&&(q=q.concat(ha));else{var ha=R.getChildren(fa[0]);
+null!=ha&&(q=this.moveCells(ha,A,B,!1,this.getDefaultParent()),X[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=q&&(this.createCellMapping(N,da,X),this.updateCustomLinks(X,q),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var va=this.getBoundingBoxFromGeometry(q,!0);null!=va&&this.moveCells(q,A-va.x,B-va.y)}}finally{this.model.endUpdate()}}return q};Graph.prototype.encodeCells=function(q){for(var A={},B=this.cloneCells(q,null,A),F=new mxDictionary,N=0;N<q.length;N++)F.put(q[N],
+!0);var R=new mxCodec,X=new mxGraphModel,fa=X.getChildAt(X.getRoot(),0);for(N=0;N<B.length;N++){X.add(fa,B[N]);var da=this.view.getState(q[N]);if(null!=da){var ha=this.getCellGeometry(B[N]);null!=ha&&ha.relative&&!this.model.isEdge(q[N])&&null==F.get(this.model.getParent(q[N]))&&(ha.offset=null,ha.relative=!1,ha.x=da.x/da.view.scale-da.view.translate.x,ha.y=da.y/da.view.scale-da.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(q)),B);return R.encode(X)};Graph.prototype.isSwimlane=
+function(q,A){var B=null;null==q||this.model.isEdge(q)||this.model.getParent(q)==this.model.getRoot()||(B=this.getCurrentCellStyle(q,A)[mxConstants.STYLE_SHAPE]);return B==mxConstants.SHAPE_SWIMLANE||"table"==B||"tableRow"==B};var m=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(q){return null!=q&&m.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellEditable(this.model.getParent(q)):!0:!1};var p=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=
+function(q){return null!=q&&p.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellMovable(this.model.getParent(q)):!0:!1};var k=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(q){var A=this.model.getParent(q);if(null!=A){var B=this.getCurrentCellStyle(A);if(null!=B.expand)return"0"!=B.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var u=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(q,A,B,F,N,R,X,fa){null==fa&&(fa=this.model.getParent(q),
+this.isTable(fa)||this.isTableRow(fa))&&(fa=this.getCellAt(R,X,null,!0,!1));B=null;this.model.beginUpdate();try{B=u.apply(this,[q,A,B,F,N,R,X,fa]);this.model.setValue(B,"");var da=this.getChildCells(B,!0);for(A=0;A<da.length;A++){var ha=this.getCellGeometry(da[A]);null!=ha&&ha.relative&&0<ha.x&&this.model.remove(da[A])}var va=this.getChildCells(q,!0);for(A=0;A<va.length;A++)ha=this.getCellGeometry(va[A]),null!=ha&&ha.relative&&0>=ha.x&&this.model.remove(va[A]);var Ma=this.model.getTerminal(B,!1);
+if(null!=Ma){var Na=this.getCurrentCellStyle(Ma);null!=Na&&"1"==Na.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[q]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[q]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[B]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[B]))}}finally{this.model.endUpdate()}return B};var x=Graph.prototype.selectCell;Graph.prototype.selectCell=function(q,A,B){if(A||B)x.apply(this,arguments);else{var F=this.getSelectionCell(),N=null,R=[],X=mxUtils.bind(this,
+function(fa){if(null!=this.view.getState(fa)&&(this.model.isVertex(fa)||this.model.isEdge(fa)))if(R.push(fa),fa==F)N=R.length-1;else if(q&&null==F&&0<R.length||null!=N&&q&&R.length>N||!q&&0<N)return;for(var da=0;da<this.model.getChildCount(fa);da++)X(this.model.getChildAt(fa,da))});X(this.model.root);0<R.length&&(N=null!=N?mxUtils.mod(N+(q?1:-1),R.length):0,this.setSelectionCell(R[N]))}};Graph.prototype.swapShapes=function(q,A){if(this.model.isVertex(q)&&this.model.isVertex(A)&&2==this.getMovableCells([q,
+A]).length){var B=this.getCellGeometry(q),F=this.getCellGeometry(A);if(null!=B&&null!=F){var N=B.clone(),R=F.clone();this.model.beginUpdate();try{N.x=F.getCenterX()-B.width/2,N.y=F.getCenterY()-B.height/2,R.x=B.getCenterX()-F.width/2,R.y=B.getCenterY()-F.height/2,this.model.setGeometry(q,N),this.model.setGeometry(A,R)}finally{this.model.endUpdate()}}}};var z=Graph.prototype.moveCells;Graph.prototype.moveCells=function(q,A,B,F,N,R,X){X=null!=X?X:{};if(this.isTable(N)){for(var fa=[],da=0;da<q.length;da++)this.isTable(q[da])?
+fa=fa.concat(this.model.getChildCells(q[da],!0).reverse()):fa.push(q[da]);q=fa}this.model.beginUpdate();try{fa=[];for(da=0;da<q.length;da++)if(null!=N&&this.isTableRow(q[da])){var ha=this.model.getParent(q[da]),va=this.getCellGeometry(q[da]);this.isTable(ha)&&fa.push(ha);if(null!=ha&&null!=va&&this.isTable(ha)&&this.isTable(N)&&(F||ha!=N)){if(!F){var Ma=this.getCellGeometry(ha);null!=Ma&&(Ma=Ma.clone(),Ma.height-=va.height,this.model.setGeometry(ha,Ma))}Ma=this.getCellGeometry(N);null!=Ma&&(Ma=Ma.clone(),
+Ma.height+=va.height,this.model.setGeometry(N,Ma));var Na=this.model.getChildCells(N,!0);if(0<Na.length){q[da]=F?this.cloneCell(q[da]):q[da];var ya=this.model.getChildCells(q[da],!0),Ga=this.model.getChildCells(Na[0],!0),wa=Ga.length-ya.length;if(0<wa)for(var ua=0;ua<wa;ua++){var Va=this.cloneCell(ya[ya.length-1]);null!=Va&&(Va.value="",this.model.add(q[da],Va))}else if(0>wa)for(ua=0;ua>wa;ua--)this.model.remove(ya[ya.length+ua-1]);ya=this.model.getChildCells(q[da],!0);for(ua=0;ua<Ga.length;ua++){var Qa=
+this.getCellGeometry(Ga[ua]),Ka=this.getCellGeometry(ya[ua]);null!=Qa&&null!=Ka&&(Ka=Ka.clone(),Ka.width=Qa.width,this.model.setGeometry(ya[ua],Ka))}}}}var Ua=z.apply(this,arguments);for(da=0;da<fa.length;da++)!F&&this.model.contains(fa[da])&&0==this.model.getChildCount(fa[da])&&this.model.remove(fa[da]);F&&this.updateCustomLinks(this.createCellMapping(X,this.createCellLookup(q)),Ua)}finally{this.model.endUpdate()}return Ua};var C=Graph.prototype.removeCells;Graph.prototype.removeCells=function(q,
+A){var B=[];this.model.beginUpdate();try{for(var F=0;F<q.length;F++)if(this.isTableCell(q[F])){var N=this.model.getParent(q[F]),R=this.model.getParent(N);1==this.model.getChildCount(N)&&1==this.model.getChildCount(R)?0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R)&&B.push(R):this.labelChanged(q[F],"")}else{if(this.isTableRow(q[F])&&(R=this.model.getParent(q[F]),0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R))){for(var X=this.model.getChildCells(R,!0),fa=0,da=0;da<X.length;da++)0<=mxUtils.indexOf(q,
+X[da])&&fa++;fa==X.length&&B.push(R)}B.push(q[F])}B=C.apply(this,[B,A])}finally{this.model.endUpdate()}return B};Graph.prototype.updateCustomLinks=function(q,A,B){B=null!=B?B:new Graph;for(var F=0;F<A.length;F++)null!=A[F]&&B.updateCustomLinksForCell(q,A[F],B)};Graph.prototype.updateCustomLinksForCell=function(q,A){this.doUpdateCustomLinksForCell(q,A);for(var B=this.model.getChildCount(A),F=0;F<B;F++)this.updateCustomLinksForCell(q,this.model.getChildAt(A,F))};Graph.prototype.doUpdateCustomLinksForCell=
+function(q,A){};Graph.prototype.getAllConnectionConstraints=function(q,A){if(null!=q){A=mxUtils.getValue(q.style,"points",null);if(null!=A){q=[];try{var B=JSON.parse(A);for(A=0;A<B.length;A++){var F=B[A];q.push(new mxConnectionConstraint(new mxPoint(F[0],F[1]),2<F.length?"0"!=F[2]:!0,null,3<F.length?F[3]:0,4<F.length?F[4]:0))}}catch(R){}return q}if(null!=q.shape&&null!=q.shape.bounds){F=q.shape.direction;A=q.shape.bounds;var N=q.shape.scale;B=A.width/N;A=A.height/N;if(F==mxConstants.DIRECTION_NORTH||
+F==mxConstants.DIRECTION_SOUTH)F=B,B=A,A=F;A=q.shape.getConstraints(q.style,B,A);if(null!=A)return A;if(null!=q.shape.stencil&&null!=q.shape.stencil.constraints)return q.shape.stencil.constraints;if(null!=q.shape.constraints)return q.shape.constraints}}return null};Graph.prototype.flipEdge=function(q){if(null!=q){var A=this.getCurrentCellStyle(q);A=mxUtils.getValue(A,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;
+this.setCellStyles(mxConstants.STYLE_ELBOW,A,[q])}};Graph.prototype.isValidRoot=function(q){for(var A=this.model.getChildCount(q),B=0,F=0;F<A;F++){var N=this.model.getChildAt(q,F);this.model.isVertex(N)&&(N=this.getCellGeometry(N),null==N||N.relative||B++)}return 0<B||this.isContainer(q)};Graph.prototype.isValidDropTarget=function(q,A,B){for(var F=this.getCurrentCellStyle(q),N=!0,R=!0,X=0;X<A.length&&R;X++)N=N&&this.isTable(A[X]),R=R&&this.isTableRow(A[X]);return!this.isCellLocked(q)&&(this.isTargetShape(q,
+A,B)||("1"!=mxUtils.getValue(F,"part","0")||this.isContainer(q))&&"0"!=mxUtils.getValue(F,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(q))&&!this.isTableRow(q)&&(!this.isTable(q)||R||N))};Graph.prototype.createGroupCell=function(){var q=mxGraph.prototype.createGroupCell.apply(this,arguments);q.setStyle("group");return q};Graph.prototype.isExtendParentsOnAdd=function(q){var A=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(A&&null!=
+q&&null!=this.layoutManager){var B=this.model.getParent(q);null!=B&&(B=this.layoutManager.getLayout(B),null!=B&&B.constructor==mxStackLayout&&(A=!1))}return A};Graph.prototype.getPreferredSizeForCell=function(q,A,B){B=null!=B?B:this.gridEnabled;var F=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=F&&(F.width+=10,F.height+=4,B&&(F.width=this.snap(F.width),F.height=this.snap(F.height)));return F};Graph.prototype.turnShapes=function(q,A){var B=this.getModel(),F=[];B.beginUpdate();
+try{for(var N=0;N<q.length;N++){var R=q[N];if(B.isEdge(R)){var X=B.getTerminal(R,!0),fa=B.getTerminal(R,!1);B.setTerminal(R,fa,!0);B.setTerminal(R,X,!1);var da=B.getGeometry(R);if(null!=da){da=da.clone();null!=da.points&&da.points.reverse();var ha=da.getTerminalPoint(!0),va=da.getTerminalPoint(!1);da.setTerminalPoint(ha,!1);da.setTerminalPoint(va,!0);B.setGeometry(R,da);var Ma=this.view.getState(R),Na=this.view.getState(X),ya=this.view.getState(fa);if(null!=Ma){var Ga=null!=Na?this.getConnectionConstraint(Ma,
+Na,!0):null,wa=null!=ya?this.getConnectionConstraint(Ma,ya,!1):null;this.setConnectionConstraint(R,X,!0,wa);this.setConnectionConstraint(R,fa,!1,Ga);var ua=mxUtils.getValue(Ma.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(Ma.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[R]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,ua,[R])}F.push(R)}}else if(B.isVertex(R)&&(da=this.getCellGeometry(R),null!=
da)){if(!(this.isTable(R)||this.isTableRow(R)||this.isTableCell(R)||this.isSwimlane(R))){da=da.clone();da.x+=da.width/2-da.height/2;da.y+=da.height/2-da.width/2;var Va=da.width;da.width=da.height;da.height=Va;B.setGeometry(R,da)}var Qa=this.view.getState(R);if(null!=Qa){var Ka=[mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_NORTH],Ua=mxUtils.getValue(Qa.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);this.setCellStyles(mxConstants.STYLE_DIRECTION,
-Ka[mxUtils.mod(mxUtils.indexOf(Ka,Ua)+(A?-1:1),Ka.length)],[R])}F.push(R)}}}finally{B.endUpdate()}return F};Graph.prototype.stencilHasPlaceholders=function(p){if(null!=p&&null!=p.fgNode)for(p=p.fgNode.firstChild;null!=p;){if("text"==p.nodeName&&"1"==p.getAttribute("placeholders"))return!0;p=p.nextSibling}return!1};var E=Graph.prototype.processChange;Graph.prototype.processChange=function(p){if(p instanceof mxGeometryChange&&(this.isTableCell(p.cell)||this.isTableRow(p.cell))&&(null==p.previous&&null!=
-p.geometry||null!=p.previous&&!p.previous.equals(p.geometry))){var A=p.cell;this.isTableCell(A)&&(A=this.model.getParent(A));this.isTableRow(A)&&(A=this.model.getParent(A));var B=this.view.getState(A);null!=B&&null!=B.shape&&(this.view.invalidate(A),B.shape.bounds=null)}E.apply(this,arguments);p instanceof mxValueChange&&null!=p.cell&&null!=p.cell.value&&"object"==typeof p.cell.value&&this.invalidateDescendantsWithPlaceholders(p.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(p){p=
-this.model.getDescendants(p);if(0<p.length)for(var A=0;A<p.length;A++){var B=this.view.getState(p[A]);null!=B&&null!=B.shape&&null!=B.shape.stencil&&this.stencilHasPlaceholders(B.shape.stencil)?this.removeStateForCell(p[A]):this.isReplacePlaceholders(p[A])&&this.view.invalidate(p[A],!1,!1)}};Graph.prototype.replaceElement=function(p,A){A=p.ownerDocument.createElement(null!=A?A:"span");for(var B=Array.prototype.slice.call(p.attributes);attr=B.pop();)A.setAttribute(attr.nodeName,attr.nodeValue);A.innerHTML=
-p.innerHTML;p.parentNode.replaceChild(A,p)};Graph.prototype.processElements=function(p,A){if(null!=p){p=p.getElementsByTagName("*");for(var B=0;B<p.length;B++)null!=p[B]&&A(p[B])}};Graph.prototype.updateLabelElements=function(p,A,B){p=null!=p?p:this.getSelectionCells();for(var F=document.createElement("div"),N=0;N<p.length;N++){var R=this.getCurrentCellStyle(p[N]);if(null!=R&&"1"==R.html&&(R=this.convertValueToString(p[N]),null!=R&&0<R.length)){F.innerHTML=Graph.sanitizeHtml(R);for(var X=F.getElementsByTagName(null!=
-B?B:"*"),fa=0;fa<X.length;fa++)A(X[fa]);F.innerHTML!=R&&this.cellLabelChanged(p[N],F.innerHTML)}}};Graph.prototype.cellLabelChanged=function(p,A,B){A=Graph.zapGremlins(A);this.model.beginUpdate();try{if(null!=p.value&&"object"==typeof p.value){if(this.isReplacePlaceholders(p)&&null!=p.getAttribute("placeholder"))for(var F=p.getAttribute("placeholder"),N=p;null!=N;){if(N==this.model.getRoot()||null!=N.value&&"object"==typeof N.value&&N.hasAttribute(F)){this.setAttributeForCell(N,F,A);break}N=this.model.getParent(N)}var R=
-p.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&R.hasAttribute("label_"+Graph.diagramLanguage)?R.setAttribute("label_"+Graph.diagramLanguage,A):R.setAttribute("label",A);A=R}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(p){if(null!=p){for(var A=new mxDictionary,B=0;B<p.length;B++)A.put(p[B],!0);var F=[];for(B=0;B<p.length;B++){var N=this.model.getParent(p[B]);null==N||A.get(N)||(A.put(N,!0),
-F.push(N))}for(B=0;B<F.length;B++)if(N=this.view.getState(F[B]),null!=N&&(this.model.isEdge(N.cell)||this.model.isVertex(N.cell))&&this.isCellDeletable(N.cell)&&this.isTransparentState(N)){for(var R=!0,X=0;X<this.model.getChildCount(N.cell)&&R;X++)A.get(this.model.getChildAt(N.cell,X))||(R=!1);R&&p.push(N.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(p){for(var A=[],B=0;B<p.length;B++)this.isCellDeletable(p[B])&&this.isTransparentState(this.view.getState(p[B]))&&
-A.push(p[B]);p=A;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(p,A){this.setAttributeForCell(p,"link",A)};Graph.prototype.setTooltipForCell=function(p,A){var B="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(p.value)&&p.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(B="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(p,B,A)};Graph.prototype.getAttributeForCell=function(p,A,B){p=null!=p.value&&
-"object"===typeof p.value?p.value.getAttribute(A):null;return null!=p?p:B};Graph.prototype.setAttributeForCell=function(p,A,B){if(null!=p.value&&"object"==typeof p.value)var F=p.value.cloneNode(!0);else F=mxUtils.createXmlDocument().createElement("UserObject"),F.setAttribute("label",p.value||"");null!=B?F.setAttribute(A,B):F.removeAttribute(A);this.model.setValue(p,F)};Graph.prototype.isTargetShape=function(p,A,B){p=mxUtils.getValue(this.getCurrentCellStyle(p),mxConstants.STYLE_SHAPE,"");for(B=0;B<
-A.length;B++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[B]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,p))return!0}return!1};var D=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(p,A,B,F){if(mxEvent.isAltDown(A))return null;for(var N=0;N<p.length;N++){var R=this.model.getParent(p[N]);if(this.model.isEdge(R)&&0>mxUtils.indexOf(p,R))return null}R=D.apply(this,arguments);var X=!0;for(N=0;N<p.length&&X;N++)X=X&&this.isTableRow(p[N]);X&&(this.isTableCell(R)&&(R=
-this.model.getParent(R)),this.isTableRow(R)&&(R=this.model.getParent(R)),this.isTable(R)||(R=null));return R};Graph.prototype.click=function(p){mxGraph.prototype.click.call(this,p);this.firstClickState=p.getState();this.firstClickSource=p.getSource()};Graph.prototype.dblClick=function(p,A){this.isEnabled()&&(A=this.insertTextForEvent(p,A),mxGraph.prototype.dblClick.call(this,p,A))};Graph.prototype.insertTextForEvent=function(p,A){var B=mxUtils.convertPoint(this.container,mxEvent.getClientX(p),mxEvent.getClientY(p));
-if(null!=p&&!this.model.isVertex(A)){var F=this.model.isEdge(A)?this.view.getState(A):null,N=mxEvent.getSource(p);this.firstClickState!=F||this.firstClickSource!=N||null!=F&&null!=F.text&&null!=F.text.node&&null!=F.text.boundingBox&&(mxUtils.contains(F.text.boundingBox,B.x,B.y)||mxUtils.isAncestorNode(F.text.node,mxEvent.getSource(p)))||(null!=F||this.isCellLocked(this.getDefaultParent()))&&(null==F||this.isCellLocked(F.cell))||!(null!=F||mxClient.IS_SVG&&N==this.view.getCanvas().ownerSVGElement)||
-(null==F&&(F=this.view.getState(this.getCellAt(B.x,B.y))),A=this.addText(B.x,B.y,F))}return A};Graph.prototype.getInsertPoint=function(){var p=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,B=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),N=this.getPageSize();A=Math.max(A,F.x*N.width);B=Math.max(B,F.y*N.height)}return new mxPoint(this.snap(A+p),this.snap(B+p))};Graph.prototype.getFreeInsertPoint=
-function(){var p=this.view,A=this.getGraphBounds(),B=this.getInsertPoint(),F=this.snap(Math.round(Math.max(B.x,A.x/p.scale-p.translate.x+(0==A.width?2*this.gridSize:0))));p=this.snap(Math.round(Math.max(B.y,(A.y+A.height)/p.scale-p.translate.y+2*this.gridSize)));return new mxPoint(F,p)};Graph.prototype.getCenterInsertPoint=function(p){p=null!=p?p:new mxRectangle;return mxUtils.hasScrollbars(this.container)?new mxPoint(this.snap(Math.round((this.container.scrollLeft+this.container.clientWidth/2)/this.view.scale-
-this.view.translate.x-p.width/2)),this.snap(Math.round((this.container.scrollTop+this.container.clientHeight/2)/this.view.scale-this.view.translate.y-p.height/2))):new mxPoint(this.snap(Math.round(this.container.clientWidth/2/this.view.scale-this.view.translate.x-p.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-p.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.appendFontSize=function(p,A){p=null!=p?p:"";null!=
-A&&(0<p.length&&";"!=p.charAt(p.length-1)&&(p+=";"),p+="fontSize="+A+";");return p};Graph.prototype.addText=function(p,A,B){var F=new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=B&&this.model.isEdge(B.cell)){F.style="edgeLabel;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.edgeFontSize);F.geometry.relative=!0;F.connectable=!1;var N=this.view.getRelativePoint(B,p,A);F.geometry.x=Math.round(1E4*N.x)/1E4;F.geometry.y=Math.round(N.y);
-F.geometry.offset=new mxPoint(0,0);N=this.view.getPoint(B,F.geometry);var R=this.view.scale;F.geometry.offset=new mxPoint(Math.round((p-N.x)/R),Math.round((A-N.y)/R))}else N=this.view.translate,F.style="text;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.vertexFontSize),F.geometry.width=40,F.geometry.height=20,F.geometry.x=Math.round(p/this.view.scale)-N.x-(null!=B?B.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-N.y-(null!=B?B.origin.y:0),F.style+=
-"autosize=1;";this.getModel().beginUpdate();try{this.addCells([F],null!=B?B.cell:null),this.fireEvent(new mxEventObject("textInserted","cells",[F])),this.autoSizeCell(F)}finally{this.getModel().endUpdate()}return F};Graph.prototype.addClickHandler=function(p,A,B){var F=mxUtils.bind(this,function(){var da=this.container.getElementsByTagName("a");if(null!=da)for(var ha=0;ha<da.length;ha++){var wa=this.getAbsoluteUrl(da[ha].getAttribute("href"));null!=wa&&(da[ha].setAttribute("rel",this.linkRelation),
-da[ha].setAttribute("href",wa),null!=A&&mxEvent.addGestureListeners(da[ha],null,null,A))}});this.model.addListener(mxEvent.CHANGE,F);F();var N=this.container.style.cursor,R=this.getTolerance(),X=this,fa={currentState:null,currentLink:null,currentTarget:null,highlight:null!=p&&""!=p&&p!=mxConstants.NONE?new mxCellHighlight(X,p,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(da){var ha=da.sourceState;if(null==ha||null==X.getLinkForCell(ha.cell))da=X.getCellAt(da.getGraphX(),
-da.getGraphY(),null,null,null,function(wa,Ma,Na){return null==X.getLinkForCell(wa.cell)}),ha=null==ha||X.model.isAncestor(da,ha.cell)?X.view.getState(da):null;ha!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=ha,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(da,ha){this.startX=ha.getGraphX();this.startY=ha.getGraphY();this.scrollLeft=X.container.scrollLeft;this.scrollTop=X.container.scrollTop;null==this.currentLink&&"auto"==X.container.style.overflow&&
+Ka[mxUtils.mod(mxUtils.indexOf(Ka,Ua)+(A?-1:1),Ka.length)],[R])}F.push(R)}}}finally{B.endUpdate()}return F};Graph.prototype.stencilHasPlaceholders=function(q){if(null!=q&&null!=q.fgNode)for(q=q.fgNode.firstChild;null!=q;){if("text"==q.nodeName&&"1"==q.getAttribute("placeholders"))return!0;q=q.nextSibling}return!1};var E=Graph.prototype.processChange;Graph.prototype.processChange=function(q){if(q instanceof mxGeometryChange&&(this.isTableCell(q.cell)||this.isTableRow(q.cell))&&(null==q.previous&&null!=
+q.geometry||null!=q.previous&&!q.previous.equals(q.geometry))){var A=q.cell;this.isTableCell(A)&&(A=this.model.getParent(A));this.isTableRow(A)&&(A=this.model.getParent(A));var B=this.view.getState(A);null!=B&&null!=B.shape&&(this.view.invalidate(A),B.shape.bounds=null)}E.apply(this,arguments);q instanceof mxValueChange&&null!=q.cell&&null!=q.cell.value&&"object"==typeof q.cell.value&&this.invalidateDescendantsWithPlaceholders(q.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(q){q=
+this.model.getDescendants(q);if(0<q.length)for(var A=0;A<q.length;A++){var B=this.view.getState(q[A]);null!=B&&null!=B.shape&&null!=B.shape.stencil&&this.stencilHasPlaceholders(B.shape.stencil)?this.removeStateForCell(q[A]):this.isReplacePlaceholders(q[A])&&this.view.invalidate(q[A],!1,!1)}};Graph.prototype.replaceElement=function(q,A){A=q.ownerDocument.createElement(null!=A?A:"span");for(var B=Array.prototype.slice.call(q.attributes);attr=B.pop();)A.setAttribute(attr.nodeName,attr.nodeValue);A.innerHTML=
+q.innerHTML;q.parentNode.replaceChild(A,q)};Graph.prototype.processElements=function(q,A){if(null!=q){q=q.getElementsByTagName("*");for(var B=0;B<q.length;B++)null!=q[B]&&A(q[B])}};Graph.prototype.updateLabelElements=function(q,A,B){q=null!=q?q:this.getSelectionCells();for(var F=document.createElement("div"),N=0;N<q.length;N++){var R=this.getCurrentCellStyle(q[N]);if(null!=R&&"1"==R.html&&(R=this.convertValueToString(q[N]),null!=R&&0<R.length)){F.innerHTML=Graph.sanitizeHtml(R);for(var X=F.getElementsByTagName(null!=
+B?B:"*"),fa=0;fa<X.length;fa++)A(X[fa]);F.innerHTML!=R&&this.cellLabelChanged(q[N],F.innerHTML)}}};Graph.prototype.cellLabelChanged=function(q,A,B){A=Graph.zapGremlins(A);this.model.beginUpdate();try{if(null!=q.value&&"object"==typeof q.value){if(this.isReplacePlaceholders(q)&&null!=q.getAttribute("placeholder"))for(var F=q.getAttribute("placeholder"),N=q;null!=N;){if(N==this.model.getRoot()||null!=N.value&&"object"==typeof N.value&&N.hasAttribute(F)){this.setAttributeForCell(N,F,A);break}N=this.model.getParent(N)}var R=
+q.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&R.hasAttribute("label_"+Graph.diagramLanguage)?R.setAttribute("label_"+Graph.diagramLanguage,A):R.setAttribute("label",A);A=R}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(q){if(null!=q){for(var A=new mxDictionary,B=0;B<q.length;B++)A.put(q[B],!0);var F=[];for(B=0;B<q.length;B++){var N=this.model.getParent(q[B]);null==N||A.get(N)||(A.put(N,!0),
+F.push(N))}for(B=0;B<F.length;B++)if(N=this.view.getState(F[B]),null!=N&&(this.model.isEdge(N.cell)||this.model.isVertex(N.cell))&&this.isCellDeletable(N.cell)&&this.isTransparentState(N)){for(var R=!0,X=0;X<this.model.getChildCount(N.cell)&&R;X++)A.get(this.model.getChildAt(N.cell,X))||(R=!1);R&&q.push(N.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(q){for(var A=[],B=0;B<q.length;B++)this.isCellDeletable(q[B])&&this.isTransparentState(this.view.getState(q[B]))&&
+A.push(q[B]);q=A;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(q,A){this.setAttributeForCell(q,"link",A)};Graph.prototype.setTooltipForCell=function(q,A){var B="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(q.value)&&q.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(B="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(q,B,A)};Graph.prototype.getAttributeForCell=function(q,A,B){q=null!=q.value&&
+"object"===typeof q.value?q.value.getAttribute(A):null;return null!=q?q:B};Graph.prototype.setAttributeForCell=function(q,A,B){if(null!=q.value&&"object"==typeof q.value)var F=q.value.cloneNode(!0);else F=mxUtils.createXmlDocument().createElement("UserObject"),F.setAttribute("label",q.value||"");null!=B?F.setAttribute(A,B):F.removeAttribute(A);this.model.setValue(q,F)};Graph.prototype.isTargetShape=function(q,A,B){q=mxUtils.getValue(this.getCurrentCellStyle(q),mxConstants.STYLE_SHAPE,"");for(B=0;B<
+A.length;B++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[B]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,q))return!0}return!1};var D=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(q,A,B,F){if(mxEvent.isAltDown(A))return null;for(var N=0;N<q.length;N++){var R=this.model.getParent(q[N]);if(this.model.isEdge(R)&&0>mxUtils.indexOf(q,R))return null}R=D.apply(this,arguments);var X=!0;for(N=0;N<q.length&&X;N++)X=X&&this.isTableRow(q[N]);X&&(this.isTableCell(R)&&(R=
+this.model.getParent(R)),this.isTableRow(R)&&(R=this.model.getParent(R)),this.isTable(R)||(R=null));return R};Graph.prototype.click=function(q){mxGraph.prototype.click.call(this,q);this.firstClickState=q.getState();this.firstClickSource=q.getSource()};Graph.prototype.dblClick=function(q,A){this.isEnabled()&&(A=this.insertTextForEvent(q,A),mxGraph.prototype.dblClick.call(this,q,A))};Graph.prototype.insertTextForEvent=function(q,A){var B=mxUtils.convertPoint(this.container,mxEvent.getClientX(q),mxEvent.getClientY(q));
+if(null!=q&&!this.model.isVertex(A)){var F=this.model.isEdge(A)?this.view.getState(A):null,N=mxEvent.getSource(q);this.firstClickState!=F||this.firstClickSource!=N||null!=F&&null!=F.text&&null!=F.text.node&&null!=F.text.boundingBox&&(mxUtils.contains(F.text.boundingBox,B.x,B.y)||mxUtils.isAncestorNode(F.text.node,mxEvent.getSource(q)))||(null!=F||this.isCellLocked(this.getDefaultParent()))&&(null==F||this.isCellLocked(F.cell))||!(null!=F||mxClient.IS_SVG&&N==this.view.getCanvas().ownerSVGElement)||
+(null==F&&(F=this.view.getState(this.getCellAt(B.x,B.y))),A=this.addText(B.x,B.y,F))}return A};Graph.prototype.getInsertPoint=function(){var q=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,B=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),N=this.getPageSize();A=Math.max(A,F.x*N.width);B=Math.max(B,F.y*N.height)}return new mxPoint(this.snap(A+q),this.snap(B+q))};Graph.prototype.getFreeInsertPoint=
+function(){var q=this.view,A=this.getGraphBounds(),B=this.getInsertPoint(),F=this.snap(Math.round(Math.max(B.x,A.x/q.scale-q.translate.x+(0==A.width?2*this.gridSize:0))));q=this.snap(Math.round(Math.max(B.y,(A.y+A.height)/q.scale-q.translate.y+2*this.gridSize)));return new mxPoint(F,q)};Graph.prototype.getCenterInsertPoint=function(q){q=null!=q?q:new mxRectangle;return mxUtils.hasScrollbars(this.container)?new mxPoint(this.snap(Math.round((this.container.scrollLeft+this.container.clientWidth/2)/this.view.scale-
+this.view.translate.x-q.width/2)),this.snap(Math.round((this.container.scrollTop+this.container.clientHeight/2)/this.view.scale-this.view.translate.y-q.height/2))):new mxPoint(this.snap(Math.round(this.container.clientWidth/2/this.view.scale-this.view.translate.x-q.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-q.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.appendFontSize=function(q,A){q=null!=q?q:"";null!=
+A&&(0<q.length&&";"!=q.charAt(q.length-1)&&(q+=";"),q+="fontSize="+A+";");return q};Graph.prototype.addText=function(q,A,B){var F=new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=B&&this.model.isEdge(B.cell)){F.style="edgeLabel;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.edgeFontSize);F.geometry.relative=!0;F.connectable=!1;var N=this.view.getRelativePoint(B,q,A);F.geometry.x=Math.round(1E4*N.x)/1E4;F.geometry.y=Math.round(N.y);
+F.geometry.offset=new mxPoint(0,0);N=this.view.getPoint(B,F.geometry);var R=this.view.scale;F.geometry.offset=new mxPoint(Math.round((q-N.x)/R),Math.round((A-N.y)/R))}else N=this.view.translate,F.style="text;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.vertexFontSize),F.geometry.width=40,F.geometry.height=20,F.geometry.x=Math.round(q/this.view.scale)-N.x-(null!=B?B.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-N.y-(null!=B?B.origin.y:0),F.style+=
+"autosize=1;";this.getModel().beginUpdate();try{this.addCells([F],null!=B?B.cell:null),this.fireEvent(new mxEventObject("textInserted","cells",[F])),this.autoSizeCell(F)}finally{this.getModel().endUpdate()}return F};Graph.prototype.addClickHandler=function(q,A,B){var F=mxUtils.bind(this,function(){var da=this.container.getElementsByTagName("a");if(null!=da)for(var ha=0;ha<da.length;ha++){var va=this.getAbsoluteUrl(da[ha].getAttribute("href"));null!=va&&(da[ha].setAttribute("rel",this.linkRelation),
+da[ha].setAttribute("href",va),null!=A&&mxEvent.addGestureListeners(da[ha],null,null,A))}});this.model.addListener(mxEvent.CHANGE,F);F();var N=this.container.style.cursor,R=this.getTolerance(),X=this,fa={currentState:null,currentLink:null,currentTarget:null,highlight:null!=q&&""!=q&&q!=mxConstants.NONE?new mxCellHighlight(X,q,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(da){var ha=da.sourceState;if(null==ha||null==X.getLinkForCell(ha.cell))da=X.getCellAt(da.getGraphX(),
+da.getGraphY(),null,null,null,function(va,Ma,Na){return null==X.getLinkForCell(va.cell)}),ha=null==ha||X.model.isAncestor(da,ha.cell)?X.view.getState(da):null;ha!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=ha,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(da,ha){this.startX=ha.getGraphX();this.startY=ha.getGraphY();this.scrollLeft=X.container.scrollLeft;this.scrollTop=X.container.scrollTop;null==this.currentLink&&"auto"==X.container.style.overflow&&
(X.container.style.cursor="move");this.updateCurrentState(ha)},mouseMove:function(da,ha){if(X.isMouseDown)null!=this.currentLink&&(da=Math.abs(this.startX-ha.getGraphX()),ha=Math.abs(this.startY-ha.getGraphY()),(da>R||ha>R)&&this.clear());else{for(da=ha.getSource();null!=da&&"a"!=da.nodeName.toLowerCase();)da=da.parentNode;null!=da?this.clear():(null!=X.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&X.tooltipHandler.reset(ha,!0,this.currentState),(null==this.currentState||ha.getState()!=
-this.currentState&&null!=ha.sourceState||!X.intersects(this.currentState,ha.getGraphX(),ha.getGraphY()))&&this.updateCurrentState(ha))}},mouseUp:function(da,ha){var wa=ha.getSource();for(da=ha.getEvent();null!=wa&&"a"!=wa.nodeName.toLowerCase();)wa=wa.parentNode;null==wa&&Math.abs(this.scrollLeft-X.container.scrollLeft)<R&&Math.abs(this.scrollTop-X.container.scrollTop)<R&&(null==ha.sourceState||!ha.isSource(ha.sourceState.control))&&((mxEvent.isLeftMouseButton(da)||mxEvent.isMiddleMouseButton(da))&&
-!mxEvent.isPopupTrigger(da)||mxEvent.isTouchEvent(da))&&(null!=this.currentLink?(wa=X.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,5)&&wa||null==A||A(da,this.currentLink,null!=this.currentState?this.currentState.cell:null),mxEvent.isConsumed(da)||(da=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(da)?"_blank":wa?X.linkTarget:"_top",X.openLink(this.currentLink,da),ha.consume())):null!=B&&!ha.isConsumed()&&Math.abs(this.scrollLeft-X.container.scrollLeft)<
+this.currentState&&null!=ha.sourceState||!X.intersects(this.currentState,ha.getGraphX(),ha.getGraphY()))&&this.updateCurrentState(ha))}},mouseUp:function(da,ha){var va=ha.getSource();for(da=ha.getEvent();null!=va&&"a"!=va.nodeName.toLowerCase();)va=va.parentNode;null==va&&Math.abs(this.scrollLeft-X.container.scrollLeft)<R&&Math.abs(this.scrollTop-X.container.scrollTop)<R&&(null==ha.sourceState||!ha.isSource(ha.sourceState.control))&&((mxEvent.isLeftMouseButton(da)||mxEvent.isMiddleMouseButton(da))&&
+!mxEvent.isPopupTrigger(da)||mxEvent.isTouchEvent(da))&&(null!=this.currentLink?(va=X.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,5)&&va||null==A||A(da,this.currentLink,null!=this.currentState?this.currentState.cell:null),mxEvent.isConsumed(da)||(da=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(da)?"_blank":va?X.linkTarget:"_top",X.openLink(this.currentLink,da),ha.consume())):null!=B&&!ha.isConsumed()&&Math.abs(this.scrollLeft-X.container.scrollLeft)<
R&&Math.abs(this.scrollTop-X.container.scrollTop)<R&&Math.abs(this.startX-ha.getGraphX())<R&&Math.abs(this.startY-ha.getGraphY())<R&&B(ha.getEvent()));this.clear()},activate:function(da){this.currentLink=X.getAbsoluteUrl(X.getLinkForCell(da.cell));null!=this.currentLink&&(this.currentTarget=X.getLinkTargetForCell(da.cell),X.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(da))},clear:function(){null!=X.container&&(X.container.style.cursor=N);this.currentLink=this.currentState=
-this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=X.tooltipHandler&&X.tooltipHandler.hide()}};X.click=function(da){};X.addMouseListener(fa);mxEvent.addListener(document,"mouseleave",function(da){fa.clear()})};Graph.prototype.duplicateCells=function(p,A){p=null!=p?p:this.getSelectionCells();A=null!=A?A:!0;for(var B=0;B<p.length;B++)this.isTableCell(p[B])&&(p[B]=this.model.getParent(p[B]));p=this.model.getTopmostCells(p);var F=this.getModel(),N=this.gridSize,R=[];F.beginUpdate();
-try{var X={},fa=this.createCellLookup(p),da=this.cloneCells(p,!1,X,!0);for(B=0;B<p.length;B++){var ha=F.getParent(p[B]);if(null!=ha){var wa=this.moveCells([da[B]],N,N,!1)[0];R.push(wa);if(A)F.add(ha,da[B]);else{var Ma=ha.getIndex(p[B]);F.add(ha,da[B],Ma+1)}if(this.isTable(ha)){var Na=this.getCellGeometry(da[B]),ya=this.getCellGeometry(ha);null!=Na&&null!=ya&&(ya=ya.clone(),ya.height+=Na.height,F.setGeometry(ha,ya))}}else R.push(da[B])}this.updateCustomLinks(this.createCellMapping(X,fa),da,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,
-"cells",da))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(p,A,B){if(null!=p&&null!=this.cellEditor.textarea){for(var F=this.cellEditor.textarea.getElementsByTagName("img"),N=[],R=0;R<F.length;R++)N.push(F[R]);document.execCommand("insertimage",!1,p);p=this.cellEditor.textarea.getElementsByTagName("img");if(p.length==N.length+1)for(R=p.length-1;0<=R;R--)if(0==R||p[R]!=N[R-1]){p[R].setAttribute("width",A);p[R].setAttribute("height",B);break}}};Graph.prototype.insertLink=function(p){if(null!=
-this.cellEditor.textarea)if(0==p.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var A=this.cellEditor.textarea.getElementsByTagName("a"),B=[],F=0;F<A.length;F++)B.push(A[F]);document.execCommand("createlink",!1,mxUtils.trim(p));A=this.cellEditor.textarea.getElementsByTagName("a");if(A.length==B.length+1)for(F=A.length-1;0<=F;F--)if(A[F]!=B[F-1]){for(A=A[F].getElementsByTagName("a");0<A.length;){for(B=A[0].parentNode;null!=A[0].firstChild;)B.insertBefore(A[0].firstChild,A[0]);
-B.removeChild(A[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(p))};Graph.prototype.isCellResizable=function(p){var A=mxGraph.prototype.isCellResizable.apply(this,arguments),B=this.getCurrentCellStyle(p);return!this.isTableCell(p)&&!this.isTableRow(p)&&(A||"0"!=mxUtils.getValue(B,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==B[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(p,A,B){null==A&&(A=this.getSelectionCells());if(null!=A&&1<A.length){for(var F=[],N=
-null,R=null,X=0,fa=0;fa<A.length;fa++)if(this.getModel().isVertex(A[fa])){var da=this.view.getState(A[fa]);if(null!=da){var ha=p?da.getCenterX():da.getCenterY();N=null!=N?Math.max(N,ha):ha;R=null!=R?Math.min(R,ha):ha;B&&(X+=p?da.width:da.height);F.push(da)}}if(2<F.length){F.sort(function(za,va){return p?za.x-va.x:za.y-va.y});B&&(X-=p?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);da=this.view.translate;ha=this.view.scale;R=R/ha-(p?da.x:da.y);N=N/ha-(p?da.x:da.y);this.getModel().beginUpdate();
-try{var wa=(N-R-X)/(F.length-1),Ma=R+(B?p?F[0].width/2:F[0].height/2:0);for(fa=1;fa<F.length-1;fa++){var Na=this.view.getState(this.model.getParent(F[fa].cell)),ya=this.getCellGeometry(F[fa].cell);Ma+=wa;null!=ya&&null!=Na&&(ya=ya.clone(),p?ya.x=Math.round(Ma-(B?0:ya.width/2))-Na.origin.x:ya.y=Math.round(Ma-(B?0:ya.height/2))-Na.origin.y,this.getModel().setGeometry(F[fa].cell,ya));B&&(Ma+=p?F[fa].width:F[fa].height)}}finally{this.getModel().endUpdate()}}}return A};Graph.prototype.isCloneEvent=function(p){return mxClient.IS_MAC&&
-mxEvent.isMetaDown(p)||mxEvent.isControlDown(p)};Graph.prototype.createSvgImageExport=function(p){p=new mxImageExport;p.addCellData=function(B,F,N){F.setAttribute("data-cell-id",B.id);if(N)if(mxUtils.isNode(B.value))for(N=0;N<B.value.attributes.length;N++){var R=B.value.attributes[N];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof B.value)for(R in B.value)F.setAttribute("data-cell-"+R,B.value[R]);else null!=B.value&&F.setAttribute("data-cell-value",B.value);return F};var A=p.visitStatesRecursive;
-p.visitStatesRecursive=function(B,F,N){if(null!=B){var R=F.root,X=F.root.ownerDocument;F.root=this.addCellData(B.cell,null!=X.createElementNS?X.createElementNS(mxConstants.NS_SVG,"g"):X.createElement("g"),Editor.addSvgMetadata);R.appendChild(F.root);A.apply(this,arguments);F.root=R}};p.getLinkForCellState=mxUtils.bind(this,function(B,F){return this.getLinkForCell(B.cell)});p.getTitleForCellState=mxUtils.bind(this,function(B,F){return Editor.convertHtmlToText(this.convertValueToTooltip(B.cell))});
-return p};Graph.prototype.parseBackgroundImage=function(p){var A=null;null!=p&&0<p.length&&(p=JSON.parse(p),A=new mxImage(p.src,p.width,p.height));return A};Graph.prototype.getBackgroundImageObject=function(p){return p};Graph.prototype.getSvg=function(p,A,B,F,N,R,X,fa,da,ha,wa,Ma,Na,ya,za,va){var ua=null;if(null!=ya)for(ua=new mxDictionary,wa=0;wa<ya.length;wa++)ua.put(ya[wa],!0);ya=this.useCssTransforms;var Va=this.enableFlowAnimation;this.enableFlowAnimation=!1;ya&&(this.useCssTransforms=!1,this.view.revalidate(),
+this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=X.tooltipHandler&&X.tooltipHandler.hide()}};X.click=function(da){};X.addMouseListener(fa);mxEvent.addListener(document,"mouseleave",function(da){fa.clear()})};Graph.prototype.duplicateCells=function(q,A){q=null!=q?q:this.getSelectionCells();A=null!=A?A:!0;for(var B=0;B<q.length;B++)this.isTableCell(q[B])&&(q[B]=this.model.getParent(q[B]));q=this.model.getTopmostCells(q);var F=this.getModel(),N=this.gridSize,R=[];F.beginUpdate();
+try{var X={},fa=this.createCellLookup(q),da=this.cloneCells(q,!1,X,!0);for(B=0;B<q.length;B++){var ha=F.getParent(q[B]);if(null!=ha){var va=this.moveCells([da[B]],N,N,!1)[0];R.push(va);if(A)F.add(ha,da[B]);else{var Ma=ha.getIndex(q[B]);F.add(ha,da[B],Ma+1)}if(this.isTable(ha)){var Na=this.getCellGeometry(da[B]),ya=this.getCellGeometry(ha);null!=Na&&null!=ya&&(ya=ya.clone(),ya.height+=Na.height,F.setGeometry(ha,ya))}}else R.push(da[B])}this.updateCustomLinks(this.createCellMapping(X,fa),da,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,
+"cells",da))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(q,A,B){if(null!=q&&null!=this.cellEditor.textarea){for(var F=this.cellEditor.textarea.getElementsByTagName("img"),N=[],R=0;R<F.length;R++)N.push(F[R]);document.execCommand("insertimage",!1,q);q=this.cellEditor.textarea.getElementsByTagName("img");if(q.length==N.length+1)for(R=q.length-1;0<=R;R--)if(0==R||q[R]!=N[R-1]){q[R].setAttribute("width",A);q[R].setAttribute("height",B);break}}};Graph.prototype.insertLink=function(q){if(null!=
+this.cellEditor.textarea)if(0==q.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var A=this.cellEditor.textarea.getElementsByTagName("a"),B=[],F=0;F<A.length;F++)B.push(A[F]);document.execCommand("createlink",!1,mxUtils.trim(q));A=this.cellEditor.textarea.getElementsByTagName("a");if(A.length==B.length+1)for(F=A.length-1;0<=F;F--)if(A[F]!=B[F-1]){for(A=A[F].getElementsByTagName("a");0<A.length;){for(B=A[0].parentNode;null!=A[0].firstChild;)B.insertBefore(A[0].firstChild,A[0]);
+B.removeChild(A[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(q))};Graph.prototype.isCellResizable=function(q){var A=mxGraph.prototype.isCellResizable.apply(this,arguments),B=this.getCurrentCellStyle(q);return!this.isTableCell(q)&&!this.isTableRow(q)&&(A||"0"!=mxUtils.getValue(B,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==B[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(q,A,B){null==A&&(A=this.getSelectionCells());if(null!=A&&1<A.length){for(var F=[],N=
+null,R=null,X=0,fa=0;fa<A.length;fa++)if(this.getModel().isVertex(A[fa])){var da=this.view.getState(A[fa]);if(null!=da){var ha=q?da.getCenterX():da.getCenterY();N=null!=N?Math.max(N,ha):ha;R=null!=R?Math.min(R,ha):ha;B&&(X+=q?da.width:da.height);F.push(da)}}if(2<F.length){F.sort(function(Ga,wa){return q?Ga.x-wa.x:Ga.y-wa.y});B&&(X-=q?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);da=this.view.translate;ha=this.view.scale;R=R/ha-(q?da.x:da.y);N=N/ha-(q?da.x:da.y);this.getModel().beginUpdate();
+try{var va=(N-R-X)/(F.length-1),Ma=R+(B?q?F[0].width/2:F[0].height/2:0);for(fa=1;fa<F.length-1;fa++){var Na=this.view.getState(this.model.getParent(F[fa].cell)),ya=this.getCellGeometry(F[fa].cell);Ma+=va;null!=ya&&null!=Na&&(ya=ya.clone(),q?ya.x=Math.round(Ma-(B?0:ya.width/2))-Na.origin.x:ya.y=Math.round(Ma-(B?0:ya.height/2))-Na.origin.y,this.getModel().setGeometry(F[fa].cell,ya));B&&(Ma+=q?F[fa].width:F[fa].height)}}finally{this.getModel().endUpdate()}}}return A};Graph.prototype.isCloneEvent=function(q){return mxClient.IS_MAC&&
+mxEvent.isMetaDown(q)||mxEvent.isControlDown(q)};Graph.prototype.createSvgImageExport=function(q){q=new mxImageExport;q.addCellData=function(B,F,N){F.setAttribute("data-cell-id",B.id);if(N)if(mxUtils.isNode(B.value))for(N=0;N<B.value.attributes.length;N++){var R=B.value.attributes[N];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof B.value)for(R in B.value)F.setAttribute("data-cell-"+R,B.value[R]);else null!=B.value&&F.setAttribute("data-cell-value",B.value);return F};var A=q.visitStatesRecursive;
+q.visitStatesRecursive=function(B,F,N){if(null!=B){var R=F.root,X=F.root.ownerDocument;F.root=this.addCellData(B.cell,null!=X.createElementNS?X.createElementNS(mxConstants.NS_SVG,"g"):X.createElement("g"),Editor.addSvgMetadata);R.appendChild(F.root);A.apply(this,arguments);F.root=R}};q.getLinkForCellState=mxUtils.bind(this,function(B,F){return this.getLinkForCell(B.cell)});q.getTitleForCellState=mxUtils.bind(this,function(B,F){return Editor.convertHtmlToText(this.convertValueToTooltip(B.cell))});
+return q};Graph.prototype.parseBackgroundImage=function(q){var A=null;null!=q&&0<q.length&&(q=JSON.parse(q),A=new mxImage(q.src,q.width,q.height));return A};Graph.prototype.getBackgroundImageObject=function(q){return q};Graph.prototype.getSvg=function(q,A,B,F,N,R,X,fa,da,ha,va,Ma,Na,ya,Ga,wa){var ua=null;if(null!=ya)for(ua=new mxDictionary,va=0;va<ya.length;va++)ua.put(ya[va],!0);ya=this.useCssTransforms;var Va=this.enableFlowAnimation;this.enableFlowAnimation=!1;ya&&(this.useCssTransforms=!1,this.view.revalidate(),
this.sizeDidChange());try{A=null!=A?A:1;B=null!=B?B:0;N=null!=N?N:!0;R=null!=R?R:!0;X=null!=X?X:!0;ha=null!=ha?ha:!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)+(ha&&0==B?5:0),ub=Math.max(1,Math.ceil(Qa.height*F)+2*B)+(ha&&0==B?5:0);ha=N?-.5:0;var vb=mxUtils.getLightDarkColor(p),jb=Graph.createSvgNode(ha,ha,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",
+Wa)));if(null==Qa)throw Error(mxResources.get("drawingEmpty"));F=A/Wa;var mb=Math.max(1,Math.ceil(Qa.width*F)+2*B)+(ha&&0==B?5:0),ub=Math.max(1,Math.ceil(Qa.height*F)+2*B)+(ha&&0==B?5:0);ha=N?-.5:0;var vb=mxUtils.getLightDarkColor(q),jb=Graph.createSvgNode(ha,ha,mb,ub,vb),nb=jb.ownerDocument;if(null!=q){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=N?-.5:0;bb.textOffset=N?-.5:0;bb.imageOffset=N?-.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),J=[],y=0,ba=0;(0==x||y<x)&&ba<Za.length;){var S=Za.charCodeAt(ba);if(10==S||13==S){if(0<y)break}else J.push(Za.charAt(ba)),255>S&&y++;ba++}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,ha=new mxRectangle((Ka.x+
-Ua.x)*p,(Ka.y+Ua.y)*p,Ka.width*p,Ka.height*p),mxUtils.intersects(Qa,ha)&&bb.image(Ka.x+Ua.x,Ka.y+Ua.y,Ka.width,Ka.height,Ka.src,!0));bb.scale(F);bb.textEnabled=X;fa=null!=fa?fa:this.createSvgImageExport();var tb=fa.getLinkForCellState;fa.getLinkForCellState=function(Sa,sb){var $a=Sa.view.graph.getAbsoluteUrl(tb.apply(this,arguments));return null==$a||Sa.view.graph.isCustomLink($a)?null:$a};fa.getLinkTargetForCellState=function(Sa,sb){return Sa.view.graph.getLinkTargetForCell(Sa.cell)};var yb=fa.drawCellState,
+Za=Za.innerText:(wb.innerHTML=Za,Za=mxUtils.extractTextWithWhitespace(wb.childNodes));for(var w=Math.ceil(2*kb/this.state.fontSize),J=[],y=0,ba=0;(0==w||y<w)&&ba<Za.length;){var S=Za.charCodeAt(ba);if(10==S||13==S){if(0<y)break}else J.push(Za.charAt(ba)),255>S&&y++;ba++}J.length<Za.length&&1<Za.length-J.length&&(Za=mxUtils.trim(J.join(""))+"...");return Za}catch(Ea){return rb.apply(this,arguments)}else return rb.apply(this,arguments)};null!=Ka&&null!=Ka.width&&null!=Ka.height&&(q=Wa/A,ha=new mxRectangle((Ka.x+
+Ua.x)*q,(Ka.y+Ua.y)*q,Ka.width*q,Ka.height*q),mxUtils.intersects(Qa,ha)&&bb.image(Ka.x+Ua.x,Ka.y+Ua.y,Ka.width,Ka.height,Ka.src,!0));bb.scale(F);bb.textEnabled=X;fa=null!=fa?fa:this.createSvgImageExport();var tb=fa.getLinkForCellState;fa.getLinkForCellState=function(Sa,sb){var $a=Sa.view.graph.getAbsoluteUrl(tb.apply(this,arguments));return null==$a||Sa.view.graph.isCustomLink($a)?null:$a};fa.getLinkTargetForCellState=function(Sa,sb){return Sa.view.graph.getLinkTargetForCell(Sa.cell)};var yb=fa.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});fa.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,
-sb)}finally{Sa.shape.isFlowAnimationEnabled=Za,Sa.shape.addFlowAnimationToShape=xb}};var Ta=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;fa.drawState(this.getView().getState(Ta),bb);this.addForeignObjectWarning(bb,jb);va?this.disableSvgLinks(jb):this.updateSvgLinks(jb,da,!0);return jb}finally{this.enableFlowAnimation=Va,ya&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(p,A){if("0"!=urlParams["svg-warning"]&&
-0<A.getElementsByTagName("foreignObject").length){var B=p.createElement("switch"),F=p.createElement("g");F.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var N=p.createElement("a");N.setAttribute("transform","translate(0,-5)");null==N.setAttributeNS||A.ownerDocument!=document&&null==document.documentMode?(N.setAttribute("xlink:href",Graph.foreignObjectWarningLink),N.setAttribute("target","_blank")):(N.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),
-N.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));p=p.createElement("text");p.setAttribute("text-anchor","middle");p.setAttribute("font-size","10px");p.setAttribute("x","50%");p.setAttribute("y","100%");mxUtils.write(p,Graph.foreignObjectWarningText);B.appendChild(F);N.appendChild(p);B.appendChild(N);A.appendChild(B)}};Graph.prototype.disableSvgLinks=function(p,A){p=p.getElementsByTagName("a");for(var B=0;B<p.length;B++){var F=p[B].getAttribute("href");null==F&&(F=p[B].getAttribute("xlink:href"));
-null!=F&&(p[B].style.pointerEvents="none",p[B].setAttribute("href",""));A&&A(p[B])}};Graph.prototype.updateSvgLinks=function(p,A,B){p=p.getElementsByTagName("a");for(var F=0;F<p.length;F++)if(null==p[F].getAttribute("target")){var N=p[F].getAttribute("href");null==N&&(N=p[F].getAttribute("xlink:href"));null!=N&&(null!=A&&/^https?:\/\//.test(N)?p[F].setAttribute("target",A):B&&this.isCustomLink(N)&&p[F].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(p){p=new mxSvgCanvas2D(p);
-p.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;p.adaptiveColors=this.getAdaptiveColors();p.pointerEvents=!0;return p};Graph.prototype.getSelectedElement=function(){var p=null;if(window.getSelection){var A=window.getSelection();A.getRangeAt&&A.rangeCount&&(p=A.getRangeAt(0).commonAncestorContainer)}else document.selection&&(p=document.selection.createRange().parentElement());return p};Graph.prototype.getSelectedEditingElement=function(){var p=null;if(null!=this.cellEditor.textarea)for(p=this.getSelectedElement();null!=
-p&&p.nodeType!=mxConstants.NODETYPE_ELEMENT;)p=p.parentNode;return p};Graph.prototype.getParentByName=function(p,A,B){for(;null!=p&&p.nodeName!=A;){if(p==B)return null;p=p.parentNode}return p};Graph.prototype.getParentByNames=function(p,A,B){for(;null!=p&&!(0<=mxUtils.indexOf(A,p.nodeName));){if(p==B)return null;p=p.parentNode}return p};Graph.prototype.selectNode=function(p){var A=null;if(window.getSelection){if(A=window.getSelection(),A.getRangeAt&&A.rangeCount){var B=document.createRange();B.selectNode(p);
-A.removeAllRanges();A.addRange(B)}}else(A=document.selection)&&"Control"!=A.type&&(p=A.createRange(),p.collapse(!0),B=A.createRange(),B.setEndPoint("StartToStart",p),B.select())};Graph.prototype.flipEdgePoints=function(p,A,B){var F=this.getCellGeometry(p);if(null!=F){F=F.clone();if(null!=F.points)for(var N=0;N<F.points.length;N++)A?F.points[N].x=B+(B-F.points[N].x):F.points[N].y=B+(B-F.points[N].y);N=function(R){null!=R&&(A?R.x=B+(B-R.x):R.y=B+(B-R.y))};N(F.getTerminalPoint(!0));N(F.getTerminalPoint(!1));
-this.model.setGeometry(p,F)}};Graph.prototype.flipChildren=function(p,A,B){this.model.beginUpdate();try{for(var F=this.model.getChildCount(p),N=0;N<F;N++){var R=this.model.getChildAt(p,N);if(this.model.isEdge(R))this.flipEdgePoints(R,A,B);else{var X=this.getCellGeometry(R);null!=X&&(X=X.clone(),A?X.x=B+(B-X.x-X.width):X.y=B+(B-X.y-X.height),this.model.setGeometry(R,X))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(p,A){this.model.beginUpdate();try{p=this.model.getTopmostCells(p);
-for(var B=[],F=0;F<p.length;F++)if(this.model.isEdge(p[F])){var N=this.view.getState(p[F]);null!=N&&this.flipEdgePoints(p[F],A,(A?N.getCenterX():N.getCenterY())/this.view.scale-(A?N.origin.x:N.origin.y)-(A?this.view.translate.x:this.view.translate.y))}else{var R=this.getCellGeometry(p[F]);null!=R&&this.flipChildren(p[F],A,A?R.getCenterX()-R.x:R.getCenterY()-R.y);B.push(p[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,B)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=
-function(p,A){var B=null;if(null!=p&&0<p.length){this.model.beginUpdate();try{for(var F=0;F<p.length;F++){var N=this.model.getParent(p[F]);if(this.isTable(N)){var R=this.getCellGeometry(p[F]),X=this.getCellGeometry(N);null!=R&&null!=X&&(X=X.clone(),X.height-=R.height,this.model.setGeometry(N,X))}}var fa=this.selectParentAfterDelete?this.model.getParents(p):null;this.removeCells(p,A)}finally{this.model.endUpdate()}if(null!=fa)for(B=[],F=0;F<fa.length;F++)this.model.contains(fa[F])&&(this.model.isVertex(fa[F])||
-this.model.isEdge(fa[F]))&&B.push(fa[F])}return B};Graph.prototype.insertTableColumn=function(p,A){var B=this.getModel();B.beginUpdate();try{var F=p,N=0;if(this.isTableCell(p)){var R=B.getParent(p);F=B.getParent(R);N=mxUtils.indexOf(B.getChildCells(R,!0),p)}else this.isTableRow(p)?F=B.getParent(p):p=B.getChildCells(F,!0)[0],A||(N=B.getChildCells(p,!0).length-1);var X=B.getChildCells(F,!0),fa=Graph.minTableColumnWidth;for(p=0;p<X.length;p++){var da=B.getChildCells(X[p],!0)[N],ha=B.cloneCell(da,!1);
-null==ha&&(ha=this.createVertex());var wa=this.getCellGeometry(ha);ha.value=null;ha.style=mxUtils.setStyle(mxUtils.setStyle(ha.style,"rowspan",null),"colspan",null);if(null!=wa){null!=wa.alternateBounds&&(wa.width=wa.alternateBounds.width,wa.height=wa.alternateBounds.height,wa.alternateBounds=null);fa=wa.width;var Ma=this.getCellGeometry(X[p]);null!=Ma&&(wa.height=Ma.height)}B.add(X[p],ha,N+(A?0:1))}var Na=this.getCellGeometry(F);null!=Na&&(Na=Na.clone(),Na.width+=fa,B.setGeometry(F,Na))}finally{B.endUpdate()}};
-Graph.prototype.deleteLane=function(p){var A=this.getModel();A.beginUpdate();try{var B=null;B="stackLayout"==this.getCurrentCellStyle(p).childLayout?p:A.getParent(p);var F=A.getChildCells(B,!0);0==F.length?A.remove(B):(B==p&&(p=F[F.length-1]),A.remove(p))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(p,A){var B=this.getModel();B.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(p).childLayout){F=p;var N=B.getChildCells(F,!0);p=N[A?0:N.length-1]}else F=B.getParent(p);
-var R=F.getIndex(p);p=B.cloneCell(p,!1);p.value=null;B.add(F,p,R+(A?0:1))}finally{B.endUpdate()}};Graph.prototype.insertTableRow=function(p,A){var B=this.getModel();B.beginUpdate();try{var F=p,N=p;if(this.isTableCell(p))N=B.getParent(p),F=B.getParent(N);else if(this.isTableRow(p))F=B.getParent(p);else{var R=B.getChildCells(F,!0);N=R[A?0:R.length-1]}var X=B.getChildCells(N,!0),fa=F.getIndex(N);N=B.cloneCell(N,!1);N.value=null;var da=this.getCellGeometry(N);if(null!=da){for(R=0;R<X.length;R++){p=B.cloneCell(X[R],
-!1);p.value=null;p.style=mxUtils.setStyle(mxUtils.setStyle(p.style,"rowspan",null),"colspan",null);var ha=this.getCellGeometry(p);null!=ha&&(null!=ha.alternateBounds&&(ha.width=ha.alternateBounds.width,ha.height=ha.alternateBounds.height,ha.alternateBounds=null),ha.height=da.height);N.insert(p)}B.add(F,N,fa+(A?0:1));var wa=this.getCellGeometry(F);null!=wa&&(wa=wa.clone(),wa.height+=da.height,B.setGeometry(F,wa))}}finally{B.endUpdate()}};Graph.prototype.deleteTableColumn=function(p){var A=this.getModel();
-A.beginUpdate();try{var B=p,F=p;this.isTableCell(p)&&(F=A.getParent(p));this.isTableRow(F)&&(B=A.getParent(F));var N=A.getChildCells(B,!0);if(0==N.length)A.remove(B);else{this.isTableRow(F)||(F=N[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(B);else{var X=R.length-1;this.isTableCell(p)&&(X=mxUtils.indexOf(R,p));for(F=p=0;F<N.length;F++){var fa=A.getChildCells(N[F],!0)[X];A.remove(fa);var da=this.getCellGeometry(fa);null!=da&&(p=Math.max(p,da.width))}var ha=this.getCellGeometry(B);null!=
-ha&&(ha=ha.clone(),ha.width-=p,A.setGeometry(B,ha))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=function(p){var A=this.getModel();A.beginUpdate();try{var B=p,F=p;this.isTableCell(p)&&(p=F=A.getParent(p));this.isTableRow(p)&&(B=A.getParent(F));var N=A.getChildCells(B,!0);if(1>=N.length)A.remove(B);else{this.isTableRow(F)||(F=N[N.length-1]);A.remove(F);p=0;var R=this.getCellGeometry(F);null!=R&&(p=R.height);var X=this.getCellGeometry(B);null!=X&&(X=X.clone(),X.height-=p,A.setGeometry(B,
-X))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(p,A){for(var B=p.tBodies[0],F=B.rows[0].cells,N=p=0;N<F.length;N++){var R=F[N].getAttribute("colspan");p+=null!=R?parseInt(R):1}A=B.insertRow(A);for(N=0;N<p;N++)mxUtils.br(A.insertCell(-1));return A.cells[0]};Graph.prototype.deleteRow=function(p,A){p.tBodies[0].deleteRow(A)};Graph.prototype.insertColumn=function(p,A){var B=p.tHead;if(null!=B)for(var F=0;F<B.rows.length;F++){var N=document.createElement("th");B.rows[F].appendChild(N);
-mxUtils.br(N)}p=p.tBodies[0];for(B=0;B<p.rows.length;B++)F=p.rows[B].insertCell(A),mxUtils.br(F);return p.rows[0].cells[0<=A?A:p.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(p,A){if(0<=A){p=p.tBodies[0].rows;for(var B=0;B<p.length;B++)p[B].cells.length>A&&p[B].deleteCell(A)}};Graph.prototype.pasteHtmlAtCaret=function(p){if(window.getSelection){var A=window.getSelection();if(A.getRangeAt&&A.rangeCount){A=A.getRangeAt(0);A.deleteContents();var B=document.createElement("div");B.innerHTML=
-p;p=document.createDocumentFragment();for(var F;F=B.firstChild;)lastNode=p.appendChild(F);A.insertNode(p)}}else(A=document.selection)&&"Control"!=A.type&&A.createRange().pasteHTML(p)};Graph.prototype.createLinkForHint=function(p,A,B){function F(R,X){R.length>X&&(R=R.substring(0,Math.round(X/2))+"..."+R.substring(R.length-Math.round(X/4)));return R}p=null!=p?p:"javascript:void(0);";if(null==A||0==A.length)A=this.isCustomLink(p)?this.getLinkTitle(p):p;var N=document.createElement("a");N.setAttribute("rel",
-this.linkRelation);N.setAttribute("href",this.getAbsoluteUrl(p));N.setAttribute("title",F(this.isCustomLink(p)?this.getLinkTitle(p):p,80));null!=this.linkTarget&&N.setAttribute("target",this.linkTarget);mxUtils.write(N,F(A,40));this.isCustomLink(p)&&mxEvent.addListener(N,"click",mxUtils.bind(this,function(R){this.customLinkClicked(p,B);mxEvent.consume(R)}));return N};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};
-this.addListener(mxEvent.START_EDITING,function(R,X){this.popupMenuHandler.hideMenu()});var p=this.updateMouseEvent;this.updateMouseEvent=function(R){R=p.apply(this,arguments);if(mxEvent.isTouchEvent(R.getEvent())&&null==R.getState()){var X=this.getCellAt(R.graphX,R.graphY);null!=X&&this.isSwimlane(X)&&this.hitsSwimlaneContent(X,R.graphX,R.graphY)||(R.state=this.view.getState(X),null!=R.state&&null!=R.state.shape&&(this.container.style.cursor=R.state.shape.node.style.cursor))}null==R.getState()&&
+sb)}finally{Sa.shape.isFlowAnimationEnabled=Za,Sa.shape.addFlowAnimationToShape=xb}};var Ta=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;fa.drawState(this.getView().getState(Ta),bb);this.addForeignObjectWarning(bb,jb);wa?this.disableSvgLinks(jb):this.updateSvgLinks(jb,da,!0);return jb}finally{this.enableFlowAnimation=Va,ya&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(q,A){if("0"!=urlParams["svg-warning"]&&
+0<A.getElementsByTagName("foreignObject").length){var B=q.createElement("switch"),F=q.createElement("g");F.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var N=q.createElement("a");N.setAttribute("transform","translate(0,-5)");null==N.setAttributeNS||A.ownerDocument!=document&&null==document.documentMode?(N.setAttribute("xlink:href",Graph.foreignObjectWarningLink),N.setAttribute("target","_blank")):(N.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),
+N.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));q=q.createElement("text");q.setAttribute("text-anchor","middle");q.setAttribute("font-size","10px");q.setAttribute("x","50%");q.setAttribute("y","100%");mxUtils.write(q,Graph.foreignObjectWarningText);B.appendChild(F);N.appendChild(q);B.appendChild(N);A.appendChild(B)}};Graph.prototype.disableSvgLinks=function(q,A){q=q.getElementsByTagName("a");for(var B=0;B<q.length;B++){var F=q[B].getAttribute("href");null==F&&(F=q[B].getAttribute("xlink:href"));
+null!=F&&(q[B].style.pointerEvents="none",q[B].setAttribute("href",""));A&&A(q[B])}};Graph.prototype.updateSvgLinks=function(q,A,B){q=q.getElementsByTagName("a");for(var F=0;F<q.length;F++)if(null==q[F].getAttribute("target")){var N=q[F].getAttribute("href");null==N&&(N=q[F].getAttribute("xlink:href"));null!=N&&(null!=A&&/^https?:\/\//.test(N)?q[F].setAttribute("target",A):B&&this.isCustomLink(N)&&q[F].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(q){q=new mxSvgCanvas2D(q);
+q.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;q.adaptiveColors=this.getAdaptiveColors();q.pointerEvents=!0;return q};Graph.prototype.getSelectedElement=function(){var q=null;if(window.getSelection){var A=window.getSelection();A.getRangeAt&&A.rangeCount&&(q=A.getRangeAt(0).commonAncestorContainer)}else document.selection&&(q=document.selection.createRange().parentElement());return q};Graph.prototype.getSelectedEditingElement=function(){var q=null;if(null!=this.cellEditor.textarea)for(q=this.getSelectedElement();null!=
+q&&q.nodeType!=mxConstants.NODETYPE_ELEMENT;)q=q.parentNode;return q};Graph.prototype.getParentByName=function(q,A,B){for(;null!=q&&q.nodeName!=A;){if(q==B)return null;q=q.parentNode}return q};Graph.prototype.getParentByNames=function(q,A,B){for(;null!=q&&!(0<=mxUtils.indexOf(A,q.nodeName));){if(q==B)return null;q=q.parentNode}return q};Graph.prototype.selectNode=function(q){var A=null;if(window.getSelection){if(A=window.getSelection(),A.getRangeAt&&A.rangeCount){var B=document.createRange();B.selectNode(q);
+A.removeAllRanges();A.addRange(B)}}else(A=document.selection)&&"Control"!=A.type&&(q=A.createRange(),q.collapse(!0),B=A.createRange(),B.setEndPoint("StartToStart",q),B.select())};Graph.prototype.flipEdgePoints=function(q,A,B){var F=this.getCellGeometry(q);if(null!=F){F=F.clone();if(null!=F.points)for(var N=0;N<F.points.length;N++)A?F.points[N].x=B+(B-F.points[N].x):F.points[N].y=B+(B-F.points[N].y);N=function(R){null!=R&&(A?R.x=B+(B-R.x):R.y=B+(B-R.y))};N(F.getTerminalPoint(!0));N(F.getTerminalPoint(!1));
+this.model.setGeometry(q,F)}};Graph.prototype.flipChildren=function(q,A,B){this.model.beginUpdate();try{for(var F=this.model.getChildCount(q),N=0;N<F;N++){var R=this.model.getChildAt(q,N);if(this.model.isEdge(R))this.flipEdgePoints(R,A,B);else{var X=this.getCellGeometry(R);null!=X&&(X=X.clone(),A?X.x=B+(B-X.x-X.width):X.y=B+(B-X.y-X.height),this.model.setGeometry(R,X))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(q,A){this.model.beginUpdate();try{q=this.model.getTopmostCells(q);
+for(var B=[],F=0;F<q.length;F++)if(this.model.isEdge(q[F])){var N=this.view.getState(q[F]);null!=N&&this.flipEdgePoints(q[F],A,(A?N.getCenterX():N.getCenterY())/this.view.scale-(A?N.origin.x:N.origin.y)-(A?this.view.translate.x:this.view.translate.y))}else{var R=this.getCellGeometry(q[F]);null!=R&&this.flipChildren(q[F],A,A?R.getCenterX()-R.x:R.getCenterY()-R.y);B.push(q[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,B)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=
+function(q,A){var B=null;if(null!=q&&0<q.length){this.model.beginUpdate();try{for(var F=0;F<q.length;F++){var N=this.model.getParent(q[F]);if(this.isTable(N)){var R=this.getCellGeometry(q[F]),X=this.getCellGeometry(N);null!=R&&null!=X&&(X=X.clone(),X.height-=R.height,this.model.setGeometry(N,X))}}var fa=this.selectParentAfterDelete?this.model.getParents(q):null;this.removeCells(q,A)}finally{this.model.endUpdate()}if(null!=fa)for(B=[],F=0;F<fa.length;F++)this.model.contains(fa[F])&&(this.model.isVertex(fa[F])||
+this.model.isEdge(fa[F]))&&B.push(fa[F])}return B};Graph.prototype.insertTableColumn=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,N=0;if(this.isTableCell(q)){var R=B.getParent(q);F=B.getParent(R);N=mxUtils.indexOf(B.getChildCells(R,!0),q)}else this.isTableRow(q)?F=B.getParent(q):q=B.getChildCells(F,!0)[0],A||(N=B.getChildCells(q,!0).length-1);var X=B.getChildCells(F,!0),fa=Graph.minTableColumnWidth;for(q=0;q<X.length;q++){var da=B.getChildCells(X[q],!0)[N],ha=B.cloneCell(da,!1);
+null==ha&&(ha=this.createVertex());var va=this.getCellGeometry(ha);ha.value=null;ha.style=mxUtils.setStyle(mxUtils.setStyle(ha.style,"rowspan",null),"colspan",null);if(null!=va){null!=va.alternateBounds&&(va.width=va.alternateBounds.width,va.height=va.alternateBounds.height,va.alternateBounds=null);fa=va.width;var Ma=this.getCellGeometry(X[q]);null!=Ma&&(va.height=Ma.height)}B.add(X[q],ha,N+(A?0:1))}var Na=this.getCellGeometry(F);null!=Na&&(Na=Na.clone(),Na.width+=fa,B.setGeometry(F,Na))}finally{B.endUpdate()}};
+Graph.prototype.deleteLane=function(q){var A=this.getModel();A.beginUpdate();try{var B=null;B="stackLayout"==this.getCurrentCellStyle(q).childLayout?q:A.getParent(q);var F=A.getChildCells(B,!0);0==F.length?A.remove(B):(B==q&&(q=F[F.length-1]),A.remove(q))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(q).childLayout){F=q;var N=B.getChildCells(F,!0);q=N[A?0:N.length-1]}else F=B.getParent(q);
+var R=F.getIndex(q);q=B.cloneCell(q,!1);q.value=null;B.add(F,q,R+(A?0:1))}finally{B.endUpdate()}};Graph.prototype.insertTableRow=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,N=q;if(this.isTableCell(q))N=B.getParent(q),F=B.getParent(N);else if(this.isTableRow(q))F=B.getParent(q);else{var R=B.getChildCells(F,!0);N=R[A?0:R.length-1]}var X=B.getChildCells(N,!0),fa=F.getIndex(N);N=B.cloneCell(N,!1);N.value=null;var da=this.getCellGeometry(N);if(null!=da){for(R=0;R<X.length;R++){q=B.cloneCell(X[R],
+!1);q.value=null;q.style=mxUtils.setStyle(mxUtils.setStyle(q.style,"rowspan",null),"colspan",null);var ha=this.getCellGeometry(q);null!=ha&&(null!=ha.alternateBounds&&(ha.width=ha.alternateBounds.width,ha.height=ha.alternateBounds.height,ha.alternateBounds=null),ha.height=da.height);N.insert(q)}B.add(F,N,fa+(A?0:1));var va=this.getCellGeometry(F);null!=va&&(va=va.clone(),va.height+=da.height,B.setGeometry(F,va))}}finally{B.endUpdate()}};Graph.prototype.deleteTableColumn=function(q){var A=this.getModel();
+A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(F=A.getParent(q));this.isTableRow(F)&&(B=A.getParent(F));var N=A.getChildCells(B,!0);if(0==N.length)A.remove(B);else{this.isTableRow(F)||(F=N[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(B);else{var X=R.length-1;this.isTableCell(q)&&(X=mxUtils.indexOf(R,q));for(F=q=0;F<N.length;F++){var fa=A.getChildCells(N[F],!0)[X];A.remove(fa);var da=this.getCellGeometry(fa);null!=da&&(q=Math.max(q,da.width))}var ha=this.getCellGeometry(B);null!=
+ha&&(ha=ha.clone(),ha.width-=q,A.setGeometry(B,ha))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=function(q){var A=this.getModel();A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(q=F=A.getParent(q));this.isTableRow(q)&&(B=A.getParent(F));var N=A.getChildCells(B,!0);if(1>=N.length)A.remove(B);else{this.isTableRow(F)||(F=N[N.length-1]);A.remove(F);q=0;var R=this.getCellGeometry(F);null!=R&&(q=R.height);var X=this.getCellGeometry(B);null!=X&&(X=X.clone(),X.height-=q,A.setGeometry(B,
+X))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(q,A){for(var B=q.tBodies[0],F=B.rows[0].cells,N=q=0;N<F.length;N++){var R=F[N].getAttribute("colspan");q+=null!=R?parseInt(R):1}A=B.insertRow(A);for(N=0;N<q;N++)mxUtils.br(A.insertCell(-1));return A.cells[0]};Graph.prototype.deleteRow=function(q,A){q.tBodies[0].deleteRow(A)};Graph.prototype.insertColumn=function(q,A){var B=q.tHead;if(null!=B)for(var F=0;F<B.rows.length;F++){var N=document.createElement("th");B.rows[F].appendChild(N);
+mxUtils.br(N)}q=q.tBodies[0];for(B=0;B<q.rows.length;B++)F=q.rows[B].insertCell(A),mxUtils.br(F);return q.rows[0].cells[0<=A?A:q.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(q,A){if(0<=A){q=q.tBodies[0].rows;for(var B=0;B<q.length;B++)q[B].cells.length>A&&q[B].deleteCell(A)}};Graph.prototype.pasteHtmlAtCaret=function(q){if(window.getSelection){var A=window.getSelection();if(A.getRangeAt&&A.rangeCount){A=A.getRangeAt(0);A.deleteContents();var B=document.createElement("div");B.innerHTML=
+q;q=document.createDocumentFragment();for(var F;F=B.firstChild;)lastNode=q.appendChild(F);A.insertNode(q)}}else(A=document.selection)&&"Control"!=A.type&&A.createRange().pasteHTML(q)};Graph.prototype.createLinkForHint=function(q,A,B){function F(R,X){R.length>X&&(R=R.substring(0,Math.round(X/2))+"..."+R.substring(R.length-Math.round(X/4)));return R}q=null!=q?q:"javascript:void(0);";if(null==A||0==A.length)A=this.isCustomLink(q)?this.getLinkTitle(q):q;var N=document.createElement("a");N.setAttribute("rel",
+this.linkRelation);N.setAttribute("href",this.getAbsoluteUrl(q));N.setAttribute("title",F(this.isCustomLink(q)?this.getLinkTitle(q):q,80));null!=this.linkTarget&&N.setAttribute("target",this.linkTarget);mxUtils.write(N,F(A,40));this.isCustomLink(q)&&mxEvent.addListener(N,"click",mxUtils.bind(this,function(R){this.customLinkClicked(q,B);mxEvent.consume(R)}));return N};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};
+this.addListener(mxEvent.START_EDITING,function(R,X){this.popupMenuHandler.hideMenu()});var q=this.updateMouseEvent;this.updateMouseEvent=function(R){R=q.apply(this,arguments);if(mxEvent.isTouchEvent(R.getEvent())&&null==R.getState()){var X=this.getCellAt(R.graphX,R.graphY);null!=X&&this.isSwimlane(X)&&this.hitsSwimlaneContent(X,R.graphX,R.graphY)||(R.state=this.view.getState(X),null!=R.state&&null!=R.state.shape&&(this.container.style.cursor=R.state.shape.node.style.cursor))}null==R.getState()&&
this.isEnabled()&&(this.container.style.cursor="default");return R};var A=!1,B=!1,F=!1,N=this.fireMouseEvent;this.fireMouseEvent=function(R,X,fa){R==mxEvent.MOUSE_DOWN&&(X=this.updateMouseEvent(X),A=this.isCellSelected(X.getCell()),B=this.isSelectionEmpty(),F=this.popupMenuHandler.isMenuShowing());N.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(R,X){if(null!=this.freehand&&!this.freehand.isDrawing()){var fa=mxEvent.isMouseEvent(X.getEvent());this.popupMenuHandler.popupTrigger=
!this.isEditing()&&this.isEnabled()&&(null==X.getState()||!X.isSource(X.getState().control))&&(this.popupMenuHandler.popupTrigger||!F&&!fa&&(B&&null==X.getCell()&&this.isSelectionEmpty()||A&&this.isCellSelected(X.getCell())));fa=!A||fa?null:mxUtils.bind(this,function(da){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var ha=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(X.getX()+ha.x+1,X.getY()+ha.y+1,da,X.getEvent())}}),300)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,
-[R,X,fa])}})};mxCellEditor.prototype.isContentEditing=function(){var p=this.graph.view.getState(this.editingCell);return null!=p&&1==p.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var p="";window.getSelection?p=window.getSelection():document.getSelection?p=document.getSelection():document.selection&&(p=document.selection.createRange().text);
-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),
-N=null!=A&&mxEvent.isShiftDown(A);if(N||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(X){N||F||window.getSelection().containsNode(X,!0)?(X.removeAttribute("align"),X.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 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);fa=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<fa.length&&"\n"==fa.charAt(fa.length-1)&&(fa=fa.substring(0,fa.length-1));fa=Graph.sanitizeHtml(A?fa.replace(/\n/g,"<br/>"):fa,!0);this.textarea.className="mxCellEditor geContentEditable";da=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),N=(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,X=[];(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&X.push("underline");
-(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&X.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(da*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(da)+"px";this.textarea.style.textDecoration=X.join(" ");this.textarea.style.fontWeight=N?"bold":"normal";this.textarea.style.fontStyle=R?"italic":"";this.textarea.style.fontFamily=A;this.textarea.style.textAlign=
+[R,X,fa])}})};mxCellEditor.prototype.isContentEditing=function(){var q=this.graph.view.getState(this.editingCell);return null!=q&&1==q.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var q="";window.getSelection?q=window.getSelection():document.getSelection?q=document.getSelection():document.selection&&(q=document.selection.createRange().text);
+return""!=q};mxCellEditor.prototype.insertTab=function(q){var A=this.textarea.ownerDocument.defaultView.getSelection(),B=A.getRangeAt(0);q=Graph.createTabNode(q);B.insertNode(q);B.setStartAfter(q);B.setEndAfter(q);A.removeAllRanges();A.addRange(B)};mxCellEditor.prototype.alignText=function(q,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),
+N=null!=A&&mxEvent.isShiftDown(A);if(N||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(X){N||F||window.getSelection().containsNode(X,!0)?(X.removeAttribute("align"),X.style.textAlign=null):R=!1});(R||F)&&this.graph.cellEditor.setAlign(q)}F||document.execCommand("justify"+q.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var q=window.getSelection();if(q.getRangeAt&&q.rangeCount){for(var A=
+[],B=0,F=q.rangeCount;B<F;++B)A.push(q.getRangeAt(B));return A}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(q){try{if(q)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var A=0,B=q.length;A<B;++A)sel.addRange(q[A])}else document.selection&&q.select&&q.select()}catch(F){}};var G=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=
+function(q){null!=q.text&&(q.text.replaceLinefeeds="0"!=mxUtils.getValue(q.style,"nl2Br","1"));G.apply(this,arguments)};var I=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(q,A){this.isKeepFocusEvent(q)||!mxEvent.isAltDown(q.getEvent())?I.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(q){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var L=mxCellEditor.prototype.startEditing;
+mxCellEditor.prototype.startEditing=function(q,A){q=this.graph.getStartEditingCell(q,A);L.apply(this,arguments);var B=this.graph.view.getState(q);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(q)};mxCellEditor.prototype.toggleViewMode=function(){var q=this.graph.view.getState(this.editingCell);
+if(null!=q){var A=null!=q&&"0"!=mxUtils.getValue(q.style,"nl2Br","1"),B=this.saveSelection();if(this.codeViewMode){Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);fa=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<fa.length&&"\n"==fa.charAt(fa.length-1)&&(fa=fa.substring(0,fa.length-1));fa=Graph.sanitizeHtml(A?fa.replace(/\n/g,"<br/>"):fa,!0);this.textarea.className="mxCellEditor geContentEditable";da=mxUtils.getValue(q.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);
+A=mxUtils.getValue(q.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var F=mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),N=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,R=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,X=[];(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&X.push("underline");
+(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&X.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(da*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(da)+"px";this.textarea.style.textDecoration=X.join(" ");this.textarea.style.fontWeight=N?"bold":"normal";this.textarea.style.fontStyle=R?"italic":"";this.textarea.style.fontFamily=A;this.textarea.style.textAlign=
F;this.textarea.style.padding="0px";this.textarea.innerHTML!=fa&&(this.textarea.innerHTML=fa,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors());this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerText="");Graph.removeLightDarkColors(this.textarea,
Graph.backupStyleAttribute);var fa=mxUtils.htmlEntities(this.textarea.innerHTML);8!=document.documentMode&&(fa=mxUtils.replaceTrailingNewlines(fa,"<div><br></div>"));fa=Graph.sanitizeHtml(A?fa.replace(/\n/g,"").replace(/&lt;br\s*.?&gt;/g,"<br>"):fa,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var da=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(da*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=
Math.round(da)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=fa&&(this.textarea.innerHTML=fa);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=
-B;this.resize()}};var T=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(p,A){if(null!=this.textarea)if(p=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=p){var B=p.view.scale;this.bounds=mxRectangle.fromRectangle(p);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*B;this.bounds.height=60*B;var F=null!=p.text?p.text.margin:null;null==F&&(F=mxUtils.getAlignmentAsPoint(mxUtils.getValue(p.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),
-mxUtils.getValue(p.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=F.x*this.bounds.width;this.bounds.y+=F.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/B)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/B)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/B)+(this.textarea.offsetHeight-this.textarea.clientHeight)+
+B;this.resize()}};var T=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(q,A){if(null!=this.textarea)if(q=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=q){var B=q.view.scale;this.bounds=mxRectangle.fromRectangle(q);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*B;this.bounds.height=60*B;var F=null!=q.text?q.text.margin:null;null==F&&(F=mxUtils.getAlignmentAsPoint(mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),
+mxUtils.getValue(q.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=F.x*this.bounds.width;this.bounds.y+=F.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/B)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/B)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/B)+(this.textarea.offsetHeight-this.textarea.clientHeight)+
"px",this.bounds.height=parseInt(this.textarea.style.height)*B);this.textarea.clientWidth<this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/B)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*B);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+B+","+B+")")}else this.textarea.style.height=
-"",this.textarea.style.overflow="",T.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(p,A){if("0"==mxUtils.getValue(p.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var B=this.graph.getEditingValue(p.cell,A);"1"==mxUtils.getValue(p.style,"nl2Br","1")&&(B=B.replace(/\n/g,"<br/>"));return Graph.sanitizeHtml(B,!0)};mxCellEditorSetEditingValue=mxCellEditor.prototype.setEditingValue;mxCellEditor.prototype.setEditingValue=
-function(p,A){mxCellEditorSetEditingValue.apply(this,arguments);"1"==mxUtils.getValue(p.style,"html","0")&&Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors())};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(p){if("0"==mxUtils.getValue(p.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);
-var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(p.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"),0<A.length&&("<br/>"==A.substring(A.length-5)||"<br>"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("<br"))+"<div><br/></div>")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var K=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(p){this.codeViewMode&&this.toggleViewMode();K.apply(this,arguments);this.focusContainer()};
-mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(p){}};var U=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(p,A){this.graph.getModel().beginUpdate();try{U.apply(this,arguments),""==A&&this.graph.isCellDeletable(p.cell)&&0==this.graph.model.getChildCount(p.cell)&&this.graph.isTransparentState(p)&&this.graph.removeCells([p.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(p){p=
-mxUtils.getValue(p.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);p==mxConstants.NONE&&(p=null);return p};mxCellEditor.prototype.getBorderColor=function(p){p=mxUtils.getValue(p.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null);p==mxConstants.NONE&&(p=null);return p};mxCellEditor.prototype.getMinimumSize=function(p){var A=this.graph.getView().scale;return new mxRectangle(0,0,null==p.text?30:p.text.size*A+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;mxGraphHandler.prototype.isValidDropTarget=
-function(p,A){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(A.getEvent)};mxGraphView.prototype.formatUnitText=function(p){return p?b(p,this.unit):p};mxGraphHandler.prototype.updateHint=function(p){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=a(),this.graph.container.appendChild(this.hint));var A=this.graph.view.translate,B=this.graph.view.scale;p=this.roundLength((this.bounds.x+this.currentDx)/B-A.x);A=this.roundLength((this.bounds.y+
-this.currentDy)/B-A.y);B=this.graph.view.unit;this.hint.innerHTML=b(p,B)+", "+b(A,B);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var Y=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=
-function(p,A){Y.apply(this,arguments);var B=this.graph.getCellStyle(p);if(null==B.childLayout){var F=this.graph.model.getParent(p),N=null!=F?this.graph.getCellGeometry(F):null;if(null!=N&&(B=this.graph.getCellStyle(F),"stackLayout"==B.childLayout)){var R=parseFloat(mxUtils.getValue(B,"stackBorder",mxStackLayout.prototype.border));B="1"==mxUtils.getValue(B,"horizontalStack","1");var X=this.graph.getActualStartSize(F);N=N.clone();B?N.height=A.height+X.y+X.height+2*R:N.width=A.width+X.x+X.width+2*R;
-this.graph.model.setGeometry(F,N)}}};var Q=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function p(fa){B.get(fa)||(B.put(fa,!0),N.push(fa))}for(var A=Q.apply(this,arguments),B=new mxDictionary,F=this.graph.model,N=[],R=0;R<A.length;R++){var X=A[R];this.graph.isTableCell(X)?p(F.getParent(F.getParent(X))):this.graph.isTableRow(X)&&p(F.getParent(X));p(X)}return N};var P=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=
-function(p){return P.apply(this,arguments)&&!mxEvent.isControlDown(p.getEvent())&&!mxEvent.isShiftDown(p.getEvent())};var M=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return M.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var W=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=
-function(p){var A=W.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};var aa=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(p){var A=aa.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var p=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+
-p.x/2,this.bounds.y+this.rotationHandleVSpacing-p.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(p,A){return this.graph.isRecursiveVertexResize(p)&&!mxEvent.isAltDown(A.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(p,A){return mxEvent.isControlDown(A.getEvent())||mxEvent.isMetaDown(A.getEvent())};var ia=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return ia.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&
-!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var oa=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return oa.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};
-var qa=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(p){return p.tableHandle||qa.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var p=0;this.graph.isTableRow(this.state.cell)?p=1:this.graph.isTableCell(this.state.cell)&&(p=2);return p};var O=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=
-function(){return O.apply(this,arguments).grow(-this.getSelectionBorderInset())};var Z=null,ca=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==Z&&(Z=mxCellRenderer.defaultShapes.tableLine);var p=ca.apply(this,arguments);if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)){var A=function(za,va,ua){for(var Va=[],Qa=0;Qa<za.length;Qa++){var Ka=za[Qa];Va.push(null==Ka?null:new mxPoint((da+Ka.x+va)*R,(ha+Ka.y+ua)*
-R))}return Va},B=this,F=this.graph,N=F.model,R=F.view.scale,X=this.state,fa=this.selectionBorder,da=this.state.origin.x+F.view.translate.x,ha=this.state.origin.y+F.view.translate.y;null==p&&(p=[]);var wa=F.view.getCellStates(N.getChildCells(this.state.cell,!0));if(0<wa.length){var Ma=N.getChildCells(wa[0].cell,!0),Na=F.getTableLines(this.state.cell,!1,!0),ya=F.getTableLines(this.state.cell,!0,!1);for(N=0;N<wa.length;N++)mxUtils.bind(this,function(za){var va=wa[za],ua=null;if(F.isCellMovable(va.cell)){ua=
-za<wa.length-1?wa[za+1]:null;ua=null!=ua?F.getCellGeometry(ua.cell):null;var Va=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=ya[za]?new Z(ya[za],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);ua.isDashed=fa.isDashed;ua.svgStrokeTolerance++;ua=new mxHandle(va,"row-resize",null,ua);ua.tableHandle=!0;var Qa=0;ua.shape.node.parentNode.insertBefore(ua.shape.node,ua.shape.node.parentNode.firstChild);ua.redraw=function(){if(null!=this.shape){this.shape.stroke=
-0==Qa?mxConstants.NONE:fa.stroke;if(this.shape.constructor==Z)this.shape.line=A(ya[za],0,Qa),this.shape.updateBoundsFromLine();else{var Ua=F.getActualStartSize(X.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+Qa*R;this.shape.bounds.x=X.x+(za==wa.length-1?0:Ua.x*R);this.shape.bounds.width=X.width-(za==wa.length-1?0:Ua.width+Ua.x+R)}this.shape.redraw()}};var Ka=!1;ua.setPosition=function(Ua,Wa,mb){Qa=Math.max(Graph.minTableRowHeight-Ua.height,Wa.y-Ua.y-Ua.height);
-Ka=mxEvent.isShiftDown(mb.getEvent());null!=Va&&Ka&&(Qa=Math.min(Qa,Va.height-Graph.minTableRowHeight))};ua.execute=function(Ua){if(0!=Qa)F.setTableRowHeight(this.state.cell,Qa,!Ka);else if(!B.blockDelayedSelection){var Wa=F.getCellAt(Ua.getGraphX(),Ua.getGraphY())||X.cell;F.graphHandler.selectCellForEvent(Wa,Ua)}Qa=0};ua.reset=function(){Qa=0}}p.push(ua)})(N);for(N=0;N<Ma.length;N++)mxUtils.bind(this,function(za){var va=F.view.getState(Ma[za]),ua=F.getCellGeometry(Ma[za]),Va=null!=ua.alternateBounds?
-ua.alternateBounds:ua;null==va&&(va=new mxCellState(F.view,Ma[za],F.getCellStyle(Ma[za])),va.x=X.x+ua.x*R,va.y=X.y+ua.y*R,va.width=Va.width*R,va.height=Va.height*R,va.updateCachedBounds());ua=za<Ma.length-1?Ma[za+1]:null;ua=null!=ua?F.getCellGeometry(ua):null;var Qa=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=Na[za]?new Z(Na[za],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);ua.isDashed=fa.isDashed;ua.svgStrokeTolerance++;va=new mxHandle(va,"col-resize",
-null,ua);va.tableHandle=!0;var Ka=0;va.shape.node.parentNode.insertBefore(va.shape.node,va.shape.node.parentNode.firstChild);va.redraw=function(){if(null!=this.shape){this.shape.stroke=0==Ka?mxConstants.NONE:fa.stroke;if(this.shape.constructor==Z)this.shape.line=A(Na[za],Ka,0),this.shape.updateBoundsFromLine();else{var Wa=F.getActualStartSize(X.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x=this.state.x+(Va.width+Ka)*R;this.shape.bounds.y=X.y+(za==Ma.length-1?0:Wa.y*R);this.shape.bounds.height=
-X.height-(za==Ma.length-1?0:(Wa.height+Wa.y)*R)}this.shape.redraw()}};var Ua=!1;va.setPosition=function(Wa,mb,ub){Ka=Math.max(Graph.minTableColumnWidth-Va.width,mb.x-Wa.x-Va.width);Ua=mxEvent.isShiftDown(ub.getEvent());null==Qa||Ua||(Ka=Math.min(Ka,Qa.width-Graph.minTableColumnWidth))};va.execute=function(Wa){if(0!=Ka)F.setTableColumnWidth(this.state.cell,Ka,Ua);else if(!B.blockDelayedSelection){var mb=F.getCellAt(Wa.getGraphX(),Wa.getGraphY())||X.cell;F.graphHandler.selectCellForEvent(mb,Wa)}Ka=
-0};va.positionChanged=function(){};va.reset=function(){Ka=0};p.push(va)})(N)}}return null!=p?p.reverse():null};var V=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(p){V.apply(this,arguments);if(null!=this.moveHandles)for(var A=0;A<this.moveHandles.length;A++)null!=this.moveHandles[A]&&(this.moveHandles[A].node.style.visibility=p?"":"hidden");if(null!=this.cornerHandles)for(A=0;A<this.cornerHandles.length;A++)this.cornerHandles[A].node.style.visibility=
-p?"":"hidden"};mxVertexHandler.prototype.isMoveHandlesVisible=function(){return this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)};mxVertexHandler.prototype.refreshMoveHandles=function(){var p=this.isMoveHandlesVisible();p&&null==this.moveHandles?this.moveHandles=this.createMoveHandles():p||null==this.moveHandles||this.destroyMoveHandles();if(p&&null==this.moveHandles){for(p=0;p<this.moveHandles.length;p++)null!=this.moveHandles[p]&&this.moveHandles[p].parentNode.removeChild(this.moveHandles[p]);
-this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var p=this.graph,A=p.model,B=[],F=0;F<A.getChildCount(this.state.cell);F++)mxUtils.bind(this,function(N){if(null!=N&&A.isVertex(N.cell)&&p.isCellMovable(N.cell)){var R=new mxRectangle(0,0,this.rowHandleImage.width,this.rowHandleImage.height);R=new mxImageShape(R,this.rowHandleImage.src);R.rowState=N;R.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;R.init(this.graph.getView().getOverlayPane());
+"",this.textarea.style.overflow="",T.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(q,A){if("0"==mxUtils.getValue(q.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var B=this.graph.getEditingValue(q.cell,A);"1"==mxUtils.getValue(q.style,"nl2Br","1")&&(B=B.replace(/\n/g,"<br/>"));return Graph.sanitizeHtml(B,!0)};mxCellEditorSetEditingValue=mxCellEditor.prototype.setEditingValue;mxCellEditor.prototype.setEditingValue=
+function(q,A){mxCellEditorSetEditingValue.apply(this,arguments);"1"==mxUtils.getValue(q.style,"html","0")&&Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors())};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(q){if("0"==mxUtils.getValue(q.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);
+var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(q.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"),0<A.length&&("<br/>"==A.substring(A.length-5)||"<br>"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("<br"))+"<div><br/></div>")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var K=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(q){this.codeViewMode&&this.toggleViewMode();K.apply(this,arguments);this.focusContainer()};
+mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(q){}};var U=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(q,A){this.graph.getModel().beginUpdate();try{U.apply(this,arguments),""==A&&this.graph.isCellDeletable(q.cell)&&0==this.graph.model.getChildCount(q.cell)&&this.graph.isTransparentState(q)&&this.graph.removeCells([q.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(q){q=
+mxUtils.getValue(q.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);q==mxConstants.NONE&&(q=null);return q};mxCellEditor.prototype.getBorderColor=function(q){q=mxUtils.getValue(q.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null);q==mxConstants.NONE&&(q=null);return q};mxCellEditor.prototype.getMinimumSize=function(q){var A=this.graph.getView().scale;return new mxRectangle(0,0,null==q.text?30:q.text.size*A+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;mxGraphHandler.prototype.isValidDropTarget=
+function(q,A){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(A.getEvent)};mxGraphView.prototype.formatUnitText=function(q){return q?b(q,this.unit):q};mxGraphHandler.prototype.updateHint=function(q){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=a(),this.graph.container.appendChild(this.hint));var A=this.graph.view.translate,B=this.graph.view.scale;q=this.roundLength((this.bounds.x+this.currentDx)/B-A.x);A=this.roundLength((this.bounds.y+
+this.currentDy)/B-A.y);B=this.graph.view.unit;this.hint.innerHTML=b(q,B)+", "+b(A,B);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var Y=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=
+function(q,A){Y.apply(this,arguments);var B=this.graph.getCellStyle(q);if(null==B.childLayout){var F=this.graph.model.getParent(q),N=null!=F?this.graph.getCellGeometry(F):null;if(null!=N&&(B=this.graph.getCellStyle(F),"stackLayout"==B.childLayout)){var R=parseFloat(mxUtils.getValue(B,"stackBorder",mxStackLayout.prototype.border));B="1"==mxUtils.getValue(B,"horizontalStack","1");var X=this.graph.getActualStartSize(F);N=N.clone();B?N.height=A.height+X.y+X.height+2*R:N.width=A.width+X.x+X.width+2*R;
+this.graph.model.setGeometry(F,N)}}};var Q=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function q(fa){B.get(fa)||(B.put(fa,!0),N.push(fa))}for(var A=Q.apply(this,arguments),B=new mxDictionary,F=this.graph.model,N=[],R=0;R<A.length;R++){var X=A[R];this.graph.isTableCell(X)?q(F.getParent(F.getParent(X))):this.graph.isTableRow(X)&&q(F.getParent(X));q(X)}return N};var P=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=
+function(q){return P.apply(this,arguments)&&!mxEvent.isControlDown(q.getEvent())&&!mxEvent.isShiftDown(q.getEvent())};var M=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return M.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var V=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=
+function(q){var A=V.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};var aa=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(q){var A=aa.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var q=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+
+q.x/2,this.bounds.y+this.rotationHandleVSpacing-q.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(q,A){return this.graph.isRecursiveVertexResize(q)&&!mxEvent.isAltDown(A.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(q,A){return mxEvent.isControlDown(A.getEvent())||mxEvent.isMetaDown(A.getEvent())};var ia=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return ia.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&
+!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var na=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return na.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};
+var qa=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(q){return q.tableHandle||qa.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var q=0;this.graph.isTableRow(this.state.cell)?q=1:this.graph.isTableCell(this.state.cell)&&(q=2);return q};var O=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=
+function(){return O.apply(this,arguments).grow(-this.getSelectionBorderInset())};var Z=null,ca=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==Z&&(Z=mxCellRenderer.defaultShapes.tableLine);var q=ca.apply(this,arguments);if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)){var A=function(Ga,wa,ua){for(var Va=[],Qa=0;Qa<Ga.length;Qa++){var Ka=Ga[Qa];Va.push(null==Ka?null:new mxPoint((da+Ka.x+wa)*R,(ha+Ka.y+ua)*
+R))}return Va},B=this,F=this.graph,N=F.model,R=F.view.scale,X=this.state,fa=this.selectionBorder,da=this.state.origin.x+F.view.translate.x,ha=this.state.origin.y+F.view.translate.y;null==q&&(q=[]);var va=F.view.getCellStates(N.getChildCells(this.state.cell,!0));if(0<va.length){var Ma=N.getChildCells(va[0].cell,!0),Na=F.getTableLines(this.state.cell,!1,!0),ya=F.getTableLines(this.state.cell,!0,!1);for(N=0;N<va.length;N++)mxUtils.bind(this,function(Ga){var wa=va[Ga],ua=null;if(F.isCellMovable(wa.cell)){ua=
+Ga<va.length-1?va[Ga+1]:null;ua=null!=ua?F.getCellGeometry(ua.cell):null;var Va=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=ya[Ga]?new Z(ya[Ga],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);ua.isDashed=fa.isDashed;ua.svgStrokeTolerance++;ua=new mxHandle(wa,"row-resize",null,ua);ua.tableHandle=!0;var Qa=0;ua.shape.node.parentNode.insertBefore(ua.shape.node,ua.shape.node.parentNode.firstChild);ua.redraw=function(){if(null!=this.shape){this.shape.stroke=
+0==Qa?mxConstants.NONE:fa.stroke;if(this.shape.constructor==Z)this.shape.line=A(ya[Ga],0,Qa),this.shape.updateBoundsFromLine();else{var Ua=F.getActualStartSize(X.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+Qa*R;this.shape.bounds.x=X.x+(Ga==va.length-1?0:Ua.x*R);this.shape.bounds.width=X.width-(Ga==va.length-1?0:Ua.width+Ua.x+R)}this.shape.redraw()}};var Ka=!1;ua.setPosition=function(Ua,Wa,mb){Qa=Math.max(Graph.minTableRowHeight-Ua.height,Wa.y-Ua.y-Ua.height);
+Ka=mxEvent.isShiftDown(mb.getEvent());null!=Va&&Ka&&(Qa=Math.min(Qa,Va.height-Graph.minTableRowHeight))};ua.execute=function(Ua){if(0!=Qa)F.setTableRowHeight(this.state.cell,Qa,!Ka);else if(!B.blockDelayedSelection){var Wa=F.getCellAt(Ua.getGraphX(),Ua.getGraphY())||X.cell;F.graphHandler.selectCellForEvent(Wa,Ua)}Qa=0};ua.reset=function(){Qa=0}}q.push(ua)})(N);for(N=0;N<Ma.length;N++)mxUtils.bind(this,function(Ga){var wa=F.view.getState(Ma[Ga]),ua=F.getCellGeometry(Ma[Ga]),Va=null!=ua.alternateBounds?
+ua.alternateBounds:ua;null==wa&&(wa=new mxCellState(F.view,Ma[Ga],F.getCellStyle(Ma[Ga])),wa.x=X.x+ua.x*R,wa.y=X.y+ua.y*R,wa.width=Va.width*R,wa.height=Va.height*R,wa.updateCachedBounds());ua=Ga<Ma.length-1?Ma[Ga+1]:null;ua=null!=ua?F.getCellGeometry(ua):null;var Qa=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=Na[Ga]?new Z(Na[Ga],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);ua.isDashed=fa.isDashed;ua.svgStrokeTolerance++;wa=new mxHandle(wa,"col-resize",
+null,ua);wa.tableHandle=!0;var Ka=0;wa.shape.node.parentNode.insertBefore(wa.shape.node,wa.shape.node.parentNode.firstChild);wa.redraw=function(){if(null!=this.shape){this.shape.stroke=0==Ka?mxConstants.NONE:fa.stroke;if(this.shape.constructor==Z)this.shape.line=A(Na[Ga],Ka,0),this.shape.updateBoundsFromLine();else{var Wa=F.getActualStartSize(X.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x=this.state.x+(Va.width+Ka)*R;this.shape.bounds.y=X.y+(Ga==Ma.length-1?0:Wa.y*R);this.shape.bounds.height=
+X.height-(Ga==Ma.length-1?0:(Wa.height+Wa.y)*R)}this.shape.redraw()}};var Ua=!1;wa.setPosition=function(Wa,mb,ub){Ka=Math.max(Graph.minTableColumnWidth-Va.width,mb.x-Wa.x-Va.width);Ua=mxEvent.isShiftDown(ub.getEvent());null==Qa||Ua||(Ka=Math.min(Ka,Qa.width-Graph.minTableColumnWidth))};wa.execute=function(Wa){if(0!=Ka)F.setTableColumnWidth(this.state.cell,Ka,Ua);else if(!B.blockDelayedSelection){var mb=F.getCellAt(Wa.getGraphX(),Wa.getGraphY())||X.cell;F.graphHandler.selectCellForEvent(mb,Wa)}Ka=
+0};wa.positionChanged=function(){};wa.reset=function(){Ka=0};q.push(wa)})(N)}}return null!=q?q.reverse():null};var W=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(q){W.apply(this,arguments);if(null!=this.moveHandles)for(var A=0;A<this.moveHandles.length;A++)null!=this.moveHandles[A]&&(this.moveHandles[A].node.style.visibility=q?"":"hidden");if(null!=this.cornerHandles)for(A=0;A<this.cornerHandles.length;A++)this.cornerHandles[A].node.style.visibility=
+q?"":"hidden"};mxVertexHandler.prototype.isMoveHandlesVisible=function(){return this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)};mxVertexHandler.prototype.refreshMoveHandles=function(){var q=this.isMoveHandlesVisible();q&&null==this.moveHandles?this.moveHandles=this.createMoveHandles():q||null==this.moveHandles||this.destroyMoveHandles();if(q&&null==this.moveHandles){for(q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].parentNode.removeChild(this.moveHandles[q]);
+this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var q=this.graph,A=q.model,B=[],F=0;F<A.getChildCount(this.state.cell);F++)mxUtils.bind(this,function(N){if(null!=N&&A.isVertex(N.cell)&&q.isCellMovable(N.cell)){var R=new mxRectangle(0,0,this.rowHandleImage.width,this.rowHandleImage.height);R=new mxImageShape(R,this.rowHandleImage.src);R.rowState=N;R.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;R.init(this.graph.getView().getOverlayPane());
R.node.style.cursor="move";mxEvent.addGestureListeners(R.node,mxUtils.bind(this,function(X){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);!this.graph.isToggleEvent(X)&&this.graph.isCellSelected(N.cell)||this.graph.selectCellForEvent(N.cell,X);mxEvent.isPopupTrigger(X)||(this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(X),mxEvent.getClientY(X),this.graph.getSelectionCells()),this.graph.graphHandler.cellWasClicked=!0,this.graph.isMouseTrigger=mxEvent.isMouseEvent(X),
-this.graph.isMouseDown=!0);mxEvent.consume(X)}),null,mxUtils.bind(this,function(X){mxEvent.isPopupTrigger(X)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(X),mxEvent.getClientY(X),N.cell,X),mxEvent.consume(X))}));B.push(R)}else B.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return B};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=this.moveHandles){for(var p=0;p<this.moveHandles.length;p++)null!=this.moveHandles[p]&&this.moveHandles[p].destroy();
-this.moveHandles=null}};mxVertexHandler.prototype.destroyCornerHandles=function(){if(null!=this.cornerHandles){for(var p=0;p<this.cornerHandles.length;p++)null!=this.cornerHandles[p]&&null!=this.cornerHandles[p].node&&null!=this.cornerHandles[p].node.parentNode&&this.cornerHandles[p].node.parentNode.removeChild(this.cornerHandles[p].node);this.cornerHandles=null}};var ja=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ja.apply(this,arguments);this.destroyMoveHandles();
-this.destroyCornerHandles();if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&this.graph.isCellMovable(this.state.cell)&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=[];for(var p=0;4>p;p++){var A=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());
-this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();p=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(p,A)};var H=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var p=new mxPoint(0,0),A=this.tolerance,B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&&mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||
+this.graph.isMouseDown=!0);mxEvent.consume(X)}),null,mxUtils.bind(this,function(X){mxEvent.isPopupTrigger(X)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(X),mxEvent.getClientY(X),N.cell,X),mxEvent.consume(X))}));B.push(R)}else B.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return B};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=this.moveHandles){for(var q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].destroy();
+this.moveHandles=null}};mxVertexHandler.prototype.destroyCornerHandles=function(){if(null!=this.cornerHandles){for(var q=0;q<this.cornerHandles.length;q++)null!=this.cornerHandles[q]&&null!=this.cornerHandles[q].node&&null!=this.cornerHandles[q].node.parentNode&&this.cornerHandles[q].node.parentNode.removeChild(this.cornerHandles[q].node);this.cornerHandles=null}};var ja=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ja.apply(this,arguments);this.destroyMoveHandles();
+this.destroyCornerHandles();if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&this.graph.isCellMovable(this.state.cell)&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=[];for(var q=0;4>q;q++){var A=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());
+this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();q=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(q,A)};var H=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var q=new mxPoint(0,0),A=this.tolerance,B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&&mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||
this.graph.cellEditor.getEditingCell()==this.state.cell;if(!B&&null!=this.customHandles)for(var F=0;F<this.customHandles.length;F++)if(null!=this.customHandles[F]&&null!=this.customHandles[F].shape&&null!=this.customHandles[F].shape.bounds){var N=this.customHandles[F].shape.bounds,R=N.getCenterX(),X=N.getCenterY();if(Math.abs(this.state.x-R)<N.width/2||Math.abs(this.state.y-X)<N.height/2||Math.abs(this.state.x+this.state.width-R)<N.width/2||Math.abs(this.state.y+this.state.height-X)<N.height/2){B=
-!0;break}}B&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(A/=2,this.graph.isTable(this.state.cell)&&(A+=7),p.x=this.sizers[0].bounds.width+A,p.y=this.sizers[0].bounds.height+A):p=H.apply(this,arguments);return p};mxVertexHandler.prototype.updateHint=function(p){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{p=this.state.view.scale;
-var A=this.state.view.unit;this.hint.innerHTML=b(this.roundLength(this.bounds.width/p),A)+" x "+b(this.roundLength(this.bounds.height/p),A)}p=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==p&&(p=this.bounds);this.hint.style.left=p.x+Math.round((p.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=p.y+p.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=
-function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var ea=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){ea.apply(this,arguments);var p=this.graph.getLinkForCell(this.state.cell),A=this.graph.getLinksForState(this.state);this.updateLinkHint(p,A)};var la=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(p,A){la.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&
-null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};var sa=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(p,A){sa.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(p,A,B){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));var F=this.graph.view.translate,
+!0;break}}B&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(A/=2,this.graph.isTable(this.state.cell)&&(A+=7),q.x=this.sizers[0].bounds.width+A,q.y=this.sizers[0].bounds.height+A):q=H.apply(this,arguments);return q};mxVertexHandler.prototype.updateHint=function(q){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{q=this.state.view.scale;
+var A=this.state.view.unit;this.hint.innerHTML=b(this.roundLength(this.bounds.width/q),A)+" x "+b(this.roundLength(this.bounds.height/q),A)}q=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==q&&(q=this.bounds);this.hint.style.left=q.x+Math.round((q.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=q.y+q.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=
+function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var ea=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){ea.apply(this,arguments);var q=this.graph.getLinkForCell(this.state.cell),A=this.graph.getLinksForState(this.state);this.updateLinkHint(q,A)};var oa=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(q,A){oa.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&
+null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};var sa=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(q,A){sa.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(q,A,B){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));var F=this.graph.view.translate,
N=this.graph.view.scale,R=this.roundLength(A.x/N-F.x);F=this.roundLength(A.y/N-F.y);var X=this.graph.view.unit;this.hint.innerHTML=b(R,X)+", "+b(F,X);this.hint.style.visibility="visible";null!=B&&(B.view.updateEdgeBounds(B),this.hint.innerHTML+=" ("+(X==mxConstants.POINTS?Math.round(B.length/N):b(B.length/N,X))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(B=this.constraintHandler.currentConstraint.point,
-this.hint.innerHTML="["+Math.round(100*B.x)+"%, "+Math.round(100*B.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(p.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(p.getGraphY(),A.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');
+this.hint.innerHTML="["+Math.round(100*B.x)+"%, "+Math.round(100*B.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(q.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(q.getGraphY(),A.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');
Graph.prototype.collapsedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 4.5 2 L 4.5 7 M 2 4.5 L 7 4.5 z" stroke="#000"/>');mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle=
Graph.createSvgImage(18,18,'<circle cx="9" cy="9" r="5" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'<circle cx="9" cy="9" r="6" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,'<path d="m 8 3 L 13 8 L 8 13 L 3 8 z" stroke="#fff" fill="#fca000"/>');HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="6" stroke="#fff" fill="#01bd22"/><path d="m 8 8 L 14 14M 8 14 L 14 8" stroke="#fff"/>');
HoverIcons.prototype.endFixedHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="7" stroke="#fff" fill="#01bd22"/><path d="m 8 8 L 14 14M 8 14 L 14 8" stroke="#fff"/>');HoverIcons.prototype.terminalHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="6" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/><circle cx="11" cy="11" r="3" stroke="#fff" fill="transparent"/>');HoverIcons.prototype.endTerminalHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="7" stroke="#fff" fill="'+
@@ -2944,38 +2959,38 @@ HoverIcons.prototype.arrowFill+'"/><circle cx="11" cy="11" r="3" stroke="#fff" f
HoverIcons.prototype.endTerminalHandle;mxEdgeHandler.prototype.fixedHandleImage=HoverIcons.prototype.fixedHandle;mxEdgeHandler.prototype.endFixedHandleImage=HoverIcons.prototype.endFixedHandle;mxEdgeHandler.prototype.labelHandleImage=HoverIcons.prototype.secondaryHandle;mxOutline.prototype.sizerImage=HoverIcons.prototype.mainHandle;null!=window.Sidebar&&(Sidebar.prototype.triangleUp=HoverIcons.prototype.triangleUp,Sidebar.prototype.triangleRight=HoverIcons.prototype.triangleRight,Sidebar.prototype.triangleDown=
HoverIcons.prototype.triangleDown,Sidebar.prototype.triangleLeft=HoverIcons.prototype.triangleLeft,Sidebar.prototype.refreshTarget=HoverIcons.prototype.refreshTarget,Sidebar.prototype.roundDrop=HoverIcons.prototype.roundDrop);mxVertexHandler.prototype.rotationEnabled=!0;mxVertexHandler.prototype.manageSizers=!0;mxVertexHandler.prototype.livePreview=!0;mxGraphHandler.prototype.maxLivePreview=16;mxGraphHandler.prototype.previewColor="light-dark(#000000, #cccccc)";mxRubberband.prototype.defaultOpacity=
30;mxConnectionHandler.prototype.outlineConnect=!0;mxCellHighlight.prototype.keepOnTop=!0;mxVertexHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.dblClickRemoveEnabled=!0;mxEdgeHandler.prototype.straightRemoveEnabled=!0;mxEdgeHandler.prototype.virtualBendsEnabled=!0;mxEdgeHandler.prototype.mergeRemoveEnabled=!0;mxEdgeHandler.prototype.manageLabelHandle=!0;mxEdgeHandler.prototype.outlineConnect=!0;mxEdgeHandler.prototype.isAddVirtualBendEvent=
-function(p){return!mxEvent.isShiftDown(p.getEvent())};mxEdgeHandler.prototype.isCustomHandleEvent=function(p){return!mxEvent.isShiftDown(p.getEvent())};if(Graph.touchStyle){if(mxClient.IS_TOUCH||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)mxShape.prototype.svgStrokeTolerance=18,mxVertexHandler.prototype.tolerance=12,mxEdgeHandler.prototype.tolerance=12,Graph.prototype.tolerance=12,mxVertexHandler.prototype.rotationHandleVSpacing=-16,mxConstraintHandler.prototype.getTolerance=function(p){return mxEvent.isMouseEvent(p.getEvent())?
-4:this.graph.getTolerance()};mxPanningHandler.prototype.isPanningTrigger=function(p){var A=p.getEvent();return null==p.getState()&&!mxEvent.isMouseEvent(A)||mxEvent.isPopupTrigger(A)&&(null==p.getState()||mxEvent.isControlDown(A)||mxEvent.isShiftDown(A))}}else mxPanningHandler.prototype.isPanningTrigger=function(p){var A=p.getEvent();return mxEvent.isLeftMouseButton(A)&&(this.useLeftButtonForPanning&&null==p.getState()||mxEvent.isControlDown(A)&&!mxEvent.isShiftDown(A))||this.usePopupTrigger&&mxEvent.isPopupTrigger(A)};
-mxRubberband.prototype.isSpaceEvent=function(p){return this.graph.isEnabled()&&!this.graph.isCellLocked(this.graph.getDefaultParent())&&(mxEvent.isControlDown(p.getEvent())||mxEvent.isMetaDown(p.getEvent()))&&mxEvent.isShiftDown(p.getEvent())&&mxEvent.isAltDown(p.getEvent())};mxRubberband.prototype.cancelled=!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(p,A){if(this.cancelled)this.cancelled=!1,A.consume();else{var B=
-null!=this.div&&"none"!=this.div.style.display,F=null,N=null,R=p=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(F=this.first.x,N=this.first.y,p=(this.currentX-F)/this.graph.view.scale,R=(this.currentY-N)/this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(p=this.graph.snap(p),R=this.graph.snap(R),this.graph.isGridEnabled()||(Math.abs(p)<this.graph.tolerance&&(p=0),Math.abs(R)<this.graph.tolerance&&(R=0))));this.reset();if(B){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();
-try{var X=this.graph.getCellsBeyond(F,N,this.graph.getDefaultParent(),!0,!0);for(B=0;B<X.length;B++)if(this.graph.isCellMovable(X[B])){var fa=this.graph.view.getState(X[B]),da=this.graph.getCellGeometry(X[B]);null!=fa&&null!=da&&(da=da.clone(),da.translate(p,R),this.graph.model.setGeometry(X[B],da))}}finally{this.graph.model.endUpdate()}}else X=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(X,A.getEvent());A.consume()}}};mxRubberband.prototype.mouseMove=function(p,A){if(!A.isConsumed()&&
-null!=this.first){var B=mxUtils.getScrollOrigin(this.graph.container);p=mxUtils.getOffset(this.graph.container);B.x-=p.x;B.y-=p.y;p=A.getX()+B.x;B=A.getY()+B.y;var F=this.first.x-p,N=this.first.y-B,R=this.graph.tolerance;if(null!=this.div||Math.abs(F)>R||Math.abs(N)>R)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(p,B),this.isSpaceEvent(A)?(p=this.x+this.width,B=this.y+this.height,F=this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(this.width=this.graph.snap(this.width/
-F)*F,this.height=this.graph.snap(this.height/F)*F,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=p-this.width),this.y<this.first.y&&(this.y=B-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+
+function(q){return!mxEvent.isShiftDown(q.getEvent())};mxEdgeHandler.prototype.isCustomHandleEvent=function(q){return!mxEvent.isShiftDown(q.getEvent())};if(Graph.touchStyle){if(mxClient.IS_TOUCH||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)mxShape.prototype.svgStrokeTolerance=18,mxVertexHandler.prototype.tolerance=12,mxEdgeHandler.prototype.tolerance=12,Graph.prototype.tolerance=12,mxVertexHandler.prototype.rotationHandleVSpacing=-16,mxConstraintHandler.prototype.getTolerance=function(q){return mxEvent.isMouseEvent(q.getEvent())?
+4:this.graph.getTolerance()};mxPanningHandler.prototype.isPanningTrigger=function(q){var A=q.getEvent();return null==q.getState()&&!mxEvent.isMouseEvent(A)||mxEvent.isPopupTrigger(A)&&(null==q.getState()||mxEvent.isControlDown(A)||mxEvent.isShiftDown(A))}}else mxPanningHandler.prototype.isPanningTrigger=function(q){var A=q.getEvent();return mxEvent.isLeftMouseButton(A)&&(this.useLeftButtonForPanning&&null==q.getState()||mxEvent.isControlDown(A)&&!mxEvent.isShiftDown(A))||this.usePopupTrigger&&mxEvent.isPopupTrigger(A)};
+mxRubberband.prototype.isSpaceEvent=function(q){return this.graph.isEnabled()&&!this.graph.isCellLocked(this.graph.getDefaultParent())&&(mxEvent.isControlDown(q.getEvent())||mxEvent.isMetaDown(q.getEvent()))&&mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())};mxRubberband.prototype.cancelled=!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(q,A){if(this.cancelled)this.cancelled=!1,A.consume();else{var B=
+null!=this.div&&"none"!=this.div.style.display,F=null,N=null,R=q=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(F=this.first.x,N=this.first.y,q=(this.currentX-F)/this.graph.view.scale,R=(this.currentY-N)/this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(q=this.graph.snap(q),R=this.graph.snap(R),this.graph.isGridEnabled()||(Math.abs(q)<this.graph.tolerance&&(q=0),Math.abs(R)<this.graph.tolerance&&(R=0))));this.reset();if(B){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();
+try{var X=this.graph.getCellsBeyond(F,N,this.graph.getDefaultParent(),!0,!0);for(B=0;B<X.length;B++)if(this.graph.isCellMovable(X[B])){var fa=this.graph.view.getState(X[B]),da=this.graph.getCellGeometry(X[B]);null!=fa&&null!=da&&(da=da.clone(),da.translate(q,R),this.graph.model.setGeometry(X[B],da))}}finally{this.graph.model.endUpdate()}}else X=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(X,A.getEvent());A.consume()}}};mxRubberband.prototype.mouseMove=function(q,A){if(!A.isConsumed()&&
+null!=this.first){var B=mxUtils.getScrollOrigin(this.graph.container);q=mxUtils.getOffset(this.graph.container);B.x-=q.x;B.y-=q.y;q=A.getX()+B.x;B=A.getY()+B.y;var F=this.first.x-q,N=this.first.y-B,R=this.graph.tolerance;if(null!=this.div||Math.abs(F)>R||Math.abs(N)>R)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(q,B),this.isSpaceEvent(A)?(q=this.x+this.width,B=this.y+this.height,F=this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(this.width=this.graph.snap(this.width/
+F)*F,this.height=this.graph.snap(this.height/F)*F,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=q-this.width),this.y<this.first.y&&(this.y=B-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+
"px",this.div.style.borderWidth=0>=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)),this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor=
-"",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),A.consume()}};var Pa=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);Pa.apply(this,arguments)};var ma=(new Date).getTime(),Ca=0,Da=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(p,
-A,B,F){Da.apply(this,arguments);B!=this.currentTerminalState?(ma=(new Date).getTime(),Ca=0):Ca=(new Date).getTime()-ma;this.currentTerminalState=B};var Ga=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(p){return mxEvent.isShiftDown(p.getEvent())&&mxEvent.isAltDown(p.getEvent())?!1:null!=this.currentTerminalState&&p.getState()==this.currentTerminalState&&2E3<Ca||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,
-"outlineConnect","1"))&&Ga.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(p,A,B){A=null!=p&&0==p;var F=this.state.getVisibleTerminalState(A);p=null!=p&&null!=this.state.absolutePoints&&(0==p||p>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==p)?this.graph.getConnectionConstraint(this.state,F,A):null;B=null!=(null!=p?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(A),p):null)?B?this.endFixedHandleImage:this.fixedHandleImage:
-null!=p&&null!=F?B?this.endTerminalHandleImage:this.terminalHandleImage:B?this.endHandleImage:this.handleImage;if(null!=B)return B=new mxImageShape(new mxRectangle(0,0,B.width,B.height),B.src),B.preserveImageAspect=!1,B;B=mxConstants.HANDLE_SIZE;this.preferHtml&&--B;return new mxRectangleShape(new mxRectangle(0,0,B,B),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var Ia=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(p,A,B,F){F=A==mxEvent.ROTATION_HANDLE?
-HoverIcons.prototype.rotationHandle:A==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:F;return Ia.apply(this,arguments)};var Ha=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(p){if(null!=p&&1==p.length){var A=this.graph.getModel(),B=A.getParent(p[0]),F=this.graph.getCellGeometry(p[0]);if(A.isEdge(B)&&null!=F&&F.relative&&(A=this.graph.view.getState(p[0]),null!=A&&2>A.width&&2>A.height&&null!=A.text&&null!=A.text.boundingBox))return mxRectangle.fromRectangle(A.text.boundingBox)}return Ha.apply(this,
-arguments)};var Ja=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var p=Ja.apply(this,arguments),A=[],B=0;B<p.length;B++)"1"!=mxUtils.getValue(p[B].style,"part","0")&&A.push(p[B]);return A};var ta=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(p){var A=this.graph.getModel(),B=A.getParent(p.cell),F=this.graph.getCellGeometry(p.cell);return A.isEdge(B)&&null!=F&&F.relative&&2>p.width&&2>p.height&&null!=
-p.text&&null!=p.text.boundingBox?(A=p.text.unrotatedBoundingBox||p.text.boundingBox,new mxRectangle(Math.round(A.x),Math.round(A.y),Math.round(A.width),Math.round(A.height))):ta.apply(this,arguments)};var La=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(p,A){var B=this.graph.getModel(),F=B.getParent(this.state.cell),N=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!B.isEdge(F)||null==N||!N.relative||null==this.state||
-2<=this.state.width||2<=this.state.height)&&La.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var p=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),A=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&p==mxConstants.NONE&&A==mxConstants.NONE?(p=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,
-p,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Xa=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(p,A){Xa.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Ya=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=
-function(p,A){Ya.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(p,A){try{if(null==p&&(null==A||0==A.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),
-this.linkHint=null);else if(null!=p||null!=A&&0<A.length){var B=document.createElement("img");B.className="geAdaptiveAsset";B.setAttribute("src",Editor.editImage);B.setAttribute("title",mxResources.get("editLink"));B.setAttribute("width","14");B.setAttribute("height","14");B.style.paddingLeft="8px";B.style.marginLeft="auto";B.style.marginBottom="-1px";B.style.cursor="pointer";var F=B.cloneNode(!0);F.setAttribute("src",Editor.trashImage);F.setAttribute("title",mxResources.get("removeIt",[mxResources.get("link")]));
-F.style.paddingLeft="4px";F.style.marginLeft="0";null==this.linkHint&&(this.linkHint=a(),mxUtils.setPrefixedStyle(this.linkHint.style,"transform","translate(-50%,0)"),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerText="";if(null!=p){var N=document.createElement("div");
-N.style.display="flex";N.style.alignItems="center";N.appendChild(this.graph.createLinkForHint(p,null,this.state.cell));this.linkHint.appendChild(N);if(this.graph.isEnabled()&&"function"===typeof this.graph.editLink&&!this.graph.isCellLocked(this.state.cell)){var R=B.cloneNode(!0);N.appendChild(R);mxEvent.addListener(R,"click",mxUtils.bind(this,function(fa){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(fa)}));var X=F.cloneNode(!0);N.appendChild(X);mxEvent.addListener(X,
-"click",mxUtils.bind(this,function(fa){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(fa)}))}}if(null!=A)for(N=0;N<A.length;N++)mxUtils.bind(this,function(fa,da){var ha=document.createElement("div");ha.style.display="flex";ha.style.alignItems="center";ha.style.marginTop=null!=p||0<da?"6px":"0px";ha.appendChild(this.graph.createLinkForHint(fa.getAttribute("href"),mxUtils.getTextContent(fa),this.state.cell));var wa=B.cloneNode(!0);ha.appendChild(wa);var Ma=mxUtils.bind(this,function(Na){var ya=
-document.createElement("div");ya.innerHTML=Graph.sanitizeHtml(this.graph.getLabel(this.state.cell));var za=ya.getElementsByTagName("a")[da];if(null!=za){if(null==Na||""==Na){for(Na=za.cloneNode(!0).firstChild;null!=Na;)za.parentNode.insertBefore(Na.cloneNode(!0),za),Na=Na.nextSibling;za.parentNode.removeChild(za)}else za.setAttribute("href",Na);this.graph.labelChanged(this.state.cell,ya.innerHTML)}});mxEvent.addListener(wa,"click",mxUtils.bind(this,function(Na){this.graph.showLinkDialog(fa.getAttribute("href")||
-"",mxResources.get("ok"),Ma);mxEvent.consume(Na)}));wa=F.cloneNode(!0);ha.appendChild(wa);mxEvent.addListener(wa,"click",mxUtils.bind(this,function(Na){Ma();mxEvent.consume(Na)}));this.linkHint.appendChild(ha)})(A[N],N)}null!=this.linkHint&&Graph.sanitizeNode(this.linkHint)}catch(fa){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var cb=mxEdgeHandler.prototype.createConstraintHandler;mxEdgeHandler.prototype.createConstraintHandler=function(){var p=cb.apply(this,
-arguments);p.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});return p};var fb=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){fb.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var pb=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var p=0;p<this.moveHandles.length;p++)null!=
-this.moveHandles[p]&&(this.moveHandles[p].bounds.x=Math.round(this.moveHandles[p].rowState.x+this.moveHandles[p].rowState.width-this.moveHandles[p].bounds.width/2),this.moveHandles[p].bounds.y=Math.round(this.moveHandles[p].rowState.y+(this.moveHandles[p].rowState.height-this.moveHandles[p].bounds.height)/2),this.moveHandles[p].redraw());if(null!=this.cornerHandles){p=this.getSelectionBorderInset();var A=this.cornerHandles,B=A[0].bounds.height/2;A[0].bounds.x=this.state.x-A[0].bounds.width/2+p;A[0].bounds.y=
-this.state.y-B+p;A[0].redraw();A[1].bounds.x=A[0].bounds.x+this.state.width-2*p;A[1].bounds.y=A[0].bounds.y;A[1].redraw();A[2].bounds.x=A[0].bounds.x;A[2].bounds.y=this.state.y+this.state.height-2*p;A[2].redraw();A[3].bounds.x=A[1].bounds.x;A[3].bounds.y=A[2].bounds.y;A[3].redraw();for(p=0;p<this.cornerHandles.length;p++)this.cornerHandles[p].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.setAttribute("title",
-mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");pb.apply(this);null!=this.state&&null!=this.linkHint&&(p=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),A=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),B=mxUtils.getBoundingBox(A,this.state.style[mxConstants.STYLE_ROTATION]||"0",p),p=null!=B?mxUtils.getBoundingBox(this.state,
-this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,A=null!=this.state.text?this.state.text.boundingBox:null,null==B&&(B=this.state),B=B.y+B.height,null!=A&&(B=Math.max(B,A.y+A.height)),this.linkHint.style.left=p.x+p.width/2+"px",this.linkHint.style.top=Math.round(B+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var gb=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){gb.apply(this,arguments);
+"",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),A.consume()}};var Pa=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);Pa.apply(this,arguments)};var la=(new Date).getTime(),Ba=0,Ca=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(q,
+A,B,F){Ca.apply(this,arguments);B!=this.currentTerminalState?(la=(new Date).getTime(),Ba=0):Ba=(new Date).getTime()-la;this.currentTerminalState=B};var Fa=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(q){return mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())?!1:null!=this.currentTerminalState&&q.getState()==this.currentTerminalState&&2E3<Ba||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,
+"outlineConnect","1"))&&Fa.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(q,A,B){A=null!=q&&0==q;var F=this.state.getVisibleTerminalState(A);q=null!=q&&null!=this.state.absolutePoints&&(0==q||q>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==q)?this.graph.getConnectionConstraint(this.state,F,A):null;B=null!=(null!=q?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(A),q):null)?B?this.endFixedHandleImage:this.fixedHandleImage:
+null!=q&&null!=F?B?this.endTerminalHandleImage:this.terminalHandleImage:B?this.endHandleImage:this.handleImage;if(null!=B)return B=new mxImageShape(new mxRectangle(0,0,B.width,B.height),B.src),B.preserveImageAspect=!1,B;B=mxConstants.HANDLE_SIZE;this.preferHtml&&--B;return new mxRectangleShape(new mxRectangle(0,0,B,B),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var Ia=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(q,A,B,F){F=A==mxEvent.ROTATION_HANDLE?
+HoverIcons.prototype.rotationHandle:A==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:F;return Ia.apply(this,arguments)};var Ha=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(q){if(null!=q&&1==q.length){var A=this.graph.getModel(),B=A.getParent(q[0]),F=this.graph.getCellGeometry(q[0]);if(A.isEdge(B)&&null!=F&&F.relative&&(A=this.graph.view.getState(q[0]),null!=A&&2>A.width&&2>A.height&&null!=A.text&&null!=A.text.boundingBox))return mxRectangle.fromRectangle(A.text.boundingBox)}return Ha.apply(this,
+arguments)};var Ja=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var q=Ja.apply(this,arguments),A=[],B=0;B<q.length;B++)"1"!=mxUtils.getValue(q[B].style,"part","0")&&A.push(q[B]);return A};var ta=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(q){var A=this.graph.getModel(),B=A.getParent(q.cell),F=this.graph.getCellGeometry(q.cell);return A.isEdge(B)&&null!=F&&F.relative&&2>q.width&&2>q.height&&null!=
+q.text&&null!=q.text.boundingBox?(A=q.text.unrotatedBoundingBox||q.text.boundingBox,new mxRectangle(Math.round(A.x),Math.round(A.y),Math.round(A.width),Math.round(A.height))):ta.apply(this,arguments)};var La=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(q,A){var B=this.graph.getModel(),F=B.getParent(this.state.cell),N=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!B.isEdge(F)||null==N||!N.relative||null==this.state||
+2<=this.state.width||2<=this.state.height)&&La.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var q=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),A=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&q==mxConstants.NONE&&A==mxConstants.NONE?(q=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,
+q,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Xa=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(q,A){Xa.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Ya=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=
+function(q,A){Ya.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(q,A){try{if(null==q&&(null==A||0==A.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),
+this.linkHint=null);else if(null!=q||null!=A&&0<A.length){var B=document.createElement("img");B.className="geAdaptiveAsset";B.setAttribute("src",Editor.editImage);B.setAttribute("title",mxResources.get("editLink"));B.setAttribute("width","14");B.setAttribute("height","14");B.style.paddingLeft="8px";B.style.marginLeft="auto";B.style.marginBottom="-1px";B.style.cursor="pointer";var F=B.cloneNode(!0);F.setAttribute("src",Editor.trashImage);F.setAttribute("title",mxResources.get("removeIt",[mxResources.get("link")]));
+F.style.paddingLeft="4px";F.style.marginLeft="0";null==this.linkHint&&(this.linkHint=a(),mxUtils.setPrefixedStyle(this.linkHint.style,"transform","translate(-50%,0)"),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerText="";if(null!=q){var N=document.createElement("div");
+N.style.display="flex";N.style.alignItems="center";N.appendChild(this.graph.createLinkForHint(q,null,this.state.cell));this.linkHint.appendChild(N);if(this.graph.isEnabled()&&"function"===typeof this.graph.editLink&&!this.graph.isCellLocked(this.state.cell)){var R=B.cloneNode(!0);N.appendChild(R);mxEvent.addListener(R,"click",mxUtils.bind(this,function(fa){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(fa)}));var X=F.cloneNode(!0);N.appendChild(X);mxEvent.addListener(X,
+"click",mxUtils.bind(this,function(fa){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(fa)}))}}if(null!=A)for(N=0;N<A.length;N++)mxUtils.bind(this,function(fa,da){var ha=document.createElement("div");ha.style.display="flex";ha.style.alignItems="center";ha.style.marginTop=null!=q||0<da?"6px":"0px";ha.appendChild(this.graph.createLinkForHint(fa.getAttribute("href"),mxUtils.getTextContent(fa),this.state.cell));var va=B.cloneNode(!0);ha.appendChild(va);var Ma=mxUtils.bind(this,function(Na){var ya=
+document.createElement("div");ya.innerHTML=Graph.sanitizeHtml(this.graph.getLabel(this.state.cell));var Ga=ya.getElementsByTagName("a")[da];if(null!=Ga){if(null==Na||""==Na){for(Na=Ga.cloneNode(!0).firstChild;null!=Na;)Ga.parentNode.insertBefore(Na.cloneNode(!0),Ga),Na=Na.nextSibling;Ga.parentNode.removeChild(Ga)}else Ga.setAttribute("href",Na);this.graph.labelChanged(this.state.cell,ya.innerHTML)}});mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){this.graph.showLinkDialog(fa.getAttribute("href")||
+"",mxResources.get("ok"),Ma);mxEvent.consume(Na)}));va=F.cloneNode(!0);ha.appendChild(va);mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){Ma();mxEvent.consume(Na)}));this.linkHint.appendChild(ha)})(A[N],N)}null!=this.linkHint&&Graph.sanitizeNode(this.linkHint)}catch(fa){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var cb=mxEdgeHandler.prototype.createConstraintHandler;mxEdgeHandler.prototype.createConstraintHandler=function(){var q=cb.apply(this,
+arguments);q.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});return q};var fb=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){fb.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var pb=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var q=0;q<this.moveHandles.length;q++)null!=
+this.moveHandles[q]&&(this.moveHandles[q].bounds.x=Math.round(this.moveHandles[q].rowState.x+this.moveHandles[q].rowState.width-this.moveHandles[q].bounds.width/2),this.moveHandles[q].bounds.y=Math.round(this.moveHandles[q].rowState.y+(this.moveHandles[q].rowState.height-this.moveHandles[q].bounds.height)/2),this.moveHandles[q].redraw());if(null!=this.cornerHandles){q=this.getSelectionBorderInset();var A=this.cornerHandles,B=A[0].bounds.height/2;A[0].bounds.x=this.state.x-A[0].bounds.width/2+q;A[0].bounds.y=
+this.state.y-B+q;A[0].redraw();A[1].bounds.x=A[0].bounds.x+this.state.width-2*q;A[1].bounds.y=A[0].bounds.y;A[1].redraw();A[2].bounds.x=A[0].bounds.x;A[2].bounds.y=this.state.y+this.state.height-2*q;A[2].redraw();A[3].bounds.x=A[1].bounds.x;A[3].bounds.y=A[2].bounds.y;A[3].redraw();for(q=0;q<this.cornerHandles.length;q++)this.cornerHandles[q].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.setAttribute("title",
+mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");pb.apply(this);null!=this.state&&null!=this.linkHint&&(q=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),A=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),B=mxUtils.getBoundingBox(A,this.state.style[mxConstants.STYLE_ROTATION]||"0",q),q=null!=B?mxUtils.getBoundingBox(this.state,
+this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,A=null!=this.state.text?this.state.text.boundingBox:null,null==B&&(B=this.state),B=B.y+B.height,null!=A&&(B=Math.max(B,A.y+A.height)),this.linkHint.style.left=q.x+q.width/2+"px",this.linkHint.style.top=Math.round(B+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var gb=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){gb.apply(this,arguments);
this.destroyMoveHandles();this.destroyCornerHandles();null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var ab=mxEdgeHandler.prototype.redrawHandles;
-mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(ab.apply(this),null!=this.state&&null!=this.linkHint)){var p=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(p=new mxRectangle(p.x,p.y,p.width,p.height),p.add(this.state.text.bounds));this.linkHint.style.left=p.x+p.width/2+"px";this.linkHint.style.top=Math.round(p.y+p.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var ib=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=
-function(){ib.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var eb=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){eb.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();Format=function(a,b){this.editorUi=a;this.container=b};Format.inactiveTabBackgroundColor="light-dark(#e4e4e4, #000000)";Format.classicFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 10 2 L 5 8 L 10 14 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);
+mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(ab.apply(this),null!=this.state&&null!=this.linkHint)){var q=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(q=new mxRectangle(q.x,q.y,q.width,q.height),q.add(this.state.text.bounds));this.linkHint.style.left=q.x+q.width/2+"px";this.linkHint.style.top=Math.round(q.y+q.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var ib=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=
+function(){ib.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var eb=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){eb.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();Format=function(a,b){this.editorUi=a;this.container=b};Format.inactiveTabBackgroundColor="light-dark(#e4e4e4, #000000)";Format.noMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.classicFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 10 2 L 5 8 L 10 14 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);
Format.classicThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 4 L 3 8 L 8 12 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.openFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 0 L 0 8 L 8 16 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);
Format.openThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 4 L 0 8 L 8 12 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);Format.openAsyncFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 4 L 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);
Format.blockFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 2 L 8 14 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.blockThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 4 L 8 12 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);
@@ -2992,51 +3007,58 @@ Format.ERmandOneMarkerImage=Graph.createSvgImage(20,22,'<path transform="transla
Format.ERoneToManyMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 2 L 12 8 L 0 14 M 15 2 L 15 14 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);Format.ERzeroToOneMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 8 A 5 5 0 0 1 13 3 A 5 5 0 0 1 18 8 A 5 5 0 0 1 13 13 A 5 5 0 0 1 8 8 Z M 0 8 L 8 8 M 18 8 L 24 8 M 4 3 L 4 13" stroke="#404040" fill="transparent"/>',32,20);
Format.ERzeroToManyMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 8 A 5 5 0 0 1 13 3 A 5 5 0 0 1 18 8 A 5 5 0 0 1 13 13 A 5 5 0 0 1 8 8 Z M 0 8 L 8 8 M 18 8 L 24 8 M 0 3 L 8 8 L 0 13" stroke="#404040" fill="transparent"/>',32,20);Format.EROneMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 5 2 L 5 14 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);
Format.baseDashMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 2 L 0 14 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);Format.doubleBlockMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 2 L 8 14 Z M 8 8 L 16 2 L 16 14 Z M 16 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);
-Format.doubleBlockFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 2 L 8 14 Z M 8 8 L 16 2 L 16 14 Z M 16 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.processMenuIcon=function(a,b){var e=a.getElementsByTagName("img");0<e.length&&(e[0].className="geIcon geAdaptiveAsset",e[0].style.padding="0px",e[0].style.margin="0 0 0 2px",null!=b&&mxUtils.setPrefixedStyle(e[0].style,"transform",b));return a};Format.prototype.labelIndex=0;
-Format.prototype.diagramIndex=0;Format.prototype.currentIndex=0;Format.prototype.showCloseButton=!0;Format.prototype.rounded=!1;Format.prototype.curved=!1;
+Format.doubleBlockFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 2 L 8 14 Z M 8 8 L 16 2 L 16 14 Z M 16 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.connectionImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)" stroke-width="2" d="M 0 8 L 26 8 L 26 4 L 32 8 L 26 12 L 26 8 Z" stroke="#404040" fill="#404040"/>',42,20);
+Format.linkEdgeImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)" stroke-width="2" d="M 0 6 L 32 6 M 0 10 L 32 10" stroke="#404040" fill="#404040"/>',42,20);Format.arrowImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)" stroke-width="2" d="M 0 6 L 24 6 L 24 2 L 32 8 L 24 14 L 24 10 L 0 10 Z" stroke="#404040" fill="none"/>',42,20);
+Format.simpleArrowImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)" stroke-width="2" d="M 0 6 L 4 6 L 4 10 L 0 10 Z M 7 6 L 18 6 L 18 2 L 25 8 L 18 14 L 18 10 L 7 10 Z M 28 6 L 28 6 L 32 6 L 32 10 L 28 10 Z" stroke="#404040" fill="none"/>',42,20);Format.straightImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="#404040" fill="none"/>',36,36);
+Format.orthogonalImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="#404040" fill="none"/>',36,36);
+Format.horizontalElbowImage=Graph.createSvgImage(16,18,'<path transform="translate(3,3)rotate(270,0,0)scale(-1,1)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z M 14 11 L 14 5 M 14 3 L 16 5 L 12 5 Z M 14 17 L 14 23 M 14 25 L 16 23 L 12 23 Z" stroke="#404040" fill="none"/>',36,36);
+Format.verticalElbowImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z M 14 11 L 14 5 M 14 3 L 16 5 L 12 5 Z M 14 17 L 14 23 M 14 25 L 16 23 L 12 23 Z" stroke="#404040" fill="none"/>',36,36);
+Format.horizontalIsometricImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 19 17 L 10 12 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="#404040" fill="none"/>',36,36);Format.verticalIsometricImage=Graph.createSvgImage(16,18,'<path transform="translate(32,4)scale(-1,1)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 19 17 L 10 12 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="#404040" fill="none"/>',36,36);
+Format.curvedImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 Q 2 14 14 14 Q 28 14 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="#404040" fill="none"/>',36,36);Format.entityImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 28 L 10 28 L 20 2 L 26 2 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="#404040" fill="none"/>',36,36);
+Format.processMenuIcon=function(a,b){var e=a.getElementsByTagName("img");0<e.length&&(e[0].className="geIcon geAdaptiveAsset",e[0].style.padding="0px",e[0].style.margin="0 0 0 2px",null!=b&&mxUtils.setPrefixedStyle(e[0].style,"transform",b));return a};Format.prototype.labelIndex=0;Format.prototype.diagramIndex=0;Format.prototype.currentIndex=0;Format.prototype.showCloseButton=!0;Format.prototype.rounded=!1;Format.prototype.curved=!1;
Format.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 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,
+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,p=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,
-a,e));else{f.style.backgroundColor=Format.inactiveTabBackgroundColor;f.style.borderLeftWidth="1px";f.style.cursor="pointer";f.style.width=0==h.cells.length?"100%":d?"50%":"33.3%";u=f.cloneNode(!1);var z=u.cloneNode(!1);u.style.backgroundColor=Format.inactiveTabBackgroundColor;z.style.backgroundColor=Format.inactiveTabBackgroundColor;d?u.style.borderLeftWidth="0px":0<h.cells.length&&(f.style.borderLeftWidth="0px",mxUtils.write(f,mxResources.get("style")),e.appendChild(f),w=e.cloneNode(!1),w.style.display=
-"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 I=k.getSelectionState().cells;u.setCellStyles(b,G,I);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(I,function(T){T.removeAttribute("size");T.style.fontSize="";""==T.getAttribute("style")&&T.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};
+"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;p(f,h,k++);var x=e.cloneNode(!1);x.style.display="none";mxUtils.write(u,
+mxResources.get("style"));e.appendChild(u);this.panels.push(new DiagramStylePanel(this,a,x));this.container.appendChild(x);p(u,x,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",p=document.createElement("img"),p.className="geAdaptiveAsset",p.setAttribute("border","0"),p.setAttribute("src",Editor.crossImage),p.setAttribute("title",mxResources.get("hide")),p.style.width="16px",p.style.height="16px",p.style.opacity=.5,u.appendChild(p),mxEvent.addListener(p,"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,
+a,e));else{f.style.backgroundColor=Format.inactiveTabBackgroundColor;f.style.borderLeftWidth="1px";f.style.cursor="pointer";f.style.width=0==h.cells.length?"100%":d?"50%":"33.3%";u=f.cloneNode(!1);var z=u.cloneNode(!1);u.style.backgroundColor=Format.inactiveTabBackgroundColor;z.style.backgroundColor=Format.inactiveTabBackgroundColor;d?u.style.borderLeftWidth="0px":0<h.cells.length&&(f.style.borderLeftWidth="0px",mxUtils.write(f,mxResources.get("style")),e.appendChild(f),x=e.cloneNode(!1),x.style.display=
+"none",this.panels.push(new StyleFormatPanel(this,a,x)),this.container.appendChild(x),p(f,x,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?p(u,f,k+1):u.style.display="none";
+p(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,p){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 x=null,z=!1,C=null,E=mxUtils.bind(this,function(D){var G=m?parseFloat(a.value):parseInt(a.value);p&&(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!=x&&(u.cellEditor.restoreSelection(x),
+x=null),g(G),a.value=(p?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(T){T.removeAttribute("size");T.style.fontSize="";""==T.getAttribute("style")&&T.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=(p?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&&(x=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};
-BaseFormatPanel.prototype.createStepper=function(a,b,e,f,h,d,g){e=null!=e?e:1;f=null!=f?f:9;var m=10*e,q=document.createElement("div");q.className="geBtnStepper";q.style.position="absolute";var k=document.createElement("div");k.style.position="relative";k.style.height=f+"px";k.style.width="10px";k.className="geBtnUp";q.appendChild(k);var u=k.cloneNode(!1);u.style.border="none";u.style.height=f+"px";u.className="geBtnDown";q.appendChild(u);mxEvent.addGestureListeners(u,function(z){mxEvent.consume(z)},
-null,function(z){""==a.value&&(a.value=d||"2");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C-(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});mxEvent.addGestureListeners(k,function(z){mxEvent.consume(z)},null,function(z){""==a.value&&(a.value=d||"0");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C+(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});if(h){var w=null;mxEvent.addGestureListeners(q,function(z){mxEvent.consume(z)},null,
-function(z){if(null!=w){try{w.select()}catch(C){}w=null;mxEvent.consume(z)}})}else mxEvent.addListener(q,"click",function(z){mxEvent.consume(z)});return q};
+BaseFormatPanel.prototype.createStepper=function(a,b,e,f,h,d,g){e=null!=e?e:1;f=null!=f?f:9;var m=10*e,p=document.createElement("div");p.className="geBtnStepper";p.style.position="absolute";var k=document.createElement("div");k.style.height=f+"px";k.style.backgroundImage="url("+Editor.arrowUpImage+")";k.style.width="10px";p.appendChild(k);var u=k.cloneNode(!1);u.style.height=f+"px";u.style.backgroundImage="url("+Editor.arrowDownImage+")";p.appendChild(u);mxEvent.addGestureListeners(u,function(z){mxEvent.consume(z)},
+null,function(z){""==a.value&&(a.value=d||"2");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C-(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});mxEvent.addGestureListeners(k,function(z){mxEvent.consume(z)},null,function(z){""==a.value&&(a.value=d||"0");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C+(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});if(h){var x=null;mxEvent.addGestureListeners(p,function(z){mxEvent.consume(z)},null,
+function(z){if(null!=x){try{x.select()}catch(C){}x=null;mxEvent.consume(z)}})}else mxEvent.addListener(p,"click",function(z){mxEvent.consume(z)});return p};
BaseFormatPanel.prototype.createOption=function(a,b,e,f,h){var d=document.createElement("div");d.style.display="flex";d.style.alignItems="center";d.style.padding="3px 0px 3px 0px";d.style.height="18px";var g=document.createElement("input");g.setAttribute("type","checkbox");g.style.margin="1px 6px 0px 0px";g.style.verticalAlign="top";d.appendChild(g);var m=document.createElement("div");m.setAttribute("title",a);m.style.display="inline-block";m.style.whiteSpace="nowrap";m.style.textOverflow="ellipsis";
-m.style.overflow="hidden";m.style.maxWidth="75%";m.style.userSelect="none";mxUtils.write(m,a);d.appendChild(m);var q=!1,k=b(),u=function(w,z){q||(q=!0,w?(g.setAttribute("checked","checked"),g.defaultChecked=!0,g.checked=!0):(g.removeAttribute("checked"),g.defaultChecked=!1,g.checked=!1),k!=w&&(k=w,b()!=k&&e(k,z)),q=!1)};mxEvent.addListener(d,"click",function(w){if("disabled"!=g.getAttribute("disabled")){var z=mxEvent.getSource(w);if(z==d||z==m)g.checked=!g.checked;u(g.checked,w)}});u(k);null!=f&&
+m.style.overflow="hidden";m.style.maxWidth="75%";m.style.userSelect="none";mxUtils.write(m,a);d.appendChild(m);var p=!1,k=b(),u=function(x,z){p||(p=!0,x?(g.setAttribute("checked","checked"),g.defaultChecked=!0,g.checked=!0):(g.removeAttribute("checked"),g.defaultChecked=!1,g.checked=!1),k!=x&&(k=x,b()!=k&&e(k,z)),p=!1)};mxEvent.addListener(d,"click",function(x){if("disabled"!=g.getAttribute("disabled")){var z=mxEvent.getSource(x);if(z==d||z==m)g.checked=!g.checked;u(g.checked,x)}});u(k);null!=f&&
(f.install(u),this.listeners.push(f));null!=h&&h(d);return d};
-BaseFormatPanel.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(Q,P){"default"!=Q||P||(Q=m);"default"!=Q&&q&&(Q=mxUtils.getLightDarkColor(Q),Q=k?Q.dark:Q.light);return Q}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");
+BaseFormatPanel.prototype.createCellOption=function(a,b,e,f,h,d,g,m,p){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 x=null!=p?u.getCommonStyle(p):k.getSelectionState().style;return this.createOption(a,function(){return mxUtils.getValue(x,b,e)!=h},function(z){m&&u.stopEditing();if(null!=g)g.funct();else{u.getModel().beginUpdate();try{var C=null!=p?p: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(x,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,p,k){function u(Q,P){"default"!=Q||P||(Q=m);"default"!=Q&&p&&(Q=mxUtils.getLightDarkColor(Q),Q=k()?Q.dark:Q.light);return Q}var x=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(),I=!1,L=null,T=null,K=document.createElement("input");K.setAttribute("type","color");K.style.position="relative";K.style.visibility="hidden";K.style.top="10px";K.style.width="0px";K.style.height="0px";K.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(Q){K.value=u(G);K.click();mxEvent.consume(Q)}));var U=null,Y=function(Q,P){I||(I=!0,null!=d&&d(Q),P||(null!=U&&(z.cellEditor.restoreSelection(U),U=null),e(Q)),G=b(),Q=mxUtils.getLightDarkColor("default"!=G?G:m),P=document.createElement("div"),P.style.width="21px",P.style.height="12px",
-P.style.margin="2px 18px 2px 3px",P.style.borderWidth="1px",P.style.borderStyle="solid",P.style.backgroundColor=Q.cssText,T.innerText="",T.appendChild(P),!q&&mxUtils.isLightDarkColor(G)&&Q.light!=Q.dark?P.style.background="linear-gradient(to right bottom, "+Q.cssText+" 50%, "+mxUtils.invertLightDarkColor(Q).cssText+" 50.3%)":q&&w&&(P.style.backgroundColor=k?Q.dark:Q.light),null!=L?(P.style.width="21px",P.style.margin="2px 18px 2px 3px",P.appendChild(L)):(P.style.width="36px",P.style.margin="3px"),
+P.style.margin="2px 18px 2px 3px",P.style.borderWidth="1px",P.style.borderStyle="solid",P.style.backgroundColor=Q.cssText,T.innerText="",T.appendChild(P),!p&&mxUtils.isLightDarkColor(G)&&Q.light!=Q.dark?P.style.background="linear-gradient(to right bottom, "+Q.cssText+" 50%, "+mxUtils.invertLightDarkColor(Q).cssText+" 50.3%)":p&&x&&(P.style.backgroundColor=k()?Q.dark:Q.light),null!=L?(P.style.width="21px",P.style.margin="2px 18px 2px 3px",P.appendChild(L)):(P.style.width="36px",P.style.margin="3px"),
null!=G&&G!=mxConstants.NONE&&1<G.length&&"string"===typeof G&&(Q="#"==G.charAt(0)?G.substring(1).toUpperCase():G,Q=ColorDialog.prototype.colorNames[Q],null!=Q?T.setAttribute("title",Q):"default"==G?T.setAttribute("title",mxResources.get("useBlackAndWhite")):T.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),T.style.display=E.checked||g?"":
-"none",I=!1)};C.appendChild(K);mxEvent.addListener(K,"change",function(){var Q=K.value;if(!q){var P=mxUtils.getLightDarkColor(G);k?P.dark=Q:P.light=Q;Q="light-dark("+P.light+", "+P.dark+")"}Y(Q)});T=mxUtils.button("",mxUtils.bind(this,function(Q){this.editorUi.pickColor(u(G,!0),function(P){Y(P)},"default"==f?"default":null,m,q);mxEvent.consume(Q)}));T.style.position="absolute";T.style.marginTop="-3px";T.style.left="178px";T.style.height="22px";T.className="geColorBtn";T.style.display=E.checked||g?
-"":"none";C.appendChild(T);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&T.setAttribute("title",a);g||(mxEvent.addListener(C,"click",function(Q){Q=mxEvent.getSource(Q);if(Q==E||"INPUT"!=Q.nodeName)Q!=E&&(E.checked=!E.checked),E.checked||null==G||G==mxConstants.NONE||f==mxConstants.NONE||(f=G),Y(E.checked?f:mxConstants.NONE)}),mxEvent.addGestureListeners(E,mxUtils.bind(this,function(Q){document.activeElement==z.cellEditor.textarea&&
-(U=z.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(Q){document.activeElement==z.cellEditor.textarea&&(U=z.cellEditor.saveSelection())})));Y(G,!0);null!=h&&(h.install(Y),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=
-function(){var k=m.getCellStyle(m.getSelectionCell(),!1);null!=k&&q(k[b],!0)};m.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){m.getModel().removeListener(this.listener)}},f,null,d)};
+"none",I=!1)};C.appendChild(K);mxEvent.addListener(K,"change",function(){var Q=K.value;if(!p){var P=mxUtils.getLightDarkColor(G);k()?P.dark=Q:P.light=Q;Q="light-dark("+P.light+", "+P.dark+")"}Y(Q)});T=mxUtils.button("",mxUtils.bind(this,function(Q){var P=m;p&&k()&&mxUtils.isLightDarkColor(P)&&(P=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(M){Y(M)},"default"==f?"default":null,P,p);mxEvent.consume(Q)}));T.style.position="absolute";T.style.marginTop="-3px";T.style.left=
+"178px";T.style.height="22px";T.className="geColorBtn";T.style.display=E.checked||g?"":"none";C.appendChild(T);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&T.setAttribute("title",a);g||(mxEvent.addListener(C,"click",function(Q){Q=mxEvent.getSource(Q);if(Q==E||"INPUT"!=Q.nodeName)Q!=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(Q){document.activeElement==z.cellEditor.textarea&&(U=z.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(Q){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 p=m.getCellStyle(m.getSelectionCell(),!1);return null!=p?p[b]:null},function(p){m.getModel().beginUpdate();try{var k=g.getSelectionState().cells;m.setCellStyles(b,p,k);null!=h&&h(p);g.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[p],"cells",k))}finally{m.getModel().endUpdate()}},e||mxConstants.NONE,{install:function(p){this.listener=
+function(){var k=m.getCellStyle(m.getSelectionCell(),!1);null!=k&&p(k[b],!0)};m.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){m.getModel().removeListener(this.listener)}},f,null,d)};
BaseFormatPanel.prototype.addArrow=function(a){a.className="geColorBtn";a.style.display="inline-flex";a.style.alignItems="top";a.style.boxSizing="border-box";a.style.width="64px";a.style.height="22px";a.style.borderWidth="1px";a.style.borderStyle="solid";a.style.margin="2px 2px 2px 3px";var b=document.createElement("div");b.className="geAdaptiveAsset";b.style.display="inline-block";b.style.backgroundImage="url("+Editor.thinExpandImage+")";b.style.backgroundRepeat="no-repeat";b.style.backgroundPosition=
"-2px 1px";b.style.backgroundSize="18px 18px";b.style.opacity="0.5";b.style.height="100%";b.style.width="14px";a.appendChild(b);a=a.getElementsByTagName("div")[0];null!=a&&(a.style.display="inline-block",a.style.backgroundPositionX="center",a.style.textAlign="center",a.style.height="100%",a.style.flexGrow="1",a.style.opacity="0.6");return a};
-BaseFormatPanel.prototype.addUnitInput=function(a,b,e,f,h,d,g,m,q){g=null!=g?g:0;b=document.createElement("input");b.style.position="absolute";b.style.textAlign="right";b.style.marginTop="-2px";b.style.left=228-e-f+"px";b.style.width=f+"px";b.style.height="21px";b.style.borderWidth="1px";b.style.borderStyle="solid";b.style.boxSizing="border-box";a.appendChild(b);f=this.createStepper(b,h,d,null,m,null,q);f.style.marginTop=g-2+"px";f.style.left=228-e+"px";a.appendChild(f);return b};
-BaseFormatPanel.prototype.addGenericInput=function(a,b,e,f,h,d){var g=this.editorUi.editor.graph,m=function(){d(q.value)},q=this.addUnitInput(a,b,e,f,m),k=mxUtils.bind(this,function(u,w,z){if(z||q!=document.activeElement)q.value=h()+b});mxEvent.addListener(q,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});
-k();mxEvent.addListener(q,"blur",m);mxEvent.addListener(q,"change",m);return q};
-BaseFormatPanel.prototype.createRelativeOption=function(a,b,e,f,h){e=null!=e?e:52;var d=this.editorUi,g=d.editor.graph,m=this.createPanel();m.style.paddingTop="10px";m.style.paddingBottom="12px";mxUtils.write(m,a);m.style.fontWeight="bold";a=mxUtils.bind(this,function(u){if(null!=f)f(q);else{var w=parseInt(q.value);w=Math.min(100,Math.max(0,isNaN(w)?100:w));var z=g.view.getState(d.getSelectionState().cells[0]);null!=z&&w!=mxUtils.getValue(z.style,b,100)&&(100==w&&(w=null),z=d.getSelectionState().cells,
-g.setCellStyles(b,w,z),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[w],"cells",z)));q.value=(null!=w?w:"100")+" %"}mxEvent.consume(u)});var q=this.addUnitInput(m,"%",16,e,a,10,mxClient.IS_MAC&&mxClient.IS_GC?-14:mxClient.IS_WIN?-16:-15,null!=f);if(null!=b){var k=mxUtils.bind(this,function(u,w,z){if(z||q!=document.activeElement)u=d.getSelectionState(),u=parseInt(mxUtils.getValue(u.style,b,100)),q.value=isNaN(u)?"":u+" %"});mxEvent.addListener(q,"keydown",function(u){13==
-u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});k()}mxEvent.addListener(q,"blur",a);mxEvent.addListener(q,"change",a);null!=h&&h(q);return m};
+BaseFormatPanel.prototype.addUnitInput=function(a,b,e,f,h,d,g,m,p){g=null!=g?g:0;b=document.createElement("input");b.style.position="absolute";b.style.textAlign="right";b.style.marginTop="-2px";b.style.left=228-e-f+"px";b.style.width=f+"px";b.style.height="21px";b.style.borderWidth="1px";b.style.borderStyle="solid";b.style.boxSizing="border-box";a.appendChild(b);f=this.createStepper(b,h,d,null,m,null,p);f.style.marginTop=g-2+"px";f.style.left=228-e+"px";a.appendChild(f);return b};
+BaseFormatPanel.prototype.addGenericInput=function(a,b,e,f,h,d){var g=this.editorUi.editor.graph,m=function(){d(p.value)},p=this.addUnitInput(a,b,e,f,m),k=mxUtils.bind(this,function(u,x,z){if(z||p!=document.activeElement)p.value=h()+b});mxEvent.addListener(p,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});
+k();mxEvent.addListener(p,"blur",m);mxEvent.addListener(p,"change",m);return p};
+BaseFormatPanel.prototype.createRelativeOption=function(a,b,e,f,h){e=null!=e?e:52;var d=this.editorUi,g=d.editor.graph,m=this.createPanel();m.style.paddingTop="10px";m.style.paddingBottom="12px";mxUtils.write(m,a);m.style.fontWeight="bold";a=mxUtils.bind(this,function(u){if(null!=f)f(p);else{var x=parseInt(p.value);x=Math.min(100,Math.max(0,isNaN(x)?100:x));var z=g.view.getState(d.getSelectionState().cells[0]);null!=z&&x!=mxUtils.getValue(z.style,b,100)&&(100==x&&(x=null),z=d.getSelectionState().cells,
+g.setCellStyles(b,x,z),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[x],"cells",z)));p.value=(null!=x?x:"100")+" %"}mxEvent.consume(u)});var p=this.addUnitInput(m,"%",16,e,a,10,0,null!=f);if(null!=b){var k=mxUtils.bind(this,function(u,x,z){if(z||p!=document.activeElement)u=d.getSelectionState(),u=parseInt(mxUtils.getValue(u.style,b,100)),p.value=isNaN(u)?"":u+" %"});mxEvent.addListener(p,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==
+u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});k()}mxEvent.addListener(p,"blur",a);mxEvent.addListener(p,"change",a);null!=h&&h(p);return m};
BaseFormatPanel.prototype.addLabel=function(a,b,e,f){f=null!=f?f:61;var h=document.createElement("div");mxUtils.write(h,b);h.style.position="absolute";h.style.left=240-e-f+"px";h.style.width=f+"px";h.style.marginTop="6px";h.style.display="flex";h.style.justifyContent="center";a.appendChild(h);return h};
BaseFormatPanel.prototype.addKeyHandler=function(a,b){mxEvent.addListener(a,"keydown",mxUtils.bind(this,function(e){13==e.keyCode?(this.editorUi.editor.graph.container.focus(),mxEvent.consume(e)):27==e.keyCode&&(null!=b&&b(null,null,!0),this.editorUi.editor.graph.container.focus(),mxEvent.consume(e))}))};
BaseFormatPanel.prototype.styleButtons=function(a){for(var b=0;b<a.length;b++)mxUtils.setPrefixedStyle(a[b].style,"borderRadius","3px"),a[b].style.border="1px solid #a0a0a0",a[b].style.padding="4px",a[b].style.paddingTop="3px",a[b].style.paddingRight="1px",a[b].style.margin="1px",a[b].style.marginRight="2px",a[b].style.width="24px",a[b].style.height="20px"};
@@ -3044,153 +3066,152 @@ BaseFormatPanel.prototype.destroy=function(){if(null!=this.listeners){for(var a=
ArrangePanel.prototype.init=function(){var a=this.editorUi.getSelectionState();0<a.cells.length&&(this.container.appendChild(this.addLayerOps(this.createPanel())),this.addGeometry(this.container),this.addEdgeGeometry(this.container),a.containsLabel&&0!=a.edges.length||this.container.appendChild(this.addAngle(this.createPanel())),a.containsLabel||this.container.appendChild(this.addFlip(this.createPanel())),this.container.appendChild(this.addAlign(this.createPanel())),1<a.vertices.length&&!a.cell&&
!a.row&&this.container.appendChild(this.addDistribute(this.createPanel())),this.container.appendChild(this.addTable(this.createPanel())));this.container.appendChild(this.addGroupOps(this.createPanel()));a.containsLabel&&(1==a.cells.length&&(a=document.createElement("div"),a.style.width="100%",a.style.marginTop="0px",a.style.fontWeight="bold",a.style.padding="10px 0 0 14px",mxUtils.write(a,mxResources.get("style")),this.container.appendChild(a)),new StyleFormatPanel(this.format,this.editorUi,this.container))};
ArrangePanel.prototype.addTable=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="10px";var h=document.createElement("div");h.style.marginTop="0px";h.style.marginBottom="6px";h.style.fontWeight="bold";mxUtils.write(h,mxResources.get("table"));a.appendChild(h);h=document.createElement("div");h.style.position="relative";h.style.paddingLeft="0px";h.style.borderWidth="0px";h.style.width="220px";h.className="geToolbarContainer";var d=
-f.vertices[0];1<e.getSelectionCount()&&(e.isTableCell(d)&&(d=e.model.getParent(d)),e.isTableRow(d)&&(d=e.model.getParent(d)));var g=f.table||f.row||f.cell,m=e.isStack(d)||e.isStackChild(d),q=g;m&&(g="0"==(e.isStack(d)?f.style:e.getCellStyle(e.model.getParent(d))).horizontalStack,q=!g);var k=[];q&&(k=k.concat([b.toolbar.addButton("geSprite-insertcolumnbefore",mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!0):e.insertTableColumn(d,!0)}catch(u){b.handleError(u)}}),
-h),b.toolbar.addButton("geSprite-insertcolumnafter",mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!1):e.insertTableColumn(d,!1)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton("geSprite-deletecolumn",mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{m?e.deleteLane(d):e.deleteTableColumn(d)}catch(u){b.handleError(u)}}),h)]));g&&(k=k.concat([b.toolbar.addButton("geSprite-insertrowbefore",mxResources.get("insertRowBefore"),mxUtils.bind(this,
-function(){try{m?e.insertLane(d,!0):e.insertTableRow(d,!0)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton("geSprite-insertrowafter",mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!1):e.insertTableRow(d,!1)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton("geSprite-deleterow",mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{m?e.deleteLane(d):e.deleteTableRow(d)}catch(u){b.handleError(u)}}),h)]));if(0<k.length){this.styleButtons(k);a.appendChild(h);
-3<k.length&&(k[2].style.marginRight="10px");q=0;if(null!=f.mergeCell)q+=this.addActions(a,["mergeCells"]);else if(1<f.style.colspan||1<f.style.rowspan)q+=this.addActions(a,["unmergeCells"]);0<q&&(h.style.paddingBottom="2px")}else a.style.display="none";return a};ArrangePanel.prototype.addLayerOps=function(a){this.addActions(a,["toFront","toBack"]);this.addActions(a,["bringForward","sendBackward"]);return a};
+f.vertices[0];1<e.getSelectionCount()&&(e.isTableCell(d)&&(d=e.model.getParent(d)),e.isTableRow(d)&&(d=e.model.getParent(d)));var g=f.table||f.row||f.cell,m=e.isStack(d)||e.isStackChild(d),p=g;m&&(g="0"==(e.isStack(d)?f.style:e.getCellStyle(e.model.getParent(d))).horizontalStack,p=!g);var k=[];p&&(k=k.concat([b.toolbar.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!0):e.insertTableColumn(d,!0)}catch(u){b.handleError(u)}}),
+h),b.toolbar.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!1):e.insertTableColumn(d,!1)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{m?e.deleteLane(d):e.deleteTableColumn(d)}catch(u){b.handleError(u)}}),h)]));g&&(k=k.concat([b.toolbar.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{m?
+e.insertLane(d,!0):e.insertTableRow(d,!0)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!1):e.insertTableRow(d,!1)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{m?e.deleteLane(d):e.deleteTableRow(d)}catch(u){b.handleError(u)}}),h)]));if(0<k.length){this.styleButtons(k);a.appendChild(h);3<k.length&&
+(k[2].style.marginRight="10px");p=0;if(null!=f.mergeCell)p+=this.addActions(a,["mergeCells"]);else if(1<f.style.colspan||1<f.style.rowspan)p+=this.addActions(a,["unmergeCells"]);0<p&&(h.style.paddingBottom="2px")}else a.style.display="none";return a};ArrangePanel.prototype.addLayerOps=function(a){this.addActions(a,["toFront","toBack"]);this.addActions(a,["bringForward","sendBackward"]);return a};
ArrangePanel.prototype.addGroupOps=function(a){var b=this.editorUi,e=b.editor.graph;b=b.getSelectionState();a.style.paddingTop="8px";a.style.paddingBottom="6px";var f=this.addActions(a,["group","ungroup"])+this.addActions(a,["removeFromGroup"]);b.cell||b.row||(f+=this.addActions(a,["copySize","pasteSize","swap"]));var h=document.createElement("select");h.style.width="210px";h.style.textAlign="center";h.style.marginBottom="2px";for(var d=[{label:mxResources.get("reset"),action:"reset"},{label:mxResources.get("waypoints"),
-action:"clearWaypoints"},{label:mxResources.get("connectionPoints"),action:"clearAnchors"}],g=0;g<d.length;g++){var m=this.editorUi.actions.get(d[g].action);if(null==m||m.enabled){var q=document.createElement("option");q.setAttribute("value",d[g].action);q.setAttribute("title",d[g].label+(null!=m&&null!=m.shortcut?" ("+m.shortcut+")":""));mxUtils.write(q,d[g].label);h.appendChild(q)}}1<h.children.length&&(h.value="reset",a.appendChild(h),mxUtils.br(a),f++,mxEvent.addListener(h,"change",mxUtils.bind(this,
+action:"clearWaypoints"},{label:mxResources.get("connectionPoints"),action:"clearAnchors"}],g=0;g<d.length;g++){var m=this.editorUi.actions.get(d[g].action);if(null==m||m.enabled){var p=document.createElement("option");p.setAttribute("value",d[g].action);p.setAttribute("title",d[g].label+(null!=m&&null!=m.shortcut?" ("+m.shortcut+")":""));mxUtils.write(p,d[g].label);h.appendChild(p)}}1<h.children.length&&(h.value="reset",a.appendChild(h),mxUtils.br(a),f++,mxEvent.addListener(h,"change",mxUtils.bind(this,
function(k){k=this.editorUi.actions.get(h.value);h.value="reset";null!=k&&k.funct()})));f+=this.addActions(a,["lockUnlock"]);1==b.vertices.length&&0==b.edges.length&&0<e.getOpposites(e.getEdges(b.vertices[0]),b.vertices[0]).length&&(f+=this.addActions(a,["explore"]));0==f&&(a.style.display="none");return a};
ArrangePanel.prototype.addAlign=function(a){var b=this.editorUi.getSelectionState(),e=this.editorUi.editor.graph;a.style.paddingTop="6px";a.style.paddingBottom="8px";a.appendChild(this.createTitle(mxResources.get("align")));var f=document.createElement("div");f.style.position="relative";f.style.whiteSpace="nowrap";f.style.paddingLeft="0px";f.style.paddingBottom="2px";f.style.borderWidth="0px";f.style.width="220px";f.className="geToolbarContainer";if(1<b.vertices.length){b=this.editorUi.toolbar.addButton(Editor.alignHorizontalLeftImage,
mxResources.get("left"),function(){e.alignCells(mxConstants.ALIGN_LEFT)},f);var h=this.editorUi.toolbar.addButton(Editor.alignHorizontalCenterImage,mxResources.get("center"),function(){e.alignCells(mxConstants.ALIGN_CENTER)},f),d=this.editorUi.toolbar.addButton(Editor.alignHorizontalRightImage,mxResources.get("right"),function(){e.alignCells(mxConstants.ALIGN_RIGHT)},f),g=this.editorUi.toolbar.addButton(Editor.alignVerticalTopImage,mxResources.get("top"),function(){e.alignCells(mxConstants.ALIGN_TOP)},
-f),m=this.editorUi.toolbar.addButton(Editor.alignVerticalMiddleImage,mxResources.get("middle"),function(){e.alignCells(mxConstants.ALIGN_MIDDLE)},f),q=this.editorUi.toolbar.addButton(Editor.alignVerticalBottomImage,mxResources.get("bottom"),function(){e.alignCells(mxConstants.ALIGN_BOTTOM)},f);this.styleButtons([b,h,d,g,m,q]);d.style.marginRight="10px"}a.appendChild(f);this.addActions(a,["snapToGrid"]);return a};
+f),m=this.editorUi.toolbar.addButton(Editor.alignVerticalMiddleImage,mxResources.get("middle"),function(){e.alignCells(mxConstants.ALIGN_MIDDLE)},f),p=this.editorUi.toolbar.addButton(Editor.alignVerticalBottomImage,mxResources.get("bottom"),function(){e.alignCells(mxConstants.ALIGN_BOTTOM)},f);this.styleButtons([b,h,d,g,m,p]);d.style.marginRight="10px"}a.appendChild(f);this.addActions(a,["snapToGrid"]);return a};
ArrangePanel.prototype.addFlip=function(a){var b=this.editorUi.editor.graph;a.style.paddingTop="6px";a.style.paddingBottom="10px";var e=this.editorUi.getSelectionState(),f=document.createElement("div");f.style.marginTop="2px";f.style.marginBottom="8px";f.style.fontWeight="bold";mxUtils.write(f,mxResources.get("flip"));a.appendChild(f);f=mxUtils.button(mxResources.get("horizontal"),function(h){b.flipCells(e.cells,!0)});f.setAttribute("title",mxResources.get("horizontal"));f.style.width="104px";f.style.marginRight=
"2px";a.appendChild(f);f=mxUtils.button(mxResources.get("vertical"),function(h){b.flipCells(e.cells,!1)});f.setAttribute("title",mxResources.get("vertical"));f.style.width="104px";a.appendChild(f);return a};
ArrangePanel.prototype.addDistribute=function(a){var b=this.editorUi.editor.graph;a.style.paddingTop="6px";a.style.paddingBottom="8px";a.appendChild(this.createTitle(mxResources.get("distribute")));var e=mxUtils.button(mxResources.get("horizontal"),function(d){b.distributeCells(!0,null,f.checked)});e.setAttribute("title",mxResources.get("horizontal"));e.style.width="104px";e.style.marginRight="2px";a.appendChild(e);e=mxUtils.button(mxResources.get("vertical"),function(d){b.distributeCells(!1,null,
f.checked)});e.setAttribute("title",mxResources.get("vertical"));e.style.width="104px";a.appendChild(e);mxUtils.br(a);e=document.createElement("div");e.style.margin="6px 0 0 0";e.style.display="flex";e.style.justifyContent="center";e.style.alignItems="center";var f=document.createElement("input");f.setAttribute("type","checkbox");f.setAttribute("id","spacingCheckbox");f.style.margin="0 6px 0 0";e.appendChild(f);var h=document.createElement("label");h.style.verticalAlign="top";h.setAttribute("for",
"spacingCheckbox");h.style.userSelect="none";mxUtils.write(h,mxResources.get("spacing"));e.appendChild(h);a.appendChild(e);return a};
ArrangePanel.prototype.addAngle=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingBottom="12px";var h=document.createElement("div");h.style.position="absolute";h.style.width="70px";h.style.marginTop="0px";h.style.fontWeight="bold";var d=null,g=null,m=null;!f.rotatable||f.table||f.row||f.cell?a.style.paddingTop="8px":(mxUtils.write(h,mxResources.get("angle")),a.appendChild(h),d=this.addUnitInput(a,"°",16,52,function(){g.apply(this,arguments)}),mxUtils.br(a),a.style.paddingTop=
-"10px");f.containsLabel||(h=mxResources.get("reverse"),0<f.vertices.length&&0<f.edges.length?h=mxResources.get("turn")+" / "+h:0<f.vertices.length&&(h=mxResources.get("turn")),m=mxUtils.button(h,function(k){b.actions.get("turn").funct(k)}),m.setAttribute("title",h+" ("+this.editorUi.actions.get("turn").shortcut+")"),m.style.width="210px",a.appendChild(m),null!=d&&(m.style.marginTop="8px"));if(null!=d){var q=mxUtils.bind(this,function(k,u,w){if(w||document.activeElement!=d)f=b.getSelectionState(),
-k=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_ROTATION,0)),d.value=isNaN(k)?"":k+"°"});g=this.installInputHandler(d,mxConstants.STYLE_ROTATION,0,0,360,"°",null,!0);this.addKeyHandler(d,q);e.getModel().addListener(mxEvent.CHANGE,q);this.listeners.push({destroy:function(){e.getModel().removeListener(q)}});q()}return a};
+"10px");f.containsLabel||(h=mxResources.get("reverse"),0<f.vertices.length&&0<f.edges.length?h=mxResources.get("turn")+" / "+h:0<f.vertices.length&&(h=mxResources.get("turn")),m=mxUtils.button(h,function(k){b.actions.get("turn").funct(k)}),m.setAttribute("title",h+" ("+this.editorUi.actions.get("turn").shortcut+")"),m.style.width="210px",a.appendChild(m),null!=d&&(m.style.marginTop="8px"));if(null!=d){var p=mxUtils.bind(this,function(k,u,x){if(x||document.activeElement!=d)f=b.getSelectionState(),
+k=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_ROTATION,0)),d.value=isNaN(k)?"":k+"°"});g=this.installInputHandler(d,mxConstants.STYLE_ROTATION,0,0,360,"°",null,!0);this.addKeyHandler(d,p);e.getModel().addListener(mxEvent.CHANGE,p);this.listeners.push({destroy:function(){e.getModel().removeListener(p)}});p()}return a};
BaseFormatPanel.prototype.getUnit=function(a){var b="";switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:b="pt";break;case mxConstants.INCHES:b='"';break;case mxConstants.MILLIMETERS:b="mm";break;case mxConstants.METERS:b="m"}return(a?a:"")+b};BaseFormatPanel.prototype.inUnit=function(a){return this.editorUi.editor.graph.view.formatUnitText(a)};
BaseFormatPanel.prototype.fromUnit=function(a){switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:return a;case mxConstants.INCHES:return a*mxConstants.PIXELS_PER_INCH;case mxConstants.MILLIMETERS:return a*mxConstants.PIXELS_PER_MM;case mxConstants.METERS:return a*mxConstants.PIXELS_PER_MM*1E3}};BaseFormatPanel.prototype.isFloatUnit=function(){return this.editorUi.editor.graph.view.unit!=mxConstants.POINTS};
BaseFormatPanel.prototype.getUnitStep=function(){switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:return 1;case mxConstants.INCHES:return.1;case mxConstants.MILLIMETERS:return.5;case mxConstants.METERS:return.001}};
-ArrangePanel.prototype.addGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=f.getModel(),d=e.getSelectionState(),g=this.createPanel();g.style.paddingBottom="8px";var m=document.createElement("div");m.style.position="absolute";m.style.width="50px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("size"));g.appendChild(m);var q=this.addUnitInput(g,this.getUnit(),87,52,function(){C.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),
+ArrangePanel.prototype.addGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=f.getModel(),d=e.getSelectionState(),g=this.createPanel();g.style.paddingBottom="8px";var m=document.createElement("div");m.style.position="absolute";m.style.width="50px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("size"));g.appendChild(m);var p=this.addUnitInput(g,this.getUnit(),87,52,function(){C.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),
k=this.addUnitInput(g,this.getUnit(),16,52,function(){E.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),u=document.createElement("div");u.className="geAdaptiveAsset";u.style.backgroundImage="url("+Editor.autosizeImage+")";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";u.style.backgroundSize="18px 18px";u.style.width="21px";u.style.height="21px";u.setAttribute("title",mxResources.get("autosize")+" ("+this.editorUi.actions.get("autosize").shortcut+
-")");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(M,W,aa){W=Math.max(1,b.fromUnit(W));if(f.isTableCell(aa))return f.setTableColumnWidth(aa,W-M.width,!0),!0;0<M.width&&(z.checked&&(M.height=Math.round(M.height*W*100/M.width)/100),M.width=W)});var E=this.addGeometryHandler(k,function(M,W,aa){W=Math.max(1,b.fromUnit(W));f.isTableCell(aa)&&(aa=h.getParent(aa));if(f.isTableRow(aa))return f.setTableRowHeight(aa,W-M.height),!0;0<M.height&&(z.checked&&(M.width=Math.round(M.width*W*100/M.height)/100),M.height=W)});
+")");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?(p.style.visibility="hidden",p.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 x=this.createCellOption(mxResources.get("constrainProportions"),mxConstants.STYLE_ASPECT,null,"fixed","null");x.style.width="210px";m.appendChild(x);d.cell||d.row?u.style.visibility="hidden":g.appendChild(m);var z=x.getElementsByTagName("input")[0];this.addKeyHandler(p,Y);this.addKeyHandler(k,
+Y);var C=this.addGeometryHandler(p,function(M,V,aa){V=Math.max(1,b.fromUnit(V));if(f.isTableCell(aa))return f.setTableColumnWidth(aa,V-M.width,!0),!0;0<M.width&&(z.checked&&(M.height=Math.round(M.height*V*100/M.width)/100),M.width=V)});var E=this.addGeometryHandler(k,function(M,V,aa){V=Math.max(1,b.fromUnit(V));f.isTableCell(aa)&&(aa=h.getParent(aa));if(f.isTableRow(aa))return f.setTableRowHeight(aa,V-M.height),!0;0<M.height&&(z.checked&&(M.width=Math.round(M.width*V*100/M.height)/100),M.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(){Q.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),I=this.addUnitInput(D,this.getUnit(),16,52,function(){P.apply(this,arguments)},
-this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(D);w=!0;var L=null,T=null;if(d.movable){if(0==d.edges.length&&1==d.vertices.length){var K=f.getCellGeometry(d.vertices[0]);if(null!=K&&K.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*K.x)/10},function(M){M=parseFloat(M);if(!isNaN(M)){h.beginUpdate();
-try{K=K.clone(),K.x=parseFloat(M)/100,h.setGeometry(d.vertices[0],K)}finally{h.endUpdate()}}});if(h.isEdge(h.getParent(d.vertices[0]))){w=!1;var U=null;T=this.addUnitInput(D,this.getUnit(),16,52,function(){U.apply(this,arguments)});U=this.addGeometryHandler(T,function(M,W){M.y=b.fromUnit(W)})}else T=this.addGenericInput(D," %",16,52,function(){return Math.round(1E3*K.y)/10},function(M){M=parseFloat(M);if(!isNaN(M)){h.beginUpdate();try{K=K.clone(),K.y=parseFloat(M)/100,h.setGeometry(d.vertices[0],
-K)}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(M,W,aa){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(aa||document.activeElement!=q)q.value=this.inUnit(d.width)+" "+this.getUnit();
+this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(D);x=!0;var L=null,T=null;if(d.movable){if(0==d.edges.length&&1==d.vertices.length){var K=f.getCellGeometry(d.vertices[0]);if(null!=K&&K.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*K.x)/10},function(M){M=parseFloat(M);if(!isNaN(M)){h.beginUpdate();
+try{K=K.clone(),K.x=parseFloat(M)/100,h.setGeometry(d.vertices[0],K)}finally{h.endUpdate()}}});if(h.isEdge(h.getParent(d.vertices[0]))){x=!1;var U=null;T=this.addUnitInput(D,this.getUnit(),16,52,function(){U.apply(this,arguments)});U=this.addGeometryHandler(T,function(M,V){M.y=b.fromUnit(V)})}else T=this.addGenericInput(D," %",16,52,function(){return Math.round(1E3*K.y)/10},function(M){M=parseFloat(M);if(!isNaN(M)){h.beginUpdate();try{K=K.clone(),K.y=parseFloat(M)/100,h.setGeometry(d.vertices[0],
+K)}finally{h.endUpdate()}}});mxUtils.br(D)}}a.appendChild(D)}this.addLabel(D,mxResources.get(x?"left":"line"),87,64).style.marginTop="8px";this.addLabel(D,mxResources.get(x?"top":"orthogonal"),16,64).style.marginTop="8px";var Y=mxUtils.bind(this,function(M,V,aa){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(aa||document.activeElement!=p)p.value=this.inUnit(d.width)+" "+this.getUnit();
if(aa||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){M=f.getCellGeometry(d.vertices[0]);D.style.display="";if(aa||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(aa||document.activeElement!=I)I.value=this.inUnit(d.y)+" "+this.getUnit();null!=M&&M.relative&&(null==L||!aa&&document.activeElement==L||(L.value=Math.round(1E3*M.x)/10+" %"),null==T||!aa&&document.activeElement==
-T||(h.isEdge(h.getParent(d.vertices[0]))?T.value=this.inUnit(M.y)+" "+this.getUnit():T.value=Math.round(1E3*M.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 Q=this.addGeometryHandler(G,function(M,W){W=b.fromUnit(W);M.relative?(M.offset=null!=M.offset?M.offset:new mxPoint,M.offset.x=W):M.x=W});var P=this.addGeometryHandler(I,function(M,W){W=b.fromUnit(W);
-M.relative?(M.offset=null!=M.offset?M.offset:new mxPoint,M.offset.y=W):M.y=W});d.movable&&(0==d.edges.length&&1==d.vertices.length&&h.isEdge(h.getParent(d.vertices[0]))&&(K=f.getCellGeometry(d.vertices[0]),null!=K&&K.relative&&(m=mxUtils.button(mxResources.get("center"),mxUtils.bind(this,function(M){h.beginUpdate();try{K=K.clone(),K.x=0,K.y=0,K.offset=new mxPoint,h.setGeometry(d.vertices[0],K)}finally{h.endUpdate()}})),m.setAttribute("title",mxResources.get("center")),m.style.width="134px",m.style.left=
+T||(h.isEdge(h.getParent(d.vertices[0]))?T.value=this.inUnit(M.y)+" "+this.getUnit():T.value=Math.round(1E3*M.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 Q=this.addGeometryHandler(G,function(M,V){V=b.fromUnit(V);M.relative?(M.offset=null!=M.offset?M.offset:new mxPoint,M.offset.x=V):M.x=V});var P=this.addGeometryHandler(I,function(M,V){V=b.fromUnit(V);
+M.relative?(M.offset=null!=M.offset?M.offset:new mxPoint,M.offset.y=V):M.y=V});d.movable&&(0==d.edges.length&&1==d.vertices.length&&h.isEdge(h.getParent(d.vertices[0]))&&(K=f.getCellGeometry(d.vertices[0]),null!=K&&K.relative&&(m=mxUtils.button(mxResources.get("center"),mxUtils.bind(this,function(M){h.beginUpdate();try{K=K.clone(),K.x=0,K.y=0,K.offset=new mxPoint,h.setGeometry(d.vertices[0],K)}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=
-q;a.value=q+" "+g.getUnit()}}mxEvent.consume(m)}var f=this.editorUi,h=f.editor.graph,d=null,g=this;mxEvent.addListener(a,"blur",e);mxEvent.addListener(a,"change",e);mxEvent.addListener(a,"focus",function(){d=a.value});return e};
-ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function e(g){if(""!=a.value){var m=parseFloat(a.value);if(isNaN(m))a.value=d+" pt";else if(m!=d){h.getModel().beginUpdate();try{for(var q=f.getSelectionState().cells,k=0;k<q.length;k++)if(h.getModel().isEdge(q[k])){var u=h.getCellGeometry(q[k]);null!=u&&(u=u.clone(),b(u,m),h.getModel().setGeometry(q[k],u))}}finally{h.getModel().endUpdate()}d=m;a.value=m+" pt"}}mxEvent.consume(g)}var f=this.editorUi,h=f.editor.graph,d=null;mxEvent.addListener(a,
+ArrangePanel.prototype.addGeometryHandler=function(a,b){function e(m){if(""!=a.value){var p=parseFloat(a.value);if(isNaN(p))a.value=d+" "+g.getUnit();else if(p!=d){h.getModel().beginUpdate();try{for(var k=f.getSelectionState().cells,u=0;u<k.length;u++)if(h.getModel().isVertex(k[u])){var x=h.getCellGeometry(k[u]);if(null!=x&&(x=x.clone(),!b(x,p,k[u]))){var z=h.view.getState(k[u]);null!=z&&h.isRecursiveVertexResize(z)&&h.resizeChildCells(k[u],x);h.getModel().setGeometry(k[u],x);h.constrainChildCells(k[u])}}}finally{h.getModel().endUpdate()}d=
+p;a.value=p+" "+g.getUnit()}}mxEvent.consume(m)}var f=this.editorUi,h=f.editor.graph,d=null,g=this;mxEvent.addListener(a,"blur",e);mxEvent.addListener(a,"change",e);mxEvent.addListener(a,"focus",function(){d=a.value});return e};
+ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function e(g){if(""!=a.value){var m=parseFloat(a.value);if(isNaN(m))a.value=d+" pt";else if(m!=d){h.getModel().beginUpdate();try{for(var p=f.getSelectionState().cells,k=0;k<p.length;k++)if(h.getModel().isEdge(p[k])){var u=h.getCellGeometry(p[k]);null!=u&&(u=u.clone(),b(u,m),h.getModel().setGeometry(p[k],u))}}finally{h.getModel().endUpdate()}d=m;a.value=m+" pt"}}mxEvent.consume(g)}var f=this.editorUi,h=f.editor.graph,d=null;mxEvent.addListener(a,
"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(K){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(K)});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(){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(){T.apply(this,arguments)},this.getUnitStep(),null,
+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(){p.apply(this,arguments)});mxUtils.br(d);this.addKeyHandler(m,D);var p=mxUtils.bind(this,function(K){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(K)});mxEvent.addListener(m,"blur",p);mxEvent.addListener(m,"change",p);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()),x=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(x,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(){T.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(K,U,Y){h=e.getSelectionState();K=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(K)?(Y=f.model.getGeometry(K),null!=Y&&null!=Y.sourcePoint&&null==f.model.getTerminal(K,!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(K,!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(K,U){K.sourcePoint.x=b.fromUnit(U)});var I=this.addEdgeGeometryHandler(w,function(K,U){K.sourcePoint.y=b.fromUnit(U)});var L=this.addEdgeGeometryHandler(C,function(K,U){K.targetPoint.x=b.fromUnit(U)});var T=this.addEdgeGeometryHandler(E,function(K,U){K.targetPoint.y=b.fromUnit(U)});f.getModel().addListener(mxEvent.CHANGE,D);this.listeners.push({destroy:function(){f.getModel().removeListener(D)}});D()};
+"none";1==h.cells.length&&f.model.isEdge(K)?(Y=f.model.getGeometry(K),null!=Y&&null!=Y.sourcePoint&&null==f.model.getTerminal(K,!0)?(u.value=this.inUnit(Y.sourcePoint.x)+" "+this.getUnit(),x.value=this.inUnit(Y.sourcePoint.y)+" "+this.getUnit()):k.style.display="none",null!=Y&&null!=Y.targetPoint&&null==f.model.getTerminal(K,!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(K,U){K.sourcePoint.x=b.fromUnit(U)});var I=this.addEdgeGeometryHandler(x,function(K,U){K.sourcePoint.y=b.fromUnit(U)});var L=this.addEdgeGeometryHandler(C,function(K,U){K.targetPoint.x=b.fromUnit(U)});var T=this.addEdgeGeometryHandler(E,function(K,U){K.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"),
-!0,"formatBlock",q,null,!0);this.addArrow(k);k.style.width="211px";k.style.alignItems="center";k.style.justifyContent="center";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.margin="0px";k.style.position="relative";k=k.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";a.appendChild(q)}a.appendChild(m);q=this.createPanel();q.style.marginTop="8px";q.style.borderWidth="1px";q.style.borderStyle="solid";q.style.paddingTop="6px";q.style.paddingBottom="2px";var u=
-this.editorUi.toolbar.addMenu("Helvetica",mxResources.get("fontFamily"),!0,"fontFamily",m,null,!0);this.addArrow(u);u.style.width="211px";u.style.alignItems="center";u.style.justifyContent="center";u.style.whiteSpace="nowrap";u.style.overflow="hidden";u.style.margin="0px";u.style.position="relative";k=u.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";k=m.cloneNode(!1);k.style.marginLeft="-3px";var w=this.editorUi.toolbar.addItems(["bold","italic","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.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),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 T=this.editorUi.toolbar.addButton(Editor.alignTopImage,mxResources.get("top"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),K=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([T,K,U]);a.appendChild(C);var Y,Q,P,M,W;if(d.cellEditor.isContentEditing()){T.style.display="none";K.style.display="none";U.style.display="none";z.style.display="none";var aa=this.editorUi.toolbar.addButton(Editor.alignJustifyImage,mxResources.get("block"),function(){1==aa.style.opacity&&document.execCommand("justifyfull",!1,null)},C);aa.style.marginRight=
-"9px";this.styleButtons([aa,Y=this.editorUi.toolbar.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},C),Q=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",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(" "),qa={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,mxResources.get(oa[E]));ia.appendChild(O)}C.appendChild(ia);oa=m.cloneNode(!1);oa.removeAttribute("class");
-oa.style.marginLeft="0px";oa.style.paddingTop="4px";oa.style.paddingBottom="4px";oa.style.fontWeight="normal";mxUtils.write(oa,mxResources.get("writingDirection"));var Z=document.createElement("select");Z.style.position="absolute";Z.style.borderWidth="1px";Z.style.borderStyle="solid";Z.style.left="126px";Z.style.width="98px";Z.style.marginTop="-3px";O=["automatic","leftToRight","rightToLeft"];g.html&&(O.push("vertical-leftToRight"),O.push("vertical-rightToLeft"));var ca={automatic:null,leftToRight:mxConstants.TEXT_DIRECTION_LTR,
-rightToLeft:mxConstants.TEXT_DIRECTION_RTL,"vertical-leftToRight":mxConstants.TEXT_DIRECTION_VERTICAL_LR,"vertical-rightToLeft":mxConstants.TEXT_DIRECTION_VERTICAL_RL};for(E=0;E<O.length;E++){var V=document.createElement("option");V.setAttribute("value",O[E]);"vertical-"==O[E].substring(0,9)?mxUtils.write(V,mxResources.get("vertical")+" ("+mxResources.get(O[E].substring(9))+")"):mxUtils.write(V,mxResources.get(O[E]));Z.appendChild(V)}oa.appendChild(Z);d.isEditing()||(a.appendChild(C),mxEvent.addListener(ia,
-"change",function(p){d.getModel().beginUpdate();try{var A=qa[ia.value];null!=A&&(d.setCellStyles(mxConstants.STYLE_LABEL_POSITION,A[0],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_LABEL_POSITION,A[1],g.cells),d.setCellStyles(mxConstants.STYLE_ALIGN,A[2],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_ALIGN,A[3],g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(p)}),a.appendChild(oa),mxEvent.addListener(Z,"change",function(p){d.setCellStyles(mxConstants.STYLE_TEXT_DIRECTION,ca[Z.value],
-g.cells);mxEvent.consume(p)}));var ja=document.createElement("input");ja.style.position="absolute";ja.style.borderWidth="1px";ja.style.borderStyle="solid";ja.style.textAlign="right";ja.style.marginTop="4px";ja.style.left="161px";ja.style.width="53px";ja.style.height="23px";ja.style.boxSizing="border-box";k.appendChild(ja);C=this.installInputHandler(ja,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize,1,999," "+Editor.fontSizeUnit,function(p){if(null!=d.getSelectedEditingElement()){ja.value=
-p+" "+Editor.fontSizeUnit;document.execCommand("fontSize",!1,"1");for(var A=d.cellEditor.textarea.getElementsByTagName("font"),B=0;B<A.length;B++)if("1"==A[B].getAttribute("size")){A[B].removeAttribute("size");A[B].style.fontSize="";var F=mxUtils.getCurrentStyle(A[B]);p!=b(F)?A[B].style.fontSize=p+"px":""==A[B].getAttribute("style")&&A[B].removeAttribute("style")}}},!0);C=this.createStepper(ja,C,1,10,!0,Menus.prototype.defaultFontSize);C.style.display=ja.style.display;C.style.marginTop="4px";C.style.left=
-"214px";k.appendChild(C);k=u.getElementsByTagName("div")[0];k.style.cssFloat="right";var H=null,ea=d.shapeBackgroundColor,la=null,sa=d.shapeForegroundColor;k=mxUtils.getLightDarkColor(d.shapeBackgroundColor);var Pa="light-dark("+mxUtils.hex2rgb(k.light)+", "+mxUtils.hex2rgb(k.dark)+")",ma=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("backgroundColor"),function(){return ea==d.shapeBackgroundColor||ea==Pa?"default":ea},function(p){null!=d.cellEditor.textarea&&("default"==p&&
-(p=d.shapeBackgroundColor),Graph.setTextColor(d.cellEditor.textarea,p,!1),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[p],"cells",g.cells)))},"default",{install:function(p){H=p},destroy:function(){H=null}},null,null,d.shapeBackgroundColor):this.createCellColorOption(mxResources.get("backgroundColor"),mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,"default",null,function(p){d.updateLabelElements(g.cells,function(A){A.style.backgroundColor=null})},
-d.shapeBackgroundColor);ma.style.fontWeight="bold";var Ca=this.createCellColorOption(mxResources.get("borderColor"),mxConstants.STYLE_LABEL_BORDERCOLOR,"default",null,null,d.shapeForegroundColor);Ca.style.fontWeight="bold";k=1<=g.vertices.length?d.stylesheet.getDefaultVertexStyle():d.stylesheet.getDefaultEdgeStyle();k=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("fontColor"),function(){return sa},function(p){null!=d.cellEditor.textarea&&("default"==p&&(p=mxConstants.NONE),
-Graph.setTextColor(d.cellEditor.textarea,p,!0),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTCOLOR],"values",[p],"cells",g.cells)))},"default",{install:function(p){la=p},destroy:function(){la=null}},null,!0,null!=k[mxConstants.STYLE_FONTCOLOR]&&"default"!=k[mxConstants.STYLE_FONTCOLOR]?k[mxConstants.STYLE_FONTCOLOR]:d.shapeForegroundColor):this.createCellColorOption(mxResources.get("fontColor"),mxConstants.STYLE_FONTCOLOR,"default",function(p){ma.style.display=p==mxConstants.NONE?
-"none":"";Ca.style.display=ma.style.display},function(p){p==mxConstants.NONE?d.setCellStyles(mxConstants.STYLE_NOLABEL,"1",g.cells):d.setCellStyles(mxConstants.STYLE_NOLABEL,null,g.cells);d.setCellStyles(mxConstants.STYLE_FONTCOLOR,p,g.cells);d.updateLabelElements(g.cells,function(A){A.removeAttribute("color");A.style.color=null})},d.shapeForegroundColor);k.style.fontWeight="bold";q.appendChild(k);q.appendChild(ma);k=this.createCellOption(mxResources.get("shadow"),mxConstants.STYLE_TEXT_SHADOW,0);
-k.style.width="100%";k.style.fontWeight="bold";Editor.enableShadowOption||(k.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(k,60));d.cellEditor.isContentEditing()||(q.appendChild(Ca),q.appendChild(k));a.appendChild(q);q=this.createPanel();q.style.paddingTop="2px";q.style.paddingBottom="4px";k=d.filterSelectionCells(mxUtils.bind(this,function(p){var A=d.view.getState(p);return null==A||d.isAutoSizeState(A)||d.getModel().isEdge(p)||!d.isTableRow(p)&&!d.isTableCell(p)&&
-!d.isCellResizable(p)}));C=this.createCellOption(mxResources.get("wordWrap"),mxConstants.STYLE_WHITE_SPACE,null,"wrap","null",null,null,!0,k);C.style.fontWeight="bold";0<k.length&&q.appendChild(C);k=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null,h.actions.get("formattedText"));k.style.fontWeight="bold";q.appendChild(k);k=this.createPanel();k.style.paddingTop="10px";k.style.paddingBottom="28px";k.style.fontWeight="normal";C=document.createElement("div");C.style.position=
-"absolute";C.style.width="70px";C.style.marginTop="0px";C.style.fontWeight="bold";mxUtils.write(C,mxResources.get("spacing"));k.appendChild(C);var Da=this.addUnitInput(k,this.getUnit(),87,52,function(){fb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ga=this.addUnitInput(k,this.getUnit(),16,52,function(){cb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("top"),87,64);this.addLabel(k,mxResources.get("global"),
-16,64);mxUtils.br(k);mxUtils.br(k);var Ia=this.addUnitInput(k,this.getUnit(),158,52,function(){ab.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ha=this.addUnitInput(k,this.getUnit(),87,52,function(){gb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ja=this.addUnitInput(k,this.getUnit(),16,52,function(){pb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),158,64);this.addLabel(k,
-mxResources.get("bottom"),87,64);this.addLabel(k,mxResources.get("right"),16,64);if(d.cellEditor.isContentEditing()){var ta=null,La=null;a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(p){var A=""==p.value?120:parseInt(p.value);A=Math.max(0,isNaN(A)?120:A);if(window.getSelection){null!=ta&&(d.cellEditor.restoreSelection(ta),ta=null);var B=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&B==d.cellEditor.textarea&&null!=d.cellEditor.textarea.firstChild&&
-d.cellEditor.textarea.firstChild.nodeType!=mxConstants.NODETYPE_ELEMENT&&1==d.cellEditor.textarea.children.length){var F=window.getSelection();if(F.getRangeAt&&0<F.rangeCount){var N=F.getRangeAt(0);B=document.createElement("div");B.appendChild(N.extractContents());d.cellEditor.textarea.innerHTML="";d.cellEditor.textarea.appendChild(B);F.removeAllRanges();N=new Range;N.selectNodeContents(B);F.addRange(N)}}if(null!=B)for(B!=d.cellEditor.textarea&&e(B,A),B=B.getElementsByTagName("*"),F=window.getSelection(),
-N=0;N<B.length;N++)F.containsNode(B[N],!0)&&e(B[N],A)}p.value=A+" %"},function(p){La=p;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(A){document.activeElement==d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())}));mxEvent.addListener(p,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())});p.value="120 %"}));q=m.cloneNode(!1);q.style.paddingLeft="0px";k=this.editorUi.toolbar.addItems(["link","image"],q,!0,[Editor.linkImage,Editor.imageImage]);
-C=[this.editorUi.toolbar.addButton(Editor.horizontalRuleImage,mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",!1)},q),this.editorUi.toolbar.addMenuFunctionInContainer(q,Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(p){this.editorUi.menus.addInsertTableItem(p,null,null,!1)}))];this.styleButtons(k);this.styleButtons(C);k=this.createPanel();k.style.paddingTop="10px";k.style.paddingBottom="10px";k.appendChild(this.createTitle(mxResources.get("insert")));
-k.appendChild(q);a.appendChild(k);k=m.cloneNode(!1);k.style.paddingLeft="0px";C=[this.editorUi.toolbar.addButton("geSprite-insertcolumnbefore",mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=P&&d.insertColumn(P,null!=M?M.cellIndex:0)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton("geSprite-insertcolumnafter",mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{null!=P&&d.insertColumn(P,null!=M?M.cellIndex+1:-1)}catch(p){this.editorUi.handleError(p)}}),
-k),this.editorUi.toolbar.addButton("geSprite-deletecolumn",mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=P&&null!=M&&d.deleteColumn(P,M.cellIndex)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton("geSprite-insertrowbefore",mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{null!=P&&null!=W&&d.insertRow(P,W.sectionRowIndex)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton("geSprite-insertrowafter",mxResources.get("insertRowAfter"),
-mxUtils.bind(this,function(){try{null!=P&&null!=W&&d.insertRow(P,W.sectionRowIndex+1)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton("geSprite-deleterow",mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=P&&null!=W&&d.deleteRow(P,W.sectionRowIndex)}catch(p){this.editorUi.handleError(p)}}),k)];this.styleButtons(C);C[2].style.marginRight="10px";q=this.createPanel();q.style.paddingTop="10px";q.style.paddingBottom="10px";q.appendChild(this.createTitle(mxResources.get("table")));
-q.appendChild(k);m=m.cloneNode(!1);m.style.paddingLeft="0px";C=[this.editorUi.toolbar.addButton("geSprite-strokecolor",mxResources.get("borderColor"),mxUtils.bind(this,function(p){if(null!=P){var A=P.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,N,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(N).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});this.editorUi.pickColor(A,function(B){var F=null==M||null!=p&&mxEvent.isShiftDown(p)?
-P:M;d.processElements(F,function(N){N.style.border=null});null==B||B==mxConstants.NONE?(F.removeAttribute("border"),F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+B,F.style.borderCollapse="collapse")})}}),m),this.editorUi.toolbar.addButton("geSprite-fillcolor",mxResources.get("backgroundColor"),mxUtils.bind(this,function(p){if(null!=P){var A=P.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,N,R){return"#"+
-("0"+Number(F).toString(16)).substr(-2)+("0"+Number(N).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});this.editorUi.pickColor(A,function(B){var F=null==M||null!=p&&mxEvent.isShiftDown(p)?P:M;d.processElements(F,function(N){N.style.backgroundColor=null});F.style.backgroundColor=null==B||B==mxConstants.NONE?"":B})}}),m),this.editorUi.toolbar.addButton("geSprite-fit",mxResources.get("spacing"),function(){if(null!=P){var p=P.getAttribute("cellPadding")||0;p=new FilenameDialog(h,p,
-mxResources.get("apply"),mxUtils.bind(this,function(A){null!=A&&0<A.length?P.setAttribute("cellPadding",A):P.removeAttribute("cellPadding")}),mxResources.get("spacing"));h.showDialog(p.container,300,80,!0,!0);p.init()}},m),this.editorUi.toolbar.addButton("geSprite-left",mxResources.get("left"),function(){null!=P&&P.setAttribute("align","left")},m),this.editorUi.toolbar.addButton("geSprite-center",mxResources.get("center"),function(){null!=P&&P.setAttribute("align","center")},m),this.editorUi.toolbar.addButton("geSprite-right",
-mxResources.get("right"),function(){null!=P&&P.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!=ja)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_FONTSIZE,
-Menus.prototype.defaultFontSize)),ja.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(I,p==mxConstants.ALIGN_RIGHT);p=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(T,p==mxConstants.ALIGN_TOP);f(K,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?Z.value="rightToLeft":p==mxConstants.TEXT_DIRECTION_LTR?Z.value="leftToRight":p!=mxConstants.TEXT_DIRECTION_AUTO&&g.html?p==mxConstants.TEXT_DIRECTION_VERTICAL_LR?Z.value="vertical-leftToRight":p==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(Z.value="vertical-rightToLeft"):Z.value="automatic";if(B||document.activeElement!=
-Ga)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING,2)),Ga.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Da)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_TOP,0)),Da.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ja)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ja.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ha)p=parseFloat(mxUtils.getValue(g.style,
-mxConstants.STYLE_SPACING_BOTTOM,0)),Ha.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ia)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_LEFT,0)),Ia.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit()});var cb=this.installInputHandler(Ga,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var fb=this.installInputHandler(Da,mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=
-this.installInputHandler(Ja,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var gb=this.installInputHandler(Ha,mxConstants.STYLE_SPACING_BOTTOM,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ab=this.installInputHandler(Ia,mxConstants.STYLE_SPACING_LEFT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(ja,Ya);this.addKeyHandler(Ga,Ya);this.addKeyHandler(Da,Ya);this.addKeyHandler(Ja,Ya);this.addKeyHandler(Ha,Ya);this.addKeyHandler(Ia,
-Ya);d.getModel().addListener(mxEvent.CHANGE,Ya);this.listeners.push({destroy:function(){d.getModel().removeListener(Ya)}});Ya();if(d.cellEditor.isContentEditing()){var ib=null,eb=!1;m=mxUtils.bind(this,function(){eb||(eb=!0,window.setTimeout(mxUtils.bind(this,function(){var p=d.getSelectedEditingElement();if(null!=p&&null!=d.cellEditor.textarea){var A=function(ya,za){if(null!=ya&&null!=za){if(ya==za)return!0;if(ya.length>za.length+1)return ya.substring(ya.length-za.length-1,ya.length)=="-"+za}return!1},
-B=function(ya){if(null!=d.getParentByName(p,ya,d.cellEditor.textarea))return!0;for(var za=p;null!=za&&1==za.childNodes.length;)if(za=za.childNodes[0],za.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},N=mxUtils.getCurrentStyle(p),R=p==d.cellEditor.textarea||""==p.style.lineHeight?null:p.style.lineHeight,X=p==d.cellEditor.textarea||""==p.style.fontSize?null:b(N);if(window.getSelection)for(var fa=
-p.getElementsByTagName("*"),da=window.getSelection(),ha=0;ha<fa.length&&(!da.containsNode(fa[ha],!0)||(null==X&&""!=fa[ha].style.fontSize&&(X=parseFloat(fa[ha].style.fontSize)),null==R&&""!=fa[ha].style.lineHeight&&(R=fa[ha].style.lineHeight),null==X||null==R));ha++);null==X&&(X=b(N));if(null==R)for(da=p;null!=da&&da!=d.cellEditor.textarea.parentNode;){if(null!=da.style&&""!=da.style.lineHeight){R=da.style.lineHeight;break}da=da.parentNode}if(null!=N){fa=function(ya,za){var va=null,ua=null;if(ya.nodeType==
-mxConstants.NODETYPE_ELEMENT){ya=ya.getAttribute(Graph.backupStyleAttribute);try{null!=ya&&(ua=JSON.parse(ya))}catch(Va){}null!=ua&&null!=ua[za]&&("color"==za&&"FONT"==p.nodeName&&""==ua[za]&&null!=p.getAttribute("color")?va=p.getAttribute("color"):""!=ua[za]&&(va=ua[za]));null==va&&""!=p.style[za]&&(va=p.style[za])}return va};f(w[0],"bold"==N.fontWeight||400<N.fontWeight||B("B")||B("STRONG"));f(w[1],"italic"==N.fontStyle||B("I")||B("EM"));f(w[2],"underline"==N.textDecorationLine||B("U"));f(L,"line-through"==
-N.textDecorationLine||B("STRIKE"));f(Q,B("SUP"));f(Y,B("SUB"));var wa=F(p);if(null!=wa){B=function(ya,za){Na.push({name:ya,dispName:za,type:"string",getValue:function(){return Ma[ya]},valueChanged:function(va,ua){var Va=wa.style,Qa=va;parseInt(Qa)==Qa&&(Qa+="px",null!=ua&&(ua.value=Qa));Va[ya]=Qa;""==va&&null!=ua&&(ua.value=Ma[ya])}})};var Ma=mxUtils.getCurrentStyle(wa),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(aa,A(N.textAlign,"justify")),f(D,A(N.textAlign,"left")),f(G,A(N.textAlign,"center")),f(I,A(N.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(g.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),A(N.textAlign,"justify")?
-(f(aa,A(N.textAlign,"justify")),f(D,!1),f(G,!1),f(I,!1)):(f(aa,!1),f(D,B==mxConstants.ALIGN_LEFT),f(G,B==mxConstants.ALIGN_CENTER),f(I,B==mxConstants.ALIGN_RIGHT)));P=d.getParentByName(p,"TABLE",d.cellEditor.textarea);W=null==P?null:d.getParentByName(p,"TR",P);M=null==P?null:d.getParentByNames(p,["TD","TH"],P);Xa.style.display=null!=P?"":"none";document.activeElement!=ja&&(ja.value=isNaN(X)?"":X+" "+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)+" %"));if(null!=la){da=p==d.cellEditor.textarea?"default":fa(p,"color");for(A=p;null==da&&null!=A&&A!=d.cellEditor.textarea.parentNode;)da=A==d.cellEditor.textarea?"default":fa(A,"color"),A=A.parentNode;if("rgba(0, 0, 0, 0)"==da||"transparent"==da)da=mxConstants.NONE;sa=da;la(sa,!0)}if(null!=H){da=fa(p,"background-color");for(A=p;null==da&&null!=A&&A!=d.cellEditor.textarea.parentNode;)da=fa(A,"background-color"),A=A.parentNode;if("rgba(0, 0, 0, 0)"==
-da||"transparent"==da)da=mxConstants.NONE;ea=da;H(ea,!0)}null!=u.firstChild&&(u.firstChild.nodeValue=mxUtils.getCssFontFamily(N.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);
+TextFormatPanel.prototype.addFont=function(a){function b(q){q=null!=q?q.fontSize:null;return null!=q&&"px"==q.substring(q.length-2)?parseFloat(q):mxConstants.DEFAULT_FONTSIZE}function e(q,A){if(null!=q&&""!=q.textContent){q.style.lineHeight="";var B=mxUtils.getCurrentStyle(q);parseFloat(B.fontSize)*A/100!=parseFloat(B.lineHeight)?q.style.lineHeight=A+"%":""==q.getAttribute("style")&&q.removeAttribute("style")}}function f(q,A){A?q.classList.add("geActiveItem"):q.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 p=m.cloneNode(),k=this.editorUi.toolbar.addMenu(mxResources.get("style"),mxResources.get("style"),
+!0,"formatBlock",p,null,!0);this.addArrow(k);k.style.width="211px";k.style.alignItems="center";k.style.justifyContent="center";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.margin="0px";k.style.position="relative";k=k.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";a.appendChild(p)}a.appendChild(m);p=this.createPanel();p.style.marginTop="8px";p.style.borderWidth="1px";p.style.borderStyle="solid";p.style.paddingTop="6px";p.style.paddingBottom="2px";var u=
+this.editorUi.toolbar.addMenu("Helvetica",mxResources.get("fontFamily"),!0,"fontFamily",m,null,!0);this.addArrow(u);u.style.width="211px";u.style.alignItems="center";u.style.justifyContent="center";u.style.whiteSpace="nowrap";u.style.overflow="hidden";u.style.margin="0px";u.style.position="relative";k=u.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";k=m.cloneNode(!1);k.style.marginLeft="-3px";k.style.height="31px";var x=this.editorUi.toolbar.addItems(["bold","italic",
+"underline"],k,!0,[Editor.boldImage,Editor.italicImage,Editor.underlineImage]);x[0].setAttribute("title",mxResources.get("bold")+" ("+this.editorUi.actions.get("bold").shortcut+")");x[1].setAttribute("title",mxResources.get("italic")+" ("+this.editorUi.actions.get("italic").shortcut+")");x[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(x);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(q){return function(){return q()}},D=this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_LEFT,q);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(q){d.cellEditor.alignText(mxConstants.ALIGN_CENTER,q);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),I=this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_RIGHT,q);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 T=this.editorUi.toolbar.addButton(Editor.alignTopImage,mxResources.get("top"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),K=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([T,K,U]);a.appendChild(C);var Y,Q,P,M,V;if(d.cellEditor.isContentEditing()){T.style.display="none";K.style.display="none";U.style.display="none";z.style.display="none";var aa=this.editorUi.toolbar.addButton(Editor.alignJustifyImage,mxResources.get("block"),
+function(){1==aa.style.opacity&&document.execCommand("justifyfull",!1,null)},C);aa.style.marginRight="9px";this.styleButtons([aa,Y=this.editorUi.toolbar.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},C),Q=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 x[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 na="topLeft top topRight left center right bottomLeft bottom bottomRight".split(" "),qa={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<na.length;E++){var O=document.createElement("option");O.setAttribute("value",na[E]);mxUtils.write(O,
+mxResources.get(na[E]));ia.appendChild(O)}C.appendChild(ia);na=m.cloneNode(!1);na.removeAttribute("class");na.style.marginLeft="0px";na.style.paddingTop="4px";na.style.paddingBottom="4px";na.style.fontWeight="normal";mxUtils.write(na,mxResources.get("writingDirection"));var Z=document.createElement("select");Z.style.position="absolute";Z.style.borderWidth="1px";Z.style.borderStyle="solid";Z.style.left="126px";Z.style.width="98px";Z.style.marginTop="-3px";O=["automatic","leftToRight","rightToLeft"];
+g.html&&(O.push("vertical-leftToRight"),O.push("vertical-rightToLeft"));var ca={automatic:null,leftToRight:mxConstants.TEXT_DIRECTION_LTR,rightToLeft:mxConstants.TEXT_DIRECTION_RTL,"vertical-leftToRight":mxConstants.TEXT_DIRECTION_VERTICAL_LR,"vertical-rightToLeft":mxConstants.TEXT_DIRECTION_VERTICAL_RL};for(E=0;E<O.length;E++){var W=document.createElement("option");W.setAttribute("value",O[E]);"vertical-"==O[E].substring(0,9)?mxUtils.write(W,mxResources.get("vertical")+" ("+mxResources.get(O[E].substring(9))+
+")"):mxUtils.write(W,mxResources.get(O[E]));Z.appendChild(W)}na.appendChild(Z);d.isEditing()||(a.appendChild(C),mxEvent.addListener(ia,"change",function(q){d.getModel().beginUpdate();try{var A=qa[ia.value];null!=A&&(d.setCellStyles(mxConstants.STYLE_LABEL_POSITION,A[0],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_LABEL_POSITION,A[1],g.cells),d.setCellStyles(mxConstants.STYLE_ALIGN,A[2],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_ALIGN,A[3],g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(q)}),
+a.appendChild(na),mxEvent.addListener(Z,"change",function(q){d.setCellStyles(mxConstants.STYLE_TEXT_DIRECTION,ca[Z.value],g.cells);mxEvent.consume(q)}));var ja=document.createElement("input");ja.style.position="absolute";ja.style.borderWidth="1px";ja.style.borderStyle="solid";ja.style.textAlign="right";ja.style.marginTop="4px";ja.style.left="161px";ja.style.width="53px";ja.style.height="23px";ja.style.boxSizing="border-box";k.appendChild(ja);C=this.installInputHandler(ja,mxConstants.STYLE_FONTSIZE,
+Menus.prototype.defaultFontSize,1,999," "+Editor.fontSizeUnit,function(q){if(null!=d.getSelectedEditingElement()){ja.value=q+" "+Editor.fontSizeUnit;document.execCommand("fontSize",!1,"1");for(var A=d.cellEditor.textarea.getElementsByTagName("font"),B=0;B<A.length;B++)if("1"==A[B].getAttribute("size")){A[B].removeAttribute("size");A[B].style.fontSize="";var F=mxUtils.getCurrentStyle(A[B]);q!=b(F)?A[B].style.fontSize=q+"px":""==A[B].getAttribute("style")&&A[B].removeAttribute("style")}}},!0);C=this.createStepper(ja,
+C,1,10,!0,Menus.prototype.defaultFontSize);C.style.display=ja.style.display;C.style.marginTop="4px";C.style.left="214px";k.appendChild(C);k=u.getElementsByTagName("div")[0];k.style.cssFloat="right";var H=null,ea=d.shapeBackgroundColor,oa=null,sa=d.shapeForegroundColor;k=mxUtils.getLightDarkColor(d.shapeBackgroundColor);var Pa="light-dark("+mxUtils.hex2rgb(k.light)+", "+mxUtils.hex2rgb(k.dark)+")",la=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("backgroundColor"),function(){return ea==
+d.shapeBackgroundColor||ea==Pa?"default":ea},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=d.shapeBackgroundColor),Graph.setTextColor(d.cellEditor.textarea,q,!1),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[q],"cells",g.cells)))},"default",{install:function(q){H=q},destroy:function(){H=null}},null,null,d.shapeBackgroundColor):this.createCellColorOption(mxResources.get("backgroundColor"),mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,
+"default",null,function(q){d.updateLabelElements(g.cells,function(A){A.style.backgroundColor=null})},d.shapeBackgroundColor);la.style.fontWeight="bold";var Ba=this.createCellColorOption(mxResources.get("borderColor"),mxConstants.STYLE_LABEL_BORDERCOLOR,"default",null,null,d.shapeForegroundColor);Ba.style.fontWeight="bold";k=1<=g.vertices.length?d.stylesheet.getDefaultVertexStyle():d.stylesheet.getDefaultEdgeStyle();k=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("fontColor"),
+function(){return sa},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=mxConstants.NONE),Graph.setTextColor(d.cellEditor.textarea,q,!0),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTCOLOR],"values",[q],"cells",g.cells)))},"default",{install:function(q){oa=q},destroy:function(){oa=null}},null,!0,null!=k[mxConstants.STYLE_FONTCOLOR]&&"default"!=k[mxConstants.STYLE_FONTCOLOR]?k[mxConstants.STYLE_FONTCOLOR]:d.shapeForegroundColor):this.createCellColorOption(mxResources.get("fontColor"),
+mxConstants.STYLE_FONTCOLOR,"default",function(q){la.style.display=q==mxConstants.NONE?"none":"";Ba.style.display=la.style.display},function(q){q==mxConstants.NONE?d.setCellStyles(mxConstants.STYLE_NOLABEL,"1",g.cells):d.setCellStyles(mxConstants.STYLE_NOLABEL,null,g.cells);d.setCellStyles(mxConstants.STYLE_FONTCOLOR,q,g.cells);d.updateLabelElements(g.cells,function(A){A.removeAttribute("color");A.style.color=null})},d.shapeForegroundColor);k.style.fontWeight="bold";p.appendChild(k);p.appendChild(la);
+k=this.createCellOption(mxResources.get("shadow"),mxConstants.STYLE_TEXT_SHADOW,0);k.style.width="100%";k.style.fontWeight="bold";Editor.enableShadowOption||(k.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(k,60));d.cellEditor.isContentEditing()||(p.appendChild(Ba),p.appendChild(k));a.appendChild(p);p=this.createPanel();p.style.paddingTop="2px";p.style.paddingBottom="4px";k=d.filterSelectionCells(mxUtils.bind(this,function(q){var A=d.view.getState(q);return null==
+A||d.isAutoSizeState(A)||d.getModel().isEdge(q)||!d.isTableRow(q)&&!d.isTableCell(q)&&!d.isCellResizable(q)}));C=this.createCellOption(mxResources.get("wordWrap"),mxConstants.STYLE_WHITE_SPACE,null,"wrap","null",null,null,!0,k);C.style.fontWeight="bold";0<k.length&&p.appendChild(C);k=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null,h.actions.get("formattedText"));k.style.fontWeight="bold";p.appendChild(k);k=this.createPanel();k.style.paddingTop="10px";k.style.paddingBottom=
+"28px";k.style.fontWeight="normal";C=document.createElement("div");C.style.position="absolute";C.style.width="70px";C.style.marginTop="0px";C.style.fontWeight="bold";mxUtils.write(C,mxResources.get("spacing"));k.appendChild(C);var Ca=this.addUnitInput(k,this.getUnit(),87,52,function(){fb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Fa=this.addUnitInput(k,this.getUnit(),16,52,function(){cb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);
+this.addLabel(k,mxResources.get("top"),87,64);this.addLabel(k,mxResources.get("global"),16,64);mxUtils.br(k);mxUtils.br(k);var Ia=this.addUnitInput(k,this.getUnit(),158,52,function(){ab.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ha=this.addUnitInput(k,this.getUnit(),87,52,function(){gb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ja=this.addUnitInput(k,this.getUnit(),16,52,function(){pb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());
+mxUtils.br(k);this.addLabel(k,mxResources.get("left"),158,64);this.addLabel(k,mxResources.get("bottom"),87,64);this.addLabel(k,mxResources.get("right"),16,64);if(d.cellEditor.isContentEditing()){var ta=null,La=null;a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(q){var A=""==q.value?120:parseInt(q.value);A=Math.max(0,isNaN(A)?120:A);if(window.getSelection){null!=ta&&(d.cellEditor.restoreSelection(ta),ta=null);var B=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&
+B==d.cellEditor.textarea&&null!=d.cellEditor.textarea.firstChild&&d.cellEditor.textarea.firstChild.nodeType!=mxConstants.NODETYPE_ELEMENT&&1==d.cellEditor.textarea.children.length){var F=window.getSelection();if(F.getRangeAt&&0<F.rangeCount){var N=F.getRangeAt(0);B=document.createElement("div");B.appendChild(N.extractContents());d.cellEditor.textarea.innerHTML="";d.cellEditor.textarea.appendChild(B);F.removeAllRanges();N=new Range;N.selectNodeContents(B);F.addRange(N)}}if(null!=B)for(B!=d.cellEditor.textarea&&
+e(B,A),B=B.getElementsByTagName("*"),F=window.getSelection(),N=0;N<B.length;N++)F.containsNode(B[N],!0)&&e(B[N],A)}q.value=A+" %"},function(q){La=q;mxEvent.addGestureListeners(q,mxUtils.bind(this,function(A){document.activeElement==d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())}));mxEvent.addListener(q,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())});q.value="120 %"}));p=m.cloneNode(!1);p.style.paddingLeft="0px";k=this.editorUi.toolbar.addItems(["link",
+"image"],p,!0,[Editor.linkImage,Editor.imageImage]);C=[this.editorUi.toolbar.addButton(Editor.horizontalRuleImage,mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",!1)},p),this.editorUi.toolbar.addMenuFunctionInContainer(p,Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(q){this.editorUi.menus.addInsertTableItem(q,null,null,!1)}))];this.styleButtons(k);this.styleButtons(C);k=this.createPanel();k.style.height="57px";k.style.paddingTop=
+"10px";k.style.paddingBottom="8px";k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(p);a.appendChild(k);k=m.cloneNode(!1);k.style.height="33px";k.style.paddingLeft="0px";C=[this.editorUi.toolbar.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=P&&d.insertColumn(P,null!=M?M.cellIndex:0)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),
+mxUtils.bind(this,function(){try{null!=P&&d.insertColumn(P,null!=M?M.cellIndex+1:-1)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=P&&null!=M&&d.deleteColumn(P,M.cellIndex)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{null!=P&&null!=V&&d.insertRow(P,V.sectionRowIndex)}catch(q){this.editorUi.handleError(q)}}),
+k),this.editorUi.toolbar.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{null!=P&&null!=V&&d.insertRow(P,V.sectionRowIndex+1)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=P&&null!=V&&d.deleteRow(P,V.sectionRowIndex)}catch(q){this.editorUi.handleError(q)}}),k)];this.styleButtons(C);C[2].style.marginRight="10px";p=this.createPanel();
+p.style.paddingTop="10px";p.style.paddingBottom="10px";p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(k);m=m.cloneNode(!1);m.style.height="33px";m.style.padding="0";C=[this.editorUi.toolbar.addButton(Editor.strokeColorImage,mxResources.get("borderColor"),mxUtils.bind(this,function(q){if(null!=P){var A=P.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,N,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(N).toString(16)).substr(-2)+
+("0"+Number(R).toString(16)).substr(-2)});this.editorUi.pickColor(A,function(B){var F=null==M||null!=q&&mxEvent.isShiftDown(q)?P:M;d.processElements(F,function(N){N.style.border=null});null==B||B==mxConstants.NONE?(F.removeAttribute("border"),F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+B,F.style.borderCollapse="collapse")})}}),m),this.editorUi.toolbar.addButton(Editor.fillColorImage,mxResources.get("backgroundColor"),mxUtils.bind(this,function(q){if(null!=
+P){var A=P.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,N,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(N).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});this.editorUi.pickColor(A,function(B){var F=null==M||null!=q&&mxEvent.isShiftDown(q)?P:M;d.processElements(F,function(N){N.style.backgroundColor=null});F.style.backgroundColor=null==B||B==mxConstants.NONE?"":B})}}),m),this.editorUi.toolbar.addButton(Editor.spacingImage,
+mxResources.get("spacing"),function(){if(null!=P){var q=P.getAttribute("cellPadding")||0;q=new FilenameDialog(h,q,mxResources.get("apply"),mxUtils.bind(this,function(A){null!=A&&0<A.length?P.setAttribute("cellPadding",A):P.removeAttribute("cellPadding")}),mxResources.get("spacing"));h.showDialog(q.container,300,80,!0,!0);q.init()}},m),this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=P&&P.setAttribute("align","left")},m),this.editorUi.toolbar.addButton(Editor.alignCenterImage,
+mxResources.get("center"),function(){null!=P&&P.setAttribute("align","center")},m),this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),function(){null!=P&&P.setAttribute("align","right")},m)];this.styleButtons(C);C[2].style.marginRight="10px";p.appendChild(m);a.appendChild(p);var Xa=p}else a.appendChild(p),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_TEXT_OPACITY)),a.appendChild(k);for(E=0;3>E;E++)(function(q){mxEvent.addListener(x[q],
+"click",function(){f(x[q],""==x[q].style.backgroundImage)})})(E);var Ya=mxUtils.bind(this,function(q,A,B){g=h.getSelectionState();q=mxUtils.getValue(g.style,mxConstants.STYLE_FONTSTYLE,0);f(x[0],(q&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);f(x[1],(q&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);f(x[2],(q&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!=ja)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),ja.value=isNaN(q)?"":q+" "+Editor.fontSizeUnit;q=mxUtils.getValue(g.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,q==mxConstants.ALIGN_LEFT);f(G,q==mxConstants.ALIGN_CENTER);f(I,q==mxConstants.ALIGN_RIGHT);q=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(T,q==mxConstants.ALIGN_TOP);
+f(K,q==mxConstants.ALIGN_MIDDLE);f(U,q==mxConstants.ALIGN_BOTTOM);q=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=q==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_TOP?"topLeft":q==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_TOP?"top":q==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_TOP?"topRight":q==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_BOTTOM?"bottomLeft":
+q==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_BOTTOM?"bottom":q==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_BOTTOM?"bottomRight":q==mxConstants.ALIGN_LEFT?"left":q==mxConstants.ALIGN_RIGHT?"right":"center";q=mxUtils.getValue(g.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);q==mxConstants.TEXT_DIRECTION_RTL?Z.value="rightToLeft":q==mxConstants.TEXT_DIRECTION_LTR?Z.value="leftToRight":q!=mxConstants.TEXT_DIRECTION_AUTO&&g.html?q==mxConstants.TEXT_DIRECTION_VERTICAL_LR?
+Z.value="vertical-leftToRight":q==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(Z.value="vertical-rightToLeft"):Z.value="automatic";if(B||document.activeElement!=Fa)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING,2)),Fa.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ca)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_TOP,0)),Ca.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ja)q=parseFloat(mxUtils.getValue(g.style,
+mxConstants.STYLE_SPACING_RIGHT,0)),Ja.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ha)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Ha.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ia)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_LEFT,0)),Ia.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit()});var cb=this.installInputHandler(Fa,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),
+null,this.isFloatUnit(),!0);var fb=this.installInputHandler(Ca,mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ja,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var gb=this.installInputHandler(Ha,mxConstants.STYLE_SPACING_BOTTOM,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ab=this.installInputHandler(Ia,mxConstants.STYLE_SPACING_LEFT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),
+!0);this.addKeyHandler(ja,Ya);this.addKeyHandler(Fa,Ya);this.addKeyHandler(Ca,Ya);this.addKeyHandler(Ja,Ya);this.addKeyHandler(Ha,Ya);this.addKeyHandler(Ia,Ya);d.getModel().addListener(mxEvent.CHANGE,Ya);this.listeners.push({destroy:function(){d.getModel().removeListener(Ya)}});Ya();if(d.cellEditor.isContentEditing()){var ib=null,eb=!1;m=mxUtils.bind(this,function(){eb||(eb=!0,window.setTimeout(mxUtils.bind(this,function(){var q=d.getSelectedEditingElement();if(null!=q&&null!=d.cellEditor.textarea){var A=
+function(ya,Ga){if(null!=ya&&null!=Ga){if(ya==Ga)return!0;if(ya.length>Ga.length+1)return ya.substring(ya.length-Ga.length-1,ya.length)=="-"+Ga}return!1},B=function(ya){if(null!=d.getParentByName(q,ya,d.cellEditor.textarea))return!0;for(var Ga=q;null!=Ga&&1==Ga.childNodes.length;)if(Ga=Ga.childNodes[0],Ga.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},N=mxUtils.getCurrentStyle(q),
+R=q==d.cellEditor.textarea||""==q.style.lineHeight?null:q.style.lineHeight,X=q==d.cellEditor.textarea||""==q.style.fontSize?null:b(N);if(window.getSelection)for(var fa=q.getElementsByTagName("*"),da=window.getSelection(),ha=0;ha<fa.length&&(!da.containsNode(fa[ha],!0)||(null==X&&""!=fa[ha].style.fontSize&&(X=parseFloat(fa[ha].style.fontSize)),null==R&&""!=fa[ha].style.lineHeight&&(R=fa[ha].style.lineHeight),null==X||null==R));ha++);null==X&&(X=b(N));if(null==R)for(fa=q;null!=fa&&fa!=d.cellEditor.textarea.parentNode;){if(null!=
+fa.style&&""!=fa.style.lineHeight){R=fa.style.lineHeight;break}fa=fa.parentNode}if(null!=N){f(x[0],"bold"==N.fontWeight||400<N.fontWeight||B("B")||B("STRONG"));f(x[1],"italic"==N.fontStyle||B("I")||B("EM"));f(x[2],"underline"==N.textDecorationLine||B("U"));f(L,"line-through"==N.textDecorationLine||B("STRIKE"));f(Q,B("SUP"));f(Y,B("SUB"));var va=F(q);if(null!=va){B=function(ya,Ga){Na.push({name:ya,dispName:Ga,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(aa,A(N.textAlign,"justify")),f(D,A(N.textAlign,"left")),f(G,A(N.textAlign,"center")),f(I,A(N.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(g.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),A(N.textAlign,"justify")?(f(aa,A(N.textAlign,"justify")),f(D,!1),f(G,!1),f(I,!1)):(f(aa,!1),f(D,B==mxConstants.ALIGN_LEFT),f(G,B==mxConstants.ALIGN_CENTER),f(I,B==mxConstants.ALIGN_RIGHT)));P=d.getParentByName(q,"TABLE",d.cellEditor.textarea);V=null==
+P?null:d.getParentByName(q,"TR",P);M=null==P?null:d.getParentByNames(q,["TD","TH"],P);Xa.style.display=null!=P?"":"none";document.activeElement!=ja&&(ja.value=isNaN(X)?"":X+" "+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!=oa&&(sa=d.getTextColor(q,!0),oa(sa,!0));null!=H&&(ea=d.getTextColor(q,!1),H(ea,!0));null!=u.firstChild&&(u.firstChild.nodeValue=mxUtils.getCssFontFamily(N.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()));
var b=this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_OPACITY);b.style.paddingTop="8px";b.style.paddingBottom="10px";this.container.appendChild(b);this.container.appendChild(this.addEffects(this.createPanel()))}b=this.createPanel();b.style.paddingTop="8px";1==a.cells.length&&(this.addEditOps(b),null!=b.firstChild&&mxUtils.br(b));1<=a.cells.length&&this.addStyleOps(b);null!=b.firstChild&&this.container.appendChild(b)};
StyleFormatPanel.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 dark"!=g.documentElement.style.colorScheme,q=g.getElementsByTagName("style");
-for(b=0;b<q.length;b++){var k=this.getCssRules(mxUtils.getTextContent(q[b]));if(e=m)for(var u=0;u<k.length;u++)if(0<=k[b].cssText.indexOf("color-scheme: light dark")){e=!1;break}for(u=0;u<k.length;u++)this.addSvgRule(a,k[u],g,q[b],k,u,f,e)}}}}catch(w){}return a};
-StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,h,d,g,m){var q=this.editorUi,k=q.editor.graph;g.test(b.selectorText)&&(g=mxUtils.bind(this,function(u,w,z){var C=mxUtils.trim(u.style[w]);if(""!=C&&"url("!=C.substring(0,4)){var E=C;"transparent"==E?E=mxConstants.NONE:mxUtils.isLightDarkColor(E)&&m&&(m=!1);u=this.createColorOption(z+" "+u.selectorText,function(){return E},mxUtils.bind(this,function(D){h[d].style[w]=D==mxConstants.NONE?"transparent":mxUtils.getLightDarkColor(D).cssText;D="";for(var G=
-0;G<h.length;G++)D+=h[G].cssText+" ";f.textContent=D;D=mxUtils.getXml(e.documentElement);k.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(D))):Base64.encode(D,!0)),q.getSelectionState().cells)}),"#ffffff",{install:function(D){},destroy:function(){}},null,null,null,m);a.appendChild(u);a.style.display=""}}),g(b,"fill",mxResources.get("fill")),g(b,"stroke",mxResources.get("line")),g(b,"stop-color",mxResources.get("gradient")))};
+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 dark"!=g.documentElement.style.colorScheme,p=g.getElementsByTagName("style");
+for(b=0;b<p.length;b++){var k=this.getCssRules(mxUtils.getTextContent(p[b]));if(e=m)for(var u=0;u<k.length;u++)if(0<=k[b].cssText.indexOf("color-scheme: light dark")){e=!1;break}for(u=0;u<k.length;u++)this.addSvgRule(a,k[u],g,p[b],k,u,f,e)}}}}catch(x){}return a};
+StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,h,d,g,m){var p=this.editorUi,k=p.editor.graph;g.test(b.selectorText)&&(g=mxUtils.bind(this,function(u,x,z){var C=mxUtils.trim(u.style[x]);if(""!=C&&"url("!=C.substring(0,4)){var E=C;"transparent"==E?E=mxConstants.NONE:mxUtils.isLightDarkColor(E)&&m&&(m=!1);u=this.createColorOption(z+" "+u.selectorText,function(){return E},mxUtils.bind(this,function(D){h[d].style[x]=D==mxConstants.NONE?"transparent":mxUtils.getLightDarkColor(D).cssText;D="";for(var G=
+0;G<h.length;G++)D+=h[G].cssText+" ";f.textContent=D;D=mxUtils.getXml(e.documentElement);k.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(D))):Base64.encode(D,!0)),p.getSelectionState().cells)}),"#ffffff",{install:function(D){},destroy:function(){}},null,null,null,m);a.appendChild(u);a.style.display=""}}),g(b,"fill",mxResources.get("fill")),g(b,"stroke",mxResources.get("line")),g(b,"stop-color",mxResources.get("gradient")))};
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&&
+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 p=mxResources.get(f[d]);mxUtils.write(m,p+("edit"==f[d]?"":"..."));null!=g&&null!=g.shortcut&&(p+=" ("+g.shortcut+")");m.setAttribute("title",p);e.appendChild(m)}}1<e.children.length&&
(a.appendChild(e),mxEvent.addListener(e,"change",mxUtils.bind(this,function(k){"openLibrary"==e.value?(null!=h&&0==h.length&&(this.editorUi.sidebar.updateSearchIndex(),k=this.editorUi.sidebar.getKeyStyle(b.cells[0].style),h=this.editorUi.sidebar.getLibsForStyle(k)),null!=h&&0<h.length?this.editorUi.sidebar.openLibraries(h):this.editorUi.handleError({message:mxResources.get("objectNotFound")}),e.value="edit"):(k=this.editorUi.actions.get(e.value),e.value="edit",null!=k&&k.funct())})),b.image&&(f=this.editorUi.editor.graph,
f=f.view.getState(f.getSelectionCell()),null!=f&&null!=mxUtils.getValue(f.style,mxConstants.STYLE_IMAGE,null)&&(f=mxUtils.button(mxResources.get("crop")+"...",mxUtils.bind(this,function(k){this.editorUi.actions.get("crop").funct()})),f.setAttribute("title",mxResources.get("crop")),e.style.width="104px",f.style.width="104px",f.style.marginLeft="2px",f.style.marginBottom="2px",a.appendChild(f))))}return a};
StyleFormatPanel.prototype.addFill=function(a){function b(){g.innerHTML="";C=1;for(var D=0;D<Editor.fillStyles.length;D++){var G=document.createElement("option");G.setAttribute("value",Editor.fillStyles[D].val);mxUtils.write(G,Editor.fillStyles[D].dispName);g.appendChild(G)}}var e=this.editorUi,f=e.editor.graph,h=e.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="6px";var d=document.createElement("select");d.style.position="absolute";d.style.left="104px";d.style.width="70px";d.style.height=
-"22px";d.style.padding="0px";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 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};
+"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 p="image"==h.style.shape?mxConstants.STYLE_IMAGE_BACKGROUND:mxConstants.STYLE_FILLCOLOR,k=this.createCellColorOption(mxResources.get("fill"),p,"default",null,mxUtils.bind(this,function(D){f.setCellStyles(p,D,h.cells)}),f.getDefaultColor(h.style,p,f.shapeBackgroundColor,f.shapeForegroundColor));k.style.fontWeight="bold";var u=mxUtils.getValue(h.style,p,null);m.style.display=
+null!=u&&u!=mxConstants.NONE&&h.fill&&"image"!=h.style.shape?"":"none";var x=[mxConstants.DIRECTION_NORTH,mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_RADIAL];for(u=0;u<x.length;u++){var z=document.createElement("option");z.setAttribute("value",x[u]);mxUtils.write(z,mxResources.get(x[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,p,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(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.padding="0px";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],la=["0","0"];"rounded"==q.value?la=["1","0"]:"curved"==q.value&&(la=["0","1"]);for(var sa=0;sa<ea.length;sa++)d.setCellStyles(ea[sa],la[sa],g.cells);h.fireEvent(new mxEventObject("styleChanged","keys",ea,"values",la,"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:mxConstants.STYLE_STROKECOLOR;k="image"==g.style.shape?mxResources.get("border"):mxResources.get("line");k=this.createCellColorOption(k,z,"default",null,mxUtils.bind(this,function(H){d.setCellStyles(z,H,g.cells);if(null==H||H==mxConstants.NONE){H=[];for(var ea=0;ea<g.cells.length;ea++)(d.isTableCell(g.cells[ea])||d.isTableRow(g.cells[ea]))&&H.push(g.cells[ea]);0<H.length&&d.setCellStyles(z,"inherit",H)}}),d.shapeForegroundColor);k.appendChild(q);
-m.appendChild(k);var C=m.cloneNode(!1);C.style.display="inline-flex";C.style.alignItems="top";C.style.fontWeight="normal";C.style.whiteSpace="nowrap";C.style.position="relative";C.style.paddingLeft="5px";C.style.overflow="hidden";C.style.marginTop="2px";C.style.width="220px";var E=mxUtils.bind(this,function(H,ea,la,sa,Pa){H=this.editorUi.menus.styleChange(H,"",sa,Pa,"geIcon",null);sa=document.createElement("div");sa.style.width=ea+"px";sa.style.height="1px";sa.style.paddingTop="6px";Pa=la.split(" ");
-2==Pa.length?(la=parseInt(Pa[0])+parseInt(Pa[1]),Pa=parseInt(Pa[0])/la*100,sa.style.borderBottom="1px pat transparent",sa.style.backgroundImage="linear-gradient(to right, currentcolor "+Pa+"%, transparent 0%)",sa.style.backgroundPosition="bottom left",sa.style.backgroundSize=la+"px 1px",sa.style.backgroundRepeat="repeat-x"):sa.style.borderBottom="1px "+la+" currentcolor";H.firstChild.firstChild.style.padding="0px 4px 0px 4px";H.firstChild.firstChild.style.width=ea+"px";H.firstChild.firstChild.appendChild(sa);
-return H});u=this.editorUi.toolbar.addMenuFunctionInContainer(C,"geSprite-orthogonal",mxResources.get("pattern"),!1,mxUtils.bind(this,function(H){E(H,75,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));E(H,75,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");E(H,75,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",
-mxResources.get("dashed")+" (2)");E(H,75,"12 12",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");E(H,75,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 1"]).setAttribute("title",mxResources.get("dotted")+" (1)");E(H,75,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");E(H,75,"1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],
-["1","1 4"]).setAttribute("title",mxResources.get("dotted")+" (3)")}));var D=C.cloneNode(!1),G=this.editorUi.toolbar.addMenuFunctionInContainer(D,"geSprite-connection",mxResources.get("connection"),!1,mxUtils.bind(this,function(H){this.editorUi.menus.styleChange(H,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],"geIcon geSprite geSprite-connection",null,null,null,!0).setAttribute("title",mxResources.get("line"));this.editorUi.menus.styleChange(H,
-"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],"geIcon geSprite geSprite-linkedge",null,null,null,!0).setAttribute("title",mxResources.get("link"));this.editorUi.menus.styleChange(H,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["flexArrow",null,null,null],"geIcon geSprite geSprite-arrow",null,null,null,!0).setAttribute("title",mxResources.get("arrow"));this.editorUi.menus.styleChange(H,
-"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],"geIcon geSprite geSprite-simplearrow",null,null,null,!0).setAttribute("title",mxResources.get("simpleArrow"))}));w=this.editorUi.toolbar.addMenuFunctionInContainer(D,"geSprite-orthogonal",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 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 T=this.createStepper(I,b,this.getUnitStep(),9,null,null,this.isFloatUnit());T.style.display=I.style.display;T.style.top="2px";T.style.left="198px";C.appendChild(T);T=this.createStepper(L,e,this.getUnitStep(),9,null,null,this.isFloatUnit());T.style.display=L.style.display;L.style.position="absolute";
-T.style.top="2px";T.style.left="198px";D.appendChild(T);mxEvent.addListener(I,"blur",b);mxEvent.addListener(I,"change",b);mxEvent.addListener(L,"blur",e);mxEvent.addListener(L,"change",e);var K=this.editorUi.toolbar.addMenuFunctionInContainer(k,"geSprite-orthogonal",mxResources.get("waypoints"),!1,mxUtils.bind(this,function(H){"arrow"!=g.style.shape&&(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],"geIcon geSprite geSprite-straight",
-null,!0).setAttribute("title",mxResources.get("straight")),this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],"geIcon geSprite geSprite-orthogonal",null,!0).setAttribute("title",mxResources.get("orthogonal")),this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],"geIcon geSprite geSprite-horizontalelbow",
-null,!0).setAttribute("title",mxResources.get("vertical")),this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],"geIcon geSprite geSprite-verticalelbow",null,!0).setAttribute("title",mxResources.get("horizontal")),this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",
-null,null,null],"geIcon geSprite geSprite-horizontalisometric",null,!0).setAttribute("title",mxResources.get("isometric")),this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],"geIcon geSprite geSprite-verticalisometric",null,!0).setAttribute("title",mxResources.get("isometric")),"connector"==g.style.shape&&this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,
-mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],"geIcon geSprite geSprite-curved",null,!0).setAttribute("title",mxResources.get("curved")),this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],"geIcon geSprite geSprite-entity",null,!0).setAttribute("title",mxResources.get("entityRelation")))})),U=this.editorUi.toolbar.addMenuFunctionInContainer(k,"geSprite-startclassic",
-mxResources.get("linestart"),!1,mxUtils.bind(this,function(H){if("connector"==g.style.shape||"flexArrow"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape){var ea=this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.NONE,0],"geIcon",null,!1);ea.setAttribute("title",mxResources.get("none"));var la=document.createElement("span");la.style.fontSize="11px";mxUtils.write(la,mxResources.get("none"));ea.firstChild.firstChild.appendChild(la);"connector"==
-g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,Format.classicFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+m.style.fontWeight="bold";g.stroke||(m.style.display="none");var p=document.createElement("select");p.style.position="absolute";p.style.height="22px";p.style.marginTop="-3px";p.style.textAlign="center";p.style.boxSizing="border-box";p.style.left="90px";p.style.width="83px";p.style.borderWidth="1px";p.style.borderStyle="solid";for(var k=["sharp","rounded","curved"],u=0;u<k.length;u++){var x=document.createElement("option");x.setAttribute("value",k[u]);mxUtils.write(x,mxResources.get(k[u]));p.appendChild(x)}mxEvent.addListener(p,
+"change",function(H){d.getModel().beginUpdate();try{var ea=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],oa=["0","0"];"rounded"==p.value?oa=["1","0"]:"curved"==p.value&&(oa=["0","1"]);for(var sa=0;sa<ea.length;sa++)d.setCellStyles(ea[sa],oa[sa],g.cells);h.fireEvent(new mxEventObject("styleChanged","keys",ea,"values",oa,"cells",g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(H)});mxEvent.addListener(p,"click",function(H){mxEvent.consume(H)});var z="image"==g.style.shape?mxConstants.STYLE_IMAGE_BORDER:
+mxConstants.STYLE_STROKECOLOR;k="image"==g.style.shape?mxResources.get("border"):mxResources.get("line");k=this.createCellColorOption(k,z,"default",null,mxUtils.bind(this,function(H){d.setCellStyles(z,H,g.cells);if(null==H||H==mxConstants.NONE){H=[];for(var ea=0;ea<g.cells.length;ea++)(d.isTableCell(g.cells[ea])||d.isTableRow(g.cells[ea]))&&H.push(g.cells[ea]);0<H.length&&d.setCellStyles(z,"inherit",H)}}),d.shapeForegroundColor);k.appendChild(p);m.appendChild(k);var C=m.cloneNode(!1);C.style.display=
+"inline-flex";C.style.alignItems="top";C.style.fontWeight="normal";C.style.whiteSpace="nowrap";C.style.position="relative";C.style.paddingLeft="5px";C.style.overflow="hidden";C.style.marginTop="2px";C.style.width="220px";var E=mxUtils.bind(this,function(H,ea,oa,sa,Pa){H=this.editorUi.menus.styleChange(H,"",sa,Pa,"geIcon",null);sa=document.createElement("div");sa.style.width=ea+"px";sa.style.height="1px";sa.style.paddingTop="6px";Pa=oa.split(" ");2==Pa.length?(oa=parseInt(Pa[0])+parseInt(Pa[1]),Pa=
+parseInt(Pa[0])/oa*100,sa.style.borderBottom="1px pat transparent",sa.style.backgroundImage="linear-gradient(to right, currentcolor "+Pa+"%, transparent 0%)",sa.style.backgroundPosition="bottom left",sa.style.backgroundSize=oa+"px 1px",sa.style.backgroundRepeat="repeat-x"):sa.style.borderBottom="1px "+oa+" currentcolor";H.firstChild.firstChild.style.padding="0px 4px 0px 4px";H.firstChild.firstChild.style.width=ea+"px";H.firstChild.firstChild.appendChild(sa);return H});u=this.editorUi.toolbar.addMenuFunctionInContainer(C,
+null,mxResources.get("pattern"),!1,mxUtils.bind(this,function(H){E(H,75,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));E(H,75,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");E(H,75,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");E(H,75,"12 12",[mxConstants.STYLE_DASHED,
+mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");E(H,75,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 1"]).setAttribute("title",mxResources.get("dotted")+" (1)");E(H,75,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");E(H,75,"1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 4"]).setAttribute("title",mxResources.get("dotted")+
+" (3)")}));var D=C.cloneNode(!1),G=this.editorUi.toolbar.addMenuFunctionInContainer(D,null,mxResources.get("connection"),!1,mxUtils.bind(this,function(H){Format.processMenuIcon(this.editorUi.menus.styleChange(H,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],"",null,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line"));Format.processMenuIcon(this.editorUi.menus.styleChange(H,"",[mxConstants.STYLE_SHAPE,
+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"))}));x=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 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 T=this.createStepper(I,b,this.getUnitStep(),9,null,null,this.isFloatUnit());T.style.display=I.style.display;T.style.top="2px";T.style.left="198px";C.appendChild(T);T=this.createStepper(L,e,this.getUnitStep(),9,null,null,this.isFloatUnit());T.style.display=L.style.display;L.style.position="absolute";T.style.top="2px";T.style.left=
+"198px";D.appendChild(T);mxEvent.addListener(I,"blur",b);mxEvent.addListener(I,"change",b);mxEvent.addListener(L,"blur",e);mxEvent.addListener(L,"change",e);var K=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")),
+"connector"==g.style.shape&&Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,null,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,null,!0,Format.entityImage.src)).setAttribute("title",
+mxResources.get("entityRelation")))})),U=this.editorUi.toolbar.addMenuFunctionInContainer(k,null,mxResources.get("linestart"),!1,mxUtils.bind(this,function(H){if("connector"==g.style.shape||"flexArrow"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape)Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.NONE,0],null,null,!1,Format.noMarkerImage.src)).setAttribute("title",mxResources.get("none")),"connector"==g.style.shape||
+"filledEdge"==g.style.shape||"wire"==g.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,Format.classicFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",
+[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK,1],null,null,!1,Format.blockFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK_THIN,1],null,null,!1,Format.blockThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OVAL,1],null,null,!1,Format.ovalFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src)),
Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK,
@@ -3200,67 +3221,67 @@ Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STY
"startFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["circlePlus",0],null,null,!1,Format.circlePlusMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["circle",1],null,null,!1,Format.circleMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],
["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERone",0],null,null,!1,Format.EROneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERmany",
0],null,null,!1,Format.ERmanyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERoneToMany",0],null,null,!1,Format.ERoneToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERzeroToOne",0],null,null,!1,Format.ERzeroToOneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],
-["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src))):this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW],[mxConstants.ARROW_BLOCK],
-"geIcon geSprite geSprite-startblocktrans",null,!1).setAttribute("title",mxResources.get("block"));H.div.style.width="40px";window.setTimeout(mxUtils.bind(this,function(){null!=H.div&&mxUtils.fit(H.div)}),0)}})),Y=this.editorUi.toolbar.addMenuFunctionInContainer(k,"geSprite-endclassic",mxResources.get("lineend"),!1,mxUtils.bind(this,function(H){if("connector"==g.style.shape||"flexArrow"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape){var ea=this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.NONE,0],"geIcon",null,!1);ea.setAttribute("title",mxResources.get("none"));var la=document.createElement("span");la.style.fontSize="11px";mxUtils.write(la,mxResources.get("none"));ea.firstChild.firstChild.appendChild(la);"connector"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,
-Format.classicFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,1],null,null,!1,Format.blockFilledMarkerImage.src),
-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,1],null,null,!1,Format.blockThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,
-1],null,null,!1,Format.ovalFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,0],null,null,!1,Format.blockMarkerImage.src),
-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,0],null,null,!1,Format.blockThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",0],null,null,!1,Format.asyncMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,
-0],null,null,!1,Format.ovalMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,0],null,null,!1,Format.diamondMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,0],null,null,!1,Format.diamondThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],["box",0],null,null,!1,Format.boxMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["halfCircle",0],null,null,!1,Format.halfCircleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["dash",0],null,null,!1,Format.dashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circlePlus",0],null,null,!1,Format.circlePlusMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circle",0],null,null,!1,Format.circleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERone",0],null,null,!1,Format.EROneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmany",0],null,null,!1,Format.ERmanyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERoneToMany",0],null,null,!1,Format.ERoneToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToOne",0],null,null,!1,Format.ERzeroToOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src),"scaleX(-1)")):this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW],[mxConstants.ARROW_BLOCK],"geIcon geSprite geSprite-endblocktrans",null,!1).setAttribute("title",mxResources.get("block"));H.div.style.width="40px";window.setTimeout(mxUtils.bind(this,function(){null!=H.div&&mxUtils.fit(H.div)}),0)}}));this.addArrow(G);this.addArrow(K).style.marginTop="-1px";this.addArrow(U);this.addArrow(Y);T=this.addArrow(u);T.className="geIcon";u.style.width="134px";u=this.addArrow(w);u.className="geIcon";u.style.width="22px";var Q=document.createElement("div");
-Q.style.width="102px";Q.style.height="10px";Q.style.borderBottom="1px solid currentcolor";Q.style.marginLeft="10px";T.appendChild(Q);var P=document.createElement("div");P.style.width="30px";P.style.height="10px";P.style.borderBottom="1px solid currentcolor";P.style.marginLeft="10px";u.appendChild(P);a.appendChild(m);a.appendChild(D);a.appendChild(C);u=C.cloneNode(!1);u.style.display="block";u.style.padding="5px 4px 6px 0px";u.style.fontWeight="normal";w=document.createElement("div");w.style.position=
-"absolute";w.style.maxWidth="78px";w.style.overflow="hidden";w.style.textOverflow="ellipsis";w.style.marginLeft="0px";w.style.marginBottom="12px";w.style.marginTop="2px";w.style.fontWeight="normal";mxUtils.write(w,mxResources.get("lineend"));u.appendChild(w);var M=this.addUnitInput(u,this.getUnit(),98,52,function(){V.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),W=this.addUnitInput(u,this.getUnit(),30,52,function(){ca.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());
-mxUtils.br(u);T=document.createElement("div");T.style.height="8px";u.appendChild(T);w=w.cloneNode(!1);mxUtils.write(w,mxResources.get("linestart"));u.appendChild(w);var aa=this.addUnitInput(u,this.getUnit(),98,52,function(){Z.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(){ja.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 qa=mxUtils.bind(this,function(H,ea,la){function sa(Pa,ma,Ca,Da){Ca=Ca.getElementsByTagName("div")[0];null!=Ca&&h.updateCssForMarker(Ca,Da,g.style.shape,Pa,ma);return Ca}g=h.getSelectionState();if(la||document.activeElement!=I)H=
-parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),I.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(la||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");"1"==mxUtils.getValue(g.style,mxConstants.STYLE_DASHED,null)?(ea=mxUtils.getValue(g.style,mxConstants.STYLE_DASH_PATTERN,"").split(" "),2==ea.length?(H=parseInt(ea[0])+parseInt(ea[1]),ea=parseInt(ea[0])/H*100,Q.style.borderBottom="1px solid transparent",Q.style.backgroundImage="linear-gradient(to right, currentcolor "+ea+"%, transparent 0%)",Q.style.backgroundPosition="bottom left",Q.style.backgroundSize=H+"px 1px",Q.style.backgroundRepeat="repeat-x"):
-Q.style.borderBottom="1px dashed currentcolor"):Q.style.borderBottom="1px solid currentcolor";P.style.backgroundImage=Q.style.backgroundImage;P.style.backgroundPosition=Q.style.backgroundPosition;P.style.backgroundSize=Q.style.backgroundSize;P.style.backgroundRepeat=Q.style.backgroundRepeat;P.style.borderBottom=Q.style.borderBottom;H=K.getElementsByTagName("div")[0];null!=H&&(ea=mxUtils.getValue(g.style,mxConstants.STYLE_EDGE,null),"1"==mxUtils.getValue(g.style,mxConstants.STYLE_NOEDGESTYLE,null)&&
-(ea=null),"orthogonalEdgeStyle"==ea&&"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?H.className="geSprite geSprite-curved":H.className="straight"==ea||"none"==ea||null==ea?"geSprite geSprite-straight":"entityRelationEdgeStyle"==ea?"geSprite geSprite-entity":"elbowEdgeStyle"==ea?"geSprite "+("vertical"==mxUtils.getValue(g.style,mxConstants.STYLE_ELBOW,null)?"geSprite-verticalelbow":"geSprite-horizontalelbow"):"isometricEdgeStyle"==ea?"geSprite "+("vertical"==mxUtils.getValue(g.style,
-mxConstants.STYLE_ELBOW,null)?"geSprite-verticalisometric":"geSprite-horizontalisometric"):"geSprite geSprite-orthogonal");H=G.getElementsByTagName("div")[0];null!=H&&(H.className="link"==g.style.shape?"geSprite geSprite-linkedge":"flexArrow"==g.style.shape?"geSprite geSprite-arrow":"arrow"==g.style.shape?"geSprite geSprite-simplearrow":"geSprite geSprite-connection");g.edges.length==g.cells.length?(D.style.display="",C.style.display="none"):(D.style.display="none",C.style.display="");Graph.lineJumpsEnabled&&
-0<g.edges.length&&0==g.vertices.length&&g.lineJumps&&(a.style.borderBottomStyle="none");H=sa(mxUtils.getValue(g.style,mxConstants.STYLE_STARTARROW,null),mxUtils.getValue(g.style,"startFill","1"),U,"start");ea=sa(mxUtils.getValue(g.style,mxConstants.STYLE_ENDARROW,null),mxUtils.getValue(g.style,"endFill","1"),Y,"end");null!=H&&null!=ea&&("arrow"==g.style.shape?(H.className="geSprite geSprite-noarrow",ea.className="geSprite geSprite-endblocktrans"):"link"==g.style.shape&&(H.className="geSprite geSprite-noarrow",
-ea.className="geSprite geSprite-noarrow"));mxUtils.setOpacity(K,"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(la||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(la||
-document.activeElement!=aa)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0)),aa.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(la||document.activeElement!=W)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE)),W.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(la||document.activeElement!=aa)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0)),M.value=isNaN(H)?"":this.inUnit(H)+" "+
-this.getUnit();if(la||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 Z=this.installInputHandler(aa,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ca=this.installInputHandler(W,mxConstants.STYLE_ENDSIZE,
-mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var V=this.installInputHandler(M,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ja=this.installInputHandler(oa,mxConstants.STYLE_PERIMETER_SPACING,0,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(I,qa);this.addKeyHandler(ia,qa);this.addKeyHandler(aa,qa);this.addKeyHandler(W,qa);this.addKeyHandler(M,qa);this.addKeyHandler(oa,qa);d.getModel().addListener(mxEvent.CHANGE,
-qa);this.listeners.push({destroy:function(){d.getModel().removeListener(qa)}});qa();return a};
+["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src))):Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW],
+[mxConstants.ARROW_BLOCK],null,null,!1,Format.blockMarkerImage.src)).setAttribute("title",mxResources.get("block")),H.div.style.width="40px",window.setTimeout(mxUtils.bind(this,function(){null!=H.div&&mxUtils.fit(H.div)}),0)})),Y=this.editorUi.toolbar.addMenuFunctionInContainer(k,null,mxResources.get("lineend"),!1,mxUtils.bind(this,function(H){if("connector"==g.style.shape||"flexArrow"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape)Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"startFill"],[mxConstants.NONE,0],null,null,!1,Format.noMarkerImage.src)).setAttribute("title",mxResources.get("none")),"connector"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,Format.classicFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,
+"endFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src),"scaleX(-1)"),
+Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,1],null,null,!1,Format.blockFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,
+1],null,null,!1,Format.blockThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,1],null,null,!1,Format.ovalFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",
+[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src),
+"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,0],null,null,!1,Format.blockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],
+[mxConstants.ARROW_BLOCK_THIN,0],null,null,!1,Format.blockThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",0],null,null,!1,Format.asyncMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,0],null,null,!1,Format.ovalMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,0],null,null,!1,Format.diamondMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,0],null,null,!1,Format.diamondThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["box",0],null,null,!1,Format.boxMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"endFill"],["halfCircle",0],null,null,!1,Format.halfCircleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["dash",0],null,null,!1,Format.dashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"endFill"],["circlePlus",0],null,null,!1,Format.circlePlusMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circle",0],null,null,!1,Format.circleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERone",0],null,null,!1,Format.EROneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmany",0],null,null,!1,Format.ERmanyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERoneToMany",0],null,null,!1,Format.ERoneToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToOne",0],null,null,!1,Format.ERzeroToOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src),"scaleX(-1)")):Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW],[mxConstants.ARROW_BLOCK],null,null,!1,Format.blockMarkerImage.src),"scaleX(-1)").setAttribute("title",
+mxResources.get("block")),H.div.style.width="40px",window.setTimeout(mxUtils.bind(this,function(){null!=H.div&&mxUtils.fit(H.div)}),0)}));this.addArrow(G);this.addArrow(K).style.marginTop="-1px";this.addArrow(U);this.addArrow(Y);T=this.addArrow(u);T.className="geIcon";u.style.width="134px";u=this.addArrow(x);u.className="geIcon";u.style.width="22px";var Q=document.createElement("div");Q.style.width="102px";Q.style.height="10px";Q.style.borderBottom="1px solid currentcolor";Q.style.marginLeft="10px";
+T.appendChild(Q);var P=document.createElement("div");P.style.width="30px";P.style.height="10px";P.style.borderBottom="1px solid currentcolor";P.style.marginLeft="10px";u.appendChild(P);a.appendChild(m);a.appendChild(D);a.appendChild(C);u=C.cloneNode(!1);u.style.display="block";u.style.padding="5px 4px 6px 0px";u.style.fontWeight="normal";x=document.createElement("div");x.style.position="absolute";x.style.maxWidth="78px";x.style.overflow="hidden";x.style.textOverflow="ellipsis";x.style.marginLeft=
+"0px";x.style.marginBottom="12px";x.style.marginTop="2px";x.style.fontWeight="normal";mxUtils.write(x,mxResources.get("lineend"));u.appendChild(x);var M=this.addUnitInput(u,this.getUnit(),98,52,function(){W.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),V=this.addUnitInput(u,this.getUnit(),30,52,function(){ca.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(u);T=document.createElement("div");T.style.height="8px";u.appendChild(T);x=x.cloneNode(!1);
+mxUtils.write(x,mxResources.get("linestart"));u.appendChild(x);var aa=this.addUnitInput(u,this.getUnit(),98,52,function(){Z.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";x=document.createElement("div");x.style.position="absolute";x.style.marginLeft="3px";x.style.marginBottom="12px";x.style.marginTop="1px";x.style.fontWeight="normal";x.style.width="120px";mxUtils.write(x,mxResources.get("perimeter"));m.appendChild(x);var na=this.addUnitInput(m,this.getUnit(),30,52,function(){ja.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 qa=mxUtils.bind(this,function(H,ea,oa){function sa(Pa,la,Ba,Ca){Ba=Ba.getElementsByTagName("div")[0];null!=Ba&&h.updateCssForMarker(Ba,Ca,g.style.shape,Pa,la);return Ba}g=h.getSelectionState();if(oa||document.activeElement!=I)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),I.value=isNaN(H)?"":
+this.inUnit(H)+" "+this.getUnit();if(oa||document.activeElement!=L)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),L.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();p.style.visibility="connector"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?"":"hidden";"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?p.value="curved":"1"==mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,null)&&(p.value="rounded");"1"==mxUtils.getValue(g.style,mxConstants.STYLE_DASHED,
+null)?(ea=mxUtils.getValue(g.style,mxConstants.STYLE_DASH_PATTERN,"").split(" "),2==ea.length?(H=parseInt(ea[0])+parseInt(ea[1]),ea=parseInt(ea[0])/H*100,Q.style.borderBottom="1px solid transparent",Q.style.backgroundImage="linear-gradient(to right, currentcolor "+ea+"%, transparent 0%)",Q.style.backgroundPosition="bottom left",Q.style.backgroundSize=H+"px 1px",Q.style.backgroundRepeat="repeat-x"):Q.style.borderBottom="1px dashed currentcolor"):Q.style.borderBottom="1px solid currentcolor";P.style.backgroundImage=
+Q.style.backgroundImage;P.style.backgroundPosition=Q.style.backgroundPosition;P.style.backgroundSize=Q.style.backgroundSize;P.style.backgroundRepeat=Q.style.backgroundRepeat;P.style.borderBottom=Q.style.borderBottom;H=K.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,
+null)&&(ea=null),"orthogonalEdgeStyle"==ea&&"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?H.style.backgroundImage="url("+Format.curvedImage.src+")":"straight"==ea||"none"==ea||null==ea?H.style.backgroundImage="url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==ea?H.style.backgroundImage="url("+Format.entityImage.src+")":"elbowEdgeStyle"==ea?"vertical"==mxUtils.getValue(g.style,mxConstants.STYLE_ELBOW,null)?H.style.backgroundImage="url("+Format.verticalElbowImage.src+")":
+H.style.backgroundImage="url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==ea?"vertical"==mxUtils.getValue(g.style,mxConstants.STYLE_ELBOW,null)?H.style.backgroundImage="url("+Format.verticalIsometricImage.src+")":H.style.backgroundImage="url("+Format.horizontalIsometricImage.src+")":H.style.backgroundImage="url("+Format.orthogonalImage.src+")");H=G.getElementsByTagName("div")[0];null!=H&&(H.style.backgroundPosition="center center",H.style.backgroundRepeat="no-repeat",H.className="geAdaptiveAsset",
+H.style.height="",H.style.backgroundImage="link"==g.style.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==g.style.shape?"url("+Format.arrowImage.src+")":"arrow"==g.style.shape?"url("+Format.simpleArrowImage.src+")":"url("+Format.connectionImage.src+")");g.edges.length==g.cells.length?(D.style.display="",C.style.display="none"):(D.style.display="none",C.style.display="");Graph.lineJumpsEnabled&&0<g.edges.length&&0==g.vertices.length&&g.lineJumps&&(a.style.borderBottomStyle="none");sa(mxUtils.getValue(g.style,
+mxConstants.STYLE_STARTARROW,null),mxUtils.getValue(g.style,"startFill","1"),U,"start");sa(mxUtils.getValue(g.style,mxConstants.STYLE_ENDARROW,null),mxUtils.getValue(g.style,"endFill","1"),Y,"end");mxUtils.setOpacity(K,"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(oa||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(oa||document.activeElement!=aa)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0)),aa.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(oa||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(oa||document.activeElement!=
+aa)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0)),M.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(oa||document.activeElement!=na)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_PERIMETER_SPACING,0)),na.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 Z=this.installInputHandler(aa,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,
+0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ca=this.installInputHandler(V,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var W=this.installInputHandler(M,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ja=this.installInputHandler(na,mxConstants.STYLE_PERIMETER_SPACING,0,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(I,qa);this.addKeyHandler(ia,
+qa);this.addKeyHandler(aa,qa);this.addKeyHandler(V,qa);this.addKeyHandler(M,qa);this.addKeyHandler(na,qa);d.getModel().addListener(mxEvent.CHANGE,qa);this.listeners.push({destroy:function(){d.getModel().removeListener(qa)}});qa();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.padding="0px";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,f.cells),b.fireEvent(new mxEventObject("styleChanged","keys",["jumpStyle"],"values",[d.value],"cells",f.cells))}finally{e.getModel().endUpdate()}mxEvent.consume(w)});mxEvent.addListener(d,"click",function(w){mxEvent.consume(w)});a.appendChild(d);var q=this.addUnitInput(a,this.getUnit(),16,52,function(){k.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());var k=this.installInputHandler(q,"jumpSize",Graph.defaultJumpSize,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);
-var u=mxUtils.bind(this,function(w,z,C){f=b.getSelectionState();d.value=mxUtils.getValue(f.style,"jumpStyle","none");if(C||document.activeElement!=q)w=parseInt(mxUtils.getValue(f.style,"jumpSize",Graph.defaultJumpSize)),q.value=isNaN(w)?"":this.inUnit(w)+" "+this.getUnit()});this.addKeyHandler(q,u);e.getModel().addListener(mxEvent.CHANGE,u);this.listeners.push({destroy:function(){e.getModel().removeListener(u)}});u()}else a.style.display="none";return a};
-StyleFormatPanel.prototype.addEffects=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingTop="4px";a.style.paddingBottom="4px";var h=document.createElement("table");h.style.width="210px";h.style.fontWeight="bold";h.style.tableLayout="fixed";var d=document.createElement("tbody"),g=document.createElement("tr");g.style.padding="0px";var m=document.createElement("td");m.style.padding="0px";m.style.width="50%";m.setAttribute("valign","top");var q=m.cloneNode(!0);q.style.paddingLeft=
-"8px";g.appendChild(m);g.appendChild(q);d.appendChild(g);h.appendChild(d);a.appendChild(h);var k=m,u=mxUtils.bind(this,function(z,C,E,D){z=this.createCellOption(z,C,E,null,null,D);z.style.width="100%";k.appendChild(z);k=k==m?q:m;return z}),w=mxUtils.bind(this,function(z,C,E){f=b.getSelectionState();m.innerText="";q.innerText="";k=m;f.rounded&&u(mxResources.get("rounded"),mxConstants.STYLE_ROUNDED,0);f.swimlane&&u(mxResources.get("divider"),"swimlaneLine",1);u(mxResources.get("sketch"),"sketch",0,
+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(x){e.getModel().beginUpdate();try{e.setCellStyles("jumpStyle",d.value,
+f.cells),b.fireEvent(new mxEventObject("styleChanged","keys",["jumpStyle"],"values",[d.value],"cells",f.cells))}finally{e.getModel().endUpdate()}mxEvent.consume(x)});mxEvent.addListener(d,"click",function(x){mxEvent.consume(x)});a.appendChild(d);var p=this.addUnitInput(a,this.getUnit(),16,52,function(){k.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());var k=this.installInputHandler(p,"jumpSize",Graph.defaultJumpSize,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var u=
+mxUtils.bind(this,function(x,z,C){f=b.getSelectionState();d.value=mxUtils.getValue(f.style,"jumpStyle","none");if(C||document.activeElement!=p)x=parseInt(mxUtils.getValue(f.style,"jumpSize",Graph.defaultJumpSize)),p.value=isNaN(x)?"":this.inUnit(x)+" "+this.getUnit()});this.addKeyHandler(p,u);e.getModel().addListener(mxEvent.CHANGE,u);this.listeners.push({destroy:function(){e.getModel().removeListener(u)}});u()}else a.style.display="none";return a};
+StyleFormatPanel.prototype.addEffects=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingTop="4px";a.style.paddingBottom="4px";var h=document.createElement("table");h.style.width="210px";h.style.fontWeight="bold";h.style.tableLayout="fixed";var d=document.createElement("tbody"),g=document.createElement("tr");g.style.padding="0px";var m=document.createElement("td");m.style.padding="0px";m.style.width="50%";m.setAttribute("valign","top");var p=m.cloneNode(!0);p.style.paddingLeft=
+"8px";g.appendChild(m);g.appendChild(p);d.appendChild(g);h.appendChild(d);a.appendChild(h);var k=m,u=mxUtils.bind(this,function(z,C,E,D){z=this.createCellOption(z,C,E,null,null,D);z.style.width="100%";k.appendChild(z);k=k==m?p:m;return z}),x=mxUtils.bind(this,function(z,C,E){f=b.getSelectionState();m.innerText="";p.innerText="";k=m;f.rounded&&u(mxResources.get("rounded"),mxConstants.STYLE_ROUNDED,0);f.swimlane&&u(mxResources.get("divider"),"swimlaneLine",1);u(mxResources.get("sketch"),"sketch",0,
function(D,G){e.updateCellStyles({sketch:G?"1":null,curveFitting:G?Editor.sketchDefaultCurveFitting:null,jiggle:G?Editor.sketchDefaultJiggle:null},D)});f.glass&&u(mxResources.get("glass"),mxConstants.STYLE_GLASS,0);z=u(mxResources.get("shadow"),mxConstants.STYLE_SHADOW,0);Editor.enableShadowOption||(z.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(z,60));0<f.edges.length&&0==f.vertices.length&&u(mxResources.get("flowAnimation",null,"Flow Animation"),"flowAnimation",
-0)});e.getModel().addListener(mxEvent.CHANGE,w);this.listeners.push({destroy:function(){e.getModel().removeListener(w)}});w();return a};StyleFormatPanel.prototype.addStyleOps=function(a){1==this.editorUi.getSelectionState().cells.length&&this.addActions(a,["setAsDefaultStyle"]);return a};DiagramStylePanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(DiagramStylePanel,BaseFormatPanel);DiagramStylePanel.prototype.init=function(){this.container.appendChild(this.addView(this.createPanel()))};
+0)});e.getModel().addListener(mxEvent.CHANGE,x);this.listeners.push({destroy:function(){e.getModel().removeListener(x)}});x();return a};StyleFormatPanel.prototype.addStyleOps=function(a){1==this.editorUi.getSelectionState().cells.length&&this.addActions(a,["setAsDefaultStyle"]);return a};DiagramStylePanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(DiagramStylePanel,BaseFormatPanel);DiagramStylePanel.prototype.init=function(){this.container.appendChild(this.addView(this.createPanel()))};
DiagramStylePanel.prototype.getGlobalStyleButtons=function(){var a=this.editorUi,b=a.editor.graph,e=document.createElement("div");e.style.alignItems="center";e.style.textAlign="left";e.style.display="flex";var f=document.createElement("input");f.setAttribute("type","checkbox");f.style.margin="1px 6px 0px 0px";f.checked=Editor.sketchMode;e.appendChild(f);mxUtils.write(e,mxResources.get("sketch"));mxEvent.addListener(e,"click",function(d){if(b.isEnabled()){var g=!Editor.sketchMode;Editor.sketchMode=
-g;b.updateCellStyles({sketch:g?"1":null,curveFitting:g?Editor.sketchDefaultCurveFitting:null,jiggle:g?Editor.sketchDefaultJiggle:null},b.getVerticesAndEdges());mxEvent.consume(d);window.setTimeout(function(){Editor.sketchMode=!g;a.setSketchMode(g)})}});e=[e,mxUtils.button(mxResources.get("rounded"),mxUtils.bind(this,function(d){var g=b.getVerticesAndEdges(),m=!0;if(0<g.length)for(var q=0;q<g.length;q++){var k=b.getCellStyle(g[q]);if(0==mxUtils.getValue(k,mxConstants.STYLE_ROUNDED,0)){m=!1;break}}m=
+g;b.updateCellStyles({sketch:g?"1":null,curveFitting:g?Editor.sketchDefaultCurveFitting:null,jiggle:g?Editor.sketchDefaultJiggle:null},b.getVerticesAndEdges());mxEvent.consume(d);window.setTimeout(function(){Editor.sketchMode=!g;a.setSketchMode(g)})}});e=[e,mxUtils.button(mxResources.get("rounded"),mxUtils.bind(this,function(d){var g=b.getVerticesAndEdges(),m=!0;if(0<g.length)for(var p=0;p<g.length;p++){var k=b.getCellStyle(g[p]);if(0==mxUtils.getValue(k,mxConstants.STYLE_ROUNDED,0)){m=!1;break}}m=
!m;b.updateCellStyles({rounded:m?"1":"0"},g);m?(b.currentEdgeStyle.rounded="1",b.currentVertexStyle.rounded="1"):(delete b.currentEdgeStyle.rounded,delete b.currentVertexStyle.rounded);mxEvent.consume(d)}))];if(!b.isEnabled())for(f=0;f<e.length;f++)if("BUTTON"==e[f].nodeName)e[f].setAttribute("disabled","disabled");else{var h=e[f].getElementsByTagName("input");0<h.length&&h[0].setAttribute("disabled","disabled")}return e};
DiagramStylePanel.prototype.addView=function(a){var b=this.editorUi,e=b.editor.graph;a.style.paddingTop="2px";a.style.whiteSpace="normal";var f=document.createElement("div");f.style.marginRight="16px";f.style.paddingBottom="2px";if(e.isEnabled()){var h=document.createElement("div");h.style.display="flex";h.style.alignItems="center";h.style.padding="4px 0px 0px 4px";h.style.height="18px";var d=mxResources.get("adaptiveColors"),g=document.createElement("div");g.setAttribute("title",d);g.style.display=
"inline-block";g.style.whiteSpace="nowrap";g.style.textOverflow="ellipsis";g.style.overflow="hidden";g.style.maxWidth="92px";g.style.width="92px";g.style.userSelect="none";mxUtils.write(g,d);h.appendChild(g);mxClient.IS_FF&&(g.style.marginTop="1px");var m=document.createElement("select");m.style.textOverflow="ellipsis";m.style.height="22px";m.style.position="absolute";m.style.maxWidth="70px";m.style.width="70px";m.style.left="127px";d=document.createElement("option");d.setAttribute("title",mxResources.get("default")+
" ("+mxResources.get(Graph.getDefaultAdaptiveColorsKey())+")");mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));d.setAttribute("value","default");m.appendChild(d);d=document.createElement("option");d.setAttribute("title",mxResources.get("automatic"));mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));d.setAttribute("value","auto");m.appendChild(d);d=document.createElement("option");d.setAttribute("title",mxResources.get("simple"));mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));
d.setAttribute("value","simple");m.appendChild(d);d=document.createElement("option");d.setAttribute("title",mxResources.get("none"));mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));d.setAttribute("value","none");m.appendChild(d);m.value=null==e.adaptiveColors?"default":e.adaptiveColors;mxEvent.addListener(m,"change",function(){var C=new ChangePageSetup(b);C.ignoreColor=!0;C.ignoreImage=!0;C.adaptiveColors=m.value;e.model.execute(C)});h.appendChild(m);if(!b.isOffline()||mxClient.IS_CHROMEAPP||
-EditorUi.isElectronApp)d=b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/4713"),d.style.position="absolute",d.style.left="196px",h.appendChild(d);a.appendChild(h)}h=document.createElement("table");h.style.width="204px";d=document.createElement("tbody");g=document.createElement("tr");g.style.padding="0px";var q=document.createElement("td");q.style.textAlign="center";q.style.padding="2px";q.style.width="50%";for(var k=q.cloneNode(!0),u=this.getGlobalStyleButtons(),w=0;w<u.length;w+=
-2){var z=u[w];z.style.height="22px";z.style.width="88px";q.appendChild(z);g.appendChild(q);z=u[w+1];null!=z&&(z.style.height="22px",z.style.width="88px",k.appendChild(z));g.appendChild(k);d.appendChild(g);q=q.cloneNode(!1);k=k.cloneNode(!1);g=g.cloneNode(!1)}h.appendChild(d);f.appendChild(h);a.appendChild(f);e.isEnabled()&&this.addGraphStyles(a);return a};
-DiagramStylePanel.prototype.addGraphStyles=function(a){var b=this.editorUi,e=b.editor.graph,f=e.getModel(),h=e.view.gridColor,d=["fillColor","strokeColor","fontColor","gradientColor"];a.style.whiteSpace="normal";a.style.paddingLeft="18px";a.style.paddingTop="6px";var g=mxUtils.bind(this,function(Y,Q){var P=e.getVerticesAndEdges();f.beginUpdate();try{for(var M=0;M<P.length;M++){var W=e.getCellStyle(P[M]);q||null==W.labelBackgroundColor?q&&e.updateCellStyles({labelBackgroundColor:mxConstants.NONE},
-[P[M]]):e.updateCellStyles({labelBackgroundColor:null!=Q?Q.background:null},[P[M]]);for(var aa=f.isEdge(P[M]),ia=f.getStyle(P[M]),oa=aa?e.currentEdgeStyle:e.currentVertexStyle,qa=0;qa<Y.length;qa++)if(null!=W[Y[qa]]&&W[Y[qa]]!=mxConstants.NONE||Y[qa]!=mxConstants.STYLE_FILLCOLOR&&Y[qa]!=mxConstants.STYLE_STROKECOLOR)ia=q&&aa&&Y[qa]==mxConstants.STYLE_FONTCOLOR?mxUtils.setStyle(ia,Y[qa],"default"):mxUtils.setStyle(ia,Y[qa],oa[Y[qa]]);f.setStyle(P[M],ia)}}finally{f.endUpdate()}}),m=mxUtils.bind(this,
-function(Y,Q,P){if(null!=Y)for(var M=0;M<Q.length;M++)if(null!=Y[Q[M]]&&Y[Q[M]]!=mxConstants.NONE||Q[M]!=mxConstants.STYLE_FILLCOLOR&&Q[M]!=mxConstants.STYLE_STROKECOLOR)Y[Q[M]]=P[Q[M]]}),q=!0,k=mxUtils.bind(this,function(Y,Q,P,M,W){if(null!=Y){null!=P&&(q||null==Q.labelBackgroundColor?q&&(Q.labelBackgroundColor=mxConstants.NONE):(M=null!=M?M.background:null,W=null!=W?W:e,null==M&&(M=W.background),null==M&&(M=W.defaultPageBackgroundColor),Q.labelBackgroundColor=M));for(var aa in Y)if(null==P||null!=
-Q[aa]&&Q[aa]!=mxConstants.NONE||aa!=mxConstants.STYLE_FILLCOLOR&&aa!=mxConstants.STYLE_STROKECOLOR)q&&f.isEdge(P)&&aa==mxConstants.STYLE_FONTCOLOR?Q[aa]="default":Q[aa]=Y[aa]}}),u=mxUtils.bind(this,function(Y,Q,P,M,W){var aa=document.createElement("div");aa.style.position="absolute";aa.style.display="inline-block";aa.style.overflow="hidden";aa.style.pointerEvents="none";aa.style.width="100%";aa.style.height="100%";W.appendChild(aa);var ia=new Graph(aa,null,null,e.getStylesheet());ia.shapeBackgroundColor=
-"light-dark(#f1f3f4, "+Editor.darkColor+")";ia.resetViewOnRootChange=!1;ia.foldingEnabled=!1;ia.gridEnabled=!1;ia.autoScroll=!1;ia.setTooltips(!1);ia.setConnectable(!1);ia.setPanning(!1);ia.setEnabled(!1);ia.getCellStyle=function(O,Z){Z=null!=Z?Z:!0;var ca=mxUtils.clone(e.getCellStyle.apply(this,arguments)),V=e.stylesheet.getDefaultVertexStyle(),ja=Q;f.isEdge(O)&&(V=e.stylesheet.getDefaultEdgeStyle(),ja=P);m(ca,d,V);k(Y,ca,O,M,ia);k(ja,ca,O,M,ia);Z&&(ca=e.postProcessCellStyle(O,ca));return ca};ia.model.beginUpdate();
-try{var oa=ia.insertVertex(ia.getDefaultParent(),null,"Shape",14,8,70,36,"strokeWidth=2;"),qa=ia.insertEdge(ia.getDefaultParent(),null,"Connector",oa,oa,"edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;endSize=5;strokeWidth=2;");qa.geometry.points=[new mxPoint(32,66)];qa.geometry.offset=new mxPoint(0,8)}finally{ia.model.endUpdate()}W=ia.view.getDrawPane().ownerSVGElement;null!=W&&(aa=W.cloneNode(!0),aa.style.position="absolute",aa.style.clipPath="rect(0 52% 100% 0)",W.style.clipPath=
-"rect(0 100% 100% 51%)",W.style.colorScheme="light",W.parentNode.appendChild(aa))}),w=document.createElement("div");w.style.position="relative";w.style.width="210px";a.appendChild(w);null==this.format.cachedStyleEntries&&(this.format.cachedStyleEntries=[]);var z=mxUtils.bind(this,function(Y,Q,P,M,W){var aa=this.format.cachedStyleEntries[W];null==aa&&(aa=document.createElement("div"),aa.className="geItem",aa.style.position="relative",aa.style.width="96px",aa.style.height="86px",aa.style.cursor="pointer",
-aa.style.border="1px solid gray",aa.style.borderRadius="8px",aa.style.margin="1px 2px",aa.style.overflow="hidden",q||null==M||null==M.background||(aa.style.backgroundColor=M.background),u(Y,Q,P,M,aa),mxEvent.addListener(aa,"click",mxUtils.bind(this,function(ia){e.currentVertexStyle=mxUtils.clone(e.defaultVertexStyle);e.currentEdgeStyle=mxUtils.clone(e.defaultEdgeStyle);k(Y,e.currentVertexStyle);k(Y,e.currentEdgeStyle);k(Q,e.currentVertexStyle);k(P,e.currentEdgeStyle);f.beginUpdate();try{var oa=d.slice(),
-qa;for(qa in Y)oa.push(qa);g(oa,M);if(!q){var O=new ChangePageSetup(b,null!=M?M.background:null);O.ignoreImage=!0;f.execute(O);f.execute(new ChangeGridColor(b,null!=M&&null!=M.gridColor?M.gridColor:h))}}finally{f.endUpdate()}})),mxEvent.addGestureListeners(aa,mxUtils.bind(this,function(ia){aa.style.opacity=.5}),null,mxUtils.bind(this,function(ia){aa.style.opacity=1})),mxEvent.addListener(aa,"mouseenter",mxUtils.bind(this,function(ia){var oa=e.getCellStyle;ia=e.background;var qa=e.view.gridColor;q||
-(e.background=null!=M?M.background:null,e.view.gridColor=null!=M&&null!=M.gridColor?M.gridColor:h);e.getCellStyle=function(O,Z){Z=null!=Z?Z:!0;var ca=mxUtils.clone(oa.apply(this,arguments)),V=e.stylesheet.getDefaultVertexStyle(),ja=Q;f.isEdge(O)&&(V=e.stylesheet.getDefaultEdgeStyle(),ja=P);m(ca,d,V);k(Y,ca,O,M);k(ja,ca,O,M);Z&&(ca=this.postProcessCellStyle(O,ca));return ca};e.refresh();e.getCellStyle=oa;e.background=ia;e.view.gridColor=qa;aa.style.border="2px solid blue";aa.style.margin="0px 1px"})),
-mxEvent.addListener(aa,"mouseleave",mxUtils.bind(this,function(ia){aa.style.border="1px solid gray";aa.style.margin="1px 2px";e.refresh()})),mxClient.IS_IE||mxClient.IS_IE11||(this.format.cachedStyleEntries[W]=aa));w.appendChild(aa)}),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 Q=Editor.styles[Y];z(Q.commonStyle,Q.vertexStyle,Q.edgeStyle,Q.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 T=
+EditorUi.isElectronApp)d=b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/4713"),d.style.position="absolute",d.style.left="196px",h.appendChild(d);a.appendChild(h)}h=document.createElement("table");h.style.width="204px";d=document.createElement("tbody");g=document.createElement("tr");g.style.padding="0px";var p=document.createElement("td");p.style.textAlign="center";p.style.padding="2px";p.style.width="50%";for(var k=p.cloneNode(!0),u=this.getGlobalStyleButtons(),x=0;x<u.length;x+=
+2){var z=u[x];z.style.height="22px";z.style.width="88px";p.appendChild(z);g.appendChild(p);z=u[x+1];null!=z&&(z.style.height="22px",z.style.width="88px",k.appendChild(z));g.appendChild(k);d.appendChild(g);p=p.cloneNode(!1);k=k.cloneNode(!1);g=g.cloneNode(!1)}h.appendChild(d);f.appendChild(h);a.appendChild(f);e.isEnabled()&&this.addGraphStyles(a);return a};
+DiagramStylePanel.prototype.addGraphStyles=function(a){var b=this.editorUi,e=b.editor.graph,f=e.getModel(),h=e.view.gridColor,d=["fillColor","strokeColor","fontColor","gradientColor"];a.style.whiteSpace="normal";a.style.paddingLeft="18px";a.style.paddingTop="6px";var g=mxUtils.bind(this,function(Y,Q){var P=e.getVerticesAndEdges();f.beginUpdate();try{for(var M=0;M<P.length;M++){var V=e.getCellStyle(P[M]);p||null==V.labelBackgroundColor?p&&e.updateCellStyles({labelBackgroundColor:mxConstants.NONE},
+[P[M]]):e.updateCellStyles({labelBackgroundColor:null!=Q?Q.background:null},[P[M]]);for(var aa=f.isEdge(P[M]),ia=f.getStyle(P[M]),na=aa?e.currentEdgeStyle:e.currentVertexStyle,qa=0;qa<Y.length;qa++)if(null!=V[Y[qa]]&&V[Y[qa]]!=mxConstants.NONE||Y[qa]!=mxConstants.STYLE_FILLCOLOR&&Y[qa]!=mxConstants.STYLE_STROKECOLOR)ia=p&&aa&&Y[qa]==mxConstants.STYLE_FONTCOLOR?mxUtils.setStyle(ia,Y[qa],"default"):mxUtils.setStyle(ia,Y[qa],na[Y[qa]]);f.setStyle(P[M],ia)}}finally{f.endUpdate()}}),m=mxUtils.bind(this,
+function(Y,Q,P){if(null!=Y)for(var M=0;M<Q.length;M++)if(null!=Y[Q[M]]&&Y[Q[M]]!=mxConstants.NONE||Q[M]!=mxConstants.STYLE_FILLCOLOR&&Q[M]!=mxConstants.STYLE_STROKECOLOR)Y[Q[M]]=P[Q[M]]}),p=!0,k=mxUtils.bind(this,function(Y,Q,P,M,V){if(null!=Y){null!=P&&(p||null==Q.labelBackgroundColor?p&&(Q.labelBackgroundColor=mxConstants.NONE):(M=null!=M?M.background:null,V=null!=V?V:e,null==M&&(M=V.background),null==M&&(M=V.defaultPageBackgroundColor),Q.labelBackgroundColor=M));for(var aa in Y)if(null==P||null!=
+Q[aa]&&Q[aa]!=mxConstants.NONE||aa!=mxConstants.STYLE_FILLCOLOR&&aa!=mxConstants.STYLE_STROKECOLOR)p&&f.isEdge(P)&&aa==mxConstants.STYLE_FONTCOLOR?Q[aa]="default":Q[aa]=Y[aa]}}),u=mxUtils.bind(this,function(Y,Q,P,M,V){var aa=document.createElement("div");aa.style.position="absolute";aa.style.display="inline-block";aa.style.overflow="hidden";aa.style.pointerEvents="none";aa.style.width="100%";aa.style.height="100%";V.appendChild(aa);var ia=new Graph(aa,null,null,e.getStylesheet());ia.shapeBackgroundColor=
+"light-dark(#f1f3f4, "+Editor.darkColor+")";ia.resetViewOnRootChange=!1;ia.foldingEnabled=!1;ia.gridEnabled=!1;ia.autoScroll=!1;ia.setTooltips(!1);ia.setConnectable(!1);ia.setPanning(!1);ia.setEnabled(!1);ia.getCellStyle=function(O,Z){Z=null!=Z?Z:!0;var ca=mxUtils.clone(e.getCellStyle.apply(this,arguments)),W=e.stylesheet.getDefaultVertexStyle(),ja=Q;f.isEdge(O)&&(W=e.stylesheet.getDefaultEdgeStyle(),ja=P);m(ca,d,W);k(Y,ca,O,M,ia);k(ja,ca,O,M,ia);Z&&(ca=e.postProcessCellStyle(O,ca));return ca};ia.model.beginUpdate();
+try{var na=ia.insertVertex(ia.getDefaultParent(),null,"Shape",14,8,70,36,"strokeWidth=2;"),qa=ia.insertEdge(ia.getDefaultParent(),null,"Connector",na,na,"edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;endSize=5;strokeWidth=2;");qa.geometry.points=[new mxPoint(32,66)];qa.geometry.offset=new mxPoint(0,8)}finally{ia.model.endUpdate()}V=ia.view.getDrawPane().ownerSVGElement;null!=V&&(aa=V.cloneNode(!0),aa.style.position="absolute",aa.style.clipPath="rect(0 52% 100% 0)",V.style.clipPath=
+"rect(0 100% 100% 51%)",V.style.colorScheme="light",V.parentNode.appendChild(aa))}),x=document.createElement("div");x.style.position="relative";x.style.width="210px";a.appendChild(x);null==this.format.cachedStyleEntries&&(this.format.cachedStyleEntries=[]);var z=mxUtils.bind(this,function(Y,Q,P,M,V){var aa=this.format.cachedStyleEntries[V];null==aa&&(aa=document.createElement("div"),aa.className="geItem",aa.style.position="relative",aa.style.width="96px",aa.style.height="86px",aa.style.cursor="pointer",
+aa.style.border="1px solid gray",aa.style.borderRadius="8px",aa.style.margin="1px 2px",aa.style.overflow="hidden",p||null==M||null==M.background||(aa.style.backgroundColor=M.background),u(Y,Q,P,M,aa),mxEvent.addListener(aa,"click",mxUtils.bind(this,function(ia){e.currentVertexStyle=mxUtils.clone(e.defaultVertexStyle);e.currentEdgeStyle=mxUtils.clone(e.defaultEdgeStyle);k(Y,e.currentVertexStyle);k(Y,e.currentEdgeStyle);k(Q,e.currentVertexStyle);k(P,e.currentEdgeStyle);f.beginUpdate();try{var na=d.slice(),
+qa;for(qa in Y)na.push(qa);g(na,M);if(!p){var O=new ChangePageSetup(b,null!=M?M.background:null);O.ignoreImage=!0;f.execute(O);f.execute(new ChangeGridColor(b,null!=M&&null!=M.gridColor?M.gridColor:h))}}finally{f.endUpdate()}})),mxEvent.addGestureListeners(aa,mxUtils.bind(this,function(ia){aa.style.opacity=.5}),null,mxUtils.bind(this,function(ia){aa.style.opacity=1})),mxEvent.addListener(aa,"mouseenter",mxUtils.bind(this,function(ia){var na=e.getCellStyle;ia=e.background;var qa=e.view.gridColor;p||
+(e.background=null!=M?M.background:null,e.view.gridColor=null!=M&&null!=M.gridColor?M.gridColor:h);e.getCellStyle=function(O,Z){Z=null!=Z?Z:!0;var ca=mxUtils.clone(na.apply(this,arguments)),W=e.stylesheet.getDefaultVertexStyle(),ja=Q;f.isEdge(O)&&(W=e.stylesheet.getDefaultEdgeStyle(),ja=P);m(ca,d,W);k(Y,ca,O,M);k(ja,ca,O,M);Z&&(ca=this.postProcessCellStyle(O,ca));return ca};e.refresh();e.getCellStyle=na;e.background=ia;e.view.gridColor=qa;aa.style.border="2px solid blue";aa.style.margin="0px 1px"})),
+mxEvent.addListener(aa,"mouseleave",mxUtils.bind(this,function(ia){aa.style.border="1px solid gray";aa.style.margin="1px 2px";e.refresh()})),mxClient.IS_IE||mxClient.IS_IE11||(this.format.cachedStyleEntries[V]=aa));x.appendChild(aa)}),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 Q=Editor.styles[Y];z(Q.commonStyle,Q.vertexStyle,Q.edgeStyle,Q.graph,Y)}}),G=mxUtils.bind(this,function(Y){0<=Y&&Y<C&&(E[this.format.currentStylePage].style.background="transparent",x.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 T=
document.createElement("div");T.style.display="inline-block";T.style.width="6px";T.style.height="6px";T.style.marginLeft="4px";T.style.marginRight="3px";T.style.borderRadius="3px";T.style.cursor="pointer";T.style.background="transparent";T.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(Y,Q){mxEvent.addListener(T,"click",mxUtils.bind(this,function(){G(Y)}))})(L,T);I.appendChild(T);E.push(T)}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 K=document.createElement("div");K.className="geAdaptiveAsset";K.style.position="absolute";K.style.left="0px";K.style.top="0px";K.style.bottom="0px";K.style.width="24px";K.style.height="24px";K.style.margin="0px";K.style.cursor="pointer";K.style.opacity="0.5";K.style.backgroundRepeat="no-repeat";K.style.backgroundPosition="center center";K.style.backgroundSize="24px 24px";K.style.backgroundImage="url("+Editor.previousImage+
")";var U=K.cloneNode(!1);U.style.backgroundImage="url("+Editor.nextImage+")";U.style.left="";U.style.right="2px";I.appendChild(K);I.appendChild(U);mxEvent.addListener(K,"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(K);L(U)}}else D();return a};DiagramFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};
@@ -3275,43 +3296,43 @@ a.appendChild(this.createOption(mxResources.get("connectionPoints"),function(){r
{install:function(f){this.listener=function(){f(e.graphHandler.guidesEnabled)};b.addListener("guidesEnabledChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})));return a};
DiagramFormatPanel.prototype.addGridOption=function(a){function b(k){var u=e.isFloatUnit()?parseFloat(d.value):parseInt(d.value);u=e.fromUnit(Math.max(e.inUnit(1),isNaN(u)?e.inUnit(10):u));u!=h.getGridSize()&&(mxGraph.prototype.gridSize=u,h.setGridSize(u));d.value=e.inUnit(u)+" "+e.getUnit();mxEvent.consume(k)}var e=this,f=this.editorUi,h=f.editor.graph,d=document.createElement("input");d.style.position="absolute";d.style.textAlign="right";d.style.width="48px";d.style.marginTop="-2px";d.style.height=
"21px";d.style.borderWidth="1px";d.style.borderStyle="solid";d.style.boxSizing="border-box";d.value=this.inUnit(h.getGridSize())+" "+this.getUnit();var g=this.createStepper(d,b,this.getUnitStep(),null,null,null,this.isFloatUnit());d.style.display=h.isGridEnabled()?"":"none";g.style.display=d.style.display;mxEvent.addListener(d,"keydown",function(k){13==k.keyCode?(h.container.focus(),mxEvent.consume(k)):27==k.keyCode&&(d.value=h.getGridSize(),h.container.focus(),mxEvent.consume(k))});mxEvent.addListener(d,
-"blur",b);mxEvent.addListener(d,"change",b);d.style.left="104px";g.style.marginTop=mxClient.IS_MAC&&mxClient.IS_GC?"-16px":mxClient.IS_WIN?"-18px":"-17px";g.style.left="152px";var m="none"!=h.getAdaptiveColors()?null:!1,q=this.createColorOption(mxResources.get("grid"),function(){return h.isGridEnabled()?h.view.gridColor:null},function(k){var u=h.isGridEnabled();k==mxConstants.NONE?h.setGridEnabled(!1):(h.setGridEnabled(!0),f.setGridColor(k,m));d.style.display=h.isGridEnabled()?"":"none";g.style.display=
-d.style.display;u!=h.isGridEnabled()&&(h.defaultGridEnabled=h.isGridEnabled(),f.fireEvent(new mxEventObject("gridEnabledChanged")))},h.view.gridColor,{install:function(k){this.listener=function(){k(h.isGridEnabled()?h.view.gridColor:mxConstants.NONE)};f.addListener("gridColorChanged",this.listener);f.addListener("gridEnabledChanged",this.listener)},destroy:function(){f.removeListener(this.listener)}},null,null,null,!0,m);q.style.padding="6px 0 0 0";q.appendChild(d);q.appendChild(g);a.appendChild(q)};
-DiagramFormatPanel.prototype.addDocumentProperties=function(a){a.appendChild(this.createTitle(mxResources.get("options")));return a};
+"blur",b);mxEvent.addListener(d,"change",b);d.style.left="104px";g.style.marginTop="-2px";g.style.left="152px";var m=function(){return"none"!=h.getAdaptiveColors()&&Editor.isDarkMode()},p="light-dark("+mxGraphView.prototype.defaultGridColor+","+mxGraphView.prototype.defaultDarkGridColor+")";p=this.createColorOption(mxResources.get("grid"),function(){return h.isGridEnabled()?h.view.gridColor:null},function(k){var u=h.isGridEnabled();k==mxConstants.NONE?h.setGridEnabled(!1):(h.setGridEnabled(!0),f.setGridColor(k,
+m()));d.style.display=h.isGridEnabled()?"":"none";g.style.display=d.style.display;u!=h.isGridEnabled()&&(h.defaultGridEnabled=h.isGridEnabled(),f.fireEvent(new mxEventObject("gridEnabledChanged")))},h.view.gridColor,{install:function(k){this.listener=function(){k(h.isGridEnabled()?h.view.gridColor:mxConstants.NONE)};f.addListener("darkModeChanged",this.listener);f.addListener("gridColorChanged",this.listener);f.addListener("gridEnabledChanged",this.listener)},destroy:function(){f.removeListener(this.listener)}},
+null,null,p,!0,m);p.style.padding="6px 0 0 0";p.appendChild(d);p.appendChild(g);a.appendChild(p)};DiagramFormatPanel.prototype.addDocumentProperties=function(a){a.appendChild(this.createTitle(mxResources.get("options")));return a};
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)}
+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 p(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function x(){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 I(){mxActor.call(this)}function L(){mxActor.call(this)}function T(){mxActor.call(this)}function K(){mxActor.call(this)}function U(){mxActor.call(this)}function Y(){mxActor.call(this)}function Q(){mxActor.call(this)}function P(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,P.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,P.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,P.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,P.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,
-P.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,P.prototype.arcTo)}function M(){mxRectangleShape.call(this)}function W(){mxRectangleShape.call(this)}function aa(){mxActor.call(this)}function ia(){mxActor.call(this)}function oa(){mxActor.call(this)}function qa(){mxRectangleShape.call(this)}function O(){mxRectangleShape.call(this)}function Z(){mxCylinder.call(this)}function ca(){mxShape.call(this)}function V(){mxShape.call(this)}function ja(){mxEllipse.call(this)}
-function H(){mxShape.call(this)}function ea(){mxShape.call(this)}function la(){mxRectangleShape.call(this)}function sa(){mxShape.call(this)}function Pa(){mxShape.call(this)}function ma(){mxShape.call(this)}function Ca(){mxShape.call(this)}function Da(){mxShape.call(this)}function Ga(){mxCylinder.call(this)}function Ia(){mxCylinder.call(this)}function Ha(){mxRectangleShape.call(this)}function Ja(){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 N(){mxEllipse.call(this)}
-function R(){mxEllipse.call(this)}function X(){mxEllipse.call(this)}function fa(){mxRhombus.call(this)}function da(){mxEllipse.call(this)}function ha(){mxEllipse.call(this)}function wa(){mxEllipse.call(this)}function Ma(){mxEllipse.call(this)}function Na(){mxActor.call(this)}function ya(){mxActor.call(this)}function za(){mxActor.call(this)}function va(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,J,y,ba){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);ba?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=
+P.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,P.prototype.arcTo)}function M(){mxRectangleShape.call(this)}function V(){mxRectangleShape.call(this)}function aa(){mxActor.call(this)}function ia(){mxActor.call(this)}function na(){mxActor.call(this)}function qa(){mxRectangleShape.call(this)}function O(){mxRectangleShape.call(this)}function Z(){mxCylinder.call(this)}function ca(){mxShape.call(this)}function W(){mxShape.call(this)}function ja(){mxEllipse.call(this)}
+function H(){mxShape.call(this)}function ea(){mxShape.call(this)}function oa(){mxRectangleShape.call(this)}function sa(){mxShape.call(this)}function Pa(){mxShape.call(this)}function la(){mxShape.call(this)}function Ba(){mxShape.call(this)}function Ca(){mxShape.call(this)}function Fa(){mxCylinder.call(this)}function Ia(){mxCylinder.call(this)}function Ha(){mxRectangleShape.call(this)}function Ja(){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 q(){mxActor.call(this)}function A(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function N(){mxEllipse.call(this)}
+function R(){mxEllipse.call(this)}function X(){mxEllipse.call(this)}function fa(){mxRhombus.call(this)}function da(){mxEllipse.call(this)}function ha(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Ma(){mxEllipse.call(this)}function Na(){mxActor.call(this)}function ya(){mxActor.call(this)}function Ga(){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,w,J,y,ba){w+=y;var S=n.clone();n.x-=r*(2*w+y);n.y-=v*(2*w+y);r*=w+y;v*=w+y;return function(){c.ellipse(S.x-r-w,S.y-v-w,2*w,2*w);ba?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 w=l[v];null!=w&&(null==r?c.moveTo(w.x+t,w.y+n):null!=r&&c.lineTo(w.x+t,w.y+n));r=w}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(),J=this.getTitleSize();0==J||this.outline?wa.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)))),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,
+!1,w=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||!(w&&J<r||!w&&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,w=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var J=v;v=w;w=J}c.rotate(-this.getShapeRotation(),
+v,w,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))))),w=Math.max(-1,Math.min(1,
+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!=w&&(c.setFillAlpha(Math.abs(w)),c.setFillColor(0>w?"#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*
-l,(.5-Ka)*l),c.lineTo(.5*l,(1-Ka)*l)):(c.translate((n-l)/2,(r-l)/2),c.moveTo(0,.25*l),c.lineTo(.5*l,l*Ka),c.lineTo(l,.25*l),c.lineTo(l,.75*l),c.lineTo(.5*l,(1-Ka)*l),c.lineTo(0,.75*l),c.close());c.end()};mxCellRenderer.registerShape("isoCube",m);mxUtils.extend(q,mxCylinder);q.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(r/2,Math.round(r/8)+this.strokewidth-1);if(v&&null!=this.fill||!v&&null==this.fill)c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,
-l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,-l);v||(c.moveTo(0,l),c.curveTo(0,-l/3,n,-l/3,n,l),c.lineTo(n,r-l),c.curveTo(n,r+l/3,0,r+l/3,0,r-l),c.close())};q.prototype.getLabelMargins=function(c){return new mxRectangle(0,2.5*Math.min(c.height/2,Math.round(c.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",q);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=
-0;k.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))));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(0,r);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(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.close(),c.fill()),c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.end(),c.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(u,k);mxCellRenderer.registerShape("note2",u);u.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,0)}return null};mxUtils.extend(w,mxShape);w.prototype.isoAngle=
-15;w.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;v=Math.min(n*Math.tan(v),.5*r);c.translate(l,t);c.begin();c.moveTo(.5*n,0);c.lineTo(n,v);c.lineTo(n,r-v);c.lineTo(.5*n,r);c.lineTo(0,r-v);c.lineTo(0,v);c.close();c.fillAndStroke();c.setShadow(!1);c.begin();c.moveTo(0,v);c.lineTo(.5*n,2*v);c.lineTo(n,v);c.moveTo(.5*n,2*v);c.lineTo(.5*n,r);c.stroke()};mxCellRenderer.registerShape("isoCube2",
-w);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),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,
+l,(.5-Ka)*l),c.lineTo(.5*l,(1-Ka)*l)):(c.translate((n-l)/2,(r-l)/2),c.moveTo(0,.25*l),c.lineTo(.5*l,l*Ka),c.lineTo(l,.25*l),c.lineTo(l,.75*l),c.lineTo(.5*l,(1-Ka)*l),c.lineTo(0,.75*l),c.close());c.end()};mxCellRenderer.registerShape("isoCube",m);mxUtils.extend(p,mxCylinder);p.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(r/2,Math.round(r/8)+this.strokewidth-1);if(v&&null!=this.fill||!v&&null==this.fill)c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,
+l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,-l);v||(c.moveTo(0,l),c.curveTo(0,-l/3,n,-l/3,n,l),c.lineTo(n,r-l),c.curveTo(n,r+l/3,0,r+l/3,0,r-l),c.close())};p.prototype.getLabelMargins=function(c){return new mxRectangle(0,2.5*Math.min(c.height/2,Math.round(c.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",p);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=
+0;k.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))))),w=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));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(0,r);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=w&&(c.setFillAlpha(Math.abs(w)),c.setFillColor(0>w?"#FFFFFF":"#000000"),
+c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.close(),c.fill()),c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.end(),c.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(u,k);mxCellRenderer.registerShape("note2",u);u.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,0)}return null};mxUtils.extend(x,mxShape);x.prototype.isoAngle=
+15;x.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;v=Math.min(n*Math.tan(v),.5*r);c.translate(l,t);c.begin();c.moveTo(.5*n,0);c.lineTo(n,v);c.lineTo(n,r-v);c.lineTo(.5*n,r);c.lineTo(0,r-v);c.lineTo(0,v);c.close();c.fillAndStroke();c.setShadow(!1);c.begin();c.moveTo(0,v);c.lineTo(.5*n,2*v);c.lineTo(n,v);c.moveTo(.5*n,2*v);c.lineTo(.5*n,r);c.stroke()};mxCellRenderer.registerShape("isoCube2",
+x);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)))),w=mxUtils.getValue(this.style,"lid",!0);c.translate(l,t);0==v?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),w?(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),w&&(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),w=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);w||(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));w?(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),
+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),w=mxUtils.getValue(this.style,"absoluteArcSize",!1);l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));t=mxUtils.getValue(this.style,"umlStateConnection",
+null);w||(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(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||
@@ -3325,155 +3346,155 @@ this.scale,0,0,0):null};u.prototype.getLabelMargins=function(c){if(mxUtils.getVa
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(.5,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(l,0),new mxPoint(n-l,0),new mxPoint(n,r)],this.isRounded,t,!0)};mxCellRenderer.registerShape("trapezoid",U);mxUtils.extend(Y,mxActor);
Y.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(Q,mxActor);
Q.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",Q);P.prototype.moveTo=function(c,l){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;this.firstX=c;this.firstY=l};P.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)};P.prototype.quadTo=function(c,l,t,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=n};P.prototype.curveTo=function(c,l,t,n,r,v){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=r;this.lastY=v};P.prototype.arcTo=function(c,l,t,n,r,v,x){this.originalArcTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=x};P.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),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 ba=(Math.random()-.5)*J;this.originalLineTo.call(this.canvas,y*v+this.lastX-ba*r,t*v+this.lastY-ba*n)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,
+arguments));this.originalClose.apply(this.canvas,arguments)};P.prototype.quadTo=function(c,l,t,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=n};P.prototype.curveTo=function(c,l,t,n,r,v){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=r;this.lastY=v};P.prototype.arcTo=function(c,l,t,n,r,v,w){this.originalArcTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=w};P.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 w=Math.round(v/10),J=this.defaultVariation;5>w&&(w=5,J/=3);var y=t(c-this.lastX)*n/w;t=t(l-this.lastY)*r/w;n/=v;r/=v;for(v=0;v<w;v++){var ba=(Math.random()-.5)*J;this.originalLineTo.call(this.canvas,y*v+this.lastX-ba*r,t*v+this.lastY-ba*n)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,
arguments);this.lastX=c;this.lastY=l};P.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 P(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!=P)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!=
this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)v||null!=this.fill&&this.fill!=mxConstants.NONE||(c.pointerEvents=!1),c.begin(),this.isRounded?("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?v=Math.min(n/2,Math.min(r/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2)):(v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,v=Math.min(n*v,r*v)),c.moveTo(l+
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,t+r,l+n-v,t+r),c.lineTo(l+v,t+r),c.quadTo(l,t+r,l,t+r-v),c.lineTo(l,t+v),c.quadTo(l,t,l+v,t)):(c.moveTo(l,t),c.lineTo(l+n,t),c.lineTo(l+n,t+r),c.lineTo(l,t+r),c.lineTo(l,t)),c.close(),c.end(),c.fillAndStroke()}};mxUtils.extend(M,mxRectangleShape);M.prototype.size=.1;M.prototype.fixedSize=!1;M.prototype.isHtmlAllowed=function(){return!1};M.prototype.getLabelBounds=function(c){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,
!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var l=c.width,t=c.height;c=new mxRectangle(c.x,c.y,l,t);var n=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));if(this.isRounded){var r=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;n=Math.max(n,Math.min(l*r,t*r))}c.x+=Math.round(n);c.width-=Math.round(2*n);return c}return c};M.prototype.paintForeground=
-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",M);mxCellRenderer.registerShape("process2",M);mxUtils.extend(W,mxRectangleShape);W.prototype.paintBackground=function(c,l,t,n,r){c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};W.prototype.paintForeground=function(c,l,t,n,r){};mxCellRenderer.registerShape("transparent",W);mxUtils.extend(aa,mxHexagon);aa.prototype.size=30;aa.prototype.position=.5;aa.prototype.position2=.5;aa.prototype.base=20;aa.prototype.getLabelMargins=function(){return new mxRectangle(0,
-0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};aa.prototype.isRoundable=function(){return!0};aa.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)))),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",aa);mxUtils.extend(ia,mxActor);ia.prototype.size=.2;ia.prototype.fixedSize=20;ia.prototype.isRoundable=function(){return!0};ia.prototype.redrawPath=function(c,l,
+function(c,l,t,n,r){var v=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),w=parseFloat(mxUtils.getValue(this.style,"size",this.size));w=v?Math.max(0,Math.min(n,w)):n*Math.max(0,Math.min(1,w));this.isRounded&&(v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,w=Math.max(w,Math.min(n*v,r*v)));w=Math.round(w);c.begin();c.moveTo(l+w,t);c.lineTo(l+w,t+r);c.moveTo(l+n-w,t);c.lineTo(l+n-w,t+r);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,
+arguments)};mxCellRenderer.registerShape("process",M);mxCellRenderer.registerShape("process2",M);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(aa,mxHexagon);aa.prototype.size=30;aa.prototype.position=.5;aa.prototype.position2=.5;aa.prototype.base=20;aa.prototype.getLabelMargins=function(){return new mxRectangle(0,
+0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};aa.prototype.isRoundable=function(){return!0};aa.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)))),w=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",
+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(w,r),new mxPoint(Math.max(0,v),r-t),new mxPoint(0,r-t)],this.isRounded,l,!0,[4])};mxCellRenderer.registerShape("callout",aa);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(qa,mxRectangleShape);qa.prototype.isHtmlAllowed=function(){return!1};qa.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)};
+ia);mxUtils.extend(na,mxHexagon);na.prototype.size=.25;na.prototype.fixedSize=20;na.prototype.isRoundable=function(){return!0};na.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",na);mxUtils.extend(qa,mxRectangleShape);qa.prototype.isHtmlAllowed=function(){return!1};qa.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",qa);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 J=this.style["symbol"+v+"Align"],y=this.style["symbol"+v+"VerticalAlign"],ba=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-ba)/2:J==mxConstants.ALIGN_RIGHT?Oa+(n-ba-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,ba,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 w=mxCellRenderer.defaultShapes[this.style["symbol"+v]];if(null!=w){var J=this.style["symbol"+v+"Align"],y=this.style["symbol"+v+"VerticalAlign"],ba=this.style["symbol"+v+"Width"],S=this.style["symbol"+v+"Height"],Ea=this.style["symbol"+v+"Spacing"]||0,Ra=this.style["symbol"+v+"VSpacing"]||Ea,
+Oa=this.style["symbol"+v+"ArcSpacing"];null!=Oa&&(Oa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Ea+=Oa,Ra+=Oa);Oa=l;var ka=t;Oa=J==mxConstants.ALIGN_CENTER?Oa+(n-ba)/2:J==mxConstants.ALIGN_RIGHT?Oa+(n-ba-Ea):Oa+Ea;ka=y==mxConstants.ALIGN_MIDDLE?ka+(r-S)/2:y==mxConstants.ALIGN_BOTTOM?ka+(r-S-Ra):ka+Ra;c.save();J=new w;J.style=this.style;w.prototype.paintVertexShape.call(J,c,Oa,ka,ba,S);c.restore()}v++}while(null!=w)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",
O);mxUtils.extend(Z,mxCylinder);Z.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",Z);mxUtils.extend(ca,mxShape);ca.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",ca);mxUtils.extend(V,mxShape);V.prototype.getLabelMargins=function(c){return new mxRectangle(c.width/6,0,0,0)};V.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",
-V);mxUtils.extend(ja,mxEllipse);ja.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",ja);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);
-ea.prototype.getLabelBounds=function(c){return new mxRectangle(c.x,c.y+c.height/8,c.width,7*c.height/8)};ea.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,0);c.end();c.stroke();c.ellipse(0,r/8,n,7*r/8);c.fillAndStroke()};ea.prototype.paintForeground=function(c,l,t,n,r){c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,r/4);c.end();c.stroke()};mxCellRenderer.registerShape("umlControl",ea);mxUtils.extend(la,mxRectangleShape);la.prototype.size=
-40;la.prototype.isHtmlAllowed=function(){return!1};la.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)};la.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!=la&&(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())};la.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",la);mxUtils.extend(sa,mxShape);sa.prototype.width=60;sa.prototype.height=30;sa.prototype.corner=10;sa.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)};sa.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))};sa.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",sa);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=la.prototype.size;null!=l&&(n=mxUtils.getValue(l.style,"size",n)*l.view.scale);l=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*
+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",ca);mxUtils.extend(W,mxShape);W.prototype.getLabelMargins=function(c){return new mxRectangle(c.width/6,0,0,0)};W.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",
+W);mxUtils.extend(ja,mxEllipse);ja.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",ja);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);
+ea.prototype.getLabelBounds=function(c){return new mxRectangle(c.x,c.y+c.height/8,c.width,7*c.height/8)};ea.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,0);c.end();c.stroke();c.ellipse(0,r/8,n,7*r/8);c.fillAndStroke()};ea.prototype.paintForeground=function(c,l,t,n,r){c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,r/4);c.end();c.stroke()};mxCellRenderer.registerShape("umlControl",ea);mxUtils.extend(oa,mxRectangleShape);oa.prototype.size=
+40;oa.prototype.isHtmlAllowed=function(){return!1};oa.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)};oa.prototype.paintBackground=function(c,l,t,n,r){var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),w=mxUtils.getValue(this.style,"participant");null==w||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,
+c,l,t,n,v):(w=this.state.view.graph.cellRenderer.getShape(w),null!=w&&w!=oa&&(w=new w,w.apply(this.state),c.save(),w.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())};oa.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",oa);mxUtils.extend(sa,mxShape);sa.prototype.width=60;sa.prototype.height=30;sa.prototype.corner=10;sa.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)};sa.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))};sa.prototype.paintBackground=function(c,l,t,n,r){var v=this.corner,w=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+w,t);c.lineTo(l+w,t+Math.max(0,J-1.5*v));c.lineTo(l+Math.max(0,w-v),t+J);c.lineTo(l,t+J);c.close();c.fillAndStroke();this.configurePointerEvents(c);
+c.begin();c.moveTo(l+w,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",sa);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=oa.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",aa.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?K.prototype.fixedSize:K.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,ba=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(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+ba),new mxPoint(x,J+ba-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+ba),new mxPoint(x,J+ba),new mxPoint(x+r,J)]);ba=c.getCenterX();c=c.getCenterY();c=new mxPoint(ba,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,ba=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+ba),new mxPoint(x,J+ba),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+
-ba),new mxPoint(x+r,J+ba),new mxPoint(x,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J+r),new mxPoint(x+y,J),new mxPoint(x+y,J+ba),new mxPoint(x,J+ba-r),new mxPoint(x,J+r)]):(r=r?Math.max(0,Math.min(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+ba-r),new mxPoint(x,J+ba),new mxPoint(x,J)]);ba=c.getCenterX();c=c.getCenterY();c=new mxPoint(ba,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,ba=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+ba),new mxPoint(x,J+ba),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+ba),new mxPoint(x+r,J+ba),new mxPoint(x,c),new mxPoint(x+r,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(ba,v)):ba*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+ba),new mxPoint(S,J+ba-r),new mxPoint(x,J+ba),new mxPoint(x,J+r)]):(r=r?Math.max(0,Math.min(ba,v)):ba*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+ba-r),new mxPoint(S,J+ba),new mxPoint(x,J+ba-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,ba=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(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(S,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+ba-r),new mxPoint(S,J+ba),new mxPoint(x,J+ba-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+ba),new mxPoint(x+r,J+ba),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(Ca,mxShape);Ca.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",Ca);mxUtils.extend(Da,mxShape);Da.prototype.inset=2;Da.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",Da);mxUtils.extend(Ga,mxCylinder);Ga.prototype.jettyWidth=
-20;Ga.prototype.jettyHeight=10;Ga.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",Ga);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(Ha,mxRectangleShape);Ha.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",Ha);mxUtils.extend(Ja,mxDoubleEllipse);Ja.prototype.outerStroke=!0;Ja.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&&
+r&&(v*=l.view.scale);var w=c.x,J=c.y,y=c.width,ba=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(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(w,J),new mxPoint(w+y,J+r),new mxPoint(w+y,J+ba),new mxPoint(w,J+ba-r),new mxPoint(w,J)]):(r=r?Math.max(0,Math.min(.5*y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(w+r,J),new mxPoint(w+
+y,J),new mxPoint(w+y-r,J+ba),new mxPoint(w,J+ba),new mxPoint(w+r,J)]);ba=c.getCenterX();c=c.getCenterY();c=new mxPoint(ba,c);n&&(t.x<w||t.x>w+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 w=c.x,J=c.y,y=c.width,ba=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(w+r,J),new mxPoint(w+y-r,J),new mxPoint(w+y,J+ba),new mxPoint(w,J+ba),new mxPoint(w+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(w,J),new mxPoint(w+y,J),new mxPoint(w+y-r,J+
+ba),new mxPoint(w+r,J+ba),new mxPoint(w,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(w,J+r),new mxPoint(w+y,J),new mxPoint(w+y,J+ba),new mxPoint(w,J+ba-r),new mxPoint(w,J+r)]):(r=r?Math.max(0,Math.min(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(w,J),new mxPoint(w+y,J+r),new mxPoint(w+y,J+ba-r),new mxPoint(w,J+ba),new mxPoint(w,J)]);ba=c.getCenterX();c=c.getCenterY();c=new mxPoint(ba,c);n&&(t.x<w||t.x>w+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 w=c.x,J=c.y,y=c.width,ba=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(w,J),new mxPoint(w+y-r,J),new mxPoint(w+y,c),new mxPoint(w+y-r,J+ba),new mxPoint(w,J+ba),new mxPoint(w+r,c),new mxPoint(w,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(w+r,J),new mxPoint(w+y,J),new mxPoint(w+y-r,c),new mxPoint(w+y,J+ba),new mxPoint(w+r,J+ba),new mxPoint(w,c),new mxPoint(w+r,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(ba,v)):ba*Math.max(0,
+Math.min(1,v)),J=[new mxPoint(w,J+r),new mxPoint(S,J),new mxPoint(w+y,J+r),new mxPoint(w+y,J+ba),new mxPoint(S,J+ba-r),new mxPoint(w,J+ba),new mxPoint(w,J+r)]):(r=r?Math.max(0,Math.min(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(w,J),new mxPoint(S,J+r),new mxPoint(w+y,J),new mxPoint(w+y,J+ba-r),new mxPoint(S,J+ba),new mxPoint(w,J+ba-r),new mxPoint(w,J)]);S=new mxPoint(S,c);n&&(t.x<w||t.x>w+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?na.prototype.fixedSize:na.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var w=c.x,J=c.y,y=c.width,ba=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(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(S,J),new mxPoint(w+y,J+r),new mxPoint(w+y,J+ba-r),new mxPoint(S,J+ba),new mxPoint(w,J+ba-r),new mxPoint(w,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(w+r,J),new mxPoint(w+y-r,J),new mxPoint(w+y,c),new mxPoint(w+y-r,J+ba),new mxPoint(w+r,J+ba),new mxPoint(w,c),new mxPoint(w+r,J)]);S=new mxPoint(S,c);n&&(t.x<w||t.x>w+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(la,mxShape);la.prototype.size=10;la.prototype.inset=2;la.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,
+"size",this.size)),w=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.begin();c.moveTo(n/2,v+w);c.lineTo(n/2,r);c.end();c.stroke();c.begin();c.moveTo((n-v)/2-w,v/2);c.quadTo((n-v)/2-w,v+w,n/2,v+w);c.quadTo((n+v)/2+w,v+w,(n+v)/2+w,v/2);c.end();c.stroke()};mxCellRenderer.registerShape("requires",la);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(Fa,mxCylinder);Fa.prototype.jettyWidth=
+20;Fa.prototype.jettyHeight=10;Fa.prototype.redrawPath=function(c,l,t,n,r,v){var w=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=w/2;w=t+w/2;var J=Math.min(l,r-l),y=Math.min(J+2*l,r-l);v?(c.moveTo(t,J),c.lineTo(w,J),c.lineTo(w,J+l),c.lineTo(t,J+l),c.moveTo(t,y),c.lineTo(w,y),c.lineTo(w,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",Fa);mxUtils.extend(Ia,mxCylinder);Ia.prototype.jettyWidth=32;Ia.prototype.jettyHeight=12;Ia.prototype.redrawPath=function(c,l,t,n,r,v){var w=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=w/2;w=t+w/2;var J=.3*r-l/2,y=.7*r-l/2;v?(c.moveTo(t,J),c.lineTo(w,J),c.lineTo(w,
+J+l),c.lineTo(t,J+l),c.moveTo(t,y),c.lineTo(w,y),c.lineTo(w,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(Ha,mxRectangleShape);Ha.prototype.paintForeground=function(c,l,t,n,r){var v=n/2,w=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+w),new mxPoint(l+v,t+r),new mxPoint(l,t+w)],this.isRounded,J,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Ha);mxUtils.extend(Ja,mxDoubleEllipse);Ja.prototype.outerStroke=!0;Ja.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",Ja);mxUtils.extend(ta,Ja);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",
-Ya);mxUtils.extend(cb,mxRectangleShape);cb.prototype.dx=20;cb.prototype.dy=20;cb.prototype.isHtmlAllowed=function(){return!1};cb.prototype.paintForeground=function(c,l,t,n,r){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var v=0;if(this.isRounded){var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;v=Math.max(v,Math.min(n*x,r*x))}x=Math.max(v,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));v=Math.max(v,Math.min(r,
-parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.begin();c.moveTo(l,t+v);c.lineTo(l+n,t+v);c.end();c.stroke();c.begin();c.moveTo(l+x,t);c.lineTo(l+x,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("internalStorage",cb);mxUtils.extend(fb,mxActor);fb.prototype.dx=20;fb.prototype.dy=20;fb.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));
+Ya);mxUtils.extend(cb,mxRectangleShape);cb.prototype.dx=20;cb.prototype.dy=20;cb.prototype.isHtmlAllowed=function(){return!1};cb.prototype.paintForeground=function(c,l,t,n,r){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var v=0;if(this.isRounded){var w=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;v=Math.max(v,Math.min(n*w,r*w))}w=Math.max(v,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));v=Math.max(v,Math.min(r,
+parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.begin();c.moveTo(l,t+v);c.lineTo(l+n,t+v);c.end();c.stroke();c.begin();c.moveTo(l+w,t);c.lineTo(l+w,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("internalStorage",cb);mxUtils.extend(fb,mxActor);fb.prototype.dx=20;fb.prototype.dy=20;fb.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));
parseFloat(mxUtils.getValue(this.style,"size",this.size));var v=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,t),new mxPoint(l,t),new mxPoint(l,r),new mxPoint(0,r)],this.isRounded,v,!0);c.end()};mxCellRenderer.registerShape("corner",fb);mxUtils.extend(pb,mxActor);pb.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.lineTo(0,r);c.end();c.moveTo(n,0);c.lineTo(n,r);c.end();c.moveTo(0,r/2);c.lineTo(n,
r/2);c.end()};mxCellRenderer.registerShape("crossbar",pb);mxUtils.extend(gb,mxActor);gb.prototype.dx=20;gb.prototype.dy=20;gb.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var v=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,t),new mxPoint((n+l)/2,t),new mxPoint((n+l)/2,r),new mxPoint((n-l)/2,r),new mxPoint((n-l)/2,t),new mxPoint(0,t)],this.isRounded,v,!0);c.end()};mxCellRenderer.registerShape("tee",gb);mxUtils.extend(ab,mxActor);ab.prototype.arrowWidth=.3;ab.prototype.arrowSize=.2;ab.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"arrowSize",this.arrowSize))));t=(r-v)/2;v=t+v;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(0,v)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("singleArrow",ab);mxUtils.extend(ib,mxActor);ib.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",
-ab.prototype.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",ab.prototype.arrowSize))));t=(r-v)/2;v=t+v;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r/2),new mxPoint(l,0),new mxPoint(l,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(l,v),new mxPoint(l,r)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("doubleArrow",
+"arrowSize",this.arrowSize))));t=(r-v)/2;v=t+v;var w=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(0,v)],this.isRounded,w,!0);c.end()};mxCellRenderer.registerShape("singleArrow",ab);mxUtils.extend(ib,mxActor);ib.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",
+ab.prototype.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",ab.prototype.arrowSize))));t=(r-v)/2;v=t+v;var w=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r/2),new mxPoint(l,0),new mxPoint(l,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(l,v),new mxPoint(l,r)],this.isRounded,w,!0);c.end()};mxCellRenderer.registerShape("doubleArrow",
ib);mxUtils.extend(eb,mxActor);eb.prototype.size=.1;eb.prototype.fixedSize=20;eb.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))));c.moveTo(l,0);c.lineTo(n,0);c.quadTo(n-2*l,r/2,n,r);c.lineTo(l,r);c.quadTo(l-2*l,r/2,l,0);c.close();c.end()};mxCellRenderer.registerShape("dataStorage",eb);
-mxUtils.extend(p,mxActor);p.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.close();c.end()};mxCellRenderer.registerShape("or",p);mxUtils.extend(A,mxActor);A.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.quadTo(n/2,r/2,0,0);c.close();c.end()};mxCellRenderer.registerShape("xor",A);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.isRoundable=function(){return!0};B.prototype.redrawPath=function(c,
+mxUtils.extend(q,mxActor);q.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.close();c.end()};mxCellRenderer.registerShape("or",q);mxUtils.extend(A,mxActor);A.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.quadTo(n/2,r/2,0,0);c.close();c.end()};mxCellRenderer.registerShape("xor",A);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.isRoundable=function(){return!0};B.prototype.redrawPath=function(c,
l,t,n,r){l=Math.min(n/2,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-l,0),new mxPoint(n,.8*l),new mxPoint(n,r),new mxPoint(0,r),new mxPoint(0,.8*l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("loopLimit",B);mxUtils.extend(F,mxActor);F.prototype.size=.375;F.prototype.isRoundable=function(){return!0};F.prototype.redrawPath=function(c,
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(N,mxEllipse);N.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",N);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(X,mxEllipse);X.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",X);mxUtils.extend(fa,mxRhombus);fa.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",fa);mxUtils.extend(da,mxEllipse);da.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",da);mxUtils.extend(ha,mxEllipse);ha.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",ha);mxUtils.extend(wa,mxEllipse);wa.prototype.drawHidden=!0;wa.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"),ba="1"==mxUtils.getValue(this.style,"right","1"),S="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||x||this.outline||J||ba||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||ba?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",wa);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",fa);mxUtils.extend(da,mxEllipse);da.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",da);mxUtils.extend(ha,mxEllipse);ha.prototype.paintVertexShape=function(c,l,t,n,r){var v=c.state.strokeWidth/2,w=10+2*v,J=t+r-w/2;c.begin();
+c.moveTo(l,t);c.lineTo(l,t+r);c.moveTo(l+v,J);c.lineTo(l+v+w,J-w/2);c.moveTo(l+v,J);c.lineTo(l+v+w,J+w/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-w-v,J-w/2);c.moveTo(l+n-v,J);c.lineTo(l+n-w-v,J+w/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",ha);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,
+w=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||w||(c.pointerEvents=!1);var J="1"==mxUtils.getValue(this.style,"top","1"),y="1"==mxUtils.getValue(this.style,"left","1"),ba="1"==mxUtils.getValue(this.style,"right","1"),S="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||w||this.outline||J||ba||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||ba?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(za,mxActor);za.prototype.size=.25;za.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",za);mxUtils.extend(va,mxActor);va.prototype.cst={RECT2:"mxgraph.basic.rect"};va.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",
+Math.max(0,Math.min(l,l*parseFloat(mxUtils.getValue(this.style,"size",this.size))));l=(r-v)/2;t=l+v;var w=(n-v)/2;v=w+v;c.moveTo(0,l);c.lineTo(w,l);c.lineTo(w,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(w,r);c.lineTo(w,t);c.lineTo(0,t);c.close();c.end()};mxCellRenderer.registerShape("cross",ya);mxUtils.extend(Ga,mxActor);Ga.prototype.size=.25;Ga.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",Ga);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",
dispName:"Fold"}]},{name:"size",dispName:"Corner Size",type:"float",defVal:10},{name:"absoluteCornerSize",dispName:"Abs. Corner Size",type:"bool",defVal:!0},{name:"indent",dispName:"Indent",type:"float",defVal:2},{name:"rectOutline",dispName:"Outline",type:"enum",defVal:"single",enumList:[{val:"single",dispName:"Single"},{val:"double",dispName:"Double"},{val:"frame",dispName:"Frame"}]},{name:"fillColor2",dispName:"Inside Fill Color",type:"color",defVal:"none"},{name:"gradientColor2",dispName:"Inside Gradient Color",
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"}]}];va.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);this.strictDrawShape(c,0,0,n,r)};va.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)))),ba=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),ra=v&&v.right?v.right:mxUtils.getValue(this.style,"right",!0),pa=v&&v.bottom?v.bottom:mxUtils.getValue(this.style,"bottom",!0),na=v&&v.left?v.left:mxUtils.getValue(this.style,"left",!0),xa=v&&v.topLeftStyle?v.topLeftStyle:mxUtils.getValue(this.style,"topLeftStyle","default"),Aa=v&&v.topRightStyle?v.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),Ba=v&&v.bottomRightStyle?v.bottomRightStyle:mxUtils.getValue(this.style,"bottomRightStyle","default"),Ea=v&&v.bottomLeftStyle?
+{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 w=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)))),ba=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)))),Ea=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),ra=v&&v.right?v.right:mxUtils.getValue(this.style,"right",!0),pa=v&&v.bottom?v.bottom:mxUtils.getValue(this.style,"bottom",!0),ma=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"),Da=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=va.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||ra||pa||na)&&"frame"!=ba&&(c.begin(),ka?v.moveNW(c,l,t,n,r,x,xa,y,na):c.moveTo(0,
-0),ka&&v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),ra&&v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),pa&&v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),na&&v.paintSW(c,l,t,n,r,x,Ea,y,pa),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,na):c.moveTo(S,0),v.paintLeftInner(c,l,
-t,n,r,x,Ea,y,S,pa,na),na&&pa&&v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),pa&&ra&&v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),ra&&ka&&v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),ka&&na&&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,Aa,Ba,Ea,y,ka,ra,pa,na),c.stroke()));ka||ra||pa||!na?ka||ra||!pa||na?!ka&&!ra&&pa&&na?"frame"!=ba?(c.begin(),v.moveSE(c,
-l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.lineNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,
-l,t,n,r,x,Ea,y,S,pa,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),c.close(),c.fillAndStroke()):ka||!ra||pa||na?!ka&&ra&&!pa&&na?"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na)),c.stroke(),c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,x,Ba,y,S,pa),v.paintRightInner(c,
-l,t,n,r,x,Aa,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.lineNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),c.close(),c.fillAndStroke(),c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.lineSEInner(c,l,t,n,r,x,Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),c.close(),c.fillAndStroke()):!ka&&ra&&pa&&!na?"frame"!=ba?(c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,
-Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),"double"==ba&&(v.moveSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.lineSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,
-l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),c.close(),c.fillAndStroke()):!ka&&ra&&pa&&na?"frame"!=ba?(c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,
-pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.lineNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),
-v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),c.close(),c.fillAndStroke()):!ka||ra||pa||na?ka&&!ra&&!pa&&na?"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,
-r,x,xa,y,ka),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.lineNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),c.close(),c.fillAndStroke()):ka&&!ra&&pa&&!na?"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka)),c.stroke(),c.begin(),v.moveSE(c,l,t,n,r,x,
-Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),"double"==ba&&(v.moveSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.lineNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),c.close(),c.fillAndStroke(),c.begin(),v.moveSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.lineSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),c.close(),
-c.fillAndStroke()):ka&&!ra&&pa&&na?"frame"!=ba?(c.begin(),v.moveSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,
-pa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.lineNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),c.close(),c.fillAndStroke()):ka&&ra&&!pa&&
-!na?"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,x,Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.lineSEInner(c,l,t,n,r,
-x,Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),c.close(),c.fillAndStroke()):ka&&ra&&!pa&&na?"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,x,Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,
-l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.lineSEInner(c,l,t,n,r,x,Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,
-S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),c.close(),c.fillAndStroke()):ka&&ra&&pa&&!na?"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),"double"==ba&&(v.moveSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,
-t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.lineSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,
-x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),c.close(),c.fillAndStroke()):ka&&ra&&pa&&na&&("frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),c.close(),"double"==ba&&(v.moveSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintSWInner(c,l,t,n,r,x,Ea,
-y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),c.close()),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,
-Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),c.close(),v.moveSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),c.close(),c.fillAndStroke())):
-"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.lineNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),c.close(),c.fillAndStroke()):"frame"!=ba?(c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,x,
-Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.lineSEInner(c,l,t,n,r,x,Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),c.close(),c.fillAndStroke()):"frame"!=ba?(c.begin(),v.moveSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),"double"==ba&&(v.moveSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,
-l,t,n,r,x,Ea,y,na),v.lineSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),c.close(),c.fillAndStroke()):"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.lineNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),c.close(),c.fillAndStroke());
-c.begin();v.paintFolds(c,l,t,n,r,x,xa,Aa,Ba,Ea,y,ka,ra,pa,na);c.stroke()};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};
-va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.prototype.paintTopInner=function(c,l,t,n,r,v,x,J,y,ba,S){ba||S?!ba&&S?c.lineTo(0,y):ba&&!S?c.lineTo(y,0):ba?"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)};va.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)};va.prototype.paintRightInner=function(c,l,t,n,r,v,x,J,y,ba,S){ba||S?!ba&&S?c.lineTo(n-y,0):ba&&!S?c.lineTo(n,y):ba?"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)};va.prototype.paintLeftInner=function(c,l,t,n,r,v,x,J,y,ba,S){ba||S?!ba&&S?c.lineTo(y,r):ba&&!S?c.lineTo(0,r-y):ba?"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)};va.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)};va.prototype.paintBottomInner=function(c,l,t,n,r,v,x,J,y,ba,S){ba||S?!ba&&S?c.lineTo(n,r-y):ba&&!S?c.lineTo(n-y,r):"square"==
-x||"default"==x&&"square"==v||!ba?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)};va.prototype.paintSWInner=function(c,l,t,n,r,v,x,J,y,ba){if(!ba)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)};va.prototype.moveSWInner=function(c,l,t,n,r,v,x,J,y,ba){ba?"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)};va.prototype.lineSWInner=function(c,l,t,n,
-r,v,x,J,y,ba){ba?"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)};va.prototype.moveSEInner=function(c,l,t,n,r,v,x,J,y,ba){ba?"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)};va.prototype.lineSEInner=function(c,l,t,n,r,v,x,J,y,ba){ba?"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)};va.prototype.moveNEInner=function(c,l,t,n,r,v,x,
-J,y,ba){ba?"square"==x||"default"==x&&"square"==v||ba?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)};va.prototype.lineNEInner=function(c,l,t,n,r,v,x,J,y,ba){ba?"square"==x||"default"==x&&"square"==v||ba?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)};va.prototype.moveNWInner=function(c,l,t,n,r,v,x,J,y,ba,S){ba||S?!ba&&S?c.moveTo(y,0):ba&&!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)};va.prototype.lineNWInner=function(c,
-l,t,n,r,v,x,J,y,ba,S){ba||S?!ba&&S?c.lineTo(y,0):ba&&!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)};va.prototype.paintFolds=function(c,l,t,n,r,v,x,J,y,ba,S,Fa,Ra,Oa,ka){if("fold"==v||"fold"==x||"fold"==J||"fold"==y||"fold"==ba)("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"==ba||"default"==ba&&"fold"==v)&&Oa&&ka&&(c.moveTo(0,r-S),c.lineTo(S,r-S),c.lineTo(S,r))};mxCellRenderer.registerShape(va.prototype.cst.RECT2,va);va.prototype.constraints=null;mxUtils.extend(ua,mxConnector);ua.prototype.origPaintEdgeShape=ua.prototype.paintEdgeShape;
+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(Ea);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||ra||pa||ma)&&"frame"!=ba&&(c.begin(),ka?v.moveNW(c,l,t,n,r,w,xa,y,ma):c.moveTo(0,
+0),ka&&v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),ra&&v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),pa&&v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),ma&&v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Ea=J=Eb,"none"==zb&&(J=0),"none"==Ab&&(Ea=0),c.setGradient(zb,Ab,0,0,n,r,Db,J,Ea),c.begin(),ka?v.moveNWInner(c,l,t,n,r,w,xa,y,S,ka,ma):c.moveTo(S,0),v.paintLeftInner(c,l,
+t,n,r,w,Da,y,S,pa,ma),ma&&pa&&v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),pa&&ra&&v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),ra&&ka&&v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),ka&&ma&&v.paintNWInner(c,l,t,n,r,w,xa,y,S),c.fill(),"none"==Bb&&(c.begin(),v.paintFolds(c,l,t,n,r,w,xa,za,Aa,Da,y,ka,ra,pa,ma),c.stroke()));ka||ra||pa||!ma?ka||ra||!pa||ma?!ka&&!ra&&pa&&ma?"frame"!=ba?(c.begin(),v.moveSE(c,
+l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.lineNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,
+l,t,n,r,w,Da,y,S,pa,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),c.close(),c.fillAndStroke()):ka||!ra||pa||ma?!ka&&ra&&!pa&&ma?"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,w,xa,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma)),c.stroke(),c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,w,Aa,y,S,pa),v.paintRightInner(c,
+l,t,n,r,w,za,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,w,xa,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.lineNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),c.close(),c.fillAndStroke(),c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.lineSEInner(c,l,t,n,r,w,Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),c.close(),c.fillAndStroke()):!ka&&ra&&pa&&!ma?"frame"!=ba?(c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,
+Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),"double"==ba&&(v.moveSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.lineSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,
+l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),c.close(),c.fillAndStroke()):!ka&&ra&&pa&&ma?"frame"!=ba?(c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,
+pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.lineNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),
+v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),c.close(),c.fillAndStroke()):!ka||ra||pa||ma?ka&&!ra&&!pa&&ma?"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,
+r,w,xa,y,ka),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.lineNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),c.close(),c.fillAndStroke()):ka&&!ra&&pa&&!ma?"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka)),c.stroke(),c.begin(),v.moveSE(c,l,t,n,r,w,
+Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),"double"==ba&&(v.moveSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.lineNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),c.close(),c.fillAndStroke(),c.begin(),v.moveSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.lineSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),c.close(),
+c.fillAndStroke()):ka&&!ra&&pa&&ma?"frame"!=ba?(c.begin(),v.moveSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,
+pa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.lineNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),c.close(),c.fillAndStroke()):ka&&ra&&!pa&&
+!ma?"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,w,Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.lineSEInner(c,l,t,n,r,
+w,Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),c.close(),c.fillAndStroke()):ka&&ra&&!pa&&ma?"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,w,Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,
+l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.lineSEInner(c,l,t,n,r,w,Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,
+S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),c.close(),c.fillAndStroke()):ka&&ra&&pa&&!ma?"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),"double"==ba&&(v.moveSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,
+t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.lineSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,
+w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),c.close(),c.fillAndStroke()):ka&&ra&&pa&&ma&&("frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),c.close(),"double"==ba&&(v.moveSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintSWInner(c,l,t,n,r,w,Da,
+y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),c.close()),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,
+Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),c.close(),v.moveSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),c.close(),c.fillAndStroke())):
+"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.lineNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),c.close(),c.fillAndStroke()):"frame"!=ba?(c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,w,
+Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.lineSEInner(c,l,t,n,r,w,Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),c.close(),c.fillAndStroke()):"frame"!=ba?(c.begin(),v.moveSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),"double"==ba&&(v.moveSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,
+l,t,n,r,w,Da,y,ma),v.lineSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),c.close(),c.fillAndStroke()):"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,w,xa,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,w,xa,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.lineNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),c.close(),c.fillAndStroke());
+c.begin();v.paintFolds(c,l,t,n,r,w,xa,za,Aa,Da,y,ka,ra,pa,ma);c.stroke()};wa.prototype.moveNW=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==w&&"square"==v||!y?c.moveTo(0,0):c.moveTo(0,J)};wa.prototype.moveNE=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==w&&"square"==v||!y?c.moveTo(n,0):c.moveTo(n-J,0)};wa.prototype.moveSE=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==w&&"square"==v||!y?c.moveTo(n,r):c.moveTo(n,r-J)};wa.prototype.moveSW=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==
+w&&"square"==v||!y?c.moveTo(0,r):c.moveTo(J,r)};wa.prototype.paintNW=function(c,l,t,n,r,v,w,J,y){if(y)if("rounded"==w||"default"==w&&"rounded"==v||"invRound"==w||"default"==w&&"invRound"==v){l=0;if("rounded"==w||"default"==w&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,J,0)}else("snip"==w||"default"==w&&"snip"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(J,0);else c.lineTo(0,0)};wa.prototype.paintTop=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==w&&"square"==v||!y?c.lineTo(n,0):c.lineTo(n-J,0)};
+wa.prototype.paintNE=function(c,l,t,n,r,v,w,J,y){if(y)if("rounded"==w||"default"==w&&"rounded"==v||"invRound"==w||"default"==w&&"invRound"==v){l=0;if("rounded"==w||"default"==w&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,n,J)}else("snip"==w||"default"==w&&"snip"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(n,J);else c.lineTo(n,0)};wa.prototype.paintRight=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==w&&"square"==v||!y?c.lineTo(n,r):c.lineTo(n,r-J)};wa.prototype.paintLeft=function(c,l,t,n,r,v,w,
+J,y){"square"==w||"default"==w&&"square"==v||!y?c.lineTo(0,0):c.lineTo(0,J)};wa.prototype.paintSE=function(c,l,t,n,r,v,w,J,y){if(y)if("rounded"==w||"default"==w&&"rounded"==v||"invRound"==w||"default"==w&&"invRound"==v){l=0;if("rounded"==w||"default"==w&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,n-J,r)}else("snip"==w||"default"==w&&"snip"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(n-J,r);else c.lineTo(n,r)};wa.prototype.paintBottom=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==w&&"square"==
+v||!y?c.lineTo(0,r):c.lineTo(J,r)};wa.prototype.paintSW=function(c,l,t,n,r,v,w,J,y){if(y)if("rounded"==w||"default"==w&&"rounded"==v||"invRound"==w||"default"==w&&"invRound"==v){l=0;if("rounded"==w||"default"==w&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,0,r-J)}else("snip"==w||"default"==w&&"snip"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(0,r-J);else c.lineTo(0,r)};wa.prototype.paintNWInner=function(c,l,t,n,r,v,w,J,y){if("rounded"==w||"default"==w&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,y,.5*y+
+J);else if("invRound"==w||"default"==w&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,y,y+J);else if("snip"==w||"default"==w&&"snip"==v)c.lineTo(y,.5*y+J);else if("fold"==w||"default"==w&&"fold"==v)c.lineTo(y+J,y+J),c.lineTo(y,y+J)};wa.prototype.paintTopInner=function(c,l,t,n,r,v,w,J,y,ba,S){ba||S?!ba&&S?c.lineTo(0,y):ba&&!S?c.lineTo(y,0):ba?"square"==w||"default"==w&&"square"==v?c.lineTo(y,y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"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,w,J,y){if("rounded"==w||"default"==w&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,n-J-.5*y,y);else if("invRound"==w||"default"==w&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,n-J-y,y);else if("snip"==w||"default"==w&&"snip"==v)c.lineTo(n-J-.5*y,y);else if("fold"==w||"default"==w&&"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,w,J,y,ba,S){ba||S?!ba&&S?c.lineTo(n-y,0):ba&&!S?c.lineTo(n,y):ba?"square"==
+w||"default"==w&&"square"==v?c.lineTo(n-y,y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"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,w,J,y,ba,S){ba||S?!ba&&S?c.lineTo(y,r):ba&&!S?c.lineTo(0,r-y):ba?"square"==w||"default"==w&&"square"==v?c.lineTo(y,r-y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"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,w,J,y){if("rounded"==w||"default"==w&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,n-y,r-J-.5*y);else if("invRound"==w||"default"==w&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,n-y,r-J-y);else if("snip"==w||"default"==w&&"snip"==v)c.lineTo(n-y,r-J-.5*y);else if("fold"==w||"default"==w&&"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,w,J,y,ba,S){ba||S?!ba&&S?c.lineTo(n,r-y):ba&&!S?c.lineTo(n-y,r):"square"==
+w||"default"==w&&"square"==v||!ba?c.lineTo(n-y,r-y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"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,w,J,y,ba){if(!ba)c.lineTo(y,r);else if("square"==w||"default"==w&&"square"==v)c.lineTo(y,r-y);else if("rounded"==w||"default"==w&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,J+.5*y,r-y);else if("invRound"==w||"default"==w&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,J+y,r-y);else if("snip"==
+w||"default"==w&&"snip"==v)c.lineTo(J+.5*y,r-y);else if("fold"==w||"default"==w&&"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,w,J,y,ba){ba?"square"==w||"default"==w&&"square"==v?c.moveTo(y,r-y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.moveTo(y,r-J-.5*y):("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.moveTo(y,r-J-y):c.moveTo(0,r-y)};wa.prototype.lineSWInner=function(c,l,t,n,
+r,v,w,J,y,ba){ba?"square"==w||"default"==w&&"square"==v?c.lineTo(y,r-y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.lineTo(y,r-J-.5*y):("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(y,r-J-y):c.lineTo(0,r-y)};wa.prototype.moveSEInner=function(c,l,t,n,r,v,w,J,y,ba){ba?"square"==w||"default"==w&&"square"==v?c.moveTo(n-y,r-y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.moveTo(n-y,r-J-.5*y):
+("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.moveTo(n-y,r-J-y):c.moveTo(n-y,r)};wa.prototype.lineSEInner=function(c,l,t,n,r,v,w,J,y,ba){ba?"square"==w||"default"==w&&"square"==v?c.lineTo(n-y,r-y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.lineTo(n-y,r-J-.5*y):("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(n-y,r-J-y):c.lineTo(n-y,r)};wa.prototype.moveNEInner=function(c,l,t,n,r,v,w,
+J,y,ba){ba?"square"==w||"default"==w&&"square"==v||ba?c.moveTo(n-y,y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.moveTo(n-y,J+.5*y):("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.moveTo(n-y,J+y):c.moveTo(n,y)};wa.prototype.lineNEInner=function(c,l,t,n,r,v,w,J,y,ba){ba?"square"==w||"default"==w&&"square"==v||ba?c.lineTo(n-y,y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.lineTo(n-y,J+.5*y):("invRound"==
+w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(n-y,J+y):c.lineTo(n,y)};wa.prototype.moveNWInner=function(c,l,t,n,r,v,w,J,y,ba,S){ba||S?!ba&&S?c.moveTo(y,0):ba&&!S?c.moveTo(0,y):"square"==w||"default"==w&&"square"==v?c.moveTo(y,y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.moveTo(y,J+.5*y):("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.moveTo(y,J+y):c.moveTo(0,0)};wa.prototype.lineNWInner=function(c,
+l,t,n,r,v,w,J,y,ba,S){ba||S?!ba&&S?c.lineTo(y,0):ba&&!S?c.lineTo(0,y):"square"==w||"default"==w&&"square"==v?c.lineTo(y,y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.lineTo(y,J+.5*y):("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(y,J+y):c.lineTo(0,0)};wa.prototype.paintFolds=function(c,l,t,n,r,v,w,J,y,ba,S,Ea,Ra,Oa,ka){if("fold"==v||"fold"==w||"fold"==J||"fold"==y||"fold"==ba)("fold"==w||"default"==w&&"fold"==v)&&Ea&&
+ka&&(c.moveTo(0,S),c.lineTo(S,S),c.lineTo(S,0)),("fold"==J||"default"==J&&"fold"==v)&&Ea&&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"==ba||"default"==ba&&"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,J,y,ba){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,ba){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();ba?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,v,x,J,y,ba){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,ba){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,ba){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,ba){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();ba?
-c.fillAndStroke():c.stroke()}});mxMarker.addMarker("openAsync",function(c){c=null!=c?c:2;return function(l,t,n,r,v,x,J,y,ba,S){v*=J+ba;x*=J+ba;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,ba=t?x[0]:x[J];x=t?x[1]:x[J-1];J=x.x-ba.x;var S=x.y-ba.y,Fa=Math.sqrt(J*J+S*S);ba=n.call(this,Fa,J/Fa,S/Fa,ba,x);return new mxPoint(ba.x/y-v.x,ba.y/y-v.y)}return null},function(v,x,J){var y=c.absolutePoints,ba=y.length-1;v=c.view.translate;
-var S=c.view.scale,Fa=t?y[0]:y[ba];y=t?y[1]:y[ba-1];ba=y.x-Fa.x;var Ra=y.y-Fa.y,Oa=Math.sqrt(ba*ba+Ra*Ra);x.x=(x.x+v.x)*S;x.y=(x.y+v.y)*S;r.call(this,Oa,ba/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-
+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,w,J,y,ba){var S=r*(w+y+1),Ea=v*(w+y+1);return function(){c.begin();c.moveTo(n.x-S/2-Ea/2,n.y-Ea/2+S/2);c.lineTo(n.x+Ea/2-3*S/2,n.y-3*Ea/2-S/2);c.stroke()}});mxMarker.addMarker("box",
+function(c,l,t,n,r,v,w,J,y,ba){var S=r*(w+y+1),Ea=v*(w+y+1),Ra=n.x+S/2,Oa=n.y+Ea/2;n.x-=S;n.y-=Ea;return function(){c.begin();c.moveTo(Ra-S/2-Ea/2,Oa-Ea/2+S/2);c.lineTo(Ra-S/2+Ea/2,Oa-Ea/2-S/2);c.lineTo(Ra+Ea/2-3*S/2,Oa-3*Ea/2-S/2);c.lineTo(Ra-Ea/2-3*S/2,Oa-3*Ea/2+S/2);c.close();ba?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,v,w,J,y,ba){var S=r*(w+y+1),Ea=v*(w+y+1);return function(){c.begin();c.moveTo(n.x-S/2-Ea/2,n.y-Ea/2+S/2);c.lineTo(n.x+Ea/2-3*S/2,n.y-3*Ea/2-
+S/2);c.moveTo(n.x-S/2+Ea/2,n.y-Ea/2-S/2);c.lineTo(n.x-Ea/2-3*S/2,n.y-3*Ea/2+S/2);c.stroke()}});mxMarker.addMarker("circle",Va);mxMarker.addMarker("circlePlus",function(c,l,t,n,r,v,w,J,y,ba){var S=n.clone(),Ea=Va.apply(this,arguments),Ra=r*(w+2*y),Oa=v*(w+2*y);return function(){Ea.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,w,J,y,ba){var S=r*(w+y+1),Ea=v*(w+y+1),Ra=n.clone();n.x-=S;n.y-=Ea;return function(){c.begin();c.moveTo(Ra.x-Ea,Ra.y+S);c.quadTo(n.x-Ea,n.y+S,n.x,n.y);c.quadTo(n.x+Ea,n.y-S,Ra.x+Ea,Ra.y-S);c.stroke()}});mxMarker.addMarker("async",function(c,l,t,n,r,v,w,J,y,ba){l=r*y*1.118;t=v*y*1.118;r*=w+y;v*=w+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();ba?
+c.fillAndStroke():c.stroke()}});mxMarker.addMarker("openAsync",function(c){c=null!=c?c:2;return function(l,t,n,r,v,w,J,y,ba,S){v*=J+ba;w*=J+ba;var Ea=r.clone();return function(){l.begin();l.moveTo(Ea.x,Ea.y);y?l.lineTo(Ea.x-v-w/c,Ea.y-w+v/c):l.lineTo(Ea.x+w/c-v,Ea.y-w-v/c);l.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var nb=function(c,l,t){return db(c,["width"],l,function(n,r,v,w,J){J=c.shape.getEdgeWidth()*c.view.scale+t;return new mxPoint(w.x+r*n/4+v*J/2,w.y+v*n/4-r*J/2)},function(n,
+r,v,w,J,y){n=Math.sqrt(mxUtils.ptSegDistSq(w.x,w.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 w=c.absolutePoints;if(null!=w&&0<w.length){var J=w.length-1;v=c.view.translate;var y=c.view.scale,ba=t?w[0]:w[J];w=t?w[1]:w[J-1];J=w.x-ba.x;var S=w.y-ba.y,Ea=Math.sqrt(J*J+S*S);ba=n.call(this,Ea,J/Ea,S/Ea,ba,w);return new mxPoint(ba.x/y-v.x,ba.y/y-v.y)}return null},function(v,w,J){var y=c.absolutePoints,ba=y.length-1;v=c.view.translate;
+var S=c.view.scale,Ea=t?y[0]:y[ba];y=t?y[1]:y[ba-1];ba=y.x-Ea.x;var Ra=y.y-Ea.y,Oa=Math.sqrt(ba*ba+Ra*Ra);w.x=(w.x+v.x)*S;w.y=(w.y+v.y)*S;r.call(this,Oa,ba/Oa,Ra/Oa,Ea,y,w,J)})},qb=function(c,l){return function(t){return[db(t,["startWidth"],!0,function(n,r,v,w,J){J=mxUtils.getNumber(t.style,"startWidth",c)*t.view.scale+l;return new mxPoint(w.x+r*n/4+v*J/2,w.y+v*n/4-r*J/2)},function(n,r,v,w,J,y){n=Math.sqrt(mxUtils.ptSegDistSq(w.x,w.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(J){var y=null!=r?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ba=parseFloat(mxUtils.getValue(this.state.style,"size",y?r:c));return new mxPoint(J.x+Math.max(0,Math.min(.5*J.width,
-ba*(y?1:J.width))),J.getCenterY())},function(J,y,ba){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,
+(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 w=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+w,v.y+
+w)},function(v,w){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(v.width,w.x-v.x),Math.min(v.height,w.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 w=[Ta(v,["size"],function(J){var y=null!=r?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ba=parseFloat(mxUtils.getValue(this.state.style,"size",y?r:c));return new mxPoint(J.x+Math.max(0,Math.min(.5*J.width,
+ba*(y?1:J.width))),J.getCenterY())},function(J,y,ba){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)&&w.push(hb(v));return w}},yb=function(c,l,t){c=null!=c?c:.5;return function(n){var r=[Ta(n,["size"],function(v){var w=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,J=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,
+"size",w?t:l)));return new mxPoint(v.x+Math.min(.75*v.width*c,J*(w?.75:.75*v.width)),v.y+v.height/4)},function(v,w){v=null!=t&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?w.x-v.x:Math.max(0,Math.min(c,(w.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 J=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);J.execute=function(ba){for(var S=0;S<l.length;S++)this.copyStyle(l[S]);
-x&&x(ba)};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,ba){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)/
+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,w){var J=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);J.execute=function(ba){for(var S=0;S<l.length;S++)this.copyStyle(l[S]);
+w&&w(ba)};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,w,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(w.x+r*(J+c.shape.strokewidth*c.view.scale)+v*n/2,w.y+v*(J+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,w,J,y,ba){n=Math.sqrt(mxUtils.ptSegDistSq(w.x,w.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(w.x,w.y,w.x+v,w.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(ba.getEvent())||mxEvent.isControlDown(ba.getEvent()))c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE];mxEvent.isAltDown(ba.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,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,ba){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)/
+!0,function(n,r,v,w,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(w.x+r*(J+c.shape.strokewidth*c.view.scale)+v*n/2,w.y+v*(J+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,w,J,y,ba){n=Math.sqrt(mxUtils.ptSegDistSq(w.x,w.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(w.x,w.y,w.x+v,w.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(ba.getEvent())||mxEvent.isControlDown(ba.getEvent()))c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE],c.style.endWidth=c.style.startWidth;mxEvent.isAltDown(ba.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,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,ba){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(ba.getEvent())||mxEvent.isControlDown(ba.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(ba.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,ba){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(ba.getEvent())||mxEvent.isControlDown(ba.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,w,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(w.x+r*(J+c.shape.strokewidth*
+c.view.scale)-v*n/2,w.y+v*(J+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,w,J,y,ba){n=Math.sqrt(mxUtils.ptSegDistSq(w.x,w.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(w.x,w.y,w.x+v,w.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(ba.getEvent())||mxEvent.isControlDown(ba.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(ba.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,w,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(w.x+r*(J+c.shape.strokewidth*
+c.view.scale)-v*n/2,w.y+v*(J+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,w,J,y,ba){n=Math.sqrt(mxUtils.ptSegDistSq(w.x,w.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(w.x,w.y,w.x+v,w.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(ba.getEvent())||mxEvent.isControlDown(ba.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE],
c.style.startWidth=c.style.endWidth;mxEvent.isAltDown(ba.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=[],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",la.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 w=[],J=0;J<v.length;J++)v[J]!=c.cell&&r.isSwimlane(v[J])&&r.getSwimlaneDirection(r.getCurrentCellStyle(v[J]))==
+n&&w.push(v[J]);r.setCellStyles(mxConstants.STYLE_STARTSIZE,c.style[mxConstants.STYLE_STARTSIZE],w)}}));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",oa.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(sa.prototype.corner,Math.min(l.width,mxUtils.getValue(this.state.style,"width",sa.prototype.width))),n=Math.max(1.5*sa.prototype.corner,Math.min(l.height,mxUtils.getValue(this.state.style,"height",sa.prototype.height)));return new mxPoint(l.x+t,l.y+n)},function(l,t){this.state.style.width=Math.round(Math.max(sa.prototype.corner,Math.min(l.width,t.x-l.x)));this.state.style.height=Math.round(Math.max(1.5*sa.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",M.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,
@@ -3484,27 +3505,27 @@ return l},dataStorage:function(c){return[Ta(c,["size"],function(l){var t="0"!=mx
Math.round(100*Math.max(0,Math.min(1,(n.x-t.x)/t.width)))/100},!1),Ta(c,["position2"],function(t){var n=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",aa.prototype.position2)));return new mxPoint(t.x+n*t.width,t.y+t.height)},function(t,n){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(n.x-t.x)/t.width)))/100},!1),Ta(c,["base"],function(t){var n=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"size",aa.prototype.size))),r=Math.max(0,Math.min(1,
mxUtils.getValue(this.state.style,"position",aa.prototype.position))),v=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"base",aa.prototype.base)));return new mxPoint(t.x+Math.min(t.width,r*t.width+v),t.y+t.height-n)},function(t,n){var r=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",aa.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(t.width,n.x-t.x-r*t.width)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(hb(c));
return l},internalStorage:function(c){var l=[Ta(c,["dx","dy"],function(t){var n=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"dx",cb.prototype.dx))),r=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"dy",cb.prototype.dy)));return new mxPoint(t.x+n,t.y+r)},function(t,n){this.state.style.dx=Math.round(Math.max(0,Math.min(t.width,n.x-t.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(t.height,n.y-t.y)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&
-l.push(hb(c));return l},module:function(c){return[Ta(c,["jettyWidth","jettyHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"jettyWidth",Ga.prototype.jettyWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"jettyHeight",Ga.prototype.jettyHeight)));return new mxPoint(l.x+t/2,l.y+2*n)},function(l,t){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(l.width,t.x-l.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(l.height,
+l.push(hb(c));return l},module:function(c){return[Ta(c,["jettyWidth","jettyHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"jettyWidth",Fa.prototype.jettyWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"jettyHeight",Fa.prototype.jettyHeight)));return new mxPoint(l.x+t/2,l.y+2*n)},function(l,t){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(l.width,t.x-l.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(l.height,
t.y-l.y))/2)})]},corner:function(c){return[Ta(c,["dx","dy"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"dx",fb.prototype.dx))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"dy",fb.prototype.dy)));return new mxPoint(l.x+t,l.y+n)},function(l,t){this.state.style.dx=Math.round(Math.max(0,Math.min(l.width,t.x-l.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},tee:function(c){return[Ta(c,["dx","dy"],function(l){var t=
Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"dx",gb.prototype.dx))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"dy",gb.prototype.dy)));return new mxPoint(l.x+(l.width+t)/2,l.y+n)},function(l,t){this.state.style.dx=Math.round(Math.max(0,2*Math.min(l.width/2,t.x-l.x-l.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},singleArrow:bb(1),doubleArrow:bb(.5),"mxgraph.arrows2.wedgeArrow":qb(20,20),"mxgraph.arrows2.wedgeArrowDashed":qb(20,
20),"mxgraph.arrows2.wedgeArrowDashed2":qb(20,20),folder:function(c){return[Ta(c,["tabWidth","tabHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"tabWidth",D.prototype.tabWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"tabHeight",D.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",D.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(t=l.width-t);return new mxPoint(l.x+t,l.y+n)},function(l,t){var n=Math.max(0,Math.min(l.width,
t.x-l.x));mxUtils.getValue(this.state.style,"tabPosition",D.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(n=l.width-n);this.state.style.tabWidth=Math.round(n);this.state.style.tabHeight=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},document:function(c){return[Ta(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",T.prototype.size))));return new mxPoint(l.x+3*l.width/4,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)]},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/
+Math.min(1,(l.y+l.height-t.y)/l.height))},!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",x.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(za.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,
+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(na.prototype.size,!0,.5,!0,na.prototype.fixedSize),curlyBracket:tb(Y.prototype.size,!1),display:tb(Ga.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,K.prototype.size,K.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,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,ba=$a.y,S=kb.x,Fa=kb.y,Ra="horizontal"==mxUtils.getValue(c.style,"elbow","horizontal");if(null!=x&&null!=J){c=function(ka,ra,pa){ka-=Oa.x;var na=ra-Oa.y;ra=(Fa*ka-S*na)/(y*Fa-ba*S);ka=(ba*ka-y*na)/(ba*S-y*Fa);Ra?(pa&&(Oa=new mxPoint(Oa.x+y*ra,Oa.y+ba*ra),r.push(Oa)),Oa=new mxPoint(Oa.x+S*ka,Oa.y+Fa*ka)):(pa&&(Oa=new mxPoint(Oa.x+S*ka,Oa.y+Fa*ka),r.push(Oa)),Oa=new mxPoint(Oa.x+y*ra,Oa.y+ba*ra));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=
+{};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 w=c.absolutePoints,J=w[0];w=w[w.length-1];null!=n&&(n=v.transformControlPoint(c,n));null==J&&null!=l&&(J=new mxPoint(l.getCenterX(),l.getCenterY()));null==w&&null!=t&&(w=new mxPoint(t.getCenterX(),
+t.getCenterY()));var y=$a.x,ba=$a.y,S=kb.x,Ea=kb.y,Ra="horizontal"==mxUtils.getValue(c.style,"elbow","horizontal");if(null!=w&&null!=J){c=function(ka,ra,pa){ka-=Oa.x;var ma=ra-Oa.y;ra=(Ea*ka-S*ma)/(y*Ea-ba*S);ka=(ba*ka-y*ma)/(ba*S-y*Ea);Ra?(pa&&(Oa=new mxPoint(Oa.x+y*ra,Oa.y+ba*ra),r.push(Oa)),Oa=new mxPoint(Oa.x+S*ka,Oa.y+Ea*ka)):(pa&&(Oa=new mxPoint(Oa.x+S*ka,Oa.y+Ea*ka),r.push(Oa)),Oa=new mxPoint(Oa.x+y*ra,Oa.y+ba*ra));r.push(Oa)};var Oa=J;null==n&&(n=new mxPoint(J.x+(w.x-J.x)/2,J.y+(w.y-J.y)/
+2));c(n.x,n.y,!0);c(w.x,w.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};x.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,0,n));return c};aa.prototype.getConstraints=function(c,l,t){c=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var n=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,"position",this.position));var r=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));
parseFloat(mxUtils.getValue(this.style,"base",this.base));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t-n)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,r,t));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)));l>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};mxRectangleShape.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,
0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),
-new mxConnectionConstraint(new mxPoint(1,1),!0)];mxEllipse.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,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))];wa.prototype.constraints=mxRectangleShape.prototype.constraints;
+new mxConnectionConstraint(new mxPoint(1,1),!0)];mxEllipse.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,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;qa.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};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,
@@ -3517,9 +3538,9 @@ function(c,l,t){c=[];var n=Math.max(0,Math.min(l,parseFloat(mxUtils.getValue(thi
0),!1,null,n,r)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),r))):(c.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-.5*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-n,r)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),r)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,r));c.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,l,.25*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.75*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.25*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,0,.75*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t));c.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return c};cb.prototype.constraints=mxRectangleShape.prototype.constraints;eb.prototype.constraints=mxRectangleShape.prototype.constraints;N.prototype.constraints=mxEllipse.prototype.constraints;R.prototype.constraints=mxEllipse.prototype.constraints;
-X.prototype.constraints=mxEllipse.prototype.constraints;Ma.prototype.constraints=mxEllipse.prototype.constraints;Ya.prototype.constraints=mxRectangleShape.prototype.constraints;Na.prototype.constraints=mxRectangleShape.prototype.constraints;za.prototype.getConstraints=function(c,l,t){c=[];var n=Math.min(l,t/2),r=Math.min(l-n,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*l);c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+l-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+l-n),t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));return c};Ga.prototype.getConstraints=function(c,l,t){l=parseFloat(mxUtils.getValue(c,
-"jettyWidth",Ga.prototype.jettyWidth))/2;c=parseFloat(mxUtils.getValue(c,"jettyHeight",Ga.prototype.jettyHeight));var n=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,l),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,
+X.prototype.constraints=mxEllipse.prototype.constraints;Ma.prototype.constraints=mxEllipse.prototype.constraints;Ya.prototype.constraints=mxRectangleShape.prototype.constraints;Na.prototype.constraints=mxRectangleShape.prototype.constraints;Ga.prototype.getConstraints=function(c,l,t){c=[];var n=Math.min(l,t/2),r=Math.min(l-n,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*l);c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+l-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+l-n),t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));return c};Fa.prototype.getConstraints=function(c,l,t){l=parseFloat(mxUtils.getValue(c,
+"jettyWidth",Fa.prototype.jettyWidth))/2;c=parseFloat(mxUtils.getValue(c,"jettyHeight",Fa.prototype.jettyHeight));var n=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,l),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,
.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!1,null,l),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(t-.5*c,1.5*c)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(t-.5*c,3.5*c))];t>5*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,l));t>8*c&&n.push(new mxConnectionConstraint(new mxPoint(0,
.5),!1,null,l));t>15*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,l));return n};B.prototype.constraints=mxRectangleShape.prototype.constraints;F.prototype.constraints=mxRectangleShape.prototype.constraints;mxCylinder.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.15,.05),!1),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.85,.05),!1),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,
.5),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.3),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.7),!0),new mxConnectionConstraint(new mxPoint(.15,.95),!1),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.85,.95),!1)];ca.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.1),!1),new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.75,
@@ -3542,44 +3563,44 @@ X.prototype.constraints=mxEllipse.prototype.constraints;Ma.prototype.constraints
function(c,l,t){c=[];var n=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),r=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));n=(t-n)/2;c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-r),n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,0));c.push(new mxConnectionConstraint(new mxPoint(1,
.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-r),t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));return c};ib.prototype.getConstraints=function(c,l,t){c=[];var n=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",ab.prototype.arrowWidth)))),r=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",ab.prototype.arrowSize))));n=(t-n)/2;c.push(new mxConnectionConstraint(new mxPoint(0,
.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*l,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*l,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));return c};ya.prototype.getConstraints=
-function(c,l,t){c=[];var n=Math.min(t,l),r=Math.max(0,Math.min(n,n*parseFloat(mxUtils.getValue(this.style,"size",this.size))));n=(t-r)/2;var v=n+r,x=(l-r)/2;r=x+r;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,0));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,r,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),n));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,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,n));return c};la.prototype.constraints=null;p.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,
-.9),!1)];A.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];Ca.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];Da.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
+function(c,l,t){c=[];var n=Math.min(t,l),r=Math.max(0,Math.min(n,n*parseFloat(mxUtils.getValue(this.style,"size",this.size))));n=(t-r)/2;var v=n+r,w=(l-r)/2;r=w+r;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,w,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,w,0));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,r,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,w,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,w,t));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),n));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,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,w,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*w,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*w,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,w,n));return c};oa.prototype.constraints=null;q.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,
+.9),!1)];A.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];Ba.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];Ca.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(a){this.editorUi=a;this.actions={};this.init()}
-Actions.prototype.init=function(){function a(k){d.escape();k=d.deleteCells(d.getDeletableCells(d.getSelectionCells()),k);null!=k&&d.setSelectionCells(k)}function b(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),u=0;u<k.length;u++)d.cellLabelChanged(k[u],"")}finally{d.getModel().endUpdate()}}}function e(k,u,w,z,C){C.getModel().beginUpdate();try{var E=C.getCellGeometry(k);null!=E&&w&&z&&(w/=z,E=E.clone(),1<w?E.height=E.width/w:E.width=E.height*w,C.getModel().setGeometry(k,
+Actions.prototype.init=function(){function a(k){d.escape();k=d.deleteCells(d.getDeletableCells(d.getSelectionCells()),k);null!=k&&d.setSelectionCells(k)}function b(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),u=0;u<k.length;u++)d.cellLabelChanged(k[u],"")}finally{d.getModel().endUpdate()}}}function e(k,u,x,z,C){C.getModel().beginUpdate();try{var E=C.getCellGeometry(k);null!=E&&x&&z&&(x/=z,E=E.clone(),1<x?E.height=E.width/x:E.width=E.height*x,C.getModel().setGeometry(k,
E));C.setCellStyles(mxConstants.STYLE_CLIP_PATH,u,[k]);C.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[k])}finally{C.getModel().endUpdate()}}var f=this.editorUi,h=f.editor,d=h.graph,g=function(){return Action.prototype.isEnabled.apply(this,arguments)&&d.isEnabled()};this.addAction("new...",function(){d.openLink(f.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";f.openFile()});this.put("smartFit",new Action(mxResources.get("fitWindow")+" / "+mxResources.get("resetView"),
-function(){d.popupMenuHandler.hideMenu();var k=d.view.scale,u=d.container.scrollLeft,w=d.container.scrollTop,z=d.view.translate.x,C=d.view.translate.y;f.actions.get("resetView").funct();1E-5>Math.abs(k-d.view.scale)&&5>Math.abs(u-d.container.scrollLeft)&&5>Math.abs(w-d.container.scrollTop)&&z==d.view.translate.x&&C==d.view.translate.y&&f.actions.get("fitWindow").funct()},null,null,"Enter"));this.addAction("keyPressEnter",function(){d.isSelectionEmpty()?f.actions.get("smartFit").funct():d.isEnabled()&&
-d.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){f.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(k,u){try{var w=mxUtils.parseXml(k);h.graph.setSelectionCells(h.graph.importGraphModel(w.documentElement))}catch(z){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+z.message)}}));f.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=
+function(){d.popupMenuHandler.hideMenu();var k=d.view.scale,u=d.container.scrollLeft,x=d.container.scrollTop,z=d.view.translate.x,C=d.view.translate.y;f.actions.get("resetView").funct();1E-5>Math.abs(k-d.view.scale)&&5>Math.abs(u-d.container.scrollLeft)&&5>Math.abs(x-d.container.scrollTop)&&z==d.view.translate.x&&C==d.view.translate.y&&f.actions.get("fitWindow").funct()},null,null,"Enter"));this.addAction("keyPressEnter",function(){d.isSelectionEmpty()?f.actions.get("smartFit").funct():d.isEnabled()&&
+d.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){f.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(k,u){try{var x=mxUtils.parseXml(k);h.graph.setSelectionCells(h.graph.importGraphModel(x.documentElement))}catch(z){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+z.message)}}));f.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=
null})}).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,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=
-d.getModel();if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=f.copiedValue){z.beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());if(0==C.length)w(z.getRoot(),f.copiedValue);else for(u=0;u<C.length;u++)w(C[u],f.copiedValue)}finally{z.endUpdate()}}},null,null,"Alt+Shift+E");this.addAction("delete",function(k,u){k=null!=u?u:k;null!=k&&mxEvent.isShiftDown(k)?b():a(null!=k&&(mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)||mxEvent.isAltDown(k)))},null,null,"Delete");this.addAction("deleteAll",
+E-I)),d.cellsMoved(z,C-D.x,E-D.y))}}function x(){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 x()}),k=!0)}catch(z){}k||x()}});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 x=d.getCellGeometry(k[u]);
+null!=x&&(x=x.clone(),x.width=f.copiedSize.width,x.height=f.copiedSize.height,d.getModel().setGeometry(k[u],x))}}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 x(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=
+d.getModel();if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=f.copiedValue){z.beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());if(0==C.length)x(z.getRoot(),f.copiedValue);else for(u=0;u<C.length;u++)x(C[u],f.copiedValue)}finally{z.endUpdate()}}},null,null,"Alt+Shift+E");this.addAction("delete",function(k,u){k=null!=u?u:k;null!=k&&mxEvent.isShiftDown(k)?b():a(null!=k&&(mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)||mxEvent.isAltDown(k)))},null,null,"Delete");this.addAction("deleteAll",
function(){a(!0)});this.addAction("deleteLabels",function(){b()},null,null,Editor.ctrlKey+"+Delete");this.addAction("duplicate",function(){try{d.setSelectionCells(d.duplicateCells()),d.scrollCellToVisible(d.getSelectionCell())}catch(k){f.handleError(k)}},null,null,Editor.ctrlKey+"+D");this.put("mergeCells",new Action(mxResources.get("merge"),function(){var k=f.getSelectionState();if(null!=k.mergeCell){d.getModel().beginUpdate();try{d.setCellStyles("rowspan",k.rowspan,[k.mergeCell]),d.setCellStyles("colspan",
k.colspan,[k.mergeCell])}finally{d.getModel().endUpdate()}}}));this.put("unmergeCells",new Action(mxResources.get("unmerge"),function(){var k=f.getSelectionState();if(0<k.cells.length){d.getModel().beginUpdate();try{d.setCellStyles("rowspan",null,k.cells),d.setCellStyles("colspan",null,k.cells)}finally{d.getModel().endUpdate()}}}));this.put("turn",new Action(mxResources.get("turn")+" / "+mxResources.get("reverse"),function(k,u){k=null!=u?u:k;d.turnShapes(d.getResizableCells(d.getSelectionCells()),
null!=k?mxEvent.isShiftDown(k):!1)},null,null,mxClient.IS_SF?null:Editor.ctrlKey+"+R"));this.put("selectConnections",new Action(mxResources.get("selectEdges"),function(k){k=d.getSelectionCell();d.isEnabled()&&null!=k&&d.addSelectionCells(d.getEdges(k))}));this.addAction("selectVertices",function(){d.selectVertices(null,!0)},null,null,Editor.ctrlKey+"+Shift+I");this.addAction("selectEdges",function(){d.selectEdges()},null,null,Editor.ctrlKey+"+Shift+E");this.addAction("selectAll",function(){d.selectAll(null,
-!0)},null,null,Editor.ctrlKey+"+A");this.addAction("selectNone",function(){d.clearSelection()},null,null,Editor.ctrlKey+"+Shift+A");this.addAction("lockUnlock",function(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),u=d.getCurrentCellStyle(d.getSelectionCell()),w=1==mxUtils.getValue(u,mxConstants.STYLE_EDITABLE,1)?0:1;d.setCellStyles(mxConstants.STYLE_MOVABLE,w,k);d.setCellStyles(mxConstants.STYLE_RESIZABLE,w,k);d.setCellStyles(mxConstants.STYLE_ROTATABLE,w,
-k);d.setCellStyles(mxConstants.STYLE_DELETABLE,w,k);d.setCellStyles(mxConstants.STYLE_EDITABLE,w,k);d.setCellStyles("locked",1==w?0:1,k);d.setCellStyles("connectable",w,k)}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+L");this.addAction("explore",function(){d.model.isVertex(d.getSelectionCell())&&Graph.exploreFromCell(f.editor.graph,f.editor.graph.getSelectionCell())});this.addAction("home",function(){d.home()},null,null,"Shift+Home");this.addAction("exitGroup",function(){d.exitGroup()},
+!0)},null,null,Editor.ctrlKey+"+A");this.addAction("selectNone",function(){d.clearSelection()},null,null,Editor.ctrlKey+"+Shift+A");this.addAction("lockUnlock",function(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),u=d.getCurrentCellStyle(d.getSelectionCell()),x=1==mxUtils.getValue(u,mxConstants.STYLE_EDITABLE,1)?0:1;d.setCellStyles(mxConstants.STYLE_MOVABLE,x,k);d.setCellStyles(mxConstants.STYLE_RESIZABLE,x,k);d.setCellStyles(mxConstants.STYLE_ROTATABLE,x,
+k);d.setCellStyles(mxConstants.STYLE_DELETABLE,x,k);d.setCellStyles(mxConstants.STYLE_EDITABLE,x,k);d.setCellStyles("locked",1==x?0:1,k);d.setCellStyles("connectable",x,k)}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+L");this.addAction("explore",function(){d.model.isVertex(d.getSelectionCell())&&Graph.exploreFromCell(f.editor.graph,f.editor.graph.getSelectionCell())});this.addAction("home",function(){d.home()},null,null,"Shift+Home");this.addAction("exitGroup",function(){d.exitGroup()},
null,null,Editor.ctrlKey+"+Shift+Home");this.addAction("enterGroup",function(){d.enterGroup()},null,null,Editor.ctrlKey+"+Shift+End");this.addAction("collapse",function(){d.foldCells(!0)},null,null,Editor.ctrlKey+"+Home");this.addAction("expand",function(){d.foldCells(!1)},null,null,Editor.ctrlKey+"+End");this.addAction("toFront",function(){d.orderCells(!1)},null,null,Editor.ctrlKey+"+Shift+F");this.addAction("toBack",function(){d.orderCells(!0)},null,null,Editor.ctrlKey+"+Shift+B");this.addAction("bringForward",
function(k){d.orderCells(!1,null,!0)},null,null,Editor.ctrlKey+"+Alt+Shift+F");this.addAction("sendBackward",function(k){d.orderCells(!0,null,!0)},null,null,Editor.ctrlKey+"+Alt+Shift+B");this.addAction("group",function(){if(d.isEnabled()){var k=mxUtils.sortCells(d.getSelectionCells(),!0);1!=k.length||d.isTable(k[0])||d.isTableRow(k[0])?(k=d.getCellsForGroup(k),1<k.length&&d.setSelectionCell(d.groupCells(null,0,k))):d.setCellStyles("container","1")}},null,null,Editor.ctrlKey+"+G");this.addAction("ungroup",
-function(){if(d.isEnabled()){var k=d.getEditableCells(d.getSelectionCells());d.model.beginUpdate();try{var u=d.ungroupCells();if(null!=k)for(var w=0;w<k.length;w++)d.model.contains(k[w])&&(0==d.model.getChildCount(k[w])&&d.model.isVertex(k[w])&&d.setCellStyles("container","0",[k[w]]),u.push(k[w]))}finally{d.model.endUpdate()}0<u.length&&d.setSelectionCells(u)}},null,null,Editor.ctrlKey+"+Shift+U");this.addAction("removeFromGroup",function(){if(d.isEnabled()){var k=d.getSelectionCells();if(null!=k){for(var u=
-[],w=0;w<k.length;w++)d.isTableRow(k[w])||d.isTableCell(k[w])||u.push(k[w]);d.removeCellsFromParent(u);0<u.length&&d.scrollCellToVisible(u[0])}}});this.addAction("edit",function(){d.isEnabled()&&d.startEditingAtCell()},null,null,"F2/Enter");this.addAction("editData...",function(){var k=d.getSelectionCell()||d.getModel().getRoot();f.showDataDialog(k)},null,null,Editor.ctrlKey+"+M");this.addAction("editTooltip...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var u=
-"";if(mxUtils.isNode(k.value)){var w=null;Graph.translateDiagram&&null!=Graph.diagramLanguage&&k.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(w=k.value.getAttribute("tooltip_"+Graph.diagramLanguage));null==w&&(w=k.value.getAttribute("tooltip"));null!=w&&(u=w)}u=new TextareaDialog(f,mxResources.get("editTooltip")+":",u,function(z){d.setTooltipForCell(k,z)});f.showDialog(u.container,320,200,!0,!0);u.init()}},null,null,"Alt+Shift+T");this.addAction("openLink",function(){var k=d.getLinkForCell(d.getSelectionCell());
-null!=k&&d.openLink(k)});this.addAction("editLink...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var u=d.getLinkForCell(k,!0)||"";f.showLinkDialog(u,mxResources.get("ok"),function(w,z,C){d.getModel().beginUpdate();try{d.setLinkForCell(k,0<w.length?w:null),d.setAttributeForCell(k,"linkTarget",C)}finally{d.getModel().endUpdate()}},!0,d.getLinkTargetForCell(k))}},null,null,"Alt+Shift+L");this.put("insertImage",new Action(mxResources.get("image")+"...",function(){d.isEnabled()&&
-!d.isCellLocked(d.getDefaultParent())&&(d.clearSelection(),f.actions.get("image").funct())})).isEnabled=g;this.addAction("editImage...",function(){f.actions.get("image").funct()});this.put("insertLink",new Action(mxResources.get("link")+"...",function(){d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&f.showLinkDialog("",mxResources.get("ok"),function(k,u,w){k=mxUtils.trim(k);if(0<k.length){var z=null,C=d.getLinkTitle(k);null!=u&&0<u.length&&(z=u[0].iconUrl,C=u[0].name||u[0].type,C=C.charAt(0).toUpperCase()+
-C.substring(1),30<C.length&&(C=C.substring(0,30)+"..."));u=new mxCell(C,new mxGeometry(0,0,100,40),"fontColor=#0000EE;fontStyle=4;rounded=1;overflow=hidden;"+(null!=z?"shape=label;imageWidth=16;imageHeight=16;spacingLeft=26;align=left;image="+z:"spacing=10;"));u.vertex=!0;z=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry([u],!0));u.geometry.x=z.x;u.geometry.y=z.y;d.setAttributeForCell(u,"linkTarget",w);d.setLinkForCell(u,k);d.cellSizeUpdated(u,!0);d.getModel().beginUpdate();try{u=d.addCell(u),
-d.fireEvent(new mxEventObject("cellsInserted","cells",[u]))}finally{d.getModel().endUpdate()}d.setSelectionCell(u);d.scrollCellToVisible(d.getSelectionCell())}},!0)},null,null,"L")).isEnabled=g;this.addAction("link...",mxUtils.bind(this,function(){if(d.isEnabled())if(d.cellEditor.isContentEditing()){var k=d.getSelectedElement(),u=d.getParentByName(k,"A",d.cellEditor.textarea),w="";if(null==u&&null!=k&&null!=k.getElementsByTagName)for(var z=k.getElementsByTagName("a"),C=0;C<z.length&&null==u;C++)z[C].textContent==
-k.textContent&&(u=z[C]);null!=u&&"A"==u.nodeName&&(w=u.getAttribute("href")||"",d.selectNode(u));var E=d.cellEditor.saveSelection();f.showLinkDialog(w,mxResources.get("ok"),mxUtils.bind(this,function(D){d.cellEditor.restoreSelection(E);null!=D&&d.insertLink(D)}))}else d.isSelectionEmpty()?this.get("insertLink").funct():this.get("editLink").funct()})).isEnabled=g;this.addAction("autosize",function(){var k=d.getSelectionCells();if(null!=k){d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var w=
-k[u];d.getModel().isVertex(w)&&(0<d.getModel().getChildCount(w)?d.updateGroupBounds([w],0,!0):d.updateCellSize(w))}}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+Shift+Y");this.addAction("snapToGrid",function(){d.snapCellsToGrid(d.getSelectionCells(),d.gridSize)});this.addAction("formattedText",function(){d.stopEditing();var k=d.getCommonStyle(d.getSelectionCells());k="1"==mxUtils.getValue(k,"html","0")?null:"1";d.getModel().beginUpdate();try{for(var u=d.getEditableCells(d.getSelectionCells()),
-w=0;w<u.length;w++)if(state=d.getView().getState(u[w]),null!=state){var z=mxUtils.getValue(state.style,"html","0");if("1"==z&&null==k)d.removeTextStyleForCell(state.cell),d.setCellStyles("html",k,[u[w]]);else if("0"==z&&"1"==k){var C=mxUtils.htmlEntities(d.convertValueToString(state.cell),!1);"0"!=mxUtils.getValue(state.style,"nl2Br","1")&&(C=C.replace(/\n/g,"<br/>"));d.cellLabelChanged(state.cell,Graph.sanitizeHtml(C));d.setCellStyles("html",k,[u[w]])}}f.fireEvent(new mxEventObject("styleChanged",
+function(){if(d.isEnabled()){var k=d.getEditableCells(d.getSelectionCells());d.model.beginUpdate();try{var u=d.ungroupCells();if(null!=k)for(var x=0;x<k.length;x++)d.model.contains(k[x])&&(0==d.model.getChildCount(k[x])&&d.model.isVertex(k[x])&&d.setCellStyles("container","0",[k[x]]),u.push(k[x]))}finally{d.model.endUpdate()}0<u.length&&d.setSelectionCells(u)}},null,null,Editor.ctrlKey+"+Shift+U");this.addAction("removeFromGroup",function(){if(d.isEnabled()){var k=d.getSelectionCells();if(null!=k){for(var u=
+[],x=0;x<k.length;x++)d.isTableRow(k[x])||d.isTableCell(k[x])||u.push(k[x]);d.removeCellsFromParent(u);0<u.length&&d.scrollCellToVisible(u[0])}}});this.addAction("edit",function(){d.isEnabled()&&d.startEditingAtCell()},null,null,"F2/Enter");this.addAction("editData...",function(){var k=d.getSelectionCell()||d.getModel().getRoot();f.showDataDialog(k)},null,null,Editor.ctrlKey+"+M");this.addAction("editTooltip...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var u=
+"";if(mxUtils.isNode(k.value)){var x=null;Graph.translateDiagram&&null!=Graph.diagramLanguage&&k.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(x=k.value.getAttribute("tooltip_"+Graph.diagramLanguage));null==x&&(x=k.value.getAttribute("tooltip"));null!=x&&(u=x)}u=new TextareaDialog(f,mxResources.get("editTooltip")+":",u,function(z){d.setTooltipForCell(k,z)});f.showDialog(u.container,320,200,!0,!0);u.init()}},null,null,"Alt+Shift+T");this.addAction("openLink",function(){var k=d.getLinkForCell(d.getSelectionCell());
+null!=k&&d.openLink(k)});this.addAction("editLink...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var u=d.getLinkForCell(k,!0)||"";f.showLinkDialog(u,mxResources.get("ok"),function(x,z,C){d.getModel().beginUpdate();try{d.setLinkForCell(k,0<x.length?x:null),d.setAttributeForCell(k,"linkTarget",C)}finally{d.getModel().endUpdate()}},!0,d.getLinkTargetForCell(k))}},null,null,"Alt+Shift+L");this.put("insertImage",new Action(mxResources.get("image")+"...",function(){d.isEnabled()&&
+!d.isCellLocked(d.getDefaultParent())&&(d.clearSelection(),f.actions.get("image").funct())})).isEnabled=g;this.addAction("editImage...",function(){f.actions.get("image").funct()});this.put("insertLink",new Action(mxResources.get("link")+"...",function(){d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&f.showLinkDialog("",mxResources.get("ok"),function(k,u,x){k=mxUtils.trim(k);if(0<k.length){var z=null,C=d.getLinkTitle(k);null!=u&&0<u.length&&(z=u[0].iconUrl,C=u[0].name||u[0].type,C=C.charAt(0).toUpperCase()+
+C.substring(1),30<C.length&&(C=C.substring(0,30)+"..."));u=new mxCell(C,new mxGeometry(0,0,100,40),"fontColor=#0000EE;fontStyle=4;rounded=1;overflow=hidden;"+(null!=z?"shape=label;imageWidth=16;imageHeight=16;spacingLeft=26;align=left;image="+z:"spacing=10;"));u.vertex=!0;z=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry([u],!0));u.geometry.x=z.x;u.geometry.y=z.y;d.setAttributeForCell(u,"linkTarget",x);d.setLinkForCell(u,k);d.cellSizeUpdated(u,!0);d.getModel().beginUpdate();try{u=d.addCell(u),
+d.fireEvent(new mxEventObject("cellsInserted","cells",[u]))}finally{d.getModel().endUpdate()}d.setSelectionCell(u);d.scrollCellToVisible(d.getSelectionCell())}},!0)},null,null,"L")).isEnabled=g;this.addAction("link...",mxUtils.bind(this,function(){if(d.isEnabled())if(d.cellEditor.isContentEditing()){var k=d.getSelectedElement(),u=d.getParentByName(k,"A",d.cellEditor.textarea),x="";if(null==u&&null!=k&&null!=k.getElementsByTagName)for(var z=k.getElementsByTagName("a"),C=0;C<z.length&&null==u;C++)z[C].textContent==
+k.textContent&&(u=z[C]);null!=u&&"A"==u.nodeName&&(x=u.getAttribute("href")||"",d.selectNode(u));var E=d.cellEditor.saveSelection();f.showLinkDialog(x,mxResources.get("ok"),mxUtils.bind(this,function(D){d.cellEditor.restoreSelection(E);null!=D&&d.insertLink(D)}))}else d.isSelectionEmpty()?this.get("insertLink").funct():this.get("editLink").funct()})).isEnabled=g;this.addAction("autosize",function(){var k=d.getSelectionCells();if(null!=k){d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var x=
+k[u];d.getModel().isVertex(x)&&(0<d.getModel().getChildCount(x)?d.updateGroupBounds([x],0,!0):d.updateCellSize(x))}}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+Shift+Y");this.addAction("snapToGrid",function(){d.snapCellsToGrid(d.getSelectionCells(),d.gridSize)});this.addAction("formattedText",function(){d.stopEditing();var k=d.getCommonStyle(d.getSelectionCells());k="1"==mxUtils.getValue(k,"html","0")?null:"1";d.getModel().beginUpdate();try{for(var u=d.getEditableCells(d.getSelectionCells()),
+x=0;x<u.length;x++)if(state=d.getView().getState(u[x]),null!=state){var z=mxUtils.getValue(state.style,"html","0");if("1"==z&&null==k)d.removeTextStyleForCell(state.cell),d.setCellStyles("html",k,[u[x]]);else if("0"==z&&"1"==k){var C=mxUtils.htmlEntities(d.convertValueToString(state.cell),!1);"0"!=mxUtils.getValue(state.style,"nl2Br","1")&&(C=C.replace(/\n/g,"<br/>"));d.cellLabelChanged(state.cell,Graph.sanitizeHtml(C));d.setCellStyles("html",k,[u[x]])}}f.fireEvent(new mxEventObject("styleChanged",
"keys",["html"],"values",[null!=k?k:"0"],"cells",u))}finally{d.getModel().endUpdate()}});this.addAction("wordWrap",function(){var k=d.getView().getState(d.getSelectionCell()),u="wrap";d.stopEditing();null!=k&&"wrap"==k.style[mxConstants.STYLE_WHITE_SPACE]&&(u=null);d.setCellStyles(mxConstants.STYLE_WHITE_SPACE,u)});this.addAction("rotation",function(){var k="0",u=d.getView().getState(d.getSelectionCell());null!=u&&(k=u.style[mxConstants.STYLE_ROTATION]||k);k=new FilenameDialog(f,k,mxResources.get("apply"),
-function(w){null!=w&&0<w.length&&d.setCellStyles(mxConstants.STYLE_ROTATION,w)},mxResources.get("enterValue")+" ("+mxResources.get("rotation")+" 0-360)");f.showDialog(k.container,375,80,!0,!0);k.init()});this.addAction("resetView",function(){d.zoomTo(1);f.resetScrollbars()},null,null,"Enter/Home");this.addAction("zoomIn",function(k){d.isFastZoomEnabled()?d.lazyZoom(!0,!0,f.buttonZoomDelay):d.zoomIn()},null,null,Editor.ctrlKey+" + / Alt+Mousewheel");this.addAction("zoomOut",function(k){d.isFastZoomEnabled()?
+function(x){null!=x&&0<x.length&&d.setCellStyles(mxConstants.STYLE_ROTATION,x)},mxResources.get("enterValue")+" ("+mxResources.get("rotation")+" 0-360)");f.showDialog(k.container,375,80,!0,!0);k.init()});this.addAction("resetView",function(){d.zoomTo(1);f.resetScrollbars()},null,null,"Enter/Home");this.addAction("zoomIn",function(k){d.isFastZoomEnabled()?d.lazyZoom(!0,!0,f.buttonZoomDelay):d.zoomIn()},null,null,Editor.ctrlKey+" + / Alt+Mousewheel");this.addAction("zoomOut",function(k){d.isFastZoomEnabled()?
d.lazyZoom(!1,!0,f.buttonZoomDelay):d.zoomOut()},null,null,Editor.ctrlKey+" - / Alt+Mousewheel");this.addAction("fitWindow",function(){d.pageVisible&&d.isSelectionEmpty()?d.fitPages():f.fitDiagramToWindow()},null,null,Editor.ctrlKey+"+Shift+H");this.addAction("fitPage",mxUtils.bind(this,function(){d.pageVisible?d.fitPages(1):this.get("pageView").funct()}),null,null,Editor.ctrlKey+"+J");this.addAction("fitTwoPages",mxUtils.bind(this,function(){d.pageVisible?d.fitPages(2):this.get("pageView").funct()}),
null,null,Editor.ctrlKey+"+Shift+J");this.addAction("fitPageWidth",mxUtils.bind(this,function(){d.pageVisible?d.fitPages(1,!0):this.get("pageView").funct()}));this.put("customZoom",new Action(mxResources.get("custom")+"...",mxUtils.bind(this,function(){var k=new FilenameDialog(this.editorUi,parseInt(100*d.getView().getScale()),mxResources.get("apply"),mxUtils.bind(this,function(u){u=parseInt(u);!isNaN(u)&&0<u&&d.zoomTo(u/100)}),mxResources.get("zoom")+" (%)");this.editorUi.showDialog(k.container,
300,80,!0,!0);k.init()}),null,null,Editor.ctrlKey+"+0"));this.addAction("pageScale...",mxUtils.bind(this,function(){var k=new FilenameDialog(this.editorUi,parseInt(100*d.pageScale),mxResources.get("apply"),mxUtils.bind(this,function(u){u=parseInt(u);!isNaN(u)&&0<u&&(u=new ChangePageSetup(f,null,null,null,u/100),u.ignoreColor=!0,u.ignoreImage=!0,d.model.execute(u))}),mxResources.get("pageScale")+" (%)");this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}));var m=null;m=this.addAction("grid",
@@ -3588,7 +3609,7 @@ m.setEnabled(!1);m=this.addAction("animations",function(){Editor.enableAnimation
m=this.addAction("collapseExpand",function(){var k=new ChangePageSetup(f);k.ignoreColor=!0;k.ignoreImage=!0;k.foldingEnabled=!d.foldingEnabled;d.model.execute(k)});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.foldingEnabled});m.isEnabled=g;m=this.addAction("pageView",mxUtils.bind(this,function(){f.setPageVisible(!d.pageVisible)}));m.setToggleAction(!0);m.setSelectedCallback(function(){return d.pageVisible});m=this.addAction("connectionArrows",function(){d.connectionArrowsEnabled=
!d.connectionArrowsEnabled;f.fireEvent(new mxEventObject("connectionArrowsChanged"))},null,null,"Alt+Shift+A");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionArrowsEnabled});m=this.addAction("connectionPoints",function(){d.setConnectable(!d.connectionHandler.isEnabled());f.fireEvent(new mxEventObject("connectionPointsChanged"))},null,null,"Alt+Shift+O");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionHandler.isEnabled()});m=this.addAction("copyConnect",
function(){d.connectionHandler.setCreateTarget(!d.connectionHandler.isCreateTarget());f.fireEvent(new mxEventObject("copyConnectChanged"))});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionHandler.isCreateTarget()});m.isEnabled=g;m=this.addAction("autosave",function(){f.editor.setAutosave(!f.editor.autosave)});m.setToggleAction(!0);m.setSelectedCallback(function(){return f.editor.autosave});m.isEnabled=g;m.visible=!1;this.addAction("help",function(){var k="";mxResources.isLanguageSupported(mxClient.language)&&
-(k="_"+mxClient.language);d.openLink(RESOURCES_PATH+"/help"+k+".html")});var q=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){q||(f.showDialog((new AboutDialog(f)).container,320,280,!0,!0,function(){q=!1}),q=!0)}));m=mxUtils.bind(this,function(k,u,w,z){return this.addAction(k,function(){if(null!=w&&d.cellEditor.isContentEditing())w();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
+(k="_"+mxClient.language);d.openLink(RESOURCES_PATH+"/help"+k+".html")});var p=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){p||(f.showDialog((new AboutDialog(f)).container,320,280,!0,!0,function(){p=!1}),p=!0)}));m=mxUtils.bind(this,function(k,u,x,z){return this.addAction(k,function(){if(null!=x&&d.cellEditor.isContentEditing())x();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
u,C);(u&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?d.updateLabelElements(C,function(D){D.style.fontWeight=null;"B"==D.nodeName&&d.replaceElement(D)}):(u&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?d.updateLabelElements(C,function(D){D.style.fontStyle=null;"I"==D.nodeName&&d.replaceElement(D)}):(u&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&d.updateLabelElements(C,function(D){D.style.textDecoration=null;"U"==D.nodeName&&d.replaceElement(D)});for(var E=0;E<C.length;E++)0==d.model.getChildCount(C[E])&&
d.autoSizeCell(C[E],!1)}finally{d.getModel().endUpdate()}}},null,null,z)});m("bold",mxConstants.FONT_BOLD,function(){document.execCommand("bold",!1,null)},Editor.ctrlKey+"+B");m("italic",mxConstants.FONT_ITALIC,function(){document.execCommand("italic",!1,null)},Editor.ctrlKey+"+I");m("underline",mxConstants.FONT_UNDERLINE,function(){document.execCommand("underline",!1,null)},Editor.ctrlKey+"+U");this.addAction("fontColor...",function(){f.menus.pickColor(mxConstants.STYLE_FONTCOLOR,"forecolor","000000",
"default",d.shapeForegroundColor)});this.addAction("strokeColor...",function(){f.menus.pickColor(mxConstants.STYLE_STROKECOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("fillColor...",function(){f.menus.pickColor(mxConstants.STYLE_FILLCOLOR,null,null,"default",d.shapeBackgroundColor)});this.addAction("gradientColor...",function(){f.menus.pickColor(mxConstants.STYLE_GRADIENTCOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("backgroundColor...",function(){f.menus.pickColor(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,
@@ -3597,79 +3618,79 @@ d.autoSizeCell(C[E],!1)}finally{d.getModel().endUpdate()}}},null,null,z)});m("bo
try{d.setCellStyles(mxConstants.STYLE_DASHED,"1"),d.setCellStyles(mxConstants.STYLE_DASH_PATTERN,null),f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],"values",["1",null],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("dotted",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_DASHED,"1"),d.setCellStyles(mxConstants.STYLE_DASH_PATTERN,"1 4"),f.fireEvent(new mxEventObject("styleChanged",
"keys",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],"values",["1","1 4"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("sharp",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"0"),d.setCellStyles(mxConstants.STYLE_CURVED,"0"),f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["0","0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});
this.addAction("rounded",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"1"),d.setCellStyles(mxConstants.STYLE_CURVED,"0"),f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["1","0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("toggleRounded",function(){if(!d.isSelectionEmpty()&&d.isEnabled()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),u=d.getCurrentCellStyle(k[0]),
-w="1"==mxUtils.getValue(u,mxConstants.STYLE_ROUNDED,"0")?"0":"1";d.setCellStyles(mxConstants.STYLE_ROUNDED,w);d.setCellStyles(mxConstants.STYLE_CURVED,null);f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",[w,"0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}}});this.addAction("curved",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"0"),d.setCellStyles(mxConstants.STYLE_CURVED,
+x="1"==mxUtils.getValue(u,mxConstants.STYLE_ROUNDED,"0")?"0":"1";d.setCellStyles(mxConstants.STYLE_ROUNDED,x);d.setCellStyles(mxConstants.STYLE_CURVED,null);f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",[x,"0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}}});this.addAction("curved",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"0"),d.setCellStyles(mxConstants.STYLE_CURVED,
"1"),f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["0","1"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("collapsible",function(){var k=d.view.getState(d.getSelectionCell()),u="1";null!=k&&null!=d.getFoldingImage(k)&&(u="0");d.setCellStyles("collapsible",u);f.fireEvent(new mxEventObject("styleChanged","keys",["collapsible"],"values",[u],"cells",d.getSelectionCells()))});this.addAction("editStyle...",
-mxUtils.bind(this,function(){var k=d.getEditableCells(d.getSelectionCells());if(null!=k&&0<k.length){var u=d.getModel();u=new TextareaDialog(this.editorUi,mxResources.get("editStyle")+":",u.getStyle(k[0])||"",function(w){null!=w&&d.setCellStyle(mxUtils.trim(w),k)},null,null,400,220);this.editorUi.showDialog(u.container,420,300,!0,!0);u.init()}}),null,null,Editor.ctrlKey+"+E");this.addAction("setAsDefaultStyle",function(){d.isEnabled()&&!d.isSelectionEmpty()&&f.setDefaultStyle(d.getSelectionCell())},
-null,null,Editor.ctrlKey+"+Shift+D");this.addAction("clearDefaultStyle",function(){d.isEnabled()&&f.clearDefaultStyle()},null,null,Editor.ctrlKey+"+Shift+R");this.addAction("addWaypoint",function(){var k=d.getSelectionCell();if(null!=k&&d.getModel().isEdge(k)){var u=h.graph.selectionCellsHandler.getHandler(k);if(u instanceof mxEdgeHandler){var w=d.view.translate,z=d.view.scale,C=w.x;w=w.y;k=d.getModel().getParent(k);for(var E=d.getCellGeometry(k);d.getModel().isVertex(k)&&null!=E;)C+=E.x,w+=E.y,k=
-d.getModel().getParent(k),E=d.getCellGeometry(k);C=Math.round(d.snap(d.popupMenuHandler.triggerX/z-C));z=Math.round(d.snap(d.popupMenuHandler.triggerY/z-w));u.addPointAt(u.state,C,z)}}});this.addAction("removeWaypoint",function(){var k=f.actions.get("removeWaypoint");null!=k.handler&&k.handler.removePoint(k.handler.state,k.index)});this.addAction("clearAnchors",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var w=
-k[u];d.getModel().isEdge(w)&&(d.setCellStyles(mxConstants.STYLE_EXIT_X,null,[w]),d.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[w]),d.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[w]),d.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[w]))}}finally{d.getModel().endUpdate()}}});this.addAction("clearWaypoints",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var w=k[u];if(d.getModel().isEdge(w)){var z=d.getCellGeometry(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(){var k=d.getEditableCells(d.getSelectionCells());if(null!=k&&0<k.length){var u=d.getModel();u=new TextareaDialog(this.editorUi,mxResources.get("editStyle")+":",u.getStyle(k[0])||"",function(x){null!=x&&d.setCellStyle(mxUtils.trim(x),k)},null,null,400,220);this.editorUi.showDialog(u.container,420,300,!0,!0);u.init()}}),null,null,Editor.ctrlKey+"+E");this.addAction("setAsDefaultStyle",function(){d.isEnabled()&&!d.isSelectionEmpty()&&f.setDefaultStyle(d.getSelectionCell())},
+null,null,Editor.ctrlKey+"+Shift+D");this.addAction("clearDefaultStyle",function(){d.isEnabled()&&f.clearDefaultStyle()},null,null,Editor.ctrlKey+"+Shift+R");this.addAction("addWaypoint",function(){var k=d.getSelectionCell();if(null!=k&&d.getModel().isEdge(k)){var u=h.graph.selectionCellsHandler.getHandler(k);if(u instanceof mxEdgeHandler){var x=d.view.translate,z=d.view.scale,C=x.x;x=x.y;k=d.getModel().getParent(k);for(var E=d.getCellGeometry(k);d.getModel().isVertex(k)&&null!=E;)C+=E.x,x+=E.y,k=
+d.getModel().getParent(k),E=d.getCellGeometry(k);C=Math.round(d.snap(d.popupMenuHandler.triggerX/z-C));z=Math.round(d.snap(d.popupMenuHandler.triggerY/z-x));u.addPointAt(u.state,C,z)}}});this.addAction("removeWaypoint",function(){var k=f.actions.get("removeWaypoint");null!=k.handler&&k.handler.removePoint(k.handler.state,k.index)});this.addAction("clearAnchors",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var x=
+k[u];d.getModel().isEdge(x)&&(d.setCellStyles(mxConstants.STYLE_EXIT_X,null,[x]),d.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[x]),d.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[x]),d.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[x]))}}finally{d.getModel().endUpdate()}}});this.addAction("clearWaypoints",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var x=k[u];if(d.getModel().isEdge(x)){var z=d.getCellGeometry(x);
+null!=z&&(z=z.clone(),z.points=null,z.x=0,z.y=0,z.offset=null,d.getModel().setGeometry(x,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,I,L,T){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(E,D,G);else{var K=d.getSelectionCells();if(null!=E&&(0<E.length||0<K.length)){var U=null;d.getModel().beginUpdate();try{if(0==K.length){K=[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(K,!0));K[0].geometry.x=Y.x;K[0].geometry.y=
+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()),x="",z=null;null!=u&&(x=u.style[mxConstants.STYLE_IMAGE]||x,z=u.style[mxConstants.STYLE_CLIP_PATH]||z);var C=d.cellEditor.saveSelection();
+f.showImageDialog(k,x,function(E,D,G,I,L,T){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(E,D,G);else{var K=d.getSelectionCells();if(null!=E&&(0<E.length||0<K.length)){var U=null;d.getModel().beginUpdate();try{if(0==K.length){K=[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(K,!0));K[0].geometry.x=Y.x;K[0].geometry.y=
Y.y;null!=I&&e(K[0],I,L,T,d);U=K;d.fireEvent(new mxEventObject("cellsInserted","cells",U))}d.setCellStyles(mxConstants.STYLE_IMAGE,0<E.length?E:null,K);var Q=d.getCurrentCellStyle(K[0]);"image"!=Q[mxConstants.STYLE_SHAPE]&&"label"!=Q[mxConstants.STYLE_SHAPE]?d.setCellStyles(mxConstants.STYLE_SHAPE,"image",K):0==E.length&&d.setCellStyles(mxConstants.STYLE_SHAPE,null,K);null==I&&d.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,K);if(null!=D&&null!=G)for(E=0;E<K.length;E++){var P=K[E];if("0"!=d.getCurrentCellStyle(P).expand){var M=
-d.getModel().getGeometry(P);null!=M&&(M=M.clone(),M.width=D,M.height=G,d.getModel().setGeometry(P,M))}null!=I&&e(P,I,L,T,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"))}),
+d.getModel().getGeometry(P);null!=M&&(M=M.clone(),M.width=D,M.height=G,d.getModel().setGeometry(P,M))}null!=I&&e(P,I,L,T,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),x=u[mxConstants.STYLE_IMAGE],z=u[mxConstants.STYLE_SHAPE];
+x&&"image"==z&&(u=new CropImageDialog(f,x,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),
f.fireEvent(new mxEventObject("outline"))):this.outlineWindow.window.setVisible(!this.outlineWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+Shift+O");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.outlineWindow&&this.outlineWindow.window.isVisible()}));this.addAction("editConnectionPoints...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k&&null!=k.geometry){var u=new ConnectionPointsDialog(f,
k);f.showDialog(u.container,350,450,!0,!1,function(){u.destroy()});u.init()}},null,null,"Alt+Shift+Q").isEnabled=g};Actions.prototype.addAction=function(a,b,e,f,h){if("..."==a.substring(a.length-3)){a=a.substring(0,a.length-3);var d=mxResources.get(a)+"..."}else d=mxResources.get(a);return this.put(a,new Action(d,b,e,f,h))};Actions.prototype.put=function(a,b){return this.actions[a]=b};Actions.prototype.get=function(a){return this.actions[a]};
function Action(a,b,e,f,h){mxEventSource.call(this);this.label=a;this.funct=this.createFunction(b);this.enabled=null!=e?e:!0;this.iconCls=f;this.shortcut=h;this.visible=!0}mxUtils.extend(Action,mxEventSource);Action.prototype.createFunction=function(a){return a};Action.prototype.setEnabled=function(a){this.enabled!=a&&(this.enabled=a,this.fireEvent(new mxEventObject("stateChanged")))};Action.prototype.isEnabled=function(){return this.enabled};
-Action.prototype.setToggleAction=function(a){this.toggleAction=a};Action.prototype.setSelectedCallback=function(a){this.selectedCallback=a};Action.prototype.isSelected=function(){return this.selectedCallback()};Menus=function(a){this.editorUi=a;this.menus={};this.init();mxClient.IS_SVG||((new Image).src=this.checkmarkImage)};Menus.prototype.defaultFont="Helvetica";Menus.prototype.defaultFontSize="12";Menus.prototype.defaultMenuItems="file edit view arrange extras help".split(" ");Menus.prototype.defaultFonts="Helvetica;Verdana;Times New Roman;Garamond;Comic Sans MS;Courier New;Georgia;Lucida Console;Tahoma".split(";");Menus.prototype.autoPopup=!0;
+Action.prototype.setToggleAction=function(a){this.toggleAction=a};Action.prototype.setSelectedCallback=function(a){this.selectedCallback=a};Action.prototype.isSelected=function(){return this.selectedCallback()};Menus=function(a){this.editorUi=a;this.menus={};this.init()};Menus.prototype.defaultFont="Helvetica";Menus.prototype.defaultFontSize="12";Menus.prototype.defaultMenuItems="file edit view arrange extras help".split(" ");Menus.prototype.defaultFonts="Helvetica;Verdana;Times New Roman;Garamond;Comic Sans MS;Courier New;Georgia;Lucida Console;Tahoma".split(";");Menus.prototype.autoPopup=!0;
Menus.prototype.init=function(){var a=this.editorUi,b=a.editor.graph,e=mxUtils.bind(b,b.isEnabled);this.customFonts=[];this.customFontSizes=[];this.put("fontFamily",new Menu(mxUtils.bind(this,function(f,h){for(var d=mxUtils.bind(this,function(m){this.styleChange(f,m,[mxConstants.STYLE_FONTFAMILY],[m],null,h,function(){document.execCommand("fontname",!1,m);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY],"values",[m],"cells",[b.cellEditor.getEditingCell()]))},function(){b.updateLabelElements(b.getSelectionCells(),
-function(q){q.removeAttribute("face");q.style.fontFamily=null;"PRE"==q.nodeName&&b.replaceElement(q,"div")})}).firstChild.nextSibling.style.fontFamily=m}),g=0;g<this.defaultFonts.length;g++)d(this.defaultFonts[g]);f.addSeparator(h);if(0<this.customFonts.length){for(g=0;g<this.customFonts.length;g++)d(this.customFonts[g]);f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];this.editorUi.fireEvent(new mxEventObject("customFontsChanged"))}),h);f.addSeparator(h)}this.promptChange(f,
+function(p){p.removeAttribute("face");p.style.fontFamily=null;"PRE"==p.nodeName&&b.replaceElement(p,"div")})}).firstChild.nextSibling.style.fontFamily=m}),g=0;g<this.defaultFonts.length;g++)d(this.defaultFonts[g]);f.addSeparator(h);if(0<this.customFonts.length){for(g=0;g<this.customFonts.length;g++)d(this.customFonts[g]);f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];this.editorUi.fireEvent(new mxEventObject("customFontsChanged"))}),h);f.addSeparator(h)}this.promptChange(f,
mxResources.get("custom")+"...","",mxConstants.DEFAULT_FONTFAMILY,mxConstants.STYLE_FONTFAMILY,h,!0,mxUtils.bind(this,function(m){0>mxUtils.indexOf(this.customFonts,m)&&(this.customFonts.push(m),this.editorUi.fireEvent(new mxEventObject("customFontsChanged")))}))})));this.put("formatBlock",new Menu(mxUtils.bind(this,function(f,h){function d(g,m){return f.addItem(g,null,mxUtils.bind(this,function(){null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),document.execCommand("formatBlock",!1,"<"+
m+">"))}),h)}d(mxResources.get("normal"),"p");d("","h1").firstChild.nextSibling.innerHTML='<h1 style="margin:0px;">'+mxResources.get("heading")+" 1</h1>";d("","h2").firstChild.nextSibling.innerHTML='<h2 style="margin:0px;">'+mxResources.get("heading")+" 2</h2>";d("","h3").firstChild.nextSibling.innerHTML='<h3 style="margin:0px;">'+mxResources.get("heading")+" 3</h3>";d("","h4").firstChild.nextSibling.innerHTML='<h4 style="margin:0px;">'+mxResources.get("heading")+" 4</h4>";d("","h5").firstChild.nextSibling.innerHTML=
'<h5 style="margin:0px;">'+mxResources.get("heading")+" 5</h5>";d("","h6").firstChild.nextSibling.innerHTML='<h6 style="margin:0px;">'+mxResources.get("heading")+" 6</h6>";d("","pre").firstChild.nextSibling.innerHTML='<pre style="margin:0px;">'+mxResources.get("formatted")+"</pre>";d("","blockquote").firstChild.nextSibling.innerHTML='<blockquote style="margin-top:0px;margin-bottom:0px;">'+mxResources.get("blockquote")+"</blockquote>"})));this.put("fontSize",new Menu(mxUtils.bind(this,function(f,h){var d=
-[6,8,9,10,11,12,14,18,24,36,48,72];0>mxUtils.indexOf(d,this.defaultFontSize)&&(d.push(this.defaultFontSize),d.sort(function(w,z){return w-z}));for(var g=mxUtils.bind(this,function(w){if(null!=b.cellEditor.textarea){document.execCommand("fontSize",!1,"3");for(var z=b.cellEditor.textarea.getElementsByTagName("font"),C=0;C<z.length;C++)if("3"==z[C].getAttribute("size")){z[C].removeAttribute("size");z[C].style.fontSize=w+"px";break}a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTSIZE],
-"values",[w],"cells",[b.cellEditor.getEditingCell()]))}}),m=mxUtils.bind(this,function(w){this.styleChange(f,w,[mxConstants.STYLE_FONTSIZE],[w],null,h,function(){g(w)})}),q=0;q<d.length;q++)m(d[q]);f.addSeparator(h);if(0<this.customFontSizes.length){var k=0;for(q=0;q<this.customFontSizes.length;q++)0>mxUtils.indexOf(d,this.customFontSizes[q])&&(m(this.customFontSizes[q]),k++);0<k&&f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFontSizes=[]}),h);f.addSeparator(h)}var u=
-null;this.promptChange(f,mxResources.get("custom")+"...","("+mxResources.get("points")+")",this.defaultFontSize,mxConstants.STYLE_FONTSIZE,h,!0,mxUtils.bind(this,function(w){null!=u&&null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),b.cellEditor.restoreSelection(u));null!=w&&0<w.length&&(this.customFontSizes.push(w),g(w))}),null,function(){u=b.cellEditor.saveSelection();return!1})})));this.put("direction",new Menu(mxUtils.bind(this,function(f,h){f.addItem(mxResources.get("flipH"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPH,
+[6,8,9,10,11,12,14,18,24,36,48,72];0>mxUtils.indexOf(d,this.defaultFontSize)&&(d.push(this.defaultFontSize),d.sort(function(x,z){return x-z}));for(var g=mxUtils.bind(this,function(x){if(null!=b.cellEditor.textarea){document.execCommand("fontSize",!1,"3");for(var z=b.cellEditor.textarea.getElementsByTagName("font"),C=0;C<z.length;C++)if("3"==z[C].getAttribute("size")){z[C].removeAttribute("size");z[C].style.fontSize=x+"px";break}a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTSIZE],
+"values",[x],"cells",[b.cellEditor.getEditingCell()]))}}),m=mxUtils.bind(this,function(x){this.styleChange(f,x,[mxConstants.STYLE_FONTSIZE],[x],null,h,function(){g(x)})}),p=0;p<d.length;p++)m(d[p]);f.addSeparator(h);if(0<this.customFontSizes.length){var k=0;for(p=0;p<this.customFontSizes.length;p++)0>mxUtils.indexOf(d,this.customFontSizes[p])&&(m(this.customFontSizes[p]),k++);0<k&&f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFontSizes=[]}),h);f.addSeparator(h)}var u=
+null;this.promptChange(f,mxResources.get("custom")+"...","("+mxResources.get("points")+")",this.defaultFontSize,mxConstants.STYLE_FONTSIZE,h,!0,mxUtils.bind(this,function(x){null!=u&&null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),b.cellEditor.restoreSelection(u));null!=x&&0<x.length&&(this.customFontSizes.push(x),g(x))}),null,function(){u=b.cellEditor.saveSelection();return!1})})));this.put("direction",new Menu(mxUtils.bind(this,function(f,h){f.addItem(mxResources.get("flipH"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPH,
!1)},h);f.addItem(mxResources.get("flipV"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPV,!1)},h);this.addMenuItems(f,["-","rotation"],h)})));this.put("align",new Menu(mxUtils.bind(this,function(f,h){var d=1<this.editorUi.getSelectionState().vertices.length;f.addItem(mxResources.get("leftAlign"),null,function(){b.alignCells(mxConstants.ALIGN_LEFT)},h,null,d);f.addItem(mxResources.get("center"),null,function(){b.alignCells(mxConstants.ALIGN_CENTER)},h,null,d);f.addItem(mxResources.get("rightAlign"),
null,function(){b.alignCells(mxConstants.ALIGN_RIGHT)},h,null,d);f.addSeparator(h);f.addItem(mxResources.get("topAlign"),null,function(){b.alignCells(mxConstants.ALIGN_TOP)},h,null,d);f.addItem(mxResources.get("middle"),null,function(){b.alignCells(mxConstants.ALIGN_MIDDLE)},h,null,d);f.addItem(mxResources.get("bottomAlign"),null,function(){b.alignCells(mxConstants.ALIGN_BOTTOM)},h,null,d);this.addMenuItems(f,["-","snapToGrid"],h)})));this.put("distribute",new Menu(mxUtils.bind(this,function(f,h){f.addItem(mxResources.get("horizontal"),
null,function(){b.distributeCells(!0)},h);f.addItem(mxResources.get("vertical"),null,function(){b.distributeCells(!1)},h);f.addSeparator(h);this.addSubmenu("distributeSpacing",f,h,mxResources.get("spacing"))})));this.put("distributeSpacing",new Menu(mxUtils.bind(this,function(f,h){f.addItem(mxResources.get("horizontal"),null,function(){b.distributeCells(!0,null,!0)},h);f.addItem(mxResources.get("vertical"),null,function(){b.distributeCells(!1,null,!0)},h)})));this.put("line",new Menu(mxUtils.bind(this,
-function(f,h){var d=b.view.getState(b.getSelectionCell());null!=d&&(d=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE),"arrow"!=d&&(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],"geIcon geSprite geSprite-straight",h,!0).setAttribute("title",mxResources.get("straight")),this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],"geIcon geSprite geSprite-orthogonal",
-h,!0).setAttribute("title",mxResources.get("orthogonal")),this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],"geIcon geSprite geSprite-horizontalelbow",h,!0).setAttribute("title",mxResources.get("simple")),this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],"geIcon geSprite geSprite-verticalelbow",
-h,!0).setAttribute("title",mxResources.get("simple")),this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],"geIcon geSprite geSprite-horizontalisometric",h,!0).setAttribute("title",mxResources.get("isometric")),this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],"geIcon geSprite geSprite-verticalisometric",
-h,!0).setAttribute("title",mxResources.get("isometric")),"connector"==d&&this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],"geIcon geSprite geSprite-curved",h,!0).setAttribute("title",mxResources.get("curved")),this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],"geIcon geSprite geSprite-entity",h,!0).setAttribute("title",
-mxResources.get("entityRelation"))),f.addSeparator(h),this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],"geIcon geSprite geSprite-connection",h,null,null,!0).setAttribute("title",mxResources.get("line")),this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],"geIcon geSprite geSprite-linkedge",h,null,null,!0).setAttribute("title",mxResources.get("link")),
-this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["flexArrow",null,null,null],"geIcon geSprite geSprite-arrow",h,null,null,!0).setAttribute("title",mxResources.get("arrow")),this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],"geIcon geSprite geSprite-simplearrow",h,null,null,!0).setAttribute("title",mxResources.get("simpleArrow")))})));this.put("layout",
-new Menu(mxUtils.bind(this,function(f,h){var d=mxUtils.bind(this,function(m,q){this.editorUi.prompt(mxResources.get("spacing"),m,q)}),g=mxUtils.bind(this,function(m){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var q=b.getSelectionCell(),k=null;null==q||0==b.getModel().getChildCount(q)?0==b.getModel().getEdgeCount(q)&&(k=b.findTreeRoots(b.getDefaultParent())):k=b.findTreeRoots(q);null!=k&&0<k.length&&(q=k[0]);null!=q&&this.editorUi.executeLayout(function(){m.execute(b.getDefaultParent(),
-q);b.isSelectionEmpty()||(q=b.getModel().getParent(q),b.getModel().isVertex(q)&&b.updateGroupBounds([q],2*b.gridSize,!0))},!0)}))});f.addItem(mxResources.get("horizontalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_WEST);this.editorUi.executeLayout(function(){var q=b.getSelectionCells();m.execute(b.getDefaultParent(),0==q.length?null:q)},!0)}))}),h);f.addItem(mxResources.get("verticalFlow"),null,
-mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_NORTH);this.editorUi.executeLayout(function(){var q=b.getSelectionCells();m.execute(b.getDefaultParent(),0==q.length?null:q)},!0)}))}),h);f.addSeparator(h);f.addItem(mxResources.get("horizontalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!0);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(q){isNaN(q)||
-(m.levelDistance=q,g(m))}))}),h);f.addItem(mxResources.get("verticalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!1);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(q){isNaN(q)||(m.levelDistance=q,g(m))}))}),h);f.addItem(mxResources.get("radialTree"),null,mxUtils.bind(this,function(){var m=new mxRadialTreeLayout(b);m.levelDistance=80;m.autoRadius=!0;d(m.levelDistance,mxUtils.bind(this,function(q){isNaN(q)||(m.levelDistance=
-q,g(m))}))}),h);f.addSeparator(h);f.addItem(mxResources.get("organic"),null,mxUtils.bind(this,function(){var m=new mxFastOrganicLayout(b);d(m.forceConstant,mxUtils.bind(this,function(q){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){m.forceConstant=q;this.editorUi.executeLayout(function(){var k=b.getSelectionCell();if(null==k||0==b.getModel().getChildCount(k))k=b.getDefaultParent();m.execute(k);b.getModel().isVertex(k)&&b.updateGroupBounds([k],2*b.gridSize,!0)},!0)}))}))}),h);f.addItem(mxResources.get("circle"),
-null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxCircleLayout(b);this.editorUi.executeLayout(function(){var q=b.getSelectionCell();if(null==q||0==b.getModel().getChildCount(q))q=b.getDefaultParent();m.execute(q);b.getModel().isVertex(q)&&b.updateGroupBounds([q],2*b.gridSize,!0)},!0)}))}),h)})));this.put("navigation",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"home - exitGroup enterGroup - expand collapse - collapsible".split(" "),
-h)})));this.put("arrange",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["toFront","toBack","bringForward","sendBackward","-"],h);this.addSubmenu("direction",f,h);this.addMenuItems(f,["turn","-"],h);this.addSubmenu("align",f,h);this.addSubmenu("distribute",f,h);f.addSeparator(h);this.addSubmenu("navigation",f,h);this.addSubmenu("insert",f,h);this.addSubmenu("layout",f,h);this.addMenuItems(f,"- group ungroup removeFromGroup - clearWaypoints autosize".split(" "),h)}))).isEnabled=e;this.put("insert",
-new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["insertLink","insertImage"],h)})));this.put("view",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,(null!=this.editorUi.format?["format"]:[]).concat("outline layers - pageView pageScale - tooltips grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),h))})));this.put("viewPanels",new Menu(mxUtils.bind(this,function(f,h){null!=this.editorUi.format&&this.addMenuItems(f,["format"],h);this.addMenuItems(f,
-["outline","layers"],h)})));this.put("viewZoom",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["smartFit","-"],h);for(var d=[.25,.5,.75,1,1.25,1.5,2,3,4],g=0;g<d.length;g++)(function(m){f.addItem(100*m+"%",null,function(){b.zoomTo(m)},h)})(d[g]);this.addMenuItems(f,"- fitWindow fitPageWidth fitPage fitTwoPages - customZoom".split(" "),h)})));this.put("file",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"new open - save saveAs - import export - pageSetup print".split(" "),
-h)})));this.put("edit",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"undo redo - cut copy paste delete - duplicate - editData editTooltip - editStyle - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));this.put("extras",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["copyConnect","collapseExpand","-","editDiagram"])})));this.put("help",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["help","-","about"])})))};
-Menus.prototype.put=function(a,b){return this.menus[a]=b};Menus.prototype.get=function(a){return this.menus[a]};Menus.prototype.addSubmenu=function(a,b,e,f){var h=this.get(a),d=null;null!=h&&(h=h.isEnabled(),b.showDisabled||h)&&(d=b.addItem(f||mxResources.get(a),null,null,e,null,h),this.addMenu(a,b,d));return d};Menus.prototype.addMenu=function(a,b,e){a=this.get(a);null!=a&&(b.showDisabled||a.isEnabled())&&a.execute(b,e)};
-Menus.prototype.addInsertTableCellItem=function(a,b){var e=this.editorUi.editor.graph,f=e.getSelectionCell(),h=e.getCurrentCellStyle(f);1<e.getSelectionCount()&&(e.isTableCell(f)&&(f=e.model.getParent(f)),e.isTableRow(f)&&(f=e.model.getParent(f)));var d=e.isTable(f)||e.isTableRow(f)||e.isTableCell(f),g=e.isStack(f)||e.isStackChild(f),m=d,q=d;g&&(h=e.isStack(f)?h:e.getCellStyle(e.model.getParent(f)),q="0"==h.horizontalStack,m=!q);null!=b||!d&&!g?this.addInsertTableItem(a,mxUtils.bind(this,function(k,
-u,w,z,C){u=C||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)?e.createCrossFunctionalSwimlane(u,w,null,null,z||mxEvent.isShiftDown(k)?"Cross-Functional Flowchart":null):e.createTable(u,w,null,null,z||mxEvent.isShiftDown(k)?"Table":null);k=mxEvent.isAltDown(k)?e.getFreeInsertPoint():e.getCenterInsertPoint(e.getBoundingBoxFromGeometry([u],!0));w=null;e.getModel().beginUpdate();try{w=e.importCells([u],k.x,k.y),e.fireEvent(new mxEventObject("cellsInserted","cells",e.model.getDescendants(w[0])))}finally{e.getModel().endUpdate()}null!=
-w&&0<w.length&&(e.scrollCellToVisible(w[0]),e.setSelectionCells(w))}),b):(m&&(b=a.addItem(mxResources.get("insertColumnBefore"),null,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableColumn(f,!0)}catch(k){this.editorUi.handleError(k)}}),null,"geIcon geSprite geSprite-insertcolumnbefore"),b.setAttribute("title",mxResources.get("insertColumnBefore")),b=a.addItem(mxResources.get("insertColumnAfter"),null,mxUtils.bind(this,function(){try{g?e.insertLane(f,!1):e.insertTableColumn(f,!1)}catch(k){this.editorUi.handleError(k)}}),
-null,"geIcon geSprite geSprite-insertcolumnafter"),b.setAttribute("title",mxResources.get("insertColumnAfter")),b=a.addItem(mxResources.get("deleteColumn"),null,mxUtils.bind(this,function(){if(null!=f)try{g?e.deleteLane(f):e.deleteTableColumn(f)}catch(k){this.editorUi.handleError(k)}}),null,"geIcon geSprite geSprite-deletecolumn"),b.setAttribute("title",mxResources.get("deleteColumn"))),q&&(b=a.addItem(mxResources.get("insertRowBefore"),null,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableRow(f,
-!0)}catch(k){this.editorUi.handleError(k)}}),null,"geIcon geSprite geSprite-insertrowbefore"),b.setAttribute("title",mxResources.get("insertRowBefore")),b=a.addItem(mxResources.get("insertRowAfter"),null,mxUtils.bind(this,function(){try{g?e.insertLane(f,!1):e.insertTableRow(f,!1)}catch(k){this.editorUi.handleError(k)}}),null,"geIcon geSprite geSprite-insertrowafter"),b.setAttribute("title",mxResources.get("insertRowAfter")),b=a.addItem(mxResources.get("deleteRow"),null,mxUtils.bind(this,function(){try{g?
-e.deleteLane(f):e.deleteTableRow(f)}catch(k){this.editorUi.handleError(k)}}),null,"geIcon geSprite geSprite-deleterow"),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,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 T=G.insertRow(L),K=0;K<G.rows[0].cells.length;K++)T.insertCell(-1);for(L=0;L<G.rows.length;L++)for(T=G.rows[L],K=T.cells.length;K<D;K++)T.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");
+function(f,h){var d=b.view.getState(b.getSelectionCell());null!=d&&(d=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE),"arrow"!=d&&(Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],null,h,!0,Format.straightImage.src)).setAttribute("title",mxResources.get("straight")),Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",
+null,null],null,h,!0,Format.orthogonalImage.src)).setAttribute("title",mxResources.get("orthogonal")),Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],null,h,!0,Format.horizontalElbowImage.src)).setAttribute("title",mxResources.get("simple")),Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,
+mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],null,h,!0,Format.verticalElbowImage.src)).setAttribute("title",mxResources.get("simple")),Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],null,h,!0,Format.horizontalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,
+mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,h,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),"connector"==d&&Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,h,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),Format.processMenuIcon(this.edgeStyleChange(f,
+"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,h,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))),f.addSeparator(h),Format.processMenuIcon(this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],null,h,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line")),Format.processMenuIcon(this.styleChange(f,
+"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],null,h,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link")),Format.processMenuIcon(this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["flexArrow",null,null,null],null,h,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow")),Format.processMenuIcon(this.styleChange(f,
+"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],null,h,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow")))})));this.put("layout",new Menu(mxUtils.bind(this,function(f,h){var d=mxUtils.bind(this,function(m,p){this.editorUi.prompt(mxResources.get("spacing"),m,p)}),g=mxUtils.bind(this,function(m){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var p=b.getSelectionCell(),k=null;null==
+p||0==b.getModel().getChildCount(p)?0==b.getModel().getEdgeCount(p)&&(k=b.findTreeRoots(b.getDefaultParent())):k=b.findTreeRoots(p);null!=k&&0<k.length&&(p=k[0]);null!=p&&this.editorUi.executeLayout(function(){m.execute(b.getDefaultParent(),p);b.isSelectionEmpty()||(p=b.getModel().getParent(p),b.getModel().isVertex(p)&&b.updateGroupBounds([p],2*b.gridSize,!0))},!0)}))});f.addItem(mxResources.get("horizontalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=
+new mxHierarchicalLayout(b,mxConstants.DIRECTION_WEST);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),h);f.addItem(mxResources.get("verticalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_NORTH);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),
+h);f.addSeparator(h);f.addItem(mxResources.get("horizontalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!0);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,g(m))}))}),h);f.addItem(mxResources.get("verticalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!1);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=
+p,g(m))}))}),h);f.addItem(mxResources.get("radialTree"),null,mxUtils.bind(this,function(){var m=new mxRadialTreeLayout(b);m.levelDistance=80;m.autoRadius=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,g(m))}))}),h);f.addSeparator(h);f.addItem(mxResources.get("organic"),null,mxUtils.bind(this,function(){var m=new mxFastOrganicLayout(b);d(m.forceConstant,mxUtils.bind(this,function(p){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){m.forceConstant=p;this.editorUi.executeLayout(function(){var k=
+b.getSelectionCell();if(null==k||0==b.getModel().getChildCount(k))k=b.getDefaultParent();m.execute(k);b.getModel().isVertex(k)&&b.updateGroupBounds([k],2*b.gridSize,!0)},!0)}))}))}),h);f.addItem(mxResources.get("circle"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxCircleLayout(b);this.editorUi.executeLayout(function(){var p=b.getSelectionCell();if(null==p||0==b.getModel().getChildCount(p))p=b.getDefaultParent();m.execute(p);b.getModel().isVertex(p)&&
+b.updateGroupBounds([p],2*b.gridSize,!0)},!0)}))}),h)})));this.put("navigation",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"home - exitGroup enterGroup - expand collapse - collapsible".split(" "),h)})));this.put("arrange",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["toFront","toBack","bringForward","sendBackward","-"],h);this.addSubmenu("direction",f,h);this.addMenuItems(f,["turn","-"],h);this.addSubmenu("align",f,h);this.addSubmenu("distribute",f,h);f.addSeparator(h);
+this.addSubmenu("navigation",f,h);this.addSubmenu("insert",f,h);this.addSubmenu("layout",f,h);this.addMenuItems(f,"- group ungroup removeFromGroup - clearWaypoints autosize".split(" "),h)}))).isEnabled=e;this.put("insert",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["insertLink","insertImage"],h)})));this.put("view",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,(null!=this.editorUi.format?["format"]:[]).concat("outline layers - pageView pageScale - tooltips grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),
+h))})));this.put("viewPanels",new Menu(mxUtils.bind(this,function(f,h){null!=this.editorUi.format&&this.addMenuItems(f,["format"],h);this.addMenuItems(f,["outline","layers"],h)})));this.put("viewZoom",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["smartFit","-"],h);for(var d=[.25,.5,.75,1,1.25,1.5,2,3,4],g=0;g<d.length;g++)(function(m){f.addItem(100*m+"%",null,function(){b.zoomTo(m)},h)})(d[g]);this.addMenuItems(f,"- fitWindow fitPageWidth fitPage fitTwoPages - customZoom".split(" "),
+h)})));this.put("file",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"new open - save saveAs - import export - pageSetup print".split(" "),h)})));this.put("edit",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"undo redo - cut copy paste delete - duplicate - editData editTooltip - editStyle - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));this.put("extras",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,
+["copyConnect","collapseExpand","-","editDiagram"])})));this.put("help",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["help","-","about"])})))};Menus.prototype.put=function(a,b){return this.menus[a]=b};Menus.prototype.get=function(a){return this.menus[a]};Menus.prototype.addSubmenu=function(a,b,e,f){var h=this.get(a),d=null;null!=h&&(h=h.isEnabled(),b.showDisabled||h)&&(d=b.addItem(f||mxResources.get(a),null,null,e,null,h),this.addMenu(a,b,d));return d};
+Menus.prototype.addMenu=function(a,b,e){a=this.get(a);null!=a&&(b.showDisabled||a.isEnabled())&&a.execute(b,e)};
+Menus.prototype.addInsertTableCellItem=function(a,b){var e=this.editorUi.editor.graph,f=e.getSelectionCell(),h=e.getCurrentCellStyle(f);1<e.getSelectionCount()&&(e.isTableCell(f)&&(f=e.model.getParent(f)),e.isTableRow(f)&&(f=e.model.getParent(f)));var d=e.isTable(f)||e.isTableRow(f)||e.isTableCell(f),g=e.isStack(f)||e.isStackChild(f),m=d,p=d;g&&(h=e.isStack(f)?h:e.getCellStyle(e.model.getParent(f)),p="0"==h.horizontalStack,m=!p);null!=b||!d&&!g?this.addInsertTableItem(a,mxUtils.bind(this,function(k,
+u,x,z,C){u=C||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)?e.createCrossFunctionalSwimlane(u,x,null,null,z||mxEvent.isShiftDown(k)?"Cross-Functional Flowchart":null):e.createTable(u,x,null,null,z||mxEvent.isShiftDown(k)?"Table":null);k=mxEvent.isAltDown(k)?e.getFreeInsertPoint():e.getCenterInsertPoint(e.getBoundingBoxFromGeometry([u],!0));x=null;e.getModel().beginUpdate();try{x=e.importCells([u],k.x,k.y),e.fireEvent(new mxEventObject("cellsInserted","cells",e.model.getDescendants(x[0])))}finally{e.getModel().endUpdate()}null!=
+x&&0<x.length&&(e.scrollCellToVisible(x[0]),e.setSelectionCells(x))}),b):(m&&(b=a.addItem(mxResources.get("insertColumnBefore"),Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableColumn(f,!0)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertColumnBefore")),b=a.addItem(mxResources.get("insertColumnAfter"),Editor.addColumnRightImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!1):e.insertTableColumn(f,!1)}catch(k){this.editorUi.handleError(k)}})),
+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"))),p&&(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")),p=this.editorUi.getSelectionState(),null!=p.mergeCell?this.addMenuItem(a,"mergeCells"):(1<p.style.colspan||1<p.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=x,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 T=G.insertRow(L),K=0;K<G.rows[0].cells.length;K++)T.insertCell(-1);for(L=0;L<G.rows.length;L++)for(T=G.rows[L],K=T.cells.length;K<D;K++)T.insertCell(-1);z.innerHTML=m.cellIndex+1+"x"+(g.sectionRowIndex+
+1);for(G=0;G<x.rows.length;G++)for(I=x.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 T=0;T<E;T++){I.push("<tr>");for(var K=0;K<D;K++)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 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};
-Menus.prototype.styleChange=function(a,b,e,f,h,d,g,m,q){var k=this.createStyleChangeFunction(e,f);a=a.addItem(b,null,mxUtils.bind(this,function(){var u=this.editorUi.editor.graph;null!=g&&u.cellEditor.isContentEditing()?g():k(m)}),d,h);q&&this.showIconOnly(a);return a};
+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 p=document.createElement("input");p.setAttribute("id","geTitleOption");p.setAttribute("type","checkbox");p.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(p,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(p),a.firstChild.appendChild(e),mxUtils.br(a.firstChild),a.firstChild.appendChild(k),a.firstChild.appendChild(u),mxUtils.br(a.firstChild));var x=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 I=D.insertRow(G),L=0;L<E;L++)I.insertCell(-1);return D}(5,5);a.firstChild.appendChild(x);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(x,null,null,mxUtils.bind(this,function(C){var E=h(C);null!=m&&null!=g&&E&&(b(C,g.sectionRowIndex+
+1,m.cellIndex+1,p.checked,k.checked),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0))}));mxEvent.addListener(x,"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 p=this.editorUi.editor.graph;p.stopEditing(!1);p.getModel().beginUpdate();try{for(var k=p.getSelectionCells(),u=[],x=0;x<k.length;x++){var z=k[x];if(p.getModel().isEdge(z)){if(g){var C=p.getCellGeometry(z);null!=C&&(C=C.clone(),C.points=null,p.getModel().setGeometry(z,C))}for(var E=0;E<e.length;E++)p.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{p.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};
+Menus.prototype.styleChange=function(a,b,e,f,h,d,g,m,p,k){var u=this.createStyleChangeFunction(e,f);a=a.addItem(b,k,mxUtils.bind(this,function(){var x=this.editorUi.editor.graph;null!=g&&x.cellEditor.isContentEditing()?g():u(m)}),d,h);p&&this.showIconOnly(a);return a};
Menus.prototype.createStyleChangeFunction=function(a,b){return mxUtils.bind(this,function(e){var f=this.editorUi.editor.graph;f.stopEditing(!1);f.getModel().beginUpdate();try{for(var h=f.getEditableCells(f.getSelectionCells()),d=!1,g=0;g<a.length;g++)if(f.setCellStyles(a[g],b[g],h),a[g]==mxConstants.STYLE_ALIGN&&f.updateLabelElements(h,function(m){m.removeAttribute("align");m.style.textAlign=null}),a[g]==mxConstants.STYLE_FONTFAMILY||"fontSource"==a[g])d=!0;if(d)for(d=0;d<h.length;d++)0==f.model.getChildCount(h[d])&&
f.autoSizeCell(h[d],!1);null!=e&&e();this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",a,"values",b,"cells",h))}finally{f.getModel().endUpdate()}})};
-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){var g=this.editorUi;g.tryAndHandle(mxUtils.bind(this,function(){var m=g.editor.graph,q=260+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));if(null!=b&&m.cellEditor.isContentEditing()){var k=m.cellEditor.saveSelection(),u=new ColorDialog(this.editorUi,e||m.shapeForegroundColor,mxUtils.bind(this,function(z){m.cellEditor.restoreSelection(k);document.execCommand(b,!1,z!=mxConstants.NONE?
-z:"transparent");var C={forecolor:mxConstants.STYLE_FONTCOLOR,backcolor:mxConstants.STYLE_LABEL_BACKGROUNDCOLOR}[b];null!=C&&g.fireEvent(new mxEventObject("styleChanged","keys",[C],"values",[z],"cells",[m.cellEditor.getEditingCell()]))}),function(){m.cellEditor.restoreSelection(k)});this.editorUi.showDialog(u.container,230,q,!0,!0);u.init()}else{u=m.getView().getState(m.getSelectionCell());var w=mxConstants.NONE;null!=u&&(w=u.style[a]||w);null!=f?(w=/(^#?[a-zA-Z0-9]*$)/.test(w)?w:f,this.editorUi.pickColor(w,
-ColorDialog.createApplyFunction(this.editorUi,a),f,h,d)):(null==this.colorDialog&&(this.colorDialog=new ColorDialog(this.editorUi)),this.colorDialog.currentColorKey=a,w==mxConstants.NONE?(w=m.shapeBackgroundColor.substring(1),this.colorDialog.picker.fromString(w),this.colorDialog.colorInput.value=mxConstants.NONE):this.colorDialog.picker.fromString(mxUtils.rgba2hex(w)),this.editorUi.showDialog(this.colorDialog.container,230,q,!0,!0),this.colorDialog.init())}}))};
+Menus.prototype.promptChange=function(a,b,e,f,h,d,g,m,p,k){return a.addItem(b,null,mxUtils.bind(this,function(){var u=this.editorUi.editor.graph,x=f,z=u.getView().getState(u.getSelectionCell());null!=z&&(x=z.style[h]||x);var C=null!=k?k():!0;x=new FilenameDialog(this.editorUi,x,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(x.container,300,80,!0,!0);x.init()}),d,p,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 p=g.getView().getState(g.getSelectionCell());m=mxConstants.NONE;null!=p&&(m=p.style[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.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(p){this.editorUi.handleError(p)}}),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)};
Menus.prototype.createPopupMenu=function(a,b,e){a.smartSeparators=!0;a.hideShortcuts=!0;this.addPopupMenuItems(a,b,e)};Menus.prototype.addPopupMenuItems=function(a,b,e){this.isShowHistoryItems()&&this.addPopupMenuHistoryItems(a,b,e);this.addPopupMenuEditItems(a,b,e);this.isShowStyleItems()&&this.addPopupMenuStyleItems(a,b,e);this.isShowArrangeItems()&&this.addPopupMenuArrangeItems(a,b,e);this.addPopupMenuCellItems(a,b,e);this.addPopupMenuSelectionItems(a,b,e)};Menus.prototype.isShowHistoryItems=function(){return!0};
Menus.prototype.addPopupMenuHistoryItems=function(a,b,e){this.editorUi.editor.graph.isSelectionEmpty()&&this.addMenuItems(a,["undo","redo"],null,e)};Menus.prototype.addPopupDeleteItem=function(a,b,e){a=this.addMenuItem(a,"delete");null!=a&&null!=a.firstChild&&null!=a.firstChild.nextSibling&&(a.firstChild.nextSibling.style.color="red",b=this.editorUi.editor.graph,1<b.getSelectionCount()&&(a.firstChild.nextSibling.innerHTML=mxUtils.htmlEntities(mxResources.get("delete")+" ("+b.getSelectionCount()+")")))};
@@ -3687,162 +3708,155 @@ Menubar.prototype.addMenu=function(a,b,e,f){var h=document.createElement("a");h.
Menubar.prototype.addMenuHandler=function(a,b,e){if(null!=b){var f=!0,h=mxUtils.bind(this,function(d){null!=e&&e(d);if(!mxEvent.isConsumed(d)&&f&&(null==a.enabled||a.enabled)){this.editorUi.editor.graph.popupMenuHandler.hideMenu();var g=new mxPopupMenu(b);g.div.className+=" geMenubarMenu";g.smartSeparators=!0;g.showDisabled=!0;g.autoExpand=!0;g.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(g,arguments);this.editorUi.resetCurrentMenu();g.destroy()});this.editorUi.menus.autoPopup||
null==this.editorUi.currentMenu||this.editorUi.hideCurrentMenu();var m=mxUtils.getOffset(a);g.popup(m.x,m.y+a.offsetHeight,null,d);this.editorUi.setCurrentMenu(g,a)}mxEvent.consume(d)});mxEvent.addListener(a,"mousemove",mxUtils.bind(this,function(d){this.editorUi.menus.autoPopup&&null!=this.editorUi.currentMenu&&this.editorUi.currentMenuElt!=a&&(this.editorUi.hideCurrentMenu(),h(d))}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(d){!this.editorUi.menus.autoPopup&&
null!=this.editorUi.currentMenu&&this.editorUi.currentMenuElt!=a&&mxEvent.isMouseEvent(d)&&this.editorUi.hideCurrentMenu();f=null==this.editorUi.currentMenu;d.preventDefault()}));mxEvent.addListener(a,"click",mxUtils.bind(this,function(d){h(d);f=!0}))}};Menubar.prototype.destroy=function(){};function Menu(a,b){mxEventSource.call(this);this.funct=a;this.enabled=null!=b?b:!0}mxUtils.extend(Menu,mxEventSource);Menu.prototype.isEnabled=function(){return this.enabled};
-Menu.prototype.setEnabled=function(a){this.enabled!=a&&(this.enabled=a,this.fireEvent(new mxEventObject("stateChanged")))};Menu.prototype.execute=function(a,b){this.funct(a,b)};EditorUi.prototype.createMenus=function(){return new Menus(this)};function Toolbar(a,b){this.editorUi=a;this.container=b;this.staticElements=[];this.init();this.gestureHandler=mxUtils.bind(this,function(e){null!=this.editorUi.currentMenu&&mxEvent.getSource(e)!=this.editorUi.currentMenu.div&&this.hideMenu()});mxEvent.addGestureListeners(document,this.gestureHandler)}
-Toolbar.prototype.dropDownImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQANAIABAHt7e////yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCREM1NkJFMjE0NEMxMUU1ODk1Q0M5MjQ0MTA4QjNDMSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCREM1NkJFMzE0NEMxMUU1ODk1Q0M5MjQ0MTA4QjNDMSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkQzOUMzMjZCMTQ0QjExRTU4OTVDQzkyNDQxMDhCM0MxIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkQzOUMzMjZDMTQ0QjExRTU4OTVDQzkyNDQxMDhCM0MxIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAQAsAAAAAA0ADQAAAhGMj6nL3QAjVHIu6azbvPtWAAA7":IMAGE_PATH+
-"/dropdown.gif";Toolbar.prototype.selectedBackground="#d0d0d0";Toolbar.prototype.unselectedBackground="none";Toolbar.prototype.staticElements=null;
-Toolbar.prototype.init=function(){var a=screen.width;a-=740<screen.height?56:0;if(700<=a){var b=this.addMenu("",mxResources.get("view")+" ("+mxResources.get("panTooltip")+")",!0,"viewPanels",null,!0);this.addDropDownArrow(b,"geSprite-formatpanel",38,50,-4,-3,36,-8);this.addSeparator()}var e=this.addMenu("",mxResources.get("zoom")+" (Alt+Mousewheel)",!0,"viewZoom",null,!0);e.showDisabled=!0;e.style.whiteSpace="nowrap";e.style.position="relative";e.style.overflow="hidden";e.style.width=EditorUi.compactUi?
-"50px":"36px";420<=a&&(this.addSeparator(),b=this.addItems(["zoomIn","zoomOut"]),b[0].setAttribute("title",mxResources.get("zoomIn")+" ("+this.editorUi.actions.get("zoomIn").shortcut+")"),b[1].setAttribute("title",mxResources.get("zoomOut")+" ("+this.editorUi.actions.get("zoomOut").shortcut+")"));this.updateZoom=mxUtils.bind(this,function(f,h,d){e.innerHTML=Math.round(100*this.editorUi.editor.graph.view.scale*(null!=d?d:1))+"%";this.appendDropDownImageHtml(e);EditorUi.compactUi&&(e.getElementsByTagName("img")[0].style.right=
-"1px",e.getElementsByTagName("img")[0].style.top="5px")});this.editorUi.editor.graph.view.addListener(mxEvent.EVENT_SCALE,this.updateZoom);this.editorUi.editor.addListener("resetGraphView",this.updateZoom);this.editorUi.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(f,h){this.updateZoom(f,h,h.getProperty("factor"))}));b=this.addItems(["-","undo","redo"]);b[1].setAttribute("title",mxResources.get("undo")+" ("+this.editorUi.actions.get("undo").shortcut+")");b[2].setAttribute("title",
-mxResources.get("redo")+" ("+this.editorUi.actions.get("redo").shortcut+")");320<=a&&(b=this.addItems(["-","delete"]),b[1].setAttribute("title",mxResources.get("delete")+" ("+this.editorUi.actions.get("delete").shortcut+")"));550<=a&&this.addItems(["-","toFront","toBack"]);740<=a&&(this.addItems(["-","fillColor"]),780<=a&&(this.addItems(["strokeColor"]),820<=a&&this.addItems(["shadow"])));400<=a&&(this.addSeparator(),440<=a&&(this.edgeShapeMenu=this.addMenuFunction("",mxResources.get("connection"),
-!1,mxUtils.bind(this,function(f){this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],[null,null],"geIcon geSprite geSprite-connection",null,!0).setAttribute("title",mxResources.get("line"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],["link",null],"geIcon geSprite geSprite-linkedge",null,!0).setAttribute("title",mxResources.get("link"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],["flexArrow",null],"geIcon geSprite geSprite-arrow",
-null,!0).setAttribute("title",mxResources.get("arrow"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],["arrow",null],"geIcon geSprite geSprite-simplearrow",null,!0).setAttribute("title",mxResources.get("simpleArrow"))})),this.addDropDownArrow(this.edgeShapeMenu,"geSprite-connection",44,50,0,0,22,-4)),this.edgeStyleMenu=this.addMenuFunction("geSprite-orthogonal",mxResources.get("waypoints"),!1,mxUtils.bind(this,function(f){this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,
-mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],"geIcon geSprite geSprite-straight",null,!0).setAttribute("title",mxResources.get("straight"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],"geIcon geSprite geSprite-orthogonal",null,!0).setAttribute("title",mxResources.get("orthogonal"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,
-mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],"geIcon geSprite geSprite-horizontalelbow",null,!0).setAttribute("title",mxResources.get("simple"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],"geIcon geSprite geSprite-verticalelbow",null,!0).setAttribute("title",mxResources.get("simple"));this.editorUi.menus.edgeStyleChange(f,
-"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],"geIcon geSprite geSprite-horizontalisometric",null,!0).setAttribute("title",mxResources.get("isometric"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],"geIcon geSprite geSprite-verticalisometric",null,!0).setAttribute("title",
-mxResources.get("isometric"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],"geIcon geSprite geSprite-curved",null,!0).setAttribute("title",mxResources.get("curved"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],"geIcon geSprite geSprite-entity",null,!0).setAttribute("title",mxResources.get("entityRelation"))})),
-this.addDropDownArrow(this.edgeStyleMenu,"geSprite-orthogonal",44,50,0,0,22,-4));this.addSeparator();a=this.addMenu("",mxResources.get("insert")+" ("+mxResources.get("doubleClickTooltip")+")",!0,"insert",null,!0);this.addDropDownArrow(a,"geSprite-plus",38,48,-4,-3,36,-8);this.addSeparator();this.addTableDropDown()};
-Toolbar.prototype.appendDropDownImageHtml=function(a){var b=document.createElement("img");b.setAttribute("border","0");b.setAttribute("valign","middle");b.setAttribute("src",Toolbar.prototype.dropDownImage);a.appendChild(b);b.style.position="absolute";b.style.right="4px";b.style.top=(EditorUi.compactUi?6:8)+"px"};
-Toolbar.prototype.addTableDropDown=function(){var a=this.addMenuFunction("geIcon geSprite geSprite-table",mxResources.get("table"),!1,mxUtils.bind(this,function(e){this.editorUi.menus.addInsertTableCellItem(e)}));a.style.position="relative";a.style.whiteSpace="nowrap";a.style.overflow="hidden";a.style.width="30px";a.innerHTML='<div class="geSprite geSprite-table"></div>';this.appendDropDownImageHtml(a);a.getElementsByTagName("div")[0].style.marginLeft="-2px";EditorUi.compactUi&&(a.getElementsByTagName("img")[0].style.left=
-"22px",a.getElementsByTagName("img")[0].style.top="5px");var b=this.editorUi.menus.get("insert");null!=b&&"function"===typeof a.setEnabled&&b.addListener("stateChanged",function(){a.setEnabled(b.enabled)});return a};
-Toolbar.prototype.addDropDownArrow=function(a,b,e,f,h,d,g,m){h=EditorUi.compactUi?h:m;a.style.whiteSpace="nowrap";a.style.overflow="hidden";a.style.position="relative";a.style.width=f-(null!=g?g:32)+"px";a.innerHTML='<div class="geSprite '+b+'"></div>';this.appendDropDownImageHtml(a);b=a.getElementsByTagName("div")[0];b.style.marginLeft=h+"px";b.style.marginTop=d+"px";EditorUi.compactUi&&(a.getElementsByTagName("img")[0].style.left="24px",a.getElementsByTagName("img")[0].style.top="5px",a.style.width=
-e-10+"px")};Toolbar.prototype.setFontName=function(a){if(null!=this.fontMenu){this.fontMenu.innerText="";var b=document.createElement("div");b.style.display="inline-block";b.style.overflow="hidden";b.style.textOverflow="ellipsis";b.style.maxWidth="66px";mxUtils.write(b,a);this.fontMenu.appendChild(b);this.appendDropDownImageHtml(this.fontMenu)}};
+Menu.prototype.setEnabled=function(a){this.enabled!=a&&(this.enabled=a,this.fireEvent(new mxEventObject("stateChanged")))};Menu.prototype.execute=function(a,b){this.funct(a,b)};EditorUi.prototype.createMenus=function(){return new Menus(this)};function Toolbar(a,b){this.editorUi=a;this.container=b;this.staticElements=[];this.init();this.gestureHandler=mxUtils.bind(this,function(e){null!=this.editorUi.currentMenu&&mxEvent.getSource(e)!=this.editorUi.currentMenu.div&&this.hideMenu()});mxEvent.addGestureListeners(document,this.gestureHandler)}Toolbar.prototype.selectedBackground="#d0d0d0";Toolbar.prototype.unselectedBackground="none";Toolbar.prototype.staticElements=null;
+Toolbar.prototype.init=function(){var a=screen.width;a-=740<screen.height?56:0;if(700<=a){var b=this.addMenu("",mxResources.get("view")+" ("+mxResources.get("panTooltip")+")",!0,"viewPanels",null,!0);this.addDropDownArrow(b,Editor.dockRightImage,38);this.addSeparator()}var e=this.addMenu("",mxResources.get("zoom")+" (Alt+Mousewheel)",!0,"viewZoom",null,!0);e.showDisabled=!0;e.style.whiteSpace="nowrap";e.style.position="relative";e.style.overflow="hidden";e.style.width="54px";420<=a&&(this.addSeparator(),
+b=this.addItems(["zoomIn","zoomOut"],null,null,[Editor.zoomInImage,Editor.zoomOutImage]),b[0].setAttribute("title",mxResources.get("zoomIn")+" ("+this.editorUi.actions.get("zoomIn").shortcut+")"),b[1].setAttribute("title",mxResources.get("zoomOut")+" ("+this.editorUi.actions.get("zoomOut").shortcut+")"));this.updateZoom=mxUtils.bind(this,function(f,h,d){e.innerHTML=Math.round(100*this.editorUi.editor.graph.view.scale*(null!=d?d:1))+"%";this.appendDropDownImageHtml(e)});this.editorUi.editor.graph.view.addListener(mxEvent.EVENT_SCALE,
+this.updateZoom);this.editorUi.editor.addListener("resetGraphView",this.updateZoom);this.editorUi.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(f,h){this.updateZoom(f,h,h.getProperty("factor"))}));b=this.addItems(["-","undo","redo"],null,null,[null,Editor.undoImage,Editor.redoImage]);b[1].setAttribute("title",mxResources.get("undo")+" ("+this.editorUi.actions.get("undo").shortcut+")");b[2].setAttribute("title",mxResources.get("redo")+" ("+this.editorUi.actions.get("redo").shortcut+
+")");320<=a&&(b=this.addItems(["-","delete"],null,null,[null,Editor.trashImage]),b[1].setAttribute("title",mxResources.get("delete")+" ("+this.editorUi.actions.get("delete").shortcut+")"));550<=a&&this.addItems(["-","toFront","toBack"],null,null,[null,Editor.toFrontImage,Editor.toBackImage]);740<=a&&(this.addItems(["-","fillColor"],null,null,[null,Editor.fillColorImage]),780<=a&&(this.addItems(["strokeColor"],null,null,[Editor.strokeColorImage]),820<=a&&this.addItems(["shadow"],null,null,[Editor.shadowImage])));
+400<=a&&(this.addSeparator(),440<=a&&(this.edgeShapeMenu=this.addMenuFunction(null,mxResources.get("connection"),!1,mxUtils.bind(this,function(f){Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],[null,null],null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],["link",null],null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",
+mxResources.get("link"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],["flexArrow",null],null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],["arrow",null],null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow"))})),this.addDropDownArrow(this.edgeShapeMenu,null,38)),this.edgeStyleMenu=
+this.addMenuFunction("",mxResources.get("waypoints"),!1,mxUtils.bind(this,function(f){Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[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(f,"",[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(f,"",[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("simple"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[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("simple"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[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(f,
+"",[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"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,null,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved"));
+Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,null,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))})),this.addDropDownArrow(this.edgeStyleMenu,null,38));this.addSeparator();a=this.addMenu("",mxResources.get("insert")+" ("+mxResources.get("doubleClickTooltip")+")",!0,"insert",null,!0);this.addDropDownArrow(a,Editor.plusImage,
+38);this.addSeparator();this.addTableDropDown()};Toolbar.prototype.appendDropDownImageHtml=function(a){a.style.backgroundImage="url("+Editor.arrowDownImage+")";a.style.backgroundPosition="right -4px top 50%";a.style.backgroundRepeat="no-repeat"};
+Toolbar.prototype.addTableDropDown=function(){var a=this.addMenuFunction(Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(e){this.editorUi.menus.addInsertTableCellItem(e)}));a.style.position="relative";a.style.whiteSpace="nowrap";a.style.overflow="hidden";a.style.width="36px";this.appendDropDownImageHtml(a);var b=this.editorUi.menus.get("insert");null!=b&&"function"===typeof a.setEnabled&&b.addListener("stateChanged",function(){a.setEnabled(b.enabled)});return a};
+Toolbar.prototype.addDropDownArrow=function(a,b,e){a.style.display="flex";a.style.alignItems="center";a.style.whiteSpace="nowrap";a.style.overflow="hidden";a.style.position="relative";a.style.boxSizing="border-box";a.style.width=e+"px";a.style.opacity="1";a.innerText="";e=document.createElement("div");a.appendChild(e);null!=b&&"data:"==b.substring(0,5)&&(e.className="geToolbarButton geAdaptiveAsset",e.style.backgroundImage="url("+b+")",e.style.backgroundPosition="left center",e.style.backgroundRepeat=
+"no-repeat",e.style.backgroundSize="18px");this.appendDropDownImageHtml(a)};Toolbar.prototype.setFontName=function(a){if(null!=this.fontMenu){this.fontMenu.innerText="";var b=document.createElement("div");b.style.display="inline-block";b.style.overflow="hidden";b.style.textOverflow="ellipsis";b.style.maxWidth="66px";mxUtils.write(b,a);this.fontMenu.appendChild(b);this.appendDropDownImageHtml(this.fontMenu)}};
Toolbar.prototype.setFontSize=function(a){if(null!=this.sizeMenu){this.sizeMenu.innerText="";var b=document.createElement("div");b.style.display="inline-block";b.style.overflow="hidden";b.style.textOverflow="ellipsis";b.style.maxWidth="24px";mxUtils.write(b,a);this.sizeMenu.appendChild(b);this.appendDropDownImageHtml(this.sizeMenu)}};
-Toolbar.prototype.createTextToolbar=function(){var a=this.editorUi,b=a.editor.graph,e=this.addMenu("",mxResources.get("style"),!0,"formatBlock");e.style.position="relative";e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.innerHTML=mxResources.get("style");this.appendDropDownImageHtml(e);EditorUi.compactUi&&(e.style.paddingRight="18px",e.getElementsByTagName("img")[0].style.right="1px",e.getElementsByTagName("img")[0].style.top="5px");this.addSeparator();this.fontMenu=this.addMenu("",mxResources.get("fontFamily"),
-!0,"fontFamily");this.fontMenu.style.position="relative";this.fontMenu.style.whiteSpace="nowrap";this.fontMenu.style.overflow="hidden";this.fontMenu.style.width="68px";this.setFontName(Menus.prototype.defaultFont);EditorUi.compactUi&&(this.fontMenu.style.paddingRight="18px",this.fontMenu.getElementsByTagName("img")[0].style.right="1px",this.fontMenu.getElementsByTagName("img")[0].style.top="5px");this.addSeparator();this.sizeMenu=this.addMenu(Menus.prototype.defaultFontSize,mxResources.get("fontSize"),
-!0,"fontSize");this.sizeMenu.style.position="relative";this.sizeMenu.style.whiteSpace="nowrap";this.sizeMenu.style.overflow="hidden";this.sizeMenu.style.width="24px";this.setFontSize(Menus.prototype.defaultFontSize);EditorUi.compactUi&&(this.sizeMenu.style.paddingRight="18px",this.sizeMenu.getElementsByTagName("img")[0].style.right="1px",this.sizeMenu.getElementsByTagName("img")[0].style.top="5px");e=this.addItems("- undo redo - bold italic underline".split(" "));e[1].setAttribute("title",mxResources.get("undo")+
-" ("+a.actions.get("undo").shortcut+")");e[2].setAttribute("title",mxResources.get("redo")+" ("+a.actions.get("redo").shortcut+")");e[4].setAttribute("title",mxResources.get("bold")+" ("+a.actions.get("bold").shortcut+")");e[5].setAttribute("title",mxResources.get("italic")+" ("+a.actions.get("italic").shortcut+")");e[6].setAttribute("title",mxResources.get("underline")+" ("+a.actions.get("underline").shortcut+")");var f=this.addMenuFunction("",mxResources.get("align"),!1,mxUtils.bind(this,function(d){h=
-d.addItem("",null,mxUtils.bind(this,function(g){b.cellEditor.alignText(mxConstants.ALIGN_LEFT,g);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_LEFT],"cells",[b.cellEditor.getEditingCell()]))}),null,"geIcon geSprite geSprite-left");h.setAttribute("title",mxResources.get("left"));h=d.addItem("",null,mxUtils.bind(this,function(g){b.cellEditor.alignText(mxConstants.ALIGN_CENTER,g);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],
-"values",[mxConstants.ALIGN_CENTER],"cells",[b.cellEditor.getEditingCell()]))}),null,"geIcon geSprite geSprite-center");h.setAttribute("title",mxResources.get("center"));h=d.addItem("",null,mxUtils.bind(this,function(g){b.cellEditor.alignText(mxConstants.ALIGN_RIGHT,g);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],"cells",[b.cellEditor.getEditingCell()]))}),null,"geIcon geSprite geSprite-right");h.setAttribute("title",mxResources.get("right"));
-h=d.addItem("",null,mxUtils.bind(this,function(){document.execCommand("justifyfull",!1,null)}),null,"geIcon geSprite geSprite-justifyfull");h.setAttribute("title",mxResources.get("justifyfull"));h=d.addItem("",null,mxUtils.bind(this,function(){document.execCommand("insertorderedlist",!1,null)}),null,"geIcon geSprite geSprite-orderedlist");h.setAttribute("title",mxResources.get("numberedList"));h=d.addItem("",null,mxUtils.bind(this,function(){document.execCommand("insertunorderedlist",!1,null)}),null,
-"geIcon geSprite geSprite-unorderedlist");h.setAttribute("title",mxResources.get("bulletedList"));h=d.addItem("",null,mxUtils.bind(this,function(){document.execCommand("outdent",!1,null)}),null,"geIcon geSprite geSprite-outdent");h.setAttribute("title",mxResources.get("decreaseIndent"));h=d.addItem("",null,mxUtils.bind(this,function(){document.execCommand("indent",!1,null)}),null,"geIcon geSprite geSprite-indent");h.setAttribute("title",mxResources.get("increaseIndent"))}));f.style.position="relative";
-f.style.whiteSpace="nowrap";f.style.overflow="hidden";f.style.width="30px";f.innerText="";e=document.createElement("div");e.className="geSprite geSprite-left";e.style.marginLeft="-2px";f.appendChild(e);this.appendDropDownImageHtml(f);EditorUi.compactUi&&(f.getElementsByTagName("img")[0].style.left="22px",f.getElementsByTagName("img")[0].style.top="5px");f=this.addMenuFunction("",mxResources.get("format"),!1,mxUtils.bind(this,function(d){h=d.addItem("",null,this.editorUi.actions.get("subscript").funct,
-null,"geIcon geSprite geSprite-subscript");h.setAttribute("title",mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)");h=d.addItem("",null,this.editorUi.actions.get("superscript").funct,null,"geIcon geSprite geSprite-superscript");h.setAttribute("title",mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)");h=d.addItem("",null,this.editorUi.actions.get("fontColor").funct,null,"geIcon geSprite geSprite-fontcolor");h.setAttribute("title",mxResources.get("fontColor"));h=d.addItem("",null,this.editorUi.actions.get("backgroundColor").funct,
-null,"geIcon geSprite geSprite-fontbackground");h.setAttribute("title",mxResources.get("backgroundColor"));h=d.addItem("",null,mxUtils.bind(this,function(){document.execCommand("removeformat",!1,null)}),null,"geIcon geSprite geSprite-removeformat");h.setAttribute("title",mxResources.get("removeFormat"))}));f.style.position="relative";f.style.whiteSpace="nowrap";f.style.overflow="hidden";f.style.width="30px";f.innerText="";e=document.createElement("div");e.className="geSprite geSprite-dots";e.style.marginLeft=
-"-2px";f.appendChild(e);this.appendDropDownImageHtml(f);EditorUi.compactUi&&(f.getElementsByTagName("img")[0].style.left="22px",f.getElementsByTagName("img")[0].style.top="5px");this.addSeparator();this.addButton("geIcon geSprite geSprite-code",mxResources.get("html"),function(){b.cellEditor.toggleViewMode();0<b.cellEditor.textarea.innerHTML.length&&("&nbsp;"!=b.cellEditor.textarea.innerHTML||!b.cellEditor.clearOnChange)&&window.setTimeout(function(){document.execCommand("selectAll",!1,null)})});
-this.addSeparator();f=this.addMenuFunction("",mxResources.get("insert"),!0,mxUtils.bind(this,function(d){d.addItem(mxResources.get("insertLink"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("link").funct()}));d.addItem(mxResources.get("insertImage"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("image").funct()}));d.addItem(mxResources.get("insertHorizontalRule"),null,mxUtils.bind(this,function(){document.execCommand("inserthorizontalrule",!1,null)}))}));f.style.whiteSpace=
-"nowrap";f.style.overflow="hidden";f.style.position="relative";f.style.width="16px";f.innerText="";e=document.createElement("div");e.className="geSprite geSprite-plus";e.style.marginLeft="-4px";e.style.marginTop="-3px";f.appendChild(e);this.appendDropDownImageHtml(f);EditorUi.compactUi&&(f.getElementsByTagName("img")[0].style.left="24px",f.getElementsByTagName("img")[0].style.top="5px",f.style.width="30px");this.addSeparator();var h=this.addMenuFunction("geIcon geSprite geSprite-table",mxResources.get("table"),
-!1,mxUtils.bind(this,function(d){var g=b.getSelectedElement(),m=b.getParentByNames(g,["TD","TH"],b.cellEditor.text2),q=b.getParentByName(g,"TR",b.cellEditor.text2);if(null==q)this.editorUi.menus.addInsertTableItem(d);else{var k=b.getParentByName(q,"TABLE",b.cellEditor.text2);g=d.addItem("",null,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(k,null!=m?m.cellIndex:0))}catch(u){this.editorUi.handleError(u)}}),null,"geIcon geSprite geSprite-insertcolumnbefore");g.setAttribute("title",mxResources.get("insertColumnBefore"));
-g=d.addItem("",null,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(k,null!=m?m.cellIndex+1:-1))}catch(u){this.editorUi.handleError(u)}}),null,"geIcon geSprite geSprite-insertcolumnafter");g.setAttribute("title",mxResources.get("insertColumnAfter"));g=d.addItem("Delete column",null,mxUtils.bind(this,function(){if(null!=m)try{b.deleteColumn(k,m.cellIndex)}catch(u){this.editorUi.handleError(u)}}),null,"geIcon geSprite geSprite-deletecolumn");g.setAttribute("title",mxResources.get("deleteColumn"));
-g=d.addItem("",null,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(k,q.sectionRowIndex))}catch(u){this.editorUi.handleError(u)}}),null,"geIcon geSprite geSprite-insertrowbefore");g.setAttribute("title",mxResources.get("insertRowBefore"));g=d.addItem("",null,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(k,q.sectionRowIndex+1))}catch(u){this.editorUi.handleError(u)}}),null,"geIcon geSprite geSprite-insertrowafter");g.setAttribute("title",mxResources.get("insertRowAfter"));g=d.addItem("",
-null,mxUtils.bind(this,function(){try{b.deleteRow(k,q.sectionRowIndex)}catch(u){this.editorUi.handleError(u)}}),null,"geIcon geSprite geSprite-deleterow");g.setAttribute("title",mxResources.get("deleteRow"));g=d.addItem("",null,mxUtils.bind(this,function(){var u=k.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(w,z,C,E){return"#"+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)+("0"+Number(E).toString(16)).substr(-2)});this.editorUi.pickColor(u,
-function(w){null==w||w==mxConstants.NONE?(k.removeAttribute("border"),k.style.border="",k.style.borderCollapse=""):(k.setAttribute("border","1"),k.style.border="1px solid "+w,k.style.borderCollapse="collapse")})}),null,"geIcon geSprite geSprite-strokecolor");g.setAttribute("title",mxResources.get("borderColor"));g=d.addItem("",null,mxUtils.bind(this,function(){var u=k.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(w,z,C,E){return"#"+("0"+Number(z).toString(16)).substr(-2)+
-("0"+Number(C).toString(16)).substr(-2)+("0"+Number(E).toString(16)).substr(-2)});this.editorUi.pickColor(u,function(w){k.style.backgroundColor=null==w||w==mxConstants.NONE?"":w})}),null,"geIcon geSprite geSprite-fillcolor");g.setAttribute("title",mxResources.get("backgroundColor"));g=d.addItem("",null,mxUtils.bind(this,function(){var u=k.getAttribute("cellPadding")||0;u=new FilenameDialog(this.editorUi,u,mxResources.get("apply"),mxUtils.bind(this,function(w){null!=w&&0<w.length?k.setAttribute("cellPadding",
-w):k.removeAttribute("cellPadding")}),mxResources.get("spacing"));this.editorUi.showDialog(u.container,300,80,!0,!0);u.init()}),null,"geIcon geSprite geSprite-fit");g.setAttribute("title",mxResources.get("spacing"));g=d.addItem("",null,mxUtils.bind(this,function(){k.setAttribute("align","left")}),null,"geIcon geSprite geSprite-left");g.setAttribute("title",mxResources.get("left"));g=d.addItem("",null,mxUtils.bind(this,function(){k.setAttribute("align","center")}),null,"geIcon geSprite geSprite-center");
-g.setAttribute("title",mxResources.get("center"));g=d.addItem("",null,mxUtils.bind(this,function(){k.setAttribute("align","right")}),null,"geIcon geSprite geSprite-right");g.setAttribute("title",mxResources.get("right"))}}));h.style.position="relative";h.style.whiteSpace="nowrap";h.style.overflow="hidden";h.style.width="30px";h.innerText="";e=document.createElement("div");e.className="geSprite geSprite-table";e.style.marginLeft="-2px";h.appendChild(e);this.appendDropDownImageHtml(h);EditorUi.compactUi&&
-(h.getElementsByTagName("img")[0].style.left="22px",h.getElementsByTagName("img")[0].style.top="5px")};Toolbar.prototype.hideMenu=function(){this.editorUi.hideCurrentMenu()};Toolbar.prototype.addMenu=function(a,b,e,f,h,d,g){var m=this.editorUi.menus.get(f),q=this.addMenuFunction(a,b,e,function(){m.funct.apply(m,arguments)},h,d);g||"function"!==typeof q.setEnabled||m.addListener("stateChanged",function(){q.setEnabled(m.enabled)});return q};
-Toolbar.prototype.addMenuFunction=function(a,b,e,f,h,d){return this.addMenuFunctionInContainer(null!=h?h:this.container,a,b,e,f,d)};Toolbar.prototype.addMenuFunctionInContainer=function(a,b,e,f,h,d){b=f?this.createLabel(b):this.createButton(b);this.initElement(b,e);this.addMenuHandler(b,f,h,d);a.appendChild(b);return b};Toolbar.prototype.addSeparator=function(a){a=null!=a?a:this.container;var b=document.createElement("div");b.className="geSeparator";a.appendChild(b);return b};
-Toolbar.prototype.addItems=function(a,b,e,f){for(var h=[],d=0;d<a.length;d++){var g=a[d];"-"==g?h.push(this.addSeparator(b)):h.push(this.addItem(null!=f?f[d]:"geSprite-"+g.toLowerCase(),g,b,e))}return h};
-Toolbar.prototype.addItem=function(a,b,e,f){var h=this.editorUi.actions.get(b),d=null;null!=h&&(b=h.label,null!=h.shortcut&&(b+=" ("+h.shortcut+")"),d=this.addButton(a,b,h.funct,e),f||"function"!==typeof d.setEnabled||(d.setEnabled(h.enabled),h.addListener("stateChanged",function(){d.setEnabled(h.enabled)})));return d};Toolbar.prototype.addButton=function(a,b,e,f){a=this.createButton(a);f=null!=f?f:this.container;this.initElement(a,b);this.addClickHandler(a,e);f.appendChild(a);return a};
-Toolbar.prototype.initElement=function(a,b){null!=b&&a.setAttribute("title",b);this.addEnabledState(a)};Toolbar.prototype.addEnabledState=function(a){var b=a.className;a.setEnabled=function(e){a.enabled=e;a.className=e?b:b+" mxDisabled"};a.setEnabled(!0)};Toolbar.prototype.addClickHandler=function(a,b){null!=b&&(mxEvent.addListener(a,"click",function(e){a.enabled&&b(e);mxEvent.consume(e)}),mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(e){e.preventDefault()})))};
-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"):e.className="geSprite "+a);b.appendChild(e);return b};
+Toolbar.prototype.createTextToolbar=function(){var a=this.editorUi,b=a.editor.graph,e=this.addMenu("",mxResources.get("style"),!0,"formatBlock");e.style.position="relative";e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.innerHTML=mxResources.get("style");e.style.width="46px";this.appendDropDownImageHtml(e);this.addSeparator();this.fontMenu=this.addMenu("",mxResources.get("fontFamily"),!0,"fontFamily");this.fontMenu.style.position="relative";this.fontMenu.style.whiteSpace="nowrap";this.fontMenu.style.overflow=
+"hidden";this.fontMenu.style.width="78px";this.setFontName(Menus.prototype.defaultFont);this.addSeparator();this.sizeMenu=this.addMenu(Menus.prototype.defaultFontSize,mxResources.get("fontSize"),!0,"fontSize");this.sizeMenu.style.position="relative";this.sizeMenu.style.whiteSpace="nowrap";this.sizeMenu.style.overflow="hidden";this.sizeMenu.style.width="34px";this.setFontSize(Menus.prototype.defaultFontSize);e=this.addItems("- undo redo - bold italic underline".split(" "),null,null,[null,Editor.undoImage,
+Editor.redoImage,null,Editor.boldImage,Editor.italicImage,Editor.underlineImage]);e[1].setAttribute("title",mxResources.get("undo")+" ("+a.actions.get("undo").shortcut+")");e[2].setAttribute("title",mxResources.get("redo")+" ("+a.actions.get("redo").shortcut+")");e[4].setAttribute("title",mxResources.get("bold")+" ("+a.actions.get("bold").shortcut+")");e[5].setAttribute("title",mxResources.get("italic")+" ("+a.actions.get("italic").shortcut+")");e[6].setAttribute("title",mxResources.get("underline")+
+" ("+a.actions.get("underline").shortcut+")");e=this.addMenuFunction("",mxResources.get("align"),!1,mxUtils.bind(this,function(h){f=h.addItem("",Editor.alignLeftImage,mxUtils.bind(this,function(d){b.cellEditor.alignText(mxConstants.ALIGN_LEFT,d);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_LEFT],"cells",[b.cellEditor.getEditingCell()]))}));f.setAttribute("title",mxResources.get("left"));f=h.addItem("",Editor.alignCenterImage,mxUtils.bind(this,
+function(d){b.cellEditor.alignText(mxConstants.ALIGN_CENTER,d);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_CENTER],"cells",[b.cellEditor.getEditingCell()]))}));f.setAttribute("title",mxResources.get("center"));f=h.addItem("",Editor.alignRightImage,mxUtils.bind(this,function(d){b.cellEditor.alignText(mxConstants.ALIGN_RIGHT,d);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],
+"cells",[b.cellEditor.getEditingCell()]))}));f.setAttribute("title",mxResources.get("right"));f=h.addItem("",Editor.alignJustifyImage,mxUtils.bind(this,function(){document.execCommand("justifyfull",!1,null)}));f.setAttribute("title",mxResources.get("justifyfull"));f=h.addItem("",Editor.orderedListImage,mxUtils.bind(this,function(){document.execCommand("insertorderedlist",!1,null)}));f.setAttribute("title",mxResources.get("numberedList"));f=h.addItem("",Editor.unorderedListImage,mxUtils.bind(this,
+function(){document.execCommand("insertunorderedlist",!1,null)}));f.setAttribute("title",mxResources.get("bulletedList"));f=h.addItem("",Editor.indentImage,mxUtils.bind(this,function(){document.execCommand("indent",!1,null)}));f.setAttribute("title",mxResources.get("increaseIndent"));f=h.addItem("",Editor.outdentImage,mxUtils.bind(this,function(){document.execCommand("outdent",!1,null)}));f.setAttribute("title",mxResources.get("decreaseIndent"))}));this.addDropDownArrow(e,Editor.alignLeftImage,38);
+e=this.addMenuFunction("",mxResources.get("format"),!1,mxUtils.bind(this,function(h){f=h.addItem("",Editor.subscriptImage,this.editorUi.actions.get("subscript").funct);f.setAttribute("title",mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)");f=h.addItem("",Editor.superscriptImage,this.editorUi.actions.get("superscript").funct);f.setAttribute("title",mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)");f=h.addItem("",Editor.fontColorImage,this.editorUi.actions.get("fontColor").funct);f.setAttribute("title",
+mxResources.get("fontColor"));f=h.addItem("",Editor.backgroundColorImage,this.editorUi.actions.get("backgroundColor").funct);f.setAttribute("title",mxResources.get("backgroundColor"));f=h.addItem("",Editor.removeFormatImage,mxUtils.bind(this,function(){document.execCommand("removeformat",!1,null)}));f.setAttribute("title",mxResources.get("removeFormat"))}));this.addDropDownArrow(e,Editor.textFormatImage,38);this.addSeparator();this.addButton(Editor.codeImage,mxResources.get("html"),function(){b.cellEditor.toggleViewMode();
+0<b.cellEditor.textarea.innerHTML.length&&("&nbsp;"!=b.cellEditor.textarea.innerHTML||!b.cellEditor.clearOnChange)&&window.setTimeout(function(){document.execCommand("selectAll",!1,null)})});this.addSeparator();e=this.addMenuFunction("",mxResources.get("insert"),!0,mxUtils.bind(this,function(h){h.addItem(mxResources.get("insertLink"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("link").funct()}));h.addItem(mxResources.get("insertImage"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("image").funct()}));
+h.addItem(mxResources.get("insertHorizontalRule"),null,mxUtils.bind(this,function(){document.execCommand("inserthorizontalrule",!1,null)}))}));this.addDropDownArrow(e,Editor.plusImage,38);this.addSeparator();var f=this.addMenuFunction(Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(h){var d=b.getSelectedElement(),g=b.getParentByNames(d,["TD","TH"],b.cellEditor.text2),m=b.getParentByName(d,"TR",b.cellEditor.text2);if(null==m)this.editorUi.menus.addInsertTableItem(h);else{var p=
+b.getParentByName(m,"TABLE",b.cellEditor.text2);d=h.addItem("",Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(p,null!=g?g.cellIndex:0))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertColumnBefore"));d=h.addItem("",Editor.addColumnRightImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(p,null!=g?g.cellIndex+1:-1))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertColumnAfter"));
+d=h.addItem("Delete column",Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=g)try{b.deleteColumn(p,g.cellIndex)}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("deleteColumn"));d=h.addItem("",Editor.addRowAboveImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(p,m.sectionRowIndex))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertRowBefore"));d=h.addItem("",Editor.addRowBelowImage,mxUtils.bind(this,
+function(){try{b.selectNode(b.insertRow(p,m.sectionRowIndex+1))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertRowAfter"));d=h.addItem("",Editor.removeRowImage,mxUtils.bind(this,function(){try{b.deleteRow(p,m.sectionRowIndex)}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("deleteRow"));d=h.addItem("",Editor.strokeColorImage,mxUtils.bind(this,function(){var k=p.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,
+function(u,x,z,C){return"#"+("0"+Number(x).toString(16)).substr(-2)+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)});this.editorUi.pickColor(k,function(u){null==u||u==mxConstants.NONE?(p.removeAttribute("border"),p.style.border="",p.style.borderCollapse=""):(p.setAttribute("border","1"),p.style.border="1px solid "+u,p.style.borderCollapse="collapse")})}));d.setAttribute("title",mxResources.get("borderColor"));d=h.addItem("",Editor.fillColorImage,mxUtils.bind(this,
+function(){var k=p.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(u,x,z,C){return"#"+("0"+Number(x).toString(16)).substr(-2)+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)});this.editorUi.pickColor(k,function(u){p.style.backgroundColor=null==u||u==mxConstants.NONE?"":u})}));d.setAttribute("title",mxResources.get("backgroundColor"));d=h.addItem("",Editor.spacingImage,mxUtils.bind(this,function(){var k=p.getAttribute("cellPadding")||
+0;k=new FilenameDialog(this.editorUi,k,mxResources.get("apply"),mxUtils.bind(this,function(u){null!=u&&0<u.length?p.setAttribute("cellPadding",u):p.removeAttribute("cellPadding")}),mxResources.get("spacing"));this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}));d.setAttribute("title",mxResources.get("spacing"));d=h.addItem("",Editor.alignLeftImage,mxUtils.bind(this,function(){p.setAttribute("align","left")}));d.setAttribute("title",mxResources.get("left"));d=h.addItem("",Editor.alignCenterImage,
+mxUtils.bind(this,function(){p.setAttribute("align","center")}));d.setAttribute("title",mxResources.get("center"));d=h.addItem("",Editor.alignRightImage,mxUtils.bind(this,function(){p.setAttribute("align","right")}));d.setAttribute("title",mxResources.get("right"))}}));this.addDropDownArrow(f,Editor.tableImage,38)};Toolbar.prototype.hideMenu=function(){this.editorUi.hideCurrentMenu()};
+Toolbar.prototype.addMenu=function(a,b,e,f,h,d,g){var m=this.editorUi.menus.get(f),p=this.addMenuFunction(a,b,e,function(){m.funct.apply(m,arguments)},h,d);g||"function"!==typeof p.setEnabled||m.addListener("stateChanged",function(){p.setEnabled(m.enabled)});return p};Toolbar.prototype.addMenuFunction=function(a,b,e,f,h,d){return this.addMenuFunctionInContainer(null!=h?h:this.container,a,b,e,f,d)};
+Toolbar.prototype.addMenuFunctionInContainer=function(a,b,e,f,h,d){b=f?this.createLabel(b):this.createButton(b);this.initElement(b,e);this.addMenuHandler(b,f,h,d);a.appendChild(b);return b};Toolbar.prototype.addSeparator=function(a){a=null!=a?a:this.container;var b=document.createElement("div");b.className="geSeparator";a.appendChild(b);return b};
+Toolbar.prototype.addItems=function(a,b,e,f){for(var h=[],d=0;d<a.length;d++){var g=a[d];"-"==g?h.push(this.addSeparator(b)):h.push(this.addItem(null!=f?f[d]:null,g,b,e))}return h};Toolbar.prototype.addItem=function(a,b,e,f){var h=this.editorUi.actions.get(b),d=null;null!=h&&(b=h.label,null!=h.shortcut&&(b+=" ("+h.shortcut+")"),d=this.addButton(a,b,h.funct,e),f||"function"!==typeof d.setEnabled||(d.setEnabled(h.enabled),h.addListener("stateChanged",function(){d.setEnabled(h.enabled)})));return d};
+Toolbar.prototype.addButton=function(a,b,e,f){a=this.createButton(a);f=null!=f?f:this.container;this.initElement(a,b);this.addClickHandler(a,e);f.appendChild(a);return a};Toolbar.prototype.initElement=function(a,b){null!=b&&a.setAttribute("title",b);this.addEnabledState(a)};Toolbar.prototype.addEnabledState=function(a){var b=a.className;a.setEnabled=function(e){a.enabled=e;a.className=e?b:b+" mxDisabled"};a.setEnabled(!0)};
+Toolbar.prototype.addClickHandler=function(a,b){null!=b&&(mxEvent.addListener(a,"click",function(e){a.enabled&&b(e);mxEvent.consume(e)}),mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(e){e.preventDefault()})))};
+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 I=Math.floor(E),
+arguments);this.editorUi.resetCurrentMenu();d.destroy()});var p=mxUtils.getOffset(a);d.popup(p.x,p.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=
+"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,p=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),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=
+mxUtils.rgba2hex(D)))}),k=mxUtils.bind(this,function(E){0==h[2]&&(h[2]=1);g=!0;x(E)}),u=mxUtils.bind(this,function(E){m=!0;x(E)}),x=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),p())}),z=mxUtils.bind(this,function(){g=m=!1});mxEvent.addGestureListeners(e,k);mxEvent.addGestureListeners(sliderBox,u);mxEvent.addGestureListeners(b,null,x,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 I=G.g/255,L=G.b/255,T=Math.min(Math.min(E,I),L);G=Math.max(Math.max(E,I),L);var K=G-T;0===K?E=[null,0,G]:(E=E===T?3+(L-I)/K:I===T?5+(E-L)/K:1+(I-E)/K,E=[6===E?0:E,K/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,T=Math.min(Math.min(E,I),L);G=Math.max(Math.max(E,I),L);var K=G-T;0===K?E=[null,0,G]:(E=E===T?3+(L-I)/K:I===T?5+(E-L)/K:1+(I-E)/K,E=[6===E?0:E,K/G,G]);null!=E[0]&&(h[0]=E[0]);0!=E[2]&&(h[1]=E[1]);h[2]=E[2];p(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(V){return mxUtils.color2hex("#"+V).substring(1).toUpperCase()}function q(){W.src="none"==M.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(V){""==V.value&&null!=I&&T?V.style.background=V==Y?I.dark:I.light:""==V.value||V.value==mxConstants.NONE||mxUtils.isVarColor(V.value)?V.style.background="transparent":V.style.background="#"+V.value;V.style.color="transparent"==V.style.background?"light-dark(#000000, #ffffff)":mxUtils.isDarkColor(V.style.background)?
-"#ffffff":"#000000"}function u(){k(K);k(Y)}function w(V){V?(K.value="",Y.value="",Q.value="automatic",K.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),Y.setAttribute("title",mxResources.get("useBlackAndWhite")),K.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==K.value&&null!=I&&(K.value=I.light.substring(1).toUpperCase()),K.removeAttribute("placeholder"),K.removeAttribute("title"),""==Y.value&&null!=I&&(Y.value=I.dark.substring(1).toUpperCase()),Y.removeAttribute("placeholder"),
-Y.removeAttribute("title"),V=!1);T=V}function z(V){var ja=V.value,H=ja.toLowerCase();null==h||""!=ja&&"automatic"!=H&&"default"!=H&&H!=mxResources.get("default").toLowerCase()&&H!=mxResources.get("automatic").toLowerCase()||null==I?(V.value==mxConstants.NONE||mxUtils.isVarColor(V.value)||(V.value=m(V.value),oa.fromString("#"+V.value)),w(!1),V!=Y||K.value==mxConstants.NONE&&Y.value==mxConstants.NONE||(Q.value="custom"),V==K&&"automatic"==Q.value&&(K.value==mxConstants.NONE?Y.value=mxConstants.NONE:
-mxUtils.isVarColor(K.value)?Y.value=K.value:Y.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+V.value)).substring(1).toUpperCase()),u()):aa.click()}function C(){var V=K.value,ja=Y.value;if(T&&null!=I||(/(^#?[a-zA-Z0-9]*$)/.test(V)||mxUtils.isVarColor(V))&&(/(^#?[a-zA-Z0-9]*$)/.test(ja)||mxUtils.isVarColor(ja))){if(T)V="default";else if(""==V&&(V=mxConstants.NONE),""==ja&&(ja=mxConstants.NONE),V==mxConstants.NONE||mxUtils.isVarColor(V)||"#"==V.charAt(0)||(V="#"+m(V)),ja==mxConstants.NONE||mxUtils.isVarColor(ja)||
-"#"==ja.charAt(0)||(ja="#"+m(ja)),ColorDialog.addRecentColor("none"!=V?V.substring(1):V,12),"automatic"!=Q.value&&ColorDialog.addRecentColor("none"!=ja?ja.substring(1):ja,12),"none"!=V||"none"!=ja)V=V==mxConstants.NONE?"transparent":V,ja=ja==mxConstants.NONE?"transparent":ja,g||"automatic"==Q.value||(V="light-dark("+V+","+ja+")");ia(V);a.hideDialog()}else a.handleError({message:mxResources.get("invalidInput")})}function E(){mxClient.IS_TOUCH||(qa.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?
-qa.select():document.execCommand("selectAll",!1,null))}function D(){var V=Z(0==ColorDialog.recentColors.length?["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);V.style.marginBottom="8px";return V}function G(V){13==V.keyCode&&(z(mxEvent.getSource(V)),C())}var I=null!=d?mxUtils.getLightDarkColor(d):null,L=a.editor.graph;this.editorUi=a;var T=!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 K=document.createElement("input");K.style.textOverflow="ellipsis";K.style.margin="0 0 0 4px";K.style.width="100%";d=document.createElement("div");d.style.padding="0 4px";var U=document.createElement("div");U.style.display="flex";U.style.alignItems="center";d.appendChild(U);var Y=document.createElement("input");Y.style.textOverflow="ellipsis";Y.style.margin="0 4px";Y.style.maxWidth="60px";Y.style.width="100%";var Q=document.createElement("select");Q.style.textOverflow="ellipsis";
-Q.style.width="100%";var P=document.createElement("option");P.setAttribute("value","automatic");mxUtils.write(P,mxResources.get("automatic"));Q.appendChild(P);P=document.createElement("option");P.setAttribute("value","custom");mxUtils.write(P,mxResources.get("userDefined"));Q.appendChild(P);Q.value=mxUtils.isLightDarkColor(b)?"custom":"automatic";var M=document.createElement("div");M.style.padding="0 6px 0 6px";P=document.createElement("img");P.setAttribute("title",mxResources.get("dark"));P.className=
-"geAdaptiveAsset";P.src=Editor.thinDarkImage;P.style.width="20px";M.appendChild(P);mxEvent.addListener(P,"click",function(){Y.focus()});M.appendChild(Y);M.appendChild(Q);M.style.display="flex";M.style.alignItems="center";P=document.createElement("div");P.style.display="flex";P.style.alignItems="center";P.style.userSelect="none";P.style.cursor="pointer";P.style.padding="2px 0 2px 0";var W=document.createElement("img");W.setAttribute("title",mxResources.get("dark"));W.className="geAdaptiveAsset";W.style.marginLeft=
-"-2px";P.appendChild(W);mxUtils.write(P,mxResources.get("advanced"));q();mxEvent.addListener(P,"click",function(){M.style.display="none"==M.style.display?"flex":"none";q();q();ColorDialog.collapsed="none"==M.style.display});var aa=mxUtils.button("",function(){w(!0);u();qa.focus();""==qa.value&&null!=I&&T&&oa.fromString(qa==Y?I.dark:I.light,!0)});mxEvent.addListener(Q,"change",function(){"automatic"==Q.value?(K.focus(),z(K)):(w(!1),mxUtils.isVarColor(Y.value)||(Y.value=T&&null!=I?I.dark.substring(1).toUpperCase():
-Y.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+K.value)).substring(1).toUpperCase()),Y.focus(),E());u()});mxEvent.addListener(K,"change",function(){z(K)});mxEvent.addListener(Y,"change",function(){z(Y)});var ia=null!=e?e:this.createApplyFunction();this.init=function(){E()};var oa=new ColorPicker,qa=Editor.isDarkMode()&&("auto"==L.getAdaptiveColors()||"simple"==L.getAdaptiveColors()&&"custom"==Q.value)&&!g?Y:K;mxEvent.addListener(K,"focus",function(){qa=K});mxEvent.addListener(Y,"focus",function(){qa=
-Y});oa.addListener("change",function(V,ja){V=ja.getProperty("color").substring(1).toUpperCase();qa.value.toUpperCase()!=V&&(qa.value=V,z(qa),window.setTimeout(function(){qa.focus()},0))});e=document.createElement("div");e.appendChild(oa.div);var O=document.createElement("div");O.style.display="flex";O.style.flexFlow="row wrap";O.style.justifyContent="center";O.style.paddingTop="10px";var Z=mxUtils.bind(this,function(V,ja,H,ea){ja=null!=ja?ja:12;var la=document.createElement("table");la.style.borderCollapse=
-"collapse";la.setAttribute("cellspacing","0");la.style.marginBottom="20px";la.style.cellSpacing="0px";la.style.marginLeft="1px";var sa=document.createElement("tbody");la.appendChild(sa);for(var Pa=V.length/ja,ma=0;ma<Pa;ma++){for(var Ca=document.createElement("tr"),Da=0;Da<ja;Da++)mxUtils.bind(this,function(Ga){var Ia=document.createElement("td");Ia.style.border="0px solid black";Ia.style.padding="0px";Ia.style.width="16px";Ia.style.height="16px";null==Ga&&(Ga=H);if(null!=Ga){Ia.style.borderWidth=
-"1px";Ga==mxConstants.NONE?Ia.style.background="url('"+Dialog.prototype.noColorImage+"')":Ia.style.backgroundColor="#"+Ga;var Ha=this.colorNames[String(Ga).toUpperCase()];null!=Ha&&Ia.setAttribute("title",Ha)}Ca.appendChild(Ia);null!=Ga&&(Ia.style.cursor="pointer",mxEvent.addListener(Ia,"click",function(){if(Ga==mxConstants.NONE){qa==Y&&Y.value==mxConstants.NONE?K.value=mxConstants.NONE:qa.value=mxConstants.NONE;if(qa==K||qa==Y&&K.value==mxConstants.NONE)Q.value="automatic";z(qa);window.setTimeout(function(){qa.focus()},
-0)}else oa.fromString("#"+Ga)}),mxEvent.addListener(Ia,"dblclick",C))})(V[ma*ja+Da]);sa.appendChild(Ca)}ea&&(V=document.createElement("td"),V.setAttribute("title",mxResources.get("reset")),V.className="geAdaptiveAsset",V.style.border="1px solid black",V.style.padding="0px",V.style.width="16px",V.style.height="16px",V.style.backgroundImage="url('"+Editor.crossImage+"')",V.style.backgroundPosition="center center",V.style.backgroundSize="14px 14px",V.style.backgroundRepeat="no-repeat",V.style.cursor=
-"pointer",Ca.appendChild(V),mxEvent.addListener(V,"click",function(){ColorDialog.resetRecentColors();la.parentNode.replaceChild(D(),la)}));O.appendChild(la);return la});g||(d.appendChild(P),!ColorDialog.collapsed||Editor.isDarkMode()&&"auto"==L.getAdaptiveColors()||"automatic"!=Q.value||(M.style.display="none",q()),P=document.createElement("img"),P.setAttribute("title",mxResources.get("light")),P.className="geAdaptiveAsset",P.src=Editor.thinLightImage,P.style.width="20px",U.appendChild(P),mxEvent.addListener(P,
-"click",function(){K.focus()}));U.appendChild(K);null!=I&&(aa.setAttribute("title",mxResources.get("useBlackAndWhite")),aa.style.cursor="pointer",aa.style.position="relative",aa.style.marginLeft="4px",aa.innerText="",L=document.createElement("div"),L.style.backgroundImage="linear-gradient(to right bottom, "+I.cssText+" 50%, "+mxUtils.invertLightDarkColor(I).cssText+" 50.3%)",L.style.display="inline-block",L.style.verticalAlign="middle",L.style.borderStyle="solid",L.style.borderWidth="1px",L.style.marginTop=
-"-2px",L.style.width="12px",L.style.height="12px",aa.appendChild(L),U.appendChild(aa),mxEvent.addListener(aa,"dblclick",C));var ca=document.createElement("input");ca.setAttribute("type","color");ca.style.position="relative";ca.style.visibility="hidden";ca.style.top="10px";ca.style.width="0px";ca.style.height="0px";ca.style.border="none";e.style.whiteSpace="nowrap";U.appendChild(ca);L=mxUtils.button("",function(){document.activeElement==ca?K.focus():(ca.value="#"+K.value,ca.click())});L.style.cursor=
-"pointer";P=document.createElement("img");P.src=Editor.colorDropperImage;P.className="geAdaptiveAsset";P.style.position="relative";P.style.verticalAlign="middle";P.style.marginTop="-2px";P.style.width="auto";P.style.height="14px";L.appendChild(P);U.appendChild(L);e.appendChild(d);mxEvent.addListener(ca,"change",function(){oa.fromString(ca.value)});g||e.appendChild(M);D();d=Z(this.presetColors);d.style.marginBottom="8px";d=Z(this.defaultColors);d.style.marginBottom="16px";e.appendChild(O);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"));U=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=f&&f()});U.className="geBtn";a.editor.cancelFirst&&d.appendChild(U);L=mxUtils.button(mxResources.get("apply"),C);L.className="geBtn gePrimaryBtn";d.appendChild(L);a.editor.cancelFirst||d.appendChild(U);null!=b&&("default"==
-b?aa.click():(U=mxUtils.getLightDarkColor(b),b==mxConstants.NONE||"transparent"==U.light?K.value=mxConstants.NONE:mxUtils.isVarColor(U.light)?K.value=U.light:(mxUtils.isRgbColor(U.light)?U.light=mxUtils.rgba2hex(U.light):mxUtils.isHexColor(U.light)||(U.light="#"+m(U.light)),K.value=U.light.substring(1).toUpperCase()),b==mxConstants.NONE||"transparent"==U.dark?Y.value=mxConstants.NONE:mxUtils.isVarColor(U.dark)?Y.value=U.dark:(mxUtils.isRgbColor(U.dark)?U.dark=mxUtils.rgba2hex(U.dark):mxUtils.isHexColor(U.dark)||
-(U.dark="#"+m(U.dark)),Y.value=U.dark.substring(1).toUpperCase()),oa.fromString(qa.value,!0),u()));g||!ColorDialog.collapsed||"automatic"!=Q.value||Editor.isDarkMode()||(M.style.display="none",q());e.appendChild(d);this.picker=oa;this.colorInput=K;mxEvent.addListener(K,"keypress",G);mxEvent.addListener(Y,"keypress",G);mxEvent.addListener(e,"keydown",function(V){27==V.keyCode&&(a.hideDialog(),null!=f&&f(),mxEvent.consume(V))});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(" ");
+var ColorDialog=function(a,b,e,f,h,d,g){function m(W){return mxUtils.color2hex("#"+W).substring(1).toUpperCase()}function p(){V.src="none"==M.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(W){""==W.value&&null!=I&&T?W.style.background=W==Y?I.dark:I.light:""==W.value||W.value==mxConstants.NONE||mxUtils.isVarColor(W.value)?W.style.background="transparent":W.style.background="#"+W.value;W.style.color="transparent"==W.style.background?"light-dark(#000000, #ffffff)":mxUtils.isDarkColor(W.style.background)?
+"#ffffff":"#000000"}function u(){k(K);k(Y)}function x(W){W?g&&null!=I?(K.value=I.light.substring(1).toUpperCase(),W=!1):(K.value="",Y.value="",Q.value="automatic",K.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),Y.setAttribute("title",mxResources.get("useBlackAndWhite")),K.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==K.value&&null!=I&&(K.value=I.light.substring(1).toUpperCase()),K.removeAttribute("placeholder"),K.removeAttribute("title"),""==Y.value&&null!=I&&(Y.value=
+I.dark.substring(1).toUpperCase()),Y.removeAttribute("placeholder"),Y.removeAttribute("title"),W=!1);T=W}function z(W){var ja=W.value,H=ja.toLowerCase();null==h||""!=ja&&"automatic"!=H&&"default"!=H&&H!=mxResources.get("default").toLowerCase()&&H!=mxResources.get("automatic").toLowerCase()||null==I?(W.value==mxConstants.NONE||mxUtils.isVarColor(W.value)||(W.value=m(W.value),na.fromString("#"+W.value)),x(!1),W!=Y||K.value==mxConstants.NONE&&Y.value==mxConstants.NONE||(Q.value="custom"),W==K&&"automatic"==
+Q.value&&(K.value==mxConstants.NONE?Y.value=mxConstants.NONE:mxUtils.isVarColor(K.value)?Y.value=K.value:Y.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+W.value)).substring(1).toUpperCase()),u()):aa.click()}function C(){var W=K.value,ja=Y.value;if(T&&null!=I||(/(^#?[a-zA-Z0-9]*$)/.test(W)||mxUtils.isVarColor(W))&&(/(^#?[a-zA-Z0-9]*$)/.test(ja)||mxUtils.isVarColor(ja))){if(T)W="default";else if(""==W&&(W=mxConstants.NONE),""==ja&&(ja=mxConstants.NONE),W==mxConstants.NONE||mxUtils.isVarColor(W)||
+"#"==W.charAt(0)||(W="#"+m(W)),ja==mxConstants.NONE||mxUtils.isVarColor(ja)||"#"==ja.charAt(0)||(ja="#"+m(ja)),ColorDialog.addRecentColor("none"!=W?W.substring(1):W,12),"automatic"!=Q.value&&ColorDialog.addRecentColor("none"!=ja?ja.substring(1):ja,12),"none"!=W||"none"!=ja)W=W==mxConstants.NONE?"transparent":W,ja=ja==mxConstants.NONE?"transparent":ja,g||"automatic"==Q.value||(W="light-dark("+W+","+ja+")");ia(W);a.hideDialog()}else a.handleError({message:mxResources.get("invalidInput")})}function E(){mxClient.IS_TOUCH||
+(qa.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?qa.select():document.execCommand("selectAll",!1,null))}function D(){var W=Z(0==ColorDialog.recentColors.length?["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);W.style.marginBottom="8px";return W}function G(W){13==W.keyCode&&(z(mxEvent.getSource(W)),C())}var I=null!=d?mxUtils.getLightDarkColor(d,null,null,g):null,L=a.editor.graph;this.editorUi=a;var T=!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 K=document.createElement("input");K.style.textOverflow="ellipsis";K.style.margin="0 0 0 4px";K.style.width="100%";d=document.createElement("div");d.style.padding="0 4px";var U=document.createElement("div");U.style.display="flex";U.style.alignItems="center";d.appendChild(U);var Y=document.createElement("input");Y.style.textOverflow="ellipsis";Y.style.margin="0 4px";Y.style.maxWidth="60px";Y.style.width=
+"100%";var Q=document.createElement("select");Q.style.textOverflow="ellipsis";Q.style.width="100%";var P=document.createElement("option");P.setAttribute("value","automatic");mxUtils.write(P,mxResources.get("automatic"));Q.appendChild(P);P=document.createElement("option");P.setAttribute("value","custom");mxUtils.write(P,mxResources.get("userDefined"));Q.appendChild(P);Q.value=mxUtils.isLightDarkColor(b)?"custom":"automatic";var M=document.createElement("div");M.style.padding="0 6px 0 6px";P=document.createElement("img");
+P.setAttribute("title",mxResources.get("dark"));P.className="geAdaptiveAsset";P.src=Editor.thinDarkImage;P.style.width="20px";M.appendChild(P);mxEvent.addListener(P,"click",function(){Y.focus()});M.appendChild(Y);M.appendChild(Q);M.style.display="flex";M.style.alignItems="center";P=document.createElement("div");P.style.display="flex";P.style.alignItems="center";P.style.userSelect="none";P.style.cursor="pointer";P.style.padding="2px 0 2px 0";var V=document.createElement("img");V.setAttribute("title",
+mxResources.get("dark"));V.className="geAdaptiveAsset";V.style.marginLeft="-2px";P.appendChild(V);mxUtils.write(P,mxResources.get("advanced"));p();mxEvent.addListener(P,"click",function(){M.style.display="none"==M.style.display?"flex":"none";p();p();ColorDialog.collapsed="none"==M.style.display});var aa=mxUtils.button("",function(){x(!0);u();qa.focus();""==qa.value&&null!=I&&T&&na.fromString(qa==Y?I.dark:I.light,!0)});mxEvent.addListener(Q,"change",function(){"automatic"==Q.value?(K.focus(),z(K)):
+(x(!1),mxUtils.isVarColor(Y.value)||(Y.value=T&&null!=I?I.dark.substring(1).toUpperCase():Y.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+K.value)).substring(1).toUpperCase()),Y.focus(),E());u()});mxEvent.addListener(K,"change",function(){z(K)});mxEvent.addListener(Y,"change",function(){z(Y)});var ia=null!=e?e:this.createApplyFunction();this.init=function(){E()};var na=new ColorPicker,qa=Editor.isDarkMode()&&("auto"==L.getAdaptiveColors()||"simple"==L.getAdaptiveColors()&&"custom"==Q.value)&&
+!g?Y:K;mxEvent.addListener(K,"focus",function(){qa=K});mxEvent.addListener(Y,"focus",function(){qa=Y});na.addListener("change",function(W,ja){W=ja.getProperty("color").substring(1).toUpperCase();qa.value.toUpperCase()!=W&&(qa.value=W,z(qa),window.setTimeout(function(){qa.focus()},0))});e=document.createElement("div");e.appendChild(na.div);var O=document.createElement("div");O.style.display="flex";O.style.flexFlow="row wrap";O.style.justifyContent="center";O.style.paddingTop="10px";var Z=mxUtils.bind(this,
+function(W,ja,H,ea){ja=null!=ja?ja:12;var oa=document.createElement("table");oa.style.borderCollapse="collapse";oa.setAttribute("cellspacing","0");oa.style.marginBottom="20px";oa.style.cellSpacing="0px";oa.style.marginLeft="1px";var sa=document.createElement("tbody");oa.appendChild(sa);for(var Pa=W.length/ja,la=0;la<Pa;la++){for(var Ba=document.createElement("tr"),Ca=0;Ca<ja;Ca++)mxUtils.bind(this,function(Fa){var Ia=document.createElement("td");Ia.style.border="0px solid black";Ia.style.padding=
+"0px";Ia.style.width="16px";Ia.style.height="16px";null==Fa&&(Fa=H);if(null!=Fa){Ia.style.borderWidth="1px";Fa==mxConstants.NONE?Ia.style.background="url('"+Dialog.prototype.noColorImage+"')":Ia.style.backgroundColor="#"+Fa;var Ha=this.colorNames[String(Fa).toUpperCase()];null!=Ha&&Ia.setAttribute("title",Ha)}Ba.appendChild(Ia);null!=Fa&&(Ia.style.cursor="pointer",mxEvent.addListener(Ia,"click",function(){if(Fa==mxConstants.NONE){qa==Y&&Y.value==mxConstants.NONE?K.value=mxConstants.NONE:qa.value=
+mxConstants.NONE;if(qa==K||qa==Y&&K.value==mxConstants.NONE)Q.value="automatic";z(qa);window.setTimeout(function(){qa.focus()},0)}else na.fromString("#"+Fa)}),mxEvent.addListener(Ia,"dblclick",C))})(W[la*ja+Ca]);sa.appendChild(Ba)}ea&&(W=document.createElement("td"),W.setAttribute("title",mxResources.get("reset")),W.className="geAdaptiveAsset",W.style.border="1px solid black",W.style.padding="0px",W.style.width="16px",W.style.height="16px",W.style.backgroundImage="url('"+Editor.crossImage+"')",W.style.backgroundPosition=
+"center center",W.style.backgroundSize="14px 14px",W.style.backgroundRepeat="no-repeat",W.style.cursor="pointer",Ba.appendChild(W),mxEvent.addListener(W,"click",function(){ColorDialog.resetRecentColors();oa.parentNode.replaceChild(D(),oa)}));O.appendChild(oa);return oa});g||(d.appendChild(P),!ColorDialog.collapsed||Editor.isDarkMode()&&"auto"==L.getAdaptiveColors()||"automatic"!=Q.value||(M.style.display="none",p()),P=document.createElement("img"),P.setAttribute("title",mxResources.get("light")),
+P.className="geAdaptiveAsset",P.src=Editor.thinLightImage,P.style.width="20px",U.appendChild(P),mxEvent.addListener(P,"click",function(){K.focus()}));U.appendChild(K);null!=I&&(aa.setAttribute("title",mxResources.get(g?"default":"useBlackAndWhite")),aa.style.cursor="pointer",aa.style.position="relative",aa.style.marginLeft="4px",aa.innerText="",L=document.createElement("div"),L.style.display="inline-block",L.style.verticalAlign="middle",L.style.borderStyle="solid",L.style.borderWidth="1px",L.style.marginTop=
+"-2px",L.style.width="12px",L.style.height="12px",g?L.style.backgroundColor=I.light:L.style.backgroundImage="linear-gradient(to right bottom, "+I.cssText+" 50%, "+mxUtils.invertLightDarkColor(I).cssText+" 50.3%)",aa.appendChild(L),U.appendChild(aa),mxEvent.addListener(aa,"dblclick",C));var ca=document.createElement("input");ca.setAttribute("type","color");ca.style.position="relative";ca.style.visibility="hidden";ca.style.top="10px";ca.style.width="0px";ca.style.height="0px";ca.style.border="none";
+e.style.whiteSpace="nowrap";U.appendChild(ca);L=mxUtils.button("",function(){document.activeElement==ca?K.focus():(ca.value="#"+K.value,ca.click())});L.style.cursor="pointer";P=document.createElement("img");P.src=Editor.colorDropperImage;P.className="geAdaptiveAsset";P.style.position="relative";P.style.verticalAlign="middle";P.style.marginTop="-2px";P.style.width="auto";P.style.height="14px";L.appendChild(P);U.appendChild(L);e.appendChild(d);mxEvent.addListener(ca,"change",function(){na.fromString(ca.value)});
+g||e.appendChild(M);D();d=Z(this.presetColors);d.style.marginBottom="8px";d=Z(this.defaultColors);d.style.marginBottom="16px";e.appendChild(O);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"));U=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=f&&f()});U.className="geBtn";a.editor.cancelFirst&&
+d.appendChild(U);L=mxUtils.button(mxResources.get("apply"),C);L.className="geBtn gePrimaryBtn";d.appendChild(L);a.editor.cancelFirst||d.appendChild(U);null!=b&&("default"==b?aa.click():(U=mxUtils.getLightDarkColor(b),b==mxConstants.NONE||"transparent"==U.light?K.value=mxConstants.NONE:mxUtils.isVarColor(U.light)?K.value=U.light:(mxUtils.isRgbColor(U.light)?U.light=mxUtils.rgba2hex(U.light):mxUtils.isHexColor(U.light)||(U.light="#"+m(U.light)),K.value=U.light.substring(1).toUpperCase()),b==mxConstants.NONE||
+"transparent"==U.dark?Y.value=mxConstants.NONE:mxUtils.isVarColor(U.dark)?Y.value=U.dark:(mxUtils.isRgbColor(U.dark)?U.dark=mxUtils.rgba2hex(U.dark):mxUtils.isHexColor(U.dark)||(U.dark="#"+m(U.dark)),Y.value=U.dark.substring(1).toUpperCase()),na.fromString(qa.value,!0),u()));g||!ColorDialog.collapsed||"automatic"!=Q.value||Editor.isDarkMode()||(M.style.display="none",p());e.appendChild(d);this.picker=na;this.colorInput=K;mxEvent.addListener(K,"keypress",G);mxEvent.addListener(Y,"keypress",G);mxEvent.addListener(e,
+"keydown",function(W){27==W.keyCode&&(a.hideDialog(),null!=f&&f(),mxEvent.consume(W))});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");
+"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,p,k,u,x,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 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(T,K,U){T=mxUtils.button(T,function(Y){K(Y,I)});null!=U&&T.setAttribute("title",U);T.className="geBtn";G.appendChild(T)})(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",
+C)for(b=0;b<C.length;b++)(function(T,K,U){T=mxUtils.button(T,function(Y){K(Y,I)});null!=U&&T.setAttribute("title",U);T.className="geBtn";G.appendChild(T)})(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!=p&&p(G,I);if(null!=f){var L=mxUtils.button(x||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,"keypress",function(T){13==T.keyCode&&mxEvent.isControlDown(T)&&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;
-if("new"==d.value)a.hideDialog(),a.editor.editAsNew(m);else if("apply"==d.value)try{var k=mxUtils.parseXml(m).documentElement;a.updateDiagramData(f,k);a.hideDialog()}catch(C){q=C}else if("insert"==d.value){a.editor.graph.model.beginUpdate();try{var u=mxUtils.parseXml(m),w=new mxGraphModel;(new mxCodec(u)).decode(u.documentElement,w);var z=w.getChildren(w.getChildAt(w.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(z));a.hideDialog()}catch(C){q=C}finally{a.editor.graph.model.endUpdate()}}null!=
-q&&a.handleError(q)});g.className="geBtn gePrimaryBtn";b.appendChild(g);a.editor.cancelFirst||b.appendChild(h);this.container=b};EditDiagramDialog.showNewWindowOption=!0;
-var ExportDialog=function(a){function b(){var Q=u.value,P=Q.lastIndexOf(".");u.value=0<P?Q.substring(0,P+1)+w.value:Q+"."+w.value;"xml"===w.value?(z.setAttribute("disabled","true"),C.setAttribute("disabled","true"),E.setAttribute("disabled","true"),K.setAttribute("disabled","true")):(z.removeAttribute("disabled"),C.removeAttribute("disabled"),E.removeAttribute("disabled"),K.removeAttribute("disabled"));"png"===w.value||"svg"===w.value||"pdf"===w.value?L.removeAttribute("disabled"):L.setAttribute("disabled",
-"disabled");"png"===w.value||"jpg"===w.value||"pdf"===w.value?T.removeAttribute("disabled"):T.setAttribute("disabled","disabled");"png"===w.value?(D.removeAttribute("disabled"),G.removeAttribute("disabled")):(D.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"))}function e(){C.style.backgroundColor=C.value*E.value>MAX_AREA||0>=C.value?"red":"";E.style.backgroundColor=C.value*E.value>MAX_AREA||0>=E.value?"red":""}var f=a.editor.graph,h=f.getGraphBounds(),d=f.view.scale,g=Math.ceil(h.width/
-d),m=Math.ceil(h.height/d);d=document.createElement("table");var q=document.createElement("tbody");d.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");h=document.createElement("tr");var k=document.createElement("td");k.style.fontSize="10pt";k.style.width="100px";mxUtils.write(k,mxResources.get("filename")+":");h.appendChild(k);var u=document.createElement("input");u.setAttribute("value",a.editor.getOrCreateFilename());u.style.width="180px";k=document.createElement("td");k.appendChild(u);h.appendChild(k);
-q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("format")+":");h.appendChild(k);var w=document.createElement("select");w.style.width="180px";k=document.createElement("option");k.setAttribute("value","png");mxUtils.write(k,mxResources.get("formatPng"));w.appendChild(k);k=document.createElement("option");ExportDialog.showGifOption&&(k.setAttribute("value","gif"),mxUtils.write(k,mxResources.get("formatGif")),w.appendChild(k));
-k=document.createElement("option");k.setAttribute("value","jpg");mxUtils.write(k,mxResources.get("formatJpg"));w.appendChild(k);k=document.createElement("option");k.setAttribute("value","svg");mxUtils.write(k,mxResources.get("formatSvg"));w.appendChild(k);ExportDialog.showXmlOption&&(k=document.createElement("option"),k.setAttribute("value","xml"),mxUtils.write(k,mxResources.get("formatXml")),w.appendChild(k));k=document.createElement("td");k.appendChild(w);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");
-k=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");
+"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 p=new FileReader;
+p.onload=function(k){e.value=k.target.result};p.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)),p=null;
+if("new"==d.value)a.hideDialog(),a.editor.editAsNew(m);else if("apply"==d.value)try{var k=mxUtils.parseXml(m).documentElement;a.updateDiagramData(f,k);a.hideDialog()}catch(C){p=C}else if("insert"==d.value){a.editor.graph.model.beginUpdate();try{var u=mxUtils.parseXml(m),x=new mxGraphModel;(new mxCodec(u)).decode(u.documentElement,x);var z=x.getChildren(x.getChildAt(x.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(z));a.hideDialog()}catch(C){p=C}finally{a.editor.graph.model.endUpdate()}}null!=
+p&&a.handleError(p)});g.className="geBtn gePrimaryBtn";b.appendChild(g);a.editor.cancelFirst||b.appendChild(h);this.container=b};EditDiagramDialog.showNewWindowOption=!0;
+var ExportDialog=function(a){function b(){var Q=u.value,P=Q.lastIndexOf(".");u.value=0<P?Q.substring(0,P+1)+x.value:Q+"."+x.value;"xml"===x.value?(z.setAttribute("disabled","true"),C.setAttribute("disabled","true"),E.setAttribute("disabled","true"),K.setAttribute("disabled","true")):(z.removeAttribute("disabled"),C.removeAttribute("disabled"),E.removeAttribute("disabled"),K.removeAttribute("disabled"));"png"===x.value||"svg"===x.value||"pdf"===x.value?L.removeAttribute("disabled"):L.setAttribute("disabled",
+"disabled");"png"===x.value||"jpg"===x.value||"pdf"===x.value?T.removeAttribute("disabled"):T.setAttribute("disabled","disabled");"png"===x.value?(D.removeAttribute("disabled"),G.removeAttribute("disabled")):(D.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"))}function e(){C.style.backgroundColor=C.value*E.value>MAX_AREA||0>=C.value?"red":"";E.style.backgroundColor=C.value*E.value>MAX_AREA||0>=E.value?"red":""}var f=a.editor.graph,h=f.getGraphBounds(),d=f.view.scale,g=Math.ceil(h.width/
+d),m=Math.ceil(h.height/d);d=document.createElement("table");var p=document.createElement("tbody");d.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");h=document.createElement("tr");var k=document.createElement("td");k.style.fontSize="10pt";k.style.width="100px";mxUtils.write(k,mxResources.get("filename")+":");h.appendChild(k);var u=document.createElement("input");u.setAttribute("value",a.editor.getOrCreateFilename());u.style.width="180px";k=document.createElement("td");k.appendChild(u);h.appendChild(k);
+p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("format")+":");h.appendChild(k);var x=document.createElement("select");x.style.width="180px";k=document.createElement("option");k.setAttribute("value","png");mxUtils.write(k,mxResources.get("formatPng"));x.appendChild(k);k=document.createElement("option");ExportDialog.showGifOption&&(k.setAttribute("value","gif"),mxUtils.write(k,mxResources.get("formatGif")),x.appendChild(k));
+k=document.createElement("option");k.setAttribute("value","jpg");mxUtils.write(k,mxResources.get("formatJpg"));x.appendChild(k);k=document.createElement("option");k.setAttribute("value","svg");mxUtils.write(k,mxResources.get("formatSvg"));x.appendChild(k);ExportDialog.showXmlOption&&(k=document.createElement("option"),k.setAttribute("value","xml"),mxUtils.write(k,mxResources.get("formatXml")),x.appendChild(k));k=document.createElement("td");k.appendChild(x);h.appendChild(k);p.appendChild(h);h=document.createElement("tr");
+k=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);p.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);p.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);p.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 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 Q=parseInt(G.value);isNaN(Q)||0>=Q?G.style.backgroundColor="red":(G.style.backgroundColor="",I||(z.value=Q))});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 T=document.createElement("input");T.setAttribute("type","checkbox");T.checked=!1;k=document.createElement("td");k.appendChild(T);
-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 K=document.createElement("input");K.setAttribute("type","number");K.setAttribute("value",ExportDialog.lastBorderValue);K.style.width="180px";k=document.createElement("td");k.appendChild(K);h.appendChild(k);q.appendChild(h);d.appendChild(q);mxEvent.addListener(w,"change",b);b();mxEvent.addListener(z,"change",
+"",G.focus()):(G.value=this.value,I||(z.value=this.value))});mxEvent.addListener(G,"change",function(){var Q=parseInt(G.value);isNaN(Q)||0>=Q?G.style.backgroundColor="red":(G.style.backgroundColor="",I||(z.value=Q))});k=document.createElement("td");k.appendChild(D);k.appendChild(G);h.appendChild(k);p.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);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("grid")+":");h.appendChild(k);var T=document.createElement("input");T.setAttribute("type","checkbox");T.checked=!1;k=document.createElement("td");k.appendChild(T);
+h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("borderWidth")+":");h.appendChild(k);var K=document.createElement("input");K.setAttribute("type","number");K.setAttribute("value",ExportDialog.lastBorderValue);K.style.width="180px";k=document.createElement("td");k.appendChild(K);h.appendChild(k);p.appendChild(h);d.appendChild(p);mxEvent.addListener(x,"change",b);b();mxEvent.addListener(z,"change",
function(){I=!0;var Q=Math.max(0,parseFloat(z.value)||100)/100;z.value=parseFloat((100*Q).toFixed(2));0<g?(C.value=Math.floor(g*Q),E.value=Math.floor(m*Q)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(C,"change",function(){var Q=parseInt(C.value)/g;0<Q?(z.value=parseFloat((100*Q).toFixed(2)),E.value=Math.floor(m*Q)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(E,"change",function(){var Q=parseInt(E.value)/m;0<Q?(z.value=parseFloat((100*Q).toFixed(2)),C.value=Math.floor(g*
-Q)):(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 Q=u.value,P=w.value,M=Math.max(0,parseFloat(z.value)||100)/100,W=Math.max(0,parseInt(K.value)),aa=f.background,ia=Math.max(1,parseInt(G.value));if(("svg"==P||"png"==P||
-"pdf"==P)&&L.checked)aa=null;else if(null==aa||aa==mxConstants.NONE)aa="#ffffff";ExportDialog.lastBorderValue=W;ExportDialog.exportFile(a,Q,P,aa,M,W,ia,T.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;
+Q)):(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 Q=u.value,P=x.value,M=Math.max(0,parseFloat(z.value)||100)/100,V=Math.max(0,parseInt(K.value)),aa=f.background,ia=Math.max(1,parseInt(G.value));if(("svg"==P||"png"==P||
+"pdf"==P)&&L.checked)aa=null;else if(null==aa||aa==mxConstants.NONE)aa="#ffffff";ExportDialog.lastBorderValue=V;ExportDialog.exportFile(a,Q,P,aa,M,V,ia,T.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);p.appendChild(h);d.appendChild(p);this.container=d};ExportDialog.lastBorderValue=0;
ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0;
-ExportDialog.exportFile=function(a,b,e,f,h,d,g,m){m=a.editor.graph;if("xml"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),b,e);else if("svg"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(m.getSvg(f,h,d)),b,e);else{var q=m.getGraphBounds(),k=mxUtils.createXmlDocument(),u=k.createElement("output");k.appendChild(u);k=new mxXmlCanvas2D(u);k.translate(Math.floor((d/h-q.x)/m.view.scale),Math.floor((d/h-q.y)/m.view.scale));k.scale(h/m.view.scale);(new mxImageExport).drawState(m.getView().getState(m.model.root),
-k);u="xml="+encodeURIComponent(mxUtils.getXml(u));k=Math.ceil(q.width*h/m.view.scale+2*d);h=Math.ceil(q.height*h/m.view.scale+2*d);u.length<=MAX_REQUEST_SIZE&&k*h<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format="+e+"&filename="+encodeURIComponent(b)+"&bg="+(null!=f?f:"none")+"&w="+k+"&h="+h+"&"+u+"&dpi="+g)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};
+ExportDialog.exportFile=function(a,b,e,f,h,d,g,m){m=a.editor.graph;if("xml"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),b,e);else if("svg"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(m.getSvg(f,h,d)),b,e);else{var p=m.getGraphBounds(),k=mxUtils.createXmlDocument(),u=k.createElement("output");k.appendChild(u);k=new mxXmlCanvas2D(u);k.translate(Math.floor((d/h-p.x)/m.view.scale),Math.floor((d/h-p.y)/m.view.scale));k.scale(h/m.view.scale);(new mxImageExport).drawState(m.getView().getState(m.model.root),
+k);u="xml="+encodeURIComponent(mxUtils.getXml(u));k=Math.ceil(p.width*h/m.view.scale+2*d);h=Math.ceil(p.height*h/m.view.scale+2*d);u.length<=MAX_REQUEST_SIZE&&k*h<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format="+e+"&filename="+encodeURIComponent(b)+"&bg="+(null!=f?f:"none")+"&w="+k+"&h="+h+"&"+u+"&dpi="+g)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};
ExportDialog.saveLocalFile=function(a,b,e,f){b.length<MAX_REQUEST_SIZE?(a.hideDialog(),(new mxXmlRequest(SAVE_URL,"xml="+encodeURIComponent(b)+"&filename="+encodeURIComponent(e)+"&format="+f)).simulate(document,"_blank")):(mxUtils.alert(mxResources.get("drawingTooLarge")),mxUtils.popup(xml))};
-var EditDataDialog=function(a,b){function e(){0<K.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(Q){}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(Q,P){var M=document.createElement("div");M.style.position="relative";M.style.paddingRight="20px";M.style.boxSizing="border-box";M.style.width="100%";var W=document.createElement("a"),aa=mxUtils.createImage(Dialog.prototype.closeImage);aa.style.height="9px";aa.style.fontSize="9px";aa.style.marginBottom=mxClient.IS_IE11?"-1px":"5px";W.className="geButton";W.setAttribute("title",
-mxResources.get("delete"));W.style.position="absolute";W.style.top="4px";W.style.right="0px";W.style.margin="0px";W.style.width="9px";W.style.height="9px";W.style.cursor="pointer";W.appendChild(aa);P=function(ia){return function(){for(var oa=0,qa=0;qa<w.length;qa++){if(w[qa]==ia){z[qa]=null;k.table.deleteRow(oa+(null!=E?1:0));break}null!=z[qa]&&oa++}}}(P);mxEvent.addListener(W,"click",P);P=Q.parentNode;M.appendChild(Q);M.appendChild(W);P.appendChild(M)};g=function(Q,P,M){w[Q]=P;z[Q]=k.addTextarea(w[C]+
-":",M,2);z[Q].style.width="100%";0<M.indexOf("\n")&&z[Q].setAttribute("rows","2");D(z[Q],P);null!=m[P]&&0==m[P].editable&&z[Q].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(Q,P){return"label"==Q.name?1:"label"==P.name?-1:Q.name<P.name?-1:Q.name>
-P.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 T=k.addField(mxResources.get("id")+":",u);mxEvent.addListener(u,"dblclick",function(Q){Q=new FilenameDialog(a,E,mxResources.get("apply"),mxUtils.bind(this,function(P){if(null!=P&&0<P.length&&P!=E)if(h.model.isRoot(b)){var M=a.getPageById(E);if(null!=M)if(null==a.getPageById(P)){var W=a.getPageIndex(M);0<=W&&(a.removePage(M),M.node.setAttribute("id",
-P),E=P,T.innerHTML=mxUtils.htmlEntities(P),a.insertPage(M,W))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==h.getModel().getCell(P)?(h.getModel().cellRemoved(b),b.setId(P),E=P,T.innerHTML=mxUtils.htmlEntities(P),h.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[P])})}),mxResources.get("id"));a.showDialog(Q.container,300,80,!0,!0);Q.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 K=document.createElement("input");K.setAttribute("placeholder",mxResources.get("enterPropertyName"));K.setAttribute("type",
-"text");K.setAttribute("size",mxClient.IS_IE||mxClient.IS_IE11?"36":"40");K.style.boxSizing="border-box";K.style.borderWidth="1px";K.style.borderStyle="solid";K.style.marginLeft="2px";K.style.padding="4px";K.style.width="100%";g.appendChild(K);q.appendChild(g);f.appendChild(q);var U=mxUtils.button(mxResources.get("addProperty"),function(){var Q=K.value;if(0<Q.length&&"label"!=Q&&"id"!=Q&&"placeholders"!=Q&&0>Q.indexOf(":"))try{var P=mxUtils.indexOf(w,Q);if(0<=P&&null!=z[P])z[P].focus();else{d.cloneNode(!1).setAttribute(Q,
-"");0<=P&&(w.splice(P,1),z.splice(P,1));w.push(Q);var M=k.addTextarea(Q+":","",2);M.style.width="100%";z.push(M);D(M,Q);M.focus()}U.setAttribute("disabled","disabled");K.value=""}catch(W){mxUtils.alert(W)}else mxUtils.alert(mxResources.get("invalidName"))});mxEvent.addListener(K,"keypress",function(Q){13==Q.keyCode&&U.click()});this.init=function(){0<z.length?z[0].focus():K.focus()};U.setAttribute("title",mxResources.get("addProperty"));U.setAttribute("disabled","disabled");U.style.textOverflow="ellipsis";
-U.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(Q){var P=h.getDataForCells([b],!0);Q=new EmbedDialog(a,JSON.stringify(P,null,2),null,null,function(){console.log(P);a.alert("Written to Console (Dev Tools)")},
-mxResources.get("export"),null,"Console","data.json");a.showDialog(Q.container,450,240,!0,!0);Q.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 Q=!1,P=0;P<w.length;P++)null==z[P]?d.removeAttribute(w[P]):(d.setAttribute(w[P],z[P].value),Q=Q||"placeholder"==w[P]&&"1"==d.getAttribute("placeholders"));Q&&d.removeAttribute("label");h.getModel().setValue(b,
+var EditDataDialog=function(a,b){function e(){0<K.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 p=mxUtils.getValue(a.editor.graph.getCurrentCellStyle(b),"metaData",null);null!=p&&(m=JSON.parse(p))}catch(Q){}var k=new mxForm("properties");k.table.style.width=
+"100%";var u=d.attributes,x=[],z=[],C=0,E=null!=EditDataDialog.getDisplayIdForCell?EditDataDialog.getDisplayIdForCell(a,b):null,D=function(Q,P){var M=document.createElement("div");M.style.position="relative";M.style.paddingRight="20px";M.style.boxSizing="border-box";M.style.width="100%";var V=document.createElement("a"),aa=mxUtils.createImage(Dialog.prototype.closeImage);aa.style.height="9px";aa.style.fontSize="9px";aa.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(aa);P=function(ia){return function(){for(var na=0,qa=0;qa<x.length;qa++){if(x[qa]==ia){z[qa]=null;k.table.deleteRow(na+(null!=E?1:0));break}null!=z[qa]&&na++}}}(P);mxEvent.addListener(V,"click",P);P=Q.parentNode;M.appendChild(Q);M.appendChild(V);P.appendChild(M)};g=function(Q,P,M){x[Q]=P;z[Q]=k.addTextarea(x[C]+
+":",M,2);z[Q].style.width="100%";0<M.indexOf("\n")&&z[Q].setAttribute("rows","2");D(z[Q],P);null!=m[P]&&0==m[P].editable&&z[Q].setAttribute("disabled","disabled")};p=[];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&&p.push({name:u[L].nodeName,value:u[L].nodeValue});p.sort(function(Q,P){return"label"==Q.name?1:"label"==P.name?-1:Q.name<P.name?-1:Q.name>
+P.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 T=k.addField(mxResources.get("id")+":",u);mxEvent.addListener(u,"dblclick",function(Q){Q=new FilenameDialog(a,E,mxResources.get("apply"),mxUtils.bind(this,function(P){if(null!=P&&0<P.length&&P!=E)if(h.model.isRoot(b)){var M=a.getPageById(E);if(null!=M)if(null==a.getPageById(P)){var V=a.getPageIndex(M);0<=V&&(a.removePage(M),M.node.setAttribute("id",
+P),E=P,T.innerHTML=mxUtils.htmlEntities(P),a.insertPage(M,V))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==h.getModel().getCell(P)?(h.getModel().cellRemoved(b),b.setId(P),E=P,T.innerHTML=mxUtils.htmlEntities(P),h.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[P])})}),mxResources.get("id"));a.showDialog(Q.container,300,80,!0,!0);Q.init()})}for(L=0;L<p.length;L++)g(C,p[L].name,p[L].value),C++;p=document.createElement("div");
+p.style.position="absolute";p.style.top="30px";p.style.left="30px";p.style.right="30px";p.style.bottom="80px";p.style.overflowY="auto";p.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 K=document.createElement("input");K.setAttribute("placeholder",mxResources.get("enterPropertyName"));K.setAttribute("type",
+"text");K.setAttribute("size",mxClient.IS_IE||mxClient.IS_IE11?"36":"40");K.style.boxSizing="border-box";K.style.borderWidth="1px";K.style.borderStyle="solid";K.style.marginLeft="2px";K.style.padding="4px";K.style.width="100%";g.appendChild(K);p.appendChild(g);f.appendChild(p);var U=mxUtils.button(mxResources.get("addProperty"),function(){var Q=K.value;if(0<Q.length&&"label"!=Q&&"id"!=Q&&"placeholders"!=Q&&0>Q.indexOf(":"))try{var P=mxUtils.indexOf(x,Q);if(0<=P&&null!=z[P])z[P].focus();else{d.cloneNode(!1).setAttribute(Q,
+"");0<=P&&(x.splice(P,1),z.splice(P,1));x.push(Q);var M=k.addTextarea(Q+":","",2);M.style.width="100%";z.push(M);D(M,Q);M.focus()}U.setAttribute("disabled","disabled");K.value=""}catch(V){mxUtils.alert(V)}else mxUtils.alert(mxResources.get("invalidName"))});mxEvent.addListener(K,"keypress",function(Q){13==Q.keyCode&&U.click()});this.init=function(){0<z.length?z[0].focus():K.focus()};U.setAttribute("title",mxResources.get("addProperty"));U.setAttribute("disabled","disabled");U.style.textOverflow="ellipsis";
+U.style.position="absolute";U.style.overflow="hidden";U.style.width="144px";U.style.right="0px";U.className="geBtn";g.appendChild(U);p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog.apply(a,arguments)});p.setAttribute("title","Escape");p.className="geBtn";g=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(Q){var P=h.getDataForCells([b],!0);Q=new EmbedDialog(a,JSON.stringify(P,null,2),null,null,function(){console.log(P);a.alert("Written to Console (Dev Tools)")},
+mxResources.get("export"),null,"Console","data.json");a.showDialog(Q.container,450,240,!0,!0);Q.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 Q=!1,P=0;P<x.length;P++)null==z[P]?d.removeAttribute(x[P]):(d.setAttribute(x[P],z[P].value),Q=Q||"placeholder"==x[P]&&"1"==d.getAttribute("placeholders"));Q&&d.removeAttribute("label");h.getModel().setValue(b,
d)}catch(M){mxUtils.alert(M)}});Y.setAttribute("title","Ctrl+Enter");Y.className="geBtn gePrimaryBtn";mxEvent.addListener(f,"keypress",function(Q){13==Q.keyCode&&mxEvent.isControlDown(Q)&&Y.click()});mxEvent.addListener(K,"keyup",e);mxEvent.addListener(K,"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",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;
+u.appendChild(G);a.editor.cancelFirst&&u.appendChild(p);u.appendChild(g);u.appendChild(Y);a.editor.cancelFirst||u.appendChild(p);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)";
mxEvent.addListener(b,"click",function(){g.value="";g.focus()});d.appendChild(g);d.appendChild(b);h.appendChild(d);this.init=function(){g.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?g.select():document.execCommand("selectAll",!1,null)};d=document.createElement("div");d.style.marginTop="18px";d.style.textAlign="right";mxEvent.addListener(g,"keypress",function(m){13==m.keyCode&&(a.hideDialog(),f(g.value))});b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});
b.className="geBtn";a.editor.cancelFirst&&d.appendChild(b);e=mxUtils.button(e,function(){a.hideDialog();f(g.value)});e.className="geBtn gePrimaryBtn";d.appendChild(e);a.editor.cancelFirst||d.appendChild(b);h.appendChild(d);this.container=h},OutlineWindow=function(a,b,e,f,h){var d=a.editor.graph,g=document.createElement("div");g.style.position="absolute";g.style.width="100%";g.style.height="100%";g.style.overflow="hidden";this.window=new mxWindow(mxResources.get("outline"),g,b,e,f,h,!0,!0);this.window.minimumSize=
new mxRectangle(0,0,80,80);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);var m=a.createOutline(this.window);a.installResizeHandler(this,!0,function(){m.destroy()});this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit();m.setSuspended(!1)}));this.window.addListener(mxEvent.HIDE,mxUtils.bind(this,function(){m.setSuspended(!0)}));this.window.addListener(mxEvent.NORMALIZE,mxUtils.bind(this,
-function(){m.setSuspended(!1)}));this.window.addListener(mxEvent.MINIMIZE,mxUtils.bind(this,function(){m.setSuspended(!0)}));m.init(g);mxEvent.addMouseWheelListener(function(q,k){for(var u=!1,w=mxEvent.getSource(q);null!=w;){if(w==m.svg){u=!0;break}w=w.parentNode}u&&(u=d.zoomFactor,null!=q.deltaY&&Math.round(q.deltaY)!=q.deltaY&&(u=1+Math.abs(q.deltaY)/20*(u-1)),d.lazyZoom(k,null,null,u),mxEvent.consume(q))})},LayersWindow=function(a,b,e,f,h){function d(){var P=K.get(q.getLayerForCells(q.getSelectionCells()));
-null!=P?P.appendChild(Q):null!=Q.parentNode&&Q.parentNode.removeChild(Q)}function g(){function P(aa,ia,oa,qa){var O=document.createElement("div");O.className="geToolbarContainer";K.put(oa,O);O.style.overflow="hidden";O.style.position="relative";O.style.padding="4px";O.style.height="22px";O.style.display="flex";O.style.alignItems="center";O.style.borderWidth="0px 0px 1px 0px";O.style.borderStyle="solid";O.style.whiteSpace="nowrap";O.setAttribute("title",ia+" ("+oa.getId()+")");var Z=document.createElement("div");
-Z.style.display="inline-flex";Z.style.alignItems="center";Z.style.width="100%";Z.style.textOverflow="ellipsis";Z.style.overflow="hidden";var ca=document.createElement("span");mxEvent.addListener(O,"dragover",function(H){H.dataTransfer.dropEffect="move";z=aa;H.stopPropagation();H.preventDefault()});mxEvent.addListener(O,"dragstart",function(H){"true"!=ca.contentEditable&&(w=O,mxClient.IS_FF&&H.dataTransfer.setData("Text","<layer/>"))});mxEvent.addListener(O,"dragend",function(H){null!=w&&null!=z&&
-q.addCell(oa,q.model.root,z);z=w=null;H.stopPropagation();H.preventDefault()});var V=document.createElement("img");V.setAttribute("draggable","false");V.setAttribute("align","top");V.setAttribute("border","0");V.className="geAdaptiveAsset";V.style.width="16px";V.style.padding="0px 6px 0 4px";V.style.cursor="pointer";V.setAttribute("title",mxResources.get(q.model.isVisible(oa)?"hide":"show"));q.model.isVisible(oa)?(V.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(O,90)):(V.setAttribute("src",
-Editor.hiddenImage),mxUtils.setOpacity(O,40));q.isEnabled()||mxUtils.setOpacity(V,50);Z.appendChild(V);mxEvent.addListener(V,"click",function(H){q.isEnabled()&&q.model.setVisible(oa,!q.model.isVisible(oa));mxEvent.consume(H)});V=document.createElement("img");V.setAttribute("draggable","false");V.setAttribute("align","top");V.setAttribute("border","0");V.className="geAdaptiveAsset";V.style.width="16px";V.style.padding="0px 6px 0 0";V.setAttribute("title",mxResources.get("lockUnlock"));var ja=q.getCurrentCellStyle(oa);
-"1"==mxUtils.getValue(ja,"locked","0")?(V.setAttribute("src",Editor.lockedImage),mxUtils.setOpacity(V,90),O.style.color="red"):(V.setAttribute("src",Editor.unlockedImage),mxUtils.setOpacity(V,40));q.isEnabled()&&(V.style.cursor="pointer");mxEvent.addListener(V,"click",function(H){if(q.isEnabled()){var ea=null;q.getModel().beginUpdate();try{ea="1"==mxUtils.getValue(ja,"locked","0")?null:"1",q.setCellStyles("locked",ea,[oa])}finally{q.getModel().endUpdate()}"1"==ea&&q.removeSelectionCells(q.getModel().getDescendants(oa));
-mxEvent.consume(H)}});Z.appendChild(V);mxUtils.write(ca,ia);ca.style.display="block";ca.style.whiteSpace="nowrap";ca.style.overflow="hidden";ca.style.textOverflow="ellipsis";ca.style.position="absolute";ca.style.padding="2px";ca.style.left="52px";ca.style.right="8px";Z.appendChild(ca);O.appendChild(Z);if(q.isEnabled()){if(mxClient.IS_TOUCH||mxClient.IS_POINTER||mxClient.IS_IE&&10>document.documentMode)ia=document.createElement("div"),ia.style.display="block",ia.style.textAlign="right",ia.style.whiteSpace=
-"nowrap",ia.style.position="absolute",ia.style.right="16px",ia.style.top="6px",0<aa&&(Z=document.createElement("a"),Z.setAttribute("title",mxResources.get("toBack")),Z.className="geButton",Z.style.cssFloat="none",Z.innerHTML="&#9660;",Z.style.width="14px",Z.style.height="14px",Z.style.fontSize="14px",Z.style.margin="0px",Z.style.marginTop="-1px",ia.appendChild(Z),mxEvent.addListener(Z,"click",function(H){q.isEnabled()&&q.addCell(oa,q.model.root,aa-1);mxEvent.consume(H)})),0<=aa&&aa<C-1&&(Z=document.createElement("a"),
-Z.setAttribute("title",mxResources.get("toFront")),Z.className="geButton",Z.style.cssFloat="none",Z.innerHTML="&#9650;",Z.style.width="14px",Z.style.height="14px",Z.style.fontSize="14px",Z.style.margin="0px",Z.style.marginTop="-1px",ia.appendChild(Z),mxEvent.addListener(Z,"click",function(H){q.isEnabled()&&q.addCell(oa,q.model.root,aa+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"!=ca.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"!=ca.contentEditable&&(q.setDefaultParent(qa),q.view.setCurrentRoot(null),mxEvent.isShiftDown(H)&&q.setSelectionCells(oa.children),mxEvent.consume(H))});u.appendChild(O)}q.isEnabled()?(I.classList.remove("mxDisabled"),
-T.classList.remove("mxDisabled"),U.classList.remove("mxDisabled"),Y.classList.remove("mxDisabled")):(I.classList.add("mxDisabled"),T.classList.add("mxDisabled"),U.classList.add("mxDisabled"),Y.classList.add("mxDisabled"));C=q.model.getChildCount(q.model.root);u.innerText="";K.clear();for(var M=C-1;0<=M;M--)mxUtils.bind(this,function(aa){P(M,q.convertValueToString(aa)||mxResources.get("background"),aa,aa)})(q.model.getChildAt(q.model.root,M));var W=q.convertValueToString(E)||mxResources.get("background");
-I.setAttribute("title",mxResources.get("removeIt",[W]));U.setAttribute("title",mxResources.get("duplicateIt",[W]));q.isSelectionEmpty()&&L.classList.add("mxDisabled");d()}function m(P){if(q.isEnabled()&&null!=P){var M=K.get(P);if(null!=M){var W=M.getElementsByTagName("span");if(null!=W&&0<W.length){var aa=W[0],ia=mxUtils.getTextContent(aa);aa.style.textOverflow="";aa.style.cursor="text";aa.contentEditable="true";aa.focus();document.execCommand("selectAll",!1,null);M.removeAttribute("draggable");M.style.cursor=
-"";var oa=function(qa){if("true"==aa.contentEditable){aa.contentEditable="false";var O=mxUtils.getTextContent(aa);qa&&O!=ia?(O=mxUtils.getTextContent(aa),0<O.length?q.cellLabelChanged(P,O):q.cellLabelChanged(P,mxResources.get("untitledLayer"))):g()}};mxEvent.addListener(aa,"keydown",function(qa){if(13==qa.keyCode||27==qa.keyCode)oa(13==qa.keyCode),mxEvent.consume(qa)});mxEvent.addListener(aa,"blur",function(qa){oa(!0);mxEvent.consume(qa)})}}}}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(P){P.dataTransfer.dropEffect="move";z=0;P.stopPropagation();P.preventDefault()});mxEvent.addListener(k,"drop",function(P){P.stopPropagation();P.preventDefault()});
+function(){m.setSuspended(!1)}));this.window.addListener(mxEvent.MINIMIZE,mxUtils.bind(this,function(){m.setSuspended(!0)}));m.init(g);mxEvent.addMouseWheelListener(function(p,k){for(var u=!1,x=mxEvent.getSource(p);null!=x;){if(x==m.svg){u=!0;break}x=x.parentNode}u&&(u=d.zoomFactor,null!=p.deltaY&&Math.round(p.deltaY)!=p.deltaY&&(u=1+Math.abs(p.deltaY)/20*(u-1)),d.lazyZoom(k,null,null,u),mxEvent.consume(p))})},LayersWindow=function(a,b,e,f,h){function d(){var P=K.get(p.getLayerForCells(p.getSelectionCells()));
+null!=P?P.appendChild(Q):null!=Q.parentNode&&Q.parentNode.removeChild(Q)}function g(){function P(aa,ia,na,qa){var O=document.createElement("div");O.className="geToolbarContainer";K.put(na,O);O.style.overflow="hidden";O.style.position="relative";O.style.padding="4px";O.style.height="22px";O.style.display="flex";O.style.alignItems="center";O.style.borderWidth="0px 0px 1px 0px";O.style.borderStyle="solid";O.style.whiteSpace="nowrap";O.setAttribute("title",ia+" ("+na.getId()+")");var Z=document.createElement("div");
+Z.style.display="inline-flex";Z.style.alignItems="center";Z.style.width="100%";Z.style.textOverflow="ellipsis";Z.style.overflow="hidden";var ca=document.createElement("span");mxEvent.addListener(O,"dragover",function(H){H.dataTransfer.dropEffect="move";z=aa;H.stopPropagation();H.preventDefault()});mxEvent.addListener(O,"dragstart",function(H){"true"!=ca.contentEditable&&(x=O,mxClient.IS_FF&&H.dataTransfer.setData("Text","<layer/>"))});mxEvent.addListener(O,"dragend",function(H){null!=x&&null!=z&&
+p.addCell(na,p.model.root,z);z=x=null;H.stopPropagation();H.preventDefault()});var W=document.createElement("img");W.setAttribute("draggable","false");W.setAttribute("align","top");W.setAttribute("border","0");W.className="geAdaptiveAsset";W.style.width="16px";W.style.padding="0px 6px 0 4px";W.style.cursor="pointer";W.setAttribute("title",mxResources.get(p.model.isVisible(na)?"hide":"show"));p.model.isVisible(na)?(W.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(O,90)):(W.setAttribute("src",
+Editor.hiddenImage),mxUtils.setOpacity(O,40));p.isEnabled()||mxUtils.setOpacity(W,50);Z.appendChild(W);mxEvent.addListener(W,"click",function(H){p.isEnabled()&&p.model.setVisible(na,!p.model.isVisible(na));mxEvent.consume(H)});W=document.createElement("img");W.setAttribute("draggable","false");W.setAttribute("align","top");W.setAttribute("border","0");W.className="geAdaptiveAsset";W.style.width="16px";W.style.padding="0px 6px 0 0";W.setAttribute("title",mxResources.get("lockUnlock"));var ja=p.getCurrentCellStyle(na);
+"1"==mxUtils.getValue(ja,"locked","0")?(W.setAttribute("src",Editor.lockedImage),mxUtils.setOpacity(W,90),O.style.color="red"):(W.setAttribute("src",Editor.unlockedImage),mxUtils.setOpacity(W,40));p.isEnabled()&&(W.style.cursor="pointer");mxEvent.addListener(W,"click",function(H){if(p.isEnabled()){var ea=null;p.getModel().beginUpdate();try{ea="1"==mxUtils.getValue(ja,"locked","0")?null:"1",p.setCellStyles("locked",ea,[na])}finally{p.getModel().endUpdate()}"1"==ea&&p.removeSelectionCells(p.getModel().getDescendants(na));
+mxEvent.consume(H)}});Z.appendChild(W);mxUtils.write(ca,ia);ca.style.display="block";ca.style.whiteSpace="nowrap";ca.style.overflow="hidden";ca.style.textOverflow="ellipsis";ca.style.position="absolute";ca.style.padding="2px";ca.style.left="52px";ca.style.right="8px";Z.appendChild(ca);O.appendChild(Z);if(p.isEnabled()){if(mxClient.IS_TOUCH||mxClient.IS_POINTER||mxClient.IS_IE&&10>document.documentMode)ia=document.createElement("div"),ia.style.display="block",ia.style.textAlign="right",ia.style.whiteSpace=
+"nowrap",ia.style.position="absolute",ia.style.right="16px",ia.style.top="6px",0<aa&&(Z=document.createElement("a"),Z.setAttribute("title",mxResources.get("toBack")),Z.className="geButton",Z.style.cssFloat="none",Z.innerHTML="&#9660;",Z.style.width="14px",Z.style.height="14px",Z.style.fontSize="14px",Z.style.margin="0px",Z.style.marginTop="-1px",ia.appendChild(Z),mxEvent.addListener(Z,"click",function(H){p.isEnabled()&&p.addCell(na,p.model.root,aa-1);mxEvent.consume(H)})),0<=aa&&aa<C-1&&(Z=document.createElement("a"),
+Z.setAttribute("title",mxResources.get("toFront")),Z.className="geButton",Z.style.cssFloat="none",Z.innerHTML="&#9650;",Z.style.width="14px",Z.style.height="14px",Z.style.fontSize="14px",Z.style.margin="0px",Z.style.marginTop="-1px",ia.appendChild(Z),mxEvent.addListener(Z,"click",function(H){p.isEnabled()&&p.addCell(na,p.model.root,aa+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"!=ca.contentEditable&&(m(na),mxEvent.consume(H))});p.getDefaultParent()==na&&(O.classList.add("geActivePage"),O.style.fontWeight=p.isEnabled()?"bold":"",E=na);mxEvent.addListener(O,"click",function(H){p.isEnabled()&&"true"!=ca.contentEditable&&(p.setDefaultParent(qa),p.view.setCurrentRoot(null),mxEvent.isShiftDown(H)&&p.setSelectionCells(na.children),mxEvent.consume(H))});u.appendChild(O)}p.isEnabled()?(I.classList.remove("mxDisabled"),
+T.classList.remove("mxDisabled"),U.classList.remove("mxDisabled"),Y.classList.remove("mxDisabled")):(I.classList.add("mxDisabled"),T.classList.add("mxDisabled"),U.classList.add("mxDisabled"),Y.classList.add("mxDisabled"));C=p.model.getChildCount(p.model.root);u.innerText="";K.clear();for(var M=C-1;0<=M;M--)mxUtils.bind(this,function(aa){P(M,p.convertValueToString(aa)||mxResources.get("background"),aa,aa)})(p.model.getChildAt(p.model.root,M));var V=p.convertValueToString(E)||mxResources.get("background");
+I.setAttribute("title",mxResources.get("removeIt",[V]));U.setAttribute("title",mxResources.get("duplicateIt",[V]));p.isSelectionEmpty()&&L.classList.add("mxDisabled");d()}function m(P){if(p.isEnabled()&&null!=P){var M=K.get(P);if(null!=M){var V=M.getElementsByTagName("span");if(null!=V&&0<V.length){var aa=V[0],ia=mxUtils.getTextContent(aa);aa.style.textOverflow="";aa.style.cursor="text";aa.contentEditable="true";aa.focus();document.execCommand("selectAll",!1,null);M.removeAttribute("draggable");M.style.cursor=
+"";var na=function(qa){if("true"==aa.contentEditable){aa.contentEditable="false";var O=mxUtils.getTextContent(aa);qa&&O!=ia?(O=mxUtils.getTextContent(aa),0<O.length?p.cellLabelChanged(P,O):p.cellLabelChanged(P,mxResources.get("untitledLayer"))):g()}};mxEvent.addListener(aa,"keydown",function(qa){if(13==qa.keyCode||27==qa.keyCode)na(13==qa.keyCode),mxEvent.consume(qa)});mxEvent.addListener(aa,"blur",function(qa){na(!0);mxEvent.consume(qa)})}}}}var p=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 x=null,z=null;mxEvent.addListener(k,"dragover",function(P){P.dataTransfer.dropEffect="move";z=0;P.stopPropagation();P.preventDefault()});mxEvent.addListener(k,"drop",function(P){P.stopPropagation();P.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 I=G.cloneNode(!1);I.style.backgroundImage="url("+Editor.trashImage+")";I.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(I,"click",function(P){if(q.isEnabled()){q.model.beginUpdate();try{var M=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<M&&M<=q.model.getChildCount(q.model.root)?q.setDefaultParent(q.model.getChildAt(q.model.root,M-1)):q.setDefaultParent(null)}finally{q.model.endUpdate()}}mxEvent.consume(P)});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(P){if(q.isEnabled()&&!q.isSelectionEmpty()){var M=
-mxUtils.getOffset(L);a.showPopupMenu(mxUtils.bind(this,function(W,aa){for(var ia=q.getLayerForCells(q.getSelectionCells()),oa=C-1;0<=oa;oa--)mxUtils.bind(this,function(qa){var O="1"==mxUtils.getValue(q.getCurrentCellStyle(qa),"locked","0"),Z=W.addItem(q.convertValueToString(qa)||mxResources.get("background"),null,mxUtils.bind(this,function(){O||q.moveCells(q.getSelectionCells(),0,0,!1,qa)}),aa,null,null,!O);O?W.addCheckmark(Z,Editor.lockedImage):qa==ia&&W.addCheckmark(Z,Editor.checkmarkImage)})(q.model.getChildAt(q.model.root,
-oa))}),M.x,M.y+L.offsetHeight,P)}});D.appendChild(L);var T=G.cloneNode(!1);T.style.backgroundImage="url("+Editor.editImage+")";T.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(T,"click",function(P){q.isEnabled()&&a.showDataDialog(E);mxEvent.consume(P)});q.isEnabled()||T.classList.add("mxDisabled");D.appendChild(T);var K=new mxDictionary,U=G.cloneNode(!1);U.style.backgroundImage="url("+Editor.duplicateImage+")";U.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(U,
-"click",function(P){if(q.isEnabled()){P=null;q.model.beginUpdate();try{P=q.cloneCell(E),q.cellLabelChanged(P,mxResources.get("untitledLayer")),P.setVisible(!0),P=q.addCell(P,q.model.root),q.setDefaultParent(P)}finally{q.model.endUpdate()}null==P||q.isCellLocked(P)||q.selectAll(P)}});q.isEnabled()||U.classList.add("mxDisabled");D.appendChild(U);var Y=G.cloneNode(!1);Y.style.backgroundImage="url("+Editor.plusImage+")";Y.setAttribute("title",mxResources.get("addLayer"));mxEvent.addListener(Y,"click",
-function(P){if(q.isEnabled()){q.model.beginUpdate();try{var M=q.addCell(new mxCell(mxResources.get("untitledLayer")),q.model.root);q.setDefaultParent(M)}finally{q.model.endUpdate()}m(M)}mxEvent.consume(P)});q.isEnabled()||Y.classList.add("mxDisabled");D.appendChild(Y);k.appendChild(D);var Q=document.createElement("span");Q.setAttribute("title",mxResources.get("selectionOnly"));Q.innerHTML="&#8226;";Q.style.position="absolute";Q.style.fontWeight="bold";Q.style.fontSize="16pt";Q.style.right="6px";g();
-q.model.addListener(mxEvent.CHANGE,g);q.addListener("defaultParentChanged",g);a.addListener("lockedChanged",g);q.selectionModel.addListener(mxEvent.CHANGE,function(){q.isSelectionEmpty()?L.classList.add("mxDisabled"):L.classList.remove("mxDisabled");d()});this.window=new mxWindow(mxResources.get("layers"),k,b,e,f,h,!0,!0);this.window.minimumSize=new mxRectangle(0,0,150,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);
+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(P){if(p.isEnabled()){p.model.beginUpdate();try{var M=p.model.root.getIndex(E);p.removeCells([E],!1);0==p.model.getChildCount(p.model.root)?(p.model.add(p.model.root,
+new mxCell),p.setDefaultParent(null)):0<M&&M<=p.model.getChildCount(p.model.root)?p.setDefaultParent(p.model.getChildAt(p.model.root,M-1)):p.setDefaultParent(null)}finally{p.model.endUpdate()}}mxEvent.consume(P)});p.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(P){if(p.isEnabled()&&!p.isSelectionEmpty()){var M=
+mxUtils.getOffset(L);a.showPopupMenu(mxUtils.bind(this,function(V,aa){for(var ia=p.getLayerForCells(p.getSelectionCells()),na=C-1;0<=na;na--)mxUtils.bind(this,function(qa){var O="1"==mxUtils.getValue(p.getCurrentCellStyle(qa),"locked","0"),Z=V.addItem(p.convertValueToString(qa)||mxResources.get("background"),null,mxUtils.bind(this,function(){O||p.moveCells(p.getSelectionCells(),0,0,!1,qa)}),aa,null,null,!O);O?V.addCheckmark(Z,Editor.lockedImage):qa==ia&&V.addCheckmark(Z,Editor.checkmarkImage)})(p.model.getChildAt(p.model.root,
+na))}),M.x,M.y+L.offsetHeight,P)}});D.appendChild(L);var T=G.cloneNode(!1);T.style.backgroundImage="url("+Editor.editImage+")";T.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(T,"click",function(P){p.isEnabled()&&a.showDataDialog(E);mxEvent.consume(P)});p.isEnabled()||T.classList.add("mxDisabled");D.appendChild(T);var K=new mxDictionary,U=G.cloneNode(!1);U.style.backgroundImage="url("+Editor.duplicateImage+")";U.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(U,
+"click",function(P){if(p.isEnabled()){P=null;p.model.beginUpdate();try{P=p.cloneCell(E),p.cellLabelChanged(P,mxResources.get("untitledLayer")),P.setVisible(!0),P=p.addCell(P,p.model.root),p.setDefaultParent(P)}finally{p.model.endUpdate()}null==P||p.isCellLocked(P)||p.selectAll(P)}});p.isEnabled()||U.classList.add("mxDisabled");D.appendChild(U);var Y=G.cloneNode(!1);Y.style.backgroundImage="url("+Editor.plusImage+")";Y.setAttribute("title",mxResources.get("addLayer"));mxEvent.addListener(Y,"click",
+function(P){if(p.isEnabled()){p.model.beginUpdate();try{var M=p.addCell(new mxCell(mxResources.get("untitledLayer")),p.model.root);p.setDefaultParent(M)}finally{p.model.endUpdate()}m(M)}mxEvent.consume(P)});p.isEnabled()||Y.classList.add("mxDisabled");D.appendChild(Y);k.appendChild(D);var Q=document.createElement("span");Q.setAttribute("title",mxResources.get("selectionOnly"));Q.innerHTML="&#8226;";Q.style.position="absolute";Q.style.fontWeight="bold";Q.style.fontSize="16pt";Q.style.right="6px";g();
+p.model.addListener(mxEvent.CHANGE,g);p.addListener("defaultParentChanged",g);a.addListener("lockedChanged",g);p.selectionModel.addListener(mxEvent.CHANGE,function(){p.isSelectionEmpty()?L.classList.add("mxDisabled"):L.classList.remove("mxDisabled");d()});this.window=new mxWindow(mxResources.get("layers"),k,b,e,f,h,!0,!0);this.window.minimumSize=new mxRectangle(0,0,150,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);
this.init=function(){u.scrollTop=u.scrollHeight-u.clientHeight};this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));this.refreshLayers=g;a.installResizeHandler(this,!0)};
(function(){Sidebar.prototype.tagIndex="5V1dV+M6sv01rDvngax0oLvveYQEaGaAziE0PW8sxVYSDbblI9uk6V9/VVWS7ST+kB0zL3etbmIn3ltlfZRKUqkU/rpRLN6MmFJym5yM/8QL/Xnw7yLceXQ03fA3JaOTyfjCQCKZehvu66tErCMW6J9E1M4jlJcFTJWIPP1VIKK1ixj/zML4VBRiTMaf9HOKx8G7/lwy71V/ZJEv8Vv8cKea9KW646tU41nk678/4tK7SZVu5FpC9oz/TDPVnkEPJlsn4wVma1lEnVemGByy6q+M+SXkSmaQ6Vv27gJeBDzyOQDMu1ma5FVEEVBEtuokgQhdyZ62Uv/9qWWoYPRltgx4A3U970/hc6BnIuD+kdI+KbGTcelGce6ec4evOBl/k0r8llGKtWBTvulF98xVKjzEvxWXDVS/M8VHF57Hk0TDpzpxJQGScC9TIoX3euXvVV/UcWWpDFkqsCYyfaM/1ly36vGfgVhv0oiasyfh7ypgyaaBaKHl5/nThqb5VeAvZEigXx8k0AolJJUkVjo7jGBOHFOm29Se3FZin6VsyRL42V+2U90z9crTOGAeIEK8Q1UCnMlGxk4CLWb/gsflKt0y/MLnbzyQccgjaIivAjgTT/Gtr4Quf9cXXWRLjRKxyRwvkBko75hHnjisPzUkP/kyESnHtwoAtQ7kkrehL7UyzUAtLrh6E5g7Nnn9iYo2SWW8ZVr1QYsTIW8gE+ll5kHWQlXGdr/Qug1Zl/RDe2O4FL+fWPBaiJSUZGoDT6HRYT3DN9Gdgy4agY3Q59gj+iIOdAOB/MmYYlHKqYp5PMLaFHMVirSSG2XYySnnZrGHNW19JdaZoiYxGV8LbGq+9DKsT0APT3Sk1ldzXaZszQvOpfzlkndUYodytAPDOEuxuocyEqlUmM+Jbm6HevkAq0sAW8+MB9BmQJs+8HQr1Wup3G2zL6uCetJZjXKofV7J+FLnUUWtxZyLTYa20FzpV1GxEgnVdxH4JOgyS0QECr4F3z3nEUHWUQfUjUi/ZUv7tjqTGaCkl0q6Wou0Ef9tdhslUBAn9Xq4GshZkG6gTmx0m8EqvuGoYzb4iwMYdDnVMcpbS2QM3TYB3mM0Sp71/0fuSVPf7lmki1d10DN3LE6x0/CKut+GuddVgGpRyFCtc/sZYS/Cm9FySdUj3sgIPlOZeZvWNAm1o0uTXH81UO3zZEEqQDkwD5q37t+zdAOqNe/RS/aJ6Tdi5purBt73xV930PiLapT8HTTXqz2Kh7JloQ26bIlVOtAl6dIY9uBPMhbeCdgtu/ZLJeEe1XdduTSPrpc6v9+TlIf64jakMpeQ9RumQFVr3YiV3vcb+eZyy9Viw4Ogl1p+nM2xmofSyNSdYgHjnSzA6m26fu+wTKtwYM30S1LXTkxPsYp0qp+nbu8yg271r4xnWM3/hoseBI+8qttygmLlSfLhZtmsS7CZUd1Kds295iT2m4dTh7aH0qLgF2QqGo5qVVdLtHiPvIp2mdDXinvvXtBgGhLRI4/1sJs09z5TqY6sRCNVqlU+2qxPDNuRuxm20MqLmqNOO3CqHRqxEGEclC3jNtATkMOLhFZpOynrH5FAc3UlcKRsbJHvy/9wD8iylUSFJHhrrfmRYBPaZCGDZ2Mu6QXolr3prFf16OdvsxOjqyqUVPXzVEngw+g2Qrur8WehCxWnqu71sE9gv/QWnrSalK00WglxllLFX+VXVaxv1TMae7yFcRrlV2059PNiNr2+wdxh60gmKamJ7trRDvIm4xsecYXqxI7z6sQ5pICWKDHp6jFiEyjpgtLioL1lU6MmSu3VHZm0QtcI1RVNeCPPjIeKHnuZLamxJzHnNIzdyIzsV2+DJm+Y22ZVlPINS35AxuFl1Bo4nQ5IJ7PIfxyW8xzGplLgaG9BGginPqsrUhn55RCZiLoxbRn4v4dAbkYubdBLFkWoRfXYs24CvPz8lGzpNZchT1XDzN8OSEkcF8ZBhnP+1cq2jJgddJORxMmOmMX7w5A96HXzILoS882Mr/IBWqAHTcjxejheKQPvJRo3kWNuP0g0msMlzn6upFoK36/o6A6R34t5fG0RKMGiNdXSwyFVJX4R6mwE9Y+GsodSb1gcv7cCTRUWmCEx1rI2SAbsPvY2+m9QmTl7mCeBdrAdKeMnTGC24X4ylMvU3qWtzY2Yf5/QdB+kwyKPB1i9agqkwEqZJqm+HLULWY27rx0Q72mUWoass8VjGOIQHihN0cRKenQVagMsqEtZ40YXPq4geB2yGWCXNjHdvWUBLwzZJqO0hL+TVEJ2va5urbACZWbCVYXEuLKywZep5bhnERlBRuANDHRa5c1HgwZlFJY2kWnipFFzIUE+znKy+EtINIQLcbvWDo8tdUmlOANNl1A7/85EXGmvHeBG00tYB81LS0AuLBVnVATUY8Ryv9DreSbjX5/Gw7BN6qTSVmRHniapOrKd1UqFa33dmLRcn4eiO68TzJgwXYga5OrAdj+l/P+s/3w5u4BXnkOdFpGwo5wOb+7Cf+7CX/0GtfRfzjCN8YfJX05g2BeQMAv9mxwCtgIWyOwr5L/o7pR+6SJ3Fe/5QLwwr4C6BIv1fKyzpToXHJTbLiG8/GQotrMJyTgA31zp7sYz07uavDfhI0+ET93fNFPKrlqZnmkCBaS85u7Qkeu8E9ciU7jYt/Oin4Cirkdwp8G3qlPh7jTYKupVrjsR5kytjqzkeYIFXRodnI/DcJL3VsvKmexWjgEoQCsdT/N5gLf5grrxeJ6vHTm4gO6UlxdM9fCJr5VdTooZGIdRDXwVSKniAK23gL3Xr/TsPT66RK06s+5MS1xeX2UqEqZDcGRYCDPKrMfWwKV89WhCtCt0umFC9cHJWKCO87lZ93ND0Yx1Ilesax5NH5/A6H4+Kc+ulmZcK+SoYJnx5BWnwRUNUOzoqJMouyS0VN6PSOkRm10jTnAgsGXKVzQTWkNVwXMVcD3cwHzgiccCc+0iwrV+eIB8vYYrzXPHQmiE1ZMQ1dCqZe8YRowhM391K5bkoGWFgTnpJC0cvypov69W1PHZKu61VvUKlrlgOFehv8dRqYiSVFVPrFeh9R+a6FKwUKF/2DYN5EtABZqrc/t6ZBF2b+Aky+I4EDDf0hE76YPlKyXWsFCNdaYrfEHqwDPaoVMBPZl25/OkuXfYh1AuGViPJI2HzBH4syPx50fiP/fFS0ErkVp1KFpUCxjqH1AdWqWlSspDr9t9mp8sRe05lZKcAbbwhWfvXCT5uaMGgh6KpJLW1xfoBw3LaFijA7pLbA/dLBaAHq0vExEoc+vIsCVvS8dsgKfzHs2zF5UcNegfdc9XQw7LtzEBEfnVuw5qsk9o/ZpU+TG0Qy5lmqJsZZKl/bKVR1cmoRI9kMKywhvIGYGrFIq+bi/73BQ0hZ97urenL6JXo5mqakobbtIVV66p/w8gNxay1cYALkHB9QnaBuTxx//OCudewXQalev3OcXoIopkah29PmH7C415oHVru0dODdPkGKapDAJyVt7oUe06YBVuotXIfZ+gJPdtaYfWuto0odAH8LSEDeELJ+eFgmTOYjMjHzutTu3jF0WpG5cTsOdrF/oO4OA7ZEqfB4GIEzsLWN3o6/CT3nipaAhKotcVWg06C0PjypdFnnW8zKDa16wc7zM8ads4WfHympGqW4QkbMBZ9BJqM5HWi99YkIFBog0Hzio7lkrk6FpEIqHNUzdS+rD2lUqc/dJZEPYVaHSDy8bczBP5mZ0nMo6LJDO2Kt7crnZYv2dpIkqO4Lj+UwiaZGA0N9XXHbZnPaKg7UVm+cmsVbpgLwQqTBDlK2QRjYqU9WGg36q1rR4EKSmgVoQS93g0qWbzMLnj/zKeThc2Ny9xdcxvW89tJ4FBZ+TrYS822IEJJ+OfG7MBproKdaU+lm6ha0k6VD5Wkg2Rn63EH5QRvWjn4LGOw95S7TY+lo3TH5bgr0x4r7qHlmhA5xdL8inC2+X+qnIjibHk+hEt7HPJHmiPr5FDKwqa25qJBIaLoGOvda+c0H4n10rRyKPrgymjDoVVMM5x8qynOBbcSwY9gDZTfidm4q9hNigH6Zq7EjwAgaEWn4CdRLdtSHCS1yLr+oE6voukO1CwEDCn2jNsm2CDCNlvtAe2HK3BYr8H2yZ1uJHuZl7so7STbMGZwqkd6+yc2C8a0q/ngU2T1/pvyFPmk83Tn/jK+AeZjy7QxdUCkrSe3NbTqNgL40jzsEOzt6u1D9tkTG81GT/skQ2ayLenp/lHp2H3zgzG+tdOZtsNHX1oJuNi99VAhH9Z9NF0P6/LNDBfboa6fZhgGdkTPhmqg3Eaf+zelGaa70Uruxfjpw7m7dWUBlIMPOJLqqEnlbYw7m/rCMN8W4EIq3yU28lRr/00O6EP07B7pPtJPgO3BzSObqMkNTPyh4nQVpli6C+Kh7umeGXIdYrzyrTE4a54V+7GdziaNakWdy8rutDfP+5Q6uGXHqZnFasiznRQXfSQERvNwMTfZtcLB/4N88lR1Bd6tC6Wmg+3UpO1nNAGReekn+dT/fCb2QYDbrLizeyyPyxWZ8bSBMBkfKP5KJTH8MncwhpdhJEJPjKZR2kWM4anfp4/4AqMtort1M9HJXJkDjXvCa99fDR7j1goZ+Ci5eNlH6zuA1JT24fiScpErMTelfGWWtwxQgHFjjzCtuJuPPlabFdZTK9hY7OU1LD5pjsLmKV+V7LRWsksxq1hcNHhDR5nYFYqnRg0I1Y7DGhmMD12qaM7njEng52y6I//yONAG9BDsy/0hb98H4T2Hv7Q9t5BMyMPDTB4Nn9XzMNV9SGpaZMwKq/cRu6MBdc0PRqMupDoGiLfYQUGNXqIoSzglobh11Ll0aDyYCql7wahxgrlvX5sEk9cZ8huDzRQKtakbzDk+1FCGCwTPmIQ6tuLe/08bRLHSBvMs1uV8of6M2tpff8UM/Pjklg8LY7ij2R0alrmSxLrke4KNjZKlWGvuIKL9jaT+K844epjeCsbzgtnkPNwXuM/X3fC4BwyjB44eY2kUW1gqzKElvowWzyKevTim5hHprYrSXGfbPU290OwgmbZRoHEXmVmBwR7emHQ9K589FG7k96B/hk0nQWuRNKy6Ee92NUl1NrCPFkWodFqXT7dWLX8EYuTjUw/LIFnGWQh/wD6BXjF5f1UsZTtMB/UxgsRVUy8uA9OYDJGlyEbZyNpS1HacBx90z06HU8knhzZ+GJAVIo1Vl/L92CjS6WtHnxx8r5FZ4xmPbZPYWNQQGbmEnRmuZ+BSxs5k2zBqQJpskiklWy1PIuQ4XrcZbGXdyOzpNmGIhLrhZhgucX6peINVyxIRreX0Gvda5tspRgFQCo8FlPjIwyemeTOGHtHJCIiCLF1sTgfj3fTib1jX+DJSDoQaa0feE+++5K/Z4mSnEGL3N11JS8SdE9HeEraqGfFD0fVEJwXKwldJ25PbrDKdG6T+y0F1RlOcDth5Q1LnHvED0S48Kx/2FCEsd33NxRhFplVkqLAB2obiywGV+ucayDaPEbVTg7QOnlfSrsfbDAhf+w3rmPInvWoA13OtB5XbLiyp9hIlxATesgqVVuZanqbKm6MJh1Y9lBCLL9k9Gl8cwW+HVN5dYJRLrKWiYZmurNPX2FH4z9mJNcfpaWJPKJ1YKpu6aZ3cv+m5HAb00cnVoSnzXdi39v8OjrjroXiW7JZiggXhh5ecLu4/2OIdA7Ih+C08S2Hz/Mi1Fqe56VEdMY8L6Zn4/H4j64J+gKCZEl0trLXXWAjGMsGJWQg26I8EcMmW9IrrmlhBZrg+JIlHLZJUsDSTda8UlJHNIXvj2Y5Dm0N7+NY9pee1o2LUIfB7vYSCPXf0b/4OxT2bsD8RsTjfKH/6Z9VXOcwfICpjK3rhMzX9DytZOyWPLfXrWCUPg9NPwImrq4cFDp2bgze3FOyVbYDpm9SprndbD67s+TRiPMDD27nJfk83rKrqZ7X5xQq0q9YDHNhWMhV5/fLowhZv+42gEJbG6qJssvEbZBSVOXSZTsKYuja+uiYEEIglnuoh940Z5eYnsnancUvHRghyGUuRsN2kzpsWYZVmcuVBAd9W77MgSF8cWI9JZs5sAeipm0DrrRhtrqDCGj+YStWogZxgwj9oEfBAkdsCZHMvHQ0uwCj1xdrQQeRMG1SSzqzI4JDRSpiZTWQ8TCDQIm6wsMEi66wv1qClVex6HKgZJe6zcRte5SqGO6zX6dWll1JmiVrIz2g68ZgQnab6IEXIcRmwh3ZYRxAHN5hGCfHMT5dGKlkiVuP1WAvj64TsOvFLGDWJOJAP/lY+rOPooctUXaFcG5CMCa1a0AHPB6LmSeMTZjfdEePpjmWiipzbiI1JJMhSCDb6SkZvNPUfwVnB0LYx541RzxuJ/k8hFT3ptWjI2OJC8b3RVLQnYF/CSf9GYYUlJRr45LCdn5cmnOM+J+nGctEOKfpC22h0DCFPGOcUCZPT0PubViEX01O6XyqRR4tbFvn7ONCdyczP8nnzoqrvnzzLNmUx3kP0PNFsKof4FFvGGqlYWNjR/bvu+xaITXs0W3mplMCaGSq9dDgslfw95VecO/809fRxfT0YkqMuRWRmxYdiWa1RIXZ4s43G5IMY9p07mxL6Mn4UtAY33ZVfdkuC2NpZQ2orngTjbcXfnaxl7EVNqU7WUX1OZLvoBYVfDWmbgulWK24yneHH1cVriJPvce4Kh95HZSwgX8Tx5T8neyLftHFIDycVUHfSFbhqFqHRluMTCF73Rk7urVIY0gLE+jEreOr5DkbiOfzMTy0c16rX25fTSgzM38k16QXl41tRaVVG+mqHQ9Kj2tRjO4N49KlY/vbrXN4V1f3WuAjOGZmozND0lk84L9yZ3zmzFEzTpQwu8YD2B2viUbXWWKDSOkmchQHFhbnzo2qkgRHQ8tEBty9dVYSnR8lzW0QZLBgZ46HuswCmA8R9ltgtcHh8HNJD3RKA4PMUdZbLlFOtrvUhnEyICPSHGYAsR3mR598eOA4RDUx91qTOIbeVNIBkpDJiqcJlB1dnsAJOg2hOSqwoxkt5cC8PixAfV9cX8Gqx8PJzjAM7N5oP9h+T2rYzFYabfWizslupwMJu8s4qIywhoDnZ+gK/DqkqPM94mMlfji1sFJxfTppGJD3YpwMzng2OOP54IyfB2f8cgzjvK6saydCejFOBmc8G5zxfHDGz4MzfunPCEXQt3+YDK4TahiP0Ak1jEfohBrGI3RCDeMROqGG8QidMBlcJ9QwHqETahiP0Ak1jEfohBrGI3RCDWMfnSDjVL6Y+cxIeMnoK67frkNzxEEetjrhb7XHe/VlzX35Z/NSCj73REj+FIdndDml9mfNO0Si1lGgL+nuK5gEjn+Du6vZ3iiMhyK1J7EeLjJ0IJ0MTApUp8xL0fUFY+1PIThD4lH4kcAc0ZZ7fsEUO87W7k3yOaX2XX9x6sksJg8y+L2461euSImrmyKhGTR4ZOeLfsTzjUylzdYYbqqzuZbvRY8OMSAUjkF3l2M7rL3GgfcSMN/nCg7P1gX0PUvjzEbVbDt124lo0ptoAFl6SwF7LF4S3QbMsrY0LjilL47hGt08fS+aQ3tDMPNvaYbHaMjVCm4278rUQudkb2+mtp+2Z3RgWoYf/YJS812Jv/v7mYQmH57QA7rd3d5cFu+VZMFuaksRSzpcr7Lp9ktr8l9M6+y/mNb5x6Y1f5j/18prJ60PLq+dtD64vHbS+uDyAhVlI6M799fdE5h8YAK31gsPt6BVaZt6RsUp69DTk3fr9ROx1h3yS5LHHaarfvARrtguLAODtUQzBeyZU8d6kM5KpOZkDlwuH5J18iGsZwOxPmOw7TcZpG2xuxs4cH33aI5Jd5J0A/u0wKZ8oZC56GjUdHaNAwVZp8aD2xqnlQ7dlXy5uknqlI8rfmfa4p+V00n/cZ2kaqGdDEA7r5a267C7hbLPjMiWvXFYo0Y/ZnPdiBUy+ToCJYpL0l6tk/j+06MLbE6e4m3OCmUMBlbBmIwYySAVIUXwCUXkNy1blzguKWaN4jE6VDljtma3rNJVX2ak5eHgFEcCGB0nG3TrWcrDQ+wrQdSQmIkm0+0tpXzFpGTTidwVMBCtiEwAsXob3RfLWCX4ypxyl0oZVL1mDXTKAh75Jk66e3WYbjBMgC8SL0vqzqOpBO7WH5vDDkAZ6haFYTV80TxG3EGhkULjQpwqMUeO68F4KirOKKgkwXBn/2FvzDVZc9pEc2C+SiA3Pgq6yskW3VGGFYeCeDJ2blwWhh1SQRGzpMmTZIdgizN+NtQNGoLctdpe2WPnJ+N/XIVx+o67L/O4wYoztyZe5jFhh4EpiyoZ6kje0SLH+OEmmkWxpN90tkyJ4zpgyWbHhcM19WsZkH6Ras0i8du55AloXNdaztzYgSmjVSMTb53tH+BUg7xhGZYONOBme6EMCujYxrX+rN3BeYD6xunkoQ3XlnTdTqBDlETN0hSK5ABzV3IzOXRyoYOyyjWjlS7C4Gzl2KFuctjgTfkpR62bf3bRrzgai5lv1GzlwbDVWPlKbkk35kykmnDxNfh7Eyk+b73cNsoi+HsbRY71qHcpDnlyBic7MhgeB3Q5TsmbJMsckqeTLbVSk+tI5EHclWjjK84IzRcv3ASRtGEiPyEv+h/61AUTSdPlpplatvIkMKP6LPiW06Ed6OhY1wfKmLYftpG+gY7Fc4RyhcXwxBznF3yQ2LXoERXmbJgl6LsIFIGoOEPugOC7tnWi/CywOxNXSxuzuPakZB7BoTLnqxhxGxNtsOAVRmUdSnF0fvb2MtDBzKimE2/MA2mNB7qTEI8873ZXiid0El/MsdYrniqHt38sni8oclZHCnqsvxCLcqZV5+t+fnro/r7m5ryWStYNhRnMYvM+Tnm60EOFmFThlPqfZeZcvRe6EzZntaWkS0wsOJ8spTa4HjHk+6Ibt48fQlPMCVXtlFkLkvG2iMbZYpnXMBwMWHzFas7yPYRn2FSxmTraXlU05nQ71NwNh5Uc4uTB2MANp7Sh5+EmdN03vFN026Vw7ud/xJ2r5Q8KdgOHyTIb+oN5bt1bHpGwXf/vNj8HUrMgLTPqDioiQ1eBf7KAoiFR2zLDcwecuIa+t7TluwWGYR+m9rzA4ghBJ5iZsdwJqknTOi4mHXJ0HtARirSFPaHPBXL1KyZjxYJaSwJh5izfLind6Vpr9KPN18QcHuVG8GizwuetHvkllLGJuoi6sGeG/eObVOI3NJkAhoY154U58DxDm/F6suBsH7TdDa8wy2tA3fQ6YlC9NOXTGgF0TuGI+bD1SyTEX3M0aAXOM1NHtJU7n0ZywCkYmwWjBz30PNV21NvJzuSeO0EfLBzLSaFI8HQybXkJbo+4tZ/tLMW0krl0QcGMLniY2CkXc+kC1c9lJPUyS1OcetH6+4SiDIMPmf4dGpT+0lgaIX3TQmvUXIL7tS5MjYlzg7gjwTfSQF3xN9z0aDhTy1PUXKarOmnpnCoJzWDUmgLFgLBZGF0hcDmELWGhtiVWVYyHIcbCnNNabPDKOwolTaRtHq1FxLnabcBlpslwVCMGezrNyo69hvxMhe7NKq2yCuzowiK1zpsqmSSnl5yFGAIM7kBRVJ1H68B2DYvgp5cBwwNf58z3A5yua4hje1NQxjHTqlC3Bed2VIAx6JNYZTRNUNy1A2UYw6GIJmxFftcFSGvDF8JELCgYOq0S75NO7UvgzpwS72R8qv8/ZWop8DTbmR5fknemaluT2kvj5fRFJLLje6ss2UCcubWuqSZOMX53Uj4XDH+0nxTziHBunKMpfIOWCGTtjU0KwgfbJPYIawXWuUKzqHiBn+9NQxjAUFssWiW8m2z0WSihRldm5Q/ElaZpXEz/6FMhmihnSOm+CF/mw3DTbBjZdrj6CLXi3E5041VrkdJWbsdN3SXA6E78nQk8jJVwWuBLIXHTLNl9S9Ec04PI8pHWKvfRbYEEcvuS8CixfoyRS1PbcJa+8F+wBL2m181vTnDqPM0v3FlG1+IX+QKnipndmk/ZksMe4W/ANBlflVJJs2W7StlP4oAHehqJJ3NiUn8MSXwN4xO/eAtQGNcsGjSN/bzqTf4DMn7D4rLAvbO91851AIa6CmB9wgvHx0e30ekd9TiPUo9cwMH+3uBFFLT571cSLcAO8roTkUFVIjoWj5N7XieKjDzA4dPtYd3b+jiPZCB+xaTSDirhaBFZnWFuWhNLdP3Sb/diemM6EMb2ms3QNzgeGsc+dOUKGM1ktsSZMgjAqTjuIn5idqksZYIGnp6A8MItr205EY/N+dkKcxzX0bLo3kLK9I8hiEr5BNFrh+KEfgwopR5JhgOTPkq5+gBK/QFjy4GFftODSX9ILqqJg5X/TGjj1R8yV3cYSdoPqRDXLMCAGUNSBtJGzhgsO/Y4jyg+xbxXE4/UhoiespQF77gOa0e7eWi0s/FkrD9WNG0CW882fBvwlNxvvFfyzRgorU/HptUVBG6zdODOGk83i2jQkJ/09x4uccbM/F6NH7EINuHhNEZktuOlMlO0SkxXYfnHZpoRBlaYybU5t2wpfL9lQyThV1L6NUm34kZThkF9C91FPjq0dLTEeyeea4Zle02yhLzFiaaEfORJyjLFIrtJa9XA0Uow6UZAnjseLcPmbjwh94VHlsZGJvFhyLlaFp2fuFnzDo/N8PQNxE4Sv5tiJNcw3WJ05d/Mzi2K0n03poX0KACac1zyGqKn2QyqF6wS7MV+zr3Ffc5W5pn9sNl7vLq9ZZrziinM8xgi12CwVt16W+ucAf8z04VDZ2xY+BrLXtdGBSPi9wrCaqp7RnE87+gFdANgfrM75R4c7dvjxeDKy9T7IFTkqpPoAXYQiJZlrB3kA4/TjEKfHyvEPMjQ8/9oogUz+xaPZ4rkdhWwV3hy27QQUIXFY31wI1PasqxWgZv0xJ31xJ13xv3QajQbpCI/82OJnMLpHwJG11x3p1i4shPunlAdMbY+mDQ74SadcT/xlUw/yfthJ12wCVtxPGJgw35XmVR1CLBmupkxBU53VCE5e4Jdu6a1N/jU1l1rz5B4AuZARroHljjTAMIHFadYVUBjqegcRrgofTqgIKykRANWm7VhSMLHsnbdtYLhX+yd4fYTuTUr3ZK8TFkk6wIn7BA84rk3y4CZBY38HByV/9CefZZqa1Lfl8YJ/XyCfkewgYfsgze+EV67KWnwCyZouIcpJvqubXp6Dx4JM7UHUTRkQsZPvlpZHKKVgpsUaIrDDQU11B6PcKoPHFdt7I03bXa7mAqW41X3yDo3lSmmJL/vwBFhASlaZ0jsXfm6MfThLpmtsXarWZdaWwJP3MEp9za1p9FUGY8NLHuHwdEZkWHpAMndYxfT4lC6Wk739fkD6OMCDguCJSBoA4IClZL1lcDRBKiPmgie8rc3xdFw+kwjeHIM+OwY8Pkx4M9dwLDLEephqUG/cXOaBJxi241gdIG+4kXW43VXMcosk0FYzgZhOR+E5fMgLF8GYfnan+USwwljIWfLACtK/kQvqslwVGfDUZ0PQTVlefBuPZhz8PpuYJkMwnI2CMv5kSxwXGOqMvSUXAmcQrK3XWhuFO41mYyfKrRZTYG1ki5oNfaSB2hC6bslXXbkMUtOTIXkCwSfOD/vaNHt0ykmoqEaniUbpOlZskEanyYLB3zLcLiXhOpJgh1RuSzNZBias2Fozoeh+TwMzZdhaL52pzEGUM0iQB1kRM61k/HD1QkeK5NuTjntucUb3rj/tprpZ8605QWTue7CtACZEpkVMuFND5kWP3MmIwfedJDpkq3XNBgIMnvlDFVLdMVZ0HaSDRPKa4knt0sAoRsm4wvsLhYye9Oj0RIfhHRISpdp4+kRO8y0lcR7L3nwnGCMOLdFAsNyFfA3490RiFWHF8OdweQFbLdrOSJxvmjOlJkv6jLjZBjmZqunZ7Og8kSzaixkPM4YUa53yfEfsR6TCvKKsRd7//4P";
Sidebar.prototype.searchIndexData="7Z1rU+M40Kh/zVbN+wEq98vHkHDbJUxeHGDrfFEpjkh0cKwc2R6G/fVHchKGKMwuRo7Usr21xQyBzUaPW62+qfuP9tkf3bM/Go0ofg2I+POP5kB+t8Rr8kdztPq54Hi9PMWcs5fodCD/QCP2Ev7RPFvGq0D8Sl389QfhMfVxcINnJJiwiMaUiV8ZzVgcs9W7XxgEdCF/ELO1eDWKOXsmj3QeL8VrjbdXhixgXLzyR6NZS/8RP5EfrTEUX182H7Jb23y73Hzb726+pfO3NWw+89t/F9DZBz/qjuRPsxK4IU+xdQK7JS/3gZghcEcXy5IjuF9bX7+lTXBGwjjdAyglYR2DIgZGMaQboeIgdgNMCL2mGQhDHAQsicXhmMwCAoRF245+2LH43wTPgZCwtDV2JMDsjo4iET1DHJbkB2chEAj9zh6EjiGzYUi5nwSYQ6GwvyU6fTMU/kxW6xO6FQVUt49hXxj6VjA0yoohtSJxOIejIVUQHYMgvCXma3Q+X5A5uiJQD09T+vKWxf5SkPDEOnDwtlns49iXkKYhHJU1tfG1dmIBBMW+MJgKQbzXFEBA2FES4JRD14py8AISzgkHHJUxJhBbEtMXhh7xawVDwhAfmqAppgEcdWHHB/NiTtdwINiJX3vil2gkKIA+Sk2JxJRTqIZVx1B4Zk9XoivG6T8sjHFgn4clkdjj8bBdlnUaavDOkGt6j6YJB2pfmQpgbhnI1DdMEJ2GURCA7Mzdyg07o1sQkPJ/dknAieAZ3hk+jXx2OktoMKfhIjo94zj0l+j70xP1yT6NNaNhTPj5DxLG0fa1OY6EDSa+kWt5okHwfo3NTk8s54PVP6X/fEjqi8jx9jufyI8oXmBJHNBQ/E/DkPjx9gOqsNv1fRO2fQA7xfMh6/QnZztuWszPw3lZgLf2gLcPjQAjwC9JSDj10e7dio69v2971Zu2uDOxqnAlSy7Kgr5eU9zkQ5vPCPrx6L7oqDv7/lbv0N8yQtpb4SAQ8h2JDxxFRYe+82F2Gr1lB/qUBMRnq1UiPjq6YklU+KO0Xts/S3uWFMsheTQZVvDNwL8PqViWWOtr4Yk3m/uK5rA08ojEhYCvpYBHabnHWhiP6yXhOIhOr8/GaIxp+MTxqvA6RynJ/CDk/x/PYLjj+EejJkiKr5NfLPN/LjSkaOC1Uke70A+mtb85PogagHowU/aSrq3Yz2Q/oNU9DGiBeSY3eL1ZaaEfiOIFd+pwH8gY+4I+i5aFfyb9/WeS2X0w+Eyoz9l6ycLCH/O9/0zVgXkoxXc1uj1nbK7JEA3m4igRjuAQ83nRn0xH8QFBbxN0x+SP/BI8F5d2DKfblRX6ifT382xNwKe852OxksI/EeWIz575NPhE1gQ/F/+JtPdd+D7kPZKE6JHx5yjGGyLFfjK99r6PAtiR9xLx3e7HhX8uyo45vPUH5rlM8SwgcdEfiHLMtwEbXlPCVzRUy2KL90g6yiMBfKrcF9+XVzYIZI/xgc4JE278Snxb9MfS2S/R+aAsG8xjeSQzdCaLPIt/vCsFwZBDw2UyhuFlGkNBJAh2z2XF5klAotN67fIcXQzZedGfiBqG/IL2eiP49kzGG4o5Po9mvdtC30YkehaL/R80DJIoDRS//XrRn1N3/5RpfmHnGHlOf8vndBEwxqun9FZTCu0pyf+LLKP2XmjsL9Hmf1D0Z9PraFsEJp7NBeXkRdYAe4T/oD7ZPh2xqV688f8U/SEpcczeFyLLJh7S/rMp/EOpO6HVvFdx2qxKdNqo4RmgttsD5XGCg91p8+t/ir49eEN5mbHwaq2ldFbLXH6c75OaizPGjxn/ZQmchwuxCPRtiP0lQaPtzwv/XNSivsw2wY6U3lPYvcvJMMBRhC7ojBM0XMpccvD2MIr+LNRTJnNCJq9nITjQWRKTeWnQK5FlW9vghon1zEvCXKkzameuJ86HuQw+LjhL1qURdjUGmTkhrwN+mcw2xtECx8LNe5WRxtoZjsgUXSWzoqNXjttWZu9OMPpl/1xuEebyGIby9TI8A+Wec3an4XjPYNdYYfumJXsS3cyn7vGeRLUPbNIfD7yy7IG2YgVlNvqP9xQ2nRhKsBMAn8rbG+o4KM1+0G1xdLxn8TC5LctTUPzhlrWzYSW+ntbbjeLfQe/rHsdj8eWrhDvdWk3m2ygpfMcdpd4je6hHh3O3XathHqFv3Xa9WfjgsnqTzKhID3yfRBGaSKqFB71/xSL7BTEt0MPC14hpZ0n0+HpF56vIb/bmRFp8R+PC89UNtWvx9Qao3S6+AddWenFkDqtrQY6ojyacyTOv+BkMJWjywZzXo8rzHarXSmMv9xTWmR1yLdbTQdH51mu61/70AI9Rs1d85azcUcp+YV8L8kPhLTi7FvLfk6LzVV1po3zPzrzCm8iqGt61HzREmBP8LIeFn7GfRSetNNs0q4rPOJ0vCl+v3tVNomghnnrCPi5BxF5t52tUkIcyNzvGIV6Ursy/aTSOPMTF57sfuWgajVwIvsKN5mmDPRou0OYSS9GRW02NDEeja3QhvhSdsl3felj8wHJ/35bLXr2kxVf+NQ3FFR2zcim0ZdSe22AeFj4Qp10Wrw/5PqTxKzr/ueYlGH2ktgqwwDttPFN0ztr9F7U4y1nSfowG/v9LKC++q6IOrTYap9vBHu4+cqFRd3Qv5euilteGpxyH0RPjq7R71a9bxNPzwld3KaPrDIu6dzIe3BU+raIWxpj1X7zxSeEJq+2/zAbxvHs08go/WbRe2+9FmP2ChRbk+7PCFyiqAxXNVtCNSFyKi9OKx5K9G7AWZBafzFnhS5mb+4yNxkVHk2nR8SpGW/aLPVp8vZtB4UOiSqcjs7W2I9lmaszmxc9wt22q4sfRGF3QoAROttKTKPswKB3OMkWF7mi4KDrlerNjUS1fcJY2QJuXp4BcGS5rVkmnXT6Enh6s1wHFoV94Za342Gavtu56qpRGtq1ejrjC4XxJgsIPSVTqyc2WzFxN0tnsRWes1NeZtfGuULPRLDzhusVj8HpYeF9QCWZkn2Gvx7fwwftuzSZf+UlDEiMv5kQOeio67Xptv07U7CWU6+8e8m7Oig5Z7bxjNFVyXfh7VIor0jV6y+d6Mi38jL6DklujZRmC8APa1WaU5HaE1eYO1xOBe7VKQrGaEmQA1UCd4SNwgkbeTdEZd21eJb6eFv4IVPWF0fjQn2ffR0UH3FAawRi1Mf4ihW9O2doX4LrRSyeCb+ErxpXrw9knw+sAvhncopgh8UfRMasFzEYNtxu6WMYvRH5Fg8KfeXa9khsWLjjBcvTXpPCliOpMNqPKYzwofDFtbz913TAqyeNh4fm2bd7gGZ/X68W/zqrdXVwLMZnTMoQqFCOuZ9QLGRMimzmsA1z86paWzXjFmETLyn47OmSxelQvQQ9b7ZlAWphpSNHD4O+iQ27rjpvRgsxmNCAlylkrCT+jBcxjr/DunnKhxGyR1vi+8MpCyYaYjdaP/y68/Kpd240G4W4Hw/JUgfcUx9qoCXdbDSk5Ll9hIuOwDNUWysUzs/qCxBELS9CQUrkOZdRCFpBfGH/elg+tSPHHRylnoFkb7pb8TKJSdPGzrKAl5oacW3KBZ/JC1PnPmITz4mtsu01AN9zbJRBvCJy7JeCsXNrpGE2wfvdjEhSdsJI6MesTfr/16mUYl6Z2wDaan/q+TteBBivhfD/R4h+Cyn1Vs27LjnbaLHHNeOENaqVRlNl7aZPBCNWLTliZSmc2rC8JNwpPeD/QYbZIYyI8b3Tty9UVm7JSy2zWmJucFT59ojTDMJvQngyRx57iF8wLH9xXSrrMTgkVnB/onLCiQ1ZLa43mAiejwk+A2Pkgu4slNaNW8mRc/MvBjX3Chg1jzmLms60fEpShCFQxL8yOqJv8fVF0vmr3cKNBjDsck1VS+HmhVodZ3pE1wSXo86kIstnpt3L0H0HeC439ZXn69Km6w6xcTzzxb9ERW22N4RH+gwpRLjpk5cKU2eqBLeS05wtnZctMmQ3KeSRGU7Yuw4zyet3meeh5hfcElXiR2aF0nneDpoSvaFgGH1Dtvmw0xOxNC9+xT6lrNtsK2Ct+vyI1hG9WfktyT0oZ5Gy2NtF7KH4eymYQY0oC4ssufeIDlyKrumu5ZSVRImnLAc6kBHd66k1FORutw5iKpRdelq1eUJtOUAlavih5P7ORuE1RHJYrLzblTt+iiTHlif9cdMIH2tjsuZdwTgpf2lnv7NfFmb3GOn0oOt9206II35/d9euFr7y3e1HnfnyJPMJp8RMjljlX6b2j8n3ASVD4085qWOihdONIzHoeD5NbmTeVn5hXiZBjw/YKr46tCvPjoGrwclS+117hx/X19gH3jQkwm5NVhHA4R+slC0l0OsSzgKSD3FdFh66UtDSzlyin9P5o1AQ/8XWSEsznKZAgQOn7Ff0hNLUnNB/tIVzg4lcbNTq6lsnR8F8xFq/LsAXUCujsyv9oz+B6Ug4tpBg4X4iXHO0RbNvmDnxZm45K+kB6oB5IGWyj/T4SjeylZUfjn77VyVMJDudaB+zBUAolBPhgvrsoh4+mzBz6QjX80R6BbLBQDvtUewJGTs9gTdg6IKeDcM7ZgoQsidCE8KgEVYX7BSzZL/tOUnJfRz7GPnpkK1x80vt2T72W2fDRRx2WA7Vq3tTbmQNwuqwnQ9lrufig9+2YeitzlEcX9F0ShjRclIF2bz9x3c9cRqTL2qOxnIBWDiWiXAHuZ44TaNOOhVFTEtFu7Bvj2ceL5wa7FLJtDzeXbTF4dCrMn9K1A85e93m3oaXBeTAdo827VLCNwJ7ixa7rSzm4a7eL0ud+xhme+ziKS4JcbTOeObOtj1z2JhGfGe16lZQSvA0dc0kXeEbjnY7ZqZxS8rch+NeDUTlh2xD26wlKbx4vWfhaTurZm2fnQN0bXpeEtnqdJXszUX3c+2UY5eDeV6azWVDkt8PzksAGoMhvSfwUsJeyAFcG02QOHeoD342n2TVsLAt5ZcpV5usE+uRLAtq+Ttm8A7oO0VlCAxm8LTp0pcHgW2sEC9QfabxEHg2oz8KtL1p0+kpHlex9SvXhV9EW08DXuDS468qFmezzx3LgHTMux2SVg7hSfJX9rr8+8Omoyg8Zg/3AKuVtEPcj/kECEi7isqTiAPidj5QL5qWJY6kJicw1nV8nHhE/4TR+PR3KXhcUXQjyLzgo/LiAltK+JXO+2duC02Iuv0Vv71Rw5KqUZ9YreSAvi3w3lJaSmVVKHrAvcUyeCVkXX4MrI4GzX1PPBXeC+bzwpBWLMHNsNg/S19+98pyUSm+dzLer8gB+w4rfo1bp75m9nXUeoG9J/ML4c2mMkpaiuDOHY/OAPrn+uzTqRPUurUj5Nv1QGuZKNZBZZ4f/SEs9U1/nPqRPlMzRZDsFIs0sF988VGacfMUaTynq8JdTTkKxILnOqJzcs98M1+c+EjrGjxl/LQlyJb/5FU9IF/kFDUhUCtg5RLHygF0S0VZof8VW1KV9xaLCd9ZWr4N/xUTU5Xw9mT6URKpzMMh1aY+pz9kLmZVDaUMA/v2qJNIN4ITcvMOm1q0c+Uxl2FL2+tkcoMtGlJz9LIvZrcSxvpJc00bOnuIXzAk6w5Fw8cvBXenHlD11nwN32XQC8zkqg3EIQZ9vqwvLIeBKCKWXuQJLH/h9SOOy6PG2km2zED7Z1BfKeGE57HEAQcLHx8eSyHdnvx+W0Uj4Rm9vMxFp3Oo8XNDi90fVno6zPfF0mAcsKXxpSr2nNIysZVcl2qRHNHomcVx4oW7rTpDUR30xRLs3KThsJWTVym4E6sOmM+FaDpdYfM4ASSlHXjKLXqO4+E3G9Z2eHPCL43KIZ+KzFt7HVFSLDdx3JEgT9ViIOo7xDEeF1zGKZZj9qo8+9an4IRpwjotf9mZfozySGRoGSVSCeLhdwzC9Vk82fSUvZHvDXfO383gpPKlS3Lrv6Hb08LYUdR9AOZoc6IdUcsA9DHAUoRZqlwS6cg88e6vxXKArHT23DSbr9eL3ae5D0DFv/Msh8rpztfNAvu+ZXuAZp35J+B80PrQi85ckJClz9hSXw5xRskTZ+03mgf1afOIgoJvvkRfj4l/RUrMX2bNzeXD3Rrcl0S9t5bKnFd43+JVw1EB3ZMViUhLyqmb/Qnw9N/TNkjAH4aSOL/9GvVqthsZJENNoz4wv+gPQbgyfywOQ3E92ZuSmdrQc+JVZWXasmhR/kOqdUil81ZWyJ/tbg3JEpOYpOnb1nLWj9Cdnf5dEzFWLMnuWKQ/cnInXVys8C8qiXkBEhMt8mloiTle/ztOScFc0jJWD9FcoDE0uH9H4clh47B0A5+gD5XGCA3RTInkHEYPf1KxXCVYL0MsBHEY87JHx5wVnybqifnzqL9smxKcDmVINcdFhK50V39owfB72rm2zDuxLId7hHE0JX9EQF741lzLCrL77sVnod3hOGZqyl+LX4jW7ipRnbr+QB3APp7nT4l/TUMeBtDIHdXPFLS8OFP7UVHRK9qKMPJA/0pMLKocKF5229rC4fGhv36PgsBXtnf36aJ6w0Rmn8xJc/tpvLZK9L3GuzG/YpoUlGqzXAcVh8VNEfd2O57nyn3IcRmvGC38LTG3TZQf7zeAWyZpezoKg+Mb5gb+fOa71Jegc+8+neO2fDiZD5K0wj9H9xEP1Wq120pS1MA8D1Ljfhx8oPDhdLON3Cw/Ik/w2WmOfhoub9LtRva0+IvFR5uzl4+f19lQOMHX2MTUPwyJySR9Skj8Qy8yDT3uLpg0YzQfGrwk03XZKpg6YTP3QE8ufzEadDeVXVO/X2rKgieIAydph8Wvxtk/Yb2dLuwxsuNNUOsgadSdZZdVIubBq1VPxEngqZJ9C1ujX3BQvC1ux0a+7yeqDiNvxWTmqtqywalesPsmq2W+0K1afZdWqWH2SVbdTa4Ln0jFvHwguLfBcPrgmYIBLBzyXj/L3BsD0wYNp1g8j2McHU4evYRofpFOODabXbNU2ofxNWP/ku3DgQnlgbScRilX/LtQPiZ2FU2vgDVC73Wuf/I0Gc7yO6Q/yNrbRBWQWHN6BdyejunXwW9GCg7tl0wDPxp7cNMRWq+j8jg58U9GCCb1lA99c7B32VjDDxgHDqN4/vCZoAk5fHFVwqVjSNAJKBy6UesvOPurX6jW4VBotS7LSl78OlUqnfVjsfWwqAsD8rStfs9aEJDRK2ap5OEPMhffJ0UT8gMS/Sp1QQ+1eCEmMLOjh34JqA+Zkwaf6LacOZIGyYAoOcYyD1yhGLXG8f3yJExIhK1vujVCjJ8zm/S7OIfm45SckaFb23xu0VgXtS9AqQL8H1GnXmifn8BC1lPmrFrWVQNRyAJGFJOJ7RB0HENU/aIdnklEfPKFGw3yY6B2hutBFgOH0zScX3+AoXm+jhp4YR1cTQLjUe+Dmc9S/o9VspLRGJAjg8vpgJJktXq0afF5Wgisf4qrXHMAFSLzqlfLKQqtZSdeHvK7nJIx3Y7XTutCPZuGW3NG7nnio1RYKyiNhJD8wVDYW4lHb8iw08H15LXh7RxUuIgvic0t+JpHMcNfQrjHg225zoD7LGrGG8B2mu0E65z9jEs5BVwdY49RotKYTdHlesfoEq2ZjMhGbsaL1SVrTcUXrs7Ravcn/VrQ+T6vSWp9j1azVO/DCnnDoVPmpf6PTaVV0fkunXcnO7+m0BZ1Jhef3ePqdKVwuVqIBOy738OXGGp+OvHoEnY61XdWRV0ig07FQS7Gh05XNtuq1Ey9gu6olOXM4imgEl5aNq7bvcfUcw9W1iqvlFi0bF9zf0eq7RatRM1++8/3WQ/V2s9beHyY6TKKYrQjf5Q4mAY6fGF/BhWfhTNyyExp/eIO877fn032IFbR/hTYeIG90BR1Zb39olYXC+w2xVru1kbGTQ2ic/aCRQCMbMcAjeCh05svMNgw7H89MhomtoTTabdTNFwRNlq+RbBz8q2lF6x55MeNY7akOScAsOACHoD5Ua4XqNmsQW5E6OxvE1gKMzcImvR96qC2LGcF7AhasDAmn02j17ie7pJ/sTMj9XTN4qKgsaK0NqjSO6hQqC5pKoho2GmjcRJvJznDpWBIkQadW4fkXPC0X6FjbWi0nhMcank6F51/wtNxQPdbwSOlpgMdjwZJ+HJyftOsNuEwsnFaSSadicsik24LLxIJqkUy6zVbVNe4QSreCsg/l4Rw1+oC3jxWVIqC0KyiHUDoVlEMo3XalaT+iUqnaQyq9SlYUKmT2Qbt65NW7NbicbGia33BqQuYESJ46FafT5fr0aoKEA9m+/NX67n2nBECENHtJXE2+iifl4b1GMVkhPx37ex76AYsSDrgcIWsyLyc8XUfw1FtWxCfqtN3gkzW893U81+ETDekZDufoYnQHXe00zMnNhLMbcVQJfXzTadT8bUR4I05g+RhUy+/5dCo+/8qn14bKp9m1zmd0U+/U0GUPDhRd7yIXKM1GjVRUDqh0KiofUllXVA6o9IDLSlYvMy8qsGXFEpV2ReWAShv4wWwBinfTaNYiUFR61nWtgNKGDcWcpOxaCg43lcHoIiA/T+o18e8IDh0bbhGdrU6vz8aoXq/Vag8DdD/xAAHRnF4uFqZBpF2rnTQa8Klk3UV6VLrtFrph/mYvRSwgaIxDvIBclpdV9+oBuhfKBcdogkPyi9FfNK74pHyaDuiZrPPJtYB0HACSNfKtBWT+U3jOcFkYVbdCKuTBDBhH1pyaLo62TKZdPcAFYlR5CCDddiUeWxo/m8LjQeMCFd9p4mg3KxzvcVTS8R5HR0pHEy4OoyftFgdg6TCNA/hmMY2jD/iUNcyiC3lytXEW7UqJ/sLRE1rj7zZcHEY92Z/NfoXj+ZSJrwE5vSUxx9tC2r+bJ40zePd5NQPw39OFagIaTprysvxgOhzsqo6hYVKs1nrG1qK5YepWmP4T07Rfg01J9YGyTk7OD1OtgvMhnG2RpNTZcNFktXPyIbPG3EfT1kkdvOhY5rM77NGYzZMAUK0tiDP/jVPxepzkwufvljzroaOxssX+7vxCU22ufUKbbXUuWwKuOY0IGrdcOOWz5kxyp9R2gVK9ZQNTddb/G5nqlP8PQvDP96zp67zItMCTyVp9qEsmCbcue8eZ+8OGNbJCaHdXfzdt/fznmsuRKRtlhBqtNarX0OXsHBBCy3ppn+C2Spr+Q+aolZL6DcsK4AHAKqL973hSN+Wth2clR4egRjjGQyLN8O39/5m8/78dmdXsAGKlWbaSA6udWqrXpJLaMuo21hWkDyD97+jufUeJSxyTF/wKr6uEfWK7SHfjBHDhi2kLfY8LoMtkAOxzJzIjFveR4HIDF4zpMIkEs5nYhRrycpmwhgac49eK0DtC/+fCe6PUrTcKVGiWN5wmZDiG00QCzgXlBE3roC/LmFfFKZW/G3VYVBogqLSAUYEhKy3Q94ks6ZW/W52SU1nT+Sle0BiL4yc6HWz/Jv5jcSBRztWg15pRGck4/0HCONq+tiPjp0EO8YKwEWM5PfFGQTljccxW735hsP0vY7ZW+aloejUlkHOIZr35+wEZ8fpuXVEObNC3QegvGf+fiswBmSFnUXRyRvCqonNIZ0QjHyqX5uGxZIyLbKxATjYB5QmezwMClVLLovRcpt0nINOxubeuSCA/PVQ0HziVxtBcr9YkCAjYA8smmwlnsOD0FR+q2bAHZ5rwGQ3BqhtjR9Z6jTmOkwiRgKzkqk/HOFwyNc9pDYz0d/fI1LLtqN36/mjUzrcrzAOSx/xnEktXYtueTawU3bJ//gEDrrnPLePpfixsyXrNeIzOpEdHYiCo6qqIQUJ1QxZAMDXaIHfiltMdDaGAUnVWI5syPzIo75lyODvPvnaXC+T0KVmQ6HT49nep2kfEx2ltyzfP5+QlDRyxgM6RtxR2FRTToX6gvjIx/LXkvNAJh4UulshbEzIHA0kVtGxK/hiQJoQ/MSG9BJo8AUSViM8Lxo0BuOHe9BNYoQLIjKSHh3AGIcUuAe4+YTCsVtX2+zdCAK0Ci3LEVmnhPeMROkE0YqdnAXshaeLtAodQAWUUo1+LFMbntfc9B0y/3lOiesB+kqzQJFmtK2T/jQx9e5NZOKFy4MRGVPwexwswGU3gvM7/L/FjONlx4LQmNIpZWMH6FCwZvqpQfQ4Vk0ktcT7CSd+AJxZj/lrB+hSs1JeuWH2KlcyisorVjhVP41QRWnAazoVCPx1uXgEK6IMSzH/js12dgHO5XV9+hIT1zuCqc1CgrjCoaAxkVNerNfbjCtUnUP2JwZ55oDhtjM8K1X+gSt9qiHZvi8bYF69BqY2BiG1MgyDN4CSBWBH9p7IaMsGqzsWvUauOyM9Qq/T+Zzk90BnHcoUVqh2qOafiHU5H8g+gUDJe/kiXkj0x+B6EvBmT0Hnat+sMcJ2QBTDb+KZwiH+QV8YFngCsgjbM51Xakt/FquUxtv12uMSr2Sa7LDPwT/L1aqNJXlcEx+k432QFF0i2IJ0ekE0cXAhIskIbdSyEZpqsZoEUpEpBbzF5a45fKxw7HGmQ+5e8yGqxX9+N2Q8pOzvNU3ZkT4TMJbOL9M9d5glN8QzO1c56raWjgjZL+zoaeS2PcbkOHKDNm4EBo6WbjwAGfRsTsV5AufGmwqhtH9F2jz1g4dVDwWRZlDYnGKj7eCoRQ4JD41jsnuj0TJg48/TsAsKjpXU8XWzXpQGEE/wcLzlLFksgSJo9rT2jjWQY4NVa+OMXAQ4XRHgOyTqAc6uuradR9OkwASeM0hZCMIgoW6hnHEglH+9wiF2zIrI7JongiAgsKOjbiMTCdpELOxG2DHsqir2SO6jzn+tALK3i9B+cZKu7kzsS0SjGIdwwKSxMaRij2om/RSesn/m7xh5AyDS0HIjcuIyS1epV0PkBJm7Ra9sFkwhBCaCwsOxWXbEIjMetsMjWi0sfxXW4uS4EBIdCw7RgXMul+UupQ2QweBNG//YrLAHl/LEdl/iY03fhem7+eh0ioXB8SCUWtpG9wal4bHhw+kR9giay92jFJGVyR+aJD8Zi6do15e6SdZxwAmnP2A5UeCR4OhGKRBavhQt0RwKCI7JJqgBBdJi3bBlmRAMSwtlEdVWnGJcZ8VWc0BvHCAgUu66QF3NMQzASYjlAvqMB63KbZSgPYm1ASNj2lR8oeZGHzWWAowgIE800db5M0LcbOaEEUPmHrejkUpZykp8bv5DL3Fs4J2EERtP2dJSKrFOVHTzflqeNZ8QS6TtP6JqgtAr27b2B8Orr7LL8eZ0HxI859VNYYCBpGnj5Y7qgP2VjRXmsC7WEpsmMRDDlS9VT2Y62/MldYcrXNATHqf+f8xHNYoK0/YDp9P19Jm1qGmy2IFTjAII0vSd2QcNQ6K+K2ReZ/bFpYAkVnfXj8YBdwDbRNPEDsDf8oAlcGrSvYH0OlremvDDdPg3g2rNcoWKzLWTpDkQ4nKMLLquonDDwMw6oy5/aHZkJgwwMH9Wwb9qlk/YGT2VKbj1FpFAdCLTOvkxla5VgGlqjgpYdWrOC9iG0TSZvImPOINV9H9YRubG7YKJST8Z+pulb+bOaLml4ckGDFTr/gdeMA7pApDfkNn9U9ycf6CwgrIBFCu+RJ39r7lIQ2jSzFf0pUV2HJzc0JGh7T3osX4VCqK/lMaZL0ebixVh8blhc9DxpPS5/hQQDasrQtYhC/NcyfjfBMZQ70o2ODRzrZLWOTof4B41fQU3kaTT3NWwmW0cu5MssyNuwnRQIGB9W2S6drjUiYBzUxh6Rrj0iULxPazIi23iA0h9aZQI6JC5xhLZj4WCg6DYsyYQk8W7yGwwaB2WAxg6WS4I5pC3S7u5HE+qmQFwxTv9hYbxVnkBw1NvKFPi6MSBFuk+pw2FCuLzGH4gPDASFGs3tm0KRzmqCtD1Uy6JjngQYu1N1TsztEC+ZrYSbR9MaYDjCUa/tA+lmur+lB0TIBWAS9Z6xjSK7ucKZRNLfb/mWLQ+mgwHedOF+f19bGDtEHrafFRKMutLspd4ytUHQCZrT8L3vDgWJXkx4i6Q2ur7VAvM2M7nC8h7Lue+nEuOjR8YrNvts0ts1bIUXIYFjtAOBI/39ish7Ilevc46ToBKUfSw39P8ldI7+JFCuDwPhckd8uubMT0vtKzR7aDYZ/80g+grNezRpvKBCskMiB1sLzbIJoHzbqBqo9fFfxPOVidbv8WzQvPMLKj4f8HlzDyo6H9CRxl4F5gMwlcb5LZrNmn6k3crWAfbJihSm0XPOpDhbyCyyhLWpVaowfYBpz2DeGocVqA9ApTZiReY0Imuclu1Hp5d8UwPo7V76Q46dJHEcvB9FCYOYXnX/2wqzx5Hf8dqMl36Hq0KzQ7MvQvQJbOMPu3SEy/HqB4D65wGjowSXK0r/RinaXHWYcGkC0Fj+rAKWEZhUV48EjAUOjNuE8BUOxYLRON2RFaYPMckuoAmnSJiYyUyYTBWmDzGJfVYh+ggRC+icPtG0D1jAIgImdAKNjpyNULF5xyadDLvbU6UHI16TjusK+0sakuj0/GfMk3SqMLC4SF2nYYS3WaZw/8fbheZJClaYBByoCQkC4Zn8I18ENHBCjScBACVjt+A2HlRMd0yIFRijCB6m7Xui7Tuib7/uE1XQPg1tVxtcIdsi+yE2Hwmi0zMMpdZImRyUrd3Pw2Y5OhjQt2vvOxT5sAyDcxLI+NCIJ1BqgJXb7xnTRvkiASUqeo00tMEk4fN2Mk569+IsXQkUNprJRl04AorwKWKCpjh8hoJEkZeuUdUylIZLOllKbKWUivhzKCxlwqEWdnZNi8xvAaFvZ4yBiUSrnLLNFTg2p0oLfRLVDVmA7SBdr9lRTuhbGnpNBwVsKvrSv17iCFC3bcVEzDZ6SBfVdjBTdcAdgJHmIeMI2mAvrbaXulAuGPfJ/GTE8VMsyLC0yGoKqGmQcme5n+nOsjadhIfYh3KTXclhWEHRgMnC8LmdttYSnz6AIhrN/ZZBZoMSksYVC+A09OzaDNFc4eBpMxZx29pz84ZA0BzYcd1MYxt04VyHckY86PNmv12IWRfzT+w/C5tt7ojoZGquo8vmr5D5zycsiSGFPtt1i5oGUjtppZlKr2cYhNwtdwQDal6n5gkydZfRJSJrktBZEjwjTxDBCyh2it7sa10qaV474fQfoWFBq9aGWXN2wtkaDRbb4mMYSKwqFFiapGXTnH27eQUpjmQ1vr2pbxxxCubwtcxjc8Igb70kHMpBYzc+sAvlgz5kzLo2gNSHVX0qOcDOFmbrv50Pj7dsxRmOwFxDVDtEWgJTFW/8O5o7xp6ggulb5pJOqYQmO/sxk7pZH3DHSHxyOFeaDo5mC0fSFok0WyCfTj0LaEZUfkDYisYuFik1jhxVDQukLnAQEWBgFCu4Xm9Y4BKwTYsgyFvLvJ+kgAGvks0CApQsrLf2lXCmiVa5gECPNF6iCfafAbWmtUplM3wCWji72dlnYjTrLltBoG9nBFJTPyXfYR5Hau9WPFIe8k9pzz09CRdAwBlRvCJitWBKatVkqlGV8otPau9uzDh5KHsJf8I+QdfhnMpeh3DuFCvGXc8mr/NwU6N9xtPqFjAy1bHpQf2G0aYnVOpGyeHs4kyHQsvqtcff0NoiOtnVkW3Kp8AQa8AjBulKieqANow6oL8BdAdpywEUIO+ZcjgqHKQITZeyQV0grIIoCUBZBTAEiq3AZPj6+2Xz2UYw5wXkIgmCk2kyIwfn2ZBROG0xGjajYjtWEwrmeAchOx5ZUQdkp25adiLx2aJTHFKhiKPTMznwvP7fMJ5oEAxZIING4n/UrKX/iNejmLNnsvtJyNLZpl8EdQD8QK6UeaWHR1q6uA9ppT8ZbFaty6vhCC81n/zBQOijAxsR4o6A9RQr4LCy1gwvVwRsF2z6fezp+LzYAn0PhfcmtKyj1A5rp45PLfE/UXIIgtZbO4XdCXmYHzg6rgvhxqArHPvCf3l1hJsiZR8Uhxwd218kDD9T4wuRV//wBt/ReY0Ziz5RJQ4Dl2KLWRCvW4aE9o/cBGbDtvDIZ+apg6B1UMRlwdb3AhY7Y1Ps9wLpWbApvBA/O6q9rGzGGM8+0ySj4rXhNSXz+Ss6+9TAdhDMOv/ZnudozJ4Ym8vun46Q0pauC7Her2Ia4jB6uwsQEFfMiW7LJjP29EQc1V2dzEejDqkRp6GsP0SPOHYpEGZTuhRmDUeYdTsWmV3gKEbpG7gBS9mUH1RhHROW+IKm3J0YmELrg2thR6T1V0ifnNH1+0GculFdf0eiGCcch7Ezel5tjmdUZ73j5YqOV8pE6rXMUcIvAlsSHMRLH3NyOgjEZwtxOpV+TObUp6Ez21NxiTIHDa/eMGgyDIXsLUlEsSvklPPSHrkoolEqezeyGXco7TTvVfztE33nQJDs6ZppeZE845iGjkADI35DzOdUrHnhTBpOiW1kNnRzJEeQF+OnJzTgxBm91wWyW4c4XiKxOle47YvdR11ITIGTv+BK2qmrWwCUF7URwU+uMOuDYcZXOHbqcFDQZa7Pyw0dFSuLnQl+q/EQa+bI+aujrpdVZOjRoWK9pmYWLy9uF3hFg1c04dgX63BG7HRTe7nhozyK0YA6GiC3B+6ShEQswNGjwd5+3bwPOp8nm/vvjvKzJnfifbg7gfR6TTknMgeG8+XWcISbKm6Zi7tzw8aiNY1x4IzEwdmoO3KuyFxPN+mVF7nr1SoJ6T/p8eDM+QrF278On4iwhFkSoRGNCHa1ct4mwbUQPfExXQEHJXNzLT5gGMkcmAyqu0IPjtil+evAteR1tw4E4F90HhJXQpxgqN0koTt3hRRo1pzYMV6tmPiZK8l9MEou1W1ppxvxQddyfgN3BaFyk8haoHiH8IbOOHbn2i00CbwjPuNzZzQfHHxhvGk1GDhzCVC7aj83eHfXjiADE3+6JQl3KXUNRtZuk5hTlwLsutcC8wL3PfRdEjgwJ8P3JEYTpwIn7Q4QkZssMV9h3xWRazeBiNxk+RqlxpxsoInXrvBTXQlrcndHFlSs3Kk8LJRgpydeQDc4XCSfmpUNAp7a+K5nLRvrMZ+KfesR/oP67tTXQUnyeAlfuNNy66BpjTVu09HIEWZg/Igpc6fbz8EI58z3XPOidh+IYzViSehMXZ2yRa3ZJI9LQgJ/iSlHA18cDRGdBcSZ6pPdhX2gGBuOYrSm/T7G2HQEo9p6w6w0hjhOZGE75s4cINrBlNt0zV+H9Weypu7kxHq6lwB0cY3xWmzHG3cuhfVsC9gYc2e8LeusCPcTZ7ysXdt/e5uRORNF0j4YdVndknWcOFPipW2O6eKaBEnMHIHV0Y2O68Ly5B+u7ER1pKLxneiF7OUpcKdFr/W96CWhM+64dlI5D1iuON0gYLniWls3TiWsVgXrc7CmURLiFXUFl5IfNo7rnuMwccVN7LQsq60H4hAs3Tt+X4a1JmwdkNMzPHt1xnxQ3MR6rZEV1yRdtSYuVwyIrm7yQ5fWcInDRdp5MXaqpkU316vNjYViwYnvEDM1kGpc1i7ICjszp0S7B7surbE7rNSWFW/fm6Tljovd1I1H5AHLlROyqRt31oaVrFauJDTUJuzGYU3InIgVU+zMoagbTNUl5i3Zi0PjXNR6WPPKawvMFf2lBnKM+0OeWG0QOFMgoVa+Zr81rAvsPqQR+ekILjUCbdzwesRiKcJ/vGNs5YwWU9zuL/S0zhWbK7qsp1vMr08tkOO8HMHVtm2NPbKVQ25RS7vRfD68XNmNLWviFeEnEr+enlG2xP9g7krBfr2m+JKZJ2h46cK/TmyIE4cChtrZbW1cS7JKL6s+Erx2FlvmU1IX2wUOgo1t4T+7kmXTbracBzSWxMhbksCdcnLrW/SC4wV1JlDd1a2+18V1hcN5QNAjjZdOdXzU7SKnzY0uluiBBTFeuHOzrWX7INij5oxZqxuRzZWaM8V1ugVQutT+ImSNRs5c/dC+h6XL69aV4nzrJsYtC0+uWUj/SW1aPKdOFaoo4y4zx2f16aHzMHZmXwKQNuStmENRRuvu5q+cLxpyFkUOodMtstZF55o2eyvn/PJsGl1iXkDX6MqlqGNXO6ytzSxmnKA7YdbG6H7tjPvUte0IKNxccaAsajWfktAnp2JFjGNBzxmrQxvZZuUazMZ4ERJX2oB2dS+Q5MCL+sLY8NnalRia9qUbfWa3iR8Q7E6xmX5QIzdkrip/C1L2SMP5SrBwhJg6qN0ksTXjcXQ6WK2XNCbYobSTbumBl65cAxn3l+5081RFLLse08R1hiMyw85syba2EtPlRUPmJ0GJGj9pE2PCI3/BwbMrwHSvd+UALEY3OAl9Rzv9tTNXsusiG+LV2qGrEor12jWuxba8HDVd21Z4PVF3ijJsWxWS14K71LFZ8SezR6+1iYXMnfoVNXeZvVw2F1yu6C/1FnTLvAJLuy7f0CdX4ojaLfu1iQV0NXMoYamdHdflJRO8aCh0fsxfkfdMZU2Go/rsC8nLY9BzRb2psmfe/H/1A4e2qnJ4Ghe2EeUxOqPOdOlU5csCsB8OiZd2NkmXFnsJl4KEc4eAImbGjVoVnKP637xCO/9JuE+jSp99ktcF5eSFMVec84POItnrpLSBRUuXVNnBkLjsxcU5EXNGhym1eHXj2n9HbELdSfbadtIlMzQMCA4dss/2Ja1jfGtessCVCT/q+Afjtqxk5Y5oabcV0ccVzlmAHcGlPTpaF9cVFvr+MqBzd0RMYdbpGGdGn505H7Wn1+QAyyHRUoKwxg/GK8ZlMZT/jKYcU1dKoqxH/q99grbGa4Xs88i8Zxw7hGzftPjKXSVdZsK0YBx5L3S1coibbRvjTxLLeKKjuIybF3/hV+xMpaJtNXZDnwj6UxyYzlxPOgiMGWc2ZjHjM1ni6UowUREz88Urv5A13ETWNK7GJtQPqe9ayzLbVRhbalMs59I7uj07xp3MPWqO7lDzFYx3OFwQvhuu5I602S4tVrg5I2+6s+K0uTH/GTlW1Kg9aSkfaHJIgkvjvOzv0XSsxCzALgW2bZdN3bEXaeO6gks5P+vGcSWhQ0lftWON+S354Agp1Zw1XkzsYRqgM4d2onaXAm1gIY0xf0UjKl6JcODaxFDbroAnPppwoB4oeUkhOcJNe0CaPrdkhpFbxdmKrBnPcXqERPjFTVpt4wEhjwRP6DJJCzSqpHAmck5HHo0nN2UymMxkpwx3dFnHtnfuPVP0Z7JaO8JrV9Bij1dA5g7Jl3pPzngSRfAia6n5HVNmfdvKbIWDjQvlVhsb+7cmvDANAvG5s8Jm3tAQyFZs5s6kIdUFML89BTGh0hhx5yhQu0GYl7KEO3QPQG1hZh7XtkjPnbTmvq2xa8togVjDFWJKVVDmYdw5EHNnQ+p3+tekNSVhSJ3pWWnbqKhCPRlgybi1I6x2sX1rLvijUylx7flB2rTEB4vSZhgVsk8iW+KApKkkh6DZbuos+9JHbln41uWMsTm6xPGScIeoWSuMiom/PB04VPOvuyWnYsEanBz1gvqZvSAdTkO8Ihy7KlPZ20TlwMpRucoej9BiRYIATZabFbpAq6Vr1mvRYqsVdrXRtVnFLlCtE4cSabqjM7RYceZMYtumTJ3/X+K7UjGnRpkzVxpqgZK2ujuDBNX4stHNlzZIdGjeg26bLB1WY2dDpV2j1vqEvbhz8tUtnnxy9DVzBZRSoZq5RkkLlOe5gslmOGFKArKW3owznnJrP071hXRhPrxc8ZabupWo+eBqOoJLmdH81l7ZNK+WK7zqILRX2xFcVnfjvXfmCKaWbjm4DqYHOicMbYKijvBSbIiW0TPxEW+ac4+xL/50xS/s6jad+CoyjsM0T5heAz1tocclEWrMGe9HCdNkPx731q8PcED5DLuSZFWH3fWz+0T541sH2CH7X20flj1OcSyCrngE9dq+C9XOHmo9FkJXvIS+dlLtWARd8Rv0o2jHIuiKK6HdNetoBDuuENzfxV/x9Y+FsOsIQvVaYCt74UreCFezRCD0XfFDtFtU5g4w9JeMu2MP6tYtHomfK9ag9pyqI/FzxhTUrTY+Ej9nDEHtQqKc+Z1R/9V3KCADzQzc8nPnANFtqncsgM6cINp5/iMBdPQIaWfPoR0JoDNniAIQjA50JpawfwhnbyaXO8AkcvUAAXACC3iOHh4N+4eHgOfowdHM3JPpGPBcOTR6+xHorxSS5UxviB0KuyidmqwrPQnPFaWnRk3tb1xJz1WtB0L0XNF62o0jjwHvhvnOzBVU6l+slx/IFt9zMkdXdLF8wa+OYFSb1lnfwxeEc1fgKTLYsR4vkFfCYp64s4mVE8R63veC8eeAPjlz/1A5RKwXEF1id8IFHe3a5iPAc8Vy1q/aPQI8ZwxnaFVrEp4rhjM8yeMsCedIeVs3YKoWjPWc2xXmM7lwF+llb2KfOz0SUJ+t3eleogZgOtYDMG65bx1oRRt/ErJ2xgJUs23WhS+l54oJqN/8JGd6N2LrxkuWRA7VvEDbv+8YuiKHbWgG4ZitydxVEbR/CWmDzxXpA1exMWYx42nVi5sEO9YzIRMs1oGD4BV5yWxF+EKI4yMn7kRVldSIdaCyWRIWUonSXuluUuxb39iez5hD+JRqXvv4CI7RGQlcie33oF3MFADRRF6KcwQguAtd3pK66xtbjwym9JyxCqGVok5x6Ir5osYE29bDqlP8kzoCD5zVMmUvaOBOQFXhZ78iQbyfH7t0DVhpX2vd+dgBdPTosF/YJufMhc7IXxua2bzB54r0dXSnsh4HnzOVHdDusG7weS4XJYCQwZUzClB13CBYMCtn9J96gxXABk78Z3eErw9O+CQ+R6WvBUDzSXzOnL5K9137zm+Kz5XKSnC3WDf4nLm7r9ygtp5I3+BzpQlgF1zINMXnSgNA9eiwfvLeh0RAQncMOzp20H7C6IEsqexe4tSdOAWilfjfDxKcDjinP2Q7/ItA1rRFjvA7mHvyFQ9ErF8LHHtB5zhyJVOu3oL7it2SA7Hbc1d45XDS5sFL7PGlI8h2MmUb2aMjvPKoa86Bl+fMlgTCiyXVlsyIrNqSmXg9EnfsCqW1knG74gwvFnjhTL2dYoYZN1zP3KlxUkXrK16SJis+Ixx5S3cGuO/r+6+1idNjRnASvyIPB+6kUjvWoTH2jAbhXNoWAg91S+aUM9O4SpNNue7Ep8OuTC9XujN8bZSLJrJoSV29JvGlWgc9XAzHaLh053aTWh78pcmHesgSzknov6Lzn/4Sh+4YaIqsGbdnh0kkFuBKJFa10b6STdbCNWIvYRRjyl0lZlzARpyGz2nMnyXi0KSumGk7X8neqTnaJkumLHHm6GxYPjrPA/JDXmt1hFdHNc2M+wLnkfjUDhFTL1J/paIjH2BIngWuUFNOAfP78o3avTOOpmKamd+aCWeOsOopVxSMB7LPf1JnQthKAMO4RXYlzFc/cQVXu2f7iLxiMXEl1qOW+tiBha7DJ8ZXTl1wUZquGz8hr1crKl6ukGVA9kvK3LmNYTvl+x5awxFobdvVUXIIhzPx624Od/U0aUVxml+SIR9HK437X7njrUVtnEQkWblCK4eeFlq0bhmaYC4Di64Qs51V2uJy5qTs5jAGJxdgrpyS1k2LiSSDvj8J8198QmeLyixsTYfOyTzam+vBEpIlPpwjuLq2I2OytMeZZKUiW8ZtMM+p1K7tOzZTKryiGI2xv6TOtKDsWY8nbrFNEu4vceQKN+t7c5qEoTNxWOsJkfu1W2Uqii7Tk6726P8D";
@@ -6198,16 +6212,16 @@ d.vertex=!0;var c=new mxCell("Tooltip on bottom",new mxGeometry(0,0,130,30),"htm
d.vertex=!0;var c=new mxCell("Tooltip on left",new mxGeometry(100,0,110,30),"html=1;shadow=0;dashed=0;shape=mxgraph.bootstrap.rrect;rSize=5;fillColor=#6C767D;strokeColor=none;perimeter=none;whiteSpace=wrap;resizeWidth=1;align=center;spacing=5;fontColor=#FFFFFF;fontSize=14;");c.vertex=!0;return a.createVertexTemplateFromCells([d,c],210,30,"Tooltip on left")}),this.addEntry("bootstrap tooltip with HTML",function(){var d=new mxCell("<i>Tooltip </i><u>with</u> <b>HTML</b>",new mxGeometry(10,0,120,30),
"html=1;shadow=0;dashed=0;shape=mxgraph.bootstrap.popover;fillColor=#1A1A1A;strokeColor=none;dx=60;dy=5;rSize=5;whiteSpace=wrap;verticalAlign=top;spacing=10;fontSize=12;spacingLeft=0;align=center;spacingTop=-10;fontColor=#FFFFFF;");d.vertex=!0;var c=new mxCell("Tooltip with HTML",new mxGeometry(0,30,140,30),"html=1;shadow=0;dashed=0;shape=mxgraph.bootstrap.rrect;rSize=5;fillColor=#6C767D;strokeColor=none;perimeter=none;whiteSpace=wrap;resizeWidth=1;align=center;spacing=5;fontColor=#FFFFFF;fontSize=14;");
c.vertex=!0;return a.createVertexTemplateFromCells([d,c],140,60,"Tooltip with HTML")})];this.addPalette("bootstrap",mxResources.get("bootstrap"),!1,mxUtils.bind(this,function(d){for(var c=0;c<b.length;c++)d.appendChild(b[c](d))}));this.setCurrentSearchEntryLibrary()}})();(function(){Sidebar.prototype.addBpmn2Palette=function(){this.setCurrentSearchEntryLibrary("bpmn2","bpmn2General");this.addBPMN2GeneralPalette("mxgraph.bpmn2",400,this);this.setCurrentSearchEntryLibrary("bpmn2","bpmn2Tasks");this.addBPMN2TasksPalette("mxgraph.bpmn2",400,this);this.setCurrentSearchEntryLibrary("bpmn2","bpmn2Choreographies");this.addBPMN2ChoreographiesPalette("mxgraph.bpmn2",400,this);this.setCurrentSearchEntryLibrary("bpmn2","bpmn2Events");this.addBPMN2EventsPalette("mxgraph.bpmn2",
-400,this);this.setCurrentSearchEntryLibrary("bpmn2","bpmn2Gateways");this.addBPMN2GatewaysPalette("mxgraph.bpmn2",400,this);this.setCurrentSearchEntryLibrary()};Sidebar.prototype.addBPMN2GeneralPalette=function(a,b,d){var c=[this.createVertexTemplateEntry("shape=mxgraph.bpmn.data;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;",40,60,"","Data Object",null,null,"bpmn business process model notation data object"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=none;isCollection=1;",
-40,60,"","Data Object Collection",null,null,"bpmn business process model notation data object collection"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=input;",40,60,"","Data Input",null,null,"bpmn business process model notation data input"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=input;isCollection=1;",
-40,60,"","Data Input Collection",null,null,"bpmn business process model notation data input collection"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=output;",40,60,"","Data Output",null,null,"bpmn business process model notation data output"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=output;isCollection=1;",
+400,this);this.setCurrentSearchEntryLibrary("bpmn2","bpmn2Gateways");this.addBPMN2GatewaysPalette("mxgraph.bpmn2",400,this);this.setCurrentSearchEntryLibrary()};Sidebar.prototype.addBPMN2GeneralPalette=function(a,b,d){var c=[this.createVertexTemplateEntry("shape=mxgraph.bpmn.data2;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;",40,60,"","Data Object",null,null,"bpmn business process model notation data object"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data2;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=none;isCollection=1;",
+40,60,"","Data Object Collection",null,null,"bpmn business process model notation data object collection"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data2;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=input;",40,60,"","Data Input",null,null,"bpmn business process model notation data input"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data2;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=input;isCollection=1;",
+40,60,"","Data Input Collection",null,null,"bpmn business process model notation data input collection"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data2;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=output;",40,60,"","Data Output",null,null,"bpmn business process model notation data output"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data2;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=output;isCollection=1;",
40,60,"","Data Output Collection",null,null,"bpmn business process model notation data output collection"),this.createVertexTemplateEntry("shape=datastore;html=1;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;",100,100,"","Data Store",null,null,"bpmn business process model notation data store"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];rounded=1;dashed=1;dashPattern=5 2 1 2;labelPosition=center;verticalLabelPosition=middle;align=center;verticalAlign=middle;fontSize=8;html=1;whiteSpace=wrap;",
140,80,"","Data Object",null,null,"bpmn business process model notation data object"),this.createVertexTemplateEntry("text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;",80,30,"Text","Text Annotation",null,null,"bpmn business process model notation text annotation label"),this.createVertexTemplateEntry("swimlane;html=1;startSize=20;fontStyle=0;collapsible=0;horizontal=0;swimlaneLine=0;fillColor=none;whiteSpace=wrap;",440,100,"","Horizontal Lane",
null,null,"bpmn business process model notation horizontal lane"),this.createVertexTemplateEntry("swimlane;html=1;startSize=20;fontStyle=0;collapsible=0;horizontal=1;swimlaneLine=0;fillColor=none;whiteSpace=wrap;",440,100,"","Vertical Lane",null,null,"bpmn business process model notation vertical lane"),this.createVertexTemplateEntry("swimlane;html=1;startSize=20;fontStyle=0;collapsible=0;horizontal=0;swimlaneLine=1;swimlaneFillColor=#ffffff;strokeWidth=2;whiteSpace=wrap;",440,100,"","Horizontal Lane",
null,null,"bpmn business process model notation horizontal lane"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.swimlane;html=1;startSize=20;horizontal=0;swimlaneLine=1;collapsible=0;fontStyle=0;swimlaneFillColor=#ffffff;strokeWidth=2;isCollection=1;whiteSpace=wrap;",440,100,"","Horizontal Lane",null,null,"bpmn business process model notation horizontal lane"),this.createVertexTemplateEntry("swimlane;html=1;startSize=20;fontStyle=0;collapsible=0;horizontal=1;swimlaneLine=1;strokeWidth=2;swimlaneFillColor=#ffffff;whiteSpace=wrap;",
-220,100,"","Vertical Lane",null,null,"bpmn business process model notation vertical lane"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.swimlane;html=1;startSize=20;horizontal=1;swimlaneLine=1;collapsible=0;fontStyle=0;strokeWidth=2;swimlaneFillColor=#ffffff;isCollection=1;whiteSpace=wrap;",220,100,"","Vertical Lane",null,null,"bpmn business process model notation vertical lane"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=conv;",
-70,60,"","Conversation",null,null,"bpmn business process model notation conversation"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=conv;isLoopSub=1;",70,60,"","Sub-Conversation",null,null,"bpmn business process model notation sub conversation"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=call;",
-70,60,"","Call Conversation",null,null,"bpmn business process model notation call conversation"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=call;isLoopSub=1;",70,60,"","Call Sub-Conversation",null,null,"bpmn business process model notation call sub conversation"),this.createVertexTemplateEntry("html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;",50,100,"","Annotation",
+220,100,"","Vertical Lane",null,null,"bpmn business process model notation vertical lane"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.swimlane;html=1;startSize=20;horizontal=1;swimlaneLine=1;collapsible=0;fontStyle=0;strokeWidth=2;swimlaneFillColor=#ffffff;isCollection=1;whiteSpace=wrap;",220,100,"","Vertical Lane",null,null,"bpmn business process model notation vertical lane"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation2;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=conv;",
+70,60,"","Conversation",null,null,"bpmn business process model notation conversation"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation2;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=conv;isLoopSub=1;",70,60,"","Sub-Conversation",null,null,"bpmn business process model notation sub conversation"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation2;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=call;",
+70,60,"","Call Conversation",null,null,"bpmn business process model notation call conversation"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation2;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=call;isLoopSub=1;",70,60,"","Call Sub-Conversation",null,null,"bpmn business process model notation call sub conversation"),this.createVertexTemplateEntry("html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;",50,100,"","Annotation",
null,null,this.getTagsForStencil("bpmn","annotation_1","bpmn business process model ").join(" ")),this.addDataEntry("crossfunctional cross-functional cross functional flowchart swimlane table",400,400,"Cross-Functional Flowchart","7Zldb5swFIZ/DZeb+EjS7nIhTXexSVO2P+DCabDq+CD75Ku/fnZskipAi6JmUxkSkezDscHnfWK9MkGSrnb3ipXFD8xBBMldkKQKkVxrtUtBiCAOeR4ksyCOQ/ML4nnL3ehwNyyZAkldBsRuwIaJNbiIebjWn+ZrmRFHyWzyXOA2K5gil6xpL3yyLlhpm8QebGiaFVzk39ke11RFq95Uk5nhF3+2+aPQJqMQrNT8MHRmIwqytdJ8AwvQLtFGYVcymfvOI8pqkmhS9f0L+dVvQBHsWgtyCPlq3AOugNTepGx5ToXLGIWuaGEBfFnQWZBpF1gex57qaxq+xM3lTmrl/poRKhOKXq/tArdmsQUq/mwWbFRx1dBbvhJMwjdg+VloivnehwhL3xLwSFUeKXyCFIV5fDLjsgDFrUwPSISrShC/ftvOFZa/mVoCvZTiWHrT50JU80mUlocSuaRDvcZTc5kKpuHncTA260tNPzr1zWXTFaUozasxfpALmKYt6Ovh04mYuJmYfQWGG/EWQFH8DgCNagD9LJiGZoA8CZ05ORe0DZEMpYTM/+fdyLr0/1CvpFmvXateR2k66+VnX9gyyKWAS+ZjgkBJRkaCtcx1DYPjq3ciY9xKRjyQ0Y2MaNJPNCataCQDGt3QiG/7icZNqyFp2DUGQ/IhDEnTNnY9R3JbI+j995T63tEGyxt7yt+V6eZ/9CFfBh4u46Gv7iMKByIuI6KvpiOKakRUrqPBkA6u40O4jiZYr+c6ovrB5bCpVAVuOeHst++I6merAxHdiOit86iflg5IdEOiJ9bDdE/f0lz6y09tfwA="),
this.addDataEntry("container swimlane pool horizontal",480,380,"Horizontal Pool 1","zZTPboMwDMafJvf8YdPOpVsvrVSJJ4jAaqIFgkI6oE8/Q0KrdmXjsE09RLI/f7aT3yFEpGW3cbJWO1uAIeKViNRZ60NUdikYQzjVBRFrwjnFQ/jbTJWNVVpLB5Vf0sBDw4c0RwjK3loTxMb3JopNq0sjK8xWypd4yzXDMFfaFFvZ2+Owq/Eyf5+ylYNGn2A/XYTdSDvZoUqHedbpk628nKbiHOczdGLOrx3ZsCL2tUp7yGqZD74WAaIWHwPOQzcLZJQijQ3YErzr0dLqwqvgSF4CNKpAH1RsE5MomyAczr0XvhhExPdxiy+4twNVTtlC5N/AiVwWMeD3GfSxGl/6ExLGfwFJMoeEPxISlvwnk6c5JuKRmPDnP2SC6eUXHGtXn+Qn"),this.addDataEntry("container swimlane pool horizontal",
480,360,"Horizontal Pool 2","zZRNboMwEIVP472xadR1SJtNIkXiBBaMYqsGI+MEyOk7YCcRCVQs2ioLpJk37/nnEzLhSdFurajk3uSgCf8gPLHGOF8VbQJaE0ZVTviGMEbxI+xzZhoNU1oJC6VbEmA+cBb6BF45GKO9WLtOB7FuVKFFid1augJPuYmwzKTS+U505tTvVTuRfV27tYVaXeBwPUj0IO1Fiyrt1zNWXUzphA4CrmNdik7s2diR9lsEWyOVg7QSWe9rECBq4TJgHbSzQAYp0NiCKcDZDi2Nyp30jvjdQ6MS1FGGGF8FUdReON6yd75YBMTTuPkT7l1PldFoIfIf4AQuixiwaQYhEP6ZEZLVBJKI/QKSeA4Je0Uk3cPN/wXR2xwi/sKIWPyHiLC9v5HDbPSEfgM="),this.createVertexTemplateEntry("swimlane;startSize=20;horizontal=0;html=1;whiteSpace=wrap;",
@@ -6221,130 +6235,130 @@ this.createEdgeTemplateEntry("edgeStyle=elbowEdgeStyle;fontSize=12;html=1;endArr
mxUtils.bind(this,function(){var e=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=blockThin;html=1;labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;dashed=1;dashPattern=8 4;endFill=0;startArrow=oval;startFill=0;endSize=6;startSize=4;");e.geometry.setTerminalPoint(new mxPoint(0,0),!0);e.geometry.setTerminalPoint(new mxPoint(160,0),!1);e.geometry.relative=!0;e.edge=!0;var f=new mxCell("",new mxGeometry(0,0,24,16),"shape=message;html=1;outlineConnect=0;labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;spacingRight=5;labelBackgroundColor=#ffffff;");
f.geometry.relative=!0;f.vertex=!0;f.geometry.offset=new mxPoint(8,-8);e.insert(f);return this.createEdgeTemplateFromCells([e],160,0,"Initiating Message Flow with Decorator")})),this.addEntry("edge shape symbol message mail email non initiating message flow with decorator",mxUtils.bind(this,function(){var e=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=blockThin;html=1;labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;dashed=1;dashPattern=8 4;endFill=0;startArrow=oval;startFill=0;endSize=6;startSize=4;");
e.geometry.setTerminalPoint(new mxPoint(0,0),!0);e.geometry.setTerminalPoint(new mxPoint(160,0),!1);e.geometry.relative=!0;e.edge=!0;var f=new mxCell("",new mxGeometry(0,0,24,16),"shape=message;html=1;outlineConnect=0;labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;spacingRight=5;labelBackgroundColor=#ffffff;fillColor=#C0C0C0;");f.geometry.relative=!0;f.vertex=!0;f.geometry.offset=new mxPoint(8,-8);e.insert(f);return this.createEdgeTemplateFromCells([e],160,0,"Non-Initiating Message Flow with Decorator")}))];
-this.addPalette("bpmn2General","BPMN 2.0 General",!1,mxUtils.bind(this,function(e){for(var f=0;f<c.length;f++)e.appendChild(c[f](e))}))};Sidebar.prototype.addBPMN2TasksPalette=function(a,b,d){var c=[this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;",120,
-80,"","Generic Task",null,null,"bpmn business process model notation task generic"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopStandard=1;",120,80,"","Standard Loop",null,null,"bpmn business process model notation task standard loop"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopStandard=1;isLoopSub=1;",
-120,80,"","Standard Loop",null,null,"bpmn business process model notation task standard loop"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopMultiParallel=1;",120,80,"","Multi-Instance, Parallel",null,null,"bpmn business process model notation task multi instance parallel"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;isLoopMultiParallel=1;",120,80,"","Multi-Instance, Parallel",null,null,"bpmn business process model notation task multi instance parallel"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopMultiSeq=1;",
-120,80,"","Multi-Instance, Sequential",null,null,"bpmn business process model notation task multi instance sequential"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;isLoopMultiSeq=1;",120,80,"","Multi-Instance, Sequential",null,null,"bpmn business process model notation task multi instance sequential"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopComp=1;",120,80,"","Compensation",null,null,"bpmn business process model notation task compensation"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;isLoopComp=1;",
-120,80,"","Compensation",null,null,"bpmn business process model notation task compensation"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopComp=1;isLoopStandard=1;",120,80,"","Loop and Compensation",null,null,"bpmn business process model notation task loop compensation"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopComp=1;isLoopStandard=1;isLoopSub=1;",120,80,"","Loop and Compensation",null,null,"bpmn business process model notation task loop compensation"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isAdHoc=1;isLoopSub=1;",
-120,80,"","Ad Hoc, Collapsed",null,null,"bpmn business process model notation task ad hoc collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isAdHoc=1;",120,80,"","Ad Hoc, Expanded",null,null,"bpmn business process model notation task ad hoc expanded"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=service;",120,80,"","Service",null,null,"bpmn business process model notation task service"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=send;",
-120,80,"","Send",null,null,"bpmn business process model notation task send"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=receive;",120,80,"","Receive",null,null,"bpmn business process model notation task receive"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=user;",
-120,80,"","User",null,null,"bpmn business process model notation task user"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=manual;",120,80,"","Manual",null,null,"bpmn business process model notation task manual"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=businessRule;",
-120,80,"","Business Rule",null,null,"bpmn business process model notation task business rule"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=script;",120,80,"","Script",null,null,"bpmn business process model notation task script"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;",
-120,80,"","Sub-Process, Collapsed",null,null,"bpmn business process model notation task sub process subprocess collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=transaction;isLoopSub=1;",120,80,"","Transaction, Collapsed",null,null,
-"bpmn business process model notation task transaction collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=transaction;",120,80,"","Transaction, Expanded",null,null,"bpmn business process model notation task transaction expanded"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=message;",120,80,"","Message-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting message event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=message;",120,80,"","Message-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting message event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=timer;",120,80,"","Timer-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting timer event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=timer;",120,80,"","Timer-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting timer event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=conditional;",120,80,"","Conditional-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting conditional event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=conditional;",120,80,"","Conditional-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting conditional event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=signal;",120,80,"","Signal-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting signal event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=signal;",120,80,"","Signal-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting signal event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=multiple;",120,80,"","Multiple-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting multiple event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=multiple;",120,80,"","Multiple-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting multiple event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=parallelMultiple;",120,80,"","Parallel Multiple Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting parallel multiple event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=parallelMultiple;",120,80,"","Parallel Multiple Event Sub-Process, Interrupting , Collapsed",null,null,"bpmn business process model notation task interrupting parallel multiple event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=escalation;",120,80,"","Escalation-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting escalation event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=escalation;",120,80,"","Escalation-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting escalation event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=error;",120,80,"","Error-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting error event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=compensation;",120,80,"","Compensation-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting compensation event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;arcSize=10;taskMarker=abstract;outline=none;symbol=general;bpmnShapeType=subprocess;isLoopSub=0;verticalAlign=top;align=left;spacingLeft=5;html=1;whiteSpace=wrap;",180,100,"","Event Sub-Process, Expanded",null,null,"bpmn business process model notation task event sub process expanded"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;",
-120,80,"","Call Activity",null,null,"bpmn business process model notation task call activity"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=user;",120,80,"","User Call Activity",null,null,"bpmn business process model notation task user call activity"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=manual;",120,80,"","Manual Call Activity",null,null,"bpmn business process model notation task manual call activity"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=businessRule;",
-120,80,"","Business Rule Call Activity",null,null,"bpmn business process model notation task business rule call activity"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=script;",120,80,"","Script Call Activity",null,null,"bpmn business process model notation task script call activity"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;isLoopSub=1;",120,80,"","Call Activity, Collapsed",null,null,"bpmn business process model notation task call activity collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;verticalAlign=top;align=left;spacingLeft=5;",
+this.addPalette("bpmn2General","BPMN 2.0 General",!1,mxUtils.bind(this,function(e){for(var f=0;f<c.length;f++)e.appendChild(c[f](e))}))};Sidebar.prototype.addBPMN2TasksPalette=function(a,b,d){var c=[this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;",120,
+80,"","Generic Task",null,null,"bpmn business process model notation task generic"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopStandard=1;",120,80,"","Standard Loop",null,null,"bpmn business process model notation task standard loop"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopStandard=1;isLoopSub=1;",
+120,80,"","Standard Loop",null,null,"bpmn business process model notation task standard loop"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopMultiParallel=1;",120,80,"","Multi-Instance, Parallel",null,null,"bpmn business process model notation task multi instance parallel"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;isLoopMultiParallel=1;",120,80,"","Multi-Instance, Parallel",null,null,"bpmn business process model notation task multi instance parallel"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopMultiSeq=1;",
+120,80,"","Multi-Instance, Sequential",null,null,"bpmn business process model notation task multi instance sequential"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;isLoopMultiSeq=1;",120,80,"","Multi-Instance, Sequential",null,null,"bpmn business process model notation task multi instance sequential"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopComp=1;",120,80,"","Compensation",null,null,"bpmn business process model notation task compensation"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;isLoopComp=1;",
+120,80,"","Compensation",null,null,"bpmn business process model notation task compensation"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopComp=1;isLoopStandard=1;",120,80,"","Loop and Compensation",null,null,"bpmn business process model notation task loop compensation"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopComp=1;isLoopStandard=1;isLoopSub=1;",120,80,"","Loop and Compensation",null,null,"bpmn business process model notation task loop compensation"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isAdHoc=1;isLoopSub=1;",
+120,80,"","Ad Hoc, Collapsed",null,null,"bpmn business process model notation task ad hoc collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isAdHoc=1;",120,80,"","Ad Hoc, Expanded",null,null,"bpmn business process model notation task ad hoc expanded"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=service;",120,80,"","Service",null,null,"bpmn business process model notation task service"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=send;",
+120,80,"","Send",null,null,"bpmn business process model notation task send"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=receive;",120,80,"","Receive",null,null,"bpmn business process model notation task receive"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=user;",
+120,80,"","User",null,null,"bpmn business process model notation task user"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=manual;",120,80,"","Manual",null,null,"bpmn business process model notation task manual"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=businessRule;",
+120,80,"","Business Rule",null,null,"bpmn business process model notation task business rule"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=script;",120,80,"","Script",null,null,"bpmn business process model notation task script"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;",
+120,80,"","Sub-Process, Collapsed",null,null,"bpmn business process model notation task sub process subprocess collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=transaction;isLoopSub=1;",120,80,"","Transaction, Collapsed",null,
+null,"bpmn business process model notation task transaction collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=transaction;",120,80,"","Transaction, Expanded",null,null,"bpmn business process model notation task transaction expanded"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=message;",120,80,"","Message-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting message event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=message;",120,80,"","Message-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting message event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=timer;",120,80,"","Timer-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting timer event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=timer;",120,80,"","Timer-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting timer event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=conditional;",120,80,"","Conditional-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting conditional event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=conditional;",120,80,"","Conditional-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting conditional event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=signal;",120,80,"","Signal-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting signal event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=signal;",120,80,"","Signal-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting signal event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=multiple;",120,80,"","Multiple-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting multiple event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=multiple;",120,80,"","Multiple-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting multiple event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=parallelMultiple;",120,80,"","Parallel Multiple Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting parallel multiple event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=parallelMultiple;",120,80,"","Parallel Multiple Event Sub-Process, Interrupting , Collapsed",null,null,"bpmn business process model notation task interrupting parallel multiple event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=escalation;",120,80,"","Escalation-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting escalation event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=escalation;",120,80,"","Escalation-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting escalation event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=error;",120,80,"","Error-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting error event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=compensation;",120,80,"","Compensation-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting compensation event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;arcSize=10;taskMarker=abstract;outline=none;symbol=general;bpmnShapeType=subprocess;isLoopSub=0;verticalAlign=top;align=left;spacingLeft=5;html=1;whiteSpace=wrap;",180,100,"","Event Sub-Process, Expanded",null,null,"bpmn business process model notation task event sub process expanded"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;",
+120,80,"","Call Activity",null,null,"bpmn business process model notation task call activity"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=user;",120,80,"","User Call Activity",null,null,"bpmn business process model notation task user call activity"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=manual;",120,80,"","Manual Call Activity",null,null,"bpmn business process model notation task manual call activity"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=businessRule;",
+120,80,"","Business Rule Call Activity",null,null,"bpmn business process model notation task business rule call activity"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=script;",120,80,"","Script Call Activity",null,null,"bpmn business process model notation task script call activity"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;isLoopSub=1;",120,80,"","Call Activity, Collapsed",null,null,"bpmn business process model notation task call activity collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;verticalAlign=top;align=left;spacingLeft=5;",
180,100,"","Call Activity, Expanded",null,null,"bpmn business process model notation task call activity expanded")];this.addPalette("bpmn2Tasks","BPMN 2.0 Tasks",!1,mxUtils.bind(this,function(e){for(var f=0;f<c.length;f++)e.appendChild(c[f](e))}))};Sidebar.prototype.addBPMN2ChoreographiesPalette=function(a,b,d){var c=[this.addEntry("bpmn business process model notation choreography choreography task",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task")}),this.addEntry("bpmn business process model notation choreography choreography task loop",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");e.vertex=!0;
-var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task, Loop")}),this.addEntry("bpmn business process model notation choreography choreography task sequential multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task, Sequential Multi Instance")}),this.addEntry("bpmn business process model notation choreography choreography task parallel multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task, Parallel Multi Instance")}),this.addEntry("bpmn business process model notation choreography sub choreography collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography loop collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Loop, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography sequential multi instance collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Sequential Multi Instance, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography parallel multi instance collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Parallel Multi Instance, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography expanded",function(){var e=new mxCell("",new mxGeometry(0,0,400,200),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,400,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,400,160),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;verticalAlign=top;align=left;spacingLeft=5;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,400,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,400,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,400,160),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;verticalAlign=top;align=left;spacingLeft=5;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,400,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Expanded")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
e.vertex=!0;return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"bzzzzt")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");e.vertex=!0;var f=new mxCell("",
-new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task loop",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global, Loop")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task sequential multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global, Sequential Multi Instance")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task parallel multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global, Parallel Multi Instance")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling loop",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Loop")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling sequential multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Sequential Multi Instance")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling parallel multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Parallel Multi Instance")}),this.addEntry("bpmn business process model notation choreography choreography task",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task")}),this.addEntry("bpmn business process model notation choreography choreography task loop",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");e.vertex=!0;
-var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task, Loop")}),this.addEntry("bpmn business process model notation choreography choreography task sequential multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task, Sequential Multi Instance")}),this.addEntry("bpmn business process model notation choreography choreography task parallel multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task, Parallel Multi Instance")}),this.addEntry("bpmn business process model notation choreography sub choreography collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography loop collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Loop, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography sequential multi instance collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Sequential Multi Instance, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography parallel multi instance collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Parallel Multi Instance, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography expanded",function(){var e=new mxCell("",new mxGeometry(0,0,400,200),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,400,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,400,160),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;verticalAlign=top;align=left;spacingLeft=5;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,400,20),
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,400,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,400,160),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;verticalAlign=top;align=left;spacingLeft=5;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,400,20),
"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Expanded")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task loop",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global, Loop")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task sequential multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global, Sequential Multi Instance")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task parallel multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global, Parallel Multi Instance")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling loop",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Loop")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling sequential multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Sequential Multi Instance")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling parallel multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
-f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Parallel Multi Instance")}),this.createVertexTemplateEntry("whiteSpace=wrap;shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;html=1;",120,20,"","Participant, Initiating, Top",null,null,"bpmn business process model notation choreography initiating participant top"),this.addEntry("bpmn business process model notation choreography initiating participant top with decorator",
-function(){var e=new mxCell("",new mxGeometry(0,60,120,20),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;whiteSpace=wrap;html=1;");e.vertex=!0;var f=new mxCell("",new mxGeometry(40,0,40,30),"shape=message;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=0;rounded=0;");
-g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Initiating, Top with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=square;whiteSpace=wrap;html=1;",120,20,"","Additional Participant, Initiating",null,null,"bpmn business process model notation choreography initiating additional participant"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;whiteSpace=wrap;html=1;",
-120,20,"","Participant, Initiating, Bottom",null,null,"bpmn business process model notation choreography initiating participant bottom"),this.addEntry("bpmn business process model notation choreography initiating participant bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,20),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;whiteSpace=wrap;html=1;");e.vertex=!0;var f=new mxCell("",new mxGeometry(40,
-50,40,30),"shape=message;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=1;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Initiating, Bottom with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;",
-120,40,"","Participant, Initiating, Multi-Instance, Top",null,null,"bpmn business process model notation choreography initiating participant bottom"),this.addEntry("bpmn business process model notation choreography initiating participant multi instance top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,40),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Parallel Multi Instance")}),this.createVertexTemplateEntry("whiteSpace=wrap;shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;html=1;",120,20,"","Participant, Initiating, Top",null,null,"bpmn business process model notation choreography initiating participant top"),
+this.addEntry("bpmn business process model notation choreography initiating participant top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,20),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;whiteSpace=wrap;html=1;");e.vertex=!0;var f=new mxCell("",new mxGeometry(40,0,40,30),"shape=message;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=0;rounded=0;");
+g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Initiating, Top with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=square;whiteSpace=wrap;html=1;",120,20,"","Additional Participant, Initiating",null,null,"bpmn business process model notation choreography initiating additional participant"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;whiteSpace=wrap;html=1;",
+120,20,"","Participant, Initiating, Bottom",null,null,"bpmn business process model notation choreography initiating participant bottom"),this.addEntry("bpmn business process model notation choreography initiating participant bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,20),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;whiteSpace=wrap;html=1;");e.vertex=!0;var f=new mxCell("",new mxGeometry(40,
+50,40,30),"shape=message;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=1;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Initiating, Bottom with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;",
+120,40,"","Participant, Initiating, Multi-Instance, Top",null,null,"bpmn business process model notation choreography initiating participant bottom"),this.addEntry("bpmn business process model notation choreography initiating participant multi instance top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,40),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;");
e.vertex=!0;var f=new mxCell("",new mxGeometry(40,0,40,30),"shape=message;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=0;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,100,"Participant, Initiating, Multi-Instance Top with Decorator")}),
-this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;",120,40,"","Additional Participant, Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography initiating additional participant multi instance bottom"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;verticalAlign=top;isLoopMultiParallel=1;topLeftStyle=square;topRightStyle=square;whiteSpace=wrap;html=1;",
-120,40,"","Participant, Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography initiating participant multi instance bottom"),this.addEntry("bpmn business process model notation choreography initiating participant multi instance bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,40),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;topLeftStyle=square;topRightStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;");
+this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;",120,40,"","Additional Participant, Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography initiating additional participant multi instance bottom"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;verticalAlign=top;isLoopMultiParallel=1;topLeftStyle=square;topRightStyle=square;whiteSpace=wrap;html=1;",
+120,40,"","Participant, Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography initiating participant multi instance bottom"),this.addEntry("bpmn business process model notation choreography initiating participant multi instance bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,40),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;topLeftStyle=square;topRightStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;");
e.vertex=!0;var f=new mxCell("",new mxGeometry(40,70,40,30),"shape=message;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=1;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,100,"Participant, Initiating, Multi-Instance, Bottom with Decorator")}),
-this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",120,20,"","Participant, Non-Initiating, Top",null,null,"bpmn business process model notation choreography non initiating participant top"),this.addEntry("bpmn business process model notation choreography non initiating participant top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,20),
-"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");e.vertex=!0;var f=new mxCell("",new mxGeometry(40,0,40,30),"shape=message;fillColor=#C0C0C0;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=0;rounded=0;");g.geometry.relative=
-!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Non-Initiating, Top with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",120,20,"","Additional Participant, Non-Initiating",null,null,"bpmn business process model notation choreography non initiating additional participant"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",
-120,20,"","Participant, Non-Initiating, Bottom",null,null,"bpmn business process model notation choreography non initiating participant bottom"),this.addEntry("bpmn business process model notation choreography non initiating participant bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,20),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");e.vertex=!0;var f=
-new mxCell("",new mxGeometry(40,50,40,30),"shape=message;fillColor=#C0C0C0;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=1;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Non-Initiating, Bottom with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",
-120,40,"","Participant, Non-Initiating, Multi-Instance, Top",null,null,"bpmn business process model notation choreography initiating participant bottom"),this.addEntry("bpmn business process model notation choreography non initiating participant multi instance top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,40),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");
+this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",120,20,"","Participant, Non-Initiating, Top",null,null,"bpmn business process model notation choreography non initiating participant top"),this.addEntry("bpmn business process model notation choreography non initiating participant top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,20),
+"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");e.vertex=!0;var f=new mxCell("",new mxGeometry(40,0,40,30),"shape=message;fillColor=#C0C0C0;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=0;rounded=0;");g.geometry.relative=
+!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Non-Initiating, Top with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",120,20,"","Additional Participant, Non-Initiating",null,null,"bpmn business process model notation choreography non initiating additional participant"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",
+120,20,"","Participant, Non-Initiating, Bottom",null,null,"bpmn business process model notation choreography non initiating participant bottom"),this.addEntry("bpmn business process model notation choreography non initiating participant bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,20),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");e.vertex=!0;var f=
+new mxCell("",new mxGeometry(40,50,40,30),"shape=message;fillColor=#C0C0C0;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=1;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Non-Initiating, Bottom with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",
+120,40,"","Participant, Non-Initiating, Multi-Instance, Top",null,null,"bpmn business process model notation choreography initiating participant bottom"),this.addEntry("bpmn business process model notation choreography non initiating participant multi instance top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,40),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");
e.vertex=!0;var f=new mxCell("",new mxGeometry(40,0,40,30),"shape=message;fillColor=#C0C0C0;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=0;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,100,"Participant, Non-Initiating, Multi-Instance, Top with Decorator")}),
-this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",120,40,"","Additional Participant, Non-Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography non initiating additional participant multi instance bottom"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;verticalAlign=top;isLoopMultiParallel=1;topLeftStyle=square;topRightStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",
-120,40,"","Participant, Non-Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography non initiating participant multi instance bottom"),this.addEntry("bpmn business process model notation choreography non initiating participant multi instance bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,40),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;topLeftStyle=square;topRightStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");
+this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",120,40,"","Additional Participant, Non-Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography non initiating additional participant multi instance bottom"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;verticalAlign=top;isLoopMultiParallel=1;topLeftStyle=square;topRightStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",
+120,40,"","Participant, Non-Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography non initiating participant multi instance bottom"),this.addEntry("bpmn business process model notation choreography non initiating participant multi instance bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,40),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;topLeftStyle=square;topRightStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");
e.vertex=!0;var f=new mxCell("",new mxGeometry(40,70,40,30),"shape=message;fillColor=#C0C0C0;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=1;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,100,"Participant, Non-Initiating, Multi-Instance, Bottom with Decorator")})];
this.addPalette("bpmn2Choreographies","BPMN 2.0 Choreographies",!1,mxUtils.bind(this,function(e){for(var f=0;f<c.length;f++)e.appendChild(c[f](e))}))};Sidebar.prototype.addBPMN2EventsPalette=function(a,b,d){var c=[this.createVertexTemplateEntry("points=[[0.145,0.145,0],[0.5,0,0],[0.855,0.145,0],[1,0.5,0],[0.855,0.855,0],[0.5,1,0],[0.145,0.855,0],[0,0.5,0]];shape=mxgraph.bpmn.event;html=1;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;align=center;perimeter=ellipsePerimeter;outlineConnect=0;aspect=fixed;outline=standard;symbol=general;",
50,50,"","None Start",null,null,"bpmn business process model notation event none start"),this.createVertexTemplateEntry("points=[[0.145,0.145,0],[0.5,0,0],[0.855,0.145,0],[1,0.5,0],[0.855,0.855,0],[0.5,1,0],[0.145,0.855,0],[0,0.5,0]];shape=mxgraph.bpmn.event;html=1;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;align=center;perimeter=ellipsePerimeter;outlineConnect=0;aspect=fixed;outline=throwing;symbol=general;",50,50,"","None Intermediate, Throwing",null,null,"bpmn business process model notation event none intermediate throwing"),
@@ -12574,62 +12588,62 @@ p=document.createElement("tbody");c.style.height="100%";c.style.overflow="auto";
U.appendChild(n);mxEvent.addListener(n,"click",function(z){R.checked=!R.checked;mxEvent.consume(z)});J.appendChild(U);return function(){return R.checked?P:null}});E.appendChild(e);E.appendChild(k);E.appendChild(q);p.appendChild(E);v.appendChild(p);d=[];var C=0;for(p=0;p<f.length;p++)for(E=0;E<f[p].entries.length;E++)C++;var I=[e,k,q],K=0;for(p=0;p<f.length;p++)(function(J){for(var U=0;U<J.entries.length;U++){var P=J.entries[U];d.push(y(I[Math.floor(K/(C/3))],P.title,P.id));K++}})(f[p]);c.appendChild(v);
f=document.createElement("div");f.style.marginTop="18px";f.style.textAlign="center";t=document.createElement("input");isLocalStorage&&(t.setAttribute("type","checkbox"),t.checked=!0,t.defaultChecked=!0,f.appendChild(t),p=document.createElement("span"),mxUtils.write(p," "+mxResources.get("rememberThisSetting")),f.appendChild(p),mxEvent.addListener(p,"click",function(J){t.checked=!t.checked;mxEvent.consume(J)}));c.appendChild(f);p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});
p.className="geBtn";E=mxUtils.button(mxResources.get("apply"),function(){for(var J=["search"],U=0;U<d.length;U++){var P=d[U].apply(this,arguments);null!=P&&J.push(P)}b.sidebar.showEntries(0<J.length?J.join(";"):"",t.checked);b.hideDialog()});E.className="geBtn gePrimaryBtn";f=document.createElement("div");f.style.marginTop="26px";f.style.textAlign="right"}b.editor.cancelFirst?(f.appendChild(p),f.appendChild(E)):(f.appendChild(E),f.appendChild(p));c.appendChild(f);this.container=c},PluginsDialog=function(b,
-e,f,c){function k(){E=!0;if(0==u.length)q.innerText=mxResources.get("noPlugins");else{q.innerText="";for(var g=0;g<u.length;g++){var m=document.createElement("span");m.style.whiteSpace="nowrap";var t=document.createElement("span");t.className="geSprite geSprite-delete";t.style.position="relative";t.style.cursor="pointer";t.style.top="5px";t.style.marginRight="4px";t.style.display="inline-block";m.appendChild(t);mxUtils.write(m,u[g]);q.appendChild(m);mxUtils.br(q);mxEvent.addListener(t,"click",function(v){return function(){b.confirm(mxResources.get("delete")+
-' "'+u[v]+'"?',function(){null!=f&&f(u[v]);u.splice(v,1);k()})}}(g))}}}var p=document.createElement("div"),q=document.createElement("div");q.style.height="180px";q.style.overflow="auto";var u=mxSettings.getPlugins().slice(),E=!1;p.appendChild(q);k();E=!1;var H=mxUtils.button(mxResources.get("add"),null!=e?function(){e(function(g){g&&0>mxUtils.indexOf(u,g)&&u.push(g);k()})}:function(){var g=document.createElement("div"),m=document.createElement("span");m.style.marginTop="6px";mxUtils.write(m,mxResources.get("builtinPlugins")+
-": ");g.appendChild(m);var t=document.createElement("select");t.style.width="150px";for(m=0;m<App.publicPlugin.length;m++){var v=document.createElement("option");mxUtils.write(v,App.publicPlugin[m]);v.value=App.publicPlugin[m];t.appendChild(v)}g.appendChild(t);mxUtils.br(g);mxUtils.br(g);m=mxUtils.button(mxResources.get("custom")+"...",function(){var y=new FilenameDialog(b,"",mxResources.get("add"),function(C){b.hideDialog();if(null!=C&&0<C.length){C=C.split(";");for(var I=0;I<C.length;I++){var K=
-C[I],J=App.pluginRegistry[K];null!=J&&(K=J);0<K.length&&0>mxUtils.indexOf(u,K)&&u.push(K)}k()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(y.container,300,80,!0,!0);y.init()});m.className="geBtn";ALLOW_CUSTOM_PLUGINS||(m.style.display="none");g=new CustomDialog(b,g,mxUtils.bind(this,function(){var y=App.pluginRegistry[t.value];0>mxUtils.indexOf(u,y)&&(u.push(y),k())}),null,null,null,m);b.showDialog(g.container,360,100,!0,!0)});H.className="geBtn";var D=mxUtils.button(mxResources.get("cancel"),
-function(){b.hideDialog()});D.className="geBtn";var L=mxUtils.button(c?mxResources.get("close"):mxResources.get("apply"),function(){E?(mxSettings.setPlugins(u),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});L.className="geBtn gePrimaryBtn";var G=document.createElement("div");G.style.marginTop="14px";G.style.textAlign="right";var d=mxUtils.button(mxResources.get("help"),function(){b.openLink("https://www.drawio.com/doc/faq/plugins")});d.className=
-"geBtn";b.isOffline()&&!mxClient.IS_CHROMEAPP&&(d.style.display="none");G.appendChild(d);b.editor.cancelFirst?(c||G.appendChild(D),G.appendChild(H),G.appendChild(L)):(G.appendChild(H),G.appendChild(L),c||G.appendChild(D));p.appendChild(G);this.container=p},CropImageDialog=function(b,e,f,c){function k(){var J=t.checked,U=v.checked,P=d.geometry,R=E.width,n=E.height,z=(300-R)/2,A=(300-n)/2;P.x<z?(P.width-=z-P.x,P.x=z):P.x+P.width>z+R&&(P.width=z+R-P.x,P.x=Math.min(P.x,z+R));P.y<A?(P.height-=A-P.y,P.y=
-A):P.y+P.height>A+n&&(P.height=A+n-P.y,P.y=Math.min(P.y,A+n));var B=(P.x-z)/R*100;R=100-(P.x+P.width-z)/R*100;z=(P.y-A)/n*100;P=100-(P.y+P.height-A)/n*100;return"inset("+mxUtils.format(z)+"% "+mxUtils.format(R)+"% "+mxUtils.format(P)+"% "+mxUtils.format(B)+"%"+(J?" round "+G+"%":U?" round 50%":"")+")"}function p(J){null!=D&&(!0!==J&&(D.model.setGeometry(d,L.clone()),G=5,C.value=G),D.model.setStyle(d,g+k()),D.selectAll(),y.style.visibility=t.checked?"visible":"hidden")}var q=document.createElement("div"),
-u=document.createElement("div");u.style.height="300px";u.style.width="300px";u.style.display="inline-flex";u.style.justifyContent="center";u.style.alignItems="center";u.style.position="absolute";var E=document.createElement("img");E.onload=function(){function J(){D.model.setStyle(d,g+k())}D=new Graph(H);D.autoExtend=!1;D.autoScroll=!1;D.setGridEnabled(!1);D.setEnabled(!0);D.setPanning(!1);D.setConnectable(!1);D.getRubberband().setEnabled(!1);D.graphHandler.allowLivePreview=!1;var U=D.createVertexHandler;
-D.createVertexHandler=function(){var Q=U.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=f)try{if("inset"==f.substring(0,5)){var P=d.geometry,R=E.width,n=E.height,z=(300-R)/2,A=(300-n)/2,B=f.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),M=parseFloat(B[0]),S=parseFloat(B[1]),l=parseFloat(B[2]),x=parseFloat(B[3]);isFinite(M)&&isFinite(S)&&isFinite(l)&&isFinite(x)?(P.x=x/100*R+z,P.y=M/100*n+A,P.width=(100-S)/100*R+z-P.x,P.height=(100-l)/100*n+A-P.y,"round"==B[4]?"50%"==B[5]?v.setAttribute("checked",
-"checked"):(G=parseInt(B[5]),C.value=G,t.setAttribute("checked","checked"),y.style.visibility="visible"):m.setAttribute("checked","checked")):f=null}else f=null}catch(Q){}d.style=g+(f?f:k());d.vertex=!0;D.addCell(d,null,null,null,null);D.selectAll();D.addListener(mxEvent.CELLS_MOVED,J);D.addListener(mxEvent.CELLS_RESIZED,J);var F=D.graphHandler.mouseUp,N=D.graphHandler.mouseDown;D.graphHandler.mouseUp=function(){F.apply(this,arguments);H.style.backgroundColor="#fff9"};D.graphHandler.mouseDown=function(){N.apply(this,
-arguments);H.style.backgroundColor=""};D.dblClick=function(){};var O=D.getSelectionModel().changeSelection;D.getSelectionModel().changeSelection=function(){O.call(this,[d],[d])}};E.onerror=function(){E.onload=null;E.src=Editor.errorImage};E.setAttribute("src",e);E.style.maxWidth="300px";E.style.maxHeight="300px";u.appendChild(E);q.appendChild(u);var H=document.createElement("div");H.style.width="300px";H.style.height="300px";H.style.overflow="hidden";H.style.backgroundColor="#fff9";q.appendChild(H);
-var D=null,L=new mxGeometry(100,100,100,100),G=5,d=new mxCell("",L.clone(),""),g="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+e.replace(";base64","")+";clipPath=",m=document.createElement("input");m.setAttribute("type","radio");m.setAttribute("id","croppingRect");m.setAttribute("name","croppingShape");m.setAttribute("checked","checked");m.style.margin="5px";q.appendChild(m);e=document.createElement("label");e.setAttribute("for","croppingRect");mxUtils.write(e,mxResources.get("rectangle"));
-q.appendChild(e);var t=document.createElement("input");t.setAttribute("type","radio");t.setAttribute("id","croppingRounded");t.setAttribute("name","croppingShape");t.style.margin="5px";q.appendChild(t);e=document.createElement("label");e.setAttribute("for","croppingRounded");mxUtils.write(e,mxResources.get("rounded"));q.appendChild(e);var v=document.createElement("input");v.setAttribute("type","radio");v.setAttribute("id","croppingEllipse");v.setAttribute("name","croppingShape");v.style.margin="5px";
-q.appendChild(v);e=document.createElement("label");e.setAttribute("for","croppingEllipse");mxUtils.write(e,mxResources.get("ellipse"));q.appendChild(e);mxEvent.addListener(m,"change",p);mxEvent.addListener(t,"change",p);mxEvent.addListener(v,"change",p);var y=document.createElement("div");y.style.textAlign="center";y.style.visibility="hidden";var C=document.createElement("input");C.setAttribute("type","range");C.setAttribute("min","1");C.setAttribute("max","49");C.setAttribute("value",G);C.setAttribute("title",
-mxResources.get("arcSize"));y.appendChild(C);q.appendChild(y);mxEvent.addListener(C,"change",function(){G=this.value;p(!0)});e=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});e.className="geBtn";u=mxUtils.button(mxResources.get("apply"),function(){c(k(),d.geometry.width,d.geometry.height);b.hideDialog()});u.className="geBtn gePrimaryBtn";var I=mxUtils.button(mxResources.get("reset"),function(){c(null,E.width,E.height);b.hideDialog()});I.className="geBtn";var K=document.createElement("div");
-K.style.marginTop="10px";K.style.textAlign="right";b.editor.cancelFirst?(K.appendChild(e),K.appendChild(I),K.appendChild(u)):(K.appendChild(I),K.appendChild(u),K.appendChild(e));q.appendChild(K);this.container=q},EditGeometryDialog=function(b,e){var f=b.editor.graph,c=1==e.length?f.getCellGeometry(e[0]):null,k=document.createElement("div"),p=document.createElement("table"),q=document.createElement("tbody"),u=document.createElement("tr"),E=document.createElement("td"),H=document.createElement("td");
-p.style.paddingLeft="6px";mxUtils.write(E,mxResources.get("relative")+":");var D=document.createElement("input");D.setAttribute("type","checkbox");null!=c&&c.relative&&(D.setAttribute("checked","checked"),D.defaultChecked=!0);this.init=function(){D.focus()};H.appendChild(D);u.appendChild(E);u.appendChild(H);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("left")+":");var L=document.createElement("input");
-L.setAttribute("type","text");L.style.width="100px";L.value=null!=c?c.x:"";H.appendChild(L);u.appendChild(E);u.appendChild(H);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("top")+":");var G=document.createElement("input");G.setAttribute("type","text");G.style.width="100px";G.value=null!=c?c.y:"";H.appendChild(G);u.appendChild(E);u.appendChild(H);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");
-H=document.createElement("td");mxUtils.write(E,mxResources.get("dx")+":");var d=document.createElement("input");d.setAttribute("type","text");d.style.width="100px";d.value=null!=c&&null!=c.offset?c.offset.x:"";H.appendChild(d);u.appendChild(E);u.appendChild(H);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("dy")+":");var g=document.createElement("input");g.setAttribute("type","text");g.style.width="100px";
-g.value=null!=c&&null!=c.offset?c.offset.y:"";H.appendChild(g);u.appendChild(E);u.appendChild(H);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("width")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.width="100px";m.value=null!=c?c.width:"";H.appendChild(m);u.appendChild(E);u.appendChild(H);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");H=
-document.createElement("td");mxUtils.write(E,mxResources.get("height")+":");var t=document.createElement("input");t.setAttribute("type","text");t.style.width="100px";t.value=null!=c?c.height:"";H.appendChild(t);u.appendChild(E);u.appendChild(H);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("rotation")+":");var v=document.createElement("input");v.setAttribute("type","text");v.style.width="100px";v.value=
-1==e.length?mxUtils.getValue(f.getCellStyle(e[0]),mxConstants.STYLE_ROTATION,0):"";H.appendChild(v);u.appendChild(E);u.appendChild(H);q.appendChild(u);p.appendChild(q);k.appendChild(p);c=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});c.className="geBtn";var y=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();f.getModel().beginUpdate();try{for(var C=0;C<e.length;C++){var I=f.getCellGeometry(e[C]);null!=I&&(I=I.clone(),f.isCellMovable(e[C])&&(I.relative=D.checked,
-0<mxUtils.trim(L.value).length&&(I.x=Number(L.value)),0<mxUtils.trim(G.value).length&&(I.y=Number(G.value)),0<mxUtils.trim(d.value).length&&(null==I.offset&&(I.offset=new mxPoint),I.offset.x=Number(d.value)),0<mxUtils.trim(g.value).length&&(null==I.offset&&(I.offset=new mxPoint),I.offset.y=Number(g.value))),f.isCellResizable(e[C])&&(0<mxUtils.trim(m.value).length&&(I.width=Number(m.value)),0<mxUtils.trim(t.value).length&&(I.height=Number(t.value))),f.getModel().setGeometry(e[C],I));0<mxUtils.trim(v.value).length&&
-f.setCellStyles(mxConstants.STYLE_ROTATION,Number(v.value),[e[C]])}}finally{f.getModel().endUpdate()}});y.className="geBtn gePrimaryBtn";mxEvent.addListener(k,"keypress",function(C){13==C.keyCode&&y.click()});p=document.createElement("div");p.style.marginTop="20px";p.style.textAlign="right";b.editor.cancelFirst?(p.appendChild(c),p.appendChild(y)):(p.appendChild(y),p.appendChild(c));k.appendChild(p);this.container=k},LibraryDialog=function(b,e,f,c,k,p,q){function u(P){for(P=document.elementFromPoint(P.clientX,
-P.clientY);null!=P&&P.parentNode!=g;)P=P.parentNode;var R=null;if(null!=P){var n=g.firstChild;for(R=0;null!=n&&n!=P;)n=n.nextSibling,R++}return R}function E(P,R,n,z,A,B,M,S,l){try{if(b.spinner.stop(),null==R||"image/"==R.substring(0,6))if(null==P&&null!=M||null==t[P]){var x=function(){X.innerText="";X.style.cursor="pointer";X.style.whiteSpace="nowrap";X.style.textOverflow="ellipsis";mxUtils.write(X,null!=Y.title&&0<Y.title.length?Y.title:mxResources.get("untitled"));X.style.color=null==Y.title||0==
-Y.title.length?"#d0d0d0":""};g.style.backgroundImage="";m.style.display="none";var F=A,N=B;if(A>b.maxImageSize||B>b.maxImageSize){var O=Math.min(1,Math.min(b.maxImageSize/Math.max(1,A)),b.maxImageSize/Math.max(1,B));A*=O;B*=O}F>N?(N=Math.round(100*N/F),F=100):(F=Math.round(100*F/N),N=100);var Q=document.createElement("div");Q.setAttribute("draggable","true");Q.style.display="inline-block";Q.style.position="relative";Q.style.padding="0 12px";Q.style.cursor="move";mxUtils.setPrefixedStyle(Q.style,"transition",
-"transform .1s ease-in-out");if(null!=P){var V=document.createElement("img");V.setAttribute("src",I.convert(P));V.style.width=F+"px";V.style.height=N+"px";V.style.margin="10px";V.style.paddingBottom=Math.floor((100-N)/2)+"px";V.style.paddingLeft=Math.floor((100-F)/2)+"px";Q.appendChild(V)}else if(null!=M){var T=b.stringToCells("<"==M.xml.charAt(0)?M.xml:Graph.decompress(M.xml));0<T.length&&(b.sidebar.createThumb(T,100,100,Q,null,!0,!1,null,null,Editor.isDarkMode()?"#2a252f":"#ffffff"),Q.firstChild.style.display=
-"inline-block",Q.firstChild.style.cursor="")}var W=document.createElement("img");W.setAttribute("src",Editor.closeBlackImage);W.setAttribute("border","0");W.setAttribute("title",mxResources.get("delete"));W.setAttribute("align","top");W.style.paddingTop="4px";W.style.position="absolute";W.style.marginLeft="-12px";W.style.zIndex="1";W.style.cursor="pointer";mxEvent.addListener(W,"dragstart",function(da){mxEvent.consume(da)});(function(da,ja,ba){mxEvent.addListener(W,"click",function(ia){t[ja]=null;
-for(var ka=0;ka<L.length;ka++)if(null!=L[ka].data&&L[ka].data==ja||null!=L[ka].xml&&null!=ba&&L[ka].xml==ba.xml){L.splice(ka,1);break}Q.parentNode.removeChild(da);0==L.length&&(g.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",m.style.display="");mxEvent.consume(ia)});mxEvent.addListener(W,"dblclick",function(ia){mxEvent.consume(ia)})})(Q,P,M);Q.appendChild(W);Q.style.marginBottom="30px";var X=document.createElement("div");X.style.position="absolute";X.style.boxSizing="border-box";X.style.bottom=
-"-18px";X.style.left="10px";X.style.right="10px";X.style.backgroundColor="light-dark(#ffffff, transparent)";X.style.overflow="hidden";X.style.textAlign="center";X.setAttribute("title",mxResources.get("rename"));var Y=null;null!=P?(Y={data:P,w:A,h:B,title:l},null!=S&&(Y.aspect=S),t[P]=V,L.push(Y)):null!=M&&(M.aspect="fixed",L.push(M),Y=M);mxEvent.addListener(X,"keydown",function(da){13==da.keyCode&&null!=C&&(C(),C=null,mxEvent.consume(da))});x();Q.appendChild(X);mxEvent.addListener(X,"mousedown",function(da){"true"!=
-X.getAttribute("contentEditable")&&mxEvent.consume(da)});T=function(da){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var ja=new FilenameDialog(b,Y.title||"",mxResources.get("ok"),function(ba){null!=ba&&(Y.title=ba,x())},mxResources.get("enterValue"));b.showDialog(ja.container,300,80,!0,!0);ja.init();mxEvent.consume(da)}else if("true"!=X.getAttribute("contentEditable")){null!=C&&(C(),C=null);if(null==Y.title||0==Y.title.length)X.innerText="";X.style.textOverflow=
-"";X.style.whiteSpace="";X.style.cursor="text";X.style.color="";X.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(X.style,"user-select","text");X.focus();document.execCommand("selectAll",!1,null);C=function(){X.removeAttribute("contentEditable");X.style.cursor="pointer";Y.title=X.innerHTML;x()};mxEvent.consume(da)}};mxEvent.addListener(X,"click",T);mxEvent.addListener(Q,"dblclick",T);g.appendChild(Q);mxEvent.addListener(Q,"dragstart",function(da){null==C&&(null==P&&null!=M&&(W.style.visibility=
-"hidden",X.style.visibility="hidden"),mxClient.IS_FF&&null!=M.xml&&da.dataTransfer.setData("Text",M.xml),v=u(da),mxClient.IS_GC&&(Q.style.opacity="0.9"),window.setTimeout(function(){mxUtils.setPrefixedStyle(Q.style,"transform","scale(0.5,0.5)");mxUtils.setOpacity(Q,30);W.style.visibility="";X.style.visibility=""},0))});mxEvent.addListener(Q,"dragend",function(da){"hidden"==W.style.visibility&&(W.style.visibility="",X.style.visibility="");v=null;mxUtils.setOpacity(Q,100);mxUtils.setPrefixedStyle(Q.style,
-"transform",null)})}else K||(K=!0,b.handleError({message:mxResources.get("fileExists")}));else{A=!1;try{if(F=mxUtils.parseXml(P),"mxlibrary"==F.documentElement.nodeName){N=JSON.parse(mxUtils.getTextContent(F.documentElement));if(null!=N&&0<N.length)for(var Z=0;Z<N.length;Z++)null!=N[Z].xml?E(null,null,0,0,0,0,N[Z]):E(N[Z].data,null,0,0,N[Z].w,N[Z].h,null,"fixed",N[Z].title);A=!0}else if("mxfile"==F.documentElement.nodeName){var aa=F.documentElement.getElementsByTagName("diagram");for(Z=0;Z<aa.length;Z++){var ea=
-Editor.getDiagramNodeXml(aa[Z]);T=b.stringToCells(ea);if(0<T.length){var ca=b.editor.graph.getBoundingBoxFromGeometry(T);null!=ca&&E(null,null,0,0,0,0,{xml:ea,w:ca.width,h:ca.height})}}A=!0}}catch(da){null!=window.console&&console.error("Error in library dialog: "+da)}A||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(da){null!=window.console&&console.log("Error in library dialog: "+da)}return null}function H(P){P.dataTransfer.dropEffect=null!=v?"move":"copy";
-P.stopPropagation();P.preventDefault()}function D(P){P.stopPropagation();P.preventDefault();K=!1;y=u(P);if(null!=v)null!=y&&y<g.children.length?(L.splice(y>v?y-1:y,0,L.splice(v,1)[0]),g.insertBefore(g.children[v],g.children[y])):(L.push(L.splice(v,1)[0]),g.appendChild(g.children[v]));else if(0<P.dataTransfer.files.length)b.importFiles(P.dataTransfer.files,0,0,b.maxImageSize,J(P));else if(0<=mxUtils.indexOf(P.dataTransfer.types,"text/uri-list")){var R=decodeURIComponent(P.dataTransfer.getData("text/uri-list"));
-(/(\.jpg)($|\?)/i.test(R)||/(\.png)($|\?)/i.test(R)||/(\.gif)($|\?)/i.test(R)||/(\.svg)($|\?)/i.test(R))&&b.loadImage(R,function(n){E(R,null,0,0,n.width,n.height);g.scrollTop=g.scrollHeight})}P.stopPropagation();P.preventDefault()}var L=[];f=document.createElement("div");f.style.height="100%";var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.height="40px";f.appendChild(G);mxUtils.write(G,mxResources.get("filename")+":");null==e&&(e=b.defaultLibraryName+".xml");var d=document.createElement("input");
-d.setAttribute("value",e);d.style.marginRight="20px";d.style.marginLeft="10px";d.style.width="500px";null==k||k.isRenamable()||d.setAttribute("disabled","true");this.init=function(){if(null==k||k.isRenamable())d.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?d.select():document.execCommand("selectAll",!1,null)};G.appendChild(d);Editor.enableUncompressedLibraries&&(d.style.width="420px",e=document.createElement("input"),e.setAttribute("type","checkbox"),e.style.marginRight="10px",
-G.appendChild(e),mxUtils.write(G,mxResources.get("compressed")));var g=document.createElement("div");g.style.borderWidth="1px 0px 1px 0px";g.style.borderColor="#d3d3d3";g.style.borderStyle="solid";g.style.marginTop="6px";g.style.overflow="auto";g.style.height="340px";g.style.backgroundPosition="center center";g.style.backgroundRepeat="no-repeat";0==L.length&&Graph.fileSupport&&(g.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')");var m=document.createElement("div");m.style.position="absolute";
-m.style.width="640px";m.style.top="260px";m.style.textAlign="center";m.style.fontSize="22px";m.style.color="#a0c3ff";mxUtils.write(m,mxResources.get("dragImagesHere"));f.appendChild(m);var t={},v=null,y=null,C=null;G=function(P){"true"!=mxEvent.getSource(P).getAttribute("contentEditable")&&null!=C&&(C(),C=null,mxEvent.consume(P))};mxEvent.addListener(g,"mousedown",G);mxEvent.addListener(g,"pointerdown",G);mxEvent.addListener(g,"touchstart",G);var I=new mxUrlConverter,K=!1;if(null!=c)for(G=0;G<c.length;G++)e=
-c[G],E(e.data,null,0,0,e.w,e.h,e,e.aspect,e.title);mxEvent.addListener(g,"dragleave",function(P){m.style.cursor="";for(var R=mxEvent.getSource(P);null!=R;){if(R==g||R==m){P.stopPropagation();P.preventDefault();break}R=R.parentNode}});var J=function(P){return function(R,n,z,A,B,M,S,l,x){null!=x&&EditorUi.isVisioFilename(x.name)?b.importVisio(x,mxUtils.bind(this,function(F){E(F,n,z,A,B,M,S,"fixed",mxEvent.isAltDown(P)?null:S.substring(0,S.lastIndexOf(".")).replace(/_/g," "))})):null!=x&&(new XMLHttpRequest).upload&&
-b.isRemoteFileFormat(R,x.name)?b.isExternalDataComms()?b.parseFile(x,mxUtils.bind(this,function(F){4==F.readyState&&(b.spinner.stop(),200<=F.status&&299>=F.status&&(E(F.responseText,n,z,A,B,M,S,"fixed",mxEvent.isAltDown(P)?null:S.substring(0,S.lastIndexOf(".")).replace(/_/g," ")),g.scrollTop=g.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(E(R,n,z,A,B,M,S,"fixed",mxEvent.isAltDown(P)?null:S.substring(0,S.lastIndexOf(".")).replace(/_/g," ")),
-g.scrollTop=g.scrollHeight)}};mxEvent.addListener(g,"dragover",H);mxEvent.addListener(g,"drop",D);mxEvent.addListener(m,"dragover",H);mxEvent.addListener(m,"drop",D);f.appendChild(g);c=document.createElement("div");c.style.textAlign="right";c.style.marginTop="20px";G=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});G.setAttribute("id","btnCancel");G.className="geBtn";b.editor.cancelFirst&&c.appendChild(G);"draw.io"!=b.getServiceName()||null==k||k.constructor!=DriveLibrary&&k.constructor!=
-GitHubLibrary||(e=mxUtils.button(mxResources.get("link"),function(){b.getPublicUrl(k,function(P){if(null!=P){var R=b.getSearch("create title mode url drive splash state clibs ui".split(" "));R+=(0==R.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(P);P=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+R,null,null,null,null,"Check out the library I made using @drawio");b.showDialog(P.container,450,240,!0);P.init()}else k.constructor==DriveLibrary?b.showError(mxResources.get("error"),
-mxResources.get("diagramIsNotPublic"),mxResources.get("share"),mxUtils.bind(this,function(){b.drive.showPermissions(k.getId(),k)}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),e.className="geBtn",c.appendChild(e));e=mxUtils.button(mxResources.get("export"),function(){var P=b.createLibraryDataFromImages(L),R=d.value;/(\.xml)$/i.test(R)||(R+=".xml");b.isLocalFileSave()?b.saveLocalFile(P,R,"text/xml",null,null,null!=q?
-q:!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(R)+"&format=xml&xml="+encodeURIComponent(P))).simulate(document,"_blank")});e.setAttribute("id","btnDownload");e.className="geBtn";c.appendChild(e);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var U=document.createElement("input");U.setAttribute("multiple","multiple");U.setAttribute("type","file");mxEvent.addListener(U,"change",function(P){K=!1;b.importFiles(U.files,0,0,b.maxImageSize,function(R,n,z,A,B,M,S,l,x){null!=
-U.files&&(J(P)(R,n,z,A,B,M,S,l,x),U.type="",U.type="file",U.value="")});g.scrollTop=g.scrollHeight});U.style.display="none";document.body.appendChild(U);b.libDlgFileInputElt=U}e=mxUtils.button(mxResources.get("import"),function(){null!=C&&(C(),C=null);b.libDlgFileInputElt.click()});e.setAttribute("id","btnAddImage");e.className="geBtn";c.appendChild(e)}e=mxUtils.button(mxResources.get("addImages"),function(){null!=C&&(C(),C=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(P,R,n){K=
-!1;if(null!=P){if("data:image/"==P.substring(0,11)){var z=P.indexOf(",");0<z&&(P=P.substring(0,z)+";base64,"+P.substring(z+1))}E(P,null,0,0,R,n);g.scrollTop=g.scrollHeight}})});e.setAttribute("id","btnAddImageUrl");e.className="geBtn";c.appendChild(e);this.saveBtnClickHandler=function(P,R,n,z){b.saveLibrary(P,R,n,z)};e=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=C&&(C(),C=null);this.saveBtnClickHandler(d.value,L,k,p)}));e.setAttribute("id","btnSave");e.className="geBtn gePrimaryBtn";
-c.appendChild(e);b.editor.cancelFirst||c.appendChild(G);f.appendChild(c);this.container=f},EditShapeDialog=function(b,e,f,c,k){c=null!=c?c:300;k=null!=k?k:120;var p=document.createElement("table"),q=document.createElement("tbody");p.style.cellPadding="4px";var u=document.createElement("tr");var E=document.createElement("td");E.setAttribute("colspan","2");E.style.fontSize="10pt";mxUtils.write(E,f);u.appendChild(E);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");var H=
-document.createElement("textarea");H.style.outline="none";H.style.resize="none";H.style.width=c-200+"px";H.style.height=k+"px";this.textarea=H;this.init=function(){H.focus();H.scrollTop=0};E.appendChild(H);u.appendChild(E);E=document.createElement("td");f=document.createElement("div");f.style.position="relative";f.style.border="1px solid gray";f.style.top="6px";f.style.width="200px";f.style.height=k+4+"px";f.style.overflow="hidden";f.style.marginBottom="16px";mxEvent.disableContextMenu(f);E.appendChild(f);
-var D=new Graph(f);D.setEnabled(!1);var L=b.editor.graph.cloneCell(e);D.addCells([L]);f=D.view.getState(L);var G="";null!=f.shape&&null!=f.shape.stencil&&(G=mxUtils.getPrettyXml(f.shape.stencil.desc));mxUtils.write(H,G||"");f=D.getGraphBounds();k=Math.min(160/f.width,(k-40)/f.height);D.view.scaleAndTranslate(k,20/k-f.x,20/k-f.y);u.appendChild(E);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");E.setAttribute("colspan","2");E.style.paddingTop="2px";E.style.whiteSpace=
-"nowrap";E.setAttribute("align","right");b.isOffline()||(k=mxUtils.button(mxResources.get("help"),function(){b.openLink("https://www.drawio.com/doc/faq/shape-complex-create-edit")}),k.className="geBtn",E.appendChild(k));k=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});k.className="geBtn";b.editor.cancelFirst&&E.appendChild(k);var d=function(g,m,t){var v=H.value,y=mxUtils.parseXml(v);v=mxUtils.getPrettyXml(y.documentElement);y=y.documentElement.getElementsByTagName("parsererror");
-if(null!=y&&0<y.length)b.showError(mxResources.get("error"),mxResources.get("containsValidationErrors"),mxResources.get("ok"));else if(t&&b.hideDialog(),y=!g.model.contains(m),!t||y||v!=G){v=Graph.compress(v);g.getModel().beginUpdate();try{if(y){var C=b.editor.graph.getFreeInsertPoint();m.geometry.x=C.x;m.geometry.y=C.y;g.addCell(m)}g.setCellStyles(mxConstants.STYLE_SHAPE,"stencil("+v+")",[m])}catch(I){throw I;}finally{g.getModel().endUpdate()}y&&(g.setSelectionCell(m),g.scrollCellToVisible(m))}};
-f=mxUtils.button(mxResources.get("preview"),function(){d(D,L,!1)});f.className="geBtn";E.appendChild(f);f=mxUtils.button(mxResources.get("apply"),function(){d(b.editor.graph,e,!0)});f.className="geBtn gePrimaryBtn";E.appendChild(f);b.editor.cancelFirst||E.appendChild(k);u.appendChild(E);q.appendChild(u);p.appendChild(q);this.container=p},CustomDialog=function(b,e,f,c,k,p,q,u,E,H,D,L){var G=document.createElement("div");G.appendChild(e);var d=document.createElement("div");d.style.marginTop=null!=L?
-L:"30px";d.style.textAlign="right";null!=q&&d.appendChild(q);b.isOffline()||null==p||d.appendChild(b.createHelpIcon(p));e=mxUtils.button(E||mxResources.get("cancel"),function(){b.hideDialog();null!=c&&c()});e.className="geBtn";u&&(e.style.display="none");b.editor.cancelFirst&&d.appendChild(e);k=mxUtils.button(k||mxResources.get("ok"),mxUtils.bind(this,function(){H||b.hideDialog(null,null,this.container);if(null!=f){var g=f();if("string"===typeof g){b.showError(mxResources.get("error"),g);return}}H&&
-b.hideDialog(null,null,this.container)}));d.appendChild(k);k.className="geBtn gePrimaryBtn";b.editor.cancelFirst||d.appendChild(e);if(null!=D)for(u=0;u<D.length;u++)(function(g,m,t){g=mxUtils.button(g,function(v){m(v)});null!=t&&g.setAttribute("title",t);g.className="geBtn";d.appendChild(g)})(D[u][0],D[u][1],D[u][2]);G.appendChild(d);this.cancelBtn=e;this.okButton=k;this.container=G},BtnDialog=function(b,e,f,c){var k=document.createElement("div");k.style.textAlign="center";var p=document.createElement("p");
+e,f,c){function k(){E=!0;if(0==u.length)q.innerText=mxResources.get("noPlugins");else{q.innerText="";for(var d=0;d<u.length;d++){var g=document.createElement("span");g.style.display="flex";g.style.alignItems="center";g.style.whiteSpace="nowrap";var m=document.createElement("img");m.src=Editor.trashImage;m.style.position="relative";m.style.cursor="pointer";m.style.marginRight="4px";m.style.display="inline-block";m.style.width="18px";m.setAttribute("title",mxResources.get("delete"));g.appendChild(m);
+mxUtils.write(g,u[d]);q.appendChild(g);mxUtils.br(q);mxEvent.addListener(m,"click",function(t){return function(){b.confirm(mxResources.get("delete")+' "'+u[t]+'"?',function(){null!=f&&f(u[t]);u.splice(t,1);k()})}}(d))}}}var p=document.createElement("div"),q=document.createElement("div");q.style.height="180px";q.style.overflow="auto";var u=mxSettings.getPlugins().slice(),E=!1;p.appendChild(q);k();E=!1;var H=mxUtils.button(mxResources.get("add"),null!=e?function(){e(function(d){d&&0>mxUtils.indexOf(u,
+d)&&u.push(d);k()})}:function(){var d=document.createElement("div"),g=document.createElement("span");g.style.marginTop="6px";mxUtils.write(g,mxResources.get("builtinPlugins")+": ");d.appendChild(g);var m=document.createElement("select");m.style.width="150px";for(g=0;g<App.publicPlugin.length;g++){var t=document.createElement("option");mxUtils.write(t,App.publicPlugin[g]);t.value=App.publicPlugin[g];m.appendChild(t)}d.appendChild(m);mxUtils.br(d);mxUtils.br(d);g=mxUtils.button(mxResources.get("custom")+
+"...",function(){var v=new FilenameDialog(b,"",mxResources.get("add"),function(y){b.hideDialog();if(null!=y&&0<y.length){y=y.split(";");for(var C=0;C<y.length;C++){var I=y[C],K=App.pluginRegistry[I];null!=K&&(I=K);0<I.length&&0>mxUtils.indexOf(u,I)&&u.push(I)}k()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(v.container,300,80,!0,!0);v.init()});g.className="geBtn";ALLOW_CUSTOM_PLUGINS||(g.style.display="none");d=new CustomDialog(b,d,mxUtils.bind(this,function(){var v=
+App.pluginRegistry[m.value];0>mxUtils.indexOf(u,v)&&(u.push(v),k())}),null,null,null,g);b.showDialog(d.container,360,100,!0,!0)});H.className="geBtn";var D=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});D.className="geBtn";var L=mxUtils.button(c?mxResources.get("close"):mxResources.get("apply"),function(){E?(mxSettings.setPlugins(u),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});L.className="geBtn gePrimaryBtn";var G=document.createElement("div");
+G.style.marginTop="14px";G.style.textAlign="right";b.isOffline()||G.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/plugins"));b.editor.cancelFirst?(c||G.appendChild(D),G.appendChild(H),G.appendChild(L)):(G.appendChild(H),G.appendChild(L),c||G.appendChild(D));p.appendChild(G);this.container=p},CropImageDialog=function(b,e,f,c){function k(){var J=t.checked,U=v.checked,P=d.geometry,R=E.width,n=E.height,z=(300-R)/2,A=(300-n)/2;P.x<z?(P.width-=z-P.x,P.x=z):P.x+P.width>z+R&&(P.width=z+R-P.x,
+P.x=Math.min(P.x,z+R));P.y<A?(P.height-=A-P.y,P.y=A):P.y+P.height>A+n&&(P.height=A+n-P.y,P.y=Math.min(P.y,A+n));var B=(P.x-z)/R*100;R=100-(P.x+P.width-z)/R*100;z=(P.y-A)/n*100;P=100-(P.y+P.height-A)/n*100;return"inset("+mxUtils.format(z)+"% "+mxUtils.format(R)+"% "+mxUtils.format(P)+"% "+mxUtils.format(B)+"%"+(J?" round "+G+"%":U?" round 50%":"")+")"}function p(J){null!=D&&(!0!==J&&(D.model.setGeometry(d,L.clone()),G=5,C.value=G),D.model.setStyle(d,g+k()),D.selectAll(),y.style.visibility=t.checked?
+"visible":"hidden")}var q=document.createElement("div"),u=document.createElement("div");u.style.height="300px";u.style.width="300px";u.style.display="inline-flex";u.style.justifyContent="center";u.style.alignItems="center";u.style.position="absolute";var E=document.createElement("img");E.onload=function(){function J(){D.model.setStyle(d,g+k())}D=new Graph(H);D.autoExtend=!1;D.autoScroll=!1;D.setGridEnabled(!1);D.setEnabled(!0);D.setPanning(!1);D.setConnectable(!1);D.getRubberband().setEnabled(!1);
+D.graphHandler.allowLivePreview=!1;var U=D.createVertexHandler;D.createVertexHandler=function(){var Q=U.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=f)try{if("inset"==f.substring(0,5)){var P=d.geometry,R=E.width,n=E.height,z=(300-R)/2,A=(300-n)/2,B=f.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),M=parseFloat(B[0]),S=parseFloat(B[1]),l=parseFloat(B[2]),x=parseFloat(B[3]);isFinite(M)&&isFinite(S)&&isFinite(l)&&isFinite(x)?(P.x=x/100*R+z,P.y=M/100*n+A,P.width=(100-S)/100*R+z-P.x,P.height=(100-
+l)/100*n+A-P.y,"round"==B[4]?"50%"==B[5]?v.setAttribute("checked","checked"):(G=parseInt(B[5]),C.value=G,t.setAttribute("checked","checked"),y.style.visibility="visible"):m.setAttribute("checked","checked")):f=null}else f=null}catch(Q){}d.style=g+(f?f:k());d.vertex=!0;D.addCell(d,null,null,null,null);D.selectAll();D.addListener(mxEvent.CELLS_MOVED,J);D.addListener(mxEvent.CELLS_RESIZED,J);var F=D.graphHandler.mouseUp,N=D.graphHandler.mouseDown;D.graphHandler.mouseUp=function(){F.apply(this,arguments);
+H.style.backgroundColor="#fff9"};D.graphHandler.mouseDown=function(){N.apply(this,arguments);H.style.backgroundColor=""};D.dblClick=function(){};var O=D.getSelectionModel().changeSelection;D.getSelectionModel().changeSelection=function(){O.call(this,[d],[d])}};E.onerror=function(){E.onload=null;E.src=Editor.errorImage};E.setAttribute("src",e);E.style.maxWidth="300px";E.style.maxHeight="300px";u.appendChild(E);q.appendChild(u);var H=document.createElement("div");H.style.width="300px";H.style.height=
+"300px";H.style.overflow="hidden";H.style.backgroundColor="#fff9";q.appendChild(H);var D=null,L=new mxGeometry(100,100,100,100),G=5,d=new mxCell("",L.clone(),""),g="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+e.replace(";base64","")+";clipPath=",m=document.createElement("input");m.setAttribute("type","radio");m.setAttribute("id","croppingRect");m.setAttribute("name","croppingShape");m.setAttribute("checked","checked");m.style.margin="5px";q.appendChild(m);e=document.createElement("label");
+e.setAttribute("for","croppingRect");mxUtils.write(e,mxResources.get("rectangle"));q.appendChild(e);var t=document.createElement("input");t.setAttribute("type","radio");t.setAttribute("id","croppingRounded");t.setAttribute("name","croppingShape");t.style.margin="5px";q.appendChild(t);e=document.createElement("label");e.setAttribute("for","croppingRounded");mxUtils.write(e,mxResources.get("rounded"));q.appendChild(e);var v=document.createElement("input");v.setAttribute("type","radio");v.setAttribute("id",
+"croppingEllipse");v.setAttribute("name","croppingShape");v.style.margin="5px";q.appendChild(v);e=document.createElement("label");e.setAttribute("for","croppingEllipse");mxUtils.write(e,mxResources.get("ellipse"));q.appendChild(e);mxEvent.addListener(m,"change",p);mxEvent.addListener(t,"change",p);mxEvent.addListener(v,"change",p);var y=document.createElement("div");y.style.textAlign="center";y.style.visibility="hidden";var C=document.createElement("input");C.setAttribute("type","range");C.setAttribute("min",
+"1");C.setAttribute("max","49");C.setAttribute("value",G);C.setAttribute("title",mxResources.get("arcSize"));y.appendChild(C);q.appendChild(y);mxEvent.addListener(C,"change",function(){G=this.value;p(!0)});e=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});e.className="geBtn";u=mxUtils.button(mxResources.get("apply"),function(){c(k(),d.geometry.width,d.geometry.height);b.hideDialog()});u.className="geBtn gePrimaryBtn";var I=mxUtils.button(mxResources.get("reset"),function(){c(null,
+E.width,E.height);b.hideDialog()});I.className="geBtn";var K=document.createElement("div");K.style.marginTop="10px";K.style.textAlign="right";b.editor.cancelFirst?(K.appendChild(e),K.appendChild(I),K.appendChild(u)):(K.appendChild(I),K.appendChild(u),K.appendChild(e));q.appendChild(K);this.container=q},EditGeometryDialog=function(b,e){var f=b.editor.graph,c=1==e.length?f.getCellGeometry(e[0]):null,k=document.createElement("div"),p=document.createElement("table"),q=document.createElement("tbody"),
+u=document.createElement("tr"),E=document.createElement("td"),H=document.createElement("td");p.style.paddingLeft="6px";mxUtils.write(E,mxResources.get("relative")+":");var D=document.createElement("input");D.setAttribute("type","checkbox");null!=c&&c.relative&&(D.setAttribute("checked","checked"),D.defaultChecked=!0);this.init=function(){D.focus()};H.appendChild(D);u.appendChild(E);u.appendChild(H);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");
+mxUtils.write(E,mxResources.get("left")+":");var L=document.createElement("input");L.setAttribute("type","text");L.style.width="100px";L.value=null!=c?c.x:"";H.appendChild(L);u.appendChild(E);u.appendChild(H);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("top")+":");var G=document.createElement("input");G.setAttribute("type","text");G.style.width="100px";G.value=null!=c?c.y:"";H.appendChild(G);u.appendChild(E);
+u.appendChild(H);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("dx")+":");var d=document.createElement("input");d.setAttribute("type","text");d.style.width="100px";d.value=null!=c&&null!=c.offset?c.offset.x:"";H.appendChild(d);u.appendChild(E);u.appendChild(H);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("dy")+
+":");var g=document.createElement("input");g.setAttribute("type","text");g.style.width="100px";g.value=null!=c&&null!=c.offset?c.offset.y:"";H.appendChild(g);u.appendChild(E);u.appendChild(H);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("width")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.width="100px";m.value=null!=c?c.width:"";H.appendChild(m);u.appendChild(E);u.appendChild(H);
+q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("height")+":");var t=document.createElement("input");t.setAttribute("type","text");t.style.width="100px";t.value=null!=c?c.height:"";H.appendChild(t);u.appendChild(E);u.appendChild(H);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("rotation")+":");var v=document.createElement("input");
+v.setAttribute("type","text");v.style.width="100px";v.value=1==e.length?mxUtils.getValue(f.getCellStyle(e[0]),mxConstants.STYLE_ROTATION,0):"";H.appendChild(v);u.appendChild(E);u.appendChild(H);q.appendChild(u);p.appendChild(q);k.appendChild(p);c=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});c.className="geBtn";var y=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();f.getModel().beginUpdate();try{for(var C=0;C<e.length;C++){var I=f.getCellGeometry(e[C]);null!=
+I&&(I=I.clone(),f.isCellMovable(e[C])&&(I.relative=D.checked,0<mxUtils.trim(L.value).length&&(I.x=Number(L.value)),0<mxUtils.trim(G.value).length&&(I.y=Number(G.value)),0<mxUtils.trim(d.value).length&&(null==I.offset&&(I.offset=new mxPoint),I.offset.x=Number(d.value)),0<mxUtils.trim(g.value).length&&(null==I.offset&&(I.offset=new mxPoint),I.offset.y=Number(g.value))),f.isCellResizable(e[C])&&(0<mxUtils.trim(m.value).length&&(I.width=Number(m.value)),0<mxUtils.trim(t.value).length&&(I.height=Number(t.value))),
+f.getModel().setGeometry(e[C],I));0<mxUtils.trim(v.value).length&&f.setCellStyles(mxConstants.STYLE_ROTATION,Number(v.value),[e[C]])}}finally{f.getModel().endUpdate()}});y.className="geBtn gePrimaryBtn";mxEvent.addListener(k,"keypress",function(C){13==C.keyCode&&y.click()});p=document.createElement("div");p.style.marginTop="20px";p.style.textAlign="right";b.editor.cancelFirst?(p.appendChild(c),p.appendChild(y)):(p.appendChild(y),p.appendChild(c));k.appendChild(p);this.container=k},LibraryDialog=function(b,
+e,f,c,k,p,q){function u(P){for(P=document.elementFromPoint(P.clientX,P.clientY);null!=P&&P.parentNode!=g;)P=P.parentNode;var R=null;if(null!=P){var n=g.firstChild;for(R=0;null!=n&&n!=P;)n=n.nextSibling,R++}return R}function E(P,R,n,z,A,B,M,S,l){try{if(b.spinner.stop(),null==R||"image/"==R.substring(0,6))if(null==P&&null!=M||null==t[P]){var x=function(){X.innerText="";X.style.cursor="pointer";X.style.whiteSpace="nowrap";X.style.textOverflow="ellipsis";mxUtils.write(X,null!=Y.title&&0<Y.title.length?
+Y.title:mxResources.get("untitled"));X.style.color=null==Y.title||0==Y.title.length?"#d0d0d0":""};g.style.backgroundImage="";m.style.display="none";var F=A,N=B;if(A>b.maxImageSize||B>b.maxImageSize){var O=Math.min(1,Math.min(b.maxImageSize/Math.max(1,A)),b.maxImageSize/Math.max(1,B));A*=O;B*=O}F>N?(N=Math.round(100*N/F),F=100):(F=Math.round(100*F/N),N=100);var Q=document.createElement("div");Q.setAttribute("draggable","true");Q.style.display="inline-block";Q.style.position="relative";Q.style.padding=
+"0 12px";Q.style.cursor="move";mxUtils.setPrefixedStyle(Q.style,"transition","transform .1s ease-in-out");if(null!=P){var V=document.createElement("img");V.setAttribute("src",I.convert(P));V.style.width=F+"px";V.style.height=N+"px";V.style.margin="10px";V.style.paddingBottom=Math.floor((100-N)/2)+"px";V.style.paddingLeft=Math.floor((100-F)/2)+"px";Q.appendChild(V)}else if(null!=M){var T=b.stringToCells("<"==M.xml.charAt(0)?M.xml:Graph.decompress(M.xml));0<T.length&&(b.sidebar.createThumb(T,100,100,
+Q,null,!0,!1,null,null,Editor.isDarkMode()?"#2a252f":"#ffffff"),Q.firstChild.style.display="inline-block",Q.firstChild.style.cursor="")}var W=document.createElement("img");W.setAttribute("src",Editor.closeBlackImage);W.setAttribute("border","0");W.setAttribute("title",mxResources.get("delete"));W.setAttribute("align","top");W.style.paddingTop="4px";W.style.position="absolute";W.style.marginLeft="-12px";W.style.zIndex="1";W.style.cursor="pointer";mxEvent.addListener(W,"dragstart",function(da){mxEvent.consume(da)});
+(function(da,ja,ba){mxEvent.addListener(W,"click",function(ia){t[ja]=null;for(var ka=0;ka<L.length;ka++)if(null!=L[ka].data&&L[ka].data==ja||null!=L[ka].xml&&null!=ba&&L[ka].xml==ba.xml){L.splice(ka,1);break}Q.parentNode.removeChild(da);0==L.length&&(g.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",m.style.display="");mxEvent.consume(ia)});mxEvent.addListener(W,"dblclick",function(ia){mxEvent.consume(ia)})})(Q,P,M);Q.appendChild(W);Q.style.marginBottom="30px";var X=document.createElement("div");
+X.style.position="absolute";X.style.boxSizing="border-box";X.style.bottom="-18px";X.style.left="10px";X.style.right="10px";X.style.backgroundColor="light-dark(#ffffff, transparent)";X.style.overflow="hidden";X.style.textAlign="center";X.setAttribute("title",mxResources.get("rename"));var Y=null;null!=P?(Y={data:P,w:A,h:B,title:l},null!=S&&(Y.aspect=S),t[P]=V,L.push(Y)):null!=M&&(M.aspect="fixed",L.push(M),Y=M);mxEvent.addListener(X,"keydown",function(da){13==da.keyCode&&null!=C&&(C(),C=null,mxEvent.consume(da))});
+x();Q.appendChild(X);mxEvent.addListener(X,"mousedown",function(da){"true"!=X.getAttribute("contentEditable")&&mxEvent.consume(da)});T=function(da){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var ja=new FilenameDialog(b,Y.title||"",mxResources.get("ok"),function(ba){null!=ba&&(Y.title=ba,x())},mxResources.get("enterValue"));b.showDialog(ja.container,300,80,!0,!0);ja.init();mxEvent.consume(da)}else if("true"!=X.getAttribute("contentEditable")){null!=
+C&&(C(),C=null);if(null==Y.title||0==Y.title.length)X.innerText="";X.style.textOverflow="";X.style.whiteSpace="";X.style.cursor="text";X.style.color="";X.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(X.style,"user-select","text");X.focus();document.execCommand("selectAll",!1,null);C=function(){X.removeAttribute("contentEditable");X.style.cursor="pointer";Y.title=X.innerHTML;x()};mxEvent.consume(da)}};mxEvent.addListener(X,"click",T);mxEvent.addListener(Q,"dblclick",T);g.appendChild(Q);
+mxEvent.addListener(Q,"dragstart",function(da){null==C&&(null==P&&null!=M&&(W.style.visibility="hidden",X.style.visibility="hidden"),mxClient.IS_FF&&null!=M.xml&&da.dataTransfer.setData("Text",M.xml),v=u(da),mxClient.IS_GC&&(Q.style.opacity="0.9"),window.setTimeout(function(){mxUtils.setPrefixedStyle(Q.style,"transform","scale(0.5,0.5)");mxUtils.setOpacity(Q,30);W.style.visibility="";X.style.visibility=""},0))});mxEvent.addListener(Q,"dragend",function(da){"hidden"==W.style.visibility&&(W.style.visibility=
+"",X.style.visibility="");v=null;mxUtils.setOpacity(Q,100);mxUtils.setPrefixedStyle(Q.style,"transform",null)})}else K||(K=!0,b.handleError({message:mxResources.get("fileExists")}));else{A=!1;try{if(F=mxUtils.parseXml(P),"mxlibrary"==F.documentElement.nodeName){N=JSON.parse(mxUtils.getTextContent(F.documentElement));if(null!=N&&0<N.length)for(var Z=0;Z<N.length;Z++)null!=N[Z].xml?E(null,null,0,0,0,0,N[Z]):E(N[Z].data,null,0,0,N[Z].w,N[Z].h,null,"fixed",N[Z].title);A=!0}else if("mxfile"==F.documentElement.nodeName){var aa=
+F.documentElement.getElementsByTagName("diagram");for(Z=0;Z<aa.length;Z++){var ea=Editor.getDiagramNodeXml(aa[Z]);T=b.stringToCells(ea);if(0<T.length){var ca=b.editor.graph.getBoundingBoxFromGeometry(T);null!=ca&&E(null,null,0,0,0,0,{xml:ea,w:ca.width,h:ca.height})}}A=!0}}catch(da){null!=window.console&&console.error("Error in library dialog: "+da)}A||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(da){null!=window.console&&console.log("Error in library dialog: "+
+da)}return null}function H(P){P.dataTransfer.dropEffect=null!=v?"move":"copy";P.stopPropagation();P.preventDefault()}function D(P){P.stopPropagation();P.preventDefault();K=!1;y=u(P);if(null!=v)null!=y&&y<g.children.length?(L.splice(y>v?y-1:y,0,L.splice(v,1)[0]),g.insertBefore(g.children[v],g.children[y])):(L.push(L.splice(v,1)[0]),g.appendChild(g.children[v]));else if(0<P.dataTransfer.files.length)b.importFiles(P.dataTransfer.files,0,0,b.maxImageSize,J(P));else if(0<=mxUtils.indexOf(P.dataTransfer.types,
+"text/uri-list")){var R=decodeURIComponent(P.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(R)||/(\.png)($|\?)/i.test(R)||/(\.gif)($|\?)/i.test(R)||/(\.svg)($|\?)/i.test(R))&&b.loadImage(R,function(n){E(R,null,0,0,n.width,n.height);g.scrollTop=g.scrollHeight})}P.stopPropagation();P.preventDefault()}var L=[];f=document.createElement("div");f.style.height="100%";var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.height="40px";f.appendChild(G);mxUtils.write(G,mxResources.get("filename")+
+":");null==e&&(e=b.defaultLibraryName+".xml");var d=document.createElement("input");d.setAttribute("value",e);d.style.marginRight="20px";d.style.marginLeft="10px";d.style.width="500px";null==k||k.isRenamable()||d.setAttribute("disabled","true");this.init=function(){if(null==k||k.isRenamable())d.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?d.select():document.execCommand("selectAll",!1,null)};G.appendChild(d);Editor.enableUncompressedLibraries&&(d.style.width="420px",e=document.createElement("input"),
+e.setAttribute("type","checkbox"),e.style.marginRight="10px",G.appendChild(e),mxUtils.write(G,mxResources.get("compressed")));var g=document.createElement("div");g.style.borderWidth="1px 0px 1px 0px";g.style.borderColor="#d3d3d3";g.style.borderStyle="solid";g.style.marginTop="6px";g.style.overflow="auto";g.style.height="340px";g.style.backgroundPosition="center center";g.style.backgroundRepeat="no-repeat";0==L.length&&Graph.fileSupport&&(g.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')");
+var m=document.createElement("div");m.style.position="absolute";m.style.width="640px";m.style.top="260px";m.style.textAlign="center";m.style.fontSize="22px";m.style.color="#a0c3ff";mxUtils.write(m,mxResources.get("dragImagesHere"));f.appendChild(m);var t={},v=null,y=null,C=null;G=function(P){"true"!=mxEvent.getSource(P).getAttribute("contentEditable")&&null!=C&&(C(),C=null,mxEvent.consume(P))};mxEvent.addListener(g,"mousedown",G);mxEvent.addListener(g,"pointerdown",G);mxEvent.addListener(g,"touchstart",
+G);var I=new mxUrlConverter,K=!1;if(null!=c)for(G=0;G<c.length;G++)e=c[G],E(e.data,null,0,0,e.w,e.h,e,e.aspect,e.title);mxEvent.addListener(g,"dragleave",function(P){m.style.cursor="";for(var R=mxEvent.getSource(P);null!=R;){if(R==g||R==m){P.stopPropagation();P.preventDefault();break}R=R.parentNode}});var J=function(P){return function(R,n,z,A,B,M,S,l,x){null!=x&&EditorUi.isVisioFilename(x.name)?b.importVisio(x,mxUtils.bind(this,function(F){E(F,n,z,A,B,M,S,"fixed",mxEvent.isAltDown(P)?null:S.substring(0,
+S.lastIndexOf(".")).replace(/_/g," "))})):null!=x&&(new XMLHttpRequest).upload&&b.isRemoteFileFormat(R,x.name)?b.isExternalDataComms()?b.parseFile(x,mxUtils.bind(this,function(F){4==F.readyState&&(b.spinner.stop(),200<=F.status&&299>=F.status&&(E(F.responseText,n,z,A,B,M,S,"fixed",mxEvent.isAltDown(P)?null:S.substring(0,S.lastIndexOf(".")).replace(/_/g," ")),g.scrollTop=g.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(E(R,n,z,A,B,M,S,"fixed",
+mxEvent.isAltDown(P)?null:S.substring(0,S.lastIndexOf(".")).replace(/_/g," ")),g.scrollTop=g.scrollHeight)}};mxEvent.addListener(g,"dragover",H);mxEvent.addListener(g,"drop",D);mxEvent.addListener(m,"dragover",H);mxEvent.addListener(m,"drop",D);f.appendChild(g);c=document.createElement("div");c.style.textAlign="right";c.style.marginTop="20px";G=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});G.setAttribute("id","btnCancel");G.className="geBtn";b.editor.cancelFirst&&c.appendChild(G);
+"draw.io"!=b.getServiceName()||null==k||k.constructor!=DriveLibrary&&k.constructor!=GitHubLibrary||(e=mxUtils.button(mxResources.get("link"),function(){b.getPublicUrl(k,function(P){if(null!=P){var R=b.getSearch("create title mode url drive splash state clibs ui".split(" "));R+=(0==R.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(P);P=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+R,null,null,null,null,"Check out the library I made using @drawio");b.showDialog(P.container,
+450,240,!0);P.init()}else k.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),mxUtils.bind(this,function(){b.drive.showPermissions(k.getId(),k)}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),e.className="geBtn",c.appendChild(e));e=mxUtils.button(mxResources.get("export"),function(){var P=b.createLibraryDataFromImages(L),R=d.value;/(\.xml)$/i.test(R)||
+(R+=".xml");b.isLocalFileSave()?b.saveLocalFile(P,R,"text/xml",null,null,null!=q?q:!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(R)+"&format=xml&xml="+encodeURIComponent(P))).simulate(document,"_blank")});e.setAttribute("id","btnDownload");e.className="geBtn";c.appendChild(e);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var U=document.createElement("input");U.setAttribute("multiple","multiple");U.setAttribute("type","file");mxEvent.addListener(U,"change",function(P){K=
+!1;b.importFiles(U.files,0,0,b.maxImageSize,function(R,n,z,A,B,M,S,l,x){null!=U.files&&(J(P)(R,n,z,A,B,M,S,l,x),U.type="",U.type="file",U.value="")});g.scrollTop=g.scrollHeight});U.style.display="none";document.body.appendChild(U);b.libDlgFileInputElt=U}e=mxUtils.button(mxResources.get("import"),function(){null!=C&&(C(),C=null);b.libDlgFileInputElt.click()});e.setAttribute("id","btnAddImage");e.className="geBtn";c.appendChild(e)}e=mxUtils.button(mxResources.get("addImages"),function(){null!=C&&(C(),
+C=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(P,R,n){K=!1;if(null!=P){if("data:image/"==P.substring(0,11)){var z=P.indexOf(",");0<z&&(P=P.substring(0,z)+";base64,"+P.substring(z+1))}E(P,null,0,0,R,n);g.scrollTop=g.scrollHeight}})});e.setAttribute("id","btnAddImageUrl");e.className="geBtn";c.appendChild(e);this.saveBtnClickHandler=function(P,R,n,z){b.saveLibrary(P,R,n,z)};e=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=C&&(C(),C=null);this.saveBtnClickHandler(d.value,
+L,k,p)}));e.setAttribute("id","btnSave");e.className="geBtn gePrimaryBtn";c.appendChild(e);b.editor.cancelFirst||c.appendChild(G);f.appendChild(c);this.container=f},EditShapeDialog=function(b,e,f,c,k){c=null!=c?c:300;k=null!=k?k:120;var p=document.createElement("table"),q=document.createElement("tbody");p.style.cellPadding="4px";var u=document.createElement("tr");var E=document.createElement("td");E.setAttribute("colspan","2");E.style.fontSize="10pt";mxUtils.write(E,f);u.appendChild(E);q.appendChild(u);
+u=document.createElement("tr");E=document.createElement("td");var H=document.createElement("textarea");H.style.outline="none";H.style.resize="none";H.style.width=c-200+"px";H.style.height=k+"px";this.textarea=H;this.init=function(){H.focus();H.scrollTop=0};E.appendChild(H);u.appendChild(E);E=document.createElement("td");f=document.createElement("div");f.style.position="relative";f.style.border="1px solid gray";f.style.top="6px";f.style.width="200px";f.style.height=k+4+"px";f.style.overflow="hidden";
+f.style.marginBottom="16px";mxEvent.disableContextMenu(f);E.appendChild(f);var D=new Graph(f);D.setEnabled(!1);var L=b.editor.graph.cloneCell(e);D.addCells([L]);f=D.view.getState(L);var G="";null!=f.shape&&null!=f.shape.stencil&&(G=mxUtils.getPrettyXml(f.shape.stencil.desc));mxUtils.write(H,G||"");f=D.getGraphBounds();k=Math.min(160/f.width,(k-40)/f.height);D.view.scaleAndTranslate(k,20/k-f.x,20/k-f.y);u.appendChild(E);q.appendChild(u);u=document.createElement("tr");E=document.createElement("td");
+E.setAttribute("colspan","2");E.style.paddingTop="2px";E.style.whiteSpace="nowrap";E.setAttribute("align","right");b.isOffline()||(k=mxUtils.button(mxResources.get("help"),function(){b.openLink("https://www.drawio.com/doc/faq/shape-complex-create-edit")}),k.className="geBtn",E.appendChild(k));k=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});k.className="geBtn";b.editor.cancelFirst&&E.appendChild(k);var d=function(g,m,t){var v=H.value,y=mxUtils.parseXml(v);v=mxUtils.getPrettyXml(y.documentElement);
+y=y.documentElement.getElementsByTagName("parsererror");if(null!=y&&0<y.length)b.showError(mxResources.get("error"),mxResources.get("containsValidationErrors"),mxResources.get("ok"));else if(t&&b.hideDialog(),y=!g.model.contains(m),!t||y||v!=G){v=Graph.compress(v);g.getModel().beginUpdate();try{if(y){var C=b.editor.graph.getFreeInsertPoint();m.geometry.x=C.x;m.geometry.y=C.y;g.addCell(m)}g.setCellStyles(mxConstants.STYLE_SHAPE,"stencil("+v+")",[m])}catch(I){throw I;}finally{g.getModel().endUpdate()}y&&
+(g.setSelectionCell(m),g.scrollCellToVisible(m))}};f=mxUtils.button(mxResources.get("preview"),function(){d(D,L,!1)});f.className="geBtn";E.appendChild(f);f=mxUtils.button(mxResources.get("apply"),function(){d(b.editor.graph,e,!0)});f.className="geBtn gePrimaryBtn";E.appendChild(f);b.editor.cancelFirst||E.appendChild(k);u.appendChild(E);q.appendChild(u);p.appendChild(q);this.container=p},CustomDialog=function(b,e,f,c,k,p,q,u,E,H,D,L){var G=document.createElement("div");G.appendChild(e);var d=document.createElement("div");
+d.style.marginTop=null!=L?L:"30px";d.style.textAlign="right";null!=q&&d.appendChild(q);b.isOffline()||null==p||d.appendChild(b.createHelpIcon(p));e=mxUtils.button(E||mxResources.get("cancel"),function(){b.hideDialog();null!=c&&c()});e.className="geBtn";u&&(e.style.display="none");b.editor.cancelFirst&&d.appendChild(e);k=mxUtils.button(k||mxResources.get("ok"),mxUtils.bind(this,function(){H||b.hideDialog(null,null,this.container);if(null!=f){var g=f();if("string"===typeof g){b.showError(mxResources.get("error"),
+g);return}}H&&b.hideDialog(null,null,this.container)}));d.appendChild(k);k.className="geBtn gePrimaryBtn";b.editor.cancelFirst||d.appendChild(e);if(null!=D)for(u=0;u<D.length;u++)(function(g,m,t){g=mxUtils.button(g,function(v){m(v)});null!=t&&g.setAttribute("title",t);g.className="geBtn";d.appendChild(g)})(D[u][0],D[u][1],D[u][2]);G.appendChild(d);this.cancelBtn=e;this.okButton=k;this.container=G},BtnDialog=function(b,e,f,c){var k=document.createElement("div");k.style.textAlign="center";var p=document.createElement("p");
p.style.fontSize="16pt";p.style.padding="0px";p.style.margin="0px";p.style.color="gray";mxUtils.write(p,mxResources.get("done"));var q="Unknown",u=document.createElement("img");u.setAttribute("border","0");u.setAttribute("align","absmiddle");u.style.marginRight="10px";e==b.drive?(q=mxResources.get("googleDrive"),u.src=IMAGE_PATH+"/google-drive-logo-white.svg"):e==b.dropbox?(q=mxResources.get("dropbox"),u.src=IMAGE_PATH+"/dropbox-logo-white.svg"):e==b.oneDrive?(q=mxResources.get("oneDrive"),u.src=
IMAGE_PATH+"/onedrive-logo-white.svg"):e==b.gitHub?(q=mxResources.get("github"),u.src=IMAGE_PATH+"/github-logo-white.svg"):e==b.gitLab?(q=mxResources.get("gitlab"),u.src=IMAGE_PATH+"/gitlab-logo.svg"):e==b.trello&&(q=mxResources.get("trello"),u.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizedIn",[q],"You are now authorized in {1}"));f=mxUtils.button(f,c);f.insertBefore(u,f.firstChild);f.style.marginTop="6px";f.className="geBigButton";
f.style.fontSize="18px";f.style.padding="14px";k.appendChild(p);k.appendChild(b);k.appendChild(f);this.container=k},FontDialog=function(b,e,f,c,k){function p(C){this.style.border="";13==C.keyCode&&y.click()}var q=document.createElement("table"),u=document.createElement("tbody");q.style.marginTop="8px";var E=document.createElement("tr");var H=document.createElement("td");H.colSpan=2;H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.fontWeight="bold";var D=document.createElement("input");
@@ -12998,7 +13012,7 @@ l}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mat
this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(l=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=l?l:"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"),S=new Image;S.onload=function(){try{M.getContext("2d").drawImage(S,
0,0);var l=M.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=l&&6<l.length}catch(x){}};S.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(l){}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.0.6";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.0.7";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"}};
@@ -13307,7 +13321,7 @@ null,"",V,T,ca*da,ea*da,"shape=image;verticalLabelPosition=bottom;labelBackgroun
mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();this.refresh()}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&g.view.validateBackground()});g.addListener("enabledChanged",mxUtils.bind(this,function(){g.isEnabled()||this.hideShapePicker()}));d=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==d.embedViewport)mxUtils.fit(this.div);else{var x=parseInt(this.div.offsetLeft),F=
parseInt(this.div.offsetWidth),N=d.embedViewport.x+d.embedViewport.width,O=parseInt(this.div.offsetTop),Q=parseInt(this.div.offsetHeight),V=d.embedViewport.y+d.embedViewport.height;this.div.style.left=Math.max(d.embedViewport.x,Math.min(x,N-F))+"px";this.div.style.top=Math.max(d.embedViewport.y,Math.min(O,V-Q))+"px";this.div.style.height=Math.min(d.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(d.embedViewport.width,parseInt(this.div.style.width))+"px"}};
if(!this.editor.chromeless||this.editor.editable)if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme)B=Editor.currentTheme,Editor.currentTheme="",this.doSetCurrentTheme(B,mxUtils.bind(this,function(){"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<Editor.smallScreenWidth&&this.toggleFormatPanel(!1);this.fireEvent(new mxEventObject("themeInitialized"))}));B=!1;null!=urlParams.dark?B=urlParams.dark:
-"dark"==Editor.currentTheme?B=!0:Editor.isSettingsEnabled()&&"1"!=urlParams.embed&&(B=mxSettings.settings.darkMode);"auto"==B&&this.isAutoDarkModeSupported()&&(B=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===typeof B?"1"==B:B);if(this.isAutoDarkModeSupported())try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(x){this.isAutoDarkMode()&&this.setDarkMode(x.matches)}))}catch(x){this.actions.get("autoMode").setEnabled(!1)}"1"==
+(B="dark"==Editor.currentTheme,!Editor.isSettingsEnabled()||"1"==urlParams.embed||B&&"auto"!=mxSettings.settings.darkMode||(B=mxSettings.settings.darkMode));"auto"==B&&this.isAutoDarkModeSupported()&&(B=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===typeof B?"1"==B:B);if(this.isAutoDarkModeSupported())try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(x){this.isAutoDarkMode()&&this.setDarkMode(x.matches)}))}catch(x){this.actions.get("autoMode").setEnabled(!1)}"1"==
urlParams["high-contrast"]?this.setHighContrast(!0):Editor.isSettingsEnabled()&&!this.editor.graph.isLightboxView()&&null!=mxSettings.settings.highContrast&&this.setHighContrast(mxSettings.settings.highContrast);this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(x,F){g.enableFlowAnimation=Editor.enableAnimations;g.refresh()}));g.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&
d.editor.loadFonts()};var q=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,g=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=g&&d<g?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<g&&d>=g&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));this.lastWindowWidth=
d}q.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var d=this.sketchFooterMenuElt,g=this.sketchMainMenuElt,m=this.sketchPickerMenuElt,t=this.editor.graph;m.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(J){mxEvent.getSource(J)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(J),mxEvent.getClientY(J)),this.sendEmbeddedSvgExport())}));document.body.style.cursor="text";var v=
@@ -14419,7 +14433,7 @@ function(){c.openDevTools()});c.actions.addAction("drafts...",function(){var n=n
n,z);c.menus.addMenuItems(n,"- copyConnect collapseExpand - tooltips animations -".split(" "),z);var A=c.getCurrentFile();"simple"!=Editor.currentTheme&&(null!=A&&A.isRealtimeEnabled()&&A.isRealtimeSupported()&&this.addMenuItems(n,["showRemoteCursors"],z),c.menus.addMenuItems(n,["ruler","-"],z));EditorUi.isElectronApp&&c.menus.addMenuItems(n,"- googleFonts spellCheck autoBkp drafts -".split(" "),z);this.addSubmenu("diagramLanguage",n,z);n.addSeparator(z);c.mode!=App.MODE_ATLAS&&c.menus.addMenuItem(n,
"configuration",z);n.addSeparator(z)}else"1"==urlParams.embed&&null!=urlParams.lang||this.addSubmenu("language",n,z),"1"==urlParams.embed&&"1"!=urlParams.atlas||"atlas"==Editor.currentTheme||!Editor.isDarkMode()&&(mxClient.IS_IE||mxClient.IS_IE11)||c.menus.addSubmenu("appearance",n,z),"1"!=urlParams.embed&&"1"!=urlParams.extAuth&&c.mode!=App.MODE_ATLAS&&this.addSubmenu("theme",n,z),n.addSeparator(z),A=this.addSubmenu("adaptiveColors",n,z),(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&
c.menus.addLinkToItem(A,"https://github.com/jgraph/drawio/discussions/4713"),"undefined"!==typeof MathJax&&(A=this.addMenuItem(n,"mathematicalTypesetting",z),(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(A,"https://www.drawio.com/doc/faq/math-typesetting")),EditorUi.isElectronApp&&this.addMenuItems(n,["googleFonts","spellCheck","autoBkp","drafts","-"],z),this.addMenuItems(n,["copyConnect","collapseExpand","-"],z),"1"!=urlParams.embed&&(A=c.getCurrentFile(),null!=
-A&&A.isRealtimeEnabled()&&A.isRealtimeSupported()&&this.addMenuItems(n,["showRemoteCursors","shareCursor"],z),this.addMenuItems(n,["autosave"],z)),n.addSeparator(z),!c.isOfflineApp()&&isLocalStorage&&this.addMenuItem(n,"plugins",z),this.addMenuItems(n,["-","editDiagram"],z),this.addSubmenu("diagramLanguage",n,z),n.addSeparator(z),"1"!=urlParams.embed&&(isLocalStorage||mxClient.IS_CHROMEAPP)&&this.addMenuItems(n,["showStartScreen"],z),this.addMenuItems(n,["configuration"],z)})));this.put("movePage",
+A&&A.isRealtimeEnabled()&&A.isRealtimeSupported()&&this.addMenuItems(n,["showRemoteCursors","shareCursor"],z),this.addMenuItems(n,["autosave"],z)),n.addSeparator(z),!c.isOfflineApp()&&isLocalStorage&&this.addMenuItem(n,"plugins",z),n.addSeparator(z),this.addSubmenu("diagramLanguage",n,z),this.addMenuItem(n,"editDiagram",z),n.addSeparator(z),"1"!=urlParams.embed&&(isLocalStorage||mxClient.IS_CHROMEAPP)&&this.addMenuItems(n,["showStartScreen"],z),this.addMenuItems(n,["configuration"],z)})));this.put("movePage",
new Menu(mxUtils.bind(this,function(n,z){var A=c.currentPage,B=c.getPageIndex(A);if(null!=c.pages)for(var M=0;M<c.pages.length;M++)M!=B&&function(S){n.addItem(c.getShortPageName(c.pages[S]),null,function(){c.movePage(B,S);c.scrollToPage(A,!0)},z)}(M)})));this.put("share",new Menu(mxUtils.bind(this,function(n,z){if(!c.isStandaloneApp()){var A=c.isOffline(!0)?mxResources.get("offline"):c.getNetworkStatus();null!=A&&(n.addItem(A,null,null,z,null,!1),n.addSeparator(z));c.menus.addMenuItems(n,["share"],
z)}this.addMenuItem(n,"publishLink",z,null,null,mxResources.get("publish")+"...");null!=c.getMainUser()&&this.addMenuItems(n,["accounts"],z)})));this.put("diagram",new Menu(mxUtils.bind(this,function(n,z){var A=c.getCurrentFile();"simple"!=Editor.currentTheme&&(c.menus.addSubmenu("extras",n,z,mxResources.get("settings")),n.addSeparator(z));var B="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)c.menus.addMenuItems(n,"new open - synchronize properties - save saveAs -".split(" "),
z);else if(c.mode==App.MODE_ATLAS){"1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&c.menus.addMenuItems(n,["-","save"],z);if("1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&"0"!=urlParams.saveAndExit||c.mode==App.MODE_ATLAS)c.menus.addMenuItems(n,["saveAndExit"],z),null!=A&&A.isRevisionHistorySupported()&&c.menus.addMenuItems(n,["revisionHistory"],z);n.addSeparator(z)}else c.mode==App.MODE_ATLAS?c.menus.addMenuItems(n,["save","synchronize","-"],z):"1"!=urlParams.noFileMenu&&(c.menus.addSubmenu("file",
@@ -14572,37 +14586,36 @@ g.style.right=G.formatElt.style.width)}function e(G,d){function g(v,y){var C=G.m
t=t.cloneNode(!1);t.style.left="50%";t.style.borderLeftStyle="solid";mxUtils.write(t,mxResources.get("openLibrary"));d.appendChild(t);mxEvent.addListener(t,"click",this.actions.get("openLibrary").funct)}else t=g("newLibrary",mxResources.get("newLibrary")),t.style.display="block",t.style.fontSize="11px",t.style.left="0",t=g("openLibraryFrom",mxResources.get("openLibraryFrom")),t.style.borderLeftStyle="solid",t.style.display="block",t.style.fontSize="11px",t.style.left="50%";d.appendChild(G.sidebar.container);
d.style.overflow="hidden"}function f(G,d){if(EditorUi.windowed){var g=G.editor.graph;g.popupMenuHandler.hideMenu();null==G.sidebarWindow?(d=Math.min(g.container.clientWidth-10,218),g=Math.min(g.container.clientHeight-40,650),G.sidebarWindow=new WrapperWindow(G,mxResources.get("shapes"),10,56,d-6,g-6,function(m){e(G,m)}),G.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){G.sidebarWindow.window.fit()})),G.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90),G.sidebarWindow.window.setVisible(!0),
isLocalStorage&&G.getLocalData("sidebar",function(m){G.sidebar.showEntries(m,null,!0)}),G.restoreLibraries()):G.sidebarWindow.window.setVisible(null!=d?d:!G.sidebarWindow.window.isVisible())}else null==G.sidebarElt&&(G.sidebarElt=G.createSidebarContainer(),e(G,G.sidebarElt),G.sidebarElt.style.border="none",G.sidebarElt.style.width="210px",G.sidebarElt.style.borderRight="1px solid gray"),g=G.diagramContainer.parentNode,null!=G.sidebarElt.parentNode?(G.sidebarElt.parentNode.removeChild(G.sidebarElt),
-g.style.left="0px"):(g.parentNode.appendChild(G.sidebarElt),g.style.left=G.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var c=0;try{c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}catch(G){}Menus.prototype.autoPopup=!1;Editor.checkmarkImage=Graph.createSvgImage(22,18,'<path transform="translate(4 0)" d="M7.181,15.007a1,1,0,0,1-.793-0.391L3.222,10.5A1,1,0,1,1,4.808,9.274L7.132,12.3l6.044-8.86A1,1,0,1,1,14.83,4.569l-6.823,10a1,1,0,0,1-.8.437H7.181Z" fill="#29b6f2"/>').src;
-mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');mxOutline.prototype.sizerImage=null;mxConstants.VERTEX_SELECTION_COLOR="#C0C0C0";mxConstants.EDGE_SELECTION_COLOR="#C0C0C0";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.DEFAULT_VALID_COLOR="#29b6f2";mxConstants.GUIDE_COLOR="#C0C0C0";mxConstants.OUTLINE_COLOR="#29b6f2";
-mxConstants.OUTLINE_HANDLE_FILLCOLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#fff";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowSize="0.6";Graph.prototype.svgShadowBlur="1.2";mxRubberband.prototype.defaultOpacity=50;HoverIcons.prototype.inactiveOpacity=25;Format.prototype.showCloseButton=!1;EditorUi.prototype.closableScratchpad=!1;EditorUi.prototype.toolbarHeight=46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=
-!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var k=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(G){k.apply(this,arguments);null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var p=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){p.apply(this,arguments);this.menus.get("save").setEnabled(null!=
-this.getCurrentFile()||"1"==urlParams.embed)};var q=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(G,d){null!=d.shortcut&&900>c&&!mxClient.IS_IOS?G.firstChild.nextSibling.setAttribute("title",d.shortcut):q.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(G){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=G?G:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||
-null==this.formatWindow&&0<this.formatWidth};var u=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();u.apply(this,arguments)};var E=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(G){E.apply(this,arguments);if(G){var d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=d&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=d&&this.formatWindow.window.setVisible(!0)}else null!=
-this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};var H=Menus.prototype.init;Menus.prototype.init=function(){H.apply(this,arguments);var G=this.editorUi;EditorUi.enablePlantUml&&!G.isOffline()&&G.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var m=new ParseDialog(G,mxResources.get("plantUml")+"...","plantUml");G.showDialog(m.container,
-620,420,!0,!1);m.init()}));G.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var m=new ParseDialog(G,mxResources.get("mermaid")+"...","mermaid");G.showDialog(m.container,620,420,!0,!1);m.init()}));var d="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),g=function(m,t,v,y){m.addItem(v,null,mxUtils.bind(this,function(){var C=new CreateGraphDialog(G,v,y);G.showDialog(C.container,620,420,!0,!1);C.init()}),t)};this.put("insertLayout",
-new Menu(mxUtils.bind(this,function(m,t){for(var v=0;v<d.length;v++)"-"==d[v]?m.addSeparator(t):g(m,t,mxResources.get(d[v])+"...",d[v])})))};EditorUi.prototype.installFormatToolbar=function(G){var d=this.editor.graph,g=document.createElement("div");g.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";d.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,
-function(m,t){0<d.getSelectionCount()?(G.appendChild(g),g.innerHTML="Selected: "+d.getSelectionCount()):null!=g.parentNode&&g.parentNode.removeChild(g)}))};var D=!1;EditorUi.prototype.initFormatWindow=function(){if(!D&&null!=this.formatWindow){D=!0;var G=this.formatWindow.window.toggleMinimized,d=240;this.formatWindow.window.toggleMinimized=function(){G.apply(this,arguments);this.minimized?(d=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=
-parseInt(this.div.style.left)+d-140+"px"):(this.div.style.width=d+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-d+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(g){mxEvent.getSource(g)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var L=EditorUi.prototype.init;EditorUi.prototype.init=function(){function G(W,X,Y){var Z=y.menus.get(W),aa=
-J.addMenu(mxResources.get(W),mxUtils.bind(this,function(){aa.classList.contains("mxDisabled")||Z.funct.apply(this,arguments)}),K);aa.className="geMenuItem";aa.style.display="inline-block";aa.style.boxSizing="border-box";aa.style.top="6px";aa.style.marginRight="6px";aa.style.height="30px";aa.style.paddingTop="6px";aa.style.paddingBottom="6px";aa.style.cursor="pointer";aa.setAttribute("title",mxResources.get(W));y.menus.menuCreated(Z,aa,"geMenuItem");null!=Y?(aa.style.backgroundImage="url("+Y+")",aa.style.backgroundPosition=
-"center center",aa.style.backgroundRepeat="no-repeat",aa.style.backgroundSize="24px 24px",aa.style.width="34px",aa.innerText=""):X||(aa.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",aa.style.backgroundPosition="right 6px center",aa.style.backgroundRepeat="no-repeat",aa.style.paddingRight="22px");return aa}function d(W,X,Y,Z,aa,ea){var ca=document.createElement("a");ca.className="geMenuItem";ca.style.display="inline-block";ca.style.boxSizing="border-box";ca.style.height="30px";
-ca.style.padding="6px";ca.style.position="relative";ca.style.verticalAlign="top";ca.style.top="0px";null!=y.statusContainer?I.insertBefore(ca,y.statusContainer):I.appendChild(ca);null!=ea?(ca.style.backgroundImage="url("+ea+")",ca.style.backgroundPosition="center center",ca.style.backgroundRepeat="no-repeat",ca.style.backgroundSize="24px 24px",ca.style.width="34px"):mxUtils.write(ca,W);mxEvent.addListener(ca,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(da){da.preventDefault()}));
-mxEvent.addListener(ca,"click",function(da){"disabled"!=ca.getAttribute("disabled")&&X(da);mxEvent.consume(da)});null==Y&&(ca.style.marginRight="4px");null!=Z&&ca.setAttribute("title",Z);null!=aa&&(W=function(){aa.isEnabled()?(ca.removeAttribute("disabled"),ca.style.cursor="pointer"):(ca.setAttribute("disabled","disabled"),ca.style.cursor="default")},aa.addListener("stateChanged",W),C.addListener("enabledChanged",W),W());return ca}function g(W,X,Y){Y=document.createElement("div");Y.className="geMenuItem";
-Y.style.display="inline-block";Y.style.verticalAlign="top";Y.style.marginRight="6px";Y.style.padding="0 4px 0 4px";Y.style.height="30px";Y.style.position="relative";Y.style.top="0px";for(var Z=0;Z<W.length;Z++)null!=W[Z]&&(W[Z].style.margin="0px",W[Z].style.boxShadow="none",Y.appendChild(W[Z]));null!=X&&mxUtils.setOpacity(Y,X);null!=y.statusContainer?I.insertBefore(Y,y.statusContainer):I.appendChild(Y);return Y}function m(){for(var W=I.firstChild;null!=W;){var X=W.nextSibling;"geMenuItem"!=W.className&&
-"geItem"!=W.className||W.parentNode.removeChild(W);W=X}K=I.firstChild;c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;W=1E3>c;var Y=null;W||(Y=G("diagram"));X=W?G("diagram",null,Editor.menuImage):null;null!=X&&(Y=X);g([Y,d(mxResources.get("shapes"),y.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),y.actions.get("image"),W?Editor.shapesImage:null),d(mxResources.get("format"),y.actions.get("format").funct,null,mxResources.get("format")+" ("+y.actions.get("format").shortcut+
-")",y.actions.get("image"),W?Editor.formatImage:null)],W?60:null);X=G("insert",!0,W?R:null);g([X,d(mxResources.get("delete"),y.actions.get("delete").funct,null,mxResources.get("delete"),y.actions.get("delete"),W?Editor.trashImage:null)],W?60:null);C.isEnabled()||X.classList.add("mxDisabled");411<=c&&(g([N,O],60),520<=c&&g([Q,640<=c?d("",M.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",M,Editor.zoomInImage):null,640<=c?d("",S.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",
-S,Editor.zoomOutImage):null],60))}L.apply(this,arguments);var t=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=t&&(t.classList.add("geSimple"),t.classList.add("geMinimal"));t=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);var v=document.createElement("div");v.style.cssText="position:absolute;left:0px;right:0px;top:0px;overflow-y:auto;overflow-x:hidden;";v.style.bottom=t?"32px":"0px";this.sidebar=this.createSidebar(v);
-if(1E3<=c||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])f(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search"));EditorUi.windowed&&1E3<=c&&(b(this,!0),this.formatWindow.window.setVisible(!0));var y=this,C=y.editor.graph;y.toolbar=this.createToolbar(y.createDiv("geToolbar"));y.defaultLibraryName=mxResources.get("untitledLibrary");var I=
-document.createElement("div");I.className="geMenubarContainer";var K=null,J=new Menubar(y,I);y.statusContainer=y.createStatusContainer();y.statusContainer.style.position="relative";y.statusContainer.style.maxWidth="";y.statusContainer.style.cursor="default";var U=y.hideCurrentMenu;y.hideCurrentMenu=function(){U.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var P=y.descriptorChanged;y.descriptorChanged=function(){P.apply(this,arguments);var W=y.getCurrentFile();if(null!=W&&null!=
-W.getTitle()){var X=W.getMode();"google"==X?X="googleDrive":"github"==X?X="gitHub":"gitlab"==X?X="gitLab":"onedrive"==X&&(X="oneDrive");X=mxResources.get(X);I.setAttribute("title",W.getTitle()+(null!=X?" ("+X+")":""))}else I.removeAttribute("title")};y.setStatusText(y.editor.getStatus());I.appendChild(y.statusContainer);y.buttonContainer=document.createElement("div");y.buttonContainer.style.cssText="display:flex;justify-content:flex-end;padding-right:10px;gap:6px;white-space:nowrap;background-color:inherit;align-items:center;min-width:0;margin-left:auto;";
-I.appendChild(y.buttonContainer);y.menubarContainer=y.buttonContainer;y.tabContainer=document.createElement("div");y.tabContainer.className="geTabContainer geTabItem";y.tabContainer.style.cssText="position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;visibility:hidden;";t=y.diagramContainer.parentNode;v=document.createElement("div");v.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";y.diagramContainer.style.top="47px";var R=Editor.addBoxImage;
-if(null!=y.hoverIcons){var n=y.hoverIcons.update;y.hoverIcons.update=function(){C.freehand.isDrawing()||n.apply(this,arguments)}}if(null!=C.freehand){var z=C.freehand.createStyle;C.freehand.createStyle=function(W){return z.apply(this,arguments)+"sketch=0;"}}y.editor.addListener("statusChanged",mxUtils.bind(this,function(){y.setStatusText(y.editor.getStatus())}));y.setStatusText(y.editor.getStatus());var A=y.menus.get("viewZoom");if(null!=A){var B=function(W){if(mxEvent.isAltDown(W))y.hideCurrentMenu(),
-y.actions.get("customZoom").funct(),mxEvent.consume(W);else if("geMenuItem"==mxEvent.getSource(W).className||mxEvent.isShiftDown(W))y.hideCurrentMenu(),y.actions.get("smartFit").funct(),mxEvent.consume(W)},M=y.actions.get("zoomIn"),S=y.actions.get("zoomOut"),l=y.actions.get("resetView"),x=y.actions.get("undo"),F=y.actions.get("redo"),N=d("",x.funct,null,mxResources.get("undo")+" ("+x.shortcut+")",x,Editor.undoImage),O=d("",F.funct,null,mxResources.get("redo")+" ("+F.shortcut+")",F,Editor.redoImage),
-Q=d("",B,!0,mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)",l,Editor.zoomFitImage);I.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";var V=J.addMenu("100%",A.funct);V.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)");V.className="geTabItem";V.style.height=y.tabContainerHeight+"px";V.style.position="absolute";V.style.display="0"!=urlParams.pages?"flex":"none";V.style.alignItems=
-"center";V.style.justifyContent="center";V.style.paddingRight="11px";V.style.whiteSpace="nowrap";V.style.overflow="hidden";V.style.fontSize="11px";V.style.width="51px";V.style.right="0px";V.style.bottom="0px";V.style.boxSizing="content-box";V.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";V.style.backgroundPosition="right 6px top 15px";V.style.backgroundRepeat="no-repeat";V.style.backgroundSize="10px";V.style.zIndex="1";v.appendChild(V);(function(W){mxEvent.addListener(W,"click",
-B);var X=mxUtils.bind(this,function(Y,Z,aa){W.innerText="";mxUtils.write(W,Math.round(100*y.editor.graph.view.scale*(null!=aa?aa:1))+"%")});y.editor.graph.view.addListener(mxEvent.EVENT_SCALE,X);y.editor.addListener("resetGraphView",X);y.editor.addListener("pageSelected",X);y.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(Y,Z){X(Y,Z,Z.getProperty("factor"))}))})(V);var T=y.setGraphEnabled;y.setGraphEnabled=function(){T.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")}}v.appendChild(I);v.appendChild(y.diagramContainer);t.appendChild(v);y.updateTabContainer();!EditorUi.windowed&&1E3<=c&&b(this,!0);v.appendChild(y.tabContainer);m();y.addListener("lockedChanged",m);mxEvent.addListener(window,"resize",function(){m();null!=y.sidebarWindow&&y.sidebarWindow.window.fit();null!=y.formatWindow&&y.formatWindow.window.fit();
-null!=y.actions.outlineWindow&&y.actions.outlineWindow.window.fit();null!=y.actions.layersWindow&&y.actions.layersWindow.window.fit();null!=y.menus.chatWindow&&y.menus.chatWindow.window.fit();null!=y.menus.tagsWindow&&y.menus.tagsWindow.window.fit();null!=y.menus.findWindow&&y.menus.findWindow.window.fit();null!=y.menus.findReplaceWindow&&y.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)}})();(function(){var b=mxGuide.prototype.move;mxGuide.prototype.move=function(c,k,p,q){var u=k.y,E=k.x,H=!1,D=!1;if(null!=this.states&&null!=c&&null!=k){var L=this,G=new mxCellState,d=this.graph.getView().scale,g=Math.max(2,this.getGuideTolerance()/2);G.x=c.x+E;G.y=c.y+u;G.width=c.width;G.height=c.height;for(var m=[],t=[],v=0;v<this.states.length;v++){var y=this.states[v];y instanceof mxCellState&&(q||!this.graph.isCellSelected(y.cell))&&((G.x>=y.x&&G.x<=y.x+y.width||y.x>=G.x&&y.x<=G.x+G.width)&&(G.y>
+g.style.left="0px"):(g.parentNode.appendChild(G.sidebarElt),g.style.left=G.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var c=0;try{c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}catch(G){}Menus.prototype.autoPopup=!1;mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');
+mxOutline.prototype.sizerImage=null;mxConstants.VERTEX_SELECTION_COLOR="#C0C0C0";mxConstants.EDGE_SELECTION_COLOR="#C0C0C0";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.DEFAULT_VALID_COLOR="#29b6f2";mxConstants.GUIDE_COLOR="#C0C0C0";mxConstants.OUTLINE_COLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#fff";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowSize="0.6";Graph.prototype.svgShadowBlur=
+"1.2";mxRubberband.prototype.defaultOpacity=50;HoverIcons.prototype.inactiveOpacity=25;Format.prototype.showCloseButton=!1;EditorUi.prototype.closableScratchpad=!1;EditorUi.prototype.toolbarHeight=46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var k=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(G){k.apply(this,arguments);
+null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var p=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){p.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var q=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(G,d){null!=d.shortcut&&900>c&&!mxClient.IS_IOS?G.firstChild.nextSibling.setAttribute("title",d.shortcut):
+q.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(G){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=G?G:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};var u=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();u.apply(this,arguments)};var E=EditorUi.prototype.setGraphEnabled;
+EditorUi.prototype.setGraphEnabled=function(G){E.apply(this,arguments);if(G){var d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=d&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=d&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};
+var H=Menus.prototype.init;Menus.prototype.init=function(){H.apply(this,arguments);var G=this.editorUi;EditorUi.enablePlantUml&&!G.isOffline()&&G.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var m=new ParseDialog(G,mxResources.get("plantUml")+"...","plantUml");G.showDialog(m.container,620,420,!0,!1);m.init()}));G.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var m=new ParseDialog(G,mxResources.get("mermaid")+"...","mermaid");G.showDialog(m.container,
+620,420,!0,!1);m.init()}));var d="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),g=function(m,t,v,y){m.addItem(v,null,mxUtils.bind(this,function(){var C=new CreateGraphDialog(G,v,y);G.showDialog(C.container,620,420,!0,!1);C.init()}),t)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(m,t){for(var v=0;v<d.length;v++)"-"==d[v]?m.addSeparator(t):g(m,t,mxResources.get(d[v])+"...",d[v])})))};EditorUi.prototype.installFormatToolbar=function(G){var d=
+this.editor.graph,g=document.createElement("div");g.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";d.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(m,t){0<d.getSelectionCount()?(G.appendChild(g),g.innerHTML="Selected: "+d.getSelectionCount()):null!=g.parentNode&&g.parentNode.removeChild(g)}))};var D=!1;EditorUi.prototype.initFormatWindow=
+function(){if(!D&&null!=this.formatWindow){D=!0;var G=this.formatWindow.window.toggleMinimized,d=240;this.formatWindow.window.toggleMinimized=function(){G.apply(this,arguments);this.minimized?(d=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+d-140+"px"):(this.div.style.width=d+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-d+140)+"px");this.fit()};
+mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(g){mxEvent.getSource(g)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var L=EditorUi.prototype.init;EditorUi.prototype.init=function(){function G(W,X,Y){var Z=y.menus.get(W),aa=J.addMenu(mxResources.get(W),mxUtils.bind(this,function(){aa.classList.contains("mxDisabled")||Z.funct.apply(this,arguments)}),K);aa.className="geMenuItem";aa.style.display="inline-block";aa.style.boxSizing=
+"border-box";aa.style.top="6px";aa.style.marginRight="6px";aa.style.height="30px";aa.style.paddingTop="6px";aa.style.paddingBottom="6px";aa.style.cursor="pointer";aa.setAttribute("title",mxResources.get(W));y.menus.menuCreated(Z,aa,"geMenuItem");null!=Y?(aa.style.backgroundImage="url("+Y+")",aa.style.backgroundPosition="center center",aa.style.backgroundRepeat="no-repeat",aa.style.backgroundSize="24px 24px",aa.style.width="34px",aa.innerText=""):X||(aa.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+
+")",aa.style.backgroundPosition="right 6px center",aa.style.backgroundRepeat="no-repeat",aa.style.paddingRight="22px");return aa}function d(W,X,Y,Z,aa,ea){var ca=document.createElement("a");ca.className="geMenuItem";ca.style.display="inline-block";ca.style.boxSizing="border-box";ca.style.height="30px";ca.style.padding="6px";ca.style.position="relative";ca.style.verticalAlign="top";ca.style.top="0px";null!=y.statusContainer?I.insertBefore(ca,y.statusContainer):I.appendChild(ca);null!=ea?(ca.style.backgroundImage=
+"url("+ea+")",ca.style.backgroundPosition="center center",ca.style.backgroundRepeat="no-repeat",ca.style.backgroundSize="24px 24px",ca.style.width="34px"):mxUtils.write(ca,W);mxEvent.addListener(ca,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(da){da.preventDefault()}));mxEvent.addListener(ca,"click",function(da){"disabled"!=ca.getAttribute("disabled")&&X(da);mxEvent.consume(da)});null==Y&&(ca.style.marginRight="4px");null!=Z&&ca.setAttribute("title",Z);null!=aa&&(W=function(){aa.isEnabled()?
+(ca.removeAttribute("disabled"),ca.style.cursor="pointer"):(ca.setAttribute("disabled","disabled"),ca.style.cursor="default")},aa.addListener("stateChanged",W),C.addListener("enabledChanged",W),W());return ca}function g(W,X,Y){Y=document.createElement("div");Y.className="geMenuItem";Y.style.display="inline-block";Y.style.verticalAlign="top";Y.style.marginRight="6px";Y.style.padding="0 4px 0 4px";Y.style.height="30px";Y.style.position="relative";Y.style.top="0px";for(var Z=0;Z<W.length;Z++)null!=W[Z]&&
+(W[Z].style.margin="0px",W[Z].style.boxShadow="none",Y.appendChild(W[Z]));null!=X&&mxUtils.setOpacity(Y,X);null!=y.statusContainer?I.insertBefore(Y,y.statusContainer):I.appendChild(Y);return Y}function m(){for(var W=I.firstChild;null!=W;){var X=W.nextSibling;"geMenuItem"!=W.className&&"geItem"!=W.className||W.parentNode.removeChild(W);W=X}K=I.firstChild;c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;W=1E3>c;var Y=null;W||(Y=G("diagram"));X=W?G("diagram",null,
+Editor.menuImage):null;null!=X&&(Y=X);g([Y,d(mxResources.get("shapes"),y.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),y.actions.get("image"),W?Editor.shapesImage:null),d(mxResources.get("format"),y.actions.get("format").funct,null,mxResources.get("format")+" ("+y.actions.get("format").shortcut+")",y.actions.get("image"),W?Editor.formatImage:null)],W?60:null);X=G("insert",!0,W?R:null);g([X,d(mxResources.get("delete"),y.actions.get("delete").funct,null,mxResources.get("delete"),
+y.actions.get("delete"),W?Editor.trashImage:null)],W?60:null);C.isEnabled()||X.classList.add("mxDisabled");411<=c&&(g([N,O],60),520<=c&&g([Q,640<=c?d("",M.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",M,Editor.zoomInImage):null,640<=c?d("",S.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",S,Editor.zoomOutImage):null],60))}L.apply(this,arguments);var t=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=t&&(t.classList.add("geSimple"),
+t.classList.add("geMinimal"));t=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);var v=document.createElement("div");v.style.cssText="position:absolute;left:0px;right:0px;top:0px;overflow-y:auto;overflow-x:hidden;";v.style.bottom=t?"32px":"0px";this.sidebar=this.createSidebar(v);if(1E3<=c||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])f(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),
+this.sidebar.showEntries("search"));EditorUi.windowed&&1E3<=c&&(b(this,!0),this.formatWindow.window.setVisible(!0));var y=this,C=y.editor.graph;y.toolbar=this.createToolbar(y.createDiv("geToolbar"));y.defaultLibraryName=mxResources.get("untitledLibrary");var I=document.createElement("div");I.className="geMenubarContainer";var K=null,J=new Menubar(y,I);y.statusContainer=y.createStatusContainer();y.statusContainer.style.position="relative";y.statusContainer.style.maxWidth="";y.statusContainer.style.cursor=
+"default";var U=y.hideCurrentMenu;y.hideCurrentMenu=function(){U.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var P=y.descriptorChanged;y.descriptorChanged=function(){P.apply(this,arguments);var W=y.getCurrentFile();if(null!=W&&null!=W.getTitle()){var X=W.getMode();"google"==X?X="googleDrive":"github"==X?X="gitHub":"gitlab"==X?X="gitLab":"onedrive"==X&&(X="oneDrive");X=mxResources.get(X);I.setAttribute("title",W.getTitle()+(null!=X?" ("+X+")":""))}else I.removeAttribute("title")};
+y.setStatusText(y.editor.getStatus());I.appendChild(y.statusContainer);y.buttonContainer=document.createElement("div");y.buttonContainer.style.cssText="display:flex;justify-content:flex-end;padding-right:10px;gap:6px;white-space:nowrap;background-color:inherit;align-items:center;min-width:0;margin-left:auto;";I.appendChild(y.buttonContainer);y.menubarContainer=y.buttonContainer;y.tabContainer=document.createElement("div");y.tabContainer.className="geTabContainer geTabItem";y.tabContainer.style.cssText=
+"position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;visibility:hidden;";t=y.diagramContainer.parentNode;v=document.createElement("div");v.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";y.diagramContainer.style.top="47px";var R=Editor.addBoxImage;if(null!=y.hoverIcons){var n=y.hoverIcons.update;y.hoverIcons.update=function(){C.freehand.isDrawing()||n.apply(this,arguments)}}if(null!=C.freehand){var z=C.freehand.createStyle;C.freehand.createStyle=
+function(W){return z.apply(this,arguments)+"sketch=0;"}}y.editor.addListener("statusChanged",mxUtils.bind(this,function(){y.setStatusText(y.editor.getStatus())}));y.setStatusText(y.editor.getStatus());var A=y.menus.get("viewZoom");if(null!=A){var B=function(W){if(mxEvent.isAltDown(W))y.hideCurrentMenu(),y.actions.get("customZoom").funct(),mxEvent.consume(W);else if("geMenuItem"==mxEvent.getSource(W).className||mxEvent.isShiftDown(W))y.hideCurrentMenu(),y.actions.get("smartFit").funct(),mxEvent.consume(W)},
+M=y.actions.get("zoomIn"),S=y.actions.get("zoomOut"),l=y.actions.get("resetView"),x=y.actions.get("undo"),F=y.actions.get("redo"),N=d("",x.funct,null,mxResources.get("undo")+" ("+x.shortcut+")",x,Editor.undoImage),O=d("",F.funct,null,mxResources.get("redo")+" ("+F.shortcut+")",F,Editor.redoImage),Q=d("",B,!0,mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)",l,Editor.zoomFitImage);I.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";
+this.tabContainer.style.right="70px";var V=J.addMenu("100%",A.funct);V.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)");V.className="geTabItem";V.style.height=y.tabContainerHeight+"px";V.style.position="absolute";V.style.display="0"!=urlParams.pages?"flex":"none";V.style.alignItems="center";V.style.justifyContent="center";V.style.paddingRight="11px";V.style.whiteSpace="nowrap";V.style.overflow="hidden";V.style.fontSize="11px";V.style.width="51px";V.style.right="0px";V.style.bottom=
+"0px";V.style.boxSizing="content-box";V.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";V.style.backgroundPosition="right 6px top 15px";V.style.backgroundRepeat="no-repeat";V.style.backgroundSize="10px";V.style.zIndex="1";v.appendChild(V);(function(W){mxEvent.addListener(W,"click",B);var X=mxUtils.bind(this,function(Y,Z,aa){W.innerText="";mxUtils.write(W,Math.round(100*y.editor.graph.view.scale*(null!=aa?aa:1))+"%")});y.editor.graph.view.addListener(mxEvent.EVENT_SCALE,X);y.editor.addListener("resetGraphView",
+X);y.editor.addListener("pageSelected",X);y.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(Y,Z){X(Y,Z,Z.getProperty("factor"))}))})(V);var T=y.setGraphEnabled;y.setGraphEnabled=function(){T.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")}}v.appendChild(I);v.appendChild(y.diagramContainer);
+t.appendChild(v);y.updateTabContainer();!EditorUi.windowed&&1E3<=c&&b(this,!0);v.appendChild(y.tabContainer);m();y.addListener("lockedChanged",m);mxEvent.addListener(window,"resize",function(){m();null!=y.sidebarWindow&&y.sidebarWindow.window.fit();null!=y.formatWindow&&y.formatWindow.window.fit();null!=y.actions.outlineWindow&&y.actions.outlineWindow.window.fit();null!=y.actions.layersWindow&&y.actions.layersWindow.window.fit();null!=y.menus.chatWindow&&y.menus.chatWindow.window.fit();null!=y.menus.tagsWindow&&
+y.menus.tagsWindow.window.fit();null!=y.menus.findWindow&&y.menus.findWindow.window.fit();null!=y.menus.findReplaceWindow&&y.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)}})();(function(){var b=mxGuide.prototype.move;mxGuide.prototype.move=function(c,k,p,q){var u=k.y,E=k.x,H=!1,D=!1;if(null!=this.states&&null!=c&&null!=k){var L=this,G=new mxCellState,d=this.graph.getView().scale,g=Math.max(2,this.getGuideTolerance()/2);G.x=c.x+E;G.y=c.y+u;G.width=c.width;G.height=c.height;for(var m=[],t=[],v=0;v<this.states.length;v++){var y=this.states[v];y instanceof mxCellState&&(q||!this.graph.isCellSelected(y.cell))&&((G.x>=y.x&&G.x<=y.x+y.width||y.x>=G.x&&y.x<=G.x+G.width)&&(G.y>
y.y+y.height+4||G.y+G.height+4<y.y)?m.push(y):(G.y>=y.y&&G.y<=y.y+y.height||y.y>=G.y&&y.y<=G.y+G.height)&&(G.x>y.x+y.width+4||G.x+G.width+4<y.x)&&t.push(y))}var C=0,I=0,K=y=0,J=0,U=0,P=0,R=0,n=5*d;if(1<m.length){m.push(G);m.sort(function(M,S){return M.y-S.y});var z=!1;v=G==m[0];d=G==m[m.length-1];if(!v&&!d)for(v=1;v<m.length-1;v++)if(G==m[v]){d=m[v-1];v=m[v+1];y=I=K=(v.y-d.y-d.height-G.height)/2;break}for(v=0;v<m.length-1;v++){d=m[v];var A=m[v+1],B=G==d||G==A;A=A.y-d.y-d.height;z|=G==d;if(0==I&&0==
C)I=A,C=1;else if(Math.abs(I-A)<=(B||1==v&&z?g:0))C+=1;else if(1<C&&z){m=m.slice(0,v+1);break}else if(3<=m.length-v&&!z)C=0,y=I=0!=K?K:0,m.splice(0,0==v?1:v),v=-1;else break;0!=y||B||(I=y=A)}3==m.length&&m[1]==G&&(y=0)}if(1<t.length){t.push(G);t.sort(function(M,S){return M.x-S.x});z=!1;v=G==t[0];d=G==t[t.length-1];if(!v&&!d)for(v=1;v<t.length-1;v++)if(G==t[v]){d=t[v-1];v=t[v+1];P=U=R=(v.x-d.x-d.width-G.width)/2;break}for(v=0;v<t.length-1;v++){d=t[v];A=t[v+1];B=G==d||G==A;A=A.x-d.x-d.width;z|=G==d;
if(0==U&&0==J)U=A,J=1;else if(Math.abs(U-A)<=(B||1==v&&z?g:0))J+=1;else if(1<J&&z){t=t.slice(0,v+1);break}else if(3<=t.length-v&&!z)J=0,P=U=0!=R?R:0,t.splice(0,0==v?1:v),v=-1;else break;0!=P||B||(U=P=A)}3==t.length&&t[1]==G&&(P=0)}g=function(M,S,l,x){var F=[];if(x){x=n;var N=0}else x=0,N=n;F.push(new mxPoint(M.x-x,M.y-N));F.push(new mxPoint(M.x+x,M.y+N));F.push(M);F.push(S);F.push(new mxPoint(S.x-x,S.y-N));F.push(new mxPoint(S.x+x,S.y+N));if(null!=l)return l.points=F,l;M=new mxPolyline(F,mxConstants.GUIDE_COLOR,
diff --git a/src/main/webapp/js/clear.js b/src/main/webapp/js/clear.js
index a8f3fde0e..d14355c2a 100644
--- a/src/main/webapp/js/clear.js
+++ b/src/main/webapp/js/clear.js
@@ -2,51 +2,58 @@ try
{
function write(text)
{
- document.body.appendChild(document.createTextNode(text));
+ document.getElementById('content').appendChild(document.createTextNode(text));
};
function writeln(text)
{
write(text);
- document.body.appendChild(document.createElement('br'));
+ document.getElementById('content').appendChild(document.createElement('br'));
};
writeln('');
write('Clearing Cached version ' + EditorUi.VERSION + '...');
- navigator.serviceWorker.getRegistrations().then(function(registrations)
+ if (navigator.serviceWorker != null)
{
- if (registrations != null && registrations.length > 0)
+ navigator.serviceWorker.getRegistrations().then(function(registrations)
{
- for (var i = 0; i < registrations.length; i++)
+ if (registrations != null && registrations.length > 0)
{
- registrations[i].unregister();
- }
+ for (var i = 0; i < registrations.length; i++)
+ {
+ registrations[i].unregister();
+ }
- writeln('Done');
- }
- else
- {
- writeln('OK');
- }
-
- writeln('');
- var link = document.createElement('button');
- link.style.margin = '4px';
- link.setAttribute('onclick', 'window.location.reload();');
- link.appendChild(document.createTextNode('Update'));
- document.body.appendChild(link);
+ writeln('Done');
+ }
+ else
+ {
+ writeln('OK');
+ }
+
+ writeln('');
+ var link = document.createElement('button');
+ link.style.margin = '4px';
+ link.setAttribute('onclick', 'window.location.reload();');
+ link.appendChild(document.createTextNode('Update'));
+ document.getElementById('content').appendChild(link);
- if ((/test\.draw\.io$/.test(window.location.hostname)) ||
- (/preprod\.diagrams\.net$/.test(window.location.hostname)) ||
- (/app\.diagrams\.net$/.test(window.location.hostname)))
- {
- link = link.cloneNode(false);
- link.setAttribute('onclick', 'window.location.href = "/.";');
- link.appendChild(document.createTextNode('Start App'));
- document.body.appendChild(link);
- }
- });
+ if ((/test\.draw\.io$/.test(window.location.hostname)) ||
+ (/preprod\.diagrams\.net$/.test(window.location.hostname)) ||
+ (/app\.diagrams\.net$/.test(window.location.hostname)))
+ {
+ link = link.cloneNode(false);
+ link.setAttribute('onclick', 'window.location.href = "/.";');
+ link.appendChild(document.createTextNode('Start App'));
+ document.getElementById('content').appendChild(link);
+ }
+ });
+ }
+ else
+ {
+ writeln('OK');
+ }
// Clears corresponding domain of current domain
var iframe = document.createElement('iframe');
diff --git a/src/main/webapp/js/integrate.min.js b/src/main/webapp/js/integrate.min.js
index 3a96dbcff..082f4f15b 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.0.6",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.0.7",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||
@@ -302,15 +302,16 @@ function(){this.scrollbars=mxUtils.hasScrollbars(a.container);this.scrollLeft=a.
this.getDy())}),this.delay)});this.isActive=function(){return active};this.getDx=function(){return Math.round(this.tdx)};this.getDy=function(){return Math.round(this.tdy)};this.start=function(){this.t0x=a.view.translate.x;this.t0y=a.view.translate.y;this.active=!0};this.panTo=function(c,d,e,f){this.active||this.start();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop;var g=a.container;this.dx=c+(null!=e?e:0)-g.scrollLeft-g.clientWidth;this.dx=0>this.dx&&Math.abs(this.dx)<
this.border?this.border+this.dx:this.handleMouseOut?Math.max(this.dx,0):0;0==this.dx&&(this.dx=c-g.scrollLeft,this.dx=0<this.dx&&this.dx<this.border?this.dx-this.border:this.handleMouseOut?Math.min(0,this.dx):0);this.dy=d+(null!=f?f:0)-g.scrollTop-g.clientHeight;this.dy=0>this.dy&&Math.abs(this.dy)<this.border?this.border+this.dy:this.handleMouseOut?Math.max(this.dy,0):0;0==this.dy&&(this.dy=d-g.scrollTop,this.dy=0<this.dy&&this.dy<this.border?this.dy-this.border:this.handleMouseOut?Math.min(0,this.dy):
0);0!=this.dx||0!=this.dy?(this.dx*=this.damper,this.dy*=this.damper,null==this.thread&&(this.thread=b())):null!=this.thread&&(window.clearInterval(this.thread),this.thread=null)};this.stop=function(){if(this.active)if(this.active=!1,null!=this.thread&&(window.clearInterval(this.thread),this.thread=null),this.tdy=this.tdx=0,this.scrollbars)a.panDx=0,a.panDy=0,a.fireEvent(new mxEventObject(mxEvent.PAN));else{var c=a.panDx,d=a.panDy;if(0!=c||0!=d)a.panGraph(0,0),a.view.setTranslate(this.t0x+c/a.view.scale,
-this.t0y+d/a.view.scale)}};this.destroy=function(){a.removeMouseListener(this.mouseListener);mxEvent.removeListener(document,"mouseup",this.mouseUpListener)}}mxPanningManager.prototype.damper=1/6;mxPanningManager.prototype.delay=10;mxPanningManager.prototype.handleMouseOut=!0;mxPanningManager.prototype.border=0;function mxPopupMenu(a){this.factoryMethod=a;null!=a&&this.init()}mxPopupMenu.prototype=new mxEventSource;mxPopupMenu.prototype.constructor=mxPopupMenu;
-mxPopupMenu.prototype.submenuImage=mxClient.imageBasePath+"/submenu.gif";mxPopupMenu.prototype.zIndex=10006;mxPopupMenu.prototype.factoryMethod=null;mxPopupMenu.prototype.useLeftButtonForPopup=!1;mxPopupMenu.prototype.enabled=!0;mxPopupMenu.prototype.itemCount=0;mxPopupMenu.prototype.autoExpand=!1;mxPopupMenu.prototype.smartSeparators=!1;mxPopupMenu.prototype.labels=!0;
+this.t0y+d/a.view.scale)}};this.destroy=function(){a.removeMouseListener(this.mouseListener);mxEvent.removeListener(document,"mouseup",this.mouseUpListener)}}mxPanningManager.prototype.damper=1/6;mxPanningManager.prototype.delay=10;mxPanningManager.prototype.handleMouseOut=!0;mxPanningManager.prototype.border=0;function mxPopupMenu(a){this.factoryMethod=a;null!=a&&this.init()}mxPopupMenu.prototype=new mxEventSource;mxPopupMenu.prototype.constructor=mxPopupMenu;mxPopupMenu.prototype.submenuImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDAwLTI4MHYtNDAwbDIwMCAyMDAtMjAwIDIwMFoiLz48L3N2Zz4=";
+mxPopupMenu.prototype.zIndex=10006;mxPopupMenu.prototype.factoryMethod=null;mxPopupMenu.prototype.useLeftButtonForPopup=!1;mxPopupMenu.prototype.enabled=!0;mxPopupMenu.prototype.itemCount=0;mxPopupMenu.prototype.autoExpand=!1;mxPopupMenu.prototype.smartSeparators=!1;mxPopupMenu.prototype.labels=!0;
mxPopupMenu.prototype.init=function(){this.table=document.createElement("table");this.table.className="mxPopupMenu";this.tbody=document.createElement("tbody");this.table.appendChild(this.tbody);this.div=document.createElement("div");this.div.className="mxPopupMenu";this.div.style.display="inline";this.div.style.zIndex=this.zIndex;this.div.appendChild(this.table);mxEvent.disableContextMenu(this.div)};mxPopupMenu.prototype.isEnabled=function(){return this.enabled};
mxPopupMenu.prototype.setEnabled=function(a){this.enabled=a};mxPopupMenu.prototype.isPopupTrigger=function(a){return a.isPopupTrigger()||this.useLeftButtonForPopup&&mxEvent.isLeftMouseButton(a.getEvent())};
mxPopupMenu.prototype.addItem=function(a,b,c,d,e,f,g,k){d=d||this;this.itemCount++;d.willAddSeparator&&(d.containsItems&&this.addSeparator(d,!0),d.willAddSeparator=!1);d.containsItems=!0;var l=document.createElement("tr");l.className="mxPopupMenuItem";var m=document.createElement("td");m.className="mxPopupMenuIcon";null!=b?(e=document.createElement("img"),e.src=b,m.appendChild(e)):null!=e&&(b=document.createElement("div"),b.className=e,m.appendChild(b));l.appendChild(m);this.labels&&(m=document.createElement("td"),
m.className="mxPopupMenuItem"+(null==f||f?"":" mxDisabled"),mxUtils.write(m,a),m.align="left",l.appendChild(m),a=document.createElement("td"),a.className="mxPopupMenuItem"+(null==f||f?"":" mxDisabled"),a.style.paddingRight="6px",a.style.textAlign="right",l.appendChild(a),null==d.div&&this.createSubmenu(d));d.tbody.appendChild(l);if(0!=g&&0!=f){var n=null;mxEvent.addGestureListeners(l,mxUtils.bind(this,function(p){this.eventReceiver=l;d.activeRow!=l&&d.activeRow!=d&&(null!=d.activeRow&&null!=d.activeRow.div.parentNode&&
this.hideSubmenu(d),null!=l.div&&(this.showSubmenu(d,l),d.activeRow=l));null!=document.selection&&8==document.documentMode&&(n=document.selection.createRange());mxEvent.consume(p)}),mxUtils.bind(this,function(p){d.activeRow!=l&&d.activeRow!=d&&(null!=d.activeRow&&null!=d.activeRow.div.parentNode&&this.hideSubmenu(d),this.autoExpand&&null!=l.div&&(this.showSubmenu(d,l),d.activeRow=l));k||(l.className="mxPopupMenuItemHover")}),mxUtils.bind(this,function(p){if(this.eventReceiver==l){d.activeRow!=l&&
-this.hideMenu();if(null!=n){try{n.select()}catch(q){}n=null}null!=c&&c(p)}this.eventReceiver=null;mxEvent.consume(p)}));k||mxEvent.addListener(l,"mouseout",mxUtils.bind(this,function(p){l.className="mxPopupMenuItem"}))}return l};mxPopupMenu.prototype.addCheckmark=function(a,b){a=a.firstChild.nextSibling;a.style.backgroundImage="url('"+b+"')";a.style.backgroundRepeat="no-repeat";a.style.backgroundPosition="2px 50%"};
-mxPopupMenu.prototype.createSubmenu=function(a){a.table=document.createElement("table");a.table.className="mxPopupMenu";a.tbody=document.createElement("tbody");a.table.appendChild(a.tbody);a.div=document.createElement("div");a.div.className="mxPopupMenu";a.div.style.position="absolute";a.div.style.display="inline";a.div.style.zIndex=this.zIndex;a.div.appendChild(a.table);var b=document.createElement("img");b.setAttribute("src",this.submenuImage);td=a.firstChild.nextSibling.nextSibling;td.appendChild(b)};
+this.hideMenu();if(null!=n){try{n.select()}catch(q){}n=null}null!=c&&c(p)}this.eventReceiver=null;mxEvent.consume(p)}));k||mxEvent.addListener(l,"mouseout",mxUtils.bind(this,function(p){l.className="mxPopupMenuItem"}))}return l};mxPopupMenu.prototype.addCheckmark=function(a,b){a=this.addImage(a.firstChild.nextSibling,b);a.style.marginTop="-2px";a.style.left="6px"};
+mxPopupMenu.prototype.addImage=function(a,b){var c=document.createElement("div");c.style.position="absolute";c.style.display="inline-block";c.style.backgroundRepeat="no-repeat";c.style.backgroundPosition="center center";c.style.backgroundImage="url("+b+")";c.style.backgroundSize="22px";c.style.height="22px";c.style.width="22px";a.appendChild(c);return c};
+mxPopupMenu.prototype.createSubmenu=function(a){a.table=document.createElement("table");a.table.className="mxPopupMenu";a.tbody=document.createElement("tbody");a.table.appendChild(a.tbody);a.div=document.createElement("div");a.div.className="mxPopupMenu";a.div.style.position="absolute";a.div.style.display="inline";a.div.style.zIndex=this.zIndex;a.div.appendChild(a.table);a=this.addImage(a.firstChild.nextSibling.nextSibling,this.submenuImage);a.style.marginLeft="-18px";a.style.marginTop="-11px"};
mxPopupMenu.prototype.showSubmenu=function(a,b){if(null!=b.div){b.div.style.left=a.div.offsetLeft+b.offsetLeft+b.offsetWidth-1+"px";b.div.style.top=a.div.offsetTop+b.offsetTop+"px";document.body.appendChild(b.div);var c=parseInt(b.div.offsetLeft),d=parseInt(b.div.offsetWidth),e=mxUtils.getDocumentScrollOrigin(document),f=document.documentElement;c+d>e.x+(document.body.clientWidth||f.clientWidth)&&(b.div.style.left=Math.max(0,a.div.offsetLeft-d+16)+"px");b.div.style.overflowY="auto";b.div.style.overflowX=
"hidden";b.div.style.maxHeight=Math.max(document.body.clientHeight,document.documentElement.clientHeight)-10+"px";mxUtils.fit(b.div)}};
mxPopupMenu.prototype.addSeparator=function(a,b){a=a||this;if(this.smartSeparators&&!b)a.willAddSeparator=!0;else if(null!=a.tbody){a.willAddSeparator=!1;b=document.createElement("tr");var c=document.createElement("td");c.className="mxPopupMenuIcon";c.style.padding="0 0 0 0px";b.appendChild(c);c=document.createElement("td");c.style.padding="0 0 0 0px";c.setAttribute("colSpan","2");var d=document.createElement("hr");d.setAttribute("size","1");c.appendChild(d);b.appendChild(c);a.tbody.appendChild(b)}};
@@ -1941,28 +1942,38 @@ Editor.colorDropperImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3
Editor.magnifyImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik03ODQtMTIwIDUzMi0zNzJxLTMwIDI0LTY5IDM4dC04MyAxNHEtMTA5IDAtMTg0LjUtNzUuNVQxMjAtNTgwcTAtMTA5IDc1LjUtMTg0LjVUMzgwLTg0MHExMDkgMCAxODQuNSA3NS41VDY0MC01ODBxMCA0NC0xNCA4M3QtMzggNjlsMjUyIDI1Mi01NiA1NlpNMzgwLTQwMHE3NSAwIDEyNy41LTUyLjVUNTYwLTU4MHEwLTc1LTUyLjUtMTI3LjVUMzgwLTc2MHEtNzUgMC0xMjcuNSA1Mi41VDIwMC01ODBxMCA3NSA1Mi41IDEyNy41VDM4MC00MDBaIi8+PC9zdmc+";
Editor.sendImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik0xMjAtMTYwdi02NDBsNzYwIDMyMC03NjAgMzIwWm04MC0xMjAgNDc0LTIwMC00NzQtMjAwdjE0MGwyNDAgNjAtMjQwIDYwdjE0MFptMCAwdi00MDAgNDAwWiIvPjwvc3ZnPg==";Editor.sparklesImage="data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyB3aWR0aD0iODAwcHgiIGhlaWdodD0iODAwcHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0iI2ZjZmY0NyIgZGF0YS1kYXJrcmVhZGVyLWlubGluZS1maWxsPSIiIHN0eWxlPSItLWRhcmtyZWFkZXItaW5saW5lLWZpbGw6ICNkNmQ4NTA7IC0tZGFya3JlYWRlci1pbmxpbmUtc3Ryb2tlOiAjZDZkODUwOyIgc3Ryb2tlPSIjZmNmZjQ3IiBkYXRhLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZT0iIj4KDTxnIGlkPSJTVkdSZXBvX2JnQ2FycmllciIgc3Ryb2tlLXdpZHRoPSIwIi8+Cg08ZyBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KDTxnIGlkPSJTVkdSZXBvX2ljb25DYXJyaWVyIj4KDTxwYXRoIGQ9Ik0yNTkuOTIsMjYyLjkxLDIxNi40LDE0OS43N2E5LDksMCwwLDAtMTYuOCwwTDE1Ni4wOCwyNjIuOTFhOSw5LDAsMCwxLTUuMTcsNS4xN0wzNy43NywzMTEuNmE5LDksMCwwLDAsMCwxNi44bDExMy4xNCw0My41MmE5LDksMCwwLDEsNS4xNyw1LjE3TDE5OS42LDQ5MC4yM2E5LDksMCwwLDAsMTYuOCwwbDQzLjUyLTExMy4xNGE5LDksMCwwLDEsNS4xNy01LjE3TDM3OC4yMywzMjguNGE5LDksMCwwLDAsMC0xNi44TDI2NS4wOSwyNjguMDhBOSw5LDAsMCwxLDI1OS45MiwyNjIuOTFaIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxOS45NjgiIGRhdGEtZGFya3JlYWRlci1pbmxpbmUtc3Ryb2tlPSIiIHN0eWxlPSItLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZTogIzE4MWExYjsiLz4KDTxwb2x5Z29uIHBvaW50cz0iMTA4IDY4IDg4IDE2IDY4IDY4IDE2IDg4IDY4IDEwOCA4OCAxNjAgMTA4IDEwOCAxNjAgODggMTA4IDY4IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxOS45NjgiIGRhdGEtZGFya3JlYWRlci1pbmxpbmUtc3Ryb2tlPSIiIHN0eWxlPSItLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZTogIzE4MWExYjsiLz4KDTxwb2x5Z29uIHBvaW50cz0iNDI2LjY3IDExNy4zMyA0MDAgNDggMzczLjMzIDExNy4zMyAzMDQgMTQ0IDM3My4zMyAxNzAuNjcgNDAwIDI0MCA0MjYuNjcgMTcwLjY3IDQ5NiAxNDQgNDI2LjY3IDExNy4zMyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMTkuOTY4IiBkYXRhLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZT0iIiBzdHlsZT0iLS1kYXJrcmVhZGVyLWlubGluZS1zdHJva2U6ICMxODFhMWI7Ii8+Cg08L2c+Cg08L3N2Zz4=";
Editor.arrowRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNNDAwLTI4MHYtNDAwbDIwMCAyMDAtMjAwIDIwMFoiLz48L3N2Zz4=";Editor.arrowDownImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNNDgwLTM2MCAyODAtNTYwaDQwMEw0ODAtMzYwWiIvPjwvc3ZnPg==";
-Editor.refreshImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDgwLTE2MHEtMTM0IDAtMjI3LTkzdC05My0yMjdxMC0xMzQgOTMtMjI3dDIyNy05M3E2OSAwIDEzMiAyOC41VDcyMC02OTB2LTExMGg4MHYyODBINTIwdi04MGgxNjhxLTMyLTU2LTg3LjUtODhUNDgwLTcyMHEtMTAwIDAtMTcwIDcwdC03MCAxNzBxMCAxMDAgNzAgMTcwdDE3MCA3MHE3NyAwIDEzOS00NHQ4Ny0xMTZoODRxLTI4IDEwNi0xMTQgMTczdC0xOTYgNjdaIi8+PC9zdmc+";
-Editor.checkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzgyLTI0MCAxNTQtNDY4bDU3LTU3IDE3MSAxNzEgMzY3LTM2NyA1NyA1Ny00MjQgNDI0WiIvPjwvc3ZnPg==";Editor.boldImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjcyLTIwMHYtNTYwaDIyMXE2NSAwIDEyMCA0MHQ1NSAxMTFxMCA1MS0yMyA3OC41VDYwMi00OTFxMjUgMTEgNTUuNSA0MXQzMC41IDkwcTAgODktNjUgMTI0LjVUNTAxLTIwMEgyNzJabTEyMS0xMTJoMTA0cTQ4IDAgNTguNS0yNC41VDU2Ni0zNzJxMC0xMS0xMC41LTM1LjVUNDk0LTQzMkgzOTN2MTIwWm0wLTIyOGg5M3EzMyAwIDQ4LTE3dDE1LTM4cTAtMjQtMTctMzl0LTQ0LTE1aC05NXYxMDlaIi8+PC9zdmc+";
+Editor.arrowUpImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJtMjgwLTQwMCAyMDAtMjAwIDIwMCAyMDBIMjgwWiIvPjwvc3ZnPg==";Editor.refreshImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDgwLTE2MHEtMTM0IDAtMjI3LTkzdC05My0yMjdxMC0xMzQgOTMtMjI3dDIyNy05M3E2OSAwIDEzMiAyOC41VDcyMC02OTB2LTExMGg4MHYyODBINTIwdi04MGgxNjhxLTMyLTU2LTg3LjUtODhUNDgwLTcyMHEtMTAwIDAtMTcwIDcwdC03MCAxNzBxMCAxMDAgNzAgMTcwdDE3MCA3MHE3NyAwIDEzOS00NHQ4Ny0xMTZoODRxLTI4IDEwNi0xMTQgMTczdC0xOTYgNjdaIi8+PC9zdmc+";
+Editor.checkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzgyLTI0MCAxNTQtNDY4bDU3LTU3IDE3MSAxNzEgMzY3LTM2NyA1NyA1Ny00MjQgNDI0WiIvPjwvc3ZnPg==";Editor.dockRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNTYwcTAtMzMgMjMuNS01Ni41VDIwMC04NDBoNTYwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NTYwcTAgMzMtMjMuNSA1Ni41VDc2MC0xMjBIMjAwWm0xMjAtODB2LTU2MEgyMDB2NTYwaDEyMFptODAgMGgzNjB2LTU2MEg0MDB2NTYwWm0tODAgMEgyMDBoMTIwWiIvPjwvc3ZnPg==";
+Editor.toFrontImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzYwLTI4MHEtMzMgMC01Ni41LTIzLjVUMjgwLTM2MHYtNDAwcTAtMzMgMjMuNS01Ni41VDM2MC04NDBoNDAwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NDAwcTAgMzMtMjMuNSA1Ni41VDc2MC0yODBIMzYwWm0wLTgwaDQwMHYtNDAwSDM2MHY0MDBaTTIwMC0yMDB2ODBxLTMzIDAtNTYuNS0yMy41VDEyMC0yMDBoODBabS04MC04MHYtODBoODB2ODBoLTgwWm0wLTE2MHYtODBoODB2ODBoLTgwWm0wLTE2MHYtODBoODB2ODBoLTgwWm0xNjAgNDgwdi04MGg4MHY4MGgtODBabTE2MCAwdi04MGg4MHY4MGgtODBabTE2MCAwdi04MGg4MHY4MGgtODBaIi8+PC9zdmc+";
+Editor.toBackImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNDgwaDgwdjQ4MGg0ODB2ODBIMjAwWm0xNjAtMjQwdjgwcS0zMyAwLTU2LjUtMjMuNVQyODAtMzYwaDgwWm0tODAtODB2LTgwaDgwdjgwaC04MFptMC0xNjB2LTgwaDgwdjgwaC04MFptODAtMTYwaC04MHEwLTMzIDIzLjUtNTYuNVQzNjAtODQwdjgwWm04MCA0ODB2LTgwaDgwdjgwaC04MFptMC00ODB2LTgwaDgwdjgwaC04MFptMTYwIDB2LTgwaDgwdjgwaC04MFptMCA0ODB2LTgwaDgwdjgwaC04MFptMTYwLTQ4MHYtODBxMzMgMCA1Ni41IDIzLjVUODQwLTc2MGgtODBabTAgNDAwaDgwcTAgMzMtMjMuNSA1Ni41VDc2MC0yODB2LTgwWm0wLTgwdi04MGg4MHY4MGgtODBabTAtMTYwdi04MGg4MHY4MGgtODBaIi8+PC9zdmc+";
+Editor.fillColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJtMjQ3LTkwNCA1Ny01NiAzNDMgMzQzcTIzIDIzIDIzIDU3dC0yMyA1N0w0NTctMzEzcS0yMyAyMy01NyAyM3QtNTctMjNMMTUzLTUwM3EtMjMtMjMtMjMtNTd0MjMtNTdsMTkwLTE5MS05Ni05NlptMTUzIDE1M0wyMDktNTYwaDM4Mkw0MDAtNzUxWm0zNjAgNDcxcS0zMyAwLTU2LjUtMjMuNVQ2ODAtMzYwcTAtMjEgMTIuNS00NXQyNy41LTQ1cTktMTIgMTktMjV0MjEtMjVxMTEgMTIgMjEgMjV0MTkgMjVxMTUgMjEgMjcuNSA0NXQxMi41IDQ1cTAgMzMtMjMuNSA1Ni41VDc2MC0yODBaTTgwIDB2LTE2MGg4MDBWMEg4MFoiLz48L3N2Zz4=";
+Editor.strokeColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAgMHYtMTYwaDgwMFYwSDgwWm0xNjAtMzIwaDU2bDMxMi0zMTEtMjktMjktMjgtMjgtMzExIDMxMnY1NlptLTgwIDgwdi0xNzBsNDQ4LTQ0N3ExMS0xMSAyNS41LTE3dDMwLjUtNnExNiAwIDMxIDZ0MjcgMThsNTUgNTZxMTIgMTEgMTcuNSAyNnQ1LjUgMzFxMCAxNS01LjUgMjkuNVQ3NzctNjg3TDMzMC0yNDBIMTYwWm01NjAtNTA0LTU2LTU2IDU2IDU2Wk02MDgtNjMxbC0yOS0yOS0yOC0yOCA1NyA1N1oiLz48L3N2Zz4=";
+Editor.fontColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAgMHYtMTYwaDgwMFYwSDgwWm0xNDAtMjgwIDIxMC01NjBoMTAwbDIxMCA1NjBoLTk2bC01MC0xNDRIMzY4bC01MiAxNDRoLTk2Wm0xNzYtMjI0aDE2OGwtODItMjMyaC00bC04MiAyMzJaIi8+PC9zdmc+";Editor.backgroundColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAgMHYtMTYwaDgwMFYwSDgwWm01MDQtNDgwTDQ4MC01ODQgMzIwLTQyNGwxMDMgMTA0IDE2MS0xNjBabS00Ny0xNjAgMTAzIDEwMyAxNjAtMTU5LTEwNC0xMDQtMTU5IDE2MFptLTg0LTI5IDIxNiAyMTYtMTg5IDE5MHEtMjQgMjQtNTYuNSAyNFQzNjctMjYzbC0yNyAyM0gxNDBsMTI2LTEyNXEtMjQtMjQtMjUtNTcuNXQyMy01Ny41bDE4OS0xODlabTAgMCAxODctMTg3cTI0LTI0IDU2LjUtMjR0NTYuNSAyNGwxMDQgMTAzcTI0IDI0IDI0IDU2LjVUODU3LTY0MEw2NjktNDUzIDQ1My02NjlaIi8+PC9zdmc+";
+Editor.shadowImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTgwcS0zMyAwLTU2LjUtMjMuNVQ4MC0xNjB2LTQ4MHEwLTMzIDIzLjUtNTYuNVQxNjAtNzIwaDgwdi04MHEwLTMzIDIzLjUtNTYuNVQzMjAtODgwaDQ4MHEzMyAwIDU2LjUgMjMuNVQ4ODAtODAwdjQ4MHEwIDMzLTIzLjUgNTYuNVQ4MDAtMjQwaC04MHY4MHEwIDMzLTIzLjUgNTYuNVQ2NDAtODBIMTYwWm0xNjAtMjQwaDQ4MHYtNDgwSDMyMHY0ODBaIi8+PC9zdmc+";
+Editor.boldImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjcyLTIwMHYtNTYwaDIyMXE2NSAwIDEyMCA0MHQ1NSAxMTFxMCA1MS0yMyA3OC41VDYwMi00OTFxMjUgMTEgNTUuNSA0MXQzMC41IDkwcTAgODktNjUgMTI0LjVUNTAxLTIwMEgyNzJabTEyMS0xMTJoMTA0cTQ4IDAgNTguNS0yNC41VDU2Ni0zNzJxMC0xMS0xMC41LTM1LjVUNDk0LTQzMkgzOTN2MTIwWm0wLTIyOGg5M3EzMyAwIDQ4LTE3dDE1LTM4cTAtMjQtMTctMzl0LTQ0LTE1aC05NXYxMDlaIi8+PC9zdmc+";
Editor.italicImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTIwMHYtMTAwaDE2MGwxMjAtMzYwSDMyMHYtMTAwaDQwMHYxMDBINTgwTDQ2MC0zMDBoMTQwdjEwMEgyMDBaIi8+PC9zdmc+";Editor.underlineImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHYtODBoNTYwdjgwSDIwMFptMjgwLTE2MHEtMTAxIDAtMTU3LTYzdC01Ni0xNjd2LTMzMGgxMDN2MzM2cTAgNTYgMjggOTF0ODIgMzVxNTQgMCA4Mi0zNXQyOC05MXYtMzM2aDEwM3YzMzBxMCAxMDQtNTYgMTY3dC0xNTcgNjNaIi8+PC9zdmc+";
Editor.strikethroughImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDg2LTE2MHEtNzYgMC0xMzUtNDV0LTg1LTEyM2w4OC0zOHExNCA0OCA0OC41IDc5dDg1LjUgMzFxNDIgMCA3Ni0yMHQzNC02NHEwLTE4LTctMzN0LTE5LTI3aDExMnE1IDE0IDcuNSAyOC41VDY5NC0zNDBxMCA4Ni02MS41IDEzM1Q0ODYtMTYwWk04MC00ODB2LTgwaDgwMHY4MEg4MFptNDAyLTMyNnE2NiAwIDExNS41IDMyLjVUNjc0LTY3NGwtODggMzlxLTktMjktMzMuNS01MlQ0ODQtNzEwcS00MSAwLTY4IDE4LjVUMzg2LTY0MGgtOTZxMi02OSA1NC41LTExNy41VDQ4Mi04MDZaIi8+PC9zdmc+";
-Editor.verticalTextImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjQwLTI0MHYtMjAwcS02NiAwLTExMy00N1Q4MC02MDBxMC02NiA0Ny0xMTN0MTEzLTQ3aDMyMHY4MGgtODB2NDQwaC04MHYtNDQwaC04MHY0NDBoLTgwWm00ODAgODBMNTYwLTMyMGw1Ni01NiA2NCA2M3YtNDQ3aDgwdjQ0N2w2NC02NCA1NiA1Ny0xNjAgMTYwWk0yNDAtNTIwdi0xNjBxLTMzIDAtNTYuNSAyMy41VDE2MC02MDBxMCAzMyAyMy41IDU2LjVUMjQwLTUyMFptMC04MFoiLz48L3N2Zz4=";
-Editor.alignLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDQ4MHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNDgwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";Editor.alignCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";
-Editor.alignRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";Editor.alignJustifyImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";
-Editor.alignTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTc2MHYtODBoNjQwdjgwSDE2MFptMjgwIDY0MHYtNDA4TDMzNi00MjRsLTU2LTU2IDIwMC0yMDAgMjAwIDIwMC01NiA1Ni0xMDQtMTA0djQwOGgtODBaIi8+PC9zdmc+";Editor.alignMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0xNjhsLTY0IDY0LTU2LTU2IDE2MC0xNjAgMTYwIDE2MC01NiA1Ni02NC02NHYxNjhoLTgwWk0xNjAtNDQwdi04MGg2NDB2ODBIMTYwWm0zMjAtMTIwTDMyMC03MjBsNTYtNTYgNjQgNjR2LTE2OGg4MHYxNjhsNjQtNjQgNTYgNTYtMTYwIDE2MFoiLz48L3N2Zz4=";
-Editor.alignBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTEyMHYtODBoNjQwdjgwSDE2MFptMzIwLTE2MEwyODAtNDgwbDU2LTU2IDEwNCAxMDR2LTQwOGg4MHY0MDhsMTA0LTEwNCA1NiA1Ni0yMDAgMjAwWiIvPjwvc3ZnPg==";Editor.alignHorizontalLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwMGg4MHY4MDBIODBabTE2MC0yMDB2LTEyMGg0MDB2MTIwSDI0MFptMC0yODB2LTEyMGg2NDB2MTIwSDI0MFoiLz48L3N2Zz4=";
-Editor.alignHorizontalCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0yMDBIMjQwdi0xMjBoMjAwdi0xNjBIMTIwdi0xMjBoMzIwdi0yMDBoODB2MjAwaDMyMHYxMjBINTIwdjE2MGgyMDB2MTIwSDUyMHYyMDBoLTgwWiIvPjwvc3ZnPg==";Editor.alignHorizontalRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAwLTgwdi04MDBoODB2ODAwaC04MFpNMzIwLTI4MHYtMTIwaDQwMHYxMjBIMzIwWk04MC01NjB2LTEyMGg2NDB2MTIwSDgwWiIvPjwvc3ZnPg==";
-Editor.alignVerticalTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTgwdi02NDBoMTIwdjY0MEgyODBabTI4MC0yNDB2LTQwMGgxMjB2NDAwSDU2MFpNODAtODAwdi04MGg4MDB2ODBIODBaIi8+PC9zdmc+";Editor.alignVerticalMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTEyMHYtMzIwSDgwdi04MGgyMDB2LTMyMGgxMjB2MzIwaDE2MHYtMjAwaDEyMHYyMDBoMjAwdjgwSDY4MHYyMDBINTYwdi0yMDBINDAwdjMyMEgyODBaIi8+PC9zdmc+";
-Editor.alignVerticalBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwaDgwMHY4MEg4MFptMjAwLTE2MHYtNjQwaDEyMHY2NDBIMjgwWm0yODAgMHYtNDAwaDEyMHY0MDBINTYwWiIvPjwvc3ZnPg==";Editor.subscriptImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTE2MHYtODBxMC0xNyAxMS41LTI4LjVUODAwLTI4MGg4MHYtNDBINzYwdi00MGgxMjBxMTcgMCAyOC41IDExLjVUOTIwLTMyMHY0MHEwIDE3LTExLjUgMjguNVQ4ODAtMjQwaC04MHY0MGgxMjB2NDBINzYwWm0tNTI1LTgwIDE4NS0yOTEtMTcyLTI2OWgxMDZsMTI0IDIwMGg0bDEyMy0yMDBoMTA3TDUzOS01MzFsMTg2IDI5MUg2MThMNDgyLTQ1N2gtNEwzNDItMjQwSDIzNVoiLz48L3N2Zz4=";
+Editor.verticalTextImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTE2MGgtODB2LTUyOGwtNDIgNDItNTYtNTYgMTM4LTEzOCAxNDAgMTM4LTU4IDU2LTQyLTQydjUyOFpNNTYwLTI3NiAxMjAtNDQwdi04MGw0NDAtMTY0djc2bC0xMTIgMzh2MTc4bDExMiA0MHY3NlpNMzg0LTQxNHYtMTMybC0xODIgNjR2NGwxODIgNjRaIi8+PC9zdmc+";Editor.alignLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDQ4MHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNDgwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";
+Editor.alignCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";Editor.alignRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";
+Editor.alignJustifyImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";Editor.alignTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTc2MHYtODBoNjQwdjgwSDE2MFptMjgwIDY0MHYtNDA4TDMzNi00MjRsLTU2LTU2IDIwMC0yMDAgMjAwIDIwMC01NiA1Ni0xMDQtMTA0djQwOGgtODBaIi8+PC9zdmc+";
+Editor.alignMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0xNjhsLTY0IDY0LTU2LTU2IDE2MC0xNjAgMTYwIDE2MC01NiA1Ni02NC02NHYxNjhoLTgwWk0xNjAtNDQwdi04MGg2NDB2ODBIMTYwWm0zMjAtMTIwTDMyMC03MjBsNTYtNTYgNjQgNjR2LTE2OGg4MHYxNjhsNjQtNjQgNTYgNTYtMTYwIDE2MFoiLz48L3N2Zz4=";Editor.alignBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTEyMHYtODBoNjQwdjgwSDE2MFptMzIwLTE2MEwyODAtNDgwbDU2LTU2IDEwNCAxMDR2LTQwOGg4MHY0MDhsMTA0LTEwNCA1NiA1Ni0yMDAgMjAwWiIvPjwvc3ZnPg==";
+Editor.alignHorizontalLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwMGg4MHY4MDBIODBabTE2MC0yMDB2LTEyMGg0MDB2MTIwSDI0MFptMC0yODB2LTEyMGg2NDB2MTIwSDI0MFoiLz48L3N2Zz4=";Editor.alignHorizontalCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0yMDBIMjQwdi0xMjBoMjAwdi0xNjBIMTIwdi0xMjBoMzIwdi0yMDBoODB2MjAwaDMyMHYxMjBINTIwdjE2MGgyMDB2MTIwSDUyMHYyMDBoLTgwWiIvPjwvc3ZnPg==";
+Editor.alignHorizontalRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAwLTgwdi04MDBoODB2ODAwaC04MFpNMzIwLTI4MHYtMTIwaDQwMHYxMjBIMzIwWk04MC01NjB2LTEyMGg2NDB2MTIwSDgwWiIvPjwvc3ZnPg==";Editor.alignVerticalTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTgwdi02NDBoMTIwdjY0MEgyODBabTI4MC0yNDB2LTQwMGgxMjB2NDAwSDU2MFpNODAtODAwdi04MGg4MDB2ODBIODBaIi8+PC9zdmc+";
+Editor.alignVerticalMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTEyMHYtMzIwSDgwdi04MGgyMDB2LTMyMGgxMjB2MzIwaDE2MHYtMjAwaDEyMHYyMDBoMjAwdjgwSDY4MHYyMDBINTYwdi0yMDBINDAwdjMyMEgyODBaIi8+PC9zdmc+";Editor.alignVerticalBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwaDgwMHY4MEg4MFptMjAwLTE2MHYtNjQwaDEyMHY2NDBIMjgwWm0yODAgMHYtNDAwaDEyMHY0MDBINTYwWiIvPjwvc3ZnPg==";
+Editor.subscriptImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTE2MHYtODBxMC0xNyAxMS41LTI4LjVUODAwLTI4MGg4MHYtNDBINzYwdi00MGgxMjBxMTcgMCAyOC41IDExLjVUOTIwLTMyMHY0MHEwIDE3LTExLjUgMjguNVQ4ODAtMjQwaC04MHY0MGgxMjB2NDBINzYwWm0tNTI1LTgwIDE4NS0yOTEtMTcyLTI2OWgxMDZsMTI0IDIwMGg0bDEyMy0yMDBoMTA3TDUzOS01MzFsMTg2IDI5MUg2MThMNDgyLTQ1N2gtNEwzNDItMjQwSDIzNVoiLz48L3N2Zz4=";
Editor.superscriptImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTYwMHYtODBxMC0xNyAxMS41LTI4LjVUODAwLTcyMGg4MHYtNDBINzYwdi00MGgxMjBxMTcgMCAyOC41IDExLjVUOTIwLTc2MHY0MHEwIDE3LTExLjUgMjguNVQ4ODAtNjgwaC04MHY0MGgxMjB2NDBINzYwWk0yMzUtMTYwbDE4NS0yOTEtMTcyLTI2OWgxMDZsMTI0IDIwMGg0bDEyMy0yMDBoMTA3TDUzOS00NTFsMTg2IDI5MUg2MThMNDgyLTM3N2gtNEwzNDItMTYwSDIzNVoiLz48L3N2Zz4=";
Editor.orderedListImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTgwdi02MGgxMDB2LTMwaC02MHYtNjBoNjB2LTMwSDEyMHYtNjBoMTIwcTE3IDAgMjguNSAxMS41VDI4MC0yODB2NDBxMCAxNy0xMS41IDI4LjVUMjQwLTIwMHExNyAwIDI4LjUgMTEuNVQyODAtMTYwdjQwcTAgMTctMTEuNSAyOC41VDI0MC04MEgxMjBabTAtMjgwdi0xMTBxMC0xNyAxMS41LTI4LjVUMTYwLTUxMGg2MHYtMzBIMTIwdi02MGgxMjBxMTcgMCAyOC41IDExLjVUMjgwLTU2MHY3MHEwIDE3LTExLjUgMjguNVQyNDAtNDUwaC02MHYzMGgxMDB2NjBIMTIwWm02MC0yODB2LTE4MGgtNjB2LTYwaDEyMHYyNDBoLTYwWm0xODAgNDQwdi04MGg0ODB2ODBIMzYwWm0wLTI0MHYtODBoNDgwdjgwSDM2MFptMC0yNDB2LTgwaDQ4MHY4MEgzNjBaIi8+PC9zdmc+";
Editor.unorderedListImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzYwLTIwMHYtODBoNDgwdjgwSDM2MFptMC0yNDB2LTgwaDQ4MHY4MEgzNjBabTAtMjQwdi04MGg0ODB2ODBIMzYwWk0yMDAtMTYwcS0zMyAwLTU2LjUtMjMuNVQxMjAtMjQwcTAtMzMgMjMuNS01Ni41VDIwMC0zMjBxMzMgMCA1Ni41IDIzLjVUMjgwLTI0MHEwIDMzLTIzLjUgNTYuNVQyMDAtMTYwWm0wLTI0MHEtMzMgMC01Ni41LTIzLjVUMTIwLTQ4MHEwLTMzIDIzLjUtNTYuNVQyMDAtNTYwcTMzIDAgNTYuNSAyMy41VDI4MC00ODBxMCAzMy0yMy41IDU2LjVUMjAwLTQwMFptMC0yNDBxLTMzIDAtNTYuNS0yMy41VDEyMC03MjBxMC0zMyAyMy41LTU2LjVUMjAwLTgwMHEzMyAwIDU2LjUgMjMuNVQyODAtNzIwcTAgMzMtMjMuNSA1Ni41VDIwMC02NDBaIi8+PC9zdmc+";
Editor.indentImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMzIwLTE2MHYtODBoNDAwdjgwSDQ0MFptMC0xNjB2LTgwaDQwMHY4MEg0NDBabTAtMTYwdi04MGg0MDB2ODBINDQwWk0xMjAtNzYwdi04MGg3MjB2ODBIMTIwWm0wIDQ0MHYtMzIwbDE2MCAxNjAtMTYwIDE2MFoiLz48L3N2Zz4=";Editor.outdentImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMzIwLTE2MHYtODBoNDAwdjgwSDQ0MFptMC0xNjB2LTgwaDQwMHY4MEg0NDBabTAtMTYwdi04MGg0MDB2ODBINDQwWk0xMjAtNzYwdi04MGg3MjB2ODBIMTIwWm0xNjAgNDQwTDEyMC00ODBsMTYwLTE2MHYzMjBaIi8+PC9zdmc+";
-Editor.removeFormatImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJtNTI4LTU0Ni05My05My0xMjEtMTIxaDQ4NnYxMjBINTY4bC00MCA5NFpNNzkyLTU2IDQ2MC0zODhsLTgwIDE4OEgyNDlsMTE5LTI4MEw1Ni03OTJsNTYtNTYgNzM2IDczNi01NiA1NloiLz48L3N2Zz4=";Editor.codeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzIwLTI0MCA4MC00ODBsMjQwLTI0MCA1NyA1Ny0xODQgMTg0IDE4MyAxODMtNTYgNTZabTMyMCAwLTU3LTU3IDE4NC0xODQtMTgzLTE4MyA1Ni01NiAyNDAgMjQwLTI0MCAyNDBaIi8+PC9zdmc+";
-Editor.linkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTI4MEgyODBxLTgzIDAtMTQxLjUtNTguNVQ4MC00ODBxMC04MyA1OC41LTE0MS41VDI4MC02ODBoMTYwdjgwSDI4MHEtNTAgMC04NSAzNXQtMzUgODVxMCA1MCAzNSA4NXQ4NSAzNWgxNjB2ODBaTTMyMC00NDB2LTgwaDMyMHY4MEgzMjBabTIwMCAxNjB2LTgwaDE2MHE1MCAwIDg1LTM1dDM1LTg1cTAtNTAtMzUtODV0LTg1LTM1SDUyMHYtODBoMTYwcTgzIDAgMTQxLjUgNTguNVQ4ODAtNDgwcTAgODMtNTguNSAxNDEuNVQ2ODAtMjgwSDUyMFoiLz48L3N2Zz4=";
+Editor.removeFormatImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJtNTI4LTU0Ni05My05My0xMjEtMTIxaDQ4NnYxMjBINTY4bC00MCA5NFpNNzkyLTU2IDQ2MC0zODhsLTgwIDE4OEgyNDlsMTE5LTI4MEw1Ni03OTJsNTYtNTYgNzM2IDczNi01NiA1NloiLz48L3N2Zz4=";Editor.textFormatImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTIwMHYtODBoNTYwdjgwSDIwMFptNzYtMTYwIDE2NC00NDBoODBsMTY0IDQ0MGgtNzZsLTM4LTExMkgzOTJsLTQwIDExMmgtNzZabTEzOC0xNzZoMTMybC02NC0xODJoLTRsLTY0IDE4MloiLz48L3N2Zz4=";
+Editor.codeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzIwLTI0MCA4MC00ODBsMjQwLTI0MCA1NyA1Ny0xODQgMTg0IDE4MyAxODMtNTYgNTZabTMyMCAwLTU3LTU3IDE4NC0xODQtMTgzLTE4MyA1Ni01NiAyNDAgMjQwLTI0MCAyNDBaIi8+PC9zdmc+";Editor.linkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTI4MEgyODBxLTgzIDAtMTQxLjUtNTguNVQ4MC00ODBxMC04MyA1OC41LTE0MS41VDI4MC02ODBoMTYwdjgwSDI4MHEtNTAgMC04NSAzNXQtMzUgODVxMCA1MCAzNSA4NXQ4NSAzNWgxNjB2ODBaTTMyMC00NDB2LTgwaDMyMHY4MEgzMjBabTIwMCAxNjB2LTgwaDE2MHE1MCAwIDg1LTM1dDM1LTg1cTAtNTAtMzUtODV0LTg1LTM1SDUyMHYtODBoMTYwcTgzIDAgMTQxLjUgNTguNVQ4ODAtNDgwcTAgODMtNTguNSAxNDEuNVQ2ODAtMjgwSDUyMFoiLz48L3N2Zz4=";
Editor.imageImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNTYwcTAtMzMgMjMuNS01Ni41VDIwMC04NDBoNTYwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NTYwcTAgMzMtMjMuNSA1Ni41VDc2MC0xMjBIMjAwWm0wLTgwaDU2MHYtNTYwSDIwMHY1NjBabTQwLTgwaDQ4MEw1NzAtNDgwIDQ1MC0zMjBsLTkwLTEyMC0xMjAgMTYwWm0tNDAgODB2LTU2MCA1NjBaIi8+PC9zdmc+";
Editor.horizontalRuleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTQ0MHYtODBoNjQwdjgwSDE2MFoiLz48L3N2Zz4=";Editor.tableImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNTYwcTAtMzMgMjMuNS01Ni41VDIwMC04NDBoNTYwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NTYwcTAgMzMtMjMuNSA1Ni41VDc2MC0xMjBIMjAwWm0yNDAtMjQwSDIwMHYxNjBoMjQwdi0xNjBabTgwIDB2MTYwaDI0MHYtMTYwSDUyMFptLTgwLTgwdi0xNjBIMjAwdjE2MGgyNDBabTgwIDBoMjQwdi0xNjBINTIwdjE2MFpNMjAwLTY4MGg1NjB2LTgwSDIwMHY4MFoiLz48L3N2Zz4=";
-Editor.autosizeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDAtNDB2LTI0MGg4MHYtNDAwSDQwdi0yNDBoMjQwdjgwaDQwMHYtODBoMjQwdjI0MGgtODB2NDAwaDgwdjI0MEg2ODB2LTgwSDI4MHY4MEg0MFptMjQwLTE2MGg0MDB2LTgwaDgwdi00MDBoLTgwdi04MEgyODB2ODBoLTgwdjQwMGg4MHY4MFptMzItMTIwIDEzNi0zNjBoNjRsMTM2IDM2MGgtNjJsLTMyLTkySDQwOGwtMzIgOTJoLTY0Wm0xMTQtMTQ0aDEwOGwtNTItMTUwaC00bC01MiAxNTBaTTEyMC03NjBoODB2LTgwaC04MHY4MFptNjQwIDBoODB2LTgwaC04MHY4MFptMCA2NDBoODB2LTgwaC04MHY4MFptLTY0MCAwaDgwdi04MGgtODB2ODBabTgwLTY0MFptNTYwIDBabTAgNTYwWm0tNTYwIDBaIi8+PC9zdmc+";
-Editor.checkmarkImage="data:image/gif;base64,R0lGODlhFQAVAMQfAGxsbHx8fIqKioaGhvb29nJycvr6+sDAwJqamltbW5OTk+np6YGBgeTk5Ly8vJiYmP39/fLy8qWlpa6ursjIyOLi4vj4+N/f3+3t7fT09LCwsHZ2dubm5r6+vmZmZv///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IFdpbmRvd3MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OEY4NTZERTQ5QUFBMTFFMUE5MTVDOTM5MUZGMTE3M0QiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OEY4NTZERTU5QUFBMTFFMUE5MTVDOTM5MUZGMTE3M0QiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4Rjg1NkRFMjlBQUExMUUxQTkxNUM5MzkxRkYxMTczRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4Rjg1NkRFMzlBQUExMUUxQTkxNUM5MzkxRkYxMTczRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAB8ALAAAAAAVABUAAAVI4CeOZGmeaKqubKtylktSgCOLRyLd3+QJEJnh4VHcMoOfYQXQLBcBD4PA6ngGlIInEHEhPOANRkaIFhq8SuHCE1Hb8Lh8LgsBADs=";
+Editor.spacingImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjQwLTgwIDgwLTI0MGwxNjAtMTYwIDU3IDU2LTY0IDY0aDQ5NGwtNjMtNjQgNTYtNTYgMTYwIDE2MEw3MjAtODBsLTU3LTU2IDY0LTY0SDIzM2w2MyA2NC01NiA1NlptMzYtMzYwIDE2NC00NDBoODBsMTY0IDQ0MGgtNzZsLTM4LTExMkgzOTJsLTQwIDExMmgtNzZabTEzOC0xNzZoMTMybC02NC0xODJoLTRsLTY0IDE4MloiLz48L3N2Zz4=";Editor.addColumnLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAwLTIwMHYtNTYwSDU2MHY1NjBoMjQwWm0tNjQwIDgwdi0xNjBoODB2ODBoMjQwdi01NjBIMjQwdjgwaC04MHYtMTYwaDcyMHY3MjBIMTYwWm0zMjAtMzYwWm04MCAwaC04MCA4MFptMCAwWk0xNjAtMzYwdi04MEg4MHYtODBoODB2LTgwaDgwdjgwaDgwdjgwaC04MHY4MGgtODBaIi8+PC9zdmc+";
+Editor.addColumnRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTc2MHY1NjBoMjQwdi01NjBIMTYwWk04MC0xMjB2LTcyMGg3MjB2MTYwaC04MHYtODBINDgwdjU2MGgyNDB2LTgwaDgwdjE2MEg4MFptNDAwLTM2MFptLTgwIDBoODAtODBabTAgMFptMzIwIDEyMHYtODBoLTgwdi04MGg4MHYtODBoODB2ODBoODB2ODBoLTgwdjgwaC04MFoiLz48L3N2Zz4=";Editor.removeColumnImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIiB0cmFuc2Zvcm09InJvdGF0ZSg5MCkgc2NhbGUoMSwtMSkiPjxwYXRoIGQ9Ik01NjAtMjgwSDEyMHYtNDAwaDcyMHYxMjBoLTgwdi00MEgyMDB2MjQwaDM2MHY4MFptLTM2MC04MHYtMjQwIDI0MFptNDQwIDEwNCA4NC04NC04NC04NCA1Ni01NiA4NCA4NCA4NC04NCA1NiA1Ni04MyA4NCA4MyA4NC01NiA1Ni04NC04My04NCA4My01Ni01NloiLz48L3N2Zz4=";
+Editor.addRowAboveImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTE2MGg1NjB2LTI0MEgyMDB2MjQwWm02NDAgODBIMTIwdi03MjBoMTYwdjgwaC04MHYyNDBoNTYwdi0yNDBoLTgwdi04MGgxNjB2NzIwWk00ODAtNDgwWm0wIDgwdi04MCA4MFptMCAwWm0tNDAtMjQwdi04MGgtODB2LTgwaDgwdi04MGg4MHY4MGg4MHY4MGgtODB2ODBoLTgwWiIvPjwvc3ZnPg==";Editor.addRowBelowImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTU2MGg1NjB2LTI0MEgyMDB2MjQwWm0tODAgNDAwdi03MjBoNzIwdjcyMEg2ODB2LTgwaDgwdi0yNDBIMjAwdjI0MGg4MHY4MEgxMjBabTM2MC0zMjBabTAtODB2ODAtODBabTAgMFpNNDQwLTgwdi04MGgtODB2LTgwaDgwdi04MGg4MHY4MGg4MHY4MGgtODB2ODBoLTgwWiIvPjwvc3ZnPg==";
+Editor.removeRowImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNTYwLTI4MEgxMjB2LTQwMGg3MjB2MTIwaC04MHYtNDBIMjAwdjI0MGgzNjB2ODBabS0zNjAtODB2LTI0MCAyNDBabTQ0MCAxMDQgODQtODQtODQtODQgNTYtNTYgODQgODQgODQtODQgNTYgNTYtODMgODQgODMgODQtNTYgNTYtODQtODMtODQgODMtNTYtNTZaIi8+PC9zdmc+";Editor.autosizeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDAtNDB2LTI0MGg4MHYtNDAwSDQwdi0yNDBoMjQwdjgwaDQwMHYtODBoMjQwdjI0MGgtODB2NDAwaDgwdjI0MEg2ODB2LTgwSDI4MHY4MEg0MFptMjQwLTE2MGg0MDB2LTgwaDgwdi00MDBoLTgwdi04MEgyODB2ODBoLTgwdjQwMGg4MHY4MFptMzItMTIwIDEzNi0zNjBoNjRsMTM2IDM2MGgtNjJsLTMyLTkySDQwOGwtMzIgOTJoLTY0Wm0xMTQtMTQ0aDEwOGwtNTItMTUwaC00bC01MiAxNTBaTTEyMC03NjBoODB2LTgwaC04MHY4MFptNjQwIDBoODB2LTgwaC04MHY4MFptMCA2NDBoODB2LTgwaC04MHY4MFptLTY0MCAwaDgwdi04MGgtODB2ODBabTgwLTY0MFptNTYwIDBabTAgNTYwWm0tNTYwIDBaIi8+PC9zdmc+";
+Editor.checkmarkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjJweCIgaGVpZ2h0PSIxOHB4IiB2ZXJzaW9uPSIxLjEiPjxwYXRoIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQgMCkiIGQ9Ik03LjE4MSwxNS4wMDdhMSwxLDAsMCwxLS43OTMtMC4zOTFMMy4yMjIsMTAuNUExLDEsMCwxLDEsNC44MDgsOS4yNzRMNy4xMzIsMTIuM2w2LjA0NC04Ljg2QTEsMSwwLDEsMSwxNC44Myw0LjU2OWwtNi44MjMsMTBhMSwxLDAsMCwxLS44LjQzN0g3LjE4MVoiIGZpbGw9IiMwMDAwMDAiLz48L3N2Zz4=";
Editor.roughFillStyles=[{val:"auto",dispName:"Auto"},{val:"hachure",dispName:"Hachure"},{val:"solid",dispName:"Solid"},{val:"zigzag",dispName:"ZigZag"},{val:"cross-hatch",dispName:"Cross Hatch"},{val:"dashed",dispName:"Dashed"},{val:"zigzag-line",dispName:"ZigZag Line"}];
Editor.fillStyles=[{val:"auto",dispName:"Auto"},{val:"hatch",dispName:"Hatch"},{val:"solid",dispName:"Solid"},{val:"dots",dispName:"Dots"},{val:"cross-hatch",dispName:"Cross Hatch"},{val:"dashed",dispName:"Dashed"},{val:"zigzag-line",dispName:"ZigZag Line"}];Editor.themes=[];Editor.ctrlKey=mxClient.IS_MAC?"Cmd":"Ctrl";Editor.hintOffset=20;Editor.shapePickerHoverDelay=300;Editor.fitWindowBorders=null;Editor.popupsAllowed=null!=window.urlParams?"1"!=urlParams.noDevice:!0;Editor.simpleLabels=!1;
Editor.enableNativeCipboard=window==window.top&&!mxClient.IS_FF&&null!=navigator.clipboard;Editor.sketchMode=!1;Editor.darkMode=!1;Editor.currentTheme=uiTheme;Editor.darkColor="#121212";Editor.darkColorVar="--ge-dark-color";Editor.fontSizeUnit="px";Editor.pageSizeUnit=mxConstants.INCHES;Editor.isDarkMode=function(){return Editor.darkMode};Editor.isPngDataUrl=function(a){return null!=a&&"data:image/png;"==a.substring(0,15)};
@@ -1992,12 +2003,12 @@ Editor.prototype.setModified=function(a){this.modified=a};Editor.prototype.setFi
Editor.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 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&&
+function Dialog(a,b,e,f,h,d,g,m,p,k,u){this.editorUi=a;var x=p?57:0,z=e,C=f,E=p?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 T=a.createDiv(q?"geTransDialog":"geDialog");h=this.getPosition(D,I,e,f);D=h.x;I=h.y;T.style.width=e+"px";T.style.height=f+"px";T.style.left=D+"px";T.style.top=I+"px";T.style.zIndex=this.zIndex;T.appendChild(b);document.body.appendChild(T);!m&&b.clientHeight>T.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 K=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(U){K=!0}),null,mxUtils.bind(this,function(U){K&&(a.hideDialog(!0),K=!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||
+h&&document.body.appendChild(this.bg);var T=a.createDiv(p?"geTransDialog":"geDialog");h=this.getPosition(D,I,e,f);D=h.x;I=h.y;T.style.width=e+"px";T.style.height=f+"px";T.style.left=D+"px";T.style.top=I+"px";T.style.zIndex=this.zIndex;T.appendChild(b);document.body.appendChild(T);!m&&b.clientHeight>T.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-x+"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 K=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(U){K=!0}),null,mxUtils.bind(this,function(U){K&&(a.hideDialog(!0),K=!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 Q=mxUtils.getDocumentScrollOrigin(document);U+=Q.x;Y+=Q.y;Editor.inlineFullscreen||
-null==a.embedViewport||(Y+=a.embedViewport.y,U+=a.embedViewport.x);T.style.left=U+"px";T.style.top=Y+"px";T.style.width=e+"px";T.style.height=f+"px";!m&&b.clientHeight>T.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=T;a.editor.fireEvent(new mxEventObject("showDialog"))}
+null==a.embedViewport||(Y+=a.embedViewport.y,U+=a.embedViewport.x);T.style.left=U+"px";T.style.top=Y+"px";T.style.width=e+"px";T.style.height=f+"px";!m&&b.clientHeight>T.clientHeight-E&&(b.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=Y+14+"px",this.dialogImg.style.left=U+e+38-x+"px")});null!=a.embedViewport?a.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=g;this.container=T;a.editor.fireEvent(new mxEventObject("showDialog"))}
Dialog.prototype.zIndex=mxPopupMenu.prototype.zIndex-2;
Dialog.prototype.noColorImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkEzRDlBMUUwODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkEzRDlBMUUxODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QTNEOUExREU4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QTNEOUExREY4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xh3fmAAAABlBMVEX////MzMw46qqDAAAAGElEQVR42mJggAJGKGAYIIGBth8KAAIMAEUQAIElnLuQAAAAAElFTkSuQmCC":IMAGE_PATH+
"/nocolor.png";Dialog.prototype.closeImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAQMAAADaX5RTAAAABlBMVEV7mr3///+wksspAAAAAnRSTlP/AOW3MEoAAAAdSURBVAgdY9jXwCDDwNDRwHCwgeExmASygSL7GgB12QiqNHZZIwAAAABJRU5ErkJggg==":IMAGE_PATH+"/close.png";
@@ -2005,92 +2016,92 @@ Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKA
"/clear.gif";Dialog.prototype.bgOpacity=80;Dialog.prototype.getDocumentSize=function(){return mxUtils.getDocumentSize()};Dialog.prototype.getPosition=function(a,b){return new mxPoint(a,b)};
Dialog.prototype.close=function(a,b){if(null!=this.onDialogClose){if(0==this.onDialogClose(a,b))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&&
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){this.create(a,b,e)};
-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 T=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,T-=D.y*G.height):
-E=!0;E=PrintDialog.createPrintPreview(e,I,G,0,L,T,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,
+var ErrorDialog=function(a,b,e,f,h,d,g,m,p,k,u){p=null!=p?p:!0;var x=document.createElement("div");x.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);x.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);x.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(){p&&a.hideDialog();null!=h&&h()});C.className="geBtn";e.appendChild(C);null!=g&&(f=mxUtils.button(g,function(){p&&a.hideDialog();null!=m&&m()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){C.focus()};x.appendChild(e);this.container=x},PrintDialog=function(a,b,e){this.create(a,b,e)};
+PrintDialog.prototype.create=function(a){function b(C){var E=g.checked||k.checked,D=parseInt(x.value)/100;isNaN(D)&&(D=1,x.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 T=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,T-=D.y*G.height):
+E=!0;E=PrintDialog.createPrintPreview(e,I,G,0,L,T,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 p=document.createElement("span");mxUtils.write(p," "+mxResources.get("fitPage"));
+m.appendChild(p);mxEvent.addListener(p,"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);p=document.createElement("span");mxUtils.write(p," "+mxResources.get("posterPrint")+":");m.appendChild(p);mxEvent.addListener(p,
"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;
-m.style.paddingTop="20px";m.setAttribute("align","right");q=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});q.className="geBtn";a.editor.cancelFirst&&m.appendChild(q);if(PrintDialog.previewEnabled){var z=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();b(!1)});z.className="geBtn";m.appendChild(z)}z=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();b(!0)});z.className="geBtn gePrimaryBtn";m.appendChild(z);a.editor.cancelFirst||
-m.appendChild(q);d.appendChild(m);h.appendChild(d);f.appendChild(h);this.container=f};PrintDialog.printPreview=function(a){try{null!=a.wnd&&window.setTimeout(function(){a.wnd.focus();a.wnd.print();a.wnd.close()},500)}catch(b){}};
-PrintDialog.createPrintPreview=function(a,b,e,f,h,d,g){b=new mxPrintPreview(a,b,e,f,h,d);b.title=mxResources.get("preview");b.addPageCss=!mxClient.IS_SF;b.printBackgroundImage=!0;b.autoOrigin=g;g=a.background;if(null==g||""==g||g==mxConstants.NONE)g="#ffffff";b.backgroundColor=g;var m=b.isTextLabel;b.isTextLabel=function(k){return"geHint"==!k.className&&m.apply(this,arguments)};var q=b.getLinkForCellState;b.getLinkForCellState=function(k){return a.getAbsoluteUrl(q.apply(this,arguments))};return b};
+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 x=document.createElement("input");x.setAttribute("value","100 %");x.setAttribute("size","5");x.style.width="50px";m.appendChild(x);d.appendChild(m);h.appendChild(d);d=document.createElement("tr");m=document.createElement("td");m.colSpan=2;
+m.style.paddingTop="20px";m.setAttribute("align","right");p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});p.className="geBtn";a.editor.cancelFirst&&m.appendChild(p);if(PrintDialog.previewEnabled){var z=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();b(!1)});z.className="geBtn";m.appendChild(z)}z=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();b(!0)});z.className="geBtn gePrimaryBtn";m.appendChild(z);a.editor.cancelFirst||
+m.appendChild(p);d.appendChild(m);h.appendChild(d);f.appendChild(h);this.container=f};PrintDialog.printPreview=function(a){try{null!=a.wnd&&window.setTimeout(function(){a.wnd.focus();a.wnd.print();a.wnd.close()},500)}catch(b){}};
+PrintDialog.createPrintPreview=function(a,b,e,f,h,d,g){b=new mxPrintPreview(a,b,e,f,h,d);b.title=mxResources.get("preview");b.addPageCss=!mxClient.IS_SF;b.printBackgroundImage=!0;b.autoOrigin=g;g=a.background;if(null==g||""==g||g==mxConstants.NONE)g="#ffffff";b.backgroundColor=g;var m=b.isTextLabel;b.isTextLabel=function(k){return"geHint"==!k.className&&m.apply(this,arguments)};var p=b.getLinkForCellState;b.getLinkForCellState=function(k){return a.getAbsoluteUrl(p.apply(this,arguments))};return b};
PrintDialog.previewEnabled=!0;
-var PageSetupDialog=function(a){function b(){var D=w;null!=D&&null!=D.originalSrc&&(D=a.createImageForPageLink(D.originalSrc,null));null!=D&&null!=D.src?(u.style.backgroundImage="url("+D.src+")",u.style.display="inline-block"):(u.style.backgroundImage="",u.style.display="none");u.style.backgroundColor="";null!=z&&z!=mxConstants.NONE&&(u.style.backgroundColor=z,u.style.display="inline-block")}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var h=document.createElement("tbody");
+var PageSetupDialog=function(a){function b(){var D=x;null!=D&&null!=D.originalSrc&&(D=a.createImageForPageLink(D.originalSrc,null));null!=D&&null!=D.src?(u.style.backgroundImage="url("+D.src+")",u.style.display="inline-block"):(u.style.backgroundImage="",u.style.display="none");u.style.backgroundColor="";null!=z&&z!=mxConstants.NONE&&(u.style.backgroundColor=z,u.style.display="inline-block")}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("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")+":");
+g=document.createElement("td");g.style.whiteSpace="nowrap";var p=document.createElement("input");p.setAttribute("type","number");p.setAttribute("min","0");p.style.width="40px";p.style.marginLeft="6px";p.value=e.getGridSize();g.appendChild(p);mxEvent.addListener(p,"change",function(){var D=parseInt(p.value);p.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,I,L,T){I||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=T);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&&
+u.style.width="64px";u.style.cursor="pointer";u.style.padding="4px";var x=e.backgroundImage,z=e.background,C=e.shadowVisible,E=function(D){a.showBackgroundImageDialog(function(G,I,L,T){I||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),x=G,C=T);z=L;b()},x,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(p.value);isNaN(D)||e.gridSize===D||e.setGridSize(D);D=new ChangePageSetup(a,z,x,m.get());D.ignoreColor=e.background==z;D.ignoreImage=(null!=e.backgroundImage?e.backgroundImage.src:null)===(null!=x?x.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);
+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 p=document.createElement("span");p.style.width="100px";mxUtils.write(p,mxResources.get("landscape"));
+m.appendChild(p);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 x=document.createElement("input");x.setAttribute("size","7");x.setAttribute("title",mxResources.get("height"));x.style.textAlign="right";k.appendChild(x);
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={},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 K=0;K<I.length;K++){var U=I[K];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 T=function(K,U){K=G[g.value];null!=K.format?(u.value=Editor.toUnit(d.checked?K.format.height:K.format.width,z.value),w.value=Editor.toUnit(d.checked?K.format.width:K.format.height,z.value),k.style.display="none",
-m.style.display=""):(m.style.display="none",k.style.display="");K=parseFloat(u.value);if(isNaN(K)||0>=K)u.value=Editor.toUnit(e.width,z.value);K=parseFloat(w.value);if(isNaN(K)||0>=K)w.value=Editor.toUnit(e.height,z.value);K=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(u.value),z.value)),Math.floor(Editor.fromUnit(parseFloat(w.value),z.value)));U||K.width==e.width&&K.height==e.height||(e=K,null!=f&&f(e))};mxEvent.addListener(b,"click",function(K){h.checked=!0;T(K);mxEvent.consume(K)});
-mxEvent.addListener(q,"click",function(K){d.checked=!0;T(K);mxEvent.consume(K)});mxEvent.addListener(u,"blur",T);mxEvent.addListener(u,"click",T);mxEvent.addListener(w,"blur",T);mxEvent.addListener(w,"click",T);mxEvent.addListener(d,"change",T);mxEvent.addListener(h,"change",T);mxEvent.addListener(g,"change",function(K){T(K,"custom"==g.value);mxEvent.consume(K)});mxEvent.addListener(z,"change",function(K){u.value=Editor.toUnit(Editor.fromUnit(u.value,Editor.pageSizeUnit),z.value);w.value=Editor.toUnit(Editor.fromUnit(w.value,
-Editor.pageSizeUnit),z.value);Editor.pageSizeUnit=z.value;T(K,!0);mxEvent.consume(K)});T(null,!0);return{set:function(K){e=K;L(null,null,!0)},get:function(){return e},widthInput:u,heightInput:w}};
+(u.value=Editor.toUnit(e.width,z.value),x.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 T=function(K,U){K=G[g.value];null!=K.format?(u.value=Editor.toUnit(d.checked?K.format.height:K.format.width,z.value),x.value=Editor.toUnit(d.checked?K.format.width:K.format.height,z.value),k.style.display="none",
+m.style.display=""):(m.style.display="none",k.style.display="");K=parseFloat(u.value);if(isNaN(K)||0>=K)u.value=Editor.toUnit(e.width,z.value);K=parseFloat(x.value);if(isNaN(K)||0>=K)x.value=Editor.toUnit(e.height,z.value);K=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(u.value),z.value)),Math.floor(Editor.fromUnit(parseFloat(x.value),z.value)));U||K.width==e.width&&K.height==e.height||(e=K,null!=f&&f(e))};mxEvent.addListener(b,"click",function(K){h.checked=!0;T(K);mxEvent.consume(K)});
+mxEvent.addListener(p,"click",function(K){d.checked=!0;T(K);mxEvent.consume(K)});mxEvent.addListener(u,"blur",T);mxEvent.addListener(u,"click",T);mxEvent.addListener(x,"blur",T);mxEvent.addListener(x,"click",T);mxEvent.addListener(d,"change",T);mxEvent.addListener(h,"change",T);mxEvent.addListener(g,"change",function(K){T(K,"custom"==g.value);mxEvent.consume(K)});mxEvent.addListener(z,"change",function(K){u.value=Editor.toUnit(Editor.fromUnit(u.value,Editor.pageSizeUnit),z.value);x.value=Editor.toUnit(Editor.fromUnit(x.value,
+Editor.pageSizeUnit),z.value);Editor.pageSizeUnit=z.value;T(K,!0);mxEvent.consume(K)});T(null,!0);return{set:function(K){e=K;L(null,null,!0)},get:function(){return e},widthInput:u,heightInput:x}};
PageSetupDialog.getFormats=function(){return[{key:"letter",title:'US-Letter (8,5" x 11")',format:mxConstants.PAGE_FORMAT_LETTER_PORTRAIT},{key:"legal",title:'US-Legal (8,5" x 14")',format:new mxRectangle(0,0,850,1400)},{key:"tabloid",title:'US-Tabloid (11" x 17")',format:new mxRectangle(0,0,1100,1700)},{key:"executive",title:'US-Executive (7" x 10")',format:new mxRectangle(0,0,700,1E3)},{key:"a0",title:"A0 (841 mm x 1189 mm)",format:new mxRectangle(0,0,3300,4681)},{key:"a1",title:"A1 (594 mm x 841 mm)",
format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",format:new mxRectangle(0,0,1654,2336)},{key:"a3",title:"A3 (297 mm x 420 mm)",format:new mxRectangle(0,0,1169,1654)},{key:"a4",title:"A4 (210 mm x 297 mm)",format:mxConstants.PAGE_FORMAT_A4_PORTRAIT},{key:"a5",title:"A5 (148 mm x 210 mm)",format:new mxRectangle(0,0,583,827)},{key:"a6",title:"A6 (105 mm x 148 mm)",format:new mxRectangle(0,0,413,583)},{key:"a7",title:"A7 (74 mm x 105 mm)",format:new mxRectangle(0,0,291,413)},
{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!=
+var FilenameDialog=function(a,b,e,f,h,d,g,m,p,k,u){p=null!=p?p:!0;var x=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))p&&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 I=z.parentNode;if(null!=I){var L=null;mxEvent.addListener(I,"dragleave",function(T){null!=L&&(L.style.backgroundColor="",L=null);T.stopPropagation();T.preventDefault()});mxEvent.addListener(I,"dragover",mxUtils.bind(this,function(T){null==L&&(!mxClient.IS_IE||10<document.documentMode)&&(L=D,L.style.backgroundColor=
"#ebf2f9");T.stopPropagation();T.preventDefault()}));mxEvent.addListener(I,"drop",mxUtils.bind(this,function(T){null!=L&&(L.style.backgroundColor="",L=null);0<=mxUtils.indexOf(T.dataTransfer.types,"text/uri-list")&&(D.value=decodeURIComponent(T.dataTransfer.getData("text/uri-list")),G.click());T.stopPropagation();T.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(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;
+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);x.appendChild(z);this.container=x};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"in
-document?(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)}))};
-(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!=
+document?(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 p=e[m].extension,k=null;"drawio"!=p&&(k=p,p=".drawio."+p);if(d.substring(d.length-p.length-1)=="."+p||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(p){null==p&&(p=window.event);return null!=p&&a.isSelectionAllowed(p)}))};
+(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 p=g.container.firstChild;null!=p&&p.nodeType!=mxConstants.NODETYPE_ELEMENT;)p=p.nextSibling;null!=p&&(this.backgroundPageShape=this.createBackgroundPageShape(m),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
+this.backgroundPageShape.init(g.container),p.style.position="absolute",g.container.insertBefore(this.backgroundPageShape.node,p),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="";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,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,!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,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(T){if(null!=T){for(var K=T==this.horizontalPageBreaks?D:G,U=0;U<=K;U++){var Y=T==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),Math.round(C.y+(U+1)*E.height)),new mxPoint(Math.round(I),
+mxGraphView.prototype.validateBackgroundStyles=function(g,m,p){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,x=mxUtils.getLightDarkColor(k.defaultPageBorderColor).cssText,z=null!=u&&this.gridColor!=u.toLowerCase()?this.gridColor:"#ffffff",C="none",E="";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;p=null!=p?p-this.translate.y*this.scale:0;var G=k.gridSize*this.scale*this.gridSteps,I=m%G;G=p%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+p,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=x,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,!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 p=this.graph.gridSize*this.scale*(null!=m?m:
+1);p<this.minGridSize;)p*=2;m=this.gridSteps*p;for(var k=[],u=1;u<this.gridSteps;u++){var x=u*p;k.push("M 0 "+x+" L "+m+" "+x+" M "+x+" 0 L "+x+" "+m)}g=mxUtils.getLightDarkColor(g);p="color-scheme: light dark;";mxClient.IS_SF&&(p="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+p+'" 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 p=this.view.canvas;null!=
+p.ownerSVGElement&&(p=p.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";p.style.backgroundPosition=k}};mxGraph.prototype.updatePageBreaks=function(g,m,p){var k=this.view.scale,u=this.view.translate,x=this.pageFormat,z=k*this.pageScale,C=this.view.getBackgroundPageBounds();m=C.width;p=C.height;var E=new mxRectangle(k*u.x,k*
+u.y,x.width*z,x.height*z),D=(g=g&&Math.min(E.width,E.height)>this.minPageBreakDist)?Math.ceil(p/E.height)-1:0,G=g?Math.ceil(m/E.width)-1:0,I=C.x+m,L=C.y+p;null==this.horizontalPageBreaks&&0<D&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);g=mxUtils.bind(this,function(T){if(null!=T){for(var K=T==this.horizontalPageBreaks?D:G,U=0;U<=K;U++){var Y=T==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!=T[U]?(T[U].points=Y,T[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(),T[U]=Y)}for(U=K;U<T.length;U++)null!=T[U]&&T[U].destroy();T.splice(K,T.length-K)}});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==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=
-g+"px",this.view.backgroundPageShape.node.style.marginTop=m+"px")};var h=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(g,m,q,k,u,w){var z=h.apply(this,arguments);null==w||w||mxEvent.addListener(z,"mousedown",function(C){mxEvent.consume(C)});return z};var d=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(g,m,q){var k=this.graph.model.getParent(g);if(m){var u=this.graph.model.isEdge(g)?null:this.graph.getCellGeometry(g);
-u=!this.graph.model.isEdge(k)&&!this.graph.isSiblingSelected(g)&&(null!=u&&u.relative||!this.graph.isContainer(k)||this.graph.isPart(g))}else if(u=d.apply(this,arguments),this.graph.isTableCell(g)||this.graph.isTableRow(g))u=k,this.graph.isTable(u)||(u=this.graph.model.getParent(u)),u=!this.graph.selectionCellsHandler.isHandled(u)||this.graph.isCellSelected(u)&&this.graph.isToggleEvent(q.getEvent())||this.graph.isCellSelected(g)&&!this.graph.isToggleEvent(q.getEvent())||this.graph.isTableCell(g)&&
-this.graph.isCellSelected(k);return u};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(g){g=g.getCell();for(var m=this.graph.getModel(),q=m.getParent(g),k=this.graph.view.getState(q),u=this.graph.isCellSelected(g);null!=k&&(m.isVertex(q)||m.isEdge(q));){var w=this.graph.isCellSelected(q);u=u||w;if(w||!u&&(this.graph.isTableCell(g)||this.graph.isTableRow(g)))g=q;q=m.getParent(q)}return g}})();EditorUi=function(a,b,e){mxEventSource.call(this);this.destroyFunctions=[];this.editor=a||new Editor;this.container=b||document.body;var f=this,h=this.editor.graph;h.lightbox=e;var d=h.getGraphBounds;h.getGraphBounds=function(){var M=d.apply(this,arguments),W=this.backgroundImage;if(null!=W&&null!=W.width&&null!=W.height){var aa=this.view.translate,ia=this.view.scale;M=mxRectangle.fromRectangle(M);M.add(new mxRectangle((aa.x+W.x)*ia,(aa.y+W.y)*ia,W.width*ia,W.height*ia))}return M};h.useCssTransforms&&
-(this.lazyZoomDelay=0);mxPopupMenu.prototype.submenuImage=Graph.createSvgImage(10,10,'<path d="M3,1L8,5L3,9Z" fill="light-dark(#3F3F3F, #C0C0C0)"/>').src;Editor.checkmarkImage=Graph.createSvgImage(22,18,'<path transform="translate(4 0)" d="M7.181,15.007a1,1,0,0,1-.793-0.391L3.222,10.5A1,1,0,1,1,4.808,9.274L7.132,12.3l6.044-8.86A1,1,0,1,1,14.83,4.569l-6.823,10a1,1,0,0,1-.8.437H7.181Z" fill="light-dark(#3F3F3F, #C0C0C0)"/>').src;this.selectionStateListener=mxUtils.bind(this,function(M,W){this.clearSelectionState()});
-h.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);h.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);h.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);h.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);h.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){this.footerHeight=0;h.isEnabled=function(){return!1};h.panningHandler.isForcePanningEvent=function(M){for(var W=
-M.getSource();null!=W&&W!=h.container;){if("foreignObject"===W.nodeName||"text"===W.nodeName)return!1;W=W.parentNode}return!mxEvent.isPopupTrigger(M.getEvent())};var g=h.panningHandler.start;h.panningHandler.start=function(){g.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!h.standalone){var m=!1,q=!1;this.setDefaultStyle=function(M){try{h.getModel().isEdge(M)?q=h.pasteEdgeStyle=!1:m=!1;var W=h.getCellStyle(M,!1),aa=[],ia=[],oa;for(oa in W)aa.push(W[oa]),
-ia.push(oa);h.getModel().isEdge(M)?h.currentEdgeStyle={}:h.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",ia,"values",aa,"cells",[M],"force",!0));h.getModel().isEdge(M)?q=h.pasteEdgeStyle=!0:m=!0}catch(qa){this.handleError(qa)}};this.clearDefaultStyle=function(){h.currentEdgeStyle=mxUtils.clone(h.defaultEdgeStyle);h.currentVertexStyle=mxUtils.clone(h.defaultVertexStyle);m=q=h.pasteEdgeStyle=!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",
-[]))};h.addListener("cellsInserted",function(M,W){h.pasteCellStyles(h.includeDescendants(W.getProperty("cells")))});h.addListener("textInserted",function(M,W){h.pasteCellStyles(W.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var k=mxUtils.bind(this,function(M){null==M&&(M=window.event);return h.isEditing()||null!=M&&this.isSelectionAllowed(M)});this.container!=document.body||this.editor.chromeless&&!this.editor.editable||(this.menubarContainer.onselectstart=k,this.menubarContainer.onmousedown=
-k,this.toolbarContainer.onselectstart=k,this.toolbarContainer.onmousedown=k,this.diagramContainer.onselectstart=k,this.diagramContainer.onmousedown=k,this.sidebarContainer.onselectstart=k,this.sidebarContainer.onmousedown=k,this.formatContainer.onselectstart=k,this.formatContainer.onmousedown=k,this.footerContainer.onselectstart=k,this.footerContainer.onmousedown=k,null!=this.tabContainer&&(this.tabContainer.onselectstart=k),mxClient.IS_IOS&&(b=function(){var M=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var W=
-navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{M=[parseInt(W[1],10),parseInt(W[2],10),parseInt(W[3]||0,10)]}catch(aa){}}return M}(),null!=b&&16<=b[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.formatContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.footerContainer.style,
-"userSelect","none"),null!=this.tabContainer&&mxUtils.setPrefixedStyle(this.tabContainer.style,"userSelect","none"))));!this.editor.chromeless||this.editor.editable?(b=function(M){if(null!=M){var W=mxEvent.getSource(M);if("A"==W.nodeName)for(;null!=W;){if("geHint"==W.className)return!0;W=W.parentNode}}return k(M)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?mxEvent.addListener(this.diagramContainer,"contextmenu",b):this.diagramContainer.oncontextmenu=b):h.panningHandler.usePopupTrigger=
-!1;h.init(this.diagramContainer);mxClient.IS_SVG&&null!=h.view.getDrawPane()&&(b=h.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=h.graphHandler){var u=h.graphHandler.start;h.graphHandler.start=function(){null!=f.hoverIcons&&f.hoverIcons.reset();u.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,function(M){var W=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(M)-
-W.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(M)-W.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var w=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(M,W){return f.isSpaceDown()||w.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(M){16==M.which?this.shiftDown=!0:32!=M.which||h.isEditing()?mxEvent.isConsumed(M)||27!=M.keyCode||this.hideDialog(null,
-!0):(this.spaceDown=!0,this.hoverIcons.reset(),h.container.style.cursor="move",h.isEditing()||mxEvent.getSource(M)!=h.container||mxEvent.consume(M))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(M){h.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var z=h.panningHandler.isForcePanningEvent;h.panningHandler.isForcePanningEvent=function(M){return z.apply(this,arguments)||
-f.isSpaceDown()||mxEvent.isMouseEvent(M.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(M.getEvent()))&&(!mxEvent.isControlDown(M.getEvent())&&mxEvent.isRightMouseButton(M.getEvent())||mxEvent.isMiddleMouseButton(M.getEvent()))};var C=h.cellEditor.isStopEditingEvent;h.cellEditor.isStopEditingEvent=function(M){return C.apply(this,arguments)||13==M.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(M)||mxClient.IS_MAC&&mxEvent.isMetaDown(M)||mxClient.IS_SF&&mxEvent.isShiftDown(M))};var E=
-h.isZoomWheelEvent;h.isZoomWheelEvent=function(){return f.isSpaceDown()||E.apply(this,arguments)};var D=!1,G=null,I=null,L=null,T=mxUtils.bind(this,function(){if(null!=this.toolbar&&D!=h.cellEditor.isContentEditing()){for(var M=this.toolbar.container.firstChild,W=[];null!=M;){var aa=M.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,M)&&(M.parentNode.removeChild(M),W.push(M));M=aa}M=this.toolbar.fontMenu;aa=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=M;I=aa;L=W}}),K=h.cellEditor.startEditing;h.cellEditor.startEditing=function(){K.apply(this,arguments);T();if(h.cellEditor.isContentEditing()){var M=!1,W=function(){M||(M=!0,window.setTimeout(function(){var aa=h.getSelectedEditingElement();null!=aa&&(aa=mxUtils.getCurrentStyle(aa),null!=aa&&null!=f.toolbar&&(f.toolbar.setFontName(mxUtils.getCssFontFamily(aa.fontFamily)),
-f.toolbar.setFontSize(parseInt(aa.fontSize))));M=!1},0))};mxEvent.addListener(h.cellEditor.textarea,"input",W);mxEvent.addListener(h.cellEditor.textarea,"touchend",W);mxEvent.addListener(h.cellEditor.textarea,"mouseup",W);mxEvent.addListener(h.cellEditor.textarea,"keyup",W);W()}};var U=h.cellEditor.stopEditing;h.cellEditor.stopEditing=function(M,W){try{U.apply(this,arguments),T()}catch(aa){f.handleError(aa)}};h.container.setAttribute("tabindex","0");h.container.style.cursor="default";if(window.self===
-window.top&&null!=h.container.parentNode)try{h.container.focus()}catch(M){}var Y=h.fireMouseEvent;h.fireMouseEvent=function(M,W,aa){try{M==mxEvent.MOUSE_DOWN&&this.container.focus(),Y.apply(this,arguments)}catch(ia){f.handleError(ia)}};var Q=h.foldCells;h.foldCells=function(M,W,aa,ia,oa){try{Q.apply(this,arguments)}catch(qa){f.handleError(qa)}};h.popupMenuHandler.autoExpand=!0;null!=this.menus&&(h.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(M,W,aa){this.menus.createPopupMenu(M,W,aa)}));
-mxEvent.addGestureListeners(document,mxUtils.bind(this,function(M){h.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};h.connectionHandler.addListener(mxEvent.CONNECT,function(M,W){var aa=[W.getProperty("cell")];W.getProperty("terminalInserted")&&(aa.push(W.getProperty("terminal")),window.setTimeout(function(){null!=f.hoverIcons&&f.hoverIcons.update(h.view.getState(aa[aa.length-1]))},0));h.pasteCellStyles(aa)});this.addListener("styleChanged",
-mxUtils.bind(this,function(M,W){M=W.getProperty("force");(this.updateDefaultStyle||M)&&h.copyCellStyles(W.getProperty("cells"),W.getProperty("keys"),W.getProperty("values"),h.currentVertexStyle,h.currentEdgeStyle,m,q);null!=this.toolbar&&(this.toolbar.setFontName(h.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(h.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0].className=
-"orthogonalEdgeStyle"==h.currentEdgeStyle.edgeStyle&&"1"==h.currentEdgeStyle.curved?"geSprite geSprite-curved":"straight"==h.currentEdgeStyle.edgeStyle||"none"==h.currentEdgeStyle.edgeStyle||null==h.currentEdgeStyle.edgeStyle?"geSprite geSprite-straight":"entityRelationEdgeStyle"==h.currentEdgeStyle.edgeStyle?"geSprite geSprite-entity":"elbowEdgeStyle"==h.currentEdgeStyle.edgeStyle?"geSprite geSprite-"+("vertical"==h.currentEdgeStyle.elbow?"verticalelbow":"horizontalelbow"):"isometricEdgeStyle"==
-h.currentEdgeStyle.edgeStyle?"geSprite geSprite-"+("vertical"==h.currentEdgeStyle.elbow?"verticalisometric":"horizontalisometric"):"geSprite geSprite-orthogonal"),null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0].className="link"==h.currentEdgeStyle.shape?"geSprite geSprite-linkedge":"flexArrow"==h.currentEdgeStyle.shape?"geSprite geSprite-arrow":"arrow"==h.currentEdgeStyle.shape?"geSprite geSprite-simplearrow":"geSprite geSprite-connection"))}));null!=this.toolbar&&
-(a=mxUtils.bind(this,function(){var M=h.currentVertexStyle.fontFamily||"Helvetica",W=String(h.currentVertexStyle.fontSize||"12"),aa=h.getView().getState(h.getSelectionCell());null!=aa&&(M=aa.style[mxConstants.STYLE_FONTFAMILY]||M,W=aa.style[mxConstants.STYLE_FONTSIZE]||W,10<M.length&&(M=M.substring(0,8)+"..."));this.toolbar.setFontName(M);this.toolbar.setFontSize(W)}),h.getSelectionModel().addListener(mxEvent.CHANGE,a),h.getModel().addListener(mxEvent.CHANGE,a));h.addListener(mxEvent.CELLS_ADDED,
-function(M,W){M=W.getProperty("cells");W=W.getProperty("parent");null!=W&&h.getModel().isLayer(W)&&!h.isCellVisible(W)&&null!=M&&0<M.length&&h.getModel().setVisible(W,!0)});Graph.selectParentLayer&&h.selectionModel.addListener(mxEvent.CHANGE,function(){if(h.isEnabled()&&!h.isSelectionEmpty()){var M=h.getLayerForCells(h.getSelectionCells());null!=M&&h.setDefaultParent(M)}});this.gestureHandler=mxUtils.bind(this,function(M){null!=this.currentMenu&&mxEvent.getSource(M)!=this.currentMenu.div&&this.hideCurrentMenu()});
-mxEvent.addGestureListeners(document,this.gestureHandler);var P=null;this.resizeHandler=mxUtils.bind(this,function(){null!=P&&window.clearTimeout(P);P=window.setTimeout(mxUtils.bind(this,function(){P=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==
-typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){h.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){h.view.validateBackground()}));h.addListener("gridSizeChanged",mxUtils.bind(this,function(){h.isGridEnabled()&&
-h.view.validateBackground()}));this.editor.resetGraph()}this.init();h.standalone||this.open()};EditorUi.compactUi=!0;
-EditorUi.parsePng=function(a,b,e){function f(m,q){var k=d;d+=q;return m.substring(k,d)}function h(m){m=f(m,4);return m.charCodeAt(3)+(m.charCodeAt(2)<<8)+(m.charCodeAt(1)<<16)+(m.charCodeAt(0)<<24)}var d=0;if(f(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(f(a,4),"IHDR"!=f(a,4))null!=e&&e();else{f(a,17);do{e=h(a);var g=f(a,4);if(null!=b&&b(d-8,g,e))break;value=f(a,e);f(a,4);if("IEND"==g)break}while(e)}};mxUtils.extend(EditorUi,mxEventSource);
+mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(g,m,p){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,p){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,p=0<g.height?g.y/this.scale-this.translate.y:0,k=this.graph.pageFormat,u=this.graph.pageScale,x=k.width*u;k=k.height*u;u=Math.floor(Math.min(0,m)/x);var z=Math.floor(Math.min(0,
+p)/k);return new mxRectangle(this.scale*(this.translate.x+u*x),this.scale*(this.translate.y+z*k),this.scale*(Math.ceil(Math.max(1,m+g.width/this.scale)/x)-u)*x,this.scale*(Math.ceil(Math.max(1,p+g.height/this.scale)/k)-z)*k)};var f=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(g,m){f.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=
+g+"px",this.view.backgroundPageShape.node.style.marginTop=m+"px")};var h=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(g,m,p,k,u,x){var z=h.apply(this,arguments);null==x||x||mxEvent.addListener(z,"mousedown",function(C){mxEvent.consume(C)});return z};var d=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(g,m,p){var k=this.graph.model.getParent(g);if(m){var u=this.graph.model.isEdge(g)?null:this.graph.getCellGeometry(g);
+u=!this.graph.model.isEdge(k)&&!this.graph.isSiblingSelected(g)&&(null!=u&&u.relative||!this.graph.isContainer(k)||this.graph.isPart(g))}else if(u=d.apply(this,arguments),this.graph.isTableCell(g)||this.graph.isTableRow(g))u=k,this.graph.isTable(u)||(u=this.graph.model.getParent(u)),u=!this.graph.selectionCellsHandler.isHandled(u)||this.graph.isCellSelected(u)&&this.graph.isToggleEvent(p.getEvent())||this.graph.isCellSelected(g)&&!this.graph.isToggleEvent(p.getEvent())||this.graph.isTableCell(g)&&
+this.graph.isCellSelected(k);return u};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(g){g=g.getCell();for(var m=this.graph.getModel(),p=m.getParent(g),k=this.graph.view.getState(p),u=this.graph.isCellSelected(g);null!=k&&(m.isVertex(p)||m.isEdge(p));){var x=this.graph.isCellSelected(p);u=u||x;if(x||!u&&(this.graph.isTableCell(g)||this.graph.isTableRow(g)))g=p;p=m.getParent(p)}return g}})();EditorUi=function(a,b,e){mxEventSource.call(this);this.destroyFunctions=[];this.editor=a||new Editor;this.container=b||document.body;var f=this,h=this.editor.graph;h.lightbox=e;var d=h.getGraphBounds;h.getGraphBounds=function(){var M=d.apply(this,arguments),V=this.backgroundImage;if(null!=V&&null!=V.width&&null!=V.height){var aa=this.view.translate,ia=this.view.scale;M=mxRectangle.fromRectangle(M);M.add(new mxRectangle((aa.x+V.x)*ia,(aa.y+V.y)*ia,V.width*ia,V.height*ia))}return M};h.useCssTransforms&&
+(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(M,V){this.clearSelectionState()});h.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);h.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);h.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);h.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);h.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){this.footerHeight=
+0;h.isEnabled=function(){return!1};h.panningHandler.isForcePanningEvent=function(M){for(var V=M.getSource();null!=V&&V!=h.container;){if("foreignObject"===V.nodeName||"text"===V.nodeName)return!1;V=V.parentNode}return!mxEvent.isPopupTrigger(M.getEvent())};var g=h.panningHandler.start;h.panningHandler.start=function(){g.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!h.standalone){var m=!1,p=!1;this.setDefaultStyle=function(M){try{h.getModel().isEdge(M)?
+p=h.pasteEdgeStyle=!1:m=!1;var V=h.getCellStyle(M,!1),aa=[],ia=[],na;for(na in V)aa.push(V[na]),ia.push(na);h.getModel().isEdge(M)?h.currentEdgeStyle={}:h.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",ia,"values",aa,"cells",[M],"force",!0));h.getModel().isEdge(M)?p=h.pasteEdgeStyle=!0:m=!0}catch(qa){this.handleError(qa)}};this.clearDefaultStyle=function(){h.currentEdgeStyle=mxUtils.clone(h.defaultEdgeStyle);h.currentVertexStyle=mxUtils.clone(h.defaultVertexStyle);m=
+p=h.pasteEdgeStyle=!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};h.addListener("cellsInserted",function(M,V){h.pasteCellStyles(h.includeDescendants(V.getProperty("cells")))});h.addListener("textInserted",function(M,V){h.pasteCellStyles(V.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var k=mxUtils.bind(this,function(M){null==M&&(M=window.event);return h.isEditing()||null!=M&&this.isSelectionAllowed(M)});this.container!=document.body||
+this.editor.chromeless&&!this.editor.editable||(this.menubarContainer.onselectstart=k,this.menubarContainer.onmousedown=k,this.toolbarContainer.onselectstart=k,this.toolbarContainer.onmousedown=k,this.diagramContainer.onselectstart=k,this.diagramContainer.onmousedown=k,this.sidebarContainer.onselectstart=k,this.sidebarContainer.onmousedown=k,this.formatContainer.onselectstart=k,this.formatContainer.onmousedown=k,this.footerContainer.onselectstart=k,this.footerContainer.onmousedown=k,null!=this.tabContainer&&
+(this.tabContainer.onselectstart=k),mxClient.IS_IOS&&(b=function(){var M=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var V=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{M=[parseInt(V[1],10),parseInt(V[2],10),parseInt(V[3]||0,10)]}catch(aa){}}return M}(),null!=b&&16<=b[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect",
+"none"),mxUtils.setPrefixedStyle(this.formatContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.footerContainer.style,"userSelect","none"),null!=this.tabContainer&&mxUtils.setPrefixedStyle(this.tabContainer.style,"userSelect","none"))));!this.editor.chromeless||this.editor.editable?(b=function(M){if(null!=M){var V=mxEvent.getSource(M);if("A"==V.nodeName)for(;null!=V;){if("geHint"==V.className)return!0;V=V.parentNode}}return k(M)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||
+9>document.documentMode)?mxEvent.addListener(this.diagramContainer,"contextmenu",b):this.diagramContainer.oncontextmenu=b):h.panningHandler.usePopupTrigger=!1;h.init(this.diagramContainer);mxClient.IS_SVG&&null!=h.view.getDrawPane()&&(b=h.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=h.graphHandler){var u=h.graphHandler.start;h.graphHandler.start=function(){null!=f.hoverIcons&&f.hoverIcons.reset();u.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,
+"mousemove",mxUtils.bind(this,function(M){var V=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(M)-V.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(M)-V.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var x=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(M,V){return f.isSpaceDown()||x.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,
+function(M){16==M.which?this.shiftDown=!0:32!=M.which||h.isEditing()?mxEvent.isConsumed(M)||27!=M.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),h.container.style.cursor="move",h.isEditing()||mxEvent.getSource(M)!=h.container||mxEvent.consume(M))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(M){h.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);
+var z=h.panningHandler.isForcePanningEvent;h.panningHandler.isForcePanningEvent=function(M){return z.apply(this,arguments)||f.isSpaceDown()||mxEvent.isMouseEvent(M.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(M.getEvent()))&&(!mxEvent.isControlDown(M.getEvent())&&mxEvent.isRightMouseButton(M.getEvent())||mxEvent.isMiddleMouseButton(M.getEvent()))};var C=h.cellEditor.isStopEditingEvent;h.cellEditor.isStopEditingEvent=function(M){return C.apply(this,arguments)||13==M.keyCode&&(!mxClient.IS_SF&&
+mxEvent.isControlDown(M)||mxClient.IS_MAC&&mxEvent.isMetaDown(M)||mxClient.IS_SF&&mxEvent.isShiftDown(M))};var E=h.isZoomWheelEvent;h.isZoomWheelEvent=function(){return f.isSpaceDown()||E.apply(this,arguments)};var D=!1,G=null,I=null,L=null,T=mxUtils.bind(this,function(){if(null!=this.toolbar&&D!=h.cellEditor.isContentEditing()){for(var M=this.toolbar.container.firstChild,V=[];null!=M;){var aa=M.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,M)&&(M.parentNode.removeChild(M),V.push(M));
+M=aa}M=this.toolbar.fontMenu;aa=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=M;I=aa;L=V}}),K=h.cellEditor.startEditing;h.cellEditor.startEditing=function(){K.apply(this,arguments);T();if(h.cellEditor.isContentEditing()){var M=!1,V=function(){M||(M=!0,window.setTimeout(function(){var aa=h.getSelectedEditingElement();null!=
+aa&&(aa=mxUtils.getCurrentStyle(aa),null!=aa&&null!=f.toolbar&&(f.toolbar.setFontName(mxUtils.getCssFontFamily(aa.fontFamily)),f.toolbar.setFontSize(parseInt(aa.fontSize))));M=!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(M,V){try{U.apply(this,arguments),
+T()}catch(aa){f.handleError(aa)}};h.container.setAttribute("tabindex","0");h.container.style.cursor="default";if(window.self===window.top&&null!=h.container.parentNode)try{h.container.focus()}catch(M){}var Y=h.fireMouseEvent;h.fireMouseEvent=function(M,V,aa){try{M==mxEvent.MOUSE_DOWN&&this.container.focus(),Y.apply(this,arguments)}catch(ia){f.handleError(ia)}};var Q=h.foldCells;h.foldCells=function(M,V,aa,ia,na){try{Q.apply(this,arguments)}catch(qa){f.handleError(qa)}};h.popupMenuHandler.autoExpand=
+!0;null!=this.menus&&(h.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(M,V,aa){this.menus.createPopupMenu(M,V,aa)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(M){h.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};h.connectionHandler.addListener(mxEvent.CONNECT,function(M,V){var aa=[V.getProperty("cell")];V.getProperty("terminalInserted")&&(aa.push(V.getProperty("terminal")),window.setTimeout(function(){null!=
+f.hoverIcons&&f.hoverIcons.update(h.view.getState(aa[aa.length-1]))},0));h.pasteCellStyles(aa)});this.addListener("styleChanged",mxUtils.bind(this,function(M,V){M=V.getProperty("force");(this.updateDefaultStyle||M)&&h.copyCellStyles(V.getProperty("cells"),V.getProperty("keys"),V.getProperty("values"),h.currentVertexStyle,h.currentEdgeStyle,m,p);null!=this.toolbar&&(this.toolbar.setFontName(h.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(h.currentVertexStyle.fontSize||
+Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&(V=this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0],V.style.backgroundPosition="left center",V.style.backgroundRepeat="no-repeat",V.className="geAdaptiveAsset",V.style.height="100%",V.style.width="100%",V.style.backgroundImage="orthogonalEdgeStyle"==h.currentEdgeStyle.edgeStyle&&"1"==h.currentEdgeStyle.curved?"url("+Format.curvedImage.src+")":"straight"==h.currentEdgeStyle.edgeStyle||"none"==h.currentEdgeStyle.edgeStyle||
+null==h.currentEdgeStyle.edgeStyle?"url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==h.currentEdgeStyle.edgeStyle?"url("+Format.entityImage.src+")":"elbowEdgeStyle"==h.currentEdgeStyle.edgeStyle?"vertical"==h.currentEdgeStyle.elbow?"url("+Format.verticalElbowImage.src+")":"url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==h.currentEdgeStyle.edgeStyle?"vertical"==h.currentEdgeStyle.elbow?"url("+Format.verticalIsometricImage.src+")":"url("+Format.horizontalIsometricImage.src+
+")":"url("+Format.orthogonalImage.src+")"),null!=this.toolbar.edgeShapeMenu&&(V=this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0],V.style.backgroundPosition="left center",V.style.backgroundRepeat="no-repeat",V.className="geAdaptiveAsset",V.style.height="100%",V.style.width="100%",V.style.backgroundImage="link"==h.currentEdgeStyle.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==h.currentEdgeStyle.shape?"url("+Format.arrowImage.src+")":"arrow"==h.currentEdgeStyle.shape?"url("+Format.simpleArrowImage.src+
+")":"url("+Format.connectionImage.src+")"))}));null!=this.toolbar&&(a=mxUtils.bind(this,function(){var M=h.currentVertexStyle.fontFamily||"Helvetica",V=String(h.currentVertexStyle.fontSize||"12"),aa=h.getView().getState(h.getSelectionCell());null!=aa&&(M=aa.style[mxConstants.STYLE_FONTFAMILY]||M,V=aa.style[mxConstants.STYLE_FONTSIZE]||V,10<M.length&&(M=M.substring(0,8)+"..."));this.toolbar.setFontName(M);this.toolbar.setFontSize(V)}),h.getSelectionModel().addListener(mxEvent.CHANGE,a),h.getModel().addListener(mxEvent.CHANGE,
+a));h.addListener(mxEvent.CELLS_ADDED,function(M,V){M=V.getProperty("cells");V=V.getProperty("parent");null!=V&&h.getModel().isLayer(V)&&!h.isCellVisible(V)&&null!=M&&0<M.length&&h.getModel().setVisible(V,!0)});Graph.selectParentLayer&&h.selectionModel.addListener(mxEvent.CHANGE,function(){if(h.isEnabled()&&!h.isSelectionEmpty()){var M=h.getLayerForCells(h.getSelectionCells());null!=M&&h.setDefaultParent(M)}});this.gestureHandler=mxUtils.bind(this,function(M){null!=this.currentMenu&&mxEvent.getSource(M)!=
+this.currentMenu.div&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var P=null;this.resizeHandler=mxUtils.bind(this,function(){null!=P&&window.clearTimeout(P);P=window.setTimeout(mxUtils.bind(this,function(){P=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&
+!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){h.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){h.view.validateBackground()}));h.addListener("gridSizeChanged",
+mxUtils.bind(this,function(){h.isGridEnabled()&&h.view.validateBackground()}));this.editor.resetGraph()}this.init();h.standalone||this.open()};EditorUi.compactUi=!0;
+EditorUi.parsePng=function(a,b,e){function f(m,p){var k=d;d+=p;return m.substring(k,d)}function h(m){m=f(m,4);return m.charCodeAt(3)+(m.charCodeAt(2)<<8)+(m.charCodeAt(1)<<16)+(m.charCodeAt(0)<<24)}var d=0;if(f(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(f(a,4),"IHDR"!=f(a,4))null!=e&&e();else{f(a,17);do{e=h(a);var g=f(a,4);if(null!=b&&b(d-8,g,e))break;value=f(a,e);f(a,4);if("IEND"==g)break}while(e)}};mxUtils.extend(EditorUi,mxEventSource);
EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.menubarHeight=30;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.toolbarHeight=38;EditorUi.prototype.footerHeight=28;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?212:240);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;
EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;EditorUi.prototype.hsplitClickEnabled=!1;EditorUi.prototype.updateDefaultStyle=!1;EditorUi.prototype.spaceDown=!1;EditorUi.prototype.shiftDown=!1;
EditorUi.prototype.init=function(){var a=this.editor.graph;if(!a.standalone){"0"!=urlParams["shape-picker"]&&this.installShapePicker();mxEvent.addListener(a.container,"scroll",mxUtils.bind(this,function(){a.tooltipHandler.hide();null!=a.connectionHandler&&null!=a.connectionHandler.constraintHandler&&a.connectionHandler.constraintHandler.reset()}));a.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){a.tooltipHandler.hide();var f=a.getRubberband();null!=f&&f.cancel()}));mxEvent.addListener(a.container,
@@ -2098,30 +2109,31 @@ EditorUi.prototype.init=function(){var a=this.editor.graph;if(!a.standalone){"0"
arguments);e.updateActionStates()};a.showLinkDialog=mxUtils.bind(e,e.showLinkDialog);a.editLink=e.actions.get("editLink").funct;this.updateActionStates();this.initClipboard();this.initCanvas();null!=this.format&&this.format.init()}};EditorUi.prototype.clearSelectionState=function(){this.selectionState=null};EditorUi.prototype.getSelectionState=function(){null==this.selectionState&&(this.selectionState=this.createSelectionState());return this.selectionState};
EditorUi.prototype.createSelectionState=function(){for(var a=this.editor.graph,b=a.getSelectionCells(),e=this.initSelectionState(),f=!0,h=0;h<b.length;h++){var d=a.getCurrentCellStyle(b[h]);"0"!=mxUtils.getValue(d,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(e,b[h],b,f),f=!1)}this.updateSelectionStateForTableCells(e);return e};
EditorUi.prototype.initSelectionState=function(){return{vertices:[],edges:[],cells:[],x:null,y:null,width:null,height:null,style:{},containsImage:!1,containsLabel:!1,fill:!0,glass:!0,html:!0,rounded:!0,autoSize:!1,image:!1,shadow:!0,lineJumps:!0,resizable:!0,table:!1,cell:!1,row:!1,movable:!0,rotatable:!0,stroke:!0,swimlane:!1,unlocked:this.editor.graph.isEnabled(),connections:!1}};
-EditorUi.prototype.updateSelectionStateForTableCells=function(a){if(1<a.cells.length&&a.cell){var b=mxUtils.sortCells(a.cells),e=this.editor.graph.model,f=e.getParent(b[0]),h=e.getParent(f);if(null!=f&&null!=h){for(var d=f.getIndex(b[0]),g=h.getIndex(f),m=null,q=1,k=1,u=0,w=g<h.getChildCount()-1?e.getChildAt(e.getChildAt(h,g+1),d):null;u<b.length-1;){var z=b[++u];null==w||w!=z||null!=m&&q!=m||(m=q,q=0,k++,f=e.getParent(w),w=g+k<h.getChildCount()?e.getChildAt(e.getChildAt(h,g+k),d):null);var C=this.editor.graph.view.getState(z);
-if(z==e.getChildAt(f,d+q)&&null!=C&&1==mxUtils.getValue(C.style,"colspan",1)&&1==mxUtils.getValue(C.style,"rowspan",1))q++;else break}u==k*q-1&&(a.mergeCell=b[0],a.colspan=q,a.rowspan=k)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
+EditorUi.prototype.updateSelectionStateForTableCells=function(a){if(1<a.cells.length&&a.cell){var b=mxUtils.sortCells(a.cells),e=this.editor.graph.model,f=e.getParent(b[0]),h=e.getParent(f);if(null!=f&&null!=h){for(var d=f.getIndex(b[0]),g=h.getIndex(f),m=null,p=1,k=1,u=0,x=g<h.getChildCount()-1?e.getChildAt(e.getChildAt(h,g+1),d):null;u<b.length-1;){var z=b[++u];null==x||x!=z||null!=m&&p!=m||(m=p,p=0,k++,f=e.getParent(x),x=g+k<h.getChildCount()?e.getChildAt(e.getChildAt(h,g+k),d):null);var C=this.editor.graph.view.getState(z);
+if(z==e.getChildAt(f,d+p)&&null!=C&&1==mxUtils.getValue(C.style,"colspan",1)&&1==mxUtils.getValue(C.style,"rowspan",1))p++;else break}u==k*p-1&&(a.mergeCell=b[0],a.colspan=p,a.rowspan=k)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
EditorUi.prototype.createTimeout=function(a,b,e){var f=!0,h=null,d=mxUtils.bind(this,function(m){h.clear()&&(f=!1,m=null!=m?m:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(a,b,e)})},null!=e?e(m):this.handleError(m))}),g=window.setTimeout(d,null!=a?a:this.timeout);h={clear:function(){window.clearTimeout(g);return f},isAlive:function(){return f}};null!=b&&this.tryAndHandle(mxUtils.bind(this,function(){b(h)}),d);return h};
EditorUi.prototype.tryAndHandle=function(a,b){try{a()}catch(e){null!=b?b(e):this.handleError(e)}};
-EditorUi.prototype.removeUserDefinedDarkColors=function(a,b,e){var f=this.editor.graph;a=null!=a?a:f.getSelectionCells();var h=Graph.colorStyles,d=document.createElement("div");f.model.beginUpdate();try{for(var g=0;g<a.length;g++)if(f.model.isEdge(a[g])||f.model.isVertex(a[g])){var m=f.getCellStyle(a[g],!1);if(null!=m)for(var q=0;q<h.length;q++)try{var k=m[h[q]];if(mxUtils.isLightDarkColor(k)){var u=mxUtils.getLightDarkColor(k);f.setCellStyles(h[q],u.light,[a[g]])}}catch(z){}b&&f.isHtmlLabel(a[g])&&
-"0"!=mxUtils.getValue(m,"html","0")&&(d.innerHTML=Graph.sanitizeHtml(f.getLabel(a[g])),Graph.addLightDarkColors(d,null,null,function(z,C,E){return mxUtils.isLightDarkColor(E)?(E=mxUtils.getLightDarkColor(E),z.style.setProperty(C,E.light),!0):!1})&&f.cellLabelChanged(a[g],d.innerHTML))}if(e&&mxUtils.isLightDarkColor(f.background)){u=mxUtils.getLightDarkColor(f.background);var w=new ChangePageSetup(this,u.light);w.ignoreImage=!0;f.model.execute(w)}}finally{f.model.endUpdate()}return a};
+EditorUi.prototype.removeUserDefinedDarkColors=function(a,b,e){var f=this.editor.graph;a=null!=a?a:f.getSelectionCells();var h=Graph.colorStyles,d=document.createElement("div");f.model.beginUpdate();try{for(var g=0;g<a.length;g++)if(f.model.isEdge(a[g])||f.model.isVertex(a[g])){var m=f.getCellStyle(a[g],!1);if(null!=m)for(var p=0;p<h.length;p++)try{var k=m[h[p]];if(mxUtils.isLightDarkColor(k)){var u=mxUtils.getLightDarkColor(k);f.setCellStyles(h[p],u.light,[a[g]])}}catch(z){}b&&f.isHtmlLabel(a[g])&&
+"0"!=mxUtils.getValue(m,"html","0")&&(d.innerHTML=Graph.sanitizeHtml(f.getLabel(a[g])),Graph.addLightDarkColors(d,null,null,function(z,C,E){return mxUtils.isLightDarkColor(E)?(E=mxUtils.getLightDarkColor(E),z.style.setProperty(C,E.light),!0):!1})&&f.cellLabelChanged(a[g],d.innerHTML))}if(e&&mxUtils.isLightDarkColor(f.background)){u=mxUtils.getLightDarkColor(f.background);var x=new ChangePageSetup(this,u.light);x.ignoreImage=!0;f.model.execute(x)}}finally{f.model.endUpdate()}return a};
EditorUi.prototype.updateSelectionStateForCell=function(a,b,e,f){e=this.editor.graph;a.cells.push(b);if(e.getModel().isVertex(b)){a.connections=0<e.model.getEdgeCount(b);a.unlocked=a.unlocked&&!e.isCellLocked(b);a.resizable=a.resizable&&e.isCellResizable(b);a.rotatable=a.rotatable&&e.isCellRotatable(b);a.movable=a.movable&&e.isCellMovable(b)&&!e.isTableRow(b)&&!e.isTableCell(b);a.swimlane=a.swimlane||e.isSwimlane(b);a.table=a.table||e.isTable(b);a.cell=a.cell||e.isTableCell(b);a.row=a.row||e.isTableRow(b);
a.vertices.push(b);var h=e.getCellGeometry(b);if(null!=h&&(0<h.width?null==a.width?a.width=h.width:a.width!=h.width&&(a.width=""):a.containsLabel=!0,0<h.height?null==a.height?a.height=h.height:a.height!=h.height&&(a.height=""):a.containsLabel=!0,!h.relative||null!=h.offset)){var d=h.relative?h.offset.x:h.x;h=h.relative?h.offset.y:h.y;null==a.x?a.x=d:a.x!=d&&(a.x="");null==a.y?a.y=h:a.y!=h&&(a.y="")}}else e.getModel().isEdge(b)&&(a.edges.push(b),a.connections=!0,a.resizable=!1,a.rotatable=!1,a.movable=
!1);d=e.view.getState(b);null!=d&&(a.html=a.html&&e.isHtmlLabel(b),a.autoSize=a.autoSize||e.isAutoSizeState(d),a.glass=a.glass&&e.isGlassState(d),a.rounded=a.rounded&&e.isRoundedState(d),a.lineJumps=a.lineJumps&&e.isLineJumpState(d),a.image=a.image||e.isImageState(d),a.shadow=a.shadow&&e.isShadowState(d),a.fill=a.fill&&e.isFillState(d),a.gradient=a.fill&&e.isGradientState(d),a.stroke=a.stroke&&e.isStrokeState(d),b=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE,null),a.containsImage=a.containsImage||
"image"==b,e.mergeStyle(d.style,a.style,f))};
-EditorUi.prototype.installShapePicker=function(){var a=this.editor.graph,b=this;a.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(q,k){"mouseDown"==k.getProperty("eventName")&&b.hideShapePicker()}));var e=mxUtils.bind(this,function(){b.hideShapePicker(!0)});a.addListener("wheel",e);a.addListener(mxEvent.ESCAPE,e);a.view.addListener(mxEvent.SCALE,e);a.view.addListener(mxEvent.SCALE_AND_TRANSLATE,e);a.getSelectionModel().addListener(mxEvent.CHANGE,e);var f=a.popupMenuHandler.isMenuShowing;
-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(I){null!=I&&a.connectVertex(D,w,a.defaultEdgeLength,z,!0,!1,function(L,T,K){K(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.installShapePicker=function(){var a=this.editor.graph,b=this;a.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(p,k){"mouseDown"==k.getProperty("eventName")&&b.hideShapePicker()}));var e=mxUtils.bind(this,function(){b.hideShapePicker(!0)});a.addListener("wheel",e);a.addListener(mxEvent.ESCAPE,e);a.view.addListener(mxEvent.SCALE,e);a.view.addListener(mxEvent.SCALE_AND_TRANSLATE,e);a.getSelectionModel().addListener(mxEvent.CHANGE,e);var f=a.popupMenuHandler.isMenuShowing;
+a.popupMenuHandler.isMenuShowing=function(){return f.apply(this,arguments)||null!=b.shapePicker||null!=b.currentMenu};var h=a.dblClick;a.dblClick=function(p,k){if(this.isEnabled())if(null!=k||null==b.sidebar||mxEvent.isShiftDown(p)||a.isCellLocked(a.getDefaultParent()))h.apply(this,arguments);else{var u=mxUtils.convertPoint(this.container,mxEvent.getClientX(p),mxEvent.getClientY(p));mxEvent.consume(p);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(p,k,u){var x=u.getEvent();this.graph.isCloneEvent(x)||mxEvent.isShiftDown(x)?g.apply(this,arguments):this.graph.connectVertex(p.cell,k,this.graph.defaultEdgeLength,x,null,null,mxUtils.bind(this,function(z,C,E){var D=a.getCompositeParent(p.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,x,this)}))};var m=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m);m=window.setTimeout(mxUtils.bind(this,function(){var u=
+k.getProperty("arrow"),x=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,x,a.defaultEdgeLength,z,!0,!1,function(L,T,K){K(I);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(I))},
+function(L){a.selectCellsForConnectVertex(L)},z,this.hoverIcons)}),x,!0);null!=G&&(this.centerShapePicker(G,u,E,C,x),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(p,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,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="geItem";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 T=w.cloneCell(D);if(null!=f)f(T);else{var K=q([T]);w.model.isEdge(T)?T.geometry.translate(K.x,K.y):(T.geometry.x=K.x,T.geometry.y=K.y);w.model.beginUpdate();try{w.addCell(T),w.model.isVertex(T)&&w.isAutoSizeCell(T)&&w.updateCellSize(T)}finally{w.model.endUpdate()}w.setSelectionCell(T);w.scrollCellToVisible(T);u&&w.startEditing(T);null!=C.hoverIcons&&C.hoverIcons.update(w.view.getState(T))}}else T=
-w.getEditableCells(null!=e?[e]:w.getSelectionCells()),w.updateShapes(D,T);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=
+EditorUi.prototype.showShapePicker=function(a,b,e,f,h,d,g,m,p){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,p),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,p,k,u){u=null!=u?u:!0;var x=this.editor.graph,z=null;p=null!=p?p:function(D){D=D[0];var G=0,I=0,L=D.geometry;null!=L&&(x.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(x.snap(Math.round(a/x.view.scale)-x.view.translate.x-G),x.snap(Math.round(b/x.view.scale)-x.view.translate.y-I))};if(null!=g&&0<g.length){var C=this;x=this.editor.graph;z=document.createElement("div");
+h=x.view.getState(e);var E=null==e||null!=h&&x.isTransparentState(h)?null:x.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)");x.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],x.currentVertexStyle,x.currentEdgeStyle);var I=D.geometry;x.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&&x.isSelectionEmpty()){var T=x.cloneCell(D);if(null!=f)f(T);else{var K=p([T]);x.model.isEdge(T)?T.geometry.translate(K.x,K.y):(T.geometry.x=K.x,T.geometry.y=K.y);x.model.beginUpdate();try{x.addCell(T),x.model.isVertex(T)&&x.isAutoSizeCell(T)&&x.updateCellSize(T)}finally{x.model.endUpdate()}x.setSelectionCell(T);x.scrollCellToVisible(T);u&&
+x.startEditing(T);null!=C.hoverIcons&&C.hoverIcons.update(x.view.getState(T))}}else T=x.getEditableCells(null!=e?[e]:x.getSelectionCells()),x.updateShapes(D,T);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-(x.container.scrollTop+x.container.offsetHeight);0<g&&(z.style.top=Math.max(x.container.scrollTop+22,b-g)+"px");g=z.offsetLeft+z.clientWidth-(x.container.scrollLeft+x.container.offsetWidth);0<g&&(z.style.left=
+Math.max(x.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,p){return f.createVertex(null,null,p||"",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=
!0;return d});if(null!=a)try{a=f.cloneCell(a),f.model.isVertex(a)&&null!=a.geometry&&(a.geometry.x=0,a.geometry.y=0)}catch(d){a=null}null==a&&(a=h(f.appendFontSize("text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;",f.vertexFontSize),40,20,"Text"),f.model.isVertex(a)&&f.isAutoSizeCell(a)&&Graph.createOffscreenGraph(f.getStylesheet()).updateCellSize(a));a=[a,h("whiteSpace=wrap;html=1;"),h("ellipse;whiteSpace=wrap;html=1;",80,80),h("rhombus;whiteSpace=wrap;html=1;",
80,80),h("rounded=1;whiteSpace=wrap;html=1;"),h("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),h("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),h("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),h("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),h("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),h("triangle;whiteSpace=wrap;html=1;",
60,80),h("shape=document;whiteSpace=wrap;html=1;boundedLbl=1;",120,80),h("shape=tape;whiteSpace=wrap;html=1;",120,100),h("ellipse;shape=cloud;whiteSpace=wrap;html=1;",120,80),h("shape=singleArrow;whiteSpace=wrap;html=1;arrowWidth=0.4;arrowSize=0.4;",80,60),h("shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;",20,20)];e&&(a=a.concat([b("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),b("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;endArrow=classic;startArrow=classic;endSize=8;startSize=8;"),
@@ -2130,30 +2142,30 @@ EditorUi.prototype.hideShapePicker=function(a){null!=this.shapePicker&&(this.sha
EditorUi.prototype.onKeyDown=function(a){var b=this.editor.graph;if(9==a.which&&b.isEnabled()&&!mxEvent.isControlDown(a)){if(b.isEditing())if(mxEvent.isAltDown(a))b.stopEditing(!1);else try{var e=b.cellEditor.isContentEditing()&&b.cellEditor.isTextSelected();if(window.getSelection&&b.cellEditor.isContentEditing()&&!e&&!mxClient.IS_IE&&!mxClient.IS_IE11){var f=window.getSelection(),h=0<f.rangeCount?f.getRangeAt(0).commonAncestorContainer:null;e=null!=h&&("LI"==h.nodeName||null!=h.parentNode&&"LI"==
h.parentNode.nodeName)}e?document.execCommand(mxEvent.isShiftDown(a)?"outdent":"indent",!1,null):mxEvent.isShiftDown(a)?b.stopEditing(!1):b.cellEditor.insertTab(b.cellEditor.isContentEditing()?null:4)}catch(d){}else mxEvent.isAltDown(a)?b.selectParentCell():b.selectCell(!mxEvent.isShiftDown(a));mxEvent.consume(a)}};
EditorUi.prototype.onKeyPress=function(a){var b=this.editor.graph;!this.isImmediateEditingEvent(a)||b.isEditing()||b.isSelectionEmpty()||0===a.which||27===a.which||mxEvent.isAltDown(a)||mxEvent.isControlDown(a)||mxEvent.isMetaDown(a)||(b.escape(),b.startEditing(null,String.fromCharCode(a.which)))};EditorUi.prototype.isImmediateEditingEvent=function(a){return!0};
-EditorUi.prototype.updateCssForMarker=function(a,b,e,f,h){a.style.display="inline-flex";a.style.alignItems="center";a.style.justifyContent="center";a.innerText="";"flexArrow"==e?a.className=null!=f&&f!=mxConstants.NONE?"geSprite geSprite-"+b+"blocktrans":"geSprite geSprite-noarrow":(e=this.getImageForMarker(f,h),null!=e?(f=document.createElement("img"),f.className="geAdaptiveAsset",f.setAttribute("src",e),a.className="","end"==b&&mxUtils.setPrefixedStyle(f.style,"transform","scaleX(-1)"),a.appendChild(f)):
-(a.className="geSprite geSprite-noarrow",a.innerHTML=mxUtils.htmlEntities(mxResources.get("none")),a.style.backgroundImage="none",a.style.fontSize="11px",a.style.filter="none"))};
-EditorUi.prototype.getImageForMarker=function(a,b){var e=null;a==mxConstants.ARROW_CLASSIC?e="1"!=b?Format.classicMarkerImage.src:Format.classicFilledMarkerImage.src:a==mxConstants.ARROW_CLASSIC_THIN?e="1"!=b?Format.classicThinMarkerImage.src:Format.openThinFilledMarkerImage.src:a==mxConstants.ARROW_OPEN?e=Format.openFilledMarkerImage.src:a==mxConstants.ARROW_OPEN_THIN?e=Format.openThinFilledMarkerImage.src:a==mxConstants.ARROW_BLOCK?e="1"!=b?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:
-a==mxConstants.ARROW_BLOCK_THIN?e="1"!=b?Format.blockThinMarkerImage.src:Format.blockThinFilledMarkerImage.src:a==mxConstants.ARROW_OVAL?e="1"!=b?Format.ovalMarkerImage.src:Format.ovalFilledMarkerImage.src:a==mxConstants.ARROW_DIAMOND?e="1"!=b?Format.diamondMarkerImage.src:Format.diamondFilledMarkerImage.src:a==mxConstants.ARROW_DIAMOND_THIN?e="1"!=b?Format.diamondThinMarkerImage.src:Format.diamondThinFilledMarkerImage.src:"doubleBlock"==a?e="1"!=b?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:
-"box"==a?e=Format.boxMarkerImage.src:"halfCircle"==a?e=Format.halfCircleMarkerImage.src:"openAsync"==a?e=Format.openAsyncFilledMarkerImage.src:"async"==a?e="1"!=b?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==a?e=Format.dashMarkerImage.src:"baseDash"==a?e=Format.baseDashMarkerImage.src:"cross"==a?e=Format.crossMarkerImage.src:"circle"==a?e=Format.circleMarkerImage.src:"circlePlus"==a?e=Format.circlePlusMarkerImage.src:"ERone"==a?e=Format.EROneMarkerImage.src:"ERmandOne"==a?
-e=Format.ERmandOneMarkerImage.src:"ERmany"==a?e=Format.ERmanyMarkerImage.src:"ERoneToMany"==a?e=Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==a?e=Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==a&&(e=Format.ERzeroToManyMarkerImage.src);return e};EditorUi.prototype.createMenus=function(){return null};
+EditorUi.prototype.updateCssForMarker=function(a,b,e,f,h){a.style.display="inline-flex";a.style.alignItems="center";a.style.justifyContent="center";a.innerText="";e=this.getImageForMarker(f,h,e);null==e?(a.innerHTML=mxUtils.htmlEntities(mxResources.get("none")),a.style.backgroundImage="none",a.style.fontSize="11px",a.style.filter="none"):(f=document.createElement("img"),f.className="geAdaptiveAsset",f.setAttribute("src",e),a.className="","end"==b&&mxUtils.setPrefixedStyle(f.style,"transform","scaleX(-1)"),
+a.appendChild(f))};
+EditorUi.prototype.getImageForMarker=function(a,b,e){return"flexArrow"==e?null!=a&&a!=mxConstants.NONE?Format.blockMarkerImage.src:null:a==mxConstants.ARROW_CLASSIC?"1"!=b?Format.classicMarkerImage.src:Format.classicFilledMarkerImage.src:a==mxConstants.ARROW_CLASSIC_THIN?"1"!=b?Format.classicThinMarkerImage.src:Format.openThinFilledMarkerImage.src:a==mxConstants.ARROW_OPEN?Format.openFilledMarkerImage.src:a==mxConstants.ARROW_OPEN_THIN?Format.openThinFilledMarkerImage.src:a==mxConstants.ARROW_BLOCK?"1"!=
+b?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:a==mxConstants.ARROW_BLOCK_THIN?"1"!=b?Format.blockThinMarkerImage.src:Format.blockThinFilledMarkerImage.src:a==mxConstants.ARROW_OVAL?"1"!=b?Format.ovalMarkerImage.src:Format.ovalFilledMarkerImage.src:a==mxConstants.ARROW_DIAMOND?"1"!=b?Format.diamondMarkerImage.src:Format.diamondFilledMarkerImage.src:a==mxConstants.ARROW_DIAMOND_THIN?"1"!=b?Format.diamondThinMarkerImage.src:Format.diamondThinFilledMarkerImage.src:"doubleBlock"==a?"1"!=
+b?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:"box"==a?Format.boxMarkerImage.src:"halfCircle"==a?Format.halfCircleMarkerImage.src:"openAsync"==a?Format.openAsyncFilledMarkerImage.src:"async"==a?"1"!=b?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==a?Format.dashMarkerImage.src:"baseDash"==a?Format.baseDashMarkerImage.src:"cross"==a?Format.crossMarkerImage.src:"circle"==a?Format.circleMarkerImage.src:"circlePlus"==a?Format.circlePlusMarkerImage.src:
+"ERone"==a?Format.EROneMarkerImage.src:"ERmandOne"==a?Format.ERmandOneMarkerImage.src:"ERmany"==a?Format.ERmanyMarkerImage.src:"ERoneToMany"==a?Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==a?Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==a?Format.ERzeroToManyMarkerImage.src:null};EditorUi.prototype.createMenus=function(){return null};
EditorUi.prototype.updatePasteActionStates=function(){var a=this.editor.graph,b=this.actions.get("paste"),e=this.actions.get("pasteHere");b.setEnabled(this.editor.graph.cellEditor.isContentEditing()||(!mxClient.IS_FF&&null!=navigator.clipboard||!mxClipboard.isEmpty())&&a.isEnabled()&&!a.isCellLocked(a.getDefaultParent()));e.setEnabled(b.isEnabled())};
-EditorUi.prototype.initClipboard=function(){var a=this,b=mxClipboard.cut;mxClipboard.cut=function(d){d.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):b.apply(this,arguments);a.updatePasteActionStates()};mxClipboard.copy=function(d){var g=null;if(d.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{g=g||d.getSelectionCells();g=d.getExportableCells(d.model.getTopmostCells(g));for(var m={},q=d.createCellLookup(g),k=d.cloneCells(g,null,m),u=new mxGraphModel,w=u.getChildAt(u.getRoot(),
-0),z=0;z<k.length;z++){u.add(w,k[z]);var C=d.view.getState(g[z]);if(null!=C){var E=d.getCellGeometry(k[z]);null!=E&&E.relative&&!u.isEdge(g[z])&&null==q[mxObjectIdentity.get(u.getParent(g[z]))]&&(E.offset=null,E.relative=!1,E.x=C.x/C.view.scale-C.view.translate.x,E.y=C.y/C.view.scale-C.view.translate.y)}}d.updateCustomLinks(d.createCellMapping(m,q),k);mxClipboard.insertCount=1;mxClipboard.setCells(k)}a.updatePasteActionStates();return g};var e=mxClipboard.paste;mxClipboard.paste=function(d){var g=
+EditorUi.prototype.initClipboard=function(){var a=this,b=mxClipboard.cut;mxClipboard.cut=function(d){d.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):b.apply(this,arguments);a.updatePasteActionStates()};mxClipboard.copy=function(d){var g=null;if(d.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{g=g||d.getSelectionCells();g=d.getExportableCells(d.model.getTopmostCells(g));for(var m={},p=d.createCellLookup(g),k=d.cloneCells(g,null,m),u=new mxGraphModel,x=u.getChildAt(u.getRoot(),
+0),z=0;z<k.length;z++){u.add(x,k[z]);var C=d.view.getState(g[z]);if(null!=C){var E=d.getCellGeometry(k[z]);null!=E&&E.relative&&!u.isEdge(g[z])&&null==p[mxObjectIdentity.get(u.getParent(g[z]))]&&(E.offset=null,E.relative=!1,E.x=C.x/C.view.scale-C.view.translate.x,E.y=C.y/C.view.scale-C.view.translate.y)}}d.updateCustomLinks(d.createCellMapping(m,p),k);mxClipboard.insertCount=1;mxClipboard.setCells(k)}a.updatePasteActionStates();return g};var e=mxClipboard.paste;mxClipboard.paste=function(d){var g=
null;d.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):g=e.apply(this,arguments);a.updatePasteActionStates();return g};var f=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){f.apply(this,arguments);a.updatePasteActionStates()};var h=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(d,g){h.apply(this,arguments);a.updatePasteActionStates()};this.updatePasteActionStates()};
EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=500;EditorUi.prototype.buttonZoomDelay=600;
EditorUi.prototype.initCanvas=function(){var a=this.editor.graph;a.timerAutoScroll=!0;a.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((a.container.offsetWidth-34)/a.view.scale)),Math.max(0,Math.round((a.container.offsetHeight-34)/a.view.scale)))};a.view.getBackgroundPageBounds=function(){var H=this.graph.getPageLayout(),ea=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+H.x*ea.width),this.scale*(this.translate.y+H.y*ea.height),this.scale*H.width*ea.width,
-this.scale*H.height*ea.height)};a.getPreferredPageSize=function(H,ea,la){H=this.getPageLayout();ea=this.getPageSize();return new mxRectangle(0,0,H.width*ea.width,H.height*ea.height)};var b=null,e=this;if(this.editor.isChromelessView()){this.chromelessResize=b=mxUtils.bind(this,function(H,ea,la,sa){if(null!=a.container&&!a.isViewer()){la=null!=la?la:0;sa=null!=sa?sa:0;var Pa=a.pageVisible?a.view.getBackgroundPageBounds():a.getGraphBounds(),ma=mxUtils.hasScrollbars(a.container),Ca=a.view.translate,
-Da=a.view.scale,Ga=mxRectangle.fromRectangle(Pa);Ga.x=Ga.x/Da-Ca.x;Ga.y=Ga.y/Da-Ca.y;Ga.width/=Da;Ga.height/=Da;Ca=a.container.scrollTop;var Ia=a.container.scrollLeft,Ha=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)Ha+=3;var Ja=a.container.offsetWidth-Ha;Ha=a.container.offsetHeight-Ha;H=H?Math.max(.3,Math.min(ea||1,Ja/Ga.width)):Da;ea=(Ja-H*Ga.width)/2/H;var ta=0==this.lightboxVerticalDivider?0:(Ha-H*Ga.height)/this.lightboxVerticalDivider/H;ma&&(ea=Math.max(ea,
-0),ta=Math.max(ta,0));if(ma||Pa.width<Ja||Pa.height<Ha)a.view.scaleAndTranslate(H,Math.floor(ea-Ga.x),Math.floor(ta-Ga.y)),a.container.scrollTop=Ca*H/Da,a.container.scrollLeft=Ia*H/Da;else if(0!=la||0!=sa)Pa=a.view.translate,a.view.setTranslate(Math.floor(Pa.x+la/Da),Math.floor(Pa.y+sa/Da))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var f=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",f);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
+this.scale*H.height*ea.height)};a.getPreferredPageSize=function(H,ea,oa){H=this.getPageLayout();ea=this.getPageSize();return new mxRectangle(0,0,H.width*ea.width,H.height*ea.height)};var b=null,e=this;if(this.editor.isChromelessView()){this.chromelessResize=b=mxUtils.bind(this,function(H,ea,oa,sa){if(null!=a.container&&!a.isViewer()){oa=null!=oa?oa:0;sa=null!=sa?sa:0;var Pa=a.pageVisible?a.view.getBackgroundPageBounds():a.getGraphBounds(),la=mxUtils.hasScrollbars(a.container),Ba=a.view.translate,
+Ca=a.view.scale,Fa=mxRectangle.fromRectangle(Pa);Fa.x=Fa.x/Ca-Ba.x;Fa.y=Fa.y/Ca-Ba.y;Fa.width/=Ca;Fa.height/=Ca;Ba=a.container.scrollTop;var Ia=a.container.scrollLeft,Ha=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)Ha+=3;var Ja=a.container.offsetWidth-Ha;Ha=a.container.offsetHeight-Ha;H=H?Math.max(.3,Math.min(ea||1,Ja/Fa.width)):Ca;ea=(Ja-H*Fa.width)/2/H;var ta=0==this.lightboxVerticalDivider?0:(Ha-H*Fa.height)/this.lightboxVerticalDivider/H;la&&(ea=Math.max(ea,
+0),ta=Math.max(ta,0));if(la||Pa.width<Ja||Pa.height<Ha)a.view.scaleAndTranslate(H,Math.floor(ea-Fa.x),Math.floor(ta-Fa.y)),a.container.scrollTop=Ba*H/Ca,a.container.scrollLeft=Ia*H/Ca;else if(0!=oa||0!=sa)Pa=a.view.translate,a.view.setTranslate(Math.floor(Pa.x+oa/Ca),Math.floor(Pa.y+sa/Ca))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var f=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",f);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
"resize",f)});this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(H){a.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(H){a.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var h=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));this.chromelessToolbar=document.createElement("div");this.chromelessToolbar.style.position=
"fixed";this.chromelessToolbar.style.overflow="hidden";this.chromelessToolbar.style.boxSizing="border-box";this.chromelessToolbar.style.whiteSpace="nowrap";this.chromelessToolbar.style.padding="10px 10px 8px 10px";this.chromelessToolbar.style.left=a.isViewer()?"0":"50%";mxClient.IS_IE||mxClient.IS_IE11?(this.chromelessToolbar.style.backgroundColor="#ffffff",this.chromelessToolbar.style.border="3px solid black"):this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,
-"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var d=mxUtils.bind(this,function(){var H=mxUtils.getCurrentStyle(a.container);a.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=H?parseInt(H["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",d);d();var g=0;d=mxUtils.bind(this,function(H,ea,la){g++;
-var sa=document.createElement("span");sa.style.paddingLeft="8px";sa.style.paddingRight="8px";sa.style.cursor="pointer";mxEvent.addListener(sa,"click",H);null!=la&&sa.setAttribute("title",la);H=document.createElement("img");H.setAttribute("border","0");H.setAttribute("src",ea);H.style.width="36px";H.style.filter="invert(100%)";sa.appendChild(H);this.chromelessToolbar.appendChild(sa);return sa});if(null!=h.backBtn){var m=Graph.sanitizeLink(h.backBtn.url);null!=m&&d(mxUtils.bind(this,function(H){window.location.href=
-m;mxEvent.consume(H)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var q=d(mxUtils.bind(this,function(H){this.actions.get("previousPage").funct();mxEvent.consume(H)}),Editor.previousImage,mxResources.get("previousPage")),k=document.createElement("div");k.style.fontFamily=Editor.defaultHtmlFont;k.style.display="inline-block";k.style.verticalAlign="top";k.style.fontWeight="bold";k.style.marginTop="8px";k.style.fontSize="14px";k.style.cursor="default";k.style.color=
-mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(k);var u=d(mxUtils.bind(this,function(H){this.actions.get("nextPage").funct();mxEvent.consume(H)}),Editor.nextImage,mxResources.get("nextPage")),w=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){k.innerText="";var H=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(k,H+1+" / "+this.pages.length);k.setAttribute("title",mxResources.get("currentPage")+": "+this.currentPage.getName());
-q.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(H-1,this.pages.length)].getName());u.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(H+1,this.pages.length)].getName())}});q.style.paddingLeft="0px";q.style.paddingRight="4px";u.style.paddingLeft="4px";u.style.paddingRight="0px";var z=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(u.style.display="",q.style.display="",k.style.display="inline-block"):
-(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 la=mxUtils.getOffset(k);ea.popup(la.x,la.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()?
+"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var d=mxUtils.bind(this,function(){var H=mxUtils.getCurrentStyle(a.container);a.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=H?parseInt(H["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",d);d();var g=0;d=mxUtils.bind(this,function(H,ea,oa){g++;
+var sa=document.createElement("span");sa.style.paddingLeft="8px";sa.style.paddingRight="8px";sa.style.cursor="pointer";mxEvent.addListener(sa,"click",H);null!=oa&&sa.setAttribute("title",oa);H=document.createElement("img");H.setAttribute("border","0");H.setAttribute("src",ea);H.style.width="36px";H.style.filter="invert(100%)";sa.appendChild(H);this.chromelessToolbar.appendChild(sa);return sa});if(null!=h.backBtn){var m=Graph.sanitizeLink(h.backBtn.url);null!=m&&d(mxUtils.bind(this,function(H){window.location.href=
+m;mxEvent.consume(H)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var p=d(mxUtils.bind(this,function(H){this.actions.get("previousPage").funct();mxEvent.consume(H)}),Editor.previousImage,mxResources.get("previousPage")),k=document.createElement("div");k.style.fontFamily=Editor.defaultHtmlFont;k.style.display="inline-block";k.style.verticalAlign="top";k.style.fontWeight="bold";k.style.marginTop="8px";k.style.fontSize="14px";k.style.cursor="default";k.style.color=
+mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(k);var u=d(mxUtils.bind(this,function(H){this.actions.get("nextPage").funct();mxEvent.consume(H)}),Editor.nextImage,mxResources.get("nextPage")),x=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){k.innerText="";var H=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(k,H+1+" / "+this.pages.length);k.setAttribute("title",mxResources.get("currentPage")+": "+this.currentPage.getName());
+p.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(H-1,this.pages.length)].getName());u.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(H+1,this.pages.length)].getName())}});p.style.paddingLeft="0px";p.style.paddingRight="4px";u.style.paddingLeft="4px";u.style.paddingRight="0px";var z=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(u.style.display="",p.style.display="",k.style.display="inline-block"):
+(u.style.display="none",p.style.display="none",k.style.display="none");x()});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 oa=mxUtils.getOffset(k);ea.popup(oa.x,oa.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",x)}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)}),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=
@@ -2164,20 +2176,20 @@ U?window.location.href=U:window.location.reload();mxEvent.consume(H)}),Editor.re
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)||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 Q=a.view.validate,P=new mxPoint,M=!1,W=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=e.currentPage&&W!=e.currentPage){W=e.currentPage;M=!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,P,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 la=a.getPageSize();H=ea.x-(this.x0||0)*la.width;ea=ea.y-(this.y0||0)*la.height;if(this.translate.x!=H||this.translate.y!=ea)this.invalidate(),this.translate.x=H,this.translate.y=ea}Q.apply(this,
-arguments)};if(!a.isViewer()){var aa=a.sizeDidChange;a.sizeDidChange=function(){var H=M;M=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var ea=this.getPageLayout(),la=this.getDefaultTranslate(ea),sa=this.view.translate.x,Pa=this.view.translate.y;if(la.x!=sa||la.y!=Pa){this.view.x0=ea.x;this.view.y0=ea.y;this.autoTranslate=!0;this.view.setTranslate(la.x,la.y);this.autoTranslate=!1;H||(this.container.scrollLeft+=Math.round((la.x-
-sa)*this.view.scale),this.container.scrollTop+=Math.round((la.y-Pa)*this.view.scale));return}}aa.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 qa=null,O=null,Z=null,ca=null,V=null,ja=function(H){null!=qa&&window.clearTimeout(qa);0<=H&&window.setTimeout(function(){if(!a.isMouseDown||ca)qa=window.setTimeout(mxUtils.bind(this,function(){a.isFastZoomEnabled()&&
-(null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform",null)),oa.style.transformOrigin="",ia.style.transformOrigin="",mxClient.IS_SF?(oa.style.transform="scale(1)",ia.style.transform="scale(1)",window.setTimeout(function(){oa.style.transform="";ia.style.transform=""},0)):(oa.style.transform="",ia.style.transform=""),
-a.view.getDecoratorPane().style.opacity="",a.view.getOverlayPane().style.opacity="");var ea=new mxPoint(a.container.scrollLeft,a.container.scrollTop),la=mxUtils.getOffset(a.container),sa=a.view.scale,Pa=0,ma=0;null!=O&&(Pa=a.container.offsetWidth/2-O.x+la.x,ma=a.container.offsetHeight/2-O.y+la.y);a.zoom(a.cumulativeZoomFactor,null,a.isFastZoomEnabled()?20:null);a.view.scale!=sa&&(null!=Z&&(Pa+=ea.x-Z.x,ma+=ea.y-Z.y),null!=b&&e.chromelessResize(!1,null,Pa*(a.cumulativeZoomFactor-1),ma*(a.cumulativeZoomFactor-
-1)),!mxUtils.hasScrollbars(a.container)||0==Pa&&0==ma||(a.container.scrollLeft-=Pa*(a.cumulativeZoomFactor-1),a.container.scrollTop-=ma*(a.cumulativeZoomFactor-1)));null!=V&&oa.setAttribute("filter",V);a.cumulativeZoomFactor=1;V=ca=O=Z=qa=null}),null!=H?H:a.isFastZoomEnabled()?e.wheelZoomDelay:e.lazyZoomDelay)},0)};a.lazyZoom=function(H,ea,la,sa){sa=null!=sa?sa:this.zoomFactor;(ea=ea||!a.scrollbars)&&(O=new mxPoint(a.container.offsetLeft+a.container.clientWidth/2,a.container.offsetTop+a.container.clientHeight/
+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 Q=a.view.validate,P=new mxPoint,M=!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;M=!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,P,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 oa=a.getPageSize();H=ea.x-(this.x0||0)*oa.width;ea=ea.y-(this.y0||0)*oa.height;if(this.translate.x!=H||this.translate.y!=ea)this.invalidate(),this.translate.x=H,this.translate.y=ea}Q.apply(this,
+arguments)};if(!a.isViewer()){var aa=a.sizeDidChange;a.sizeDidChange=function(){var H=M;M=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var ea=this.getPageLayout(),oa=this.getDefaultTranslate(ea),sa=this.view.translate.x,Pa=this.view.translate.y;if(oa.x!=sa||oa.y!=Pa){this.view.x0=ea.x;this.view.y0=ea.y;this.autoTranslate=!0;this.view.setTranslate(oa.x,oa.y);this.autoTranslate=!1;H||(this.container.scrollLeft+=Math.round((oa.x-
+sa)*this.view.scale),this.container.scrollTop+=Math.round((oa.y-Pa)*this.view.scale));return}}aa.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var ia=a.view.getBackgroundPane(),na=a.view.getDrawPane();a.cumulativeZoomFactor=1;var qa=null,O=null,Z=null,ca=null,W=null,ja=function(H){null!=qa&&window.clearTimeout(qa);0<=H&&window.setTimeout(function(){if(!a.isMouseDown||ca)qa=window.setTimeout(mxUtils.bind(this,function(){a.isFastZoomEnabled()&&
+(null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform",null)),na.style.transformOrigin="",ia.style.transformOrigin="",mxClient.IS_SF?(na.style.transform="scale(1)",ia.style.transform="scale(1)",window.setTimeout(function(){na.style.transform="";ia.style.transform=""},0)):(na.style.transform="",ia.style.transform=""),
+a.view.getDecoratorPane().style.opacity="",a.view.getOverlayPane().style.opacity="");var ea=new mxPoint(a.container.scrollLeft,a.container.scrollTop),oa=mxUtils.getOffset(a.container),sa=a.view.scale,Pa=0,la=0;null!=O&&(Pa=a.container.offsetWidth/2-O.x+oa.x,la=a.container.offsetHeight/2-O.y+oa.y);a.zoom(a.cumulativeZoomFactor,null,a.isFastZoomEnabled()?20:null);a.view.scale!=sa&&(null!=Z&&(Pa+=ea.x-Z.x,la+=ea.y-Z.y),null!=b&&e.chromelessResize(!1,null,Pa*(a.cumulativeZoomFactor-1),la*(a.cumulativeZoomFactor-
+1)),!mxUtils.hasScrollbars(a.container)||0==Pa&&0==la||(a.container.scrollLeft-=Pa*(a.cumulativeZoomFactor-1),a.container.scrollTop-=la*(a.cumulativeZoomFactor-1)));null!=W&&na.setAttribute("filter",W);a.cumulativeZoomFactor=1;W=ca=O=Z=qa=null}),null!=H?H:a.isFastZoomEnabled()?e.wheelZoomDelay:e.lazyZoomDelay)},0)};a.lazyZoom=function(H,ea,oa,sa){sa=null!=sa?sa:this.zoomFactor;(ea=ea||!a.scrollbars)&&(O=new mxPoint(a.container.offsetLeft+a.container.clientWidth/2,a.container.offsetTop+a.container.clientHeight/
2));H?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=sa,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale-.05)/this.view.scale:(this.cumulativeZoomFactor/=sa,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale);
-this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,160))/this.view.scale;if(a.isFastZoomEnabled()){null==V&&""!=oa.getAttribute("filter")&&(V=oa.getAttribute("filter"),oa.removeAttribute("filter"));Z=new mxPoint(a.container.scrollLeft,a.container.scrollTop);H=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);sa=ea||null==O?a.container.scrollLeft+a.container.clientWidth/2:O.x+a.container.scrollLeft-a.container.offsetLeft;
-var Pa=ea||null==O?a.container.scrollTop+a.container.clientHeight/2:O.y+a.container.scrollTop-a.container.offsetTop;oa.style.transformOrigin=sa+"px "+Pa+"px";oa.style.transform="scale("+H+")";ia.style.transformOrigin=sa+"px "+Pa+"px";ia.style.transform="scale("+H+")";null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node?(sa=a.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(sa.style,"transform-origin",(ea||null==O?a.container.clientWidth/2+a.container.scrollLeft-sa.offsetLeft+
+this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,160))/this.view.scale;if(a.isFastZoomEnabled()){null==W&&""!=na.getAttribute("filter")&&(W=na.getAttribute("filter"),na.removeAttribute("filter"));Z=new mxPoint(a.container.scrollLeft,a.container.scrollTop);H=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);sa=ea||null==O?a.container.scrollLeft+a.container.clientWidth/2:O.x+a.container.scrollLeft-a.container.offsetLeft;
+var Pa=ea||null==O?a.container.scrollTop+a.container.clientHeight/2:O.y+a.container.scrollTop-a.container.offsetTop;na.style.transformOrigin=sa+"px "+Pa+"px";na.style.transform="scale("+H+")";ia.style.transformOrigin=sa+"px "+Pa+"px";ia.style.transform="scale("+H+")";null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node?(sa=a.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(sa.style,"transform-origin",(ea||null==O?a.container.clientWidth/2+a.container.scrollLeft-sa.offsetLeft+
"px":O.x+a.container.scrollLeft-sa.offsetLeft-a.container.offsetLeft+"px")+" "+(ea||null==O?a.container.clientHeight/2+a.container.scrollTop-sa.offsetTop+"px":O.y+a.container.scrollTop-sa.offsetTop-a.container.offsetTop+"px")),mxUtils.setPrefixedStyle(sa.style,"transform","scale("+H+")")):a.view.validateBackgroundStyles(H,sa,Pa);a.view.getDecoratorPane().style.opacity="0";a.view.getOverlayPane().style.opacity="0";null!=e.hoverIcons&&e.hoverIcons.reset();a.fireEvent(new mxEventObject("zoomPreview",
-"factor",H))}ja(a.isFastZoomEnabled()?la:0)};mxEvent.addGestureListeners(a.container,function(H){null!=qa&&window.clearTimeout(qa)},null,function(H){1!=a.cumulativeZoomFactor&&ja(0)});mxEvent.addListener(a.container,"scroll",function(H){null==qa||a.isMouseDown||1==a.cumulativeZoomFactor||ja(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(H,ea,la,sa,Pa){a.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!a.scrollbars&&!la&&a.isScrollWheelEvent(H))la=
-a.view.getTranslate(),sa=40/a.view.scale,mxEvent.isShiftDown(H)?a.view.setTranslate(la.x+(ea?-sa:sa),la.y):a.view.setTranslate(la.x,la.y+(ea?sa:-sa));else if(la||a.isZoomWheelEvent(H))for(var ma=mxEvent.getSource(H);null!=ma;){if(ma==a.container)return a.tooltipHandler.hideTooltip(),O=null!=sa&&null!=Pa?new mxPoint(sa,Pa):new mxPoint(mxEvent.getClientX(H),mxEvent.getClientY(H)),ca=la,la=a.zoomFactor,sa=null,H.ctrlKey&&null!=H.deltaY&&40>Math.abs(H.deltaY)&&Math.round(H.deltaY)!=H.deltaY?la=1+Math.abs(H.deltaY)/
-20*(la-1):null!=H.movementY&&"pointermove"==H.type&&(la=1+Math.max(1,Math.abs(H.movementY))/20*(la-1),sa=-1),a.lazyZoom(ea,null,sa,la),mxEvent.consume(H),!1;ma=ma.parentNode}}),a.container);a.panningHandler.zoomGraph=function(H){a.cumulativeZoomFactor=H.scale;a.lazyZoom(0<H.scale,!0);mxEvent.consume(H)}};EditorUi.prototype.addChromelessToolbarItems=function(a){a(mxUtils.bind(this,function(b){this.actions.get("print").funct();mxEvent.consume(b)}),Editor.printImage,mxResources.get("print"))};
+"factor",H))}ja(a.isFastZoomEnabled()?oa:0)};mxEvent.addGestureListeners(a.container,function(H){null!=qa&&window.clearTimeout(qa)},null,function(H){1!=a.cumulativeZoomFactor&&ja(0)});mxEvent.addListener(a.container,"scroll",function(H){null==qa||a.isMouseDown||1==a.cumulativeZoomFactor||ja(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(H,ea,oa,sa,Pa){a.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!a.scrollbars&&!oa&&a.isScrollWheelEvent(H))oa=
+a.view.getTranslate(),sa=40/a.view.scale,mxEvent.isShiftDown(H)?a.view.setTranslate(oa.x+(ea?-sa:sa),oa.y):a.view.setTranslate(oa.x,oa.y+(ea?sa:-sa));else if(oa||a.isZoomWheelEvent(H))for(var la=mxEvent.getSource(H);null!=la;){if(la==a.container)return a.tooltipHandler.hideTooltip(),O=null!=sa&&null!=Pa?new mxPoint(sa,Pa):new mxPoint(mxEvent.getClientX(H),mxEvent.getClientY(H)),ca=oa,oa=a.zoomFactor,sa=null,H.ctrlKey&&null!=H.deltaY&&40>Math.abs(H.deltaY)&&Math.round(H.deltaY)!=H.deltaY?oa=1+Math.abs(H.deltaY)/
+20*(oa-1):null!=H.movementY&&"pointermove"==H.type&&(oa=1+Math.max(1,Math.abs(H.movementY))/20*(oa-1),sa=-1),a.lazyZoom(ea,null,sa,oa),mxEvent.consume(H),!1;la=la.parentNode}}),a.container);a.panningHandler.zoomGraph=function(H){a.cumulativeZoomFactor=H.scale;a.lazyZoom(0<H.scale,!0);mxEvent.consume(H)}};EditorUi.prototype.addChromelessToolbarItems=function(a){a(mxUtils.bind(this,function(b){this.actions.get("print").funct();mxEvent.consume(b)}),Editor.printImage,mxResources.get("print"))};
EditorUi.prototype.isPagesEnabled=function(){return this.editor.editable||"1"!=urlParams["hide-pages"]};EditorUi.prototype.createTemporaryGraph=function(a){return Graph.createOffscreenGraph(a)};EditorUi.prototype.addChromelessClickHandler=function(){var a=urlParams.highlight;null!=a&&0<a.length&&(a="#"+a);this.editor.graph.addClickHandler(a)};
EditorUi.prototype.toggleFormatPanel=function(a){a=null!=a?a:0==this.formatWidth;null!=this.format&&(this.formatWidth=a?240:0,this.formatContainer.style.width=this.formatWidth+"px",this.refresh(),this.format.refresh(),this.fireEvent(new mxEventObject("formatWidthChanged")))};EditorUi.prototype.isFormatPanelVisible=function(){return 0<this.formatWidth};
EditorUi.prototype.lightboxFit=function(a){if(this.isDiagramEmpty())this.editor.graph.view.setScale(1);else{var b=urlParams.border,e=60;null!=b&&(e=parseInt(b));this.editor.graph.maxFitScale=this.lightboxMaxFitScale;this.editor.graph.fit(e,null,null,null,null,null,a);this.editor.graph.maxFitScale=null}};EditorUi.prototype.isDiagramEmpty=function(){var a=this.editor.graph.getModel();return 1==a.getChildCount(a.root)&&0==a.getChildCount(a.getChildAt(a.root,0))};
@@ -2198,7 +2210,7 @@ b.scrollTop=Math.floor(Math.max(0,e.y-Math.max(20,(b.clientHeight-f)/4)))}else{e
EditorUi.prototype.setPageVisible=function(a){var b=this.editor.graph,e=mxUtils.hasScrollbars(b.container),f=0,h=0;e&&(f=b.view.translate.x*b.view.scale-b.container.scrollLeft,h=b.view.translate.y*b.view.scale-b.container.scrollTop);b.pageVisible=a;b.pageBreaksVisible=a;b.preferPageSize=a;b.view.validateBackground();if(e){var d=b.getSelectionCells();b.clearSelection();b.setSelectionCells(d)}b.sizeDidChange();e&&(b.container.scrollLeft=b.view.translate.x*b.view.scale-f,b.container.scrollTop=b.view.translate.y*
b.view.scale-h);b.defaultPageVisible=a;this.fireEvent(new mxEventObject("pageViewChanged"))};
EditorUi.prototype.installResizeHandler=function(a,b,e){b&&(a.window.setSize=function(h,d){if(!this.minimized){var g=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;h=Math.min(h,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());d=Math.min(d,g-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});a.window.setLocation=function(h,d){var g=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
-m=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,q=parseInt(this.div.style.width),k=parseInt(this.div.style.height);h=Math.max(0,Math.min(h,g-q));d=Math.max(0,Math.min(d,m-k));this.getX()==h&&this.getY()==d||mxWindow.prototype.setLocation.apply(this,arguments);b&&!this.minimized&&this.setSize(q,k)};var f=mxUtils.bind(this,function(){var h=a.window.getX(),d=a.window.getY();a.window.setLocation(h,d)});mxEvent.addListener(window,"resize",f);a.destroy=function(){mxEvent.removeListener(window,
+m=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,p=parseInt(this.div.style.width),k=parseInt(this.div.style.height);h=Math.max(0,Math.min(h,g-p));d=Math.max(0,Math.min(d,m-k));this.getX()==h&&this.getY()==d||mxWindow.prototype.setLocation.apply(this,arguments);b&&!this.minimized&&this.setSize(p,k)};var f=mxUtils.bind(this,function(){var h=a.window.getX(),d=a.window.getY();a.window.setLocation(h,d)});mxEvent.addListener(window,"resize",f);a.destroy=function(){mxEvent.removeListener(window,
"resize",f);a.window.destroy();null!=e&&e()}};function ChangeGridColor(a,b){this.ui=a;this.color=b}ChangeGridColor.prototype.execute=function(){var a=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=a};(function(){var a=new mxObjectCodec(new ChangeGridColor,["ui"]);mxCodecRegistry.register(a)})();
function ChangePageSetup(a,b,e,f,h){this.ui=a;this.previousColor=this.color=b;this.previousImage=this.image=e;this.previousFormat=this.format=f;this.previousPageScale=this.pageScale=h;this.ignoreImage=this.ignoreColor=!1}
ChangePageSetup.prototype.execute=function(){var a=this.ui.editor.graph;if(!this.ignoreColor){this.color=this.previousColor;var b=a.background;this.ui.setBackgroundColor(this.previousColor);this.previousColor=b}if(!this.ignoreImage){this.image=this.previousImage;b=a.backgroundImage;var e=this.previousImage;null!=e&&Graph.isPageLink(e.src)&&(e=this.ui.createImageForPageLink(e.src,this.ui.currentPage));this.ui.setBackgroundImage(e);this.previousImage=b}null!=this.previousFormat&&(this.format=this.previousFormat,
@@ -2234,22 +2246,22 @@ EditorUi.prototype.setStatusText=function(a){this.statusContainer.innerHTML=Grap
"transition","all 0.2s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(e,100);mxUtils.setPrefixedStyle(e.style,"transform","scaleX(1)");mxUtils.setPrefixedStyle(e.style,"transition","all 1s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(e.style,"transform","scaleX(0)");mxUtils.setOpacity(e,0);window.setTimeout(mxUtils.bind(this,function(){null!=e.parentNode&&e.parentNode.removeChild(e)}),1E3)}),Editor.updateStatusInterval/2)}),0)})(a[b])};
EditorUi.prototype.createStatusDiv=function(a){var b=document.createElement("div");b.style.textOverflow="ellipsis";b.style.display="inline-block";b.style.whiteSpace="nowrap";b.style.overflow="hidden";b.style.minWidth="0";b.setAttribute("title",a);b.innerHTML=Graph.sanitizeHtml(a);return b};EditorUi.prototype.createToolbar=function(a){return new Toolbar(this,a)};EditorUi.prototype.createSidebar=function(a){return new Sidebar(this,a)};
EditorUi.prototype.createFormat=function(a){return new Format(this,a)};EditorUi.prototype.createFooter=function(){return this.createDiv("geFooter")};EditorUi.prototype.createDiv=function(a){var b=document.createElement("div");b.className=a;return b};
-EditorUi.prototype.addSplitHandler=function(a,b,e,f){function h(w){if(null!=g){var z=new mxPoint(mxEvent.getClientX(w),mxEvent.getClientY(w));f(Math.max(0,m+(b?z.x-g.x:g.y-z.y)-e));mxEvent.consume(w);m!=u()&&(q=!0,k=null)}}function d(w){h(w);g=m=null}var g=null,m=null,q=!0,k=null;mxClient.IS_POINTER&&(a.style.touchAction="none");var u=mxUtils.bind(this,function(){var w=parseInt(b?a.style.left:a.style.bottom);b||(w=w+e-this.footerHeight);return w});mxEvent.addGestureListeners(a,function(w){g=new mxPoint(mxEvent.getClientX(w),
-mxEvent.getClientY(w));m=u();q=!1;mxEvent.consume(w)});mxEvent.addListener(a,"click",mxUtils.bind(this,function(w){if(!q&&this.hsplitClickEnabled){var z=null!=k?k-e:0;k=u();f(z);mxEvent.consume(w)}}));mxEvent.addGestureListeners(document,null,h,d);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,h,d)})};
+EditorUi.prototype.addSplitHandler=function(a,b,e,f){function h(x){if(null!=g){var z=new mxPoint(mxEvent.getClientX(x),mxEvent.getClientY(x));f(Math.max(0,m+(b?z.x-g.x:g.y-z.y)-e));mxEvent.consume(x);m!=u()&&(p=!0,k=null)}}function d(x){h(x);g=m=null}var g=null,m=null,p=!0,k=null;mxClient.IS_POINTER&&(a.style.touchAction="none");var u=mxUtils.bind(this,function(){var x=parseInt(b?a.style.left:a.style.bottom);b||(x=x+e-this.footerHeight);return x});mxEvent.addGestureListeners(a,function(x){g=new mxPoint(mxEvent.getClientX(x),
+mxEvent.getClientY(x));m=u();p=!1;mxEvent.consume(x)});mxEvent.addListener(a,"click",mxUtils.bind(this,function(x){if(!p&&this.hsplitClickEnabled){var z=null!=k?k-e:0;k=u();f(z);mxEvent.consume(x)}}));mxEvent.addGestureListeners(document,null,h,d);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,h,d)})};
EditorUi.prototype.prompt=function(a,b,e){a=new FilenameDialog(this,b,mxResources.get("apply"),function(f){e(parseFloat(f))},a);this.showDialog(a.container,300,80,!0,!0);a.init()};
EditorUi.prototype.handleError=function(a,b,e,f,h){a=null!=a&&null!=a.error?a.error:a;if(null!=a||null!=b){h=mxUtils.htmlEntities(mxResources.get("unknownError"));var d=mxResources.get("ok");b=null!=b?b:mxResources.get("error");null!=a&&null!=a.message&&(h=mxUtils.htmlEntities(a.message));this.showError(b,h,d,e,null,null,null,null,null,null,null,null,f?e:null)}else null!=e&&e()};
-EditorUi.prototype.showError=function(a,b,e,f,h,d,g,m,q,k,u,w,z){a=new ErrorDialog(this,a,b,e||mxResources.get("ok"),f,h,d,g,w,m,q);b=Math.ceil(null!=b?b.length/50:1);this.showDialog(a.container,k||340,u||100+20*b,!0,!1,z);a.init()};EditorUi.prototype.showDialog=function(a,b,e,f,h,d,g,m,q,k){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,a,b,e,f,h,d,g,m,q,k);this.dialogs.push(this.dialog)};
+EditorUi.prototype.showError=function(a,b,e,f,h,d,g,m,p,k,u,x,z){a=new ErrorDialog(this,a,b,e||mxResources.get("ok"),f,h,d,g,x,m,p);b=Math.ceil(null!=b?b.length/50:1);this.showDialog(a.container,k||340,u||100+20*b,!0,!1,z);a.init()};EditorUi.prototype.showDialog=function(a,b,e,f,h,d,g,m,p,k){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,a,b,e,f,h,d,g,m,p,k);this.dialogs.push(this.dialog)};
EditorUi.prototype.hideDialog=function(a,b,e){var f=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var h=this.dialogs.length-1;0<=h;h--)if(!this.dialogs[h].closing){f=this.dialogs[h];break}null==f||null!=e&&e!=this.dialog.container.firstChild||(f.closing=!0,0==f.close(a,b)?delete f.closing:(delete f.closing,a=mxUtils.lastIndexOf(this.dialogs,f),0<=a&&this.dialogs.splice(a,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog",
"dialog",f)),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null==this.editor||null!=this.dialogs&&0!=this.dialogs.length||(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};
EditorUi.prototype.ctrlEnter=function(){var a=this.editor.graph;if(a.isEnabled())try{for(var b=a.getSelectionCells(),e=new mxDictionary,f=[],h=0;h<b.length;h++){var d=a.isTableCell(b[h])?a.model.getParent(b[h]):b[h];null==d||e.get(d)||(e.put(d,!0),f.push(d))}a.setSelectionCells(a.duplicateCells(f,!1))}catch(g){this.handleError(g)}};
-EditorUi.prototype.pickColor=function(a,b,e,f,h){var d=this.editor.graph,g=d.cellEditor.saveSelection(),m=(h?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));a=new ColorDialog(this,a,function(q){d.cellEditor.restoreSelection(g);b(q)},function(){d.cellEditor.restoreSelection(g)},e,f,h);this.showDialog(a.container,230,m,!0,!1);a.init()};
+EditorUi.prototype.pickColor=function(a,b,e,f,h){var d=this.editor.graph,g=d.cellEditor.saveSelection(),m=(h?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));a=new ColorDialog(this,a,function(p){d.cellEditor.restoreSelection(g);b(p)},function(){d.cellEditor.restoreSelection(g)},e,f,h);this.showDialog(a.container,230,m,!0,!1);a.init()};
EditorUi.prototype.openFile=function(){window.openFile=new OpenFile(mxUtils.bind(this,function(a){this.hideDialog(a)}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:320,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null})};
-EditorUi.prototype.base64ToBlob=function(a,b){b=b||"";a=atob(a);for(var e=a.length,f=Math.ceil(e/1024),h=Array(f),d=0;d<f;++d){for(var g=1024*d,m=Math.min(g+1024,e),q=Array(m-g),k=0;g<m;++k,++g)q[k]=a[g].charCodeAt(0);h[d]=new Uint8Array(q)}return new Blob(h,{type:b})};
+EditorUi.prototype.base64ToBlob=function(a,b){b=b||"";a=atob(a);for(var e=a.length,f=Math.ceil(e/1024),h=Array(f),d=0;d<f;++d){for(var g=1024*d,m=Math.min(g+1024,e),p=Array(m-g),k=0;g<m;++k,++g)p[k]=a[g].charCodeAt(0);h[d]=new Uint8Array(p)}return new Blob(h,{type:b})};
EditorUi.prototype.writeImageToClipboard=function(a,b,e,f){var h=this.base64ToBlob(a.substring(a.indexOf(",")+1),"image/png");a=new ClipboardItem({"image/png":h,"text/html":new Blob(['<img src="'+a+'" width="'+b+'" height="'+e+'">'],{type:"text/html"})});navigator.clipboard.write([a])["catch"](f)};EditorUi.prototype.writeHtmlToClipboard=function(a,b){a=new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(a)],{type:"text/plain"}),"text/html":new Blob([a],{type:"text/html"})});navigator.clipboard.write([a])["catch"](b)};
EditorUi.prototype.writeTextToClipboard=function(a,b){navigator.clipboard.writeText(a)["catch"](b)};EditorUi.prototype.extractGraphModelFromHtml=function(a){var b=null;try{var e=a.indexOf("&lt;mxGraphModel ");if(0<=e){var f=a.lastIndexOf("&lt;/mxGraphModel&gt;");f>e&&(b=a.substring(e,f+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(h){}return b};
EditorUi.prototype.readGraphModelFromClipboard=function(a){this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(b){null!=b?a(b):this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(e){if(null!=e){var f=decodeURIComponent(e);this.isCompatibleString(f)&&(e=f)}a(e)}),"text")}),"html")};
EditorUi.prototype.readGraphModelFromClipboardWithType=function(a,b){navigator.clipboard.read().then(mxUtils.bind(this,function(e){if(null!=e&&0<e.length&&"html"==b&&0<=mxUtils.indexOf(e[0].types,"text/html"))e[0].getType("text/html").then(mxUtils.bind(this,function(f){f.text().then(mxUtils.bind(this,function(h){try{var d=this.parseHtmlData(h),g="text/plain"!=d.getAttribute("data-type")?d.innerHTML:mxUtils.trim(null==d.innerText?mxUtils.getTextContent(d):d.innerText);try{var m=g.lastIndexOf("%3E");
-0<=m&&m<g.length-3&&(g=g.substring(0,m+3))}catch(u){}try{var q=d.getElementsByTagName("span"),k=null!=q&&0<q.length?mxUtils.trim(decodeURIComponent(q[0].textContent)):decodeURIComponent(g);this.isCompatibleString(k)&&(g=k)}catch(u){}}catch(u){}a(this.isCompatibleString(g)?g:null)}))["catch"](function(h){a(null)})}))["catch"](function(f){a(null)});else if(null!=e&&0<e.length&&"text"==b&&0<=mxUtils.indexOf(e[0].types,"text/plain"))e[0].getType("text/plain").then(function(f){f.text().then(function(h){a(h)})["catch"](function(){a(null)})})["catch"](function(){a(null)});
+0<=m&&m<g.length-3&&(g=g.substring(0,m+3))}catch(u){}try{var p=d.getElementsByTagName("span"),k=null!=p&&0<p.length?mxUtils.trim(decodeURIComponent(p[0].textContent)):decodeURIComponent(g);this.isCompatibleString(k)&&(g=k)}catch(u){}}catch(u){}a(this.isCompatibleString(g)?g:null)}))["catch"](function(h){a(null)})}))["catch"](function(f){a(null)});else if(null!=e&&0<e.length&&"text"==b&&0<=mxUtils.indexOf(e[0].types,"text/plain"))e[0].getType("text/plain").then(function(f){f.text().then(function(h){a(h)})["catch"](function(){a(null)})})["catch"](function(){a(null)});
else a(null)}))["catch"](function(e){a(null)})};
EditorUi.prototype.parseHtmlData=function(a){var b=null;if(null!=a&&0<a.length){var e="<meta "==a.substring(0,6);b=document.createElement("div");b.innerHTML=(e?'<meta charset="utf-8">':"")+Graph.sanitizeHtml(a);asHtml=!0;a=b.getElementsByTagName("style");if(null!=a)for(;0<a.length;)a[0].parentNode.removeChild(a[0]);null!=b.firstChild&&b.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=b.firstChild.nextSibling&&b.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==b.firstChild.nodeName&&
"A"==b.firstChild.nextSibling.nodeName&&null==b.firstChild.nextSibling.nextSibling&&(a=null==b.firstChild.nextSibling.innerText?mxUtils.getTextContent(b.firstChild.nextSibling):b.firstChild.nextSibling.innerText,a==b.firstChild.nextSibling.getAttribute("href")&&(mxUtils.setTextContent(b,a),asHtml=!1));e=e&&null!=b.firstChild?b.firstChild.nextSibling:b.firstChild;null!=e&&null==e.nextSibling&&e.nodeType==mxConstants.NODETYPE_ELEMENT&&"IMG"==e.nodeName?(a=e.getAttribute("src"),null!=a&&(Editor.isPngDataUrl(a)&&
@@ -2265,14 +2277,14 @@ EditorUi.prototype.showDataDialog=function(a){null!=a&&"undefined"!==typeof wind
EditorUi.prototype.showBackgroundImageDialog=function(a,b){a=null!=a?a:mxUtils.bind(this,function(f){f=new ChangePageSetup(this,null,f);f.ignoreColor=!0;this.editor.graph.model.execute(f)});var e=mxUtils.prompt(mxResources.get("backgroundImage"),null!=b?b.src:"");null!=e&&0<e.length?(b=new Image,b.onload=function(){a(new mxImage(e,b.width,b.height),!1)},b.onerror=function(){a(null,!0);mxUtils.alert(mxResources.get("fileNotFound"))},b.src=e):a(null)};
EditorUi.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 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 T=L.roundLength(L.currentDx/I),K=L.roundLength(L.currentDy/I);L.moveCells(L.cells,T,K);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)&&(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],
-!1)):f.setSelectionCell(C[C.length-1]),f.scrollCellToVisible(f.getSelectionCell()),null!=e.hoverIcons&&e.hoverIcons.update(f.view.getState(f.getSelectionCell())))}}else return this.isControlDown(w)?function(){b(w.keyCode,mxEvent.isShiftDown(w)?f.gridSize:null,!0)}:function(){b(w.keyCode,mxEvent.isShiftDown(w)?f.gridSize:null)}}return q.apply(this,arguments)};h.bindAction=mxUtils.bind(this,function(w,z,C,E){var D=this.actions.get(C);null!=D&&(C=function(){D.isEnabled()&&D.funct.apply(this,arguments)},
-z?E?h.bindControlShiftKey(w,C):h.bindControlKey(w,C):E?h.bindShiftKey(w,C):h.bindKey(w,C))});var k=this,u=h.escape;h.escape=function(w){u.apply(this,arguments)};h.enter=function(){};h.bindControlShiftKey(36,function(){f.exitGroup()});h.bindControlShiftKey(35,function(){f.enterGroup()});h.bindShiftKey(36,function(){f.home()});h.bindKey(35,function(){f.refresh()});h.bindAction(80,!0,"print");h.bindAction(107,!0,"zoomIn");h.bindAction(109,!0,"zoomOut");h.bindAction(61,!0,"zoomIn");h.bindAction(187,!0,
+EditorUi.prototype.createKeyHandler=function(a){function b(x,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==x?G.width=Math.max(0,G.width-z):38==x?G.height=Math.max(0,G.height-z):39==x?G.width+=z:40==x&&(G.height+=z),f.getModel().setGeometry(E[D],
+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==x||38==x?f.model.add(G,D,Math.max(0,z-1)):(39==x||40==x)&&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==x?E=-z:38==x?D=-z:39==x?E=z:40==x&&(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 T=L.roundLength(L.currentDx/I),K=L.roundLength(L.currentDy/I);L.moveCells(L.cells,T,K);L.reset()}},400))}}}}var e=this,f=this.editor.graph,h=new mxKeyHandler(f),d=h.isEventIgnored;h.isEventIgnored=function(x){return!(mxEvent.isShiftDown(x)&&9==x.keyCode)&&(!this.isControlDown(x)||mxEvent.isShiftDown(x)||
+90!=x.keyCode&&89!=x.keyCode&&188!=x.keyCode&&190!=x.keyCode&&85!=x.keyCode)&&(66!=x.keyCode&&73!=x.keyCode||!this.isControlDown(x)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=x.keyCode&&107!=x.keyCode||!this.isControlDown(x)&&!mxEvent.isShiftDown(x)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&d.apply(this,arguments)};h.isEnabledForEvent=function(x){return!mxEvent.isConsumed(x)&&this.isGraphEvent(x)&&this.isEnabled()&&(null==
+e.dialogs||0==e.dialogs.length)};h.isControlDown=function(x){return mxEvent.isControlDown(x)||mxClient.IS_MAC&&x.metaKey};var g=null,m={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},p=h.getFunction;mxKeyHandler.prototype.getFunction=function(x){if(f.isEnabled()){var z=null;mxEvent.isShiftDown(x)&&this.isControlDown(x)&&mxEvent.isAltDown(x)?z=e.actions.get(e.ctrlAltShiftActions[x.keyCode]):mxEvent.isShiftDown(x)&&mxEvent.isAltDown(x)?
+z=e.actions.get(e.altShiftActions[x.keyCode]):this.isControlDown(x)&&mxEvent.isAltDown(x)&&(z=e.actions.get(e.ctrlAltActions[x.keyCode]));if(null!=z)return z.funct;if(null!=m[x.keyCode]&&!f.isSelectionEmpty())if(!this.isControlDown(x)&&mxEvent.isShiftDown(x)&&mxEvent.isAltDown(x)){if(f.model.isVertex(f.getSelectionCell()))return function(){var C=f.connectVertex(f.getSelectionCell(),m[x.keyCode],f.defaultEdgeLength,x,!0);null!=C&&0<C.length&&(1==C.length&&f.model.isEdge(C[0])?f.setSelectionCell(f.model.getTerminal(C[0],
+!1)):f.setSelectionCell(C[C.length-1]),f.scrollCellToVisible(f.getSelectionCell()),null!=e.hoverIcons&&e.hoverIcons.update(f.view.getState(f.getSelectionCell())))}}else return this.isControlDown(x)?function(){b(x.keyCode,mxEvent.isShiftDown(x)?f.gridSize:null,!0)}:function(){b(x.keyCode,mxEvent.isShiftDown(x)?f.gridSize:null)}}return p.apply(this,arguments)};h.bindAction=mxUtils.bind(this,function(x,z,C,E){var D=this.actions.get(C);null!=D&&(C=function(){D.isEnabled()&&D.funct.apply(this,arguments)},
+z?E?h.bindControlShiftKey(x,C):h.bindControlKey(x,C):E?h.bindShiftKey(x,C):h.bindKey(x,C))});var k=this,u=h.escape;h.escape=function(x){u.apply(this,arguments)};h.enter=function(){};h.bindControlShiftKey(36,function(){f.exitGroup()});h.bindControlShiftKey(35,function(){f.enterGroup()});h.bindShiftKey(36,function(){f.home()});h.bindKey(35,function(){f.refresh()});h.bindAction(80,!0,"print");h.bindAction(107,!0,"zoomIn");h.bindAction(109,!0,"zoomOut");h.bindAction(61,!0,"zoomIn");h.bindAction(187,!0,
"zoomIn");h.bindAction(222,!0,"zoomIn");h.bindAction(173,!0,"zoomOut");h.bindAction(189,!0,"zoomOut");if(!this.editor.chromeless||this.editor.editable)h.bindAction(79,!0,"outline",!0),h.bindControlKey(36,function(){f.isEnabled()&&f.foldCells(!0)}),h.bindControlKey(35,function(){f.isEnabled()&&f.foldCells(!1)}),h.bindControlKey(13,function(){k.ctrlEnter()}),h.bindAction(8,!1,"delete"),h.bindAction(8,!0,"deleteAll"),h.bindAction(8,!1,"deleteLabels",!0),h.bindAction(46,!1,"delete"),h.bindAction(46,!0,
"deleteAll"),h.bindAction(46,!1,"deleteLabels",!0),h.bindAction(36,!1,"resetView"),h.bindAction(72,!0,"fitWindow",!0),h.bindAction(74,!0,"fitPage"),h.bindAction(74,!0,"fitTwoPages",!0),h.bindAction(48,!0,"customZoom"),h.bindAction(82,!0,"turn"),h.bindAction(82,!0,"clearDefaultStyle",!0),h.bindAction(83,!0,"save"),h.bindAction(83,!0,"saveAs",!0),h.bindAction(65,!0,"selectAll"),h.bindAction(65,!0,"selectNone",!0),h.bindAction(73,!0,"selectVertices",!0),h.bindAction(69,!0,"selectEdges",!0),h.bindAction(69,
!0,"editStyle"),h.bindAction(66,!0,"bold"),h.bindAction(66,!0,"toBack",!0),h.bindAction(70,!0,"toFront",!0),h.bindAction(68,!0,"duplicate"),h.bindAction(68,!0,"setAsDefaultStyle",!0),h.bindAction(90,!0,"undo"),h.bindAction(90,!0,"redo",!0),h.bindAction(89,!0,"redo"),h.bindAction(89,!0,"autosize",!0),h.bindAction(88,!0,"cut"),h.bindAction(67,!0,"copy"),h.bindAction(86,!0,"paste"),h.bindAction(71,!0,"group"),h.bindAction(77,!0,"editData"),h.bindAction(71,!0,"grid",!0),h.bindAction(73,!0,"italic"),h.bindAction(76,
@@ -2301,11 +2313,11 @@ Sidebar.prototype.getTooltipOffset=function(a,b){if(mxUtils.isAncestorNode(this.
2-b.height/2-6)};
Sidebar.prototype.createMoreShapes=function(){var a=this.editorUi.createDiv("geSidebarFooter");a.style.position="absolute";a.style.overflow="hidden";a.style.display="inline-flex";a.style.alignItems="center";a.style.justifyContent="center";a.style.width="100%";a.style.marginTop="-1px";a.style.height=this.moreShapesHeight+"px";var b=document.createElement("button");b.className="geBtn gePrimaryBtn";b.style.display="inline-flex";b.style.alignItems="center";b.style.whiteSpace="nowrap";b.style.padding=
"8px";b.style.margin="0px";b.innerHTML="<span>+</span>";var e=b.getElementsByTagName("span")[0];e.style.fontSize="18px";e.style.marginRight="5px";mxUtils.write(b,mxResources.get("moreShapes"));mxEvent.addListener(b,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(f){f.preventDefault()}));mxEvent.addListener(b,"click",mxUtils.bind(this,function(f){this.editorUi.actions.get("shapes").funct();mxEvent.consume(f)}));a.appendChild(b);return a};
-Sidebar.prototype.createTooltip=function(a,b,e,f,h,d,g,m,q,k,u){u=null!=u?u:!0;this.tooltipMouseDown=q;q=this.editorUi.editor.graph;if(null==this.tooltip){this.tooltip=document.createElement("div");this.tooltip.className="geSidebarTooltip";this.tooltip.style.userSelect="none";this.tooltip.style.zIndex=mxPopupMenu.prototype.zIndex-1;document.body.appendChild(this.tooltip);mxEvent.addMouseWheelListener(mxUtils.bind(this,function(z){this.hideTooltip()}),this.tooltip);this.graph2=new Graph(this.tooltip,
-null,null,this.editorUi.editor.graph.getStylesheet());this.graph2.shapeBackgroundColor=this.graph.shapeBackgroundColor;this.graph2.resetViewOnRootChange=!1;this.graph2.foldingEnabled=!1;this.graph2.gridEnabled=!1;this.graph2.autoScroll=!1;this.graph2.setTooltips(!1);this.graph2.setConnectable(!1);this.graph2.setPanning(!1);this.graph2.setEnabled(!1);if(this.graph2.dialect==mxConstants.DIALECT_SVG){var w=this.graph2.view.getDrawPane().ownerSVGElement;null!=w&&(w.style.overflow="visible")}else this.graph2.view.canvas.style.overflow=
-"visible";this.graph2.openLink=mxUtils.bind(this,function(){this.hideTooltip()});mxEvent.addGestureListeners(this.tooltip,mxUtils.bind(this,function(z){null!=this.tooltipMouseDown&&this.tooltipMouseDown(z);window.setTimeout(mxUtils.bind(this,function(){null!=this.tooltipCloseImage&&"none"!=this.tooltipCloseImage.style.display||this.hideTooltip()}),0)}),null,mxUtils.bind(this,function(z){this.hideTooltip()}));mxClient.IS_SVG||(this.graph2.view.canvas.style.position="relative");w=document.createElement("img");
-w.setAttribute("src",Dialog.prototype.closeImage);w.setAttribute("title",mxResources.get("close"));w.style.position="absolute";w.style.cursor="default";w.style.padding="8px";w.style.right="2px";w.style.top="2px";this.tooltip.appendChild(w);this.tooltipCloseImage=w;mxEvent.addListener(w,"click",mxUtils.bind(this,function(z){this.hideTooltip();mxEvent.consume(z)}))}this.tooltipCloseImage.style.display=k?"":"none";this.graph2.model.clear();this.graph2.view.setTranslate(this.tooltipBorder,this.tooltipBorder);
-this.graph2.view.scale=!m&&(e>this.maxTooltipWidth||f>this.maxTooltipHeight)?Math.round(100*Math.min(this.maxTooltipWidth/e,this.maxTooltipHeight/f))/100:1;this.tooltip.style.display="block";this.graph2.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;null!=b&&(b=this.graph2.cloneCells(b),this.graph2.pasteCellStyles(q.includeDescendants(b),u?q.currentVertexStyle:q.defaultVertexStyle,u?q.currentEdgeStyle:q.defaultEdgeStyle,null,q.pasteEdgeStyle),this.graph2.addCells(b));
+Sidebar.prototype.createTooltip=function(a,b,e,f,h,d,g,m,p,k,u){u=null!=u?u:!0;this.tooltipMouseDown=p;p=this.editorUi.editor.graph;if(null==this.tooltip){this.tooltip=document.createElement("div");this.tooltip.className="geSidebarTooltip";this.tooltip.style.userSelect="none";this.tooltip.style.zIndex=mxPopupMenu.prototype.zIndex-1;document.body.appendChild(this.tooltip);mxEvent.addMouseWheelListener(mxUtils.bind(this,function(z){this.hideTooltip()}),this.tooltip);this.graph2=new Graph(this.tooltip,
+null,null,this.editorUi.editor.graph.getStylesheet());this.graph2.shapeBackgroundColor=this.graph.shapeBackgroundColor;this.graph2.resetViewOnRootChange=!1;this.graph2.foldingEnabled=!1;this.graph2.gridEnabled=!1;this.graph2.autoScroll=!1;this.graph2.setTooltips(!1);this.graph2.setConnectable(!1);this.graph2.setPanning(!1);this.graph2.setEnabled(!1);if(this.graph2.dialect==mxConstants.DIALECT_SVG){var x=this.graph2.view.getDrawPane().ownerSVGElement;null!=x&&(x.style.overflow="visible")}else this.graph2.view.canvas.style.overflow=
+"visible";this.graph2.openLink=mxUtils.bind(this,function(){this.hideTooltip()});mxEvent.addGestureListeners(this.tooltip,mxUtils.bind(this,function(z){null!=this.tooltipMouseDown&&this.tooltipMouseDown(z);window.setTimeout(mxUtils.bind(this,function(){null!=this.tooltipCloseImage&&"none"!=this.tooltipCloseImage.style.display||this.hideTooltip()}),0)}),null,mxUtils.bind(this,function(z){this.hideTooltip()}));mxClient.IS_SVG||(this.graph2.view.canvas.style.position="relative");x=document.createElement("img");
+x.setAttribute("src",Dialog.prototype.closeImage);x.setAttribute("title",mxResources.get("close"));x.style.position="absolute";x.style.cursor="default";x.style.padding="8px";x.style.right="2px";x.style.top="2px";this.tooltip.appendChild(x);this.tooltipCloseImage=x;mxEvent.addListener(x,"click",mxUtils.bind(this,function(z){this.hideTooltip();mxEvent.consume(z)}))}this.tooltipCloseImage.style.display=k?"":"none";this.graph2.model.clear();this.graph2.view.setTranslate(this.tooltipBorder,this.tooltipBorder);
+this.graph2.view.scale=!m&&(e>this.maxTooltipWidth||f>this.maxTooltipHeight)?Math.round(100*Math.min(this.maxTooltipWidth/e,this.maxTooltipHeight/f))/100:1;this.tooltip.style.display="block";this.graph2.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;null!=b&&(b=this.graph2.cloneCells(b),this.graph2.pasteCellStyles(p.includeDescendants(b),u?p.currentVertexStyle:p.defaultVertexStyle,u?p.currentEdgeStyle:p.defaultEdgeStyle,null,p.pasteEdgeStyle),this.graph2.addCells(b));
mxClient.NO_FO=d;u=this.graph2.getGraphBounds();m&&0<e&&0<f&&(u.width>e||u.height>f)?(e=Math.round(100*Math.min(e/u.width,f/u.height))/100,mxClient.NO_FO?(this.graph2.view.setScale(Math.round(100*Math.min(this.maxTooltipWidth/u.width,this.maxTooltipHeight/u.height))/100),u=this.graph2.getGraphBounds()):(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="scale("+e+")",this.graph2.view.getDrawPane().ownerSVGElement.style.transformOrigin="0 0",u.width*=e,u.height*=e)):mxClient.NO_FO||(this.graph2.view.getDrawPane().ownerSVGElement.style.transform=
"");e=u.width+2*this.tooltipBorder+4;f=u.height+2*this.tooltipBorder;this.tooltip.style.overflow="visible";this.tooltip.style.width=e+"px";m=e;this.tooltipTitles&&null!=h&&0<h.length?(null==this.tooltipTitle?(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.style.borderTopStyle="solid",this.tooltipTitle.style.borderTopWidth="1px",this.tooltipTitle.style.textAlign="center",this.tooltipTitle.style.width="100%",this.tooltipTitle.style.overflow="hidden",this.tooltipTitle.style.position=
"absolute",this.tooltipTitle.style.paddingTop="6px",this.tooltipTitle.style.bottom="6px",this.tooltip.appendChild(this.tooltipTitle)):this.tooltipTitle.innerText="",this.tooltipTitle.style.display="",mxUtils.write(this.tooltipTitle,h),this.tooltipTitle.setAttribute("title",h),m=Math.min(this.maxTooltipWidth,Math.max(e,this.tooltipTitle.scrollWidth+4)),h=this.tooltipTitle.offsetHeight+10,f+=h,mxClient.IS_SVG?this.tooltipTitle.style.marginTop=2-h+"px":(f-=6,this.tooltipTitle.style.top=f-h+"px")):null!=
@@ -2317,19 +2329,19 @@ Sidebar.prototype.addEntries=function(a){for(var b=0;b<a.length;b++)mxUtils.bind
mxUtils.bind(this,function(){var d=this.editorUi.stringToCells("<"==e.xml.charAt(0)?e.xml:Graph.decompress(e.xml));return this.createVertexTemplateFromCells(d,e.w,e.h,e.title||"",!0,!1,!0)}))})(a[b])};Sidebar.prototype.setCurrentSearchEntryLibrary=function(a,b){this.currentSearchEntryLibrary=null!=a?{id:a,lib:b}:null};
Sidebar.prototype.getKeyStyle=function(a){var b=[];if(null!=a){a=a.split(";");for(var e=0;e<a.length;e++){var f=a[e].split("=");1<f.length&&0>mxUtils.indexOf(this.ignoredStyles,f[0])&&b.push(f[0]+"="+f[1])}}return b.join(";")};Sidebar.prototype.addLibForStyle=function(a,b){""!=a&&(null==this.styleToLibs&&(this.styleToLibs={}),null==this.styleToLibs[a]&&(this.styleToLibs[a]=[]),this.styleToLibs[a].push(b))};
Sidebar.prototype.getLibsForStyle=function(a){return null!=this.styleToLibs?this.styleToLibs[a]:null};
-Sidebar.prototype.addEntry=function(a,b){if(null!=this.currentSearchEntryLibrary){var e=this,f=this.createVertexTemplateFromCells;this.createVertexTemplateFromCells=function(m,q,k,u,w){if(null!=m)for(q=0;q<m.length;q++)e.addLibForStyle(e.getKeyStyle(m[q].style),this.currentSearchEntryLibrary)};b();this.createVertexTemplateFromCells=f}if(null!=this.taglist&&null!=a&&0<a.length){null!=this.currentSearchEntryLibrary&&(b.parentLibraries=[this.currentSearchEntryLibrary]);a=a.toLowerCase().replace(/[\/,\(\)]/g,
+Sidebar.prototype.addEntry=function(a,b){if(null!=this.currentSearchEntryLibrary){var e=this,f=this.createVertexTemplateFromCells;this.createVertexTemplateFromCells=function(m,p,k,u,x){if(null!=m)for(p=0;p<m.length;p++)e.addLibForStyle(e.getKeyStyle(m[p].style),this.currentSearchEntryLibrary)};b();this.createVertexTemplateFromCells=f}if(null!=this.taglist&&null!=a&&0<a.length){null!=this.currentSearchEntryLibrary&&(b.parentLibraries=[this.currentSearchEntryLibrary]);a=a.toLowerCase().replace(/[\/,\(\)]/g,
" ").split(" ");f=[];for(var h={},d=0;d<a.length;d++){null==h[a[d]]&&(h[a[d]]=!0,f.push(a[d]));var g=Editor.soundex(a[d].replace(/\.*\d*$/,""));g!=a[d]&&null==h[g]&&(h[g]=!0,f.push(g))}for(d=0;d<f.length;d++)this.addEntryForTag(f[d],b)}return b};Sidebar.prototype.addEntryForTag=function(a,b){if(null!=a&&1<a.length){var e=this.taglist[a];"object"!==typeof e&&(e={entries:[]},this.taglist[a]=e);e.entries.push(b)}};
Sidebar.prototype.isEntryIgnored=function(a,b){b=!b;if(null!=a.parentLibraries&&b)for(var e=0;e<a.parentLibraries.length;e++)if(this.isEntryVisible(a.parentLibraries[e].id)){b=!1;break}return b};
-Sidebar.prototype.searchEntries=function(a,b,e,f,h,d){if(null!=this.taglist&&null!=a){var g=a.toLowerCase().split(" ");a=new mxDictionary;h=(e+1)*b;for(var m=[],q=0,k=0;k<g.length;k++){var u=Editor.soundex(g[k].replace(/\.*\d*$/,""));if(0<u.length){m=this.taglist[g[k]];var w=null!=m?m.entries.slice():[];m=this.taglist[u];w=null!=m?w.concat(m.entries):w;u=new mxDictionary;if(0<w.length){m=[];for(var z=0;z<w.length;z++){var C=w[z];if(0==q==(null==a.get(C))&&null==u.get(C)&&(u.put(C,C),!this.isEntryIgnored(C,
-d)&&(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=
+Sidebar.prototype.searchEntries=function(a,b,e,f,h,d){if(null!=this.taglist&&null!=a){var g=a.toLowerCase().split(" ");a=new mxDictionary;h=(e+1)*b;for(var m=[],p=0,k=0;k<g.length;k++){var u=Editor.soundex(g[k].replace(/\.*\d*$/,""));if(0<u.length){m=this.taglist[g[k]];var x=null!=m?m.entries.slice():[];m=this.taglist[u];x=null!=m?x.concat(m.entries):x;u=new mxDictionary;if(0<x.length){m=[];for(var z=0;z<x.length;z++){var C=x[z];if(0==p==(null==a.get(C))&&null==u.get(C)&&(u.put(C,C),!this.isEntryIgnored(C,
+d)&&(m.push(C),k==g.length-1&&m.length==h))){f(m.slice(e*b,h),h,!0,g);return}}}else m=[];a=u;p++}}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"));p.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 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")+
+"')";h.appendChild(g);f.appendChild(h);var m=document.createElement("center"),p=mxUtils.button(mxResources.get("moreResults"),function(){G()});p.style.display="none";p.style.lineHeight="normal";p.style.fontSize="12px";p.style.padding="6px 12px 6px 12px";p.style.marginTop="4px";p.style.marginBottom="8px";m.style.paddingTop="4px";m.style.paddingBottom="4px";m.appendChild(p);f.appendChild(m);var k="",u=!1,x=!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={},x=!1,z=0),!u&&!x)){p.setAttribute("disabled","true");p.style.display="";p.style.cursor="wait";p.innerHTML=mxResources.get("loading")+
"...";u=!0;var I={};this.currentSearch=I;try{this.searchEntries(k,E,z,mxUtils.bind(this,function(L,T,K,U){if(this.currentSearch==I){L=null!=L?L:[];u=!1;z++;this.insertSearchHint(f,k,E,z,L,T,K,U);0==L.length&&1==z&&(k="");null!=m.parentNode&&m.parentNode.removeChild(m);for(T=0;T<L.length;T++)mxUtils.bind(this,function(Y){try{var Q=Y();null!=this.closedLibraryOpacity&&this.searchClosedLibraries&&this.isEntryIgnored(Y,!1)&&(Q.style.opacity=this.closedLibraryOpacity);null==C[Q.innerHTML]?(C[Q.innerHTML]=
-null!=Y.parentLibraries?Y.parentLibraries.slice():[],f.appendChild(Q)):null!=Y.parentLibraries&&(C[Q.innerHTML]=C[Q.innerHTML].concat(Y.parentLibraries));mxEvent.addGestureListeners(Q,null,null,mxUtils.bind(this,function(P){var M=C[Q.innerHTML];mxEvent.isPopupTrigger(P)&&this.showPopupMenuForEntry(Q,M,P)}));mxEvent.disableContextMenu(Q)}catch(P){"1"==urlParams.test&&(null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(P.stack)):console.error(P))}})(L[T]);K?(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(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,
+null!=Y.parentLibraries?Y.parentLibraries.slice():[],f.appendChild(Q)):null!=Y.parentLibraries&&(C[Q.innerHTML]=C[Q.innerHTML].concat(Y.parentLibraries));mxEvent.addGestureListeners(Q,null,null,mxUtils.bind(this,function(P){var M=C[Q.innerHTML];mxEvent.isPopupTrigger(P)&&this.showPopupMenuForEntry(Q,M,P)}));mxEvent.disableContextMenu(Q)}catch(P){"1"==urlParams.test&&(null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(P.stack)):console.error(P))}})(L[T]);K?(p.removeAttribute("disabled"),
+p.innerHTML=mxResources.get("moreResults")):(p.innerHTML=mxResources.get("reset"),p.style.display="none",x=!0);p.style.cursor="";f.appendChild(m)}}),mxUtils.bind(this,function(){p.style.cursor=""}),this.searchClosedLibraries)}catch(L){this.editorUi.handleError(L)}}}else D(),k=d.value="",C={},p.style.display="none",x=!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?(x=!0,p.style.display="none"):d.value!=k?(p.style.display="none",x=!1):u||(p.style.display=x?"none":"")}),0)});mxEvent.addListener(d,"keyup",a);mxEvent.addListener(d,"paste",a);mxEvent.addListener(d,"cut",a);mxEvent.addListener(d,
"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;"+
@@ -2436,62 +2448,62 @@ d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new
0,"Use","Dependency",null,"uml dependency use"),this.createEdgeTemplateEntry("endArrow=block;endSize=16;endFill=0;html=1;",160,0,"Extends","Generalization",null,"uml generalization extend"),this.createEdgeTemplateEntry("endArrow=block;startArrow=block;endFill=1;startFill=1;html=1;",160,0,"","Association 2",null,"uml association"),this.createEdgeTemplateEntry("endArrow=open;startArrow=circlePlus;endFill=0;startFill=0;endSize=8;html=1;",160,0,"","Inner Class",null,"uml inner class"),this.createEdgeTemplateEntry("endArrow=open;startArrow=cross;endFill=0;startFill=0;endSize=8;startSize=10;html=1;",
160,0,"","Terminate",null,"uml terminate"),this.createEdgeTemplateEntry("endArrow=block;dashed=1;endFill=0;endSize=12;html=1;",160,0,"","Implementation",null,"uml realization implementation"),this.createEdgeTemplateEntry("endArrow=diamondThin;endFill=0;endSize=24;html=1;",160,0,"","Aggregation 2",null,"uml aggregation"),this.createEdgeTemplateEntry("endArrow=diamondThin;endFill=1;endSize=24;html=1;",160,0,"","Composition 2",null,"uml composition"),this.createEdgeTemplateEntry("endArrow=open;endFill=1;endSize=12;html=1;",
160,0,"","Association 3",null,"uml association")];this.addPaletteFunctions("uml",mxResources.get("uml"),a||!1,h);this.setCurrentSearchEntryLibrary()};Sidebar.prototype.createTitle=function(a){var b=document.createElement("a");b.setAttribute("title",mxResources.get("sidebarTooltip"));b.className="geTitle";var e=document.createElement("span");mxUtils.write(e,a);b.appendChild(e);return b};
-Sidebar.prototype.createThumb=function(a,b,e,f,h,d,g,m,q,k,u,w){this.graph.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;this.graph.shapeForegroundColor="light-dark(#000000, #c0c0c0)";this.graph.shapeBackgroundColor=null!=k?k:"light-dark(#f1f3f4, #1b1d1e)";this.graph.view.scaleAndTranslate(null!=w?w:1,0,0);this.graph.addCells(a);a=this.graph.getGraphBounds();null==w&&(k=Math.floor(100*Math.min((b-2*this.thumbBorder)/a.width,(e-2*this.thumbBorder)/
+Sidebar.prototype.createThumb=function(a,b,e,f,h,d,g,m,p,k,u,x){this.graph.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;this.graph.shapeForegroundColor="light-dark(#000000, #c0c0c0)";this.graph.shapeBackgroundColor=null!=k?k:"light-dark(#f1f3f4, #1b1d1e)";this.graph.view.scaleAndTranslate(null!=x?x:1,0,0);this.graph.addCells(a);a=this.graph.getGraphBounds();null==x&&(k=Math.floor(100*Math.min((b-2*this.thumbBorder)/a.width,(e-2*this.thumbBorder)/
a.height))/100,this.graph.view.scaleAndTranslate(k,(b-a.width*k)/2/k-a.x,(e-a.height*k)/2/k-a.y));this.graph.dialect!=mxConstants.DIALECT_SVG||mxClient.NO_FO||null==this.graph.view.getCanvas().ownerSVGElement?(k=this.graph.container.cloneNode(!1),k.innerHTML=this.graph.container.innerHTML):k=this.graph.view.getCanvas().ownerSVGElement.cloneNode(!0);this.graph.getModel().clear();this.graph.view.scaleAndTranslate(1,0,0);this.graph.shapeBackgroundColor="#f1f3f4";mxClient.NO_FO=d;k.style.position="relative";
-k.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=
+k.style.overflow=null!=x?"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(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(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,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 T=g.layoutManager.getLayout(q);if(null!=T){C=g.view.scale;E=g.view.translate;D=(k+E.x)*C;G=(u+E.y)*C;for(var K=0;K<z.length;K++)T.moveCell(z[K],D,G)}}!e||null!=m&&mxEvent.isShiftDown(m)||g.fireEvent(new mxEventObject("cellsInserted","cells",z));for(K=0;K<z.length;K++)g.model.isVertex(z[K])&&g.isAutoSizeCell(z[K])&&g.updateCellSize(z[K])}catch(U){this.editorUi.handleError(U)}finally{g.model.endUpdate()}null!=z&&0<z.length&&(g.scrollCellToVisible(z[0]),
+Sidebar.prototype.createItem=function(a,b,e,f,h,d,g,m,p,k,u,x,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!=x?(E.style.backgroundImage="url("+x+")",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,p,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,p)),!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,p,k,u,x){for(x=x?null:mxEvent.isTouchEvent(m)||mxEvent.isPenEvent(m)?document.elementFromPoint(mxEvent.getClientX(m),mxEvent.getClientY(m)):mxEvent.getSource(m);null!=x&&x!=this.container;)x=x.parentNode;if(null==x&&g.isEnabled()){a=g.getImportableCells(a);if(0<a.length){g.stopEditing();x=null==p||mxEvent.isAltDown(m)?!1:g.isValidDropTarget(p,a,m);var z=null;null==p||x||(p=null);if(!g.isCellLocked(p||
+g.getDefaultParent())){g.model.beginUpdate();try{k=Math.round(k);u=Math.round(u);if(b&&g.isSplitTarget(p,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(p,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,p),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 T=g.layoutManager.getLayout(p);if(null!=T){C=g.view.scale;E=g.view.translate;D=(k+E.x)*C;G=(u+E.y)*C;for(var K=0;K<z.length;K++)T.moveCell(z[K],D,G)}}!e||null!=m&&mxEvent.isShiftDown(m)||g.fireEvent(new mxEventObject("cellsInserted","cells",z));for(K=0;K<z.length;K++)g.model.isVertex(z[K])&&g.isAutoSizeCell(z[K])&&g.updateCellSize(z[K])}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 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),T=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(M,W,aa){return!m.isContainer(M.cell)});if(null!=T&&T!=C)k=m.view.getState(T),null!=k&&(I=k.origin,C=T,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-
+Sidebar.prototype.dropAndConnect=function(a,b,e,f,h,d,g){var m=this.editorUi.editor.graph,p=m.model.isEdge(a)||null!=d?d:g;p=this.getDropAndConnectGeometry(a,b[p],e,b);var k=[];if(null!=p){var u=null;m.model.beginUpdate();try{var x=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!=x&&!x.relative&&E),T=m.getCellAt((p.x+D+m.view.translate.x)*m.view.scale,(p.y+G+m.view.translate.y)*m.view.scale,null,null,null,function(M,V,aa){return!m.isContainer(M.cell)});if(null!=T&&T!=C)k=m.view.getState(T),null!=k&&(I=k.origin,C=T,L=!0,m.model.isEdge(a)||(p.x-=I.x-D,p.y-=I.y-G));else if(!E||m.isTableRow(a)||m.isTableCell(a))p.x+=D,p.y+=G;D=z.x;G=z.y;m.model.isEdge(b[f])&&(G=D=0);k=b=m.importCells(b,p.x-(L?D:0),p.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 K=m.getCellGeometry(b[f]),U=null!=K?K.getTerminalPoint(!0):null;K.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]),Q=null!=Y?Y.getTerminalPoint(!0):null;null!=Q&&Q.x==U.x&&Q.y==U.y&&m.model.setTerminal(b[e],
-a,!0)}if(null!=K.getTerminalPoint(!1))K.setTerminalPoint(q.getTerminalPoint(!1),!1);else if(L&&m.model.isVertex(C)){var P=m.view.getState(C);I=P.cell!=m.view.currentRoot?P.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,
+a,!0)}if(null!=K.getTerminalPoint(!1))K.setTerminalPoint(p.getTerminalPoint(!1),!1);else if(L&&m.model.isVertex(C)){var P=m.view.getState(C);I=P.cell!=m.view.currentRoot?P.origin:new mxPoint(0,0);m.cellsMoved(b,I.x,I.y,null,null,!0)}}else null!=d&&(z=m.getCellGeometry(b[d]),D=p.x-Math.round(z.x),G=p.y-Math.round(z.y),p.x=Math.round(z.x),p.y=Math.round(z.y),m.model.setGeometry(b[f],p),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(M){this.editorUi.handleError(M)}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+
-f.width,f.y),!1)):e==mxConstants.DIRECTION_SOUTH?(f.height=d,f.y=q.y+q.height,f.setTerminalPoint(new mxPoint(f.x,f.y+f.height),!1)):e==mxConstants.DIRECTION_WEST&&(f.width=d,f.x=q.x-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1))):(!g&&45<f.width&&45<f.height&&45<q.width&&45<q.height&&(f.width*=q.height/f.height,f.height=q.height),f.x=q.x+q.width/2-f.width/2,f.y=q.y+q.height/2-f.height/2,e==mxConstants.DIRECTION_NORTH?f.y=f.y-q.height/2-f.height/2-d:e==mxConstants.DIRECTION_EAST?f.x=f.x+q.width/2+
-f.width/2+d:e==mxConstants.DIRECTION_SOUTH?f.y=f.y+q.height/2+f.height/2+d:e==mxConstants.DIRECTION_WEST&&(f.x=f.x-q.width/2-f.width/2-d),h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=b.getTerminal(!1)&&(q=h.getCellGeometry(b.getTerminal(!1)),null!=q&&(e==mxConstants.DIRECTION_NORTH?(f.x-=q.getCenterX(),f.y-=q.getCenterY()+q.height/2):e==mxConstants.DIRECTION_EAST?(f.x-=q.getCenterX()-q.width/2,f.y-=q.getCenterY()):e==mxConstants.DIRECTION_SOUTH?(f.x-=q.getCenterX(),f.y-=q.getCenterY()-q.height/
-2):e==mxConstants.DIRECTION_WEST&&(f.x-=q.getCenterX()+q.width/2,f.y-=q.getCenterY()))))));return f};Sidebar.prototype.isDropStyleEnabled=function(a,b){var e=!0;null!=b&&1==a.length&&(a=this.graph.getCellStyle(a[b]),null!=a&&(e=mxUtils.getValue(a,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(a,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE));return e};
+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),p=h.getCellGeometry(a);f=h.getCellGeometry(b);null!=m&&null!=p&&null!=f&&(f=f.clone(),h.model.isEdge(a)?(p=m.absolutePoints,b=p[0],h=p[p.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)):(p.relative&&(p=p.clone(),
+p.x=(m.x-d.translate.x)/d.scale,p.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=p.getCenterX(),f.y=p.getCenterY(),f.width=1,f.height=1,e==mxConstants.DIRECTION_NORTH?(f.height=d,f.y=p.y-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1)):e==mxConstants.DIRECTION_EAST?(f.width=d,f.x=p.x+p.width,f.setTerminalPoint(new mxPoint(f.x+
+f.width,f.y),!1)):e==mxConstants.DIRECTION_SOUTH?(f.height=d,f.y=p.y+p.height,f.setTerminalPoint(new mxPoint(f.x,f.y+f.height),!1)):e==mxConstants.DIRECTION_WEST&&(f.width=d,f.x=p.x-d,f.setTerminalPoint(new mxPoint(f.x,f.y),!1))):(!g&&45<f.width&&45<f.height&&45<p.width&&45<p.height&&(f.width*=p.height/f.height,f.height=p.height),f.x=p.x+p.width/2-f.width/2,f.y=p.y+p.height/2-f.height/2,e==mxConstants.DIRECTION_NORTH?f.y=f.y-p.height/2-f.height/2-d:e==mxConstants.DIRECTION_EAST?f.x=f.x+p.width/2+
+f.width/2+d:e==mxConstants.DIRECTION_SOUTH?f.y=f.y+p.height/2+f.height/2+d:e==mxConstants.DIRECTION_WEST&&(f.x=f.x-p.width/2-f.width/2-d),h.model.isEdge(b)&&null!=f.getTerminalPoint(!0)&&null!=b.getTerminal(!1)&&(p=h.getCellGeometry(b.getTerminal(!1)),null!=p&&(e==mxConstants.DIRECTION_NORTH?(f.x-=p.getCenterX(),f.y-=p.getCenterY()+p.height/2):e==mxConstants.DIRECTION_EAST?(f.x-=p.getCenterX()-p.width/2,f.y-=p.getCenterY()):e==mxConstants.DIRECTION_SOUTH?(f.x-=p.getCenterX(),f.y-=p.getCenterY()-p.height/
+2):e==mxConstants.DIRECTION_WEST&&(f.x-=p.getCenterX()+p.width/2,f.y-=p.getCenterY()))))));return f};Sidebar.prototype.isDropStyleEnabled=function(a,b){var e=!0;null!=b&&1==a.length&&(a=this.graph.getCellStyle(a[b]),null!=a&&(e=mxUtils.getValue(a,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(a,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE));return e};
Sidebar.prototype.isDropStyleTargetIgnored=function(a){return this.graph.isSwimlane(a.cell)||this.graph.isTableCell(a.cell)||this.graph.isTableRow(a.cell)||this.graph.isTable(a.cell)};Sidebar.prototype.disablePointerEvents=function(a){mxUtils.visitNodes(a,mxUtils.bind(this,function(b){b.nodeType==mxConstants.NODETYPE_ELEMENT&&(b.style.pointerEvents="none",b.removeAttribute("pointer-events"))}))};
-Sidebar.prototype.createDragSource=function(a,b,e,f,h,d){function g(ma,Ca){var Da=mxUtils.createImage(ma.src);Da.style.width=ma.width+"px";Da.style.height=ma.height+"px";null!=Ca&&Da.setAttribute("title",Ca);mxUtils.setOpacity(Da,ma==this.refreshTarget?30:20);Da.style.position="absolute";Da.style.cursor="crosshair";return Da}function m(ma,Ca,Da,Ga){null!=Ga.parentNode&&(mxUtils.contains(Da,ma,Ca)?(mxUtils.setOpacity(Ga,100),O=Ga):mxUtils.setOpacity(Ga,Ga==W?30:20));return Da}var q=this.editorUi,k=
-q.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,Ca,Da,Ga,Ia){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=f&&null!=
-K&&O==W){var Ha=ma.isCellSelected(K.cell)?ma.getSelectionCells():[K.cell];ma.updateShapes(ma.model.isEdge(K.cell)?f[0]:f[w],Ha,!0);ma.setSelectionCells(Ha)}else null!=f&&null!=O&&null!=L&&O!=W?(Ha=ma.model.isEdge(L.cell)||null==u?w:u,ma.setSelectionCells(this.dropAndConnect(L.cell,f,qa,Ha,Ca,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 Ca=document.createElement("a");Ca.className="geItem";Ca.style.overflow="visible";ma=ma.view.scale;Ca.style.width=ma*Math.max(1,h.width)+"px";Ca.style.height=ma*Math.max(1,h.height)+"px";mxUtils.setOpacity(Ca,50);var Da=k.cloneCells(f);this.graph.pasteCellStyles(k.includeDescendants(Da),k.currentVertexStyle,k.currentEdgeStyle,null,k.pasteEdgeStyle);z.createThumb(Da,ma*Math.max(1,h.width),ma*Math.max(1,h.height),Ca,null,null,null,null,null,k.shapeBackgroundColor,
-0,ma);return Ca}));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,T=null,K=null,U=!1,Y=g(this.triangleUp,mxResources.get("connect")),Q=g(this.triangleRight,mxResources.get("connect")),P=g(this.triangleDown,mxResources.get("connect")),M=g(this.triangleLeft,mxResources.get("connect")),W=g(this.refreshTarget,mxResources.get("replace")),aa=null,ia=g(this.roundDrop),
-oa=g(this.roundDrop),qa=mxConstants.DIRECTION_NORTH,O=null,Z=G.createPreviewElement;G.createPreviewElement=function(ma){var Ca=Z.apply(this,arguments);mxClient.IS_SVG&&(Ca.style.pointerEvents="none");this.previewElementWidth=Ca.style.width;this.previewElementHeight=Ca.style.height;return Ca};var ca=G.dragEnter;G.dragEnter=function(ma,Ca){null!=q.hoverIcons&&q.hoverIcons.setDisplay("none");ca.apply(this,arguments)};var V=G.dragExit;G.dragExit=function(ma,Ca){null!=q.hoverIcons&&q.hoverIcons.setDisplay("");
-V.apply(this,arguments)};G.dragOver=function(ma,Ca){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=O&&this.currentGuide.hide();if(null!=this.previewElement){q.hideShapePicker();var Da=ma.view;if(null!=K&&O==W)this.previewElement.style.display="none";else if(null!=L&&null!=O){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Ga=ma.model.isEdge(L.cell)||null!=w?w:u,Ia=z.getDropAndConnectGeometry(L.cell,f[Ga],qa,f),Ha=ma.model.isEdge(L.cell)?
-null:ma.getCellGeometry(L.cell),Ja=ma.getCellGeometry(f[Ga]),ta=ma.model.getParent(L.cell),La=Da.translate.x*Da.scale,Xa=Da.translate.y*Da.scale;null!=Ha&&!Ha.relative&&ma.model.isVertex(ta)&&ta!=Da.currentRoot&&(Xa=Da.getState(ta),La=Xa.x,Xa=Xa.y);Ha=Ja.x;Ja=Ja.y;ma.model.isEdge(f[Ga])&&(Ja=Ha=0);this.previewElement.style.left=(Ia.x-Ha)*Da.scale+La+"px";this.previewElement.style.top=(Ia.y-Ja)*Da.scale+Xa+"px";1==f.length&&(this.previewElement.style.width=Ia.width*Da.scale+"px",this.previewElement.style.height=
-Ia.height*Da.scale+"px",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="none",this.previewElement.className="geDragPreview",mxUtils.setOpacity(this.previewElement,100)));this.previewElement.style.display=""}else null!=G.currentHighlight&&null!=G.currentHighlight.state&&ma.model.isEdge(G.currentHighlight.state.cell)?(this.previewElement.style.left=Math.round(parseInt(this.previewElement.style.left)-h.width*Da.scale/2)+"px",this.previewElement.style.top=Math.round(parseInt(this.previewElement.style.top)-
-h.height*Da.scale/2)+"px"):(this.previewElement.style.width=this.previewElementWidth,this.previewElement.style.height=this.previewElementHeight,this.previewElement.style.display="",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="",mxUtils.setOpacity(this.previewElement,50),this.previewElement.className=""))}};var ja=(new Date).getTime(),H=0,ea=null,la=this.editorUi.editor.graph.getCellStyle(f[0]);G.getDropTarget=mxUtils.bind(this,function(ma,Ca,Da,Ga){var Ia=mxEvent.isAltDown(Ga)||
-null==f?null:ma.getCellAt(Ca,Da,null,null,null,function(Xa,Ya,cb){return ma.isContainer(Xa.cell)&&"0"!=mxUtils.getValue(Xa.style,"dropTarget","1")});if(null!=Ia&&!this.graph.isCellConnectable(Ia)&&!this.graph.model.isEdge(Ia)){var Ha=this.graph.getModel().getParent(Ia);this.graph.getModel().isVertex(Ha)&&this.graph.isCellConnectable(Ha)&&(Ia=Ha)}ma.isCellLocked(Ia)&&(Ia=null);var Ja=ma.view.getState(Ia);Ha=O=null;ea!=Ja?(ja=(new Date).getTime(),H=0,ea=Ja,null!=this.updateThread&&window.clearTimeout(this.updateThread),
-null!=Ja&&(this.updateThread=window.setTimeout(function(){null==O&&(ea=Ja,G.getDropTarget(ma,Ca,Da,Ga))},this.dropTargetDelay+10))):H=(new Date).getTime()-ja;if(D&&2500>H&&null!=Ja&&!mxEvent.isShiftDown(Ga)&&(mxUtils.getValue(Ja.style,mxConstants.STYLE_SHAPE)!=mxUtils.getValue(la,mxConstants.STYLE_SHAPE)&&(mxUtils.getValue(Ja.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ja.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ja.style,
-mxConstants.STYLE_GRADIENTCOLOR,mxConstants.NONE)!=mxConstants.NONE)||"image"==mxUtils.getValue(la,mxConstants.STYLE_SHAPE)||1500<H||ma.model.isEdge(Ja.cell))&&H>this.dropTargetDelay&&!this.isDropStyleTargetIgnored(Ja)&&(ma.model.isVertex(Ja.cell)&&null!=w||ma.model.isEdge(Ja.cell)&&ma.model.isEdge(f[0]))){if(ma.isCellEditable(Ja.cell)){K=Ja;var ta=ma.model.isEdge(Ja.cell)?ma.view.getPoint(Ja):new mxPoint(Ja.getCenterX(),Ja.getCenterY());ta=new mxRectangle(ta.x-this.refreshTarget.width/2,ta.y-this.refreshTarget.height/
-2,this.refreshTarget.width,this.refreshTarget.height);W.style.left=Math.floor(ta.x)+"px";W.style.top=Math.floor(ta.y)+"px";null==aa&&(ma.container.appendChild(W),aa=W.parentNode);m(Ca,Da,ta,W)}}else null==K||!mxUtils.contains(K,Ca,Da)||1500<H&&!mxEvent.isShiftDown(Ga)?(K=null,null!=aa&&(W.parentNode.removeChild(W),aa=null)):null!=K&&null!=aa&&(ta=ma.model.isEdge(K.cell)?ma.view.getPoint(K):new mxPoint(K.getCenterX(),K.getCenterY()),ta=new mxRectangle(ta.x-this.refreshTarget.width/2,ta.y-this.refreshTarget.height/
-2,this.refreshTarget.width,this.refreshTarget.height),m(Ca,Da,ta,W));if(U&&null!=L&&!mxEvent.isAltDown(Ga)&&null==O){Ha=mxRectangle.fromRectangle(L);if(ma.model.isEdge(L.cell)){var La=L.absolutePoints;null!=ia.parentNode&&(ta=La[0],Ha.add(m(Ca,Da,new mxRectangle(ta.x-this.roundDrop.width/2,ta.y-this.roundDrop.height/2,this.roundDrop.width,this.roundDrop.height),ia)));null!=oa.parentNode&&(La=La[La.length-1],Ha.add(m(Ca,Da,new mxRectangle(La.x-this.roundDrop.width/2,La.y-this.roundDrop.height/2,this.roundDrop.width,
-this.roundDrop.height),oa)))}else ta=mxRectangle.fromRectangle(L),null!=L.shape&&null!=L.shape.boundingBox&&(ta=mxRectangle.fromRectangle(L.shape.boundingBox)),ta.grow(this.graph.tolerance),ta.grow(HoverIcons.prototype.arrowSpacing),La=this.graph.selectionCellsHandler.getHandler(L.cell),null!=La&&(ta.x-=La.horizontalOffset/2,ta.y-=La.verticalOffset/2,ta.width+=La.horizontalOffset,ta.height+=La.verticalOffset,null!=La.rotationShape&&null!=La.rotationShape.node&&"hidden"!=La.rotationShape.node.style.visibility&&
-"none"!=La.rotationShape.node.style.display&&null!=La.rotationShape.boundingBox&&ta.add(La.rotationShape.boundingBox)),Ha.add(m(Ca,Da,new mxRectangle(L.getCenterX()-this.triangleUp.width/2,ta.y-this.triangleUp.height,this.triangleUp.width,this.triangleUp.height),Y)),Ha.add(m(Ca,Da,new mxRectangle(ta.x+ta.width,L.getCenterY()-this.triangleRight.height/2,this.triangleRight.width,this.triangleRight.height),Q)),Ha.add(m(Ca,Da,new mxRectangle(L.getCenterX()-this.triangleDown.width/2,ta.y+ta.height,this.triangleDown.width,
-this.triangleDown.height),P)),Ha.add(m(Ca,Da,new mxRectangle(ta.x-this.triangleLeft.width,L.getCenterY()-this.triangleLeft.height/2,this.triangleLeft.width,this.triangleLeft.height),M));null!=Ha&&Ha.grow(10)}qa=mxConstants.DIRECTION_NORTH;O==Q?qa=mxConstants.DIRECTION_EAST:O==P||O==oa?qa=mxConstants.DIRECTION_SOUTH:O==M&&(qa=mxConstants.DIRECTION_WEST);null!=K&&O==W&&(Ja=K);ta=(null==w||ma.isCellConnectable(f[w]))&&(ma.model.isEdge(Ia)&&null!=w||ma.model.isVertex(Ia)&&ma.isCellConnectable(Ia));if(null!=
-L&&5E3<=H||L!=Ja&&(null==Ha||!mxUtils.contains(Ha,Ca,Da)||500<H&&null==O&&ta))if(U=!1,L=5E3>H&&H>this.dropTargetDelay||ma.model.isEdge(Ia)?Ja:null,null!=L&&ta){Ha=[ia,oa,Y,Q,P,M];for(ta=0;ta<Ha.length;ta++)null!=Ha[ta].parentNode&&Ha[ta].parentNode.removeChild(Ha[ta]);ma.model.isEdge(Ia)?(La=Ja.absolutePoints,null!=La&&(ta=La[0],La=La[La.length-1],ia.style.left=Math.floor(ta.x-this.roundDrop.width/2)+"px",ia.style.top=Math.floor(ta.y-this.roundDrop.height/2)+"px",oa.style.left=Math.floor(La.x-this.roundDrop.width/
-2)+"px",oa.style.top=Math.floor(La.y-this.roundDrop.height/2)+"px",null==ma.model.getTerminal(Ia,!0)&&ma.container.appendChild(ia),null==ma.model.getTerminal(Ia,!1)&&ma.container.appendChild(oa))):(ta=mxRectangle.fromRectangle(Ja),null!=Ja.shape&&null!=Ja.shape.boundingBox&&(ta=mxRectangle.fromRectangle(Ja.shape.boundingBox)),ta.grow(this.graph.tolerance),ta.grow(HoverIcons.prototype.arrowSpacing),La=this.graph.selectionCellsHandler.getHandler(Ja.cell),null!=La&&(ta.x-=La.horizontalOffset/2,ta.y-=
+Sidebar.prototype.createDragSource=function(a,b,e,f,h,d){function g(la,Ba){var Ca=mxUtils.createImage(la.src);Ca.style.width=la.width+"px";Ca.style.height=la.height+"px";null!=Ba&&Ca.setAttribute("title",Ba);mxUtils.setOpacity(Ca,la==this.refreshTarget?30:20);Ca.style.position="absolute";Ca.style.cursor="crosshair";return Ca}function m(la,Ba,Ca,Fa){null!=Fa.parentNode&&(mxUtils.contains(Ca,la,Ba)?(mxUtils.setOpacity(Fa,100),O=Fa):mxUtils.setOpacity(Fa,Fa==V?30:20));return Ca}var p=this.editorUi,k=
+p.editor.graph,u=null,x=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==x&&k.model.isVertex(f[E])?x=E:null==u&&k.model.isEdge(f[E])&&null==k.model.getTerminal(f[E],!0)&&(u=E),null==x||null==u);E++);var D=this.isDropStyleEnabled(f,x),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(la,Ba,Ca,Fa,Ia){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=f&&null!=
+K&&O==V){var Ha=la.isCellSelected(K.cell)?la.getSelectionCells():[K.cell];la.updateShapes(la.model.isEdge(K.cell)?f[0]:f[x],Ha,!0);la.setSelectionCells(Ha)}else null!=f&&null!=O&&null!=L&&O!=V?(Ha=la.model.isEdge(L.cell)||null==u?x:u,la.setSelectionCells(this.dropAndConnect(L.cell,f,qa,Ha,Ba,x,u))):b.apply(this,arguments);null!=this.editorUi.hoverIcons&&this.editorUi.hoverIcons.update(la.view.getState(la.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(la){var Ba=document.createElement("a");Ba.className="geItem";Ba.style.overflow="visible";la=la.view.scale;Ba.style.width=la*Math.max(1,h.width)+"px";Ba.style.height=la*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,la*Math.max(1,h.width),la*Math.max(1,h.height),Ba,null,null,null,null,null,k.shapeBackgroundColor,
+0,la);return Ba}));var I=G.mouseDown;G.mouseDown=function(la){mxEvent.isPopupTrigger(la)||mxEvent.isMultiTouchEvent(la)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),I.apply(this,arguments))};var L=null,T=null,K=null,U=!1,Y=g(this.triangleUp,mxResources.get("connect")),Q=g(this.triangleRight,mxResources.get("connect")),P=g(this.triangleDown,mxResources.get("connect")),M=g(this.triangleLeft,mxResources.get("connect")),V=g(this.refreshTarget,mxResources.get("replace")),aa=null,ia=g(this.roundDrop),
+na=g(this.roundDrop),qa=mxConstants.DIRECTION_NORTH,O=null,Z=G.createPreviewElement;G.createPreviewElement=function(la){var Ba=Z.apply(this,arguments);mxClient.IS_SVG&&(Ba.style.pointerEvents="none");this.previewElementWidth=Ba.style.width;this.previewElementHeight=Ba.style.height;return Ba};var ca=G.dragEnter;G.dragEnter=function(la,Ba){null!=p.hoverIcons&&p.hoverIcons.setDisplay("none");ca.apply(this,arguments)};var W=G.dragExit;G.dragExit=function(la,Ba){null!=p.hoverIcons&&p.hoverIcons.setDisplay("");
+W.apply(this,arguments)};G.dragOver=function(la,Ba){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=O&&this.currentGuide.hide();if(null!=this.previewElement){p.hideShapePicker();var Ca=la.view;if(null!=K&&O==V)this.previewElement.style.display="none";else if(null!=L&&null!=O){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Fa=la.model.isEdge(L.cell)||null!=x?x:u,Ia=z.getDropAndConnectGeometry(L.cell,f[Fa],qa,f),Ha=la.model.isEdge(L.cell)?
+null:la.getCellGeometry(L.cell),Ja=la.getCellGeometry(f[Fa]),ta=la.model.getParent(L.cell),La=Ca.translate.x*Ca.scale,Xa=Ca.translate.y*Ca.scale;null!=Ha&&!Ha.relative&&la.model.isVertex(ta)&&ta!=Ca.currentRoot&&(Xa=Ca.getState(ta),La=Xa.x,Xa=Xa.y);Ha=Ja.x;Ja=Ja.y;la.model.isEdge(f[Fa])&&(Ja=Ha=0);this.previewElement.style.left=(Ia.x-Ha)*Ca.scale+La+"px";this.previewElement.style.top=(Ia.y-Ja)*Ca.scale+Xa+"px";1==f.length&&(this.previewElement.style.width=Ia.width*Ca.scale+"px",this.previewElement.style.height=
+Ia.height*Ca.scale+"px",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="none",this.previewElement.className="geDragPreview",mxUtils.setOpacity(this.previewElement,100)));this.previewElement.style.display=""}else null!=G.currentHighlight&&null!=G.currentHighlight.state&&la.model.isEdge(G.currentHighlight.state.cell)?(this.previewElement.style.left=Math.round(parseInt(this.previewElement.style.left)-h.width*Ca.scale/2)+"px",this.previewElement.style.top=Math.round(parseInt(this.previewElement.style.top)-
+h.height*Ca.scale/2)+"px"):(this.previewElement.style.width=this.previewElementWidth,this.previewElement.style.height=this.previewElementHeight,this.previewElement.style.display="",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="",mxUtils.setOpacity(this.previewElement,50),this.previewElement.className=""))}};var ja=(new Date).getTime(),H=0,ea=null,oa=this.editorUi.editor.graph.getCellStyle(f[0]);G.getDropTarget=mxUtils.bind(this,function(la,Ba,Ca,Fa){var Ia=mxEvent.isAltDown(Fa)||
+null==f?null:la.getCellAt(Ba,Ca,null,null,null,function(Xa,Ya,cb){return la.isContainer(Xa.cell)&&"0"!=mxUtils.getValue(Xa.style,"dropTarget","1")});if(null!=Ia&&!this.graph.isCellConnectable(Ia)&&!this.graph.model.isEdge(Ia)){var Ha=this.graph.getModel().getParent(Ia);this.graph.getModel().isVertex(Ha)&&this.graph.isCellConnectable(Ha)&&(Ia=Ha)}la.isCellLocked(Ia)&&(Ia=null);var Ja=la.view.getState(Ia);Ha=O=null;ea!=Ja?(ja=(new Date).getTime(),H=0,ea=Ja,null!=this.updateThread&&window.clearTimeout(this.updateThread),
+null!=Ja&&(this.updateThread=window.setTimeout(function(){null==O&&(ea=Ja,G.getDropTarget(la,Ba,Ca,Fa))},this.dropTargetDelay+10))):H=(new Date).getTime()-ja;if(D&&2500>H&&null!=Ja&&!mxEvent.isShiftDown(Fa)&&(mxUtils.getValue(Ja.style,mxConstants.STYLE_SHAPE)!=mxUtils.getValue(oa,mxConstants.STYLE_SHAPE)&&(mxUtils.getValue(Ja.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ja.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ja.style,
+mxConstants.STYLE_GRADIENTCOLOR,mxConstants.NONE)!=mxConstants.NONE)||"image"==mxUtils.getValue(oa,mxConstants.STYLE_SHAPE)||1500<H||la.model.isEdge(Ja.cell))&&H>this.dropTargetDelay&&!this.isDropStyleTargetIgnored(Ja)&&(la.model.isVertex(Ja.cell)&&null!=x||la.model.isEdge(Ja.cell)&&la.model.isEdge(f[0]))){if(la.isCellEditable(Ja.cell)){K=Ja;var ta=la.model.isEdge(Ja.cell)?la.view.getPoint(Ja):new mxPoint(Ja.getCenterX(),Ja.getCenterY());ta=new mxRectangle(ta.x-this.refreshTarget.width/2,ta.y-this.refreshTarget.height/
+2,this.refreshTarget.width,this.refreshTarget.height);V.style.left=Math.floor(ta.x)+"px";V.style.top=Math.floor(ta.y)+"px";null==aa&&(la.container.appendChild(V),aa=V.parentNode);m(Ba,Ca,ta,V)}}else null==K||!mxUtils.contains(K,Ba,Ca)||1500<H&&!mxEvent.isShiftDown(Fa)?(K=null,null!=aa&&(V.parentNode.removeChild(V),aa=null)):null!=K&&null!=aa&&(ta=la.model.isEdge(K.cell)?la.view.getPoint(K):new mxPoint(K.getCenterX(),K.getCenterY()),ta=new mxRectangle(ta.x-this.refreshTarget.width/2,ta.y-this.refreshTarget.height/
+2,this.refreshTarget.width,this.refreshTarget.height),m(Ba,Ca,ta,V));if(U&&null!=L&&!mxEvent.isAltDown(Fa)&&null==O){Ha=mxRectangle.fromRectangle(L);if(la.model.isEdge(L.cell)){var La=L.absolutePoints;null!=ia.parentNode&&(ta=La[0],Ha.add(m(Ba,Ca,new mxRectangle(ta.x-this.roundDrop.width/2,ta.y-this.roundDrop.height/2,this.roundDrop.width,this.roundDrop.height),ia)));null!=na.parentNode&&(La=La[La.length-1],Ha.add(m(Ba,Ca,new mxRectangle(La.x-this.roundDrop.width/2,La.y-this.roundDrop.height/2,this.roundDrop.width,
+this.roundDrop.height),na)))}else ta=mxRectangle.fromRectangle(L),null!=L.shape&&null!=L.shape.boundingBox&&(ta=mxRectangle.fromRectangle(L.shape.boundingBox)),ta.grow(this.graph.tolerance),ta.grow(HoverIcons.prototype.arrowSpacing),La=this.graph.selectionCellsHandler.getHandler(L.cell),null!=La&&(ta.x-=La.horizontalOffset/2,ta.y-=La.verticalOffset/2,ta.width+=La.horizontalOffset,ta.height+=La.verticalOffset,null!=La.rotationShape&&null!=La.rotationShape.node&&"hidden"!=La.rotationShape.node.style.visibility&&
+"none"!=La.rotationShape.node.style.display&&null!=La.rotationShape.boundingBox&&ta.add(La.rotationShape.boundingBox)),Ha.add(m(Ba,Ca,new mxRectangle(L.getCenterX()-this.triangleUp.width/2,ta.y-this.triangleUp.height,this.triangleUp.width,this.triangleUp.height),Y)),Ha.add(m(Ba,Ca,new mxRectangle(ta.x+ta.width,L.getCenterY()-this.triangleRight.height/2,this.triangleRight.width,this.triangleRight.height),Q)),Ha.add(m(Ba,Ca,new mxRectangle(L.getCenterX()-this.triangleDown.width/2,ta.y+ta.height,this.triangleDown.width,
+this.triangleDown.height),P)),Ha.add(m(Ba,Ca,new mxRectangle(ta.x-this.triangleLeft.width,L.getCenterY()-this.triangleLeft.height/2,this.triangleLeft.width,this.triangleLeft.height),M));null!=Ha&&Ha.grow(10)}qa=mxConstants.DIRECTION_NORTH;O==Q?qa=mxConstants.DIRECTION_EAST:O==P||O==na?qa=mxConstants.DIRECTION_SOUTH:O==M&&(qa=mxConstants.DIRECTION_WEST);null!=K&&O==V&&(Ja=K);ta=(null==x||la.isCellConnectable(f[x]))&&(la.model.isEdge(Ia)&&null!=x||la.model.isVertex(Ia)&&la.isCellConnectable(Ia));if(null!=
+L&&5E3<=H||L!=Ja&&(null==Ha||!mxUtils.contains(Ha,Ba,Ca)||500<H&&null==O&&ta))if(U=!1,L=5E3>H&&H>this.dropTargetDelay||la.model.isEdge(Ia)?Ja:null,null!=L&&ta){Ha=[ia,na,Y,Q,P,M];for(ta=0;ta<Ha.length;ta++)null!=Ha[ta].parentNode&&Ha[ta].parentNode.removeChild(Ha[ta]);la.model.isEdge(Ia)?(La=Ja.absolutePoints,null!=La&&(ta=La[0],La=La[La.length-1],ia.style.left=Math.floor(ta.x-this.roundDrop.width/2)+"px",ia.style.top=Math.floor(ta.y-this.roundDrop.height/2)+"px",na.style.left=Math.floor(La.x-this.roundDrop.width/
+2)+"px",na.style.top=Math.floor(La.y-this.roundDrop.height/2)+"px",null==la.model.getTerminal(Ia,!0)&&la.container.appendChild(ia),null==la.model.getTerminal(Ia,!1)&&la.container.appendChild(na))):(ta=mxRectangle.fromRectangle(Ja),null!=Ja.shape&&null!=Ja.shape.boundingBox&&(ta=mxRectangle.fromRectangle(Ja.shape.boundingBox)),ta.grow(this.graph.tolerance),ta.grow(HoverIcons.prototype.arrowSpacing),La=this.graph.selectionCellsHandler.getHandler(Ja.cell),null!=La&&(ta.x-=La.horizontalOffset/2,ta.y-=
La.verticalOffset/2,ta.width+=La.horizontalOffset,ta.height+=La.verticalOffset,null!=La.rotationShape&&null!=La.rotationShape.node&&"hidden"!=La.rotationShape.node.style.visibility&&"none"!=La.rotationShape.node.style.display&&null!=La.rotationShape.boundingBox&&ta.add(La.rotationShape.boundingBox)),Y.style.left=Math.floor(Ja.getCenterX()-this.triangleUp.width/2)+"px",Y.style.top=Math.floor(ta.y-this.triangleUp.height)+"px",Q.style.left=Math.floor(ta.x+ta.width)+"px",Q.style.top=Math.floor(Ja.getCenterY()-
-this.triangleRight.height/2)+"px",P.style.left=Y.style.left,P.style.top=Math.floor(ta.y+ta.height)+"px",M.style.left=Math.floor(ta.x-this.triangleLeft.width)+"px",M.style.top=Q.style.top,"eastwest"!=Ja.style.portConstraint&&(ma.container.appendChild(Y),ma.container.appendChild(P)),ma.container.appendChild(Q),ma.container.appendChild(M));null!=Ja&&(T=ma.selectionCellsHandler.getHandler(Ja.cell),null!=T&&null!=T.setHandlesVisible&&T.setHandlesVisible(!1));U=!0}else for(Ha=[ia,oa,Y,Q,P,M],ta=0;ta<Ha.length;ta++)null!=
-Ha[ta].parentNode&&Ha[ta].parentNode.removeChild(Ha[ta]);U||null==T||T.setHandlesVisible(!0);Ia=mxEvent.isAltDown(Ga)&&!mxEvent.isShiftDown(Ga)||null!=K&&O==W?null:mxDragSource.prototype.getDropTarget.apply(this,arguments);null==Ia||null==O&&ma.isSplitTarget(Ia,f,Ga)||(Ia=ma.getDropTarget(f,Ga,Ia,!0));return Ia});var sa=G.startDrag;G.startDrag=function(ma){z.activeDragSource=this;sa.apply(this,arguments)};var Pa=G.stopDrag;G.stopDrag=function(){Pa.apply(this,arguments);for(var ma=[ia,oa,W,Y,Q,P,M],
-Ca=0;Ca<ma.length;Ca++)null!=ma[Ca].parentNode&&ma[Ca].parentNode.removeChild(ma[Ca]);null!=L&&null!=T&&T.reset();O=aa=K=L=T=z.activeDragSource=null};return G};
+this.triangleRight.height/2)+"px",P.style.left=Y.style.left,P.style.top=Math.floor(ta.y+ta.height)+"px",M.style.left=Math.floor(ta.x-this.triangleLeft.width)+"px",M.style.top=Q.style.top,"eastwest"!=Ja.style.portConstraint&&(la.container.appendChild(Y),la.container.appendChild(P)),la.container.appendChild(Q),la.container.appendChild(M));null!=Ja&&(T=la.selectionCellsHandler.getHandler(Ja.cell),null!=T&&null!=T.setHandlesVisible&&T.setHandlesVisible(!1));U=!0}else for(Ha=[ia,na,Y,Q,P,M],ta=0;ta<Ha.length;ta++)null!=
+Ha[ta].parentNode&&Ha[ta].parentNode.removeChild(Ha[ta]);U||null==T||T.setHandlesVisible(!0);Ia=mxEvent.isAltDown(Fa)&&!mxEvent.isShiftDown(Fa)||null!=K&&O==V?null:mxDragSource.prototype.getDropTarget.apply(this,arguments);null==Ia||null==O&&la.isSplitTarget(Ia,f,Fa)||(Ia=la.getDropTarget(f,Fa,Ia,!0));return Ia});var sa=G.startDrag;G.startDrag=function(la){z.activeDragSource=this;sa.apply(this,arguments)};var Pa=G.stopDrag;G.stopDrag=function(){Pa.apply(this,arguments);for(var la=[ia,na,V,Y,Q,P,M],
+Ba=0;Ba<la.length;Ba++)null!=la[Ba].parentNode&&la[Ba].parentNode.removeChild(la[Ba]);null!=L&&null!=T&&T.reset();O=aa=K=L=T=z.activeDragSource=null};return G};
Sidebar.prototype.itemClicked=function(a,b,e,f){f=this.editorUi.editor.graph;f.container.focus();if(mxEvent.isAltDown(e)&&1==f.getSelectionCount()&&f.model.isVertex(f.getSelectionCell())){b=null;for(var h=0;h<a.length&&null==b;h++)f.model.isVertex(a[h])&&(b=h);null!=b&&(f.setSelectionCells(this.dropAndConnect(f.getSelectionCell(),a,mxEvent.isMetaDown(e)||mxEvent.isControlDown(e)?mxEvent.isShiftDown(e)?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH:mxEvent.isShiftDown(e)?mxConstants.DIRECTION_EAST:
mxConstants.DIRECTION_SOUTH,b,e)),f.scrollCellToVisible(f.getSelectionCell()))}else mxEvent.isShiftDown(e)&&!f.isSelectionEmpty()?(e=f.getEditableCells(f.getSelectionCells()),f.updateShapes(a[0],e,!0),f.scrollCellToVisible(e)):(a=mxEvent.isAltDown(e)?f.getFreeInsertPoint():f.getCenterInsertPoint(f.getBoundingBoxFromGeometry(a,!0)),b.drop(f,e,null,a.x,a.y,!0))};
-Sidebar.prototype.addClickHandler=function(a,b,e,f){var h=b.getGraphForEvent,d=b.mouseDown,g=b.mouseMove,m=b.mouseUp,q=this.editorUi.editor.graph.tolerance,k=!1,u=null,w=this,z=null;b.getGraphForEvent=function(C){return k?h.apply(this,arguments):null};b.mouseDown=function(C){d.apply(this,arguments);u=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C));z=a.style.opacity;k=!1;""==z&&(z="1");null!=this.dragElement&&(this.dragElement.style.display="none",mxUtils.setOpacity(a,50))};b.mouseMove=function(C){(k=
-null!=u&&(Math.abs(u.x-mxEvent.getClientX(C))>q||Math.abs(u.y-mxEvent.getClientY(C))>q))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="",mxUtils.setOpacity(a,100*z));g.apply(this,arguments)};b.mouseUp=function(C){try{mxEvent.isPopupTrigger(C)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=f&&f(C),mxEvent.isConsumed(C)||w.itemClicked(e,b,C,a)),m.apply(b,arguments),mxUtils.setOpacity(a,100*z),u=null,
-w.currentElt=a}catch(E){b.reset(),w.editorUi.handleError(E)}}};Sidebar.prototype.createVertexTemplateEntry=function(a,b,e,f,h,d,g,m){null!=m&&null!=h&&(m+=" "+h);m=null!=m&&0<m.length?m:null!=h?h.toLowerCase():"";return this.addEntry(m,mxUtils.bind(this,function(){return this.createVertexTemplate(a,b,e,f,h,d,g)}))};
-Sidebar.prototype.createVertexTemplate=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){a=[new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a)];a[0].vertex=!0;return this.createVertexTemplateFromCells(a,b,e,h,d,g,m,q,k,u,w,z,C)};
-Sidebar.prototype.createVertexTemplateFromData=function(a,b,e,f,h,d,g,m){var q=null;try{var k=mxUtils.parseXml(Graph.decompress(a)),u=new mxCodec(k),w=new mxGraphModel;u.decode(k.documentElement,w);q=this.graph.cloneCells(w.root.getChildAt(0).children)}catch(z){f=mxResources.get("error")+": "+z.message}return this.createVertexTemplateFromCells(q,b,e,f,h,d,g,m)};Sidebar.prototype.createVertexTemplateFromCells=function(a,b,e,f,h,d,g,m,q,k,u,w,z,C){return this.createItem(a,f,h,d,b,e,g,m,q,k,u,w,z,C)};
-Sidebar.prototype.createEdgeTemplateEntry=function(a,b,e,f,h,d,g,m,q){g=null!=g&&0<g.length?g:h.toLowerCase();return this.addEntry(g,mxUtils.bind(this,function(){return this.createEdgeTemplate(a,b,e,f,h,d,m,q)}))};
-Sidebar.prototype.createEdgeTemplate=function(a,b,e,f,h,d,g,m){a=new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a);a.geometry.setTerminalPoint(new mxPoint(0,e),!0);a.geometry.setTerminalPoint(new mxPoint(b,0),!1);a.geometry.relative=!0;a.edge=!0;return this.createEdgeTemplateFromCells([a],b,e,h,d,g,m)};Sidebar.prototype.createEdgeTemplateFromCells=function(a,b,e,f,h,d,g,m,q,k,u,w){return this.createItem(a,f,h,null!=m?m:!0,b,e,d,g,q,k,u,w)};
+Sidebar.prototype.addClickHandler=function(a,b,e,f){var h=b.getGraphForEvent,d=b.mouseDown,g=b.mouseMove,m=b.mouseUp,p=this.editorUi.editor.graph.tolerance,k=!1,u=null,x=this,z=null;b.getGraphForEvent=function(C){return k?h.apply(this,arguments):null};b.mouseDown=function(C){d.apply(this,arguments);u=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C));z=a.style.opacity;k=!1;""==z&&(z="1");null!=this.dragElement&&(this.dragElement.style.display="none",mxUtils.setOpacity(a,50))};b.mouseMove=function(C){(k=
+null!=u&&(Math.abs(u.x-mxEvent.getClientX(C))>p||Math.abs(u.y-mxEvent.getClientY(C))>p))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="",mxUtils.setOpacity(a,100*z));g.apply(this,arguments)};b.mouseUp=function(C){try{mxEvent.isPopupTrigger(C)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=f&&f(C),mxEvent.isConsumed(C)||x.itemClicked(e,b,C,a)),m.apply(b,arguments),mxUtils.setOpacity(a,100*z),u=null,
+x.currentElt=a}catch(E){b.reset(),x.editorUi.handleError(E)}}};Sidebar.prototype.createVertexTemplateEntry=function(a,b,e,f,h,d,g,m){null!=m&&null!=h&&(m+=" "+h);m=null!=m&&0<m.length?m:null!=h?h.toLowerCase():"";return this.addEntry(m,mxUtils.bind(this,function(){return this.createVertexTemplate(a,b,e,f,h,d,g)}))};
+Sidebar.prototype.createVertexTemplate=function(a,b,e,f,h,d,g,m,p,k,u,x,z,C){a=[new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a)];a[0].vertex=!0;return this.createVertexTemplateFromCells(a,b,e,h,d,g,m,p,k,u,x,z,C)};
+Sidebar.prototype.createVertexTemplateFromData=function(a,b,e,f,h,d,g,m){var p=null;try{var k=mxUtils.parseXml(Graph.decompress(a)),u=new mxCodec(k),x=new mxGraphModel;u.decode(k.documentElement,x);p=this.graph.cloneCells(x.root.getChildAt(0).children)}catch(z){f=mxResources.get("error")+": "+z.message}return this.createVertexTemplateFromCells(p,b,e,f,h,d,g,m)};Sidebar.prototype.createVertexTemplateFromCells=function(a,b,e,f,h,d,g,m,p,k,u,x,z,C){return this.createItem(a,f,h,d,b,e,g,m,p,k,u,x,z,C)};
+Sidebar.prototype.createEdgeTemplateEntry=function(a,b,e,f,h,d,g,m,p){g=null!=g&&0<g.length?g:h.toLowerCase();return this.addEntry(g,mxUtils.bind(this,function(){return this.createEdgeTemplate(a,b,e,f,h,d,m,p)}))};
+Sidebar.prototype.createEdgeTemplate=function(a,b,e,f,h,d,g,m){a=new mxCell(null!=f?f:"",new mxGeometry(0,0,b,e),a);a.geometry.setTerminalPoint(new mxPoint(0,e),!0);a.geometry.setTerminalPoint(new mxPoint(b,0),!1);a.geometry.relative=!0;a.edge=!0;return this.createEdgeTemplateFromCells([a],b,e,h,d,g,m)};Sidebar.prototype.createEdgeTemplateFromCells=function(a,b,e,f,h,d,g,m,p,k,u,x){return this.createItem(a,f,h,null!=m?m:!0,b,e,d,g,p,k,u,x)};
Sidebar.prototype.addPaletteFunctions=function(a,b,e,f){this.addPalette(a,b,e,mxUtils.bind(this,function(h){for(var d=0;d<f.length;d++)h.appendChild(f[d](h))}))};
Sidebar.prototype.addPalette=function(a,b,e,f){b=this.createTitle(b);this.appendChild(b);var h=document.createElement("div");h.className="geSidebar";mxClient.IS_POINTER&&(h.style.touchAction="none");e&&this.expandLibraries?(f(h),f=null):h.style.display="none";this.addFoldingHandler(b,h,f);e=document.createElement("div");e.appendChild(h);this.appendChild(e);null!=a&&(this.palettes[a]=[b,e]);return h};
Sidebar.prototype.addFoldingHandler=function(a,b,e){var f=!1;a.style.backgroundImage="none"==b.style.display?"url('"+Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+"')";a.style.backgroundRepeat="no-repeat";a.style.backgroundPosition="0px 50%";a.style.backgroundSize="20px";mxEvent.addListener(a,"click",mxUtils.bind(this,function(h){if(a.contains(mxEvent.getSource(h))){if("none"==b.style.display){if(f)this.setContentVisible(b,!0);else if(f=!0,null!=e){a.style.cursor="wait";for(var d=[],g=
@@ -2499,49 +2511,50 @@ Sidebar.prototype.addFoldingHandler=function(a,b,e){var f=!1;a.style.backgroundI
"')",this.setContentVisible(b,!1);mxEvent.consume(h)}}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(h){h.preventDefault()}))};
Sidebar.prototype.setContentVisible=function(a,b){mxUtils.setPrefixedStyle(a.style,"transition","all 0.2s linear");mxUtils.setPrefixedStyle(a.style,"transform-origin","top left");b?(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),a.style.display="block",window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform","scaleY(1)");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform",null);mxUtils.setPrefixedStyle(a.style,"transition",
null)}),200)}),0)):(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform",null);mxUtils.setPrefixedStyle(a.style,"transition",null);a.style.display="none"}),200))};Sidebar.prototype.removePalette=function(a){var b=this.palettes[a];if(null!=b){this.palettes[a]=null;for(a=0;a<b.length;a++)this.container.removeChild(b[a]);return!0}return!1};
-Sidebar.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,
+Sidebar.prototype.addImagePalette=function(a,b,e,f,h,d,g){for(var m=[],p=0;p<h.length;p++)mxUtils.bind(this,function(k,u,x){if(null==x&&(null==e||"img/lib/clip_art/"!=e.substring(0,17))){x=k.lastIndexOf("/");var z=k.lastIndexOf(".");x=k.substring(0<=x?x+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(x)))})(h[p],null!=d?d[p]:null,null!=g?g[h[p]]: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,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.addStencilPalette=function(a,b,e,f,h,d,g,m,p,k){g=null!=g?g:1;if(this.addStencilsToIndex){var u=[];if(null!=p)for(k=0;k<p.length;k++)u.push(p[k]);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(x,z,C,E,D){if(null==h||0>mxUtils.indexOf(h,z)){C=this.getTagsForStencil(x,z);var G=null!=m?m[z]:null;null!=G&&C.push(G);u.push(this.createVertexTemplateEntry("shape="+x+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(x){null==f&&(f="");null!=d&&d.call(this,x);if(null!=p)for(var z=0;z<p.length;z++)p[z](x);mxStencilRegistry.loadStencilSet(e,mxUtils.bind(this,function(C,E,D,G,I){(null==h||0>mxUtils.indexOf(h,E))&&x.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()});
Uint8Array.from||(Uint8Array.from=function(){var a=Object.prototype.toString,b=function(f){return"function"===typeof f||"[object Function]"===a.call(f)},e=Math.pow(2,53)-1;return function(f){var h=Object(f);if(null==f)throw new TypeError("Array.from requires an array-like object - not null or undefined");var d=1<arguments.length?arguments[1]:void 0,g;if("undefined"!==typeof d){if(!b(d))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(g=
-arguments[2])}var m=Number(h.length);m=isNaN(m)?0:0!==m&&isFinite(m)?(0<m?1:-1)*Math.floor(Math.abs(m)):m;m=Math.min(Math.max(m,0),e);for(var q=b(this)?Object(new this(m)):Array(m),k=0,u;k<m;)u=h[k],q[k]=d?"undefined"===typeof g?d(u,k):d.call(g,u,k):u,k+=1;q.length=m;return q}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
+arguments[2])}var m=Number(h.length);m=isNaN(m)?0:0!==m&&isFinite(m)?(0<m?1:-1)*Math.floor(Math.abs(m)):m;m=Math.min(Math.max(m,0),e);for(var p=b(this)?Object(new this(m)):Array(m),k=0,u;k<m;)u=h[k],p[k]=d?"undefined"===typeof g?d(u,k):d.call(g,u,k):u,k+=1;p.length=m;return p}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
mxGraph.prototype.pageBreakColor="#c0c0c0";mxGraph.prototype.pageScale=1;(function(){try{if(null!=navigator&&null!=navigator.language){var a=navigator.language.toLowerCase();mxGraph.prototype.pageFormat="en-us"===a||"en-ca"===a||"es-mx"===a?mxConstants.PAGE_FORMAT_LETTER_PORTRAIT:mxConstants.PAGE_FORMAT_A4_PORTRAIT}}catch(b){}})();mxText.prototype.baseSpacingTop=5;mxText.prototype.baseSpacingBottom=1;mxGraphModel.prototype.ignoreRelativeEdgeParent=!1;
mxGraphView.prototype.gridImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhCgAKAJEAAAAAAP///8zMzP///yH5BAEAAAMALAAAAAAKAAoAAAIJ1I6py+0Po2wFADs=":IMAGE_PATH+"/grid.gif";mxGraphView.prototype.gridSteps=4;mxGraphView.prototype.minGridSize=4;mxGraphView.prototype.defaultGridColor="#d0d0d0";mxGraphView.prototype.defaultDarkGridColor="#424242";mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultGridColor;mxGraphView.prototype.unit=mxConstants.POINTS;
mxGraphView.prototype.setUnit=function(a){this.unit!=a&&(this.unit=a,this.graph.refresh(),this.fireEvent(new mxEventObject("unitChanged","unit",a)))};mxSvgCanvas2D.prototype.foAltText="[Not supported by viewer]";mxShape.prototype.getConstraints=function(a,b,e){return null};
mxImageShape.prototype.getImageDataUri=function(){var a=String(this.image);if("data:image/svg+xml;base64,"==a.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=a)this.clippedSvg=Graph.clipSvgDataUri(a,!0),this.clippedImage=a;a=this.clippedSvg}return a};
(function(){var a=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(b,e,f,h,d){return"default"==h&&null!=d?"fillcolor"==f.nodeName?d.shapeBackgroundColor:d.shapeForegroundColor:a.apply(this,arguments)}})();(function(){var a=mxResources.get;mxResources.get=function(b,e,f){null==f&&(f=b);return a.apply(this,[b,e,f])}})();
+(function(){var a=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(b,e,f,h,d,g,m,p){var k=a.apply(this,arguments);if(null!=e){var u=k.getElementsByTagName("img");0<u.length&&(u[0].className="geToolbarButton geAdaptiveAsset",u[0].style.margin="4px",u[0].style.width="18px")}return k}})();
Graph=function(a,b,e,f,h,d){mxGraph.call(this,a,b,e,f);this.themes=h||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=d?d:!1;a=this.baseUrl;b=a.indexOf("//");this.domainPathUrl=this.domainUrl="";0<b&&(b=a.indexOf("/",b+2),0<b&&(this.domainUrl=a.substring(0,b)),b=a.lastIndexOf("/"),0<b&&(this.domainPathUrl=a.substring(0,b+1)));this.isHtmlLabel=function(O){O=this.getCurrentCellStyle(O);
-return null!=O?"1"==O.html||"wrap"==O[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var g=null,m=null,q=null,k=null,u=!1,w=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,Z){if("mouseDown"==Z.getProperty("eventName")&&this.isEnabled()){O=Z.getProperty("event");var ca=O.getState();Z=this.view.scale;if(!mxEvent.isAltDown(O.getEvent())&&null!=ca&&(w=this.isCellSelected(ca.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(O.getEvent()))){var V=this.selectionCellsHandler.getHandler(ca.cell);
-if(null==V||null==V.getHandleForEvent(O)){var ja=new mxRectangle(O.getGraphX()-1,O.getGraphY()-1),H=mxEvent.isTouchEvent(O.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;V=H+2;ja.grow(H);if(this.isTableCell(ca.cell)&&this.isCellMovable(ca.cell)&&!this.isCellSelected(ca.cell)&&!(mxUtils.contains(ca,O.getGraphX()-V,O.getGraphY()-V)&&mxUtils.contains(ca,O.getGraphX()-V,O.getGraphY()+V)&&mxUtils.contains(ca,O.getGraphX()+V,O.getGraphY()+V)&&mxUtils.contains(ca,
-O.getGraphX()+V,O.getGraphY()-V))){var ea=this.model.getParent(ca.cell);V=this.model.getParent(ea);if(!this.isCellSelected(V)){H*=Z;var la=2*H;if(this.model.getChildAt(V,0)!=ea&&mxUtils.intersects(ja,new mxRectangle(ca.x,ca.y-H,ca.width,la))||this.model.getChildAt(ea,0)!=ca.cell&&mxUtils.intersects(ja,new mxRectangle(ca.x-H,ca.y,la,ca.height))||mxUtils.intersects(ja,new mxRectangle(ca.x,ca.y+ca.height-H,ca.width,la))||mxUtils.intersects(ja,new mxRectangle(ca.x+ca.width-H,ca.y,la,ca.height)))ea=this.selectionCellsHandler.isHandled(V),
-this.selectCellForEvent(V,O.getEvent()),V=this.selectionCellsHandler.getHandler(V),null!=V&&(H=V.getHandleForEvent(O),null!=H&&(V.start(O.getGraphX(),O.getGraphY(),H),V.blockDelayedSelection=!ea,O.consume()))}}for(;!O.isConsumed()&&null!=ca&&(this.isTableCell(ca.cell)||this.isTableRow(ca.cell)||this.isTable(ca.cell));)this.isSwimlane(ca.cell)&&this.isCellMovable(ca.cell)&&(V=this.getActualStartSize(ca.cell),(0<V.x||0<V.width)&&mxUtils.intersects(ja,new mxRectangle(ca.x+(V.x-V.width-1)*Z+(0==V.x?ca.width:
-0),ca.y,1,ca.height))||(0<V.y||0<V.height)&&mxUtils.intersects(ja,new mxRectangle(ca.x,ca.y+(V.y-V.height-1)*Z+(0==V.y?ca.height:0),ca.width,1)))&&(this.selectCellForEvent(ca.cell,O.getEvent()),V=this.selectionCellsHandler.getHandler(ca.cell),null!=V&&null!=V.customHandles&&(H=mxEvent.CUSTOM_HANDLE-V.customHandles.length+1,V.start(O.getGraphX(),O.getGraphY(),H),O.consume())),ca=this.view.getState(this.model.getParent(ca.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,function(O,
-Z){if("mouseDown"==Z.getProperty("eventName")&&this.isEnabled()){O=Z.getProperty("event");var ca=O.getState();mxEvent.isAltDown(O.getEvent())||mxEvent.isControlDown(Z)||mxEvent.isShiftDown(Z)||w||null==ca||!this.model.isEdge(ca.cell)||(g=new mxPoint(O.getGraphX(),O.getGraphY()),u=this.isCellSelected(ca.cell),q=ca,m=O,null!=ca.text&&null!=ca.text.boundingBox&&mxUtils.contains(ca.text.boundingBox,O.getGraphX(),O.getGraphY())?k=mxEvent.LABEL_HANDLE:(Z=this.selectionCellsHandler.getHandler(ca.cell),null!=
-Z&&null!=Z.bends&&0<Z.bends.length&&(k=Z.getHandleForEvent(O))))}}));this.addMouseListener({mouseDown:function(O,Z){},mouseMove:mxUtils.bind(this,function(O,Z){O=this.selectionCellsHandler.handlers.map;for(var ca in O)if(null!=O[ca].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(Z.getEvent())){var V=this.tolerance;if(null!=g&&null!=q&&null!=m){if(ca=q,null!=k||Math.abs(g.x-Z.getGraphX())>V||Math.abs(g.y-Z.getGraphY())>V){var ja=null;mxEvent.isShiftDown(Z.getEvent())||
-(ja=this.selectionCellsHandler.getHandler(ca.cell));if(null!=ja&&null!=ja.bends&&0<ja.bends.length){ja.redrawHandles();var H=null!=k?k:ja.getHandleForEvent(m),ea=this.view.getEdgeStyle(ca),la=ea==mxEdgeStyle.EntityRelation;V=ca.absolutePoints;u||(H=k);H!=mxEvent.LABEL_HANDLE&&null!=V&&(H=k,null==H&&(O=new mxRectangle(g.x,g.y),O.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(O,V[0].x,V[0].y)?H=0:mxUtils.contains(O,V[V.length-1].x,V[V.length-1].y)?H=ja.bends.length-1:null!=V&&(null==
-ea&&null==H||ea==mxEdgeStyle.SegmentConnector||ea==mxEdgeStyle.OrthConnector)&&(null!=ea&&(2==V.length||3==V.length&&(0==Math.round(V[0].x-V[1].x)&&0==Math.round(V[1].x-V[2].x)||0==Math.round(V[0].y-V[1].y)&&0==Math.round(V[1].y-V[2].y)))?H=2:(H=mxUtils.findNearestSegment(ca,g.x,g.y),H=null==ea?mxEvent.VIRTUAL_HANDLE-H:H+1))),null==H&&(H=mxEvent.VIRTUAL_HANDLE));O=H==mxEvent.LABEL_HANDLE||0==H||H==ja.bends.length-1;if(!la&&(null!=ca.visibleSourceState||null!=ca.visibleTargetState)||O)ja.start(Z.getGraphX(),
-Z.getGraphX(),H),Z.consume(),this.graphHandler.reset()}null!=ja&&(this.selectionCellsHandler.isHandlerActive(ja)?this.isCellSelected(ca.cell)||(this.selectionCellsHandler.handlers.put(ca.cell,ja),this.selectCellForEvent(ca.cell,Z.getEvent())):this.isCellSelected(ca.cell)||ja.destroy());u=!1;g=m=q=k=null}}else if(ca=Z.getState(),null!=ca&&this.isCellEditable(ca.cell)){O=this.model.getParent(ca.cell);ja=null;if(this.model.isEdge(ca.cell)&&!this.isCellSelected(ca.cell)&&!mxEvent.isAltDown(Z.getEvent())&&
-!mxEvent.isShiftDown(Z.getEvent())&&!this.isAncestorSelected(ca.cell)&&(this.isSwimlane(O)||this.model.isLayer(O)||this.getCurrentRoot()==O)){if(O=new mxRectangle(Z.getGraphX(),Z.getGraphY()),O.grow(mxEdgeHandler.prototype.handleImage.width/2),V=ca.absolutePoints,null!=V)null!=ca.text&&null!=ca.text.boundingBox&&mxUtils.contains(ca.text.boundingBox,Z.getGraphX(),Z.getGraphY())?ja="move":mxUtils.contains(O,V[0].x,V[0].y)||mxUtils.contains(O,V[V.length-1].x,V[V.length-1].y)?ja="pointer":(ea=this.view.getEdgeStyle(ca),
-ea==mxEdgeStyle.EntityRelation||null==ca.visibleSourceState&&null==ca.visibleTargetState||(ja="crosshair",ea!=mxEdgeStyle.SegmentConnector&&ea!=mxEdgeStyle.OrthConnector))||(Z=mxUtils.findNearestSegment(ca,Z.getGraphX(),Z.getGraphY()),Z<V.length-1&&0<=Z&&(ja=0==Math.round(V[Z].x-V[Z+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(Z.getEvent())){V=mxShape.prototype.svgStrokeTolerance/2;O=new mxRectangle(Z.getGraphX(),Z.getGraphY());O.grow(V);if(this.isTableCell(ca.cell)&&this.isCellMovable(ca.cell)&&
-(Z=this.model.getParent(ca.cell),V=this.model.getParent(Z),!this.isCellSelected(V)))if(mxUtils.intersects(O,new mxRectangle(ca.x,ca.y-2,ca.width,4))&&this.model.getChildAt(V,0)!=Z||mxUtils.intersects(O,new mxRectangle(ca.x,ca.y+ca.height-2,ca.width,4)))ja="row-resize";else if(mxUtils.intersects(O,new mxRectangle(ca.x-2,ca.y,4,ca.height))&&this.model.getChildAt(Z,0)!=ca.cell||mxUtils.intersects(O,new mxRectangle(ca.x+ca.width-2,ca.y,4,ca.height)))ja="col-resize";for(Z=ca;null==ja&&null!=Z&&(this.isTableCell(Z.cell)||
-this.isTableRow(Z.cell)||this.isTable(Z.cell));)this.isSwimlane(Z.cell)&&this.isCellMovable(Z.cell)&&(V=this.getActualStartSize(Z.cell),H=this.view.scale,(0<V.x||0<V.width)&&mxUtils.intersects(O,new mxRectangle(Z.x+(V.x-V.width-1)*H+(0==V.x?Z.width*H:0),Z.y,1,Z.height))?ja="col-resize":(0<V.y||0<V.height)&&mxUtils.intersects(O,new mxRectangle(Z.x,Z.y+(V.y-V.height-1)*H+(0==V.y?Z.height:0),Z.width,1))&&(ja="row-resize")),Z=this.view.getState(this.model.getParent(Z.cell))}null!=ja&&ca.setCursor(ja)}}}),
-mouseUp:mxUtils.bind(this,function(O,Z){k=g=m=q=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var z=document.createElement("div");this.cellRenderer.getLabelValue=function(O){var Z=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);O.view.graph.isHtmlLabel(O.cell)&&("0"==mxUtils.getValue(O.style,"html","0")?Z=mxUtils.htmlEntities(Z,!1):(O.lastLabelValue!=Z&&(O.lastLabelValue=Z,O.lastSanitizedLabelValue=Graph.sanitizeHtml(Z),z.innerHTML=O.lastSanitizedLabelValue,Graph.addLightDarkColors(z,
+return null!=O?"1"==O.html||"wrap"==O[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var g=null,m=null,p=null,k=null,u=!1,x=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,Z){if("mouseDown"==Z.getProperty("eventName")&&this.isEnabled()){O=Z.getProperty("event");var ca=O.getState();Z=this.view.scale;if(!mxEvent.isAltDown(O.getEvent())&&null!=ca&&(x=this.isCellSelected(ca.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(O.getEvent()))){var W=this.selectionCellsHandler.getHandler(ca.cell);
+if(null==W||null==W.getHandleForEvent(O)){var ja=new mxRectangle(O.getGraphX()-1,O.getGraphY()-1),H=mxEvent.isTouchEvent(O.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;W=H+2;ja.grow(H);if(this.isTableCell(ca.cell)&&this.isCellMovable(ca.cell)&&!this.isCellSelected(ca.cell)&&!(mxUtils.contains(ca,O.getGraphX()-W,O.getGraphY()-W)&&mxUtils.contains(ca,O.getGraphX()-W,O.getGraphY()+W)&&mxUtils.contains(ca,O.getGraphX()+W,O.getGraphY()+W)&&mxUtils.contains(ca,
+O.getGraphX()+W,O.getGraphY()-W))){var ea=this.model.getParent(ca.cell);W=this.model.getParent(ea);if(!this.isCellSelected(W)){H*=Z;var oa=2*H;if(this.model.getChildAt(W,0)!=ea&&mxUtils.intersects(ja,new mxRectangle(ca.x,ca.y-H,ca.width,oa))||this.model.getChildAt(ea,0)!=ca.cell&&mxUtils.intersects(ja,new mxRectangle(ca.x-H,ca.y,oa,ca.height))||mxUtils.intersects(ja,new mxRectangle(ca.x,ca.y+ca.height-H,ca.width,oa))||mxUtils.intersects(ja,new mxRectangle(ca.x+ca.width-H,ca.y,oa,ca.height)))ea=this.selectionCellsHandler.isHandled(W),
+this.selectCellForEvent(W,O.getEvent()),W=this.selectionCellsHandler.getHandler(W),null!=W&&(H=W.getHandleForEvent(O),null!=H&&(W.start(O.getGraphX(),O.getGraphY(),H),W.blockDelayedSelection=!ea,O.consume()))}}for(;!O.isConsumed()&&null!=ca&&(this.isTableCell(ca.cell)||this.isTableRow(ca.cell)||this.isTable(ca.cell));)this.isSwimlane(ca.cell)&&this.isCellMovable(ca.cell)&&(W=this.getActualStartSize(ca.cell),(0<W.x||0<W.width)&&mxUtils.intersects(ja,new mxRectangle(ca.x+(W.x-W.width-1)*Z+(0==W.x?ca.width:
+0),ca.y,1,ca.height))||(0<W.y||0<W.height)&&mxUtils.intersects(ja,new mxRectangle(ca.x,ca.y+(W.y-W.height-1)*Z+(0==W.y?ca.height:0),ca.width,1)))&&(this.selectCellForEvent(ca.cell,O.getEvent()),W=this.selectionCellsHandler.getHandler(ca.cell),null!=W&&null!=W.customHandles&&(H=mxEvent.CUSTOM_HANDLE-W.customHandles.length+1,W.start(O.getGraphX(),O.getGraphY(),H),O.consume())),ca=this.view.getState(this.model.getParent(ca.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,function(O,
+Z){if("mouseDown"==Z.getProperty("eventName")&&this.isEnabled()){O=Z.getProperty("event");var ca=O.getState();mxEvent.isAltDown(O.getEvent())||mxEvent.isControlDown(Z)||mxEvent.isShiftDown(Z)||x||null==ca||!this.model.isEdge(ca.cell)||(g=new mxPoint(O.getGraphX(),O.getGraphY()),u=this.isCellSelected(ca.cell),p=ca,m=O,null!=ca.text&&null!=ca.text.boundingBox&&mxUtils.contains(ca.text.boundingBox,O.getGraphX(),O.getGraphY())?k=mxEvent.LABEL_HANDLE:(Z=this.selectionCellsHandler.getHandler(ca.cell),null!=
+Z&&null!=Z.bends&&0<Z.bends.length&&(k=Z.getHandleForEvent(O))))}}));this.addMouseListener({mouseDown:function(O,Z){},mouseMove:mxUtils.bind(this,function(O,Z){O=this.selectionCellsHandler.handlers.map;for(var ca in O)if(null!=O[ca].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(Z.getEvent())){var W=this.tolerance;if(null!=g&&null!=p&&null!=m){if(ca=p,null!=k||Math.abs(g.x-Z.getGraphX())>W||Math.abs(g.y-Z.getGraphY())>W){var ja=null;mxEvent.isShiftDown(Z.getEvent())||
+(ja=this.selectionCellsHandler.getHandler(ca.cell));if(null!=ja&&null!=ja.bends&&0<ja.bends.length){ja.redrawHandles();var H=null!=k?k:ja.getHandleForEvent(m),ea=this.view.getEdgeStyle(ca),oa=ea==mxEdgeStyle.EntityRelation;W=ca.absolutePoints;u||(H=k);H!=mxEvent.LABEL_HANDLE&&null!=W&&(H=k,null==H&&(O=new mxRectangle(g.x,g.y),O.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(O,W[0].x,W[0].y)?H=0:mxUtils.contains(O,W[W.length-1].x,W[W.length-1].y)?H=ja.bends.length-1:null!=W&&(null==
+ea&&null==H||ea==mxEdgeStyle.SegmentConnector||ea==mxEdgeStyle.OrthConnector)&&(null!=ea&&(2==W.length||3==W.length&&(0==Math.round(W[0].x-W[1].x)&&0==Math.round(W[1].x-W[2].x)||0==Math.round(W[0].y-W[1].y)&&0==Math.round(W[1].y-W[2].y)))?H=2:(H=mxUtils.findNearestSegment(ca,g.x,g.y),H=null==ea?mxEvent.VIRTUAL_HANDLE-H:H+1))),null==H&&(H=mxEvent.VIRTUAL_HANDLE));O=H==mxEvent.LABEL_HANDLE||0==H||H==ja.bends.length-1;if(!oa&&(null!=ca.visibleSourceState||null!=ca.visibleTargetState)||O)ja.start(Z.getGraphX(),
+Z.getGraphX(),H),Z.consume(),this.graphHandler.reset()}null!=ja&&(this.selectionCellsHandler.isHandlerActive(ja)?this.isCellSelected(ca.cell)||(this.selectionCellsHandler.handlers.put(ca.cell,ja),this.selectCellForEvent(ca.cell,Z.getEvent())):this.isCellSelected(ca.cell)||ja.destroy());u=!1;g=m=p=k=null}}else if(ca=Z.getState(),null!=ca&&this.isCellEditable(ca.cell)){O=this.model.getParent(ca.cell);ja=null;if(this.model.isEdge(ca.cell)&&!this.isCellSelected(ca.cell)&&!mxEvent.isAltDown(Z.getEvent())&&
+!mxEvent.isShiftDown(Z.getEvent())&&!this.isAncestorSelected(ca.cell)&&(this.isSwimlane(O)||this.model.isLayer(O)||this.getCurrentRoot()==O)){if(O=new mxRectangle(Z.getGraphX(),Z.getGraphY()),O.grow(mxEdgeHandler.prototype.handleImage.width/2),W=ca.absolutePoints,null!=W)null!=ca.text&&null!=ca.text.boundingBox&&mxUtils.contains(ca.text.boundingBox,Z.getGraphX(),Z.getGraphY())?ja="move":mxUtils.contains(O,W[0].x,W[0].y)||mxUtils.contains(O,W[W.length-1].x,W[W.length-1].y)?ja="pointer":(ea=this.view.getEdgeStyle(ca),
+ea==mxEdgeStyle.EntityRelation||null==ca.visibleSourceState&&null==ca.visibleTargetState||(ja="crosshair",ea!=mxEdgeStyle.SegmentConnector&&ea!=mxEdgeStyle.OrthConnector))||(Z=mxUtils.findNearestSegment(ca,Z.getGraphX(),Z.getGraphY()),Z<W.length-1&&0<=Z&&(ja=0==Math.round(W[Z].x-W[Z+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(Z.getEvent())){W=mxShape.prototype.svgStrokeTolerance/2;O=new mxRectangle(Z.getGraphX(),Z.getGraphY());O.grow(W);if(this.isTableCell(ca.cell)&&this.isCellMovable(ca.cell)&&
+(Z=this.model.getParent(ca.cell),W=this.model.getParent(Z),!this.isCellSelected(W)))if(mxUtils.intersects(O,new mxRectangle(ca.x,ca.y-2,ca.width,4))&&this.model.getChildAt(W,0)!=Z||mxUtils.intersects(O,new mxRectangle(ca.x,ca.y+ca.height-2,ca.width,4)))ja="row-resize";else if(mxUtils.intersects(O,new mxRectangle(ca.x-2,ca.y,4,ca.height))&&this.model.getChildAt(Z,0)!=ca.cell||mxUtils.intersects(O,new mxRectangle(ca.x+ca.width-2,ca.y,4,ca.height)))ja="col-resize";for(Z=ca;null==ja&&null!=Z&&(this.isTableCell(Z.cell)||
+this.isTableRow(Z.cell)||this.isTable(Z.cell));)this.isSwimlane(Z.cell)&&this.isCellMovable(Z.cell)&&(W=this.getActualStartSize(Z.cell),H=this.view.scale,(0<W.x||0<W.width)&&mxUtils.intersects(O,new mxRectangle(Z.x+(W.x-W.width-1)*H+(0==W.x?Z.width*H:0),Z.y,1,Z.height))?ja="col-resize":(0<W.y||0<W.height)&&mxUtils.intersects(O,new mxRectangle(Z.x,Z.y+(W.y-W.height-1)*H+(0==W.y?Z.height:0),Z.width,1))&&(ja="row-resize")),Z=this.view.getState(this.model.getParent(Z.cell))}null!=ja&&ca.setCursor(ja)}}}),
+mouseUp:mxUtils.bind(this,function(O,Z){k=g=m=p=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var z=document.createElement("div");this.cellRenderer.getLabelValue=function(O){var Z=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);O.view.graph.isHtmlLabel(O.cell)&&("0"==mxUtils.getValue(O.style,"html","0")?Z=mxUtils.htmlEntities(Z,!1):(O.lastLabelValue!=Z&&(O.lastLabelValue=Z,O.lastSanitizedLabelValue=Graph.sanitizeHtml(Z),z.innerHTML=O.lastSanitizedLabelValue,Graph.addLightDarkColors(z,
null,"simple"==O.view.graph.getAdaptiveColors())&&(O.lastSanitizedLabelValue=z.innerHTML)),Z=O.lastSanitizedLabelValue));return Z};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);
-this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(O,Z){return!1};this.alternateEdgeStyle="vertical";null==f&&this.loadStylesheet();var C=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var O=C.apply(this,arguments);if(this.graph.pageVisible){var Z=[],ca=this.graph.pageFormat,V=this.graph.pageScale,ja=ca.width*V;ca=ca.height*V;V=this.graph.view.translate;for(var H=this.graph.view.scale,ea=this.graph.getPageLayout(),la=0;la<ea.width;la++)Z.push(new mxRectangle(((ea.x+
-la)*ja+V.x)*H,(ea.y*ca+V.y)*H,ja*H,ca*H));for(la=1;la<ea.height;la++)Z.push(new mxRectangle((ea.x*ja+V.x)*H,((ea.y+la)*ca+V.y)*H,ja*H,ca*H));O=Z.concat(O)}return O};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(O,Z){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 Z=E.apply(this,arguments),ca=new mxDictionary,V=[],ja=0;ja<Z.length;ja++){var H=this.graph.isTableCell(O)&&this.graph.isTableCell(Z[ja])&&this.graph.isCellSelected(Z[ja])?this.graph.model.getParent(Z[ja]):this.graph.isTableRow(O)&&this.graph.isTableRow(Z[ja])&&this.graph.isCellSelected(Z[ja])?Z[ja]:this.graph.getCompositeParent(Z[ja]);null==H||ca.get(H)||(ca.put(H,!0),V.push(H))}return V};var D=this.graphHandler.start;
-this.graphHandler.start=function(O,Z,ca,V){var ja=!1;this.graph.isTableCell(O)&&(this.graph.isCellSelected(O)?ja=!0:O=this.graph.model.getParent(O));ja||this.graph.isTableRow(O)&&this.graph.isCellSelected(O)||(O=this.graph.getCompositeParent(O));D.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(O,Z){Z=this.graph.getCompositeParent(Z);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(O,Z,ca,V,ja,H){var ea=
-mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=V&&this.graph.applyNewEdgeStyle(V,[ea]);return ea};var G=new mxRubberband(this);this.getRubberband=function(){return G};var I=(new Date).getTime(),L=0,T=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var O=this.currentState;T.apply(this,arguments);O!=this.currentState?(I=(new Date).getTime(),L=0):L=(new Date).getTime()-I};var K=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=
+this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(O,Z){return!1};this.alternateEdgeStyle="vertical";null==f&&this.loadStylesheet();var C=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var O=C.apply(this,arguments);if(this.graph.pageVisible){var Z=[],ca=this.graph.pageFormat,W=this.graph.pageScale,ja=ca.width*W;ca=ca.height*W;W=this.graph.view.translate;for(var H=this.graph.view.scale,ea=this.graph.getPageLayout(),oa=0;oa<ea.width;oa++)Z.push(new mxRectangle(((ea.x+
+oa)*ja+W.x)*H,(ea.y*ca+W.y)*H,ja*H,ca*H));for(oa=1;oa<ea.height;oa++)Z.push(new mxRectangle((ea.x*ja+W.x)*H,((ea.y+oa)*ca+W.y)*H,ja*H,ca*H));O=Z.concat(O)}return O};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(O,Z){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 Z=E.apply(this,arguments),ca=new mxDictionary,W=[],ja=0;ja<Z.length;ja++){var H=this.graph.isTableCell(O)&&this.graph.isTableCell(Z[ja])&&this.graph.isCellSelected(Z[ja])?this.graph.model.getParent(Z[ja]):this.graph.isTableRow(O)&&this.graph.isTableRow(Z[ja])&&this.graph.isCellSelected(Z[ja])?Z[ja]:this.graph.getCompositeParent(Z[ja]);null==H||ca.get(H)||(ca.put(H,!0),W.push(H))}return W};var D=this.graphHandler.start;
+this.graphHandler.start=function(O,Z,ca,W){var ja=!1;this.graph.isTableCell(O)&&(this.graph.isCellSelected(O)?ja=!0:O=this.graph.model.getParent(O));ja||this.graph.isTableRow(O)&&this.graph.isCellSelected(O)||(O=this.graph.getCompositeParent(O));D.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(O,Z){Z=this.graph.getCompositeParent(Z);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(O,Z,ca,W,ja,H){var ea=
+mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=W&&this.graph.applyNewEdgeStyle(W,[ea]);return ea};var G=new mxRubberband(this);this.getRubberband=function(){return G};var I=(new Date).getTime(),L=0,T=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var O=this.currentState;T.apply(this,arguments);O!=this.currentState?(I=(new Date).getTime(),L=0):L=(new Date).getTime()-I};var K=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"))&&K.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 Q=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(Q=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=Q)}));this.popupMenuHandler.autoExpand=
-!0;this.popupMenuHandler.isSelectOnPopup=function(O){return mxEvent.isMouseEvent(O.getEvent())};var P=this.click;this.click=function(O){var Z=null==O.state&&null!=O.sourceState&&this.isCellLocked(this.getLayerForCell(O.sourceState.cell));if(this.isEnabled()&&!Z||O.isConsumed())return P.apply(this,arguments);var ca=Z?O.sourceState.cell:O.getCell();if(null!=ca){var V=this.getClickableLinkForCell(ca);null!=V?this.isCustomLink(V)?this.customLinkClicked(V,ca):this.openLink(V):Z&&this.clearSelection()}};
+!0;this.popupMenuHandler.isSelectOnPopup=function(O){return mxEvent.isMouseEvent(O.getEvent())};var P=this.click;this.click=function(O){var Z=null==O.state&&null!=O.sourceState&&this.isCellLocked(this.getLayerForCell(O.sourceState.cell));if(this.isEnabled()&&!Z||O.isConsumed())return P.apply(this,arguments);var ca=Z?O.sourceState.cell:O.getCell();if(null!=ca){var W=this.getClickableLinkForCell(ca);null!=W?this.isCustomLink(W)?this.customLinkClicked(W,ca):this.openLink(W):Z&&this.clearSelection()}};
this.tooltipHandler.getStateForEvent=function(O){return O.sourceState};var M=this.tooltipHandler.show;this.tooltipHandler.show=function(){M.apply(this,arguments);if(null!=this.div)for(var O=this.div.getElementsByTagName("a"),Z=0;Z<O.length;Z++)null!=O[Z].getAttribute("href")&&null==O[Z].getAttribute("target")&&O[Z].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(O){return O.sourceState};this.getCursorForMouseEvent=function(O){var Z=null==O.state&&null!=O.sourceState&&
-this.isCellLocked(O.sourceState.cell);return this.getCursorForCell(Z?O.sourceState.cell:O.getCell())};var W=this.getCursorForCell;this.getCursorForCell=function(O){if(!this.isEnabled()||this.isCellLocked(O)){if(null!=this.getClickableLinkForCell(O))return"pointer";if(this.isCellLocked(O))return"default"}return W.apply(this,arguments)};this.selectRegion=function(O,Z){var ca=mxEvent.isAltDown(Z)?O:null;O=this.getCells(O.x,O.y,O.width,O.height,null,null,ca,null,!0);if(this.isToggleEvent(Z))for(ca=0;ca<
+this.isCellLocked(O.sourceState.cell);return this.getCursorForCell(Z?O.sourceState.cell:O.getCell())};var V=this.getCursorForCell;this.getCursorForCell=function(O){if(!this.isEnabled()||this.isCellLocked(O)){if(null!=this.getClickableLinkForCell(O))return"pointer";if(this.isCellLocked(O))return"default"}return V.apply(this,arguments)};this.selectRegion=function(O,Z){var ca=mxEvent.isAltDown(Z)?O:null;O=this.getCells(O.x,O.y,O.width,O.height,null,null,ca,null,!0);if(this.isToggleEvent(Z))for(ca=0;ca<
O.length;ca++)this.selectCellForEvent(O[ca],Z);else this.selectCellsForEvent(O,Z);return O};var aa=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(O,Z,ca){return this.graph.isCellSelected(O)?!1:aa.apply(this,arguments)};var ia=this.updateMouseEvent;this.updateMouseEvent=function(O){O=ia.apply(this,arguments);null!=O.state&&this.isCellLocked(this.getLayerForCell(O.getCell()))&&(null==this.getLinkForCell(O.getCell())?O.state=this.view.getState(this.getCellAt(O.getGraphX(),
-O.getGraphY(),null,null,null,mxUtils.bind(this,function(Z,ca,V){return O.state==Z||this.isCellLocked(this.getLayerForCell(Z.cell))&&null==this.getLinkForCell(Z.cell)}))):O.state=null);return O};var oa=this.isCellSelectable;this.isCellSelectable=function(O){return oa.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(O))};this.isCellLocked=function(O){for(;null!=O;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(O),"locked","0"))return!0;O=this.model.getParent(O)}return!1};var qa=null;
+O.getGraphY(),null,null,null,mxUtils.bind(this,function(Z,ca,W){return O.state==Z||this.isCellLocked(this.getLayerForCell(Z.cell))&&null==this.getLinkForCell(Z.cell)}))):O.state=null);return O};var na=this.isCellSelectable;this.isCellSelectable=function(O){return na.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(O))};this.isCellLocked=function(O){for(;null!=O;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(O),"locked","0"))return!0;O=this.model.getParent(O)}return!1};var qa=null;
this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,Z){"mouseDown"==Z.getProperty("eventName")&&(O=Z.getProperty("event").getState(),qa=null==O||this.isSelectionEmpty()||this.isCellSelected(O.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(O,Z){if(!mxEvent.isMultiTouchEvent(Z)){O=Z.getProperty("event");var ca=Z.getProperty("cell");null==ca?(O=mxUtils.convertPoint(this.container,mxEvent.getClientX(O),mxEvent.getClientY(O)),
G.start(O.x,O.y)):null!=qa?this.addSelectionCells(qa):1<this.getSelectionCount()&&this.isCellSelected(ca)&&this.removeSelectionCell(ca);qa=null;Z.consume()}}));this.connectionHandler.selectCells=function(O,Z){this.graph.setSelectionCell(Z||O)};this.connectionHandler.constraintHandler.isStateIgnored=function(O,Z){var ca=O.view.graph;return Z&&(ca.isCellSelected(O.cell)||ca.isTableRow(O.cell)&&ca.selectionCellsHandler.isHandled(ca.model.getParent(O.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,
mxUtils.bind(this,function(){var O=this.connectionHandler.constraintHandler;null!=O.currentFocus&&O.isStateIgnored(O.currentFocus,!0)&&(O.currentFocus=null,O.constraints=null,O.destroyIcons());O.destroyFocusHighlight()}));Graph.touchStyle&&this.initTouch()}this.currentTranslate=new mxPoint(0,0)};Graph.touchStyle=mxClient.IS_TOUCH||mxClient.IS_FF&&mxClient.IS_WIN||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints||null==window.urlParams||"1"==urlParams.touch;
@@ -2557,36 +2570,37 @@ Graph.createSvgImage=function(a,b,e,f,h){e=unescape(encodeURIComponent(Graph.svg
Graph.getSvgFromDataUri=function(a){return null!=a&&"data:image/svg"==a.substring(0,14)?Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+decodeURIComponent(escape(atob(a.substring(a.indexOf(",")+1)))):null};
Graph.createSvgNode=function(a,b,e,f,h){var d=mxUtils.createXmlDocument(),g=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"svg"):d.createElement("svg");null!=h&&g.setAttribute("style","background: "+h.light+"; background-color: "+h.cssText+";");null==d.createElementNS?(g.setAttribute("xmlns",mxConstants.NS_SVG),g.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):g.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);g.setAttribute("version","1.1");g.setAttribute("width",
e+"px");g.setAttribute("height",f+"px");g.setAttribute("viewBox",a+" "+b+" "+e+" "+f);d.appendChild(g);return g};
-Graph.htmlToPng=function(a,b,e,f,h,d){h=null!=h?h:"";d=null!=d?d:Editor.htmlRasterScale;var g=document.createElement("canvas");g.width=b*d;g.height=e*d;var m=document.createElement("img");m.onload=mxUtils.bind(this,function(){try{var k=g.getContext("2d");k.scale(d,d);k.drawImage(m,0,0);f(g.toDataURL())}catch(u){f(null)}});var q=mxUtils.createXmlDocument();q=null!=q.createElementNS?q.createElementNS(mxConstants.NS_SVG,"svg"):q.createElement("svg");a=(new mxSvgCanvas2D(q)).convertHtml(a);m.onerror=
+Graph.htmlToPng=function(a,b,e,f,h,d){h=null!=h?h:"";d=null!=d?d:Editor.htmlRasterScale;var g=document.createElement("canvas");g.width=b*d;g.height=e*d;var m=document.createElement("img");m.onload=mxUtils.bind(this,function(){try{var k=g.getContext("2d");k.scale(d,d);k.drawImage(m,0,0);f(g.toDataURL())}catch(u){f(null)}});var p=mxUtils.createXmlDocument();p=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");a=(new mxSvgCanvas2D(p)).convertHtml(a);m.onerror=
function(k){f(null)};m.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+b+'" height="'+e+'">'+(""!=h?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+h+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+a+"</div></foreignObject></svg>")};
-Graph.addLightDarkColors=function(a,b,e,f){function h(z,C,E){return null!=f?f(z,C,E):mxUtils.isValidColor(E)?(null==q&&null!=b&&(q={}),null!=q&&(q[C]=z.style.getPropertyValue(C)),E=mxUtils.getLightDarkColor(E,null,null,e),z.style.setProperty(C,E.cssText),!0):!1}for(var d=a.getElementsByTagName("*"),g=!1,m=0;m<d.length;m++)if(d[m]!=a){for(var q=null,k=0;k<d[m].style.length;k++){var u=d[m].style.item(k),w=d[m].style.getPropertyValue(u);g=h(d[m],u,w)||g}"FONT"==d[m].nodeName&&""==d[m].style.getPropertyValue("color")&&
-(w=d[m].getAttribute("color"),g=h(d[m],"color",w)||g);null!=b&&null!=q&&d[m].setAttribute(b,JSON.stringify(q))}return g};Graph.removeLightDarkColors=function(a,b){a=a.getElementsByTagName("*");for(var e=!1,f=0;f<a.length;f++)try{var h=a[f].getAttribute(b);if(null!=h){a[f].removeAttribute(b);var d=JSON.parse(h),g;for(g in d){var m=d[g];""==m?(a[f].style[g]=null,""==a[f].getAttribute("style")&&a[f].removeAttribute("style")):a[f].style[g]=m;e=!0}}}catch(q){}return e};
-Graph.setTextColor=function(a,b,e){for(var f=e?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,h=e?"color":"background-color",d=a.getElementsByTagName("*"),g=[],m=0;m<d.length;m++)g.push({node:d[m],value:d[m].style[h]});document.execCommand(e?"forecolor":"backcolor",!1,f);a=a.getElementsByTagName("*");for(m=0;m<a.length;m++){if(m<g.length&&g[m].node==a[m]&&g[m].value!=a[m].style[h]&&""==a[m].style[h])try{if(d=a[m].getAttribute(Graph.backupStyleAttribute),null!=d){var q=JSON.parse(d);q[h]=
-"";a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(q))}}catch(k){}if(e&&a[m].getAttribute("color")==f||a[m].style[h]==f){e&&a[m].getAttribute("color")==f&&a[m].removeAttribute("color");a[m].style[h]=b!=mxConstants.NONE?mxUtils.getLightDarkColor(b).cssText:null;try{d=a[m].getAttribute(Graph.backupStyleAttribute),q=null!=d?JSON.parse(d):{},q[h]=b!=mxConstants.NONE?b:"",a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(q))}catch(k){}if(e&&mxClient.IS_FF){b=a[m];e=b.firstChild;if(null!=
+Graph.addLightDarkColors=function(a,b,e,f){function h(z,C,E){return null!=f?f(z,C,E):mxUtils.isValidColor(E)?(null==g&&null!=b&&(g={}),null!=g&&(g[C]=z.style.getPropertyValue(C)),E=mxUtils.getLightDarkColor(E,null,null,e),z.style.setProperty(C,E.cssText),!0):!1}for(var d=a.getElementsByTagName("*"),g=null,m=!1,p=0;p<d.length;p++)if(d[p]!=a&&null!=d[p].style){g=null;for(var k=0;k<d[p].style.length;k++){var u=d[p].style.item(k),x=d[p].style.getPropertyValue(u);m=h(d[p],u,x)||m}"FONT"==d[p].nodeName&&
+""==d[p].style.getPropertyValue("color")&&(x=d[p].getAttribute("color"),m=h(d[p],"color",x)||m);null!=b&&null!=g&&d[p].setAttribute(b,JSON.stringify(g))}return m};Graph.removeLightDarkColors=function(a,b){a=a.getElementsByTagName("*");for(var e=!1,f=0;f<a.length;f++)try{var h=a[f].getAttribute(b);if(null!=h){a[f].removeAttribute(b);var d=JSON.parse(h),g;for(g in d){var m=d[g];""==m?(a[f].style[g]=null,""==a[f].getAttribute("style")&&a[f].removeAttribute("style")):a[f].style[g]=m;e=!0}}}catch(p){}return e};
+Graph.getGivenColor=function(a,b){var e=null;if(a.nodeType==mxConstants.NODETYPE_ELEMENT){try{var f=a.getAttribute(Graph.backupStyleAttribute);if(null!=f){var h=JSON.parse(f);null!=h&&null!=h[b]&&("color"==b&&"FONT"==a.nodeName&&""==h[b]&&null!=a.getAttribute("color")?e=a.getAttribute("color"):""!=h[b]&&(e=h[b]))}}catch(d){}null==e&&""!=a.style[b]&&(e=a.style[b])}return e};
+Graph.setTextColor=function(a,b,e){for(var f=e?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,h=e?"color":"background-color",d=a.getElementsByTagName("*"),g=[],m=0;m<d.length;m++)g.push({node:d[m],value:d[m].style[h]});document.execCommand(e?"forecolor":"backcolor",!1,f);a=a.getElementsByTagName("*");for(m=0;m<a.length;m++){if(m<g.length&&g[m].node==a[m]&&g[m].value!=a[m].style[h]&&""==a[m].style[h])try{if(d=a[m].getAttribute(Graph.backupStyleAttribute),null!=d){var p=JSON.parse(d);p[h]=
+"";a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(p))}}catch(k){}if(e&&a[m].getAttribute("color")==f||a[m].style[h]==f){e&&a[m].getAttribute("color")==f&&a[m].removeAttribute("color");a[m].style[h]=b!=mxConstants.NONE?mxUtils.getLightDarkColor(b).cssText:null;try{d=a[m].getAttribute(Graph.backupStyleAttribute),p=null!=d?JSON.parse(d):{},p[h]=b!=mxConstants.NONE?b:"",a[m].setAttribute(Graph.backupStyleAttribute,JSON.stringify(p))}catch(k){}if(e&&mxClient.IS_FF){b=a[m];e=b.firstChild;if(null!=
e&&"A"==e.nodeName&&null==e.nextSibling&&null!=e.firstChild){b.parentNode.insertBefore(e,b);for(f=e.firstChild;null!=f;)h=f.nextSibling,b.appendChild(f),f=h;e.appendChild(b)}break}}}};Graph.zapGremlins=function(a){return mxUtils.zapGremlins(a)};Graph.stringToBytes=function(a){for(var b=Array(a.length),e=0;e<a.length;e++)b[e]=a.charCodeAt(e);return b};Graph.bytesToString=function(a){for(var b=Array(a.length),e=0;e<a.length;e++)b[e]=String.fromCharCode(a[e]);return b.join("")};
Graph.base64EncodeUnicode=function(a){return btoa(encodeURIComponent(a).replace(/%([0-9A-F]{2})/g,function(b,e){return String.fromCharCode(parseInt(e,16))}))};Graph.base64DecodeUnicode=function(a){return decodeURIComponent(Array.prototype.map.call(atob(a),function(b){return"%"+("00"+b.charCodeAt(0).toString(16)).slice(-2)}).join(""))};Graph.compressNode=function(a,b){a=mxUtils.getXml(a);return Graph.compress(b?a:Graph.zapGremlins(a))};
Graph.arrayBufferToString=function(a){var b="";a=new Uint8Array(a);for(var e=a.byteLength,f=0;f<e;f++)b+=String.fromCharCode(a[f]);return b};Graph.stringToArrayBuffer=function(a){return Uint8Array.from(a,function(b){return b.charCodeAt(0)})};
Graph.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),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 T=w.startIndex||0;I=G.slice(Math.max(0,T),Math.min(G.length,T+pageSize))}I=f.getOpposites(I,D).concat(I);var K=u.cloneCells(I);for(L=0;L<I.length;L++)if(K[L].sourceCellId=I[L].id,u.model.isEdge(K[L]))for(K[L].geometry.x=0,K[L].geometry.y=0,K[L].geometry.points=null,K[L].setStyle(K[L].getStyle()+
-";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffc0;textOpacity=100;"),K[L].setTerminal(E,null==K[L].getTerminal(!0)),D=0;D<K[L].getChildCount();D++){var U=K[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);K.splice(0,0,Y)}if(G.length>(w.startIndex||0)+pageSize){var Q=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;");Q.referenceCell=
-E;Q.startIndex=(w.startIndex||0)+pageSize;K.splice(0,0,Q)}for(var P in u.getModel().cells){var M=u.getModel().getCell(P);M!=u.rootCell&&!u.getModel().isAncestor(u.rootCell,M)&&u.getModel().isVertex(M)&&u.removeCells([M])}u.addCells(K);var W=u.getModel().getGeometry(u.rootCell);null!=W&&(W=W.clone(),W.x=z-W.width/2,W.y=C-W.height/3,u.getModel().setGeometry(u.rootCell,W));w=[];for(P in u.getModel().cells)M=u.getModel().getCell(P),M!=u.rootCell&&u.getModel().isVertex(M)&&u.getModel().getParent(M)==u.getDefaultParent()&&
-(w.push(M),W=u.getModel().getGeometry(M),null!=W&&(W.x=z-W.width/2,W.y=C-W.height/2));var aa=w.length,ia=2*Math.PI/aa,oa=Math.max(minSize,Math.min(u.container.scrollWidth/2.5-80,u.container.scrollHeight/2.5-80));for(z=0;z<aa;z++)W=u.getModel().getGeometry(w[z]),null!=W&&(W=W.clone(),W.x+=oa*Math.sin(z*ia),W.y+=oa*Math.cos(z*ia),u.getModel().setGeometry(w[z],W))}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(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(),T=null!=L?null!=L.referenceCell?L.referenceCell:L:null;null!=L&&w.rootCell!=L&&0<w.getEdges(T).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 T=new mxParallelEdgeLayout(w);T.spacing=60;var K=T.layout;T.layout=function(U){T.spacing=Math.min(60,Math.max(30,60-5*U.length));K.apply(this,arguments)};T.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.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,x){if(u.getModel().isVertex(x)){var z=u.container.scrollWidth/2,C=u.container.scrollHeight/2;u.rootCell=x.referenceCell||x;u.getModel().beginUpdate();try{for(var E=x.referenceCell||x,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!=x.startIndex||0<pageSize&&G.length>pageSize){var T=x.startIndex||0;I=G.slice(Math.max(0,T),Math.min(G.length,T+pageSize))}I=f.getOpposites(I,D).concat(I);var K=u.cloneCells(I);for(L=0;L<I.length;L++)if(K[L].sourceCellId=I[L].id,u.model.isEdge(K[L]))for(K[L].geometry.x=0,K[L].geometry.y=0,K[L].geometry.points=null,K[L].setStyle(K[L].getStyle()+
+";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffc0;textOpacity=100;"),K[L].setTerminal(E,null==K[L].getTerminal(!0)),D=0;D<K[L].getChildCount();D++){var U=K[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<x.startIndex){var Y=u.createVertex(null,null,mxResources.get("previousPage")+
+" ("+Math.ceil((x.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,(x.startIndex||0)-pageSize);K.splice(0,0,Y)}if(G.length>(x.startIndex||0)+pageSize){var Q=u.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((x.startIndex||0)/pageSize)+2)+"/"+Math.ceil(G.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");Q.referenceCell=
+E;Q.startIndex=(x.startIndex||0)+pageSize;K.splice(0,0,Q)}for(var P in u.getModel().cells){var M=u.getModel().getCell(P);M!=u.rootCell&&!u.getModel().isAncestor(u.rootCell,M)&&u.getModel().isVertex(M)&&u.removeCells([M])}u.addCells(K);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));x=[];for(P in u.getModel().cells)M=u.getModel().getCell(P),M!=u.rootCell&&u.getModel().isVertex(M)&&u.getModel().getParent(M)==u.getDefaultParent()&&
+(x.push(M),V=u.getModel().getGeometry(M),null!=V&&(V.x=z-V.width/2,V.y=C-V.height/2));var aa=x.length,ia=2*Math.PI/aa,na=Math.max(minSize,Math.min(u.container.scrollWidth/2.5-80,u.container.scrollHeight/2.5-80));for(z=0;z<aa;z++)V=u.getModel().getGeometry(x[z]),null!=V&&(V=V.clone(),V.x+=na*Math.sin(z*ia),V.y+=na*Math.cos(z*ia),u.getModel().setGeometry(x[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 p=document.createElement("div");p.style.position="absolute";p.style.cursor="pointer";p.style.right="38px";p.style.top="14px";p.style.textAlign="right";p.style.verticalAlign=
+"top";mxUtils.write(p,mxResources.get("close"));g.appendChild(p);document.body.appendChild(g);var k=function(u){27==u.keyCode&&m.click()};mxEvent.addListener(document,"keydown",k);(function(u){if(mxClient.isBrowserSupported()){var x=new Graph(u);x.keepEdgesInBackground=!0;x.isCellResizable=function(){return!1};x.isCellRotatable=function(){return!1};x.getCursorForCell=function(I){return this.model.isVertex(I)?"pointer":null};x.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(p,"click",z);x.setEnabled(!1);var C=x.click;x.click=function(I){var L=I.getCell(),T=null!=L?null!=L.referenceCell?L.referenceCell:L:null;null!=L&&x.rootCell!=L&&0<x.getEdges(T).length?d(x,L):C.apply(this,arguments)};z=x.container.scrollWidth/2;var E=x.container.scrollHeight/3;x.model.beginUpdate();var D=x.importCells([h])[0];D.sourceCellId=h.id;D.geometry.x=z-D.geometry.width/2;
+D.geometry.y=E-D.geometry.height/2;x.model.endUpdate();var G=!1;x.getModel().addListener(mxEvent.CHANGE,function(I,L){G||(I=L.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,x.labelsVisible=!1,G=!0,mxEffects.animateChanges(x,I,function(){var T=new mxParallelEdgeLayout(x);T.spacing=60;var K=T.layout;T.layout=function(U){T.spacing=Math.min(60,Math.max(30,60-5*U.length));K.apply(this,arguments)};T.execute(x.getDefaultParent());mxText.prototype.enableBoundingBox=!0;x.labelsVisible=!0;
+x.tooltipHandler.hide();x.refresh();G=!1}))});d(x,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)};
Graph.sanitizeLink=function(a){if(null==a)return null;var b=document.createElement("a");b.setAttribute("href",a);Graph.sanitizeNode(b);return b.getAttribute("href")};Graph.sanitizeNode=function(a){return Graph.domPurify(a,!0)};DOMPurify.addHook("afterSanitizeAttributes",function(a){"use"==a.nodeName&&(null!=a.getAttribute("xlink:href")&&!a.getAttribute("xlink:href").startsWith("#")||null!=a.getAttribute("href")&&!a.getAttribute("href").startsWith("#"))&&a.remove()});
Graph.domPurify=function(a,b){window.DOM_PURIFY_CONFIG.IN_PLACE=b;return DOMPurify.sanitize(a,window.DOM_PURIFY_CONFIG)};
Graph.clipSvgDataUri=function(a,b){if(!mxClient.IS_IE&&!mxClient.IS_IE11&&null!=a&&"data:image/svg+xml;base64,"==a.substring(0,26))try{var e=document.createElement("div");e.style.position="absolute";e.style.visibility="hidden";var f=decodeURIComponent(escape(atob(a.substring(26)))),h=f.indexOf("<svg");if(0<=h){e.innerHTML=Graph.sanitizeHtml(f.substring(h));var d=e.getElementsByTagName("svg");if(0<d.length){if(b||null!=d[0].getAttribute("preserveAspectRatio")){document.body.appendChild(e);try{f=b=
-1;var g=d[0].getAttribute("width"),m=d[0].getAttribute("height");g=null!=g&&"%"!=g.charAt(g.length-1)?parseFloat(g):NaN;m=null!=m&&"%"!=m.charAt(m.length-1)?parseFloat(m):NaN;var q=d[0].getAttribute("viewBox");h=null;if(null!=q&&!isNaN(g)&&!isNaN(m)){var k=q.split(" ");4<=q.length&&(b=parseFloat(k[2])/g,f=parseFloat(k[3])/m,h=new mxRectangle(parseFloat(k[0]),parseFloat(k[1]),parseFloat(k[2]),parseFloat(k[3])))}var u=d[0].getBBox();0<u.width&&0<u.height&&(null==h||u.width*u.height<h.width*h.height*
-.7)&&(e.getElementsByTagName("svg")[0].setAttribute("viewBox",u.x+" "+u.y+" "+u.width+" "+u.height),e.getElementsByTagName("svg")[0].setAttribute("width",u.width/b),e.getElementsByTagName("svg")[0].setAttribute("height",u.height/f))}catch(w){}finally{document.body.removeChild(e)}}a=Editor.createSvgDataUri(mxUtils.getXml(d[0]))}}}catch(w){}return a};
+1;var g=d[0].getAttribute("width"),m=d[0].getAttribute("height");g=null!=g&&"%"!=g.charAt(g.length-1)?parseFloat(g):NaN;m=null!=m&&"%"!=m.charAt(m.length-1)?parseFloat(m):NaN;var p=d[0].getAttribute("viewBox");h=null;if(null!=p&&!isNaN(g)&&!isNaN(m)){var k=p.split(" ");4<=p.length&&(b=parseFloat(k[2])/g,f=parseFloat(k[3])/m,h=new mxRectangle(parseFloat(k[0]),parseFloat(k[1]),parseFloat(k[2]),parseFloat(k[3])))}var u=d[0].getBBox();0<u.width&&0<u.height&&(null==h||u.width*u.height<h.width*h.height*
+.7)&&(e.getElementsByTagName("svg")[0].setAttribute("viewBox",u.x+" "+u.y+" "+u.width+" "+u.height),e.getElementsByTagName("svg")[0].setAttribute("width",u.width/b),e.getElementsByTagName("svg")[0].setAttribute("height",u.height/f))}catch(x){}finally{document.body.removeChild(e)}}a=Editor.createSvgDataUri(mxUtils.getXml(d[0]))}}}catch(x){}return a};
Graph.createRemoveIcon=function(a,b){var e=document.createElement("img");e.setAttribute("src",Dialog.prototype.clearImage);e.setAttribute("title",a);e.setAttribute("width","13");e.setAttribute("height","10");e.style.marginLeft="4px";e.style.marginBottom="-1px";e.style.cursor="pointer";mxEvent.addListener(e,"click",b);return e};Graph.isPageLink=function(a){return null!=a&&"data:page/id,"==a.substring(0,13)};
Graph.rewritePageLinks=function(a,b){function e(h,d){var g=h.getAttribute(d);if(null!=g){Graph.isPageLink(g)&&(g="#"+g.substring(g.indexOf(":")+1));var m=d;b&&"xlink:href"==d&&(h.removeAttribute(d),m="href");h.setAttribute(m,g)}}a=a.getElementsByTagName("a");if(null!=a)for(var f=0;f<a.length;f++)e(a[f],"href"),e(a[f],"xlink:href")};Graph.isLink=function(a){return null!=a&&a.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
mxUtils.extend(Graph,mxGraph);Graph.prototype.minFitScale=null;Graph.prototype.maxFitScale=null;Graph.prototype.linkPolicy="frame"==urlParams.target?"blank":urlParams.target||"auto";Graph.prototype.linkTarget="frame"==urlParams.target?"_self":"_blank";Graph.prototype.linkRelation="nofollow noopener noreferrer";Graph.prototype.defaultScrollbars=!0;Graph.prototype.defaultPageVisible=!0;Graph.prototype.defaultGridEnabled="0"!=urlParams.grid;Graph.prototype.lightbox=!1;
@@ -2594,32 +2608,33 @@ Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBa
Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%^{^}^ ^\"^ '^=^;]+)%","g");Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};
Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder"];Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");
Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";
-Graph.prototype.init=function(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(e,f){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var h=e.view.graph.tolerance,d=!0,g=null,m=mxUtils.bind(this,function(u){d=!0;g=new mxPoint(mxEvent.getClientX(u),mxEvent.getClientY(u))}),q=mxUtils.bind(this,function(u){d=d&&null!=g&&Math.abs(g.x-mxEvent.getClientX(u))<h&&Math.abs(g.y-mxEvent.getClientY(u))<h}),k=mxUtils.bind(this,function(u){if(d)for(var w=mxEvent.getSource(u);null!=
-w&&w!=f.node;){if("a"==w.nodeName.toLowerCase()){e.view.graph.labelLinkClicked(e,w,u);break}w=w.parentNode}});mxEvent.addGestureListeners(f.node,m,q,k);mxEvent.addListener(f.node,"click",function(u){mxEvent.consume(u)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(e){var f=mxEvent.getSource(e);"A"==f.nodeName&&(f=f.getAttribute("href"),null!=
+Graph.prototype.init=function(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(e,f){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var h=e.view.graph.tolerance,d=!0,g=null,m=mxUtils.bind(this,function(u){d=!0;g=new mxPoint(mxEvent.getClientX(u),mxEvent.getClientY(u))}),p=mxUtils.bind(this,function(u){d=d&&null!=g&&Math.abs(g.x-mxEvent.getClientX(u))<h&&Math.abs(g.y-mxEvent.getClientY(u))<h}),k=mxUtils.bind(this,function(u){if(d)for(var x=mxEvent.getSource(u);null!=
+x&&x!=f.node;){if("a"==x.nodeName.toLowerCase()){e.view.graph.labelLinkClicked(e,x,u);break}x=x.parentNode}});mxEvent.addGestureListeners(f.node,m,p,k);mxEvent.addListener(f.node,"click",function(u){mxEvent.consume(u)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(e){var f=mxEvent.getSource(e);"A"==f.nodeName&&(f=f.getAttribute("href"),null!=
f&&this.graph.isCustomLink(f)&&(mxEvent.isTouchEvent(e)||!mxEvent.isPopupTrigger(e))&&this.graph.customLinkClicked(f)&&mxEvent.consume(e))}))}}this.initLayoutManager()};
(function(){Graph.prototype.useCssTransforms=!1;Graph.prototype.currentScale=1;Graph.prototype.currentTranslate=new mxPoint(0,0);Graph.prototype.pasteEdgeStyle=!1;Graph.prototype.isFillState=function(g){return!this.isSpecialColor(g.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(g.style,"lineShape",null)&&(this.model.isVertex(g.cell)||"arrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"wire"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"filledEdge"==mxUtils.getValue(g.style,
-mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(g){return this.isFillState(g)&&"wire"!=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(g){return!0};Graph.prototype.isSpecialColor=function(g){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,
-"inherit","swimlane","indicated"],g)};Graph.prototype.isGlassState=function(g){g=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);return"label"==g||"rectangle"==g||"internalStorage"==g||"ext"==g||"umlLifeline"==g||"swimlane"==g||"process"==g};Graph.prototype.isRoundedState=function(g){return null!=g.shape?g.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(g){var m=mxUtils.getValue(g.style,
-mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,!1)&&("connector"==m||"filledEdge"==m||"wire"==m)};Graph.prototype.isAutoSizeState=function(g){return"1"==mxUtils.getValue(g.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(g){return null!=mxUtils.getValue(g.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(g){return!0};Graph.prototype.getVerticesAndEdges=function(g,m){g=null!=g?g:!0;m=null!=m?m:!0;var q=this.model;
-return q.filterDescendants(function(k){return g&&q.isVertex(k)||m&&q.isEdge(k)},q.getRoot())};Graph.prototype.applyNewEdgeStyle=function(g,m,q){g=this.getCellStyle(g).newEdgeStyle;if(null!=g){this.model.beginUpdate();try{var k=JSON.parse(g),u;for(u in k)this.setCellStyles(u,k[u],m),"edgeStyle"==u&&"elbowEdgeStyle"==k[u]&&null!=q&&this.setCellStyles("elbow",q==mxConstants.DIRECTION_SOUTH||q==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",m)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=
-function(g){for(var m={},q=0;q<g.length;q++){var k=this.view.getState(g[q]);null!=k&&this.mergeStyle(k.style,m,0==q)}return m};Graph.prototype.mergeStyle=function(g,m,q){if(null!=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]!=w&&delete m[u])}for(u in m)k[u]||delete m[u]}};Graph.prototype.getStartEditingCell=function(g,m){m=this.getCellStyle(g);m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0));this.isTable(g)&&(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&
-0<this.model.getChildCount(g)&&(g=this.model.getChildAt(g,0),m=this.getCellStyle(g),m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(g)&&(!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(";"):[],I=0;I<G.length;I++){var L=G[I],T=L.indexOf("=");if(0<=T){var K=L.substring(0,T),U=mxUtils.indexOf(D,K);0<=U&&D.splice(U,1);for(E=0;E<Graph.cellStyleGroups.length;E++){var Y=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(Y,K))for(var Q=0;Q<Y.length;Q++){var P=mxUtils.indexOf(D,Y[Q]);0<=P&&D.splice(P,1)}}}}var M=this.model.isEdge(z);
-E=M?q:m;for(I=0;I<D.length;I++){K=D[I];var W=E[K];null!=W&&("edgeStyle"!=K||u)&&(M||!M&&0>mxUtils.indexOf(Graph.edgeStyles,K))&&(C=mxUtils.setStyle(C,K,W),"fontFamily"==K&&null==E.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),M&&"rounded"==K&&"1"==W&&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<=z;z--){var C=this.model.getChildAt(q,z),E=this.getScaledCellAt(g,m,C,k,u,w);if(null!=E)return E;if(this.isCellVisible(C)&&(u&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(E=this.view.getState(C),null!=E&&(null==w||!w(E,g,m))&&this.intersects(E,g,m)))return C}return null};Graph.prototype.isRecursiveVertexResize=function(g){return!this.isSwimlane(g.cell)&&
-0<this.model.getChildCount(g.cell)&&!this.isCellCollapsed(g.cell)&&"1"==mxUtils.getValue(g.style,"recursiveResize","1")&&null==mxUtils.getValue(g.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(g){for(var m=this.getCellGeometry(g);null!=m&&m.relative;)g=this.getModel().getParent(g),m=this.getCellGeometry(g);return g};Graph.prototype.isPart=function(g){return"1"==mxUtils.getValue(this.getCurrentCellStyle(g),"part","0")||this.isTableCell(g)||this.isTableRow(g)};Graph.prototype.getCompositeParents=
-function(g){for(var m=new mxDictionary,q=[],k=0;k<g.length;k++){var u=this.getCompositeParent(g[k]);this.isTableCell(u)&&(u=this.graph.model.getParent(u));this.isTableRow(u)&&(u=this.graph.model.getParent(u));null==u||m.get(u)||(m.put(u,!0),q.push(u))}return q};Graph.prototype.getReferenceTerminal=function(g){if(null!=g){var m=this.getCellGeometry(g);null!=m&&m.relative&&(g=this.model.getParent(g))}null!=g&&this.model.isEdge(g)&&(g=this.model.getParent(g));null!=g&&(g=this.getCompositeParent(g));
-return g};Graph.prototype.getCompositeParent=function(g){for(;this.isPart(g);){var m=this.model.getParent(g);if(!this.model.isVertex(m))break;g=m}return g};Graph.prototype.filterSelectionCells=function(g){var m=this.getSelectionCells();if(null!=g){for(var q=[],k=0;k<m.length;k++)g(m[k])||q.push(m[k]);m=q}return m};var a=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(g){if(this.useCssTransforms){var m=this.currentScale,q=this.currentTranslate;g=new mxRectangle((g.x+
-2*q.x)*m-q.x,(g.y+2*q.y)*m-q.y,g.width*m,g.height*m)}a.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=function(g){g=this.strokeWidth;this.graph.useCssTransforms&&(g/=this.graph.currentScale);return g};mxGraphView.prototype.getGraphBounds=function(){var g=this.graphBounds;if(this.graph.useCssTransforms){var m=this.graph.currentTranslate,q=this.graph.currentScale;g=new mxRectangle((g.x+m.x)*q,(g.y+m.y)*q,g.width*q,g.height*q)}return g};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?
-this.validate():this.revalidate();this.graph.sizeDidChange()};var b=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(g){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);b.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,
-this.translate.y=this.graph.currentTranslate.y)};var e=mxGraph.prototype.getCellsForGroup;Graph.prototype.getCellsForGroup=function(g){g=e.apply(this,arguments);for(var m=[],q=0;q<g.length;q++)this.isTableRow(g[q])||this.isTableCell(g[q])||m.push(g[q]);return m};var f=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(g){g=f.apply(this,arguments);for(var m=[],q=0;q<g.length;q++)this.isTable(g[q])||this.isTableRow(g[q])||this.isTableCell(g[q])||m.push(g[q]);return m};
-Graph.prototype.updateCssTransform=function(){var g=this.view.getDrawPane();if(null!=g)if(g=g.parentNode,this.useCssTransforms){var m=g.getAttribute("transform");g.setAttribute("transformOrigin","0 0");var q=Math.round(100*this.currentScale)/100;g.setAttribute("transform","scale("+q+","+q+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");m!=g.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",
-g.getAttribute("transform"))}else g.removeAttribute("transformOrigin"),g.removeAttribute("transform")};var h=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var g=this.graph.useCssTransforms,m=this.scale,q=this.translate;g&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);h.apply(this,arguments);g&&(this.scale=m,this.translate=q)};var d=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(g,
-m,q){var k=this.useCssTransforms,u=this.view.scale,w=this.view.translate;k&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=!1);d.apply(this,arguments);k&&(this.view.scale=u,this.view.translate=w,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
+mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(g){return this.isFillState(g)&&"wire"!=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(g){return!0};Graph.prototype.getTextColor=function(g,m){for(var p=g==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(g,m?"color":
+"background-color");null==p&&null!=g&&g!=this.cellEditor.textarea.parentNode;)p=g==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(g,"color"),g=g.parentNode;if("rgba(0, 0, 0, 0)"==p||"transparent"==p)p=mxConstants.NONE;return p};Graph.prototype.isSpecialColor=function(g){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],g)};Graph.prototype.isGlassState=function(g){g=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);
+return"label"==g||"rectangle"==g||"internalStorage"==g||"ext"==g||"umlLifeline"==g||"swimlane"==g||"process"==g};Graph.prototype.isRoundedState=function(g){return null!=g.shape?g.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(g){var m=mxUtils.getValue(g.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,!1)&&("connector"==m||"filledEdge"==m||"wire"==
+m)};Graph.prototype.isAutoSizeState=function(g){return"1"==mxUtils.getValue(g.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(g){return null!=mxUtils.getValue(g.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(g){return!0};Graph.prototype.getVerticesAndEdges=function(g,m){g=null!=g?g:!0;m=null!=m?m:!0;var p=this.model;return p.filterDescendants(function(k){return g&&p.isVertex(k)||m&&p.isEdge(k)},p.getRoot())};Graph.prototype.applyNewEdgeStyle=
+function(g,m,p){g=this.getCellStyle(g).newEdgeStyle;if(null!=g){this.model.beginUpdate();try{var k=JSON.parse(g),u;for(u in k)this.setCellStyles(u,k[u],m),"edgeStyle"==u&&"elbowEdgeStyle"==k[u]&&null!=p&&this.setCellStyles("elbow",p==mxConstants.DIRECTION_SOUTH||p==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",m)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(g){for(var m={},p=0;p<g.length;p++){var k=this.view.getState(g[p]);null!=k&&this.mergeStyle(k.style,m,0==p)}return m};
+Graph.prototype.mergeStyle=function(g,m,p){if(null!=g){var k={},u;for(u in g){var x=g[u];null!=x&&(k[u]=!0,null==m[u]&&p?m[u]=x:m[u]!=x&&delete m[u])}for(u in m)k[u]||delete m[u]}};Graph.prototype.getStartEditingCell=function(g,m){m=this.getCellStyle(g);m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0));this.isTable(g)&&(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g)&&(g=this.model.getChildAt(g,0),m=this.getCellStyle(g),m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,
+0)));if(this.isTableRow(g)&&(!this.isSwimlane(g)||0==m)&&""==this.getLabel(g)&&0<this.model.getChildCount(g))for(m=0;m<this.model.getChildCount(g);m++){var p=this.model.getChildAt(g,m);if(this.isCellEditable(p)){g=p;break}}return g};Graph.prototype.copyStyle=function(g){return this.getCellStyle(g,!1)};Graph.prototype.pasteStyle=function(g,m,p,k){null!=g&&(k||(p=null!=p?p:Graph.cellStyles,Graph.removeKeys(g,function(u){return 0>mxUtils.indexOf(p,u)})),this.updateCellStyles(g,m))};Graph.prototype.copyCellStyles=
+function(g,m,p,k,u,x,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&&!x;E=E&&!z;for(D=0;D<m.length;D++)if(g=0<=mxUtils.indexOf(Graph.textStyles,m[D]),"strokeColor"!=m[D]||null!=p[D]&&"none"!=p[D])if(0<=mxUtils.indexOf(Graph.cellStyles,m[D])||"shape"==m[D])if("shape"!=m[D]&&(C||g)&&(null==p[D]?delete k[m[D]]:k[m[D]]=p[D]),E||g)null==p[D]?delete u[m[D]]:u[m[D]]=p[D]};Graph.prototype.includeDescendants=
+function(g){for(var m=[],p=0;p<g.length;p++)m=m.concat(this.model.getDescendants(g[p]));return m};Graph.prototype.pasteCellStyles=function(g,m,p,k,u){m=null!=m?m:this.currentVertexStyle;p=null!=p?p:this.currentEdgeStyle;u=null!=u?u:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var x=0;x<g.length;x++){var z=g[x],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(";"):[],I=0;I<G.length;I++){var L=G[I],T=L.indexOf("=");if(0<=T){var K=L.substring(0,T),U=mxUtils.indexOf(D,K);0<=U&&D.splice(U,1);for(E=0;E<Graph.cellStyleGroups.length;E++){var Y=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(Y,K))for(var Q=0;Q<Y.length;Q++){var P=mxUtils.indexOf(D,Y[Q]);0<=P&&D.splice(P,1)}}}}var M=this.model.isEdge(z);E=M?p:m;for(I=0;I<D.length;I++){K=D[I];var V=E[K];null!=V&&("edgeStyle"!=K||u)&&(M||!M&&0>mxUtils.indexOf(Graph.edgeStyles,K))&&(C=mxUtils.setStyle(C,
+K,V),"fontFamily"==K&&null==E.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),M&&"rounded"==K&&"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 p=0;p<m.length;p++)if(this.model.isVertex(m[p])||this.model.isEdge(m[p])){var k=this.getCellStyle(m[p],
+!1),u=k[mxConstants.STYLE_PERIMETER],x=!1;for(C in g){var z=g[C];if(k[C]!=z){if(C==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[C]&&"umlLifeline"!=z){x=!0;var C="participant"}this.setCellStyles(C,z,[m[p]])}}x&&this.setCellStyles(mxConstants.STYLE_PERIMETER,u,[m[p]])}}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,p,k,u,x){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,p,k,u,x){k=null!=k?k:!0;u=null!=u?u:!0;null==p&&(p=this.getCurrentRoot(),null==p&&(p=this.getModel().getRoot()));if(null!=p)for(var z=
+this.model.getChildCount(p)-1;0<=z;z--){var C=this.model.getChildAt(p,z),E=this.getScaledCellAt(g,m,C,k,u,x);if(null!=E)return E;if(this.isCellVisible(C)&&(u&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(E=this.view.getState(C),null!=E&&(null==x||!x(E,g,m))&&this.intersects(E,g,m)))return C}return null};Graph.prototype.isRecursiveVertexResize=function(g){return!this.isSwimlane(g.cell)&&0<this.model.getChildCount(g.cell)&&!this.isCellCollapsed(g.cell)&&"1"==mxUtils.getValue(g.style,"recursiveResize",
+"1")&&null==mxUtils.getValue(g.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(g){for(var m=this.getCellGeometry(g);null!=m&&m.relative;)g=this.getModel().getParent(g),m=this.getCellGeometry(g);return g};Graph.prototype.isPart=function(g){return"1"==mxUtils.getValue(this.getCurrentCellStyle(g),"part","0")||this.isTableCell(g)||this.isTableRow(g)};Graph.prototype.getCompositeParents=function(g){for(var m=new mxDictionary,p=[],k=0;k<g.length;k++){var u=this.getCompositeParent(g[k]);
+this.isTableCell(u)&&(u=this.graph.model.getParent(u));this.isTableRow(u)&&(u=this.graph.model.getParent(u));null==u||m.get(u)||(m.put(u,!0),p.push(u))}return p};Graph.prototype.getReferenceTerminal=function(g){if(null!=g){var m=this.getCellGeometry(g);null!=m&&m.relative&&(g=this.model.getParent(g))}null!=g&&this.model.isEdge(g)&&(g=this.model.getParent(g));null!=g&&(g=this.getCompositeParent(g));return g};Graph.prototype.getCompositeParent=function(g){for(;this.isPart(g);){var m=this.model.getParent(g);
+if(!this.model.isVertex(m))break;g=m}return g};Graph.prototype.filterSelectionCells=function(g){var m=this.getSelectionCells();if(null!=g){for(var p=[],k=0;k<m.length;k++)g(m[k])||p.push(m[k]);m=p}return m};var a=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(g){if(this.useCssTransforms){var m=this.currentScale,p=this.currentTranslate;g=new mxRectangle((g.x+2*p.x)*m-p.x,(g.y+2*p.y)*m-p.y,g.width*m,g.height*m)}a.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=
+function(g){g=this.strokeWidth;this.graph.useCssTransforms&&(g/=this.graph.currentScale);return g};mxGraphView.prototype.getGraphBounds=function(){var g=this.graphBounds;if(this.graph.useCssTransforms){var m=this.graph.currentTranslate,p=this.graph.currentScale;g=new mxRectangle((g.x+m.x)*p,(g.y+m.y)*p,g.width*p,g.height*p)}return g};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var b=mxGraphView.prototype.validate;
+mxGraphView.prototype.validate=function(g){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);b.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var e=mxGraph.prototype.getCellsForGroup;
+Graph.prototype.getCellsForGroup=function(g){g=e.apply(this,arguments);for(var m=[],p=0;p<g.length;p++)this.isTableRow(g[p])||this.isTableCell(g[p])||m.push(g[p]);return m};var f=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(g){g=f.apply(this,arguments);for(var m=[],p=0;p<g.length;p++)this.isTable(g[p])||this.isTableRow(g[p])||this.isTableCell(g[p])||m.push(g[p]);return m};Graph.prototype.updateCssTransform=function(){var g=this.view.getDrawPane();if(null!=g)if(g=
+g.parentNode,this.useCssTransforms){var m=g.getAttribute("transform");g.setAttribute("transformOrigin","0 0");var p=Math.round(100*this.currentScale)/100;g.setAttribute("transform","scale("+p+","+p+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");m!=g.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",g.getAttribute("transform"))}else g.removeAttribute("transformOrigin"),g.removeAttribute("transform")};
+var h=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var g=this.graph.useCssTransforms,m=this.scale,p=this.translate;g&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);h.apply(this,arguments);g&&(this.scale=m,this.translate=p)};var d=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(g,m,p){var k=this.useCssTransforms,u=this.view.scale,x=this.view.translate;k&&(this.view.scale=1,this.view.translate=
+new mxPoint(0,0),this.useCssTransforms=!1);d.apply(this,arguments);k&&(this.view.scale=u,this.view.translate=x,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
Graph.prototype.labelLinkClicked=function(a,b,e){var f=b.getAttribute("href");f!=Graph.sanitizeLink(f)&&Graph.sanitizeNode(b);if(null!=f&&!this.isCustomLink(f)&&(mxEvent.isLeftMouseButton(e)&&!mxEvent.isPopupTrigger(e)||mxEvent.isTouchEvent(e))){if(!this.isEnabled()||this.isCellLocked(a.cell))a=this.isBlankLink(f)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(f),a);mxEvent.consume(e)}};
Graph.prototype.openLink=function(a,b,e){var f=window;try{if(a=Graph.sanitizeLink(a),null!=a)if("_self"==b&&window!=window.top)window.location.href=a;else if(a.substring(0,this.baseUrl.length)==this.baseUrl&&"#"==a.charAt(this.baseUrl.length)&&"_top"==b&&window==window.top){var h=a.split("#")[1];window.location.hash=="#"+h&&(window.location.hash="");window.location.hash=h}else f=window.open(a,null!=b?b:"_blank",e?null:"noopener,noreferrer"),null==f||e||(f.opener=null)}catch(d){}return f};
Graph.prototype.getLinkTitle=function(a){return a.substring(a.lastIndexOf("/")+1)};Graph.prototype.isCustomLink=function(a){return"data:"==a.substring(0,5)};Graph.prototype.customLinkClicked=function(a,b){return!1};Graph.prototype.isExternalProtocol=function(a){return"mailto:"===a.substring(0,7)};Graph.prototype.isBlankLink=function(a){return!this.isExternalProtocol(a)&&("blank"===this.linkPolicy||"self"!==this.linkPolicy&&!this.isRelativeUrl(a)&&a.substring(0,this.domainUrl.length)!==this.domainUrl)};
@@ -2634,7 +2649,7 @@ Graph.prototype.createLayouts=function(a){for(var b=[],e=0;e<a.length;e++)if(0<=
Graph.prototype.getDataForCells=function(a,b){for(var e=[],f=0;f<a.length;f++){var h={};h.id=a[f].id;var d=null!=a[f].value?a[f].value.attributes:null;this.isReplacePlaceholders(a[f])&&b&&(h.value=this.getLabel(a[f]));if(null!=d)for(var g=0;g<d.length;g++)h[d[g].nodeName]=d[g].nodeValue;else h.label=this.convertValueToString(a[f]);e.push(h)}return e};
Graph.prototype.getNodesForCells=function(a){for(var b=[],e=0;e<a.length;e++){var f=this.view.getState(a[e]);if(null!=f){for(var h=this.cellRenderer.getShapesForState(f),d=0;d<h.length;d++)null!=h[d]&&null!=h[d].node&&b.push(h[d].node);null!=f.control&&null!=f.control.node&&b.push(f.control.node)}}return b};
Graph.prototype.createWipeAnimations=function(a,b){for(var e=[],f=0;f<a.length;f++){var h=this.view.getState(a[f]);null!=h&&null!=h.shape&&(this.model.isEdge(h.cell)&&null!=h.absolutePoints&&1<h.absolutePoints.length?e.push(this.createEdgeWipeAnimation(h,b)):this.model.isVertex(h.cell)&&null!=h.shape.bounds&&e.push(this.createVertexWipeAnimation(h,b)))}return e};
-Graph.prototype.createEdgeWipeAnimation=function(a,b){var e=a.absolutePoints.slice(),f=a.segments,h=a.length,d=e.length;return{execute:mxUtils.bind(this,function(g,m){if(null!=a.shape){var q=[e[0]];m=g/m;b||(m=1-m);for(var k=h*m,u=1;u<d;u++)if(k<=f[u-1]){q.push(new mxPoint(e[u-1].x+(e[u].x-e[u-1].x)*k/f[u-1],e[u-1].y+(e[u].y-e[u-1].y)*k/f[u-1]));break}else k-=f[u-1],q.push(e[u]);a.shape.points=q;a.shape.redraw();0==g&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=
+Graph.prototype.createEdgeWipeAnimation=function(a,b){var e=a.absolutePoints.slice(),f=a.segments,h=a.length,d=e.length;return{execute:mxUtils.bind(this,function(g,m){if(null!=a.shape){var p=[e[0]];m=g/m;b||(m=1-m);for(var k=h*m,u=1;u<d;u++)if(k<=f[u-1]){p.push(new mxPoint(e[u-1].x+(e[u].x-e[u-1].x)*k/f[u-1],e[u-1].y+(e[u].y-e[u-1].y)*k/f[u-1]));break}else k-=f[u-1],p.push(e[u]);a.shape.points=p;a.shape.redraw();0==g&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=
a.text.node&&(a.text.node.style.opacity=m)}}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.points=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};
Graph.prototype.createVertexWipeAnimation=function(a,b){var e=new mxRectangle.fromRectangle(a.shape.bounds);return{execute:mxUtils.bind(this,function(f,h){null!=a.shape&&(h=f/h,b||(h=1-h),a.shape.bounds=new mxRectangle(e.x,e.y,e.width*h,e.height),a.shape.redraw(),0==f&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=h))}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.bounds=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&
(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};Graph.prototype.executeAnimations=function(a,b,e,f){e=null!=e?e:30;f=null!=f?f:30;var h=null,d=0,g=mxUtils.bind(this,function(){if(d==e||this.stoppingCustomActions){window.clearInterval(h);for(var m=0;m<a.length;m++)a[m].stop();null!=b&&b()}else for(m=0;m<a.length;m++)a[m].execute(d,e);d++});h=window.setInterval(g,f);g()};
@@ -2649,17 +2664,17 @@ Graph.prototype.isLabelMovable=function(a){var b=this.getCurrentCellStyle(a);ret
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(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(I){return I in G?G[I]:I.slice(1,
+/\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",p=a[m+"Date"](),k=a[m+"Day"](),u=a[m+"Month"](),x=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:p,dd:g(p),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(x).slice(2),yyyy:x,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<p%10?0:(10!=p%100-p%10)*p%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);
+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 p=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",[p]));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,p);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};
-Graph.prototype.replacePlaceholders=function(a,b,e,f){f=[];if(null!=b){for(var h=0;match=this.placeholderPattern.exec(b);){var d=match[0];if(2<d.length&&"%label%"!=d&&"%tooltip%"!=d){var g=null;if(match.index>h&&"%"==b.charAt(match.index-1))g=d.substring(1);else{var m=d.substring(1,d.length-1),q={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==m)g=a.id;else if("width"===m.substring(0,5)&&this.model.isVertex(a)){var k=this.getCellGeometry(a);
-null!=k&&(g=k.width,5<m.length&&(g=Editor.toUnit(g,q[m.substring(6)])))}else if("height"==m.substring(0,6)&&this.model.isVertex(a))k=this.getCellGeometry(a),null!=k&&(g=k.height,6<m.length&&(g=Editor.toUnit(g,q[m.substring(7)])));else if("length"==m.substring(0,6)){for(k=a;null!=k&&!this.model.isEdge(k);)k=this.model.getParent(k);k=this.view.getState(k);null!=k&&(g=Math.round(k.length/this.view.scale),6<m.length&&(g=Editor.toUnit(g,q[m.substring(7)])))}else if(0>m.indexOf("{"))for(q=a;null==g&&null!=
-q;)null!=q.value&&"object"==typeof q.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=q.getAttribute(m+"_"+Graph.diagramLanguage)),null==g&&(g=q.hasAttribute(m)?null!=q.getAttribute(m)?q.getAttribute(m):"":null)),q=this.model.getParent(q);null==g&&(g=this.getGlobalVariable(m));null==g&&null!=e&&(g=e[m])}f.push(b.substring(h,match.index)+(null!=g?g:d));h=match.index+d.length}}f.push(b.substring(h))}return f.join("")};
+Graph.prototype.replacePlaceholders=function(a,b,e,f){f=[];if(null!=b){for(var h=0;match=this.placeholderPattern.exec(b);){var d=match[0];if(2<d.length&&"%label%"!=d&&"%tooltip%"!=d){var g=null;if(match.index>h&&"%"==b.charAt(match.index-1))g=d.substring(1);else{var m=d.substring(1,d.length-1),p={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==m)g=a.id;else if("width"===m.substring(0,5)&&this.model.isVertex(a)){var k=this.getCellGeometry(a);
+null!=k&&(g=k.width,5<m.length&&(g=Editor.toUnit(g,p[m.substring(6)])))}else if("height"==m.substring(0,6)&&this.model.isVertex(a))k=this.getCellGeometry(a),null!=k&&(g=k.height,6<m.length&&(g=Editor.toUnit(g,p[m.substring(7)])));else if("length"==m.substring(0,6)){for(k=a;null!=k&&!this.model.isEdge(k);)k=this.model.getParent(k);k=this.view.getState(k);null!=k&&(g=Math.round(k.length/this.view.scale),6<m.length&&(g=Editor.toUnit(g,p[m.substring(7)])))}else if(0>m.indexOf("{"))for(p=a;null==g&&null!=
+p;)null!=p.value&&"object"==typeof p.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=p.getAttribute(m+"_"+Graph.diagramLanguage)),null==g&&(g=p.hasAttribute(m)?null!=p.getAttribute(m)?p.getAttribute(m):"":null)),p=this.model.getParent(p);null==g&&(g=this.getGlobalVariable(m));null==g&&null!=e&&(g=e[m])}f.push(b.substring(h,match.index)+(null!=g?g:d));h=match.index+d.length}}f.push(b.substring(h))}return f.join("")};
Graph.prototype.restoreSelection=function(a){if(null!=a&&0<a.length){for(var b=[],e=0;e<a.length;e++){var f=this.model.getCell(a[e].id);null!=f&&b.push(f)}this.setSelectionCells(b)}else this.clearSelection()};Graph.prototype.selectCellForEvent=function(a,b){mxEvent.isShiftDown(b)&&!this.isSelectionEmpty()&&this.selectTableRange(this.getSelectionCell(),a)||mxGraph.prototype.selectCellForEvent.apply(this,arguments)};
-Graph.prototype.selectTableRange=function(a,b){var e=!1;if(this.isTableCell(a)&&this.isTableCell(b)){var f=this.model.getParent(a),h=this.model.getParent(f),d=this.model.getParent(b);if(h==this.model.getParent(d)){a=f.getIndex(a);f=h.getIndex(f);var g=d.getIndex(b),m=h.getIndex(d);d=Math.max(f,m);b=Math.min(a,g);a=Math.max(a,g);g=[];for(f=Math.min(f,m);f<=d;f++){m=this.model.getChildAt(h,f);for(var q=b;q<=a;q++)g.push(this.model.getChildAt(m,q))}0<g.length&&(1<g.length||1<this.getSelectionCount()||
+Graph.prototype.selectTableRange=function(a,b){var e=!1;if(this.isTableCell(a)&&this.isTableCell(b)){var f=this.model.getParent(a),h=this.model.getParent(f),d=this.model.getParent(b);if(h==this.model.getParent(d)){a=f.getIndex(a);f=h.getIndex(f);var g=d.getIndex(b),m=h.getIndex(d);d=Math.max(f,m);b=Math.min(a,g);a=Math.max(a,g);g=[];for(f=Math.min(f,m);f<=d;f++){m=this.model.getChildAt(h,f);for(var p=b;p<=a;p++)g.push(this.model.getChildAt(m,p))}0<g.length&&(1<g.length||1<this.getSelectionCount()||
!this.isCellSelected(g[0]))&&(this.setSelectionCells(g),e=!0)}}return e};
Graph.prototype.snapCellsToGrid=function(a,b){this.getModel().beginUpdate();try{for(var e=0;e<a.length;e++){var f=a[e],h=this.getCellGeometry(f);if(null!=h){h=h.clone();if(this.getModel().isVertex(f))h.x=Math.round(h.x/b)*b,h.y=Math.round(h.y/b)*b,h.width=Math.round(h.width/b)*b,h.height=Math.round(h.height/b)*b;else if(this.getModel().isEdge(f)&&null!=h.points)for(var d=0;d<h.points.length;d++)h.points[d].x=Math.round(h.points[d].x/b)*b,h.points[d].y=Math.round(h.points[d].y/b)*b;this.getModel().setGeometry(f,
h)}}}finally{this.getModel().endUpdate()}};Graph.prototype.removeChildCells=function(a){this.model.beginUpdate();try{for(var b=this.model.getChildCount(a);0<=b;b--)this.model.remove(this.model.getChildAt(a,b))}finally{this.model.endUpdate()}};
@@ -2667,13 +2682,13 @@ Graph.prototype.updateShapes=function(a,b,e){this.model.beginUpdate();try{var f=
this.model.isEdge(a)&&this.model.isEdge(b[d]))if(e){var g=this.model.getStyle(b[d]);if(null!=g){var m=g.split(";");0<m.length&&0>m[0].indexOf("=")&&(m=m.slice(1));this.model.setStyle(b[d],m.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[b[d]]);this.setCellStyles("points",null,[b[d]]);this.pasteStyle(h,[b[d]],null,!0)}else h=this.copyStyle(b[d]),this.model.setStyle(b[d],f),this.pasteStyle(h,[b[d]]);"1"==mxUtils.getValue(this.getCellStyle(b[d],!1),"composite","0")&&this.removeChildCells(b[d])}}finally{this.model.endUpdate()}};
Graph.prototype.selectCellsForConnectVertex=function(a,b,e){2==a.length&&this.model.isVertex(a[1])?(this.setSelectionCell(a[1]),this.scrollCellToVisible(a[1]),null!=e&&(mxEvent.isTouchEvent(b)?e.update(e.getState(this.view.getState(a[1]))):e.reset())):this.setSelectionCells(a)};Graph.prototype.isCloneConnectSource=function(a){var b=null;null!=this.layoutManager&&(b=this.layoutManager.getLayout(this.model.getParent(a)));return this.isTableRow(a)||this.isTableCell(a)||null!=b&&b.constructor==mxStackLayout};
Graph.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 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=[],T=E;E=C;h=mxUtils.bind(this,function(K){if(null==g||null!=K||null==E&&q){this.model.beginUpdate();try{if(null==T&&I){var U=this.getAbsoluteParent(null!=K?K:a);U=q?a:this.getCompositeParent(U);T=null!=K?K:this.duplicateCells([U],
-!1)[0];null!=K&&this.addCells([T],this.model.getParent(a),null,null,null,!0);var Y=this.getCellGeometry(T);null!=Y&&(null!=K&&"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([T],C,null,null,null,!0),E=null):I&&!q&&this.addCells([T],this.getDefaultParent(),null,null,null,!0)}var Q=mxEvent.isControlDown(f)&&
-mxEvent.isShiftDown(f)&&I||null==E&&q?null:this.insertEdge(this.model.getParent(a),null,"",a,T,this.createCurrentEdgeStyle());null!=Q&&(L.push(Q),this.applyNewEdgeStyle(a,[Q],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(Q,a));if(null==E&&null!=T&&null!=a.parent&&q&&b==mxConstants.DIRECTION_WEST){var P=a.parent.getIndex(a);this.model.add(a.parent,T,P)}null==E&&null!=T&&L.push(T);null==T&&null!=Q&&Q.geometry.setTerminalPoint(u,!1);null!=Q&&this.fireEvent(new mxEventObject("cellsInserted",
-"cells",[Q]))}finally{this.model.endUpdate()}}if(null!=m)m(L);else return L});if(null==g||null!=T||!I||null==E&&q)return h(T);g(k+u.x*e,z+u.y*e,h)};
+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 p=this.isCloneConnectSource(a),k=p?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 x=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!=x&&this.model.isVertex(x.cell)&&(k=x.x,z=x.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;x=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==x||null==G||mxUtils.intersects(x,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=[],T=E;E=C;h=mxUtils.bind(this,function(K){if(null==g||null!=K||null==E&&p){this.model.beginUpdate();try{if(null==T&&I){var U=this.getAbsoluteParent(null!=K?K:a);U=p?a:this.getCompositeParent(U);T=null!=K?K:this.duplicateCells([U],
+!1)[0];null!=K&&this.addCells([T],this.model.getParent(a),null,null,null,!0);var Y=this.getCellGeometry(T);null!=Y&&(null!=K&&"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([T],C,null,null,null,!0),E=null):I&&!p&&this.addCells([T],this.getDefaultParent(),null,null,null,!0)}var Q=mxEvent.isControlDown(f)&&
+mxEvent.isShiftDown(f)&&I||null==E&&p?null:this.insertEdge(this.model.getParent(a),null,"",a,T,this.createCurrentEdgeStyle());null!=Q&&(L.push(Q),this.applyNewEdgeStyle(a,[Q],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(Q,a));if(null==E&&null!=T&&null!=a.parent&&p&&b==mxConstants.DIRECTION_WEST){var P=a.parent.getIndex(a);this.model.add(a.parent,T,P)}null==E&&null!=T&&L.push(T);null==T&&null!=Q&&Q.geometry.setTerminalPoint(u,!1);null!=Q&&this.fireEvent(new mxEventObject("cellsInserted",
+"cells",[Q]))}finally{this.model.endUpdate()}}if(null!=m)m(L);else return L});if(null==g||null!=T||!I||null==E&&p)return h(T);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};
@@ -2684,8 +2699,8 @@ mxConstants.STYLE_IMAGE_BACKGROUND,a);this.replaceDefaultColor(b,mxConstants.STY
Graph.prototype.getDefaultColor=function(a,b,e){b="default"+b.charAt(0).toUpperCase()+b.substring(1);"invert"==a[b]&&(a=mxUtils.getLightDarkColor(e),e="light-dark("+a.dark+", "+a.light+")");return e};
Graph.prototype.setAdaptiveColors=function(a){this.adaptiveColors="default"==a?null:a;"1"==urlParams.embedInline?null!=this.container&&(this.container.style.colorScheme="none"==this.getAdaptiveColors()?"light":""):(a=this.view.getDrawPane().ownerSVGElement,null!=a&&(a.style.colorScheme="none"==this.getAdaptiveColors()?"light":""))};Graph.prototype.getAdaptiveColors=function(){return null!=this.adaptiveColors?this.adaptiveColors:Graph.defaultAdaptiveColors};
Graph.prototype.updateAlternateBounds=function(a,b,e){if(null!=a&&null!=b&&null!=this.layoutManager&&null!=b.alternateBounds){var f=this.layoutManager.getLayout(this.model.getParent(a));null!=f&&f.constructor==mxStackLayout&&(f.horizontal?b.alternateBounds.height=0:b.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};Graph.prototype.isMoveCellsEvent=function(a,b){return mxEvent.isShiftDown(a)||"1"==mxUtils.getValue(b.style,"moveCells","0")};
-Graph.prototype.foldCells=function(a,b,e,f,h){b=null!=b?b:!1;null==e&&(e=this.getFoldableCells(this.getSelectionCells(),a));if(null!=e){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var d=0;d<e.length;d++){var g=this.view.getState(e[d]),m=this.getCellGeometry(e[d]);if(null!=g&&null!=m){var q=0,k=0;if(m.alternateBounds)q=m.width-m.alternateBounds.width,k=m.height-m.alternateBounds.height;else{var u=this.useCssTransforms?1:this.view.scale;
-q=Math.round(m.width-g.width/u);k=Math.round(m.height-g.height/u)}if(0!=k||0!=q){var w=this.model.getParent(e[d]),z=this.layoutManager.getLayout(w);null==z?null!=h&&this.isMoveCellsEvent(h,g)&&this.moveSiblings(g,w,q,k):null!=h&&mxEvent.isAltDown(h)||z.constructor!=mxStackLayout||z.resizeLast||this.resizeParentStacks(w,z,q,k)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(e)}};
+Graph.prototype.foldCells=function(a,b,e,f,h){b=null!=b?b:!1;null==e&&(e=this.getFoldableCells(this.getSelectionCells(),a));if(null!=e){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var d=0;d<e.length;d++){var g=this.view.getState(e[d]),m=this.getCellGeometry(e[d]);if(null!=g&&null!=m){var p=0,k=0;if(m.alternateBounds)p=m.width-m.alternateBounds.width,k=m.height-m.alternateBounds.height;else{var u=this.useCssTransforms?1:this.view.scale;
+p=Math.round(m.width-g.width/u);k=Math.round(m.height-g.height/u)}if(0!=k||0!=p){var x=this.model.getParent(e[d]),z=this.layoutManager.getLayout(x);null==z?null!=h&&this.isMoveCellsEvent(h,g)&&this.moveSiblings(g,x,p,k):null!=h&&mxEvent.isAltDown(h)||z.constructor!=mxStackLayout||z.resizeLast||this.resizeParentStacks(x,z,p,k)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(e)}};
Graph.prototype.moveSiblings=function(a,b,e,f){this.model.beginUpdate();try{var h=this.getCellsBeyond(a.x,a.y,b,!0,!0);for(b=0;b<h.length;b++)if(h[b]!=a.cell){var d=this.view.getState(h[b]),g=this.getCellGeometry(h[b]);null!=d&&null!=g&&(g=g.clone(),g.translate(Math.round(e*Math.max(0,Math.min(1,(d.x-a.x)/a.width))),Math.round(f*Math.max(0,Math.min(1,(d.y-a.y)/a.height)))),this.model.setGeometry(h[b],g))}}finally{this.model.endUpdate()}};
Graph.prototype.resizeParentStacks=function(a,b,e,f){if(null!=this.layoutManager&&null!=b&&b.constructor==mxStackLayout&&!b.resizeLast){this.model.beginUpdate();try{for(var h=b.horizontal;null!=a&&null!=b&&b.constructor==mxStackLayout&&b.horizontal==h&&!b.resizeLast;){var d=this.getCellGeometry(a),g=this.view.getState(a);null!=g&&null!=d&&(d=d.clone(),b.horizontal?d.width+=e+Math.min(0,g.width/this.view.scale-d.width):d.height+=f+Math.min(0,g.height/this.view.scale-d.height),this.model.setGeometry(a,
d));a=this.model.getParent(a);b=this.layoutManager.getLayout(a)}}finally{this.model.endUpdate()}}};Graph.prototype.isContainer=function(a){var b=this.getCurrentCellStyle(a);return this.isSwimlane(a)?"0"!=b.container:"1"==b.container};Graph.prototype.isCellConnectable=function(a){var b=this.getCurrentCellStyle(a);return!this.isCellLocked(this.getLayerForCell(a))&&(null!=b.connectable?"0"!=b.connectable:mxGraph.prototype.isCellConnectable.apply(this,arguments))};
@@ -2727,10 +2742,10 @@ HoverIcons.prototype.click=function(a,b,e){var f=e.getEvent(),h=e.getGraphX(),d=
HoverIcons.prototype.execute=function(a,b,e){e=e.getEvent();this.graph.selectCellsForConnectVertex(this.graph.connectVertex(a.cell,b,this.graph.defaultEdgeLength,e,this.graph.isCloneEvent(e),this.graph.isCloneEvent(e)),e,this)};HoverIcons.prototype.reset=function(a){null!=a&&!a||null==this.updateThread||window.clearTimeout(this.updateThread);this.activeArrow=this.currentState=this.mouseDownPoint=null;this.removeNodes();this.bbox=null;this.fireEvent(new mxEventObject("reset"))};
HoverIcons.prototype.repaint=function(){this.bbox=null;if(null!=this.currentState){this.currentState=this.getState(this.currentState);if(null!=this.currentState&&this.graph.model.isVertex(this.currentState.cell)&&this.graph.isCellConnectable(this.currentState.cell)){var a=mxRectangle.fromRectangle(this.currentState);null!=this.currentState.shape&&null!=this.currentState.shape.boundingBox&&(a=mxRectangle.fromRectangle(this.currentState.shape.boundingBox));a.grow(this.graph.tolerance);a.grow(this.arrowSpacing);
var b=this.graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentState.cell)&&(b=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.currentState.cell)));var e=null;null!=b&&(a.x-=b.horizontalOffset/2,a.y-=b.verticalOffset/2,a.width+=b.horizontalOffset,a.height+=b.verticalOffset,null!=b.rotationShape&&null!=b.rotationShape.node&&"hidden"!=b.rotationShape.node.style.visibility&&"none"!=b.rotationShape.node.style.display&&null!=b.rotationShape.boundingBox&&
-(e=b.rotationShape.boundingBox));b=mxUtils.bind(this,function(m,q,k){if(null!=e){var u=new mxRectangle(q,k,m.clientWidth,m.clientHeight);mxUtils.intersects(u,e)&&(m==this.arrowUp?k-=u.y+u.height-e.y:m==this.arrowRight?q+=e.x+e.width-u.x:m==this.arrowDown?k+=e.y+e.height-u.y:m==this.arrowLeft&&(q-=u.x+u.width-e.x))}m.style.left=q+"px";m.style.top=k+"px";mxUtils.setOpacity(m,this.inactiveOpacity)});b(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(a.y-
+(e=b.rotationShape.boundingBox));b=mxUtils.bind(this,function(m,p,k){if(null!=e){var u=new mxRectangle(p,k,m.clientWidth,m.clientHeight);mxUtils.intersects(u,e)&&(m==this.arrowUp?k-=u.y+u.height-e.y:m==this.arrowRight?p+=e.x+e.width-u.x:m==this.arrowDown?k+=e.y+e.height-u.y:m==this.arrowLeft&&(p-=u.x+u.width-e.x))}m.style.left=p+"px";m.style.top=k+"px";mxUtils.setOpacity(m,this.inactiveOpacity)});b(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(a.y-
this.triangleUp.height-this.tolerance));b(this.arrowRight,Math.round(a.x+a.width-this.tolerance),Math.round(this.currentState.getCenterY()-this.triangleRight.height/2-this.tolerance));b(this.arrowDown,parseInt(this.arrowUp.style.left),Math.round(a.y+a.height-this.tolerance));b(this.arrowLeft,Math.round(a.x-this.triangleLeft.width-this.tolerance),parseInt(this.arrowRight.style.top));if(this.checkCollisions){b=this.graph.getCellAt(a.x+a.width+this.triangleRight.width/2,this.currentState.getCenterY());
-var f=this.graph.getCellAt(a.x-this.triangleLeft.width/2,this.currentState.getCenterY()),h=this.graph.getCellAt(this.currentState.getCenterX(),a.y-this.triangleUp.height/2);a=this.graph.getCellAt(this.currentState.getCenterX(),a.y+a.height+this.triangleDown.height/2);null!=b&&b==f&&f==h&&h==a&&(a=h=f=b=null);var d=this.graph.getCellGeometry(this.currentState.cell),g=mxUtils.bind(this,function(m,q){var k=this.graph.model.isVertex(m)&&this.graph.getCellGeometry(m);null==m||this.graph.model.isAncestor(m,
-this.currentState.cell)||this.graph.isSwimlane(m)||!(null==k||null==d||k.height<3*d.height&&k.width<3*d.width)?q.style.visibility="visible":q.style.visibility="hidden"});g(b,this.arrowRight);g(f,this.arrowLeft);g(h,this.arrowUp);g(a,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
+var f=this.graph.getCellAt(a.x-this.triangleLeft.width/2,this.currentState.getCenterY()),h=this.graph.getCellAt(this.currentState.getCenterX(),a.y-this.triangleUp.height/2);a=this.graph.getCellAt(this.currentState.getCenterX(),a.y+a.height+this.triangleDown.height/2);null!=b&&b==f&&f==h&&h==a&&(a=h=f=b=null);var d=this.graph.getCellGeometry(this.currentState.cell),g=mxUtils.bind(this,function(m,p){var k=this.graph.model.isVertex(m)&&this.graph.getCellGeometry(m);null==m||this.graph.model.isAncestor(m,
+this.currentState.cell)||this.graph.isSwimlane(m)||!(null==k||null==d||k.height<3*d.height&&k.width<3*d.width)?p.style.visibility="visible":p.style.visibility="hidden"});g(b,this.arrowRight);g(f,this.arrowLeft);g(h,this.arrowUp);g(a,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
this.arrowRight.setAttribute("title",mxResources.get("plusTooltip")),this.arrowUp.setAttribute("title",mxResources.get("plusTooltip")),this.arrowDown.setAttribute("title",mxResources.get("plusTooltip"))):(this.arrowLeft.removeAttribute("title"),this.arrowRight.removeAttribute("title"),this.arrowUp.removeAttribute("title"),this.arrowDown.removeAttribute("title"))}else this.reset();null!=this.currentState&&(this.bbox=this.computeBoundingBox(),null!=this.bbox&&this.bbox.grow(10))}};
HoverIcons.prototype.computeBoundingBox=function(){var a=this.graph.model.isEdge(this.currentState.cell)?null:mxRectangle.fromRectangle(this.currentState);this.visitNodes(function(b){null!=b.parentNode&&(b=new mxRectangle(b.offsetLeft,b.offsetTop,b.offsetWidth,b.offsetHeight),null==a?a=b:a.add(b))});return a};
HoverIcons.prototype.getState=function(a){if(null!=a)if(a=a.cell,this.graph.getModel().contains(a)){if(this.graph.getModel().isVertex(a)&&!this.graph.isCellConnectable(a)){var b=this.graph.getModel().getParent(a);this.graph.getModel().isVertex(b)&&this.graph.isCellConnectable(b)&&(a=b)}if(this.graph.isCellLocked(a)||this.graph.model.isEdge(a))a=null;a=this.graph.view.getState(a);null!=a&&null==a.style&&(a=null)}else a=null;return a};
@@ -2740,43 +2755,43 @@ a||null==this.bbox||null==b||null==e||!mxUtils.contains(this.bbox,b,e))&&(null!=
HoverIcons.prototype.setCurrentState=function(a){"eastwest"!=a.style.portConstraint&&(this.graph.container.appendChild(this.arrowUp),this.graph.container.appendChild(this.arrowDown));this.graph.container.appendChild(this.arrowRight);this.graph.container.appendChild(this.arrowLeft);this.currentState=a};
Graph.prototype.removeTextStyleForCell=function(a,b){var e=this.getCurrentCellStyle(a),f=!1;this.getModel().beginUpdate();try{if("1"==mxUtils.getValue(e,"html","0")){var h=this.convertValueToString(a);"0"!=mxUtils.getValue(e,"nl2Br","1")&&(h=h.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n"));h=Editor.convertHtmlToText(h);this.cellLabelChanged(a,h);f=!0}b&&(this.setCellStyles("fontSource",null,[a]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[a]),this.setCellStyles(mxConstants.STYLE_FONTSIZE,
null,[a]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[a]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[a]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[a]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[a]))}finally{this.getModel().endUpdate()}return f};Graph.prototype.createParent=function(a,b,e,f,h){a=this.cloneCell(a);for(var d=0;d<e;d++){var g=this.cloneCell(b),m=this.getCellGeometry(g);null!=m&&(m.x+=d*f,m.y+=d*h);a.insert(g)}return a};
-Graph.prototype.createTable=function(a,b,e,f,h,d,g,m,q){e=null!=e?e:60;f=null!=f?f:40;d=null!=d?d:30;m=null!=m?m:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";q=null!=q?q:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
-null,null!=h?h:"",0,0,b*e,a*f+(null!=h?d:0),null!=g?g:"shape=table;startSize="+(null!=h?d:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,b*e,f,m),this.createVertex(null,null,"",0,0,e,f,q),b,e,0),a,0,f)};
+Graph.prototype.createTable=function(a,b,e,f,h,d,g,m,p){e=null!=e?e:60;f=null!=f?f:40;d=null!=d?d:30;m=null!=m?m:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";p=null!=p?p:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
+null,null!=h?h:"",0,0,b*e,a*f+(null!=h?d:0),null!=g?g:"shape=table;startSize="+(null!=h?d:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,b*e,f,m),this.createVertex(null,null,"",0,0,e,f,p),b,e,0),a,0,f)};
Graph.prototype.setTableValues=function(a,b,e){for(var f=this.model.getChildCells(a,!0),h=0;h<f.length;h++)if(null!=e&&(f[h].value=e[h]),null!=b)for(var d=this.model.getChildCells(f[h],!0),g=0;g<d.length;g++)null!=b[h][g]&&(d[g].value=b[h][g]);return a};
-Graph.prototype.createCrossFunctionalSwimlane=function(a,b,e,f,h,d,g,m,q){e=null!=e?e:120;f=null!=f?f:120;g=null!=g?g:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";m=null!=m?m:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
-q=null!=q?q:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";h=this.createVertex(null,null,null!=h?h:"",0,0,b*e,a*f,null!=d?d:"shape=table;childLayout=tableLayout;"+(null==h?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");d=mxUtils.getValue(this.getCellStyle(h),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);h.geometry.width+=d;h.geometry.height+=
-d;g=this.createVertex(null,null,"",0,d,b*e+d,f,g);h.insert(this.createParent(g,this.createVertex(null,null,"",d,0,e,f,m),b,e,0));return 1<a?(g.geometry.y=f+d,this.createParent(h,this.createParent(g,this.createVertex(null,null,"",d,0,e,f,q),b,e,0),a-1,0,f)):h};
-Graph.prototype.visitTableCells=function(a,b){var e=null,f=this.model.getChildCells(a,!0);a=this.getActualStartSize(a,!0);for(var h=0;h<f.length;h++){for(var d=this.getActualStartSize(f[h],!0),g=this.model.getChildCells(f[h],!0),m=this.getCellStyle(f[h],!0),q=null,k=[],u=0;u<g.length;u++){var w=this.getCellGeometry(g[u]),z={cell:g[u],rospan:1,colspan:1,row:h,col:u,geo:w};w=null!=w.alternateBounds?w.alternateBounds:w;z.point=new mxPoint(w.width+(null!=q?q.point.x:a.x+d.x),w.height+(null!=e&&null!=
-e[0]?e[0].point.y:a.y+d.y));z.actual=z;null!=e&&null!=e[u]&&1<e[u].rowspan?(z.rowspan=e[u].rowspan-1,z.colspan=e[u].colspan,z.actual=e[u].actual):null!=q&&1<q.colspan?(z.rowspan=q.rowspan,z.colspan=q.colspan-1,z.actual=q.actual):(q=this.getCurrentCellStyle(g[u],!0),null!=q&&(z.rowspan=parseInt(q.rowspan||1),z.colspan=parseInt(q.colspan||1)));q=1==mxUtils.getValue(m,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(m,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;b(z,g.length,
-f.length,a.x+(q?d.x:0),a.y+(q?d.y:0));k.push(z);q=z}e=k}};Graph.prototype.getTableLines=function(a,b,e){var f=[],h=[];(b||e)&&this.visitTableCells(a,mxUtils.bind(this,function(d,g,m,q,k){b&&d.row<m-1&&(null==f[d.row]&&(f[d.row]=[new mxPoint(q,d.point.y)]),1<d.rowspan&&f[d.row].push(null),f[d.row].push(d.point));e&&d.col<g-1&&(null==h[d.col]&&(h[d.col]=[new mxPoint(d.point.x,k)]),1<d.colspan&&h[d.col].push(null),h[d.col].push(d.point))}));return f.concat(h)};
+Graph.prototype.createCrossFunctionalSwimlane=function(a,b,e,f,h,d,g,m,p){e=null!=e?e:120;f=null!=f?f:120;g=null!=g?g:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";m=null!=m?m:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
+p=null!=p?p:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";h=this.createVertex(null,null,null!=h?h:"",0,0,b*e,a*f,null!=d?d:"shape=table;childLayout=tableLayout;"+(null==h?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");d=mxUtils.getValue(this.getCellStyle(h),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);h.geometry.width+=d;h.geometry.height+=
+d;g=this.createVertex(null,null,"",0,d,b*e+d,f,g);h.insert(this.createParent(g,this.createVertex(null,null,"",d,0,e,f,m),b,e,0));return 1<a?(g.geometry.y=f+d,this.createParent(h,this.createParent(g,this.createVertex(null,null,"",d,0,e,f,p),b,e,0),a-1,0,f)):h};
+Graph.prototype.visitTableCells=function(a,b){var e=null,f=this.model.getChildCells(a,!0);a=this.getActualStartSize(a,!0);for(var h=0;h<f.length;h++){for(var d=this.getActualStartSize(f[h],!0),g=this.model.getChildCells(f[h],!0),m=this.getCellStyle(f[h],!0),p=null,k=[],u=0;u<g.length;u++){var x=this.getCellGeometry(g[u]),z={cell:g[u],rospan:1,colspan:1,row:h,col:u,geo:x};x=null!=x.alternateBounds?x.alternateBounds:x;z.point=new mxPoint(x.width+(null!=p?p.point.x:a.x+d.x),x.height+(null!=e&&null!=
+e[0]?e[0].point.y:a.y+d.y));z.actual=z;null!=e&&null!=e[u]&&1<e[u].rowspan?(z.rowspan=e[u].rowspan-1,z.colspan=e[u].colspan,z.actual=e[u].actual):null!=p&&1<p.colspan?(z.rowspan=p.rowspan,z.colspan=p.colspan-1,z.actual=p.actual):(p=this.getCurrentCellStyle(g[u],!0),null!=p&&(z.rowspan=parseInt(p.rowspan||1),z.colspan=parseInt(p.colspan||1)));p=1==mxUtils.getValue(m,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(m,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;b(z,g.length,
+f.length,a.x+(p?d.x:0),a.y+(p?d.y:0));k.push(z);p=z}e=k}};Graph.prototype.getTableLines=function(a,b,e){var f=[],h=[];(b||e)&&this.visitTableCells(a,mxUtils.bind(this,function(d,g,m,p,k){b&&d.row<m-1&&(null==f[d.row]&&(f[d.row]=[new mxPoint(p,d.point.y)]),1<d.rowspan&&f[d.row].push(null),f[d.row].push(d.point));e&&d.col<g-1&&(null==h[d.col]&&(h[d.col]=[new mxPoint(d.point.x,k)]),1<d.colspan&&h[d.col].push(null),h[d.col].push(d.point))}));return f.concat(h)};
Graph.prototype.isTableCell=function(a){return this.model.isVertex(a)&&this.isTableRow(this.model.getParent(a))};Graph.prototype.isTableRow=function(a){return this.model.isVertex(a)&&this.isTable(this.model.getParent(a))};Graph.prototype.isTable=function(a){a=this.getCellStyle(a);return null!=a&&"tableLayout"==a.childLayout};Graph.prototype.isStack=function(a){a=this.getCellStyle(a);return null!=a&&"stackLayout"==a.childLayout};
Graph.prototype.isStackChild=function(a){return this.model.isVertex(a)&&this.isStack(this.model.getParent(a))};
-Graph.prototype.setTableRowHeight=function(a,b,e){e=null!=e?e:!0;var f=this.getModel();f.beginUpdate();try{var h=this.getCellGeometry(a);if(null!=h){h=h.clone();h.height+=b;f.setGeometry(a,h);var d=f.getParent(a),g=f.getChildCells(d,!0);if(!e){var m=mxUtils.indexOf(g,a);if(m<g.length-1){var q=g[m+1],k=this.getCellGeometry(q);null!=k&&(k=k.clone(),k.y+=b,k.height-=b,f.setGeometry(q,k))}}var u=this.getCellGeometry(d);null!=u&&(e||(e=a==g[g.length-1]),e&&(u=u.clone(),u.height+=b,f.setGeometry(d,u)))}}finally{f.endUpdate()}};
-Graph.prototype.setTableColumnWidth=function(a,b,e){e=null!=e?e:!1;var f=this.getModel(),h=f.getParent(a),d=f.getParent(h),g=f.getChildCells(h,!0);a=mxUtils.indexOf(g,a);var m=a==g.length-1;f.beginUpdate();try{for(var q=f.getChildCells(d,!0),k=0;k<q.length;k++){h=q[k];g=f.getChildCells(h,!0);var u=g[a],w=this.getCellGeometry(u);null!=w&&(w=w.clone(),w.width+=b,null!=w.alternateBounds&&(w.alternateBounds.width+=b),f.setGeometry(u,w));a<g.length-1&&(u=g[a+1],w=this.getCellGeometry(u),null!=w&&(w=w.clone(),
-w.x+=b,e||(w.width-=b,null!=w.alternateBounds&&(w.alternateBounds.width-=b)),f.setGeometry(u,w)))}if(m||e){var z=this.getCellGeometry(d);null!=z&&(z=z.clone(),z.width+=b,f.setGeometry(d,z))}null!=this.layoutManager&&this.layoutManager.executeLayout(d)}finally{f.endUpdate()}};function TableLayout(a){mxGraphLayout.call(this,a)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
+Graph.prototype.setTableRowHeight=function(a,b,e){e=null!=e?e:!0;var f=this.getModel();f.beginUpdate();try{var h=this.getCellGeometry(a);if(null!=h){h=h.clone();h.height+=b;f.setGeometry(a,h);var d=f.getParent(a),g=f.getChildCells(d,!0);if(!e){var m=mxUtils.indexOf(g,a);if(m<g.length-1){var p=g[m+1],k=this.getCellGeometry(p);null!=k&&(k=k.clone(),k.y+=b,k.height-=b,f.setGeometry(p,k))}}var u=this.getCellGeometry(d);null!=u&&(e||(e=a==g[g.length-1]),e&&(u=u.clone(),u.height+=b,f.setGeometry(d,u)))}}finally{f.endUpdate()}};
+Graph.prototype.setTableColumnWidth=function(a,b,e){e=null!=e?e:!1;var f=this.getModel(),h=f.getParent(a),d=f.getParent(h),g=f.getChildCells(h,!0);a=mxUtils.indexOf(g,a);var m=a==g.length-1;f.beginUpdate();try{for(var p=f.getChildCells(d,!0),k=0;k<p.length;k++){h=p[k];g=f.getChildCells(h,!0);var u=g[a],x=this.getCellGeometry(u);null!=x&&(x=x.clone(),x.width+=b,null!=x.alternateBounds&&(x.alternateBounds.width+=b),f.setGeometry(u,x));a<g.length-1&&(u=g[a+1],x=this.getCellGeometry(u),null!=x&&(x=x.clone(),
+x.x+=b,e||(x.width-=b,null!=x.alternateBounds&&(x.alternateBounds.width-=b)),f.setGeometry(u,x)))}if(m||e){var z=this.getCellGeometry(d);null!=z&&(z=z.clone(),z.width+=b,f.setGeometry(d,z))}null!=this.layoutManager&&this.layoutManager.executeLayout(d)}finally{f.endUpdate()}};function TableLayout(a){mxGraphLayout.call(this,a)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
TableLayout.prototype.isVertexIgnored=function(a){return!this.graph.getModel().isVertex(a)||!this.graph.isCellVisible(a)};TableLayout.prototype.getSize=function(a,b){for(var e=0,f=0;f<a.length;f++)if(!this.isVertexIgnored(a[f])){var h=this.graph.getCellGeometry(a[f]);null!=h&&(e+=b?h.width:h.height)}return e};
TableLayout.prototype.getRowLayout=function(a,b){var e=this.graph.model.getChildCells(a,!0),f=this.graph.getActualStartSize(a,!0);a=this.getSize(e,!0);b=b-f.x-f.width;var h=[];f=f.x;for(var d=0;d<e.length;d++){var g=this.graph.getCellGeometry(e[d]);null!=g&&(f+=(null!=g.alternateBounds?g.alternateBounds.width:g.width)*b/a,h.push(Math.round(f)))}return h};
-TableLayout.prototype.layoutRow=function(a,b,e,f){var h=this.graph.getModel(),d=h.getChildCells(a,!0);a=this.graph.getActualStartSize(a,!0);var g=a.x,m=0;null!=b&&(b=b.slice(),b.splice(0,0,a.x));for(var q=0;q<d.length;q++){var k=this.graph.getCellGeometry(d[q]);null!=k&&(k=k.clone(),k.y=a.y,k.height=e-a.y-a.height,null!=b?(k.x=b[q],k.width=b[q+1]-k.x,q==d.length-1&&q<b.length-2&&(k.width=f-k.x-a.x-a.width)):(k.x=g,g+=k.width,q==d.length-1?k.width=f-a.x-a.width-m:m+=k.width),k.alternateBounds=new mxRectangle(0,
-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(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],
+TableLayout.prototype.layoutRow=function(a,b,e,f){var h=this.graph.getModel(),d=h.getChildCells(a,!0);a=this.graph.getActualStartSize(a,!0);var g=a.x,m=0;null!=b&&(b=b.slice(),b.splice(0,0,a.x));for(var p=0;p<d.length;p++){var k=this.graph.getCellGeometry(d[p]);null!=k&&(k=k.clone(),k.y=a.y,k.height=e-a.y-a.height,null!=b?(k.x=b[p],k.width=b[p+1]-k.x,p==d.length-1&&p<b.length-2&&(k.width=f-k.x-a.x-a.width)):(k.x=g,g+=k.width,p==d.length-1?k.width=f-a.x-a.width-m:m+=k.width),k.alternateBounds=new mxRectangle(0,
+0,k.width,k.height),h.setGeometry(d[p],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 p=e.height-b.y-b.height,k=e.width-b.x-b.width,u=g.getChildCells(a,!0),x=0;x<u.length;x++)g.setVisible(u[x],!0);var z=this.getSize(u,!1);if(0<p&&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=p-z+C.height,g.setGeometry(u[u.length-1],C))}var E=d?null:this.getRowLayout(u[0],k),D=[],G=b.y;for(x=0;x<u.length;x++)C=this.graph.getCellGeometry(u[x]),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*p,C.height=Math.round(G)-C.y,g.setGeometry(u[x],C)),m=Math.max(m,this.layoutRow(u[x],E,C.height,k,D));f&&p<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(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(x=0;x<u.length;x++)g.setVisible(u[x],
!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,qa,O){var Z=new mxPoint(qa,O);Z.type=oa;E.push(Z);Z=null!=w.routedPoints?w.routedPoints[E.length-1]:null;return null==Z||Z.type!=oa||Z.x!=qa||Z.y!=O},G=.5*this.scale;
-C=!1;E=[];for(var I=0;I<z.length-1;I++){for(var L=z[I+1],T=z[I],K=[],U=z[I+2];I<z.length-2&&mxUtils.ptSegDistSq(T.x,T.y,U.x,U.y,L.x,L.y)<1*this.scale*this.scale;)L=U,I++,U=z[I+2];C=D(0,T.x,T.y)||C;for(var Y=0;Y<this.validEdges.length;Y++){var Q=this.validEdges[Y],P=Q.absolutePoints;if(null!=P&&mxUtils.intersects(w,Q)&&"1"!=Q.style.noJump){var M=null;for(Q=0;Q<P.length-1;Q++){var W=P[Q+1],aa=P[Q];for(U=P[Q+2];Q<P.length-2&&mxUtils.ptSegDistSq(aa.x,aa.y,U.x,U.y,W.x,W.y)<1*this.scale*this.scale;)W=U,
-Q++,U=P[Q+2];var ia=mxUtils.intersection(T.x,T.y,L.x,L.y,aa.x,aa.y,W.x,W.y);if(null!=ia&&(Math.abs(ia.x-T.x)>G||Math.abs(ia.y-T.y)>G)&&(Math.abs(ia.x-L.x)>G||Math.abs(ia.y-L.y)>G)&&(null==M||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,M.x,M.y)>G||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,aa.x,aa.y)>G)&&(null==U||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,U.x,U.y)>G||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,W.x,W.y)>G)){U=ia.x-T.x;M=ia.y-T.y;ia={distSq:U*U+M*M,x:ia.x,y:ia.y};for(U=0;U<K.length;U++)if(K[U].distSq>ia.distSq){K.splice(U,
-0,ia);ia=null;break}null==ia||0!=K.length&&K[K.length-1].x===ia.x&&K[K.length-1].y===ia.y||K.push(ia)}M=aa}}}for(Q=0;Q<K.length;Q++)C=D(1,K[Q].x,K[Q].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"),I=!0,L=null,T=null,K=[],U=null;w.begin();for(var Y=0;Y<this.state.routedPoints.length;Y++){var Q=this.state.routedPoints[Y],P=new mxPoint(Q.x/this.scale,Q.y/this.scale);0==Y?P=z[0]:Y==this.state.routedPoints.length-1&&(P=z[z.length-1]);var M=!1;if(null!=
-L&&1==Q.type){var W=this.state.routedPoints[Y+1];Q=W.x/this.scale-P.x;W=W.y/this.scale-P.y;Q=Q*Q+W*W;null==U&&(U=new mxPoint(P.x-L.x,P.y-L.y),T=Math.sqrt(U.x*U.x+U.y*U.y),0<T?(U.x=U.x*D/T,U.y=U.y*D/T):U=null);Q>D*D&&0<T&&(Q=L.x-P.x,W=L.y-P.y,Q=Q*Q+W*W,Q>D*D&&(M=new mxPoint(P.x-U.x,P.y-U.y),Q=new mxPoint(P.x+U.x,P.y+U.y),K.push(M),this.addPoints(w,K,C,E,!1,null,I),K=0>Math.round(U.x)||0==Math.round(U.x)&&0>=Math.round(U.y)?1:-1,I=!1,"sharp"==G?(w.lineTo(M.x-U.y*K,M.y+U.x*K),w.lineTo(Q.x-U.y*K,Q.y+
-U.x*K),w.lineTo(Q.x,Q.y)):"line"==G?(w.moveTo(M.x+U.y*K,M.y-U.x*K),w.lineTo(M.x-U.y*K,M.y+U.x*K),w.moveTo(Q.x-U.y*K,Q.y+U.x*K),w.lineTo(Q.x+U.y*K,Q.y-U.x*K),w.moveTo(Q.x,Q.y)):"arc"==G?(K*=1.3,w.curveTo(M.x-U.y*K,M.y+U.x*K,Q.x-U.y*K,Q.y+U.x*K,Q.x,Q.y)):(w.moveTo(Q.x,Q.y),I=!0),K=[Q],M=!0))}else U=null;M||(K.push(P),L=P)}this.addPoints(w,K,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 T=Math.cos(-I),K=Math.sin(-I);D=mxUtils.getRotatedPoint(D,T,K,L)}T=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);T+=parseFloat(w.style[E?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);D=this.getPerimeterPoint(z,D,0==I&&G,T);0!=I&&(T=Math.cos(I),K=Math.sin(I),D=mxUtils.getRotatedPoint(D,T,K,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)}})();
+(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(x,z){z=null!=z?z:!0;var C=this.getState(x);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 x=null!=this.node?this.node.getElementsByTagName("path"):null;if(null!=
+x)for(var z=0;z<x.length;z++)if("hidden"!=x[z].getAttribute("visibility"))return x[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(x){e.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var f=mxShape.prototype.createSvgCanvas;
+mxShape.prototype.createSvgCanvas=function(x){x=f.apply(this,arguments);null!=this.state&&(x.adaptiveColors=this.state.view.graph.getAdaptiveColors());return x};var h=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(x,z){return h.apply(this,arguments)||null!=x.routedPoints&&null!=z.routedPoints&&!mxUtils.equalPoints(z.routedPoints,x.routedPoints)};var d=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(x){d.apply(this,arguments);
+this.graph.model.isEdge(x.cell)&&1!=x.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(x)};mxGraphView.prototype.updateLineJumps=function(x){var z=x.absolutePoints;if(Graph.lineJumpsEnabled){var C=null!=x.routedPoints,E=null;if(null!=z&&null!=this.validEdges&&"none"!==mxUtils.getValue(x.style,"jumpStyle","none")){var D=function(na,qa,O){var Z=new mxPoint(qa,O);Z.type=na;E.push(Z);Z=null!=x.routedPoints?x.routedPoints[E.length-1]:null;return null==Z||Z.type!=na||Z.x!=qa||Z.y!=O},G=.5*this.scale;
+C=!1;E=[];for(var I=0;I<z.length-1;I++){for(var L=z[I+1],T=z[I],K=[],U=z[I+2];I<z.length-2&&mxUtils.ptSegDistSq(T.x,T.y,U.x,U.y,L.x,L.y)<1*this.scale*this.scale;)L=U,I++,U=z[I+2];C=D(0,T.x,T.y)||C;for(var Y=0;Y<this.validEdges.length;Y++){var Q=this.validEdges[Y],P=Q.absolutePoints;if(null!=P&&mxUtils.intersects(x,Q)&&"1"!=Q.style.noJump){var M=null;for(Q=0;Q<P.length-1;Q++){var V=P[Q+1],aa=P[Q];for(U=P[Q+2];Q<P.length-2&&mxUtils.ptSegDistSq(aa.x,aa.y,U.x,U.y,V.x,V.y)<1*this.scale*this.scale;)V=U,
+Q++,U=P[Q+2];var ia=mxUtils.intersection(T.x,T.y,L.x,L.y,aa.x,aa.y,V.x,V.y);if(null!=ia&&(Math.abs(ia.x-T.x)>G||Math.abs(ia.y-T.y)>G)&&(Math.abs(ia.x-L.x)>G||Math.abs(ia.y-L.y)>G)&&(null==M||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,M.x,M.y)>G||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,aa.x,aa.y)>G)&&(null==U||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,U.x,U.y)>G||mxUtils.ptLineDist(T.x,T.y,L.x,L.y,V.x,V.y)>G)){U=ia.x-T.x;M=ia.y-T.y;ia={distSq:U*U+M*M,x:ia.x,y:ia.y};for(U=0;U<K.length;U++)if(K[U].distSq>ia.distSq){K.splice(U,
+0,ia);ia=null;break}null==ia||0!=K.length&&K[K.length-1].x===ia.x&&K[K.length-1].y===ia.y||K.push(ia)}M=aa}}}for(Q=0;Q<K.length;Q++)C=D(1,K[Q].x,K[Q].y)||C}ia=z[z.length-1];C=D(0,ia.x,ia.y)||C}x.routedPoints=E;return C}return!1};var g=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(x,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"),I=!0,L=null,T=null,K=[],U=null;x.begin();for(var Y=0;Y<this.state.routedPoints.length;Y++){var Q=this.state.routedPoints[Y],P=new mxPoint(Q.x/this.scale,Q.y/this.scale);0==Y?P=z[0]:Y==this.state.routedPoints.length-1&&(P=z[z.length-1]);var M=!1;if(null!=
+L&&1==Q.type){var V=this.state.routedPoints[Y+1];Q=V.x/this.scale-P.x;V=V.y/this.scale-P.y;Q=Q*Q+V*V;null==U&&(U=new mxPoint(P.x-L.x,P.y-L.y),T=Math.sqrt(U.x*U.x+U.y*U.y),0<T?(U.x=U.x*D/T,U.y=U.y*D/T):U=null);Q>D*D&&0<T&&(Q=L.x-P.x,V=L.y-P.y,Q=Q*Q+V*V,Q>D*D&&(M=new mxPoint(P.x-U.x,P.y-U.y),Q=new mxPoint(P.x+U.x,P.y+U.y),K.push(M),this.addPoints(x,K,C,E,!1,null,I),K=0>Math.round(U.x)||0==Math.round(U.x)&&0>=Math.round(U.y)?1:-1,I=!1,"sharp"==G?(x.lineTo(M.x-U.y*K,M.y+U.x*K),x.lineTo(Q.x-U.y*K,Q.y+
+U.x*K),x.lineTo(Q.x,Q.y)):"line"==G?(x.moveTo(M.x+U.y*K,M.y-U.x*K),x.lineTo(M.x-U.y*K,M.y+U.x*K),x.moveTo(Q.x-U.y*K,Q.y+U.x*K),x.lineTo(Q.x+U.y*K,Q.y-U.x*K),x.moveTo(Q.x,Q.y)):"arc"==G?(K*=1.3,x.curveTo(M.x-U.y*K,M.y+U.x*K,Q.x-U.y*K,Q.y+U.x*K,Q.x,Q.y)):(x.moveTo(Q.x,Q.y),I=!0),K=[Q],M=!0))}else U=null;M||(K.push(P),L=P)}this.addPoints(x,K,C,E,!1,null,I);x.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(x,z,C,E){return null!=z&&"centerPerimeter"==
+z.style[mxConstants.STYLE_PERIMETER]?new mxPoint(z.getCenterX(),z.getCenterY()):m.apply(this,arguments)};var p=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(x,z,C,E){if(null==z||null==x||"1"!=z.style.snapToPoint&&"1"!=x.style.snapToPoint)p.apply(this,arguments);else{z=this.getTerminalPort(x,z,E);var D=this.getNextPoint(x,C,E),G=this.graph.isOrthogonal(x),I=mxUtils.toRadians(Number(z.style[mxConstants.STYLE_ROTATION]||"0")),L=new mxPoint(z.getCenterX(),
+z.getCenterY());if(0!=I){var T=Math.cos(-I),K=Math.sin(-I);D=mxUtils.getRotatedPoint(D,T,K,L)}T=parseFloat(x.style[mxConstants.STYLE_PERIMETER_SPACING]||0);T+=parseFloat(x.style[E?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);D=this.getPerimeterPoint(z,D,0==I&&G,T);0!=I&&(T=Math.cos(I),K=Math.sin(I),D=mxUtils.getRotatedPoint(D,T,K,L));x.setAbsoluteTerminalPoint(this.snapToAnchorPoint(x,z,C,E,D),E)}};mxGraphView.prototype.snapToAnchorPoint=function(x,z,
+C,E,D){if(null!=z&&null!=x){x=this.graph.getAllConnectionConstraints(z);E=C=null;if(null!=x)for(var G=0;G<x.length;G++){var I=this.graph.getConnectionPoint(z,x[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(x,z,C){var E=k.apply(this,arguments);"1"==x.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(x){if(null!=x.style&&"undefined"!==typeof pako){var z=mxUtils.getValue(x.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,
null);else if(".js"==h.toLowerCase().substring(h.length-3,h.length))try{if(mxStencilRegistry.allowEval){var d=mxUtils.load(h);null!=d&&200<=d.getStatus()&&299>=d.getStatus()&&eval.call(window,d.getText())}}catch(g){null!=window.console&&console.log("error in getStencil:",a,e,b,h,g)}}mxStencilRegistry.packages[e]=1}}else e=e.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+e+".xml",null);b=mxStencilRegistry.stencils[a]}}return b};
@@ -2785,156 +2800,156 @@ mxStencilRegistry.loadStencilSet=function(a,b,e,f){var h=mxStencilRegistry.packa
h.documentElement&&mxStencilRegistry.parseStencilSet(h.documentElement,b,d)}};mxStencilRegistry.loadStencil=function(a,b){if(null!=b)mxUtils.get(a,mxUtils.bind(this,function(e){b(200<=e.getStatus()&&299>=e.getStatus()?e.getXml():null)}),mxUtils.bind(this,function(e){b(null)}));else return mxUtils.load(a).getXml()};mxStencilRegistry.parseStencilSets=function(a){for(var b=0;b<a.length;b++)mxStencilRegistry.parseStencilSet(mxUtils.parseXml(a[b]).documentElement)};
mxStencilRegistry.parseStencilSet=function(a,b,e){if("stencils"==a.nodeName)for(var f=a.firstChild;null!=f;)"shapes"==f.nodeName&&mxStencilRegistry.parseStencilSet(f,b,e),f=f.nextSibling;else{e=null!=e?e:!0;f=a.firstChild;var h="";a=a.getAttribute("name");for(null!=a&&(h=a+".");null!=f;){if(f.nodeType==mxConstants.NODETYPE_ELEMENT&&(a=f.getAttribute("name"),null!=a)){h=h.toLowerCase();var d=a.replace(/ /g,"_");e&&mxStencilRegistry.addStencil(h+d.toLowerCase(),new mxStencil(f));if(null!=b){var g=f.getAttribute("w"),
m=f.getAttribute("h");g=null==g?80:parseInt(g,10);m=null==m?80:parseInt(m,10);b(h,d,a,g,m)}}f=f.nextSibling}}};
-"undefined"!==typeof mxVertexHandler&&function(){function a(){var p=document.createElement("div");p.className="geHint";p.style.whiteSpace="nowrap";p.style.position="absolute";return p}function b(p,A){switch(A){case mxConstants.POINTS:return p;case mxConstants.MILLIMETERS:return(p/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(p/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(p/mxConstants.PIXELS_PER_INCH).toFixed(3)}}mxConstants.HANDLE_FILLCOLOR="#29b6f2";
+"undefined"!==typeof mxVertexHandler&&function(){function a(){var q=document.createElement("div");q.className="geHint";q.style.whiteSpace="nowrap";q.style.position="absolute";return q}function b(q,A){switch(A){case mxConstants.POINTS:return q;case mxConstants.MILLIMETERS:return(q/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(q/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(q/mxConstants.PIXELS_PER_INCH).toFixed(3)}}mxConstants.HANDLE_FILLCOLOR="#29b6f2";
mxConstants.HANDLE_STROKECOLOR="#0088cf";mxConstants.VERTEX_SELECTION_COLOR="#00a8ff";mxConstants.OUTLINE_COLOR="#00a8ff";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#99ccff";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#00a8ff";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.EDGE_SELECTION_COLOR="#00a8ff";mxConstants.DEFAULT_VALID_COLOR="#00a8ff";mxConstants.LABEL_HANDLE_FILLCOLOR="#cee7ff";mxConstants.GUIDE_COLOR="#0088cf";mxConstants.HIGHLIGHT_STROKEWIDTH=5;mxConstants.HIGHLIGHT_OPACITY=50;mxConstants.HIGHLIGHT_SIZE=
5;mxWindow.prototype.closeImage=Graph.createSvgImage(18,10,'<path d="M 5 1 L 13 9 M 13 1 L 5 9" stroke="#707070" stroke-width="2"/>').src;mxWindow.prototype.minimizeImage=Graph.createSvgImage(14,10,'<path d="M 3 7 L 7 3 L 11 7" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.normalizeImage=Graph.createSvgImage(14,10,'<path d="M 3 3 L 7 7 L 11 3" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.resizeImage=Graph.createSvgImage(10,10,'<path d="Z" stroke="#C0C0C0" stroke-width="1" fill="none"/>').src;
-mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(p){return!mxEvent.isAltDown(p)||mxEvent.isShiftDown(p)};var e=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(p){return e.apply(this,arguments)||this.graph.isTableRow(p)||this.graph.isTableCell(p)};var f=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
-function(p){return f.apply(this,arguments)||this.graph.isEdgeIgnored(p)};var h=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(p){return this.graph.isCloneEvent(p)!=h.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var p=new mxEllipse(null,this.highlightColor,this.highlightColor,0);p.opacity=mxConstants.HIGHLIGHT_OPACITY;return p};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
-"crosshair";mxConnectionHandler.prototype.createEdgeState=function(p){p=this.graph.createCurrentEdgeStyle();p=this.graph.createEdge(null,null,null,null,null,p);p=new mxCellState(this.graph.view,p,this.graph.getCellStyle(p));for(var A in this.graph.currentEdgeStyle)p.style[A]=this.graph.currentEdgeStyle[A];if(null!=this.previous){var B=this.previous.style.newEdgeStyle;if(null!=B)try{var F=JSON.parse(B);for(A in F)p.style[A]=F[A]}catch(N){}}p.style=this.graph.postProcessCellStyle(p.cell,p.style);return p};
-var d=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var p=d.apply(this,arguments);p.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return p};mxConnectionHandler.prototype.updatePreview=function(p){};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var p=g.apply(this,arguments),A=p.getCell;p.getCell=mxUtils.bind(this,function(B){var F=A.apply(this,arguments);this.error=null;return F});
-return p};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var p="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",A="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),B=0;B<A.length;B++)null!=
-this.currentEdgeStyle[A[B]]&&(p+=A[B]+"="+this.currentEdgeStyle[A[B]]+";");null!=this.currentEdgeStyle.orthogonalLoop?p+="orthogonalLoop="+this.currentEdgeStyle.orthogonalLoop+";":null!=Graph.prototype.defaultEdgeStyle.orthogonalLoop&&(p+="orthogonalLoop="+Graph.prototype.defaultEdgeStyle.orthogonalLoop+";");null!=this.currentEdgeStyle.jettySize?p+="jettySize="+this.currentEdgeStyle.jettySize+";":null!=Graph.prototype.defaultEdgeStyle.jettySize&&(p+="jettySize="+Graph.prototype.defaultEdgeStyle.jettySize+
-";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(p+="elbow="+this.currentEdgeStyle.elbow+";");return p=null!=this.currentEdgeStyle.html?p+("html="+this.currentEdgeStyle.html+";"):p+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var p=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=
-p&&(new mxCodec(p.ownerDocument)).decode(p,this.getStylesheet())};Graph.prototype.createCellLookup=function(p,A){A=null!=A?A:{};for(var B=0;B<p.length;B++){var F=p[B];A[mxObjectIdentity.get(F)]=F.getId();for(var N=this.model.getChildCount(F),R=0;R<N;R++)this.createCellLookup([this.model.getChildAt(F,R)],A)}return A};Graph.prototype.createCellMapping=function(p,A,B){B=null!=B?B:{};for(var F in p){var N=A[F];null==B[N]&&(B[N]=p[F].getId()||"")}return B};Graph.prototype.importGraphModel=function(p,A,
-B,F){A=null!=A?A:0;B=null!=B?B:0;var N=new mxCodec(p.ownerDocument),R=new mxGraphModel;N.decode(p,R);p=[];N={};var X={},fa=R.getChildren(this.cloneCell(R.root,this.isCloneInvalidEdges(),N));if(null!=fa){var da=this.createCellLookup([R.root]);fa=fa.slice();this.model.beginUpdate();try{if(1!=fa.length||this.isCellLocked(this.getDefaultParent()))for(R=0;R<fa.length;R++)ha=this.model.getChildren(this.moveCells([fa[R]],A,B,!1,this.model.getRoot())[0]),null!=ha&&(p=p.concat(ha));else{var ha=R.getChildren(fa[0]);
-null!=ha&&(p=this.moveCells(ha,A,B,!1,this.getDefaultParent()),X[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=p&&(this.createCellMapping(N,da,X),this.updateCustomLinks(X,p),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var wa=this.getBoundingBoxFromGeometry(p,!0);null!=wa&&this.moveCells(p,A-wa.x,B-wa.y)}}finally{this.model.endUpdate()}}return p};Graph.prototype.encodeCells=function(p){for(var A={},B=this.cloneCells(p,null,A),F=new mxDictionary,N=0;N<p.length;N++)F.put(p[N],
-!0);var R=new mxCodec,X=new mxGraphModel,fa=X.getChildAt(X.getRoot(),0);for(N=0;N<B.length;N++){X.add(fa,B[N]);var da=this.view.getState(p[N]);if(null!=da){var ha=this.getCellGeometry(B[N]);null!=ha&&ha.relative&&!this.model.isEdge(p[N])&&null==F.get(this.model.getParent(p[N]))&&(ha.offset=null,ha.relative=!1,ha.x=da.x/da.view.scale-da.view.translate.x,ha.y=da.y/da.view.scale-da.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(p)),B);return R.encode(X)};Graph.prototype.isSwimlane=
-function(p,A){var B=null;null==p||this.model.isEdge(p)||this.model.getParent(p)==this.model.getRoot()||(B=this.getCurrentCellStyle(p,A)[mxConstants.STYLE_SHAPE]);return B==mxConstants.SHAPE_SWIMLANE||"table"==B||"tableRow"==B};var m=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(p){return null!=p&&m.apply(this,arguments)?this.isTableCell(p)||this.isTableRow(p)?this.isCellEditable(this.model.getParent(p)):!0:!1};var q=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=
-function(p){return null!=p&&q.apply(this,arguments)?this.isTableCell(p)||this.isTableRow(p)?this.isCellMovable(this.model.getParent(p)):!0:!1};var k=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(p){var A=this.model.getParent(p);if(null!=A){var B=this.getCurrentCellStyle(A);if(null!=B.expand)return"0"!=B.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var u=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(p,A,B,F,N,R,X,fa){null==fa&&(fa=this.model.getParent(p),
-this.isTable(fa)||this.isTableRow(fa))&&(fa=this.getCellAt(R,X,null,!0,!1));B=null;this.model.beginUpdate();try{B=u.apply(this,[p,A,B,F,N,R,X,fa]);this.model.setValue(B,"");var da=this.getChildCells(B,!0);for(A=0;A<da.length;A++){var ha=this.getCellGeometry(da[A]);null!=ha&&ha.relative&&0<ha.x&&this.model.remove(da[A])}var wa=this.getChildCells(p,!0);for(A=0;A<wa.length;A++)ha=this.getCellGeometry(wa[A]),null!=ha&&ha.relative&&0>=ha.x&&this.model.remove(wa[A]);var Ma=this.model.getTerminal(B,!1);
-if(null!=Ma){var Na=this.getCurrentCellStyle(Ma);null!=Na&&"1"==Na.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[p]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[p]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[B]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[B]))}}finally{this.model.endUpdate()}return B};var w=Graph.prototype.selectCell;Graph.prototype.selectCell=function(p,A,B){if(A||B)w.apply(this,arguments);else{var F=this.getSelectionCell(),N=null,R=[],X=mxUtils.bind(this,
-function(fa){if(null!=this.view.getState(fa)&&(this.model.isVertex(fa)||this.model.isEdge(fa)))if(R.push(fa),fa==F)N=R.length-1;else if(p&&null==F&&0<R.length||null!=N&&p&&R.length>N||!p&&0<N)return;for(var da=0;da<this.model.getChildCount(fa);da++)X(this.model.getChildAt(fa,da))});X(this.model.root);0<R.length&&(N=null!=N?mxUtils.mod(N+(p?1:-1),R.length):0,this.setSelectionCell(R[N]))}};Graph.prototype.swapShapes=function(p,A){if(this.model.isVertex(p)&&this.model.isVertex(A)&&2==this.getMovableCells([p,
-A]).length){var B=this.getCellGeometry(p),F=this.getCellGeometry(A);if(null!=B&&null!=F){var N=B.clone(),R=F.clone();this.model.beginUpdate();try{N.x=F.getCenterX()-B.width/2,N.y=F.getCenterY()-B.height/2,R.x=B.getCenterX()-F.width/2,R.y=B.getCenterY()-F.height/2,this.model.setGeometry(p,N),this.model.setGeometry(A,R)}finally{this.model.endUpdate()}}}};var z=Graph.prototype.moveCells;Graph.prototype.moveCells=function(p,A,B,F,N,R,X){X=null!=X?X:{};if(this.isTable(N)){for(var fa=[],da=0;da<p.length;da++)this.isTable(p[da])?
-fa=fa.concat(this.model.getChildCells(p[da],!0).reverse()):fa.push(p[da]);p=fa}this.model.beginUpdate();try{fa=[];for(da=0;da<p.length;da++)if(null!=N&&this.isTableRow(p[da])){var ha=this.model.getParent(p[da]),wa=this.getCellGeometry(p[da]);this.isTable(ha)&&fa.push(ha);if(null!=ha&&null!=wa&&this.isTable(ha)&&this.isTable(N)&&(F||ha!=N)){if(!F){var Ma=this.getCellGeometry(ha);null!=Ma&&(Ma=Ma.clone(),Ma.height-=wa.height,this.model.setGeometry(ha,Ma))}Ma=this.getCellGeometry(N);null!=Ma&&(Ma=Ma.clone(),
-Ma.height+=wa.height,this.model.setGeometry(N,Ma));var Na=this.model.getChildCells(N,!0);if(0<Na.length){p[da]=F?this.cloneCell(p[da]):p[da];var ya=this.model.getChildCells(p[da],!0),za=this.model.getChildCells(Na[0],!0),va=za.length-ya.length;if(0<va)for(var ua=0;ua<va;ua++){var Va=this.cloneCell(ya[ya.length-1]);null!=Va&&(Va.value="",this.model.add(p[da],Va))}else if(0>va)for(ua=0;ua>va;ua--)this.model.remove(ya[ya.length+ua-1]);ya=this.model.getChildCells(p[da],!0);for(ua=0;ua<za.length;ua++){var Qa=
-this.getCellGeometry(za[ua]),Ka=this.getCellGeometry(ya[ua]);null!=Qa&&null!=Ka&&(Ka=Ka.clone(),Ka.width=Qa.width,this.model.setGeometry(ya[ua],Ka))}}}}var Ua=z.apply(this,arguments);for(da=0;da<fa.length;da++)!F&&this.model.contains(fa[da])&&0==this.model.getChildCount(fa[da])&&this.model.remove(fa[da]);F&&this.updateCustomLinks(this.createCellMapping(X,this.createCellLookup(p)),Ua)}finally{this.model.endUpdate()}return Ua};var C=Graph.prototype.removeCells;Graph.prototype.removeCells=function(p,
-A){var B=[];this.model.beginUpdate();try{for(var F=0;F<p.length;F++)if(this.isTableCell(p[F])){var N=this.model.getParent(p[F]),R=this.model.getParent(N);1==this.model.getChildCount(N)&&1==this.model.getChildCount(R)?0>mxUtils.indexOf(p,R)&&0>mxUtils.indexOf(B,R)&&B.push(R):this.labelChanged(p[F],"")}else{if(this.isTableRow(p[F])&&(R=this.model.getParent(p[F]),0>mxUtils.indexOf(p,R)&&0>mxUtils.indexOf(B,R))){for(var X=this.model.getChildCells(R,!0),fa=0,da=0;da<X.length;da++)0<=mxUtils.indexOf(p,
-X[da])&&fa++;fa==X.length&&B.push(R)}B.push(p[F])}B=C.apply(this,[B,A])}finally{this.model.endUpdate()}return B};Graph.prototype.updateCustomLinks=function(p,A,B){B=null!=B?B:new Graph;for(var F=0;F<A.length;F++)null!=A[F]&&B.updateCustomLinksForCell(p,A[F],B)};Graph.prototype.updateCustomLinksForCell=function(p,A){this.doUpdateCustomLinksForCell(p,A);for(var B=this.model.getChildCount(A),F=0;F<B;F++)this.updateCustomLinksForCell(p,this.model.getChildAt(A,F))};Graph.prototype.doUpdateCustomLinksForCell=
-function(p,A){};Graph.prototype.getAllConnectionConstraints=function(p,A){if(null!=p){A=mxUtils.getValue(p.style,"points",null);if(null!=A){p=[];try{var B=JSON.parse(A);for(A=0;A<B.length;A++){var F=B[A];p.push(new mxConnectionConstraint(new mxPoint(F[0],F[1]),2<F.length?"0"!=F[2]:!0,null,3<F.length?F[3]:0,4<F.length?F[4]:0))}}catch(R){}return p}if(null!=p.shape&&null!=p.shape.bounds){F=p.shape.direction;A=p.shape.bounds;var N=p.shape.scale;B=A.width/N;A=A.height/N;if(F==mxConstants.DIRECTION_NORTH||
-F==mxConstants.DIRECTION_SOUTH)F=B,B=A,A=F;A=p.shape.getConstraints(p.style,B,A);if(null!=A)return A;if(null!=p.shape.stencil&&null!=p.shape.stencil.constraints)return p.shape.stencil.constraints;if(null!=p.shape.constraints)return p.shape.constraints}}return null};Graph.prototype.flipEdge=function(p){if(null!=p){var A=this.getCurrentCellStyle(p);A=mxUtils.getValue(A,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;
-this.setCellStyles(mxConstants.STYLE_ELBOW,A,[p])}};Graph.prototype.isValidRoot=function(p){for(var A=this.model.getChildCount(p),B=0,F=0;F<A;F++){var N=this.model.getChildAt(p,F);this.model.isVertex(N)&&(N=this.getCellGeometry(N),null==N||N.relative||B++)}return 0<B||this.isContainer(p)};Graph.prototype.isValidDropTarget=function(p,A,B){for(var F=this.getCurrentCellStyle(p),N=!0,R=!0,X=0;X<A.length&&R;X++)N=N&&this.isTable(A[X]),R=R&&this.isTableRow(A[X]);return!this.isCellLocked(p)&&(this.isTargetShape(p,
-A,B)||("1"!=mxUtils.getValue(F,"part","0")||this.isContainer(p))&&"0"!=mxUtils.getValue(F,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(p))&&!this.isTableRow(p)&&(!this.isTable(p)||R||N))};Graph.prototype.createGroupCell=function(){var p=mxGraph.prototype.createGroupCell.apply(this,arguments);p.setStyle("group");return p};Graph.prototype.isExtendParentsOnAdd=function(p){var A=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(A&&null!=
-p&&null!=this.layoutManager){var B=this.model.getParent(p);null!=B&&(B=this.layoutManager.getLayout(B),null!=B&&B.constructor==mxStackLayout&&(A=!1))}return A};Graph.prototype.getPreferredSizeForCell=function(p,A,B){B=null!=B?B:this.gridEnabled;var F=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=F&&(F.width+=10,F.height+=4,B&&(F.width=this.snap(F.width),F.height=this.snap(F.height)));return F};Graph.prototype.turnShapes=function(p,A){var B=this.getModel(),F=[];B.beginUpdate();
-try{for(var N=0;N<p.length;N++){var R=p[N];if(B.isEdge(R)){var X=B.getTerminal(R,!0),fa=B.getTerminal(R,!1);B.setTerminal(R,fa,!0);B.setTerminal(R,X,!1);var da=B.getGeometry(R);if(null!=da){da=da.clone();null!=da.points&&da.points.reverse();var ha=da.getTerminalPoint(!0),wa=da.getTerminalPoint(!1);da.setTerminalPoint(ha,!1);da.setTerminalPoint(wa,!0);B.setGeometry(R,da);var Ma=this.view.getState(R),Na=this.view.getState(X),ya=this.view.getState(fa);if(null!=Ma){var za=null!=Na?this.getConnectionConstraint(Ma,
-Na,!0):null,va=null!=ya?this.getConnectionConstraint(Ma,ya,!1):null;this.setConnectionConstraint(R,X,!0,va);this.setConnectionConstraint(R,fa,!1,za);var ua=mxUtils.getValue(Ma.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(Ma.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[R]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,ua,[R])}F.push(R)}}else if(B.isVertex(R)&&(da=this.getCellGeometry(R),null!=
+mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(q){return!mxEvent.isAltDown(q)||mxEvent.isShiftDown(q)};var e=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(q){return e.apply(this,arguments)||this.graph.isTableRow(q)||this.graph.isTableCell(q)};var f=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
+function(q){return f.apply(this,arguments)||this.graph.isEdgeIgnored(q)};var h=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(q){return this.graph.isCloneEvent(q)!=h.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var q=new mxEllipse(null,this.highlightColor,this.highlightColor,0);q.opacity=mxConstants.HIGHLIGHT_OPACITY;return q};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
+"crosshair";mxConnectionHandler.prototype.createEdgeState=function(q){q=this.graph.createCurrentEdgeStyle();q=this.graph.createEdge(null,null,null,null,null,q);q=new mxCellState(this.graph.view,q,this.graph.getCellStyle(q));for(var A in this.graph.currentEdgeStyle)q.style[A]=this.graph.currentEdgeStyle[A];if(null!=this.previous){var B=this.previous.style.newEdgeStyle;if(null!=B)try{var F=JSON.parse(B);for(A in F)q.style[A]=F[A]}catch(N){}}q.style=this.graph.postProcessCellStyle(q.cell,q.style);return q};
+var d=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var q=d.apply(this,arguments);q.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return q};mxConnectionHandler.prototype.updatePreview=function(q){};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var q=g.apply(this,arguments),A=q.getCell;q.getCell=mxUtils.bind(this,function(B){var F=A.apply(this,arguments);this.error=null;return F});
+return q};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var q="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",A="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),B=0;B<A.length;B++)null!=
+this.currentEdgeStyle[A[B]]&&(q+=A[B]+"="+this.currentEdgeStyle[A[B]]+";");null!=this.currentEdgeStyle.orthogonalLoop?q+="orthogonalLoop="+this.currentEdgeStyle.orthogonalLoop+";":null!=Graph.prototype.defaultEdgeStyle.orthogonalLoop&&(q+="orthogonalLoop="+Graph.prototype.defaultEdgeStyle.orthogonalLoop+";");null!=this.currentEdgeStyle.jettySize?q+="jettySize="+this.currentEdgeStyle.jettySize+";":null!=Graph.prototype.defaultEdgeStyle.jettySize&&(q+="jettySize="+Graph.prototype.defaultEdgeStyle.jettySize+
+";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(q+="elbow="+this.currentEdgeStyle.elbow+";");return q=null!=this.currentEdgeStyle.html?q+("html="+this.currentEdgeStyle.html+";"):q+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var q=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=
+q&&(new mxCodec(q.ownerDocument)).decode(q,this.getStylesheet())};Graph.prototype.createCellLookup=function(q,A){A=null!=A?A:{};for(var B=0;B<q.length;B++){var F=q[B];A[mxObjectIdentity.get(F)]=F.getId();for(var N=this.model.getChildCount(F),R=0;R<N;R++)this.createCellLookup([this.model.getChildAt(F,R)],A)}return A};Graph.prototype.createCellMapping=function(q,A,B){B=null!=B?B:{};for(var F in q){var N=A[F];null==B[N]&&(B[N]=q[F].getId()||"")}return B};Graph.prototype.importGraphModel=function(q,A,
+B,F){A=null!=A?A:0;B=null!=B?B:0;var N=new mxCodec(q.ownerDocument),R=new mxGraphModel;N.decode(q,R);q=[];N={};var X={},fa=R.getChildren(this.cloneCell(R.root,this.isCloneInvalidEdges(),N));if(null!=fa){var da=this.createCellLookup([R.root]);fa=fa.slice();this.model.beginUpdate();try{if(1!=fa.length||this.isCellLocked(this.getDefaultParent()))for(R=0;R<fa.length;R++)ha=this.model.getChildren(this.moveCells([fa[R]],A,B,!1,this.model.getRoot())[0]),null!=ha&&(q=q.concat(ha));else{var ha=R.getChildren(fa[0]);
+null!=ha&&(q=this.moveCells(ha,A,B,!1,this.getDefaultParent()),X[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=q&&(this.createCellMapping(N,da,X),this.updateCustomLinks(X,q),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var va=this.getBoundingBoxFromGeometry(q,!0);null!=va&&this.moveCells(q,A-va.x,B-va.y)}}finally{this.model.endUpdate()}}return q};Graph.prototype.encodeCells=function(q){for(var A={},B=this.cloneCells(q,null,A),F=new mxDictionary,N=0;N<q.length;N++)F.put(q[N],
+!0);var R=new mxCodec,X=new mxGraphModel,fa=X.getChildAt(X.getRoot(),0);for(N=0;N<B.length;N++){X.add(fa,B[N]);var da=this.view.getState(q[N]);if(null!=da){var ha=this.getCellGeometry(B[N]);null!=ha&&ha.relative&&!this.model.isEdge(q[N])&&null==F.get(this.model.getParent(q[N]))&&(ha.offset=null,ha.relative=!1,ha.x=da.x/da.view.scale-da.view.translate.x,ha.y=da.y/da.view.scale-da.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(q)),B);return R.encode(X)};Graph.prototype.isSwimlane=
+function(q,A){var B=null;null==q||this.model.isEdge(q)||this.model.getParent(q)==this.model.getRoot()||(B=this.getCurrentCellStyle(q,A)[mxConstants.STYLE_SHAPE]);return B==mxConstants.SHAPE_SWIMLANE||"table"==B||"tableRow"==B};var m=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(q){return null!=q&&m.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellEditable(this.model.getParent(q)):!0:!1};var p=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=
+function(q){return null!=q&&p.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellMovable(this.model.getParent(q)):!0:!1};var k=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(q){var A=this.model.getParent(q);if(null!=A){var B=this.getCurrentCellStyle(A);if(null!=B.expand)return"0"!=B.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var u=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(q,A,B,F,N,R,X,fa){null==fa&&(fa=this.model.getParent(q),
+this.isTable(fa)||this.isTableRow(fa))&&(fa=this.getCellAt(R,X,null,!0,!1));B=null;this.model.beginUpdate();try{B=u.apply(this,[q,A,B,F,N,R,X,fa]);this.model.setValue(B,"");var da=this.getChildCells(B,!0);for(A=0;A<da.length;A++){var ha=this.getCellGeometry(da[A]);null!=ha&&ha.relative&&0<ha.x&&this.model.remove(da[A])}var va=this.getChildCells(q,!0);for(A=0;A<va.length;A++)ha=this.getCellGeometry(va[A]),null!=ha&&ha.relative&&0>=ha.x&&this.model.remove(va[A]);var Ma=this.model.getTerminal(B,!1);
+if(null!=Ma){var Na=this.getCurrentCellStyle(Ma);null!=Na&&"1"==Na.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[q]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[q]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[B]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[B]))}}finally{this.model.endUpdate()}return B};var x=Graph.prototype.selectCell;Graph.prototype.selectCell=function(q,A,B){if(A||B)x.apply(this,arguments);else{var F=this.getSelectionCell(),N=null,R=[],X=mxUtils.bind(this,
+function(fa){if(null!=this.view.getState(fa)&&(this.model.isVertex(fa)||this.model.isEdge(fa)))if(R.push(fa),fa==F)N=R.length-1;else if(q&&null==F&&0<R.length||null!=N&&q&&R.length>N||!q&&0<N)return;for(var da=0;da<this.model.getChildCount(fa);da++)X(this.model.getChildAt(fa,da))});X(this.model.root);0<R.length&&(N=null!=N?mxUtils.mod(N+(q?1:-1),R.length):0,this.setSelectionCell(R[N]))}};Graph.prototype.swapShapes=function(q,A){if(this.model.isVertex(q)&&this.model.isVertex(A)&&2==this.getMovableCells([q,
+A]).length){var B=this.getCellGeometry(q),F=this.getCellGeometry(A);if(null!=B&&null!=F){var N=B.clone(),R=F.clone();this.model.beginUpdate();try{N.x=F.getCenterX()-B.width/2,N.y=F.getCenterY()-B.height/2,R.x=B.getCenterX()-F.width/2,R.y=B.getCenterY()-F.height/2,this.model.setGeometry(q,N),this.model.setGeometry(A,R)}finally{this.model.endUpdate()}}}};var z=Graph.prototype.moveCells;Graph.prototype.moveCells=function(q,A,B,F,N,R,X){X=null!=X?X:{};if(this.isTable(N)){for(var fa=[],da=0;da<q.length;da++)this.isTable(q[da])?
+fa=fa.concat(this.model.getChildCells(q[da],!0).reverse()):fa.push(q[da]);q=fa}this.model.beginUpdate();try{fa=[];for(da=0;da<q.length;da++)if(null!=N&&this.isTableRow(q[da])){var ha=this.model.getParent(q[da]),va=this.getCellGeometry(q[da]);this.isTable(ha)&&fa.push(ha);if(null!=ha&&null!=va&&this.isTable(ha)&&this.isTable(N)&&(F||ha!=N)){if(!F){var Ma=this.getCellGeometry(ha);null!=Ma&&(Ma=Ma.clone(),Ma.height-=va.height,this.model.setGeometry(ha,Ma))}Ma=this.getCellGeometry(N);null!=Ma&&(Ma=Ma.clone(),
+Ma.height+=va.height,this.model.setGeometry(N,Ma));var Na=this.model.getChildCells(N,!0);if(0<Na.length){q[da]=F?this.cloneCell(q[da]):q[da];var ya=this.model.getChildCells(q[da],!0),Ga=this.model.getChildCells(Na[0],!0),wa=Ga.length-ya.length;if(0<wa)for(var ua=0;ua<wa;ua++){var Va=this.cloneCell(ya[ya.length-1]);null!=Va&&(Va.value="",this.model.add(q[da],Va))}else if(0>wa)for(ua=0;ua>wa;ua--)this.model.remove(ya[ya.length+ua-1]);ya=this.model.getChildCells(q[da],!0);for(ua=0;ua<Ga.length;ua++){var Qa=
+this.getCellGeometry(Ga[ua]),Ka=this.getCellGeometry(ya[ua]);null!=Qa&&null!=Ka&&(Ka=Ka.clone(),Ka.width=Qa.width,this.model.setGeometry(ya[ua],Ka))}}}}var Ua=z.apply(this,arguments);for(da=0;da<fa.length;da++)!F&&this.model.contains(fa[da])&&0==this.model.getChildCount(fa[da])&&this.model.remove(fa[da]);F&&this.updateCustomLinks(this.createCellMapping(X,this.createCellLookup(q)),Ua)}finally{this.model.endUpdate()}return Ua};var C=Graph.prototype.removeCells;Graph.prototype.removeCells=function(q,
+A){var B=[];this.model.beginUpdate();try{for(var F=0;F<q.length;F++)if(this.isTableCell(q[F])){var N=this.model.getParent(q[F]),R=this.model.getParent(N);1==this.model.getChildCount(N)&&1==this.model.getChildCount(R)?0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R)&&B.push(R):this.labelChanged(q[F],"")}else{if(this.isTableRow(q[F])&&(R=this.model.getParent(q[F]),0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R))){for(var X=this.model.getChildCells(R,!0),fa=0,da=0;da<X.length;da++)0<=mxUtils.indexOf(q,
+X[da])&&fa++;fa==X.length&&B.push(R)}B.push(q[F])}B=C.apply(this,[B,A])}finally{this.model.endUpdate()}return B};Graph.prototype.updateCustomLinks=function(q,A,B){B=null!=B?B:new Graph;for(var F=0;F<A.length;F++)null!=A[F]&&B.updateCustomLinksForCell(q,A[F],B)};Graph.prototype.updateCustomLinksForCell=function(q,A){this.doUpdateCustomLinksForCell(q,A);for(var B=this.model.getChildCount(A),F=0;F<B;F++)this.updateCustomLinksForCell(q,this.model.getChildAt(A,F))};Graph.prototype.doUpdateCustomLinksForCell=
+function(q,A){};Graph.prototype.getAllConnectionConstraints=function(q,A){if(null!=q){A=mxUtils.getValue(q.style,"points",null);if(null!=A){q=[];try{var B=JSON.parse(A);for(A=0;A<B.length;A++){var F=B[A];q.push(new mxConnectionConstraint(new mxPoint(F[0],F[1]),2<F.length?"0"!=F[2]:!0,null,3<F.length?F[3]:0,4<F.length?F[4]:0))}}catch(R){}return q}if(null!=q.shape&&null!=q.shape.bounds){F=q.shape.direction;A=q.shape.bounds;var N=q.shape.scale;B=A.width/N;A=A.height/N;if(F==mxConstants.DIRECTION_NORTH||
+F==mxConstants.DIRECTION_SOUTH)F=B,B=A,A=F;A=q.shape.getConstraints(q.style,B,A);if(null!=A)return A;if(null!=q.shape.stencil&&null!=q.shape.stencil.constraints)return q.shape.stencil.constraints;if(null!=q.shape.constraints)return q.shape.constraints}}return null};Graph.prototype.flipEdge=function(q){if(null!=q){var A=this.getCurrentCellStyle(q);A=mxUtils.getValue(A,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;
+this.setCellStyles(mxConstants.STYLE_ELBOW,A,[q])}};Graph.prototype.isValidRoot=function(q){for(var A=this.model.getChildCount(q),B=0,F=0;F<A;F++){var N=this.model.getChildAt(q,F);this.model.isVertex(N)&&(N=this.getCellGeometry(N),null==N||N.relative||B++)}return 0<B||this.isContainer(q)};Graph.prototype.isValidDropTarget=function(q,A,B){for(var F=this.getCurrentCellStyle(q),N=!0,R=!0,X=0;X<A.length&&R;X++)N=N&&this.isTable(A[X]),R=R&&this.isTableRow(A[X]);return!this.isCellLocked(q)&&(this.isTargetShape(q,
+A,B)||("1"!=mxUtils.getValue(F,"part","0")||this.isContainer(q))&&"0"!=mxUtils.getValue(F,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(q))&&!this.isTableRow(q)&&(!this.isTable(q)||R||N))};Graph.prototype.createGroupCell=function(){var q=mxGraph.prototype.createGroupCell.apply(this,arguments);q.setStyle("group");return q};Graph.prototype.isExtendParentsOnAdd=function(q){var A=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(A&&null!=
+q&&null!=this.layoutManager){var B=this.model.getParent(q);null!=B&&(B=this.layoutManager.getLayout(B),null!=B&&B.constructor==mxStackLayout&&(A=!1))}return A};Graph.prototype.getPreferredSizeForCell=function(q,A,B){B=null!=B?B:this.gridEnabled;var F=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=F&&(F.width+=10,F.height+=4,B&&(F.width=this.snap(F.width),F.height=this.snap(F.height)));return F};Graph.prototype.turnShapes=function(q,A){var B=this.getModel(),F=[];B.beginUpdate();
+try{for(var N=0;N<q.length;N++){var R=q[N];if(B.isEdge(R)){var X=B.getTerminal(R,!0),fa=B.getTerminal(R,!1);B.setTerminal(R,fa,!0);B.setTerminal(R,X,!1);var da=B.getGeometry(R);if(null!=da){da=da.clone();null!=da.points&&da.points.reverse();var ha=da.getTerminalPoint(!0),va=da.getTerminalPoint(!1);da.setTerminalPoint(ha,!1);da.setTerminalPoint(va,!0);B.setGeometry(R,da);var Ma=this.view.getState(R),Na=this.view.getState(X),ya=this.view.getState(fa);if(null!=Ma){var Ga=null!=Na?this.getConnectionConstraint(Ma,
+Na,!0):null,wa=null!=ya?this.getConnectionConstraint(Ma,ya,!1):null;this.setConnectionConstraint(R,X,!0,wa);this.setConnectionConstraint(R,fa,!1,Ga);var ua=mxUtils.getValue(Ma.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(Ma.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[R]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,ua,[R])}F.push(R)}}else if(B.isVertex(R)&&(da=this.getCellGeometry(R),null!=
da)){if(!(this.isTable(R)||this.isTableRow(R)||this.isTableCell(R)||this.isSwimlane(R))){da=da.clone();da.x+=da.width/2-da.height/2;da.y+=da.height/2-da.width/2;var Va=da.width;da.width=da.height;da.height=Va;B.setGeometry(R,da)}var Qa=this.view.getState(R);if(null!=Qa){var Ka=[mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_NORTH],Ua=mxUtils.getValue(Qa.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);this.setCellStyles(mxConstants.STYLE_DIRECTION,
-Ka[mxUtils.mod(mxUtils.indexOf(Ka,Ua)+(A?-1:1),Ka.length)],[R])}F.push(R)}}}finally{B.endUpdate()}return F};Graph.prototype.stencilHasPlaceholders=function(p){if(null!=p&&null!=p.fgNode)for(p=p.fgNode.firstChild;null!=p;){if("text"==p.nodeName&&"1"==p.getAttribute("placeholders"))return!0;p=p.nextSibling}return!1};var E=Graph.prototype.processChange;Graph.prototype.processChange=function(p){if(p instanceof mxGeometryChange&&(this.isTableCell(p.cell)||this.isTableRow(p.cell))&&(null==p.previous&&null!=
-p.geometry||null!=p.previous&&!p.previous.equals(p.geometry))){var A=p.cell;this.isTableCell(A)&&(A=this.model.getParent(A));this.isTableRow(A)&&(A=this.model.getParent(A));var B=this.view.getState(A);null!=B&&null!=B.shape&&(this.view.invalidate(A),B.shape.bounds=null)}E.apply(this,arguments);p instanceof mxValueChange&&null!=p.cell&&null!=p.cell.value&&"object"==typeof p.cell.value&&this.invalidateDescendantsWithPlaceholders(p.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(p){p=
-this.model.getDescendants(p);if(0<p.length)for(var A=0;A<p.length;A++){var B=this.view.getState(p[A]);null!=B&&null!=B.shape&&null!=B.shape.stencil&&this.stencilHasPlaceholders(B.shape.stencil)?this.removeStateForCell(p[A]):this.isReplacePlaceholders(p[A])&&this.view.invalidate(p[A],!1,!1)}};Graph.prototype.replaceElement=function(p,A){A=p.ownerDocument.createElement(null!=A?A:"span");for(var B=Array.prototype.slice.call(p.attributes);attr=B.pop();)A.setAttribute(attr.nodeName,attr.nodeValue);A.innerHTML=
-p.innerHTML;p.parentNode.replaceChild(A,p)};Graph.prototype.processElements=function(p,A){if(null!=p){p=p.getElementsByTagName("*");for(var B=0;B<p.length;B++)null!=p[B]&&A(p[B])}};Graph.prototype.updateLabelElements=function(p,A,B){p=null!=p?p:this.getSelectionCells();for(var F=document.createElement("div"),N=0;N<p.length;N++){var R=this.getCurrentCellStyle(p[N]);if(null!=R&&"1"==R.html&&(R=this.convertValueToString(p[N]),null!=R&&0<R.length)){F.innerHTML=Graph.sanitizeHtml(R);for(var X=F.getElementsByTagName(null!=
-B?B:"*"),fa=0;fa<X.length;fa++)A(X[fa]);F.innerHTML!=R&&this.cellLabelChanged(p[N],F.innerHTML)}}};Graph.prototype.cellLabelChanged=function(p,A,B){A=Graph.zapGremlins(A);this.model.beginUpdate();try{if(null!=p.value&&"object"==typeof p.value){if(this.isReplacePlaceholders(p)&&null!=p.getAttribute("placeholder"))for(var F=p.getAttribute("placeholder"),N=p;null!=N;){if(N==this.model.getRoot()||null!=N.value&&"object"==typeof N.value&&N.hasAttribute(F)){this.setAttributeForCell(N,F,A);break}N=this.model.getParent(N)}var R=
-p.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&R.hasAttribute("label_"+Graph.diagramLanguage)?R.setAttribute("label_"+Graph.diagramLanguage,A):R.setAttribute("label",A);A=R}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(p){if(null!=p){for(var A=new mxDictionary,B=0;B<p.length;B++)A.put(p[B],!0);var F=[];for(B=0;B<p.length;B++){var N=this.model.getParent(p[B]);null==N||A.get(N)||(A.put(N,!0),
-F.push(N))}for(B=0;B<F.length;B++)if(N=this.view.getState(F[B]),null!=N&&(this.model.isEdge(N.cell)||this.model.isVertex(N.cell))&&this.isCellDeletable(N.cell)&&this.isTransparentState(N)){for(var R=!0,X=0;X<this.model.getChildCount(N.cell)&&R;X++)A.get(this.model.getChildAt(N.cell,X))||(R=!1);R&&p.push(N.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(p){for(var A=[],B=0;B<p.length;B++)this.isCellDeletable(p[B])&&this.isTransparentState(this.view.getState(p[B]))&&
-A.push(p[B]);p=A;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(p,A){this.setAttributeForCell(p,"link",A)};Graph.prototype.setTooltipForCell=function(p,A){var B="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(p.value)&&p.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(B="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(p,B,A)};Graph.prototype.getAttributeForCell=function(p,A,B){p=null!=p.value&&
-"object"===typeof p.value?p.value.getAttribute(A):null;return null!=p?p:B};Graph.prototype.setAttributeForCell=function(p,A,B){if(null!=p.value&&"object"==typeof p.value)var F=p.value.cloneNode(!0);else F=mxUtils.createXmlDocument().createElement("UserObject"),F.setAttribute("label",p.value||"");null!=B?F.setAttribute(A,B):F.removeAttribute(A);this.model.setValue(p,F)};Graph.prototype.isTargetShape=function(p,A,B){p=mxUtils.getValue(this.getCurrentCellStyle(p),mxConstants.STYLE_SHAPE,"");for(B=0;B<
-A.length;B++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[B]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,p))return!0}return!1};var D=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(p,A,B,F){if(mxEvent.isAltDown(A))return null;for(var N=0;N<p.length;N++){var R=this.model.getParent(p[N]);if(this.model.isEdge(R)&&0>mxUtils.indexOf(p,R))return null}R=D.apply(this,arguments);var X=!0;for(N=0;N<p.length&&X;N++)X=X&&this.isTableRow(p[N]);X&&(this.isTableCell(R)&&(R=
-this.model.getParent(R)),this.isTableRow(R)&&(R=this.model.getParent(R)),this.isTable(R)||(R=null));return R};Graph.prototype.click=function(p){mxGraph.prototype.click.call(this,p);this.firstClickState=p.getState();this.firstClickSource=p.getSource()};Graph.prototype.dblClick=function(p,A){this.isEnabled()&&(A=this.insertTextForEvent(p,A),mxGraph.prototype.dblClick.call(this,p,A))};Graph.prototype.insertTextForEvent=function(p,A){var B=mxUtils.convertPoint(this.container,mxEvent.getClientX(p),mxEvent.getClientY(p));
-if(null!=p&&!this.model.isVertex(A)){var F=this.model.isEdge(A)?this.view.getState(A):null,N=mxEvent.getSource(p);this.firstClickState!=F||this.firstClickSource!=N||null!=F&&null!=F.text&&null!=F.text.node&&null!=F.text.boundingBox&&(mxUtils.contains(F.text.boundingBox,B.x,B.y)||mxUtils.isAncestorNode(F.text.node,mxEvent.getSource(p)))||(null!=F||this.isCellLocked(this.getDefaultParent()))&&(null==F||this.isCellLocked(F.cell))||!(null!=F||mxClient.IS_SVG&&N==this.view.getCanvas().ownerSVGElement)||
-(null==F&&(F=this.view.getState(this.getCellAt(B.x,B.y))),A=this.addText(B.x,B.y,F))}return A};Graph.prototype.getInsertPoint=function(){var p=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,B=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),N=this.getPageSize();A=Math.max(A,F.x*N.width);B=Math.max(B,F.y*N.height)}return new mxPoint(this.snap(A+p),this.snap(B+p))};Graph.prototype.getFreeInsertPoint=
-function(){var p=this.view,A=this.getGraphBounds(),B=this.getInsertPoint(),F=this.snap(Math.round(Math.max(B.x,A.x/p.scale-p.translate.x+(0==A.width?2*this.gridSize:0))));p=this.snap(Math.round(Math.max(B.y,(A.y+A.height)/p.scale-p.translate.y+2*this.gridSize)));return new mxPoint(F,p)};Graph.prototype.getCenterInsertPoint=function(p){p=null!=p?p:new mxRectangle;return mxUtils.hasScrollbars(this.container)?new mxPoint(this.snap(Math.round((this.container.scrollLeft+this.container.clientWidth/2)/this.view.scale-
-this.view.translate.x-p.width/2)),this.snap(Math.round((this.container.scrollTop+this.container.clientHeight/2)/this.view.scale-this.view.translate.y-p.height/2))):new mxPoint(this.snap(Math.round(this.container.clientWidth/2/this.view.scale-this.view.translate.x-p.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-p.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.appendFontSize=function(p,A){p=null!=p?p:"";null!=
-A&&(0<p.length&&";"!=p.charAt(p.length-1)&&(p+=";"),p+="fontSize="+A+";");return p};Graph.prototype.addText=function(p,A,B){var F=new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=B&&this.model.isEdge(B.cell)){F.style="edgeLabel;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.edgeFontSize);F.geometry.relative=!0;F.connectable=!1;var N=this.view.getRelativePoint(B,p,A);F.geometry.x=Math.round(1E4*N.x)/1E4;F.geometry.y=Math.round(N.y);
-F.geometry.offset=new mxPoint(0,0);N=this.view.getPoint(B,F.geometry);var R=this.view.scale;F.geometry.offset=new mxPoint(Math.round((p-N.x)/R),Math.round((A-N.y)/R))}else N=this.view.translate,F.style="text;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.vertexFontSize),F.geometry.width=40,F.geometry.height=20,F.geometry.x=Math.round(p/this.view.scale)-N.x-(null!=B?B.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-N.y-(null!=B?B.origin.y:0),F.style+=
-"autosize=1;";this.getModel().beginUpdate();try{this.addCells([F],null!=B?B.cell:null),this.fireEvent(new mxEventObject("textInserted","cells",[F])),this.autoSizeCell(F)}finally{this.getModel().endUpdate()}return F};Graph.prototype.addClickHandler=function(p,A,B){var F=mxUtils.bind(this,function(){var da=this.container.getElementsByTagName("a");if(null!=da)for(var ha=0;ha<da.length;ha++){var wa=this.getAbsoluteUrl(da[ha].getAttribute("href"));null!=wa&&(da[ha].setAttribute("rel",this.linkRelation),
-da[ha].setAttribute("href",wa),null!=A&&mxEvent.addGestureListeners(da[ha],null,null,A))}});this.model.addListener(mxEvent.CHANGE,F);F();var N=this.container.style.cursor,R=this.getTolerance(),X=this,fa={currentState:null,currentLink:null,currentTarget:null,highlight:null!=p&&""!=p&&p!=mxConstants.NONE?new mxCellHighlight(X,p,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(da){var ha=da.sourceState;if(null==ha||null==X.getLinkForCell(ha.cell))da=X.getCellAt(da.getGraphX(),
-da.getGraphY(),null,null,null,function(wa,Ma,Na){return null==X.getLinkForCell(wa.cell)}),ha=null==ha||X.model.isAncestor(da,ha.cell)?X.view.getState(da):null;ha!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=ha,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(da,ha){this.startX=ha.getGraphX();this.startY=ha.getGraphY();this.scrollLeft=X.container.scrollLeft;this.scrollTop=X.container.scrollTop;null==this.currentLink&&"auto"==X.container.style.overflow&&
+Ka[mxUtils.mod(mxUtils.indexOf(Ka,Ua)+(A?-1:1),Ka.length)],[R])}F.push(R)}}}finally{B.endUpdate()}return F};Graph.prototype.stencilHasPlaceholders=function(q){if(null!=q&&null!=q.fgNode)for(q=q.fgNode.firstChild;null!=q;){if("text"==q.nodeName&&"1"==q.getAttribute("placeholders"))return!0;q=q.nextSibling}return!1};var E=Graph.prototype.processChange;Graph.prototype.processChange=function(q){if(q instanceof mxGeometryChange&&(this.isTableCell(q.cell)||this.isTableRow(q.cell))&&(null==q.previous&&null!=
+q.geometry||null!=q.previous&&!q.previous.equals(q.geometry))){var A=q.cell;this.isTableCell(A)&&(A=this.model.getParent(A));this.isTableRow(A)&&(A=this.model.getParent(A));var B=this.view.getState(A);null!=B&&null!=B.shape&&(this.view.invalidate(A),B.shape.bounds=null)}E.apply(this,arguments);q instanceof mxValueChange&&null!=q.cell&&null!=q.cell.value&&"object"==typeof q.cell.value&&this.invalidateDescendantsWithPlaceholders(q.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(q){q=
+this.model.getDescendants(q);if(0<q.length)for(var A=0;A<q.length;A++){var B=this.view.getState(q[A]);null!=B&&null!=B.shape&&null!=B.shape.stencil&&this.stencilHasPlaceholders(B.shape.stencil)?this.removeStateForCell(q[A]):this.isReplacePlaceholders(q[A])&&this.view.invalidate(q[A],!1,!1)}};Graph.prototype.replaceElement=function(q,A){A=q.ownerDocument.createElement(null!=A?A:"span");for(var B=Array.prototype.slice.call(q.attributes);attr=B.pop();)A.setAttribute(attr.nodeName,attr.nodeValue);A.innerHTML=
+q.innerHTML;q.parentNode.replaceChild(A,q)};Graph.prototype.processElements=function(q,A){if(null!=q){q=q.getElementsByTagName("*");for(var B=0;B<q.length;B++)null!=q[B]&&A(q[B])}};Graph.prototype.updateLabelElements=function(q,A,B){q=null!=q?q:this.getSelectionCells();for(var F=document.createElement("div"),N=0;N<q.length;N++){var R=this.getCurrentCellStyle(q[N]);if(null!=R&&"1"==R.html&&(R=this.convertValueToString(q[N]),null!=R&&0<R.length)){F.innerHTML=Graph.sanitizeHtml(R);for(var X=F.getElementsByTagName(null!=
+B?B:"*"),fa=0;fa<X.length;fa++)A(X[fa]);F.innerHTML!=R&&this.cellLabelChanged(q[N],F.innerHTML)}}};Graph.prototype.cellLabelChanged=function(q,A,B){A=Graph.zapGremlins(A);this.model.beginUpdate();try{if(null!=q.value&&"object"==typeof q.value){if(this.isReplacePlaceholders(q)&&null!=q.getAttribute("placeholder"))for(var F=q.getAttribute("placeholder"),N=q;null!=N;){if(N==this.model.getRoot()||null!=N.value&&"object"==typeof N.value&&N.hasAttribute(F)){this.setAttributeForCell(N,F,A);break}N=this.model.getParent(N)}var R=
+q.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&R.hasAttribute("label_"+Graph.diagramLanguage)?R.setAttribute("label_"+Graph.diagramLanguage,A):R.setAttribute("label",A);A=R}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(q){if(null!=q){for(var A=new mxDictionary,B=0;B<q.length;B++)A.put(q[B],!0);var F=[];for(B=0;B<q.length;B++){var N=this.model.getParent(q[B]);null==N||A.get(N)||(A.put(N,!0),
+F.push(N))}for(B=0;B<F.length;B++)if(N=this.view.getState(F[B]),null!=N&&(this.model.isEdge(N.cell)||this.model.isVertex(N.cell))&&this.isCellDeletable(N.cell)&&this.isTransparentState(N)){for(var R=!0,X=0;X<this.model.getChildCount(N.cell)&&R;X++)A.get(this.model.getChildAt(N.cell,X))||(R=!1);R&&q.push(N.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(q){for(var A=[],B=0;B<q.length;B++)this.isCellDeletable(q[B])&&this.isTransparentState(this.view.getState(q[B]))&&
+A.push(q[B]);q=A;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(q,A){this.setAttributeForCell(q,"link",A)};Graph.prototype.setTooltipForCell=function(q,A){var B="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(q.value)&&q.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(B="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(q,B,A)};Graph.prototype.getAttributeForCell=function(q,A,B){q=null!=q.value&&
+"object"===typeof q.value?q.value.getAttribute(A):null;return null!=q?q:B};Graph.prototype.setAttributeForCell=function(q,A,B){if(null!=q.value&&"object"==typeof q.value)var F=q.value.cloneNode(!0);else F=mxUtils.createXmlDocument().createElement("UserObject"),F.setAttribute("label",q.value||"");null!=B?F.setAttribute(A,B):F.removeAttribute(A);this.model.setValue(q,F)};Graph.prototype.isTargetShape=function(q,A,B){q=mxUtils.getValue(this.getCurrentCellStyle(q),mxConstants.STYLE_SHAPE,"");for(B=0;B<
+A.length;B++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[B]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,q))return!0}return!1};var D=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(q,A,B,F){if(mxEvent.isAltDown(A))return null;for(var N=0;N<q.length;N++){var R=this.model.getParent(q[N]);if(this.model.isEdge(R)&&0>mxUtils.indexOf(q,R))return null}R=D.apply(this,arguments);var X=!0;for(N=0;N<q.length&&X;N++)X=X&&this.isTableRow(q[N]);X&&(this.isTableCell(R)&&(R=
+this.model.getParent(R)),this.isTableRow(R)&&(R=this.model.getParent(R)),this.isTable(R)||(R=null));return R};Graph.prototype.click=function(q){mxGraph.prototype.click.call(this,q);this.firstClickState=q.getState();this.firstClickSource=q.getSource()};Graph.prototype.dblClick=function(q,A){this.isEnabled()&&(A=this.insertTextForEvent(q,A),mxGraph.prototype.dblClick.call(this,q,A))};Graph.prototype.insertTextForEvent=function(q,A){var B=mxUtils.convertPoint(this.container,mxEvent.getClientX(q),mxEvent.getClientY(q));
+if(null!=q&&!this.model.isVertex(A)){var F=this.model.isEdge(A)?this.view.getState(A):null,N=mxEvent.getSource(q);this.firstClickState!=F||this.firstClickSource!=N||null!=F&&null!=F.text&&null!=F.text.node&&null!=F.text.boundingBox&&(mxUtils.contains(F.text.boundingBox,B.x,B.y)||mxUtils.isAncestorNode(F.text.node,mxEvent.getSource(q)))||(null!=F||this.isCellLocked(this.getDefaultParent()))&&(null==F||this.isCellLocked(F.cell))||!(null!=F||mxClient.IS_SVG&&N==this.view.getCanvas().ownerSVGElement)||
+(null==F&&(F=this.view.getState(this.getCellAt(B.x,B.y))),A=this.addText(B.x,B.y,F))}return A};Graph.prototype.getInsertPoint=function(){var q=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,B=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),N=this.getPageSize();A=Math.max(A,F.x*N.width);B=Math.max(B,F.y*N.height)}return new mxPoint(this.snap(A+q),this.snap(B+q))};Graph.prototype.getFreeInsertPoint=
+function(){var q=this.view,A=this.getGraphBounds(),B=this.getInsertPoint(),F=this.snap(Math.round(Math.max(B.x,A.x/q.scale-q.translate.x+(0==A.width?2*this.gridSize:0))));q=this.snap(Math.round(Math.max(B.y,(A.y+A.height)/q.scale-q.translate.y+2*this.gridSize)));return new mxPoint(F,q)};Graph.prototype.getCenterInsertPoint=function(q){q=null!=q?q:new mxRectangle;return mxUtils.hasScrollbars(this.container)?new mxPoint(this.snap(Math.round((this.container.scrollLeft+this.container.clientWidth/2)/this.view.scale-
+this.view.translate.x-q.width/2)),this.snap(Math.round((this.container.scrollTop+this.container.clientHeight/2)/this.view.scale-this.view.translate.y-q.height/2))):new mxPoint(this.snap(Math.round(this.container.clientWidth/2/this.view.scale-this.view.translate.x-q.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-q.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.appendFontSize=function(q,A){q=null!=q?q:"";null!=
+A&&(0<q.length&&";"!=q.charAt(q.length-1)&&(q+=";"),q+="fontSize="+A+";");return q};Graph.prototype.addText=function(q,A,B){var F=new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=B&&this.model.isEdge(B.cell)){F.style="edgeLabel;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.edgeFontSize);F.geometry.relative=!0;F.connectable=!1;var N=this.view.getRelativePoint(B,q,A);F.geometry.x=Math.round(1E4*N.x)/1E4;F.geometry.y=Math.round(N.y);
+F.geometry.offset=new mxPoint(0,0);N=this.view.getPoint(B,F.geometry);var R=this.view.scale;F.geometry.offset=new mxPoint(Math.round((q-N.x)/R),Math.round((A-N.y)/R))}else N=this.view.translate,F.style="text;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.vertexFontSize),F.geometry.width=40,F.geometry.height=20,F.geometry.x=Math.round(q/this.view.scale)-N.x-(null!=B?B.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-N.y-(null!=B?B.origin.y:0),F.style+=
+"autosize=1;";this.getModel().beginUpdate();try{this.addCells([F],null!=B?B.cell:null),this.fireEvent(new mxEventObject("textInserted","cells",[F])),this.autoSizeCell(F)}finally{this.getModel().endUpdate()}return F};Graph.prototype.addClickHandler=function(q,A,B){var F=mxUtils.bind(this,function(){var da=this.container.getElementsByTagName("a");if(null!=da)for(var ha=0;ha<da.length;ha++){var va=this.getAbsoluteUrl(da[ha].getAttribute("href"));null!=va&&(da[ha].setAttribute("rel",this.linkRelation),
+da[ha].setAttribute("href",va),null!=A&&mxEvent.addGestureListeners(da[ha],null,null,A))}});this.model.addListener(mxEvent.CHANGE,F);F();var N=this.container.style.cursor,R=this.getTolerance(),X=this,fa={currentState:null,currentLink:null,currentTarget:null,highlight:null!=q&&""!=q&&q!=mxConstants.NONE?new mxCellHighlight(X,q,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(da){var ha=da.sourceState;if(null==ha||null==X.getLinkForCell(ha.cell))da=X.getCellAt(da.getGraphX(),
+da.getGraphY(),null,null,null,function(va,Ma,Na){return null==X.getLinkForCell(va.cell)}),ha=null==ha||X.model.isAncestor(da,ha.cell)?X.view.getState(da):null;ha!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=ha,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(da,ha){this.startX=ha.getGraphX();this.startY=ha.getGraphY();this.scrollLeft=X.container.scrollLeft;this.scrollTop=X.container.scrollTop;null==this.currentLink&&"auto"==X.container.style.overflow&&
(X.container.style.cursor="move");this.updateCurrentState(ha)},mouseMove:function(da,ha){if(X.isMouseDown)null!=this.currentLink&&(da=Math.abs(this.startX-ha.getGraphX()),ha=Math.abs(this.startY-ha.getGraphY()),(da>R||ha>R)&&this.clear());else{for(da=ha.getSource();null!=da&&"a"!=da.nodeName.toLowerCase();)da=da.parentNode;null!=da?this.clear():(null!=X.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&X.tooltipHandler.reset(ha,!0,this.currentState),(null==this.currentState||ha.getState()!=
-this.currentState&&null!=ha.sourceState||!X.intersects(this.currentState,ha.getGraphX(),ha.getGraphY()))&&this.updateCurrentState(ha))}},mouseUp:function(da,ha){var wa=ha.getSource();for(da=ha.getEvent();null!=wa&&"a"!=wa.nodeName.toLowerCase();)wa=wa.parentNode;null==wa&&Math.abs(this.scrollLeft-X.container.scrollLeft)<R&&Math.abs(this.scrollTop-X.container.scrollTop)<R&&(null==ha.sourceState||!ha.isSource(ha.sourceState.control))&&((mxEvent.isLeftMouseButton(da)||mxEvent.isMiddleMouseButton(da))&&
-!mxEvent.isPopupTrigger(da)||mxEvent.isTouchEvent(da))&&(null!=this.currentLink?(wa=X.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,5)&&wa||null==A||A(da,this.currentLink,null!=this.currentState?this.currentState.cell:null),mxEvent.isConsumed(da)||(da=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(da)?"_blank":wa?X.linkTarget:"_top",X.openLink(this.currentLink,da),ha.consume())):null!=B&&!ha.isConsumed()&&Math.abs(this.scrollLeft-X.container.scrollLeft)<
+this.currentState&&null!=ha.sourceState||!X.intersects(this.currentState,ha.getGraphX(),ha.getGraphY()))&&this.updateCurrentState(ha))}},mouseUp:function(da,ha){var va=ha.getSource();for(da=ha.getEvent();null!=va&&"a"!=va.nodeName.toLowerCase();)va=va.parentNode;null==va&&Math.abs(this.scrollLeft-X.container.scrollLeft)<R&&Math.abs(this.scrollTop-X.container.scrollTop)<R&&(null==ha.sourceState||!ha.isSource(ha.sourceState.control))&&((mxEvent.isLeftMouseButton(da)||mxEvent.isMiddleMouseButton(da))&&
+!mxEvent.isPopupTrigger(da)||mxEvent.isTouchEvent(da))&&(null!=this.currentLink?(va=X.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,5)&&va||null==A||A(da,this.currentLink,null!=this.currentState?this.currentState.cell:null),mxEvent.isConsumed(da)||(da=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(da)?"_blank":va?X.linkTarget:"_top",X.openLink(this.currentLink,da),ha.consume())):null!=B&&!ha.isConsumed()&&Math.abs(this.scrollLeft-X.container.scrollLeft)<
R&&Math.abs(this.scrollTop-X.container.scrollTop)<R&&Math.abs(this.startX-ha.getGraphX())<R&&Math.abs(this.startY-ha.getGraphY())<R&&B(ha.getEvent()));this.clear()},activate:function(da){this.currentLink=X.getAbsoluteUrl(X.getLinkForCell(da.cell));null!=this.currentLink&&(this.currentTarget=X.getLinkTargetForCell(da.cell),X.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(da))},clear:function(){null!=X.container&&(X.container.style.cursor=N);this.currentLink=this.currentState=
-this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=X.tooltipHandler&&X.tooltipHandler.hide()}};X.click=function(da){};X.addMouseListener(fa);mxEvent.addListener(document,"mouseleave",function(da){fa.clear()})};Graph.prototype.duplicateCells=function(p,A){p=null!=p?p:this.getSelectionCells();A=null!=A?A:!0;for(var B=0;B<p.length;B++)this.isTableCell(p[B])&&(p[B]=this.model.getParent(p[B]));p=this.model.getTopmostCells(p);var F=this.getModel(),N=this.gridSize,R=[];F.beginUpdate();
-try{var X={},fa=this.createCellLookup(p),da=this.cloneCells(p,!1,X,!0);for(B=0;B<p.length;B++){var ha=F.getParent(p[B]);if(null!=ha){var wa=this.moveCells([da[B]],N,N,!1)[0];R.push(wa);if(A)F.add(ha,da[B]);else{var Ma=ha.getIndex(p[B]);F.add(ha,da[B],Ma+1)}if(this.isTable(ha)){var Na=this.getCellGeometry(da[B]),ya=this.getCellGeometry(ha);null!=Na&&null!=ya&&(ya=ya.clone(),ya.height+=Na.height,F.setGeometry(ha,ya))}}else R.push(da[B])}this.updateCustomLinks(this.createCellMapping(X,fa),da,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,
-"cells",da))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(p,A,B){if(null!=p&&null!=this.cellEditor.textarea){for(var F=this.cellEditor.textarea.getElementsByTagName("img"),N=[],R=0;R<F.length;R++)N.push(F[R]);document.execCommand("insertimage",!1,p);p=this.cellEditor.textarea.getElementsByTagName("img");if(p.length==N.length+1)for(R=p.length-1;0<=R;R--)if(0==R||p[R]!=N[R-1]){p[R].setAttribute("width",A);p[R].setAttribute("height",B);break}}};Graph.prototype.insertLink=function(p){if(null!=
-this.cellEditor.textarea)if(0==p.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var A=this.cellEditor.textarea.getElementsByTagName("a"),B=[],F=0;F<A.length;F++)B.push(A[F]);document.execCommand("createlink",!1,mxUtils.trim(p));A=this.cellEditor.textarea.getElementsByTagName("a");if(A.length==B.length+1)for(F=A.length-1;0<=F;F--)if(A[F]!=B[F-1]){for(A=A[F].getElementsByTagName("a");0<A.length;){for(B=A[0].parentNode;null!=A[0].firstChild;)B.insertBefore(A[0].firstChild,A[0]);
-B.removeChild(A[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(p))};Graph.prototype.isCellResizable=function(p){var A=mxGraph.prototype.isCellResizable.apply(this,arguments),B=this.getCurrentCellStyle(p);return!this.isTableCell(p)&&!this.isTableRow(p)&&(A||"0"!=mxUtils.getValue(B,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==B[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(p,A,B){null==A&&(A=this.getSelectionCells());if(null!=A&&1<A.length){for(var F=[],N=
-null,R=null,X=0,fa=0;fa<A.length;fa++)if(this.getModel().isVertex(A[fa])){var da=this.view.getState(A[fa]);if(null!=da){var ha=p?da.getCenterX():da.getCenterY();N=null!=N?Math.max(N,ha):ha;R=null!=R?Math.min(R,ha):ha;B&&(X+=p?da.width:da.height);F.push(da)}}if(2<F.length){F.sort(function(za,va){return p?za.x-va.x:za.y-va.y});B&&(X-=p?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);da=this.view.translate;ha=this.view.scale;R=R/ha-(p?da.x:da.y);N=N/ha-(p?da.x:da.y);this.getModel().beginUpdate();
-try{var wa=(N-R-X)/(F.length-1),Ma=R+(B?p?F[0].width/2:F[0].height/2:0);for(fa=1;fa<F.length-1;fa++){var Na=this.view.getState(this.model.getParent(F[fa].cell)),ya=this.getCellGeometry(F[fa].cell);Ma+=wa;null!=ya&&null!=Na&&(ya=ya.clone(),p?ya.x=Math.round(Ma-(B?0:ya.width/2))-Na.origin.x:ya.y=Math.round(Ma-(B?0:ya.height/2))-Na.origin.y,this.getModel().setGeometry(F[fa].cell,ya));B&&(Ma+=p?F[fa].width:F[fa].height)}}finally{this.getModel().endUpdate()}}}return A};Graph.prototype.isCloneEvent=function(p){return mxClient.IS_MAC&&
-mxEvent.isMetaDown(p)||mxEvent.isControlDown(p)};Graph.prototype.createSvgImageExport=function(p){p=new mxImageExport;p.addCellData=function(B,F,N){F.setAttribute("data-cell-id",B.id);if(N)if(mxUtils.isNode(B.value))for(N=0;N<B.value.attributes.length;N++){var R=B.value.attributes[N];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof B.value)for(R in B.value)F.setAttribute("data-cell-"+R,B.value[R]);else null!=B.value&&F.setAttribute("data-cell-value",B.value);return F};var A=p.visitStatesRecursive;
-p.visitStatesRecursive=function(B,F,N){if(null!=B){var R=F.root,X=F.root.ownerDocument;F.root=this.addCellData(B.cell,null!=X.createElementNS?X.createElementNS(mxConstants.NS_SVG,"g"):X.createElement("g"),Editor.addSvgMetadata);R.appendChild(F.root);A.apply(this,arguments);F.root=R}};p.getLinkForCellState=mxUtils.bind(this,function(B,F){return this.getLinkForCell(B.cell)});p.getTitleForCellState=mxUtils.bind(this,function(B,F){return Editor.convertHtmlToText(this.convertValueToTooltip(B.cell))});
-return p};Graph.prototype.parseBackgroundImage=function(p){var A=null;null!=p&&0<p.length&&(p=JSON.parse(p),A=new mxImage(p.src,p.width,p.height));return A};Graph.prototype.getBackgroundImageObject=function(p){return p};Graph.prototype.getSvg=function(p,A,B,F,N,R,X,fa,da,ha,wa,Ma,Na,ya,za,va){var ua=null;if(null!=ya)for(ua=new mxDictionary,wa=0;wa<ya.length;wa++)ua.put(ya[wa],!0);ya=this.useCssTransforms;var Va=this.enableFlowAnimation;this.enableFlowAnimation=!1;ya&&(this.useCssTransforms=!1,this.view.revalidate(),
+this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=X.tooltipHandler&&X.tooltipHandler.hide()}};X.click=function(da){};X.addMouseListener(fa);mxEvent.addListener(document,"mouseleave",function(da){fa.clear()})};Graph.prototype.duplicateCells=function(q,A){q=null!=q?q:this.getSelectionCells();A=null!=A?A:!0;for(var B=0;B<q.length;B++)this.isTableCell(q[B])&&(q[B]=this.model.getParent(q[B]));q=this.model.getTopmostCells(q);var F=this.getModel(),N=this.gridSize,R=[];F.beginUpdate();
+try{var X={},fa=this.createCellLookup(q),da=this.cloneCells(q,!1,X,!0);for(B=0;B<q.length;B++){var ha=F.getParent(q[B]);if(null!=ha){var va=this.moveCells([da[B]],N,N,!1)[0];R.push(va);if(A)F.add(ha,da[B]);else{var Ma=ha.getIndex(q[B]);F.add(ha,da[B],Ma+1)}if(this.isTable(ha)){var Na=this.getCellGeometry(da[B]),ya=this.getCellGeometry(ha);null!=Na&&null!=ya&&(ya=ya.clone(),ya.height+=Na.height,F.setGeometry(ha,ya))}}else R.push(da[B])}this.updateCustomLinks(this.createCellMapping(X,fa),da,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,
+"cells",da))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(q,A,B){if(null!=q&&null!=this.cellEditor.textarea){for(var F=this.cellEditor.textarea.getElementsByTagName("img"),N=[],R=0;R<F.length;R++)N.push(F[R]);document.execCommand("insertimage",!1,q);q=this.cellEditor.textarea.getElementsByTagName("img");if(q.length==N.length+1)for(R=q.length-1;0<=R;R--)if(0==R||q[R]!=N[R-1]){q[R].setAttribute("width",A);q[R].setAttribute("height",B);break}}};Graph.prototype.insertLink=function(q){if(null!=
+this.cellEditor.textarea)if(0==q.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var A=this.cellEditor.textarea.getElementsByTagName("a"),B=[],F=0;F<A.length;F++)B.push(A[F]);document.execCommand("createlink",!1,mxUtils.trim(q));A=this.cellEditor.textarea.getElementsByTagName("a");if(A.length==B.length+1)for(F=A.length-1;0<=F;F--)if(A[F]!=B[F-1]){for(A=A[F].getElementsByTagName("a");0<A.length;){for(B=A[0].parentNode;null!=A[0].firstChild;)B.insertBefore(A[0].firstChild,A[0]);
+B.removeChild(A[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(q))};Graph.prototype.isCellResizable=function(q){var A=mxGraph.prototype.isCellResizable.apply(this,arguments),B=this.getCurrentCellStyle(q);return!this.isTableCell(q)&&!this.isTableRow(q)&&(A||"0"!=mxUtils.getValue(B,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==B[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(q,A,B){null==A&&(A=this.getSelectionCells());if(null!=A&&1<A.length){for(var F=[],N=
+null,R=null,X=0,fa=0;fa<A.length;fa++)if(this.getModel().isVertex(A[fa])){var da=this.view.getState(A[fa]);if(null!=da){var ha=q?da.getCenterX():da.getCenterY();N=null!=N?Math.max(N,ha):ha;R=null!=R?Math.min(R,ha):ha;B&&(X+=q?da.width:da.height);F.push(da)}}if(2<F.length){F.sort(function(Ga,wa){return q?Ga.x-wa.x:Ga.y-wa.y});B&&(X-=q?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);da=this.view.translate;ha=this.view.scale;R=R/ha-(q?da.x:da.y);N=N/ha-(q?da.x:da.y);this.getModel().beginUpdate();
+try{var va=(N-R-X)/(F.length-1),Ma=R+(B?q?F[0].width/2:F[0].height/2:0);for(fa=1;fa<F.length-1;fa++){var Na=this.view.getState(this.model.getParent(F[fa].cell)),ya=this.getCellGeometry(F[fa].cell);Ma+=va;null!=ya&&null!=Na&&(ya=ya.clone(),q?ya.x=Math.round(Ma-(B?0:ya.width/2))-Na.origin.x:ya.y=Math.round(Ma-(B?0:ya.height/2))-Na.origin.y,this.getModel().setGeometry(F[fa].cell,ya));B&&(Ma+=q?F[fa].width:F[fa].height)}}finally{this.getModel().endUpdate()}}}return A};Graph.prototype.isCloneEvent=function(q){return mxClient.IS_MAC&&
+mxEvent.isMetaDown(q)||mxEvent.isControlDown(q)};Graph.prototype.createSvgImageExport=function(q){q=new mxImageExport;q.addCellData=function(B,F,N){F.setAttribute("data-cell-id",B.id);if(N)if(mxUtils.isNode(B.value))for(N=0;N<B.value.attributes.length;N++){var R=B.value.attributes[N];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof B.value)for(R in B.value)F.setAttribute("data-cell-"+R,B.value[R]);else null!=B.value&&F.setAttribute("data-cell-value",B.value);return F};var A=q.visitStatesRecursive;
+q.visitStatesRecursive=function(B,F,N){if(null!=B){var R=F.root,X=F.root.ownerDocument;F.root=this.addCellData(B.cell,null!=X.createElementNS?X.createElementNS(mxConstants.NS_SVG,"g"):X.createElement("g"),Editor.addSvgMetadata);R.appendChild(F.root);A.apply(this,arguments);F.root=R}};q.getLinkForCellState=mxUtils.bind(this,function(B,F){return this.getLinkForCell(B.cell)});q.getTitleForCellState=mxUtils.bind(this,function(B,F){return Editor.convertHtmlToText(this.convertValueToTooltip(B.cell))});
+return q};Graph.prototype.parseBackgroundImage=function(q){var A=null;null!=q&&0<q.length&&(q=JSON.parse(q),A=new mxImage(q.src,q.width,q.height));return A};Graph.prototype.getBackgroundImageObject=function(q){return q};Graph.prototype.getSvg=function(q,A,B,F,N,R,X,fa,da,ha,va,Ma,Na,ya,Ga,wa){var ua=null;if(null!=ya)for(ua=new mxDictionary,va=0;va<ya.length;va++)ua.put(ya[va],!0);ya=this.useCssTransforms;var Va=this.enableFlowAnimation;this.enableFlowAnimation=!1;ya&&(this.useCssTransforms=!1,this.view.revalidate(),
this.sizeDidChange());try{A=null!=A?A:1;B=null!=B?B:0;N=null!=N?N:!0;R=null!=R?R:!0;X=null!=X?X:!0;ha=null!=ha?ha:!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)+(ha&&0==B?5:0),ub=Math.max(1,Math.ceil(Qa.height*F)+2*B)+(ha&&0==B?5:0);ha=N?-.5:0;var vb=mxUtils.getLightDarkColor(p),jb=Graph.createSvgNode(ha,ha,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",
+Wa)));if(null==Qa)throw Error(mxResources.get("drawingEmpty"));F=A/Wa;var mb=Math.max(1,Math.ceil(Qa.width*F)+2*B)+(ha&&0==B?5:0),ub=Math.max(1,Math.ceil(Qa.height*F)+2*B)+(ha&&0==B?5:0);ha=N?-.5:0;var vb=mxUtils.getLightDarkColor(q),jb=Graph.createSvgNode(ha,ha,mb,ub,vb),nb=jb.ownerDocument;if(null!=q){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=N?-.5:0;bb.textOffset=N?-.5:0;bb.imageOffset=N?-.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),J=[],y=0,ba=0;(0==x||y<x)&&ba<Za.length;){var S=Za.charCodeAt(ba);if(10==S||13==S){if(0<y)break}else J.push(Za.charAt(ba)),255>S&&y++;ba++}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,ha=new mxRectangle((Ka.x+
-Ua.x)*p,(Ka.y+Ua.y)*p,Ka.width*p,Ka.height*p),mxUtils.intersects(Qa,ha)&&bb.image(Ka.x+Ua.x,Ka.y+Ua.y,Ka.width,Ka.height,Ka.src,!0));bb.scale(F);bb.textEnabled=X;fa=null!=fa?fa:this.createSvgImageExport();var tb=fa.getLinkForCellState;fa.getLinkForCellState=function(Sa,sb){var $a=Sa.view.graph.getAbsoluteUrl(tb.apply(this,arguments));return null==$a||Sa.view.graph.isCustomLink($a)?null:$a};fa.getLinkTargetForCellState=function(Sa,sb){return Sa.view.graph.getLinkTargetForCell(Sa.cell)};var yb=fa.drawCellState,
+Za=Za.innerText:(wb.innerHTML=Za,Za=mxUtils.extractTextWithWhitespace(wb.childNodes));for(var w=Math.ceil(2*kb/this.state.fontSize),J=[],y=0,ba=0;(0==w||y<w)&&ba<Za.length;){var S=Za.charCodeAt(ba);if(10==S||13==S){if(0<y)break}else J.push(Za.charAt(ba)),255>S&&y++;ba++}J.length<Za.length&&1<Za.length-J.length&&(Za=mxUtils.trim(J.join(""))+"...");return Za}catch(Ea){return rb.apply(this,arguments)}else return rb.apply(this,arguments)};null!=Ka&&null!=Ka.width&&null!=Ka.height&&(q=Wa/A,ha=new mxRectangle((Ka.x+
+Ua.x)*q,(Ka.y+Ua.y)*q,Ka.width*q,Ka.height*q),mxUtils.intersects(Qa,ha)&&bb.image(Ka.x+Ua.x,Ka.y+Ua.y,Ka.width,Ka.height,Ka.src,!0));bb.scale(F);bb.textEnabled=X;fa=null!=fa?fa:this.createSvgImageExport();var tb=fa.getLinkForCellState;fa.getLinkForCellState=function(Sa,sb){var $a=Sa.view.graph.getAbsoluteUrl(tb.apply(this,arguments));return null==$a||Sa.view.graph.isCustomLink($a)?null:$a};fa.getLinkTargetForCellState=function(Sa,sb){return Sa.view.graph.getLinkTargetForCell(Sa.cell)};var yb=fa.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});fa.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,
-sb)}finally{Sa.shape.isFlowAnimationEnabled=Za,Sa.shape.addFlowAnimationToShape=xb}};var Ta=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;fa.drawState(this.getView().getState(Ta),bb);this.addForeignObjectWarning(bb,jb);va?this.disableSvgLinks(jb):this.updateSvgLinks(jb,da,!0);return jb}finally{this.enableFlowAnimation=Va,ya&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(p,A){if("0"!=urlParams["svg-warning"]&&
-0<A.getElementsByTagName("foreignObject").length){var B=p.createElement("switch"),F=p.createElement("g");F.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var N=p.createElement("a");N.setAttribute("transform","translate(0,-5)");null==N.setAttributeNS||A.ownerDocument!=document&&null==document.documentMode?(N.setAttribute("xlink:href",Graph.foreignObjectWarningLink),N.setAttribute("target","_blank")):(N.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),
-N.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));p=p.createElement("text");p.setAttribute("text-anchor","middle");p.setAttribute("font-size","10px");p.setAttribute("x","50%");p.setAttribute("y","100%");mxUtils.write(p,Graph.foreignObjectWarningText);B.appendChild(F);N.appendChild(p);B.appendChild(N);A.appendChild(B)}};Graph.prototype.disableSvgLinks=function(p,A){p=p.getElementsByTagName("a");for(var B=0;B<p.length;B++){var F=p[B].getAttribute("href");null==F&&(F=p[B].getAttribute("xlink:href"));
-null!=F&&(p[B].style.pointerEvents="none",p[B].setAttribute("href",""));A&&A(p[B])}};Graph.prototype.updateSvgLinks=function(p,A,B){p=p.getElementsByTagName("a");for(var F=0;F<p.length;F++)if(null==p[F].getAttribute("target")){var N=p[F].getAttribute("href");null==N&&(N=p[F].getAttribute("xlink:href"));null!=N&&(null!=A&&/^https?:\/\//.test(N)?p[F].setAttribute("target",A):B&&this.isCustomLink(N)&&p[F].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(p){p=new mxSvgCanvas2D(p);
-p.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;p.adaptiveColors=this.getAdaptiveColors();p.pointerEvents=!0;return p};Graph.prototype.getSelectedElement=function(){var p=null;if(window.getSelection){var A=window.getSelection();A.getRangeAt&&A.rangeCount&&(p=A.getRangeAt(0).commonAncestorContainer)}else document.selection&&(p=document.selection.createRange().parentElement());return p};Graph.prototype.getSelectedEditingElement=function(){var p=null;if(null!=this.cellEditor.textarea)for(p=this.getSelectedElement();null!=
-p&&p.nodeType!=mxConstants.NODETYPE_ELEMENT;)p=p.parentNode;return p};Graph.prototype.getParentByName=function(p,A,B){for(;null!=p&&p.nodeName!=A;){if(p==B)return null;p=p.parentNode}return p};Graph.prototype.getParentByNames=function(p,A,B){for(;null!=p&&!(0<=mxUtils.indexOf(A,p.nodeName));){if(p==B)return null;p=p.parentNode}return p};Graph.prototype.selectNode=function(p){var A=null;if(window.getSelection){if(A=window.getSelection(),A.getRangeAt&&A.rangeCount){var B=document.createRange();B.selectNode(p);
-A.removeAllRanges();A.addRange(B)}}else(A=document.selection)&&"Control"!=A.type&&(p=A.createRange(),p.collapse(!0),B=A.createRange(),B.setEndPoint("StartToStart",p),B.select())};Graph.prototype.flipEdgePoints=function(p,A,B){var F=this.getCellGeometry(p);if(null!=F){F=F.clone();if(null!=F.points)for(var N=0;N<F.points.length;N++)A?F.points[N].x=B+(B-F.points[N].x):F.points[N].y=B+(B-F.points[N].y);N=function(R){null!=R&&(A?R.x=B+(B-R.x):R.y=B+(B-R.y))};N(F.getTerminalPoint(!0));N(F.getTerminalPoint(!1));
-this.model.setGeometry(p,F)}};Graph.prototype.flipChildren=function(p,A,B){this.model.beginUpdate();try{for(var F=this.model.getChildCount(p),N=0;N<F;N++){var R=this.model.getChildAt(p,N);if(this.model.isEdge(R))this.flipEdgePoints(R,A,B);else{var X=this.getCellGeometry(R);null!=X&&(X=X.clone(),A?X.x=B+(B-X.x-X.width):X.y=B+(B-X.y-X.height),this.model.setGeometry(R,X))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(p,A){this.model.beginUpdate();try{p=this.model.getTopmostCells(p);
-for(var B=[],F=0;F<p.length;F++)if(this.model.isEdge(p[F])){var N=this.view.getState(p[F]);null!=N&&this.flipEdgePoints(p[F],A,(A?N.getCenterX():N.getCenterY())/this.view.scale-(A?N.origin.x:N.origin.y)-(A?this.view.translate.x:this.view.translate.y))}else{var R=this.getCellGeometry(p[F]);null!=R&&this.flipChildren(p[F],A,A?R.getCenterX()-R.x:R.getCenterY()-R.y);B.push(p[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,B)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=
-function(p,A){var B=null;if(null!=p&&0<p.length){this.model.beginUpdate();try{for(var F=0;F<p.length;F++){var N=this.model.getParent(p[F]);if(this.isTable(N)){var R=this.getCellGeometry(p[F]),X=this.getCellGeometry(N);null!=R&&null!=X&&(X=X.clone(),X.height-=R.height,this.model.setGeometry(N,X))}}var fa=this.selectParentAfterDelete?this.model.getParents(p):null;this.removeCells(p,A)}finally{this.model.endUpdate()}if(null!=fa)for(B=[],F=0;F<fa.length;F++)this.model.contains(fa[F])&&(this.model.isVertex(fa[F])||
-this.model.isEdge(fa[F]))&&B.push(fa[F])}return B};Graph.prototype.insertTableColumn=function(p,A){var B=this.getModel();B.beginUpdate();try{var F=p,N=0;if(this.isTableCell(p)){var R=B.getParent(p);F=B.getParent(R);N=mxUtils.indexOf(B.getChildCells(R,!0),p)}else this.isTableRow(p)?F=B.getParent(p):p=B.getChildCells(F,!0)[0],A||(N=B.getChildCells(p,!0).length-1);var X=B.getChildCells(F,!0),fa=Graph.minTableColumnWidth;for(p=0;p<X.length;p++){var da=B.getChildCells(X[p],!0)[N],ha=B.cloneCell(da,!1);
-null==ha&&(ha=this.createVertex());var wa=this.getCellGeometry(ha);ha.value=null;ha.style=mxUtils.setStyle(mxUtils.setStyle(ha.style,"rowspan",null),"colspan",null);if(null!=wa){null!=wa.alternateBounds&&(wa.width=wa.alternateBounds.width,wa.height=wa.alternateBounds.height,wa.alternateBounds=null);fa=wa.width;var Ma=this.getCellGeometry(X[p]);null!=Ma&&(wa.height=Ma.height)}B.add(X[p],ha,N+(A?0:1))}var Na=this.getCellGeometry(F);null!=Na&&(Na=Na.clone(),Na.width+=fa,B.setGeometry(F,Na))}finally{B.endUpdate()}};
-Graph.prototype.deleteLane=function(p){var A=this.getModel();A.beginUpdate();try{var B=null;B="stackLayout"==this.getCurrentCellStyle(p).childLayout?p:A.getParent(p);var F=A.getChildCells(B,!0);0==F.length?A.remove(B):(B==p&&(p=F[F.length-1]),A.remove(p))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(p,A){var B=this.getModel();B.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(p).childLayout){F=p;var N=B.getChildCells(F,!0);p=N[A?0:N.length-1]}else F=B.getParent(p);
-var R=F.getIndex(p);p=B.cloneCell(p,!1);p.value=null;B.add(F,p,R+(A?0:1))}finally{B.endUpdate()}};Graph.prototype.insertTableRow=function(p,A){var B=this.getModel();B.beginUpdate();try{var F=p,N=p;if(this.isTableCell(p))N=B.getParent(p),F=B.getParent(N);else if(this.isTableRow(p))F=B.getParent(p);else{var R=B.getChildCells(F,!0);N=R[A?0:R.length-1]}var X=B.getChildCells(N,!0),fa=F.getIndex(N);N=B.cloneCell(N,!1);N.value=null;var da=this.getCellGeometry(N);if(null!=da){for(R=0;R<X.length;R++){p=B.cloneCell(X[R],
-!1);p.value=null;p.style=mxUtils.setStyle(mxUtils.setStyle(p.style,"rowspan",null),"colspan",null);var ha=this.getCellGeometry(p);null!=ha&&(null!=ha.alternateBounds&&(ha.width=ha.alternateBounds.width,ha.height=ha.alternateBounds.height,ha.alternateBounds=null),ha.height=da.height);N.insert(p)}B.add(F,N,fa+(A?0:1));var wa=this.getCellGeometry(F);null!=wa&&(wa=wa.clone(),wa.height+=da.height,B.setGeometry(F,wa))}}finally{B.endUpdate()}};Graph.prototype.deleteTableColumn=function(p){var A=this.getModel();
-A.beginUpdate();try{var B=p,F=p;this.isTableCell(p)&&(F=A.getParent(p));this.isTableRow(F)&&(B=A.getParent(F));var N=A.getChildCells(B,!0);if(0==N.length)A.remove(B);else{this.isTableRow(F)||(F=N[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(B);else{var X=R.length-1;this.isTableCell(p)&&(X=mxUtils.indexOf(R,p));for(F=p=0;F<N.length;F++){var fa=A.getChildCells(N[F],!0)[X];A.remove(fa);var da=this.getCellGeometry(fa);null!=da&&(p=Math.max(p,da.width))}var ha=this.getCellGeometry(B);null!=
-ha&&(ha=ha.clone(),ha.width-=p,A.setGeometry(B,ha))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=function(p){var A=this.getModel();A.beginUpdate();try{var B=p,F=p;this.isTableCell(p)&&(p=F=A.getParent(p));this.isTableRow(p)&&(B=A.getParent(F));var N=A.getChildCells(B,!0);if(1>=N.length)A.remove(B);else{this.isTableRow(F)||(F=N[N.length-1]);A.remove(F);p=0;var R=this.getCellGeometry(F);null!=R&&(p=R.height);var X=this.getCellGeometry(B);null!=X&&(X=X.clone(),X.height-=p,A.setGeometry(B,
-X))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(p,A){for(var B=p.tBodies[0],F=B.rows[0].cells,N=p=0;N<F.length;N++){var R=F[N].getAttribute("colspan");p+=null!=R?parseInt(R):1}A=B.insertRow(A);for(N=0;N<p;N++)mxUtils.br(A.insertCell(-1));return A.cells[0]};Graph.prototype.deleteRow=function(p,A){p.tBodies[0].deleteRow(A)};Graph.prototype.insertColumn=function(p,A){var B=p.tHead;if(null!=B)for(var F=0;F<B.rows.length;F++){var N=document.createElement("th");B.rows[F].appendChild(N);
-mxUtils.br(N)}p=p.tBodies[0];for(B=0;B<p.rows.length;B++)F=p.rows[B].insertCell(A),mxUtils.br(F);return p.rows[0].cells[0<=A?A:p.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(p,A){if(0<=A){p=p.tBodies[0].rows;for(var B=0;B<p.length;B++)p[B].cells.length>A&&p[B].deleteCell(A)}};Graph.prototype.pasteHtmlAtCaret=function(p){if(window.getSelection){var A=window.getSelection();if(A.getRangeAt&&A.rangeCount){A=A.getRangeAt(0);A.deleteContents();var B=document.createElement("div");B.innerHTML=
-p;p=document.createDocumentFragment();for(var F;F=B.firstChild;)lastNode=p.appendChild(F);A.insertNode(p)}}else(A=document.selection)&&"Control"!=A.type&&A.createRange().pasteHTML(p)};Graph.prototype.createLinkForHint=function(p,A,B){function F(R,X){R.length>X&&(R=R.substring(0,Math.round(X/2))+"..."+R.substring(R.length-Math.round(X/4)));return R}p=null!=p?p:"javascript:void(0);";if(null==A||0==A.length)A=this.isCustomLink(p)?this.getLinkTitle(p):p;var N=document.createElement("a");N.setAttribute("rel",
-this.linkRelation);N.setAttribute("href",this.getAbsoluteUrl(p));N.setAttribute("title",F(this.isCustomLink(p)?this.getLinkTitle(p):p,80));null!=this.linkTarget&&N.setAttribute("target",this.linkTarget);mxUtils.write(N,F(A,40));this.isCustomLink(p)&&mxEvent.addListener(N,"click",mxUtils.bind(this,function(R){this.customLinkClicked(p,B);mxEvent.consume(R)}));return N};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};
-this.addListener(mxEvent.START_EDITING,function(R,X){this.popupMenuHandler.hideMenu()});var p=this.updateMouseEvent;this.updateMouseEvent=function(R){R=p.apply(this,arguments);if(mxEvent.isTouchEvent(R.getEvent())&&null==R.getState()){var X=this.getCellAt(R.graphX,R.graphY);null!=X&&this.isSwimlane(X)&&this.hitsSwimlaneContent(X,R.graphX,R.graphY)||(R.state=this.view.getState(X),null!=R.state&&null!=R.state.shape&&(this.container.style.cursor=R.state.shape.node.style.cursor))}null==R.getState()&&
+sb)}finally{Sa.shape.isFlowAnimationEnabled=Za,Sa.shape.addFlowAnimationToShape=xb}};var Ta=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;fa.drawState(this.getView().getState(Ta),bb);this.addForeignObjectWarning(bb,jb);wa?this.disableSvgLinks(jb):this.updateSvgLinks(jb,da,!0);return jb}finally{this.enableFlowAnimation=Va,ya&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(q,A){if("0"!=urlParams["svg-warning"]&&
+0<A.getElementsByTagName("foreignObject").length){var B=q.createElement("switch"),F=q.createElement("g");F.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var N=q.createElement("a");N.setAttribute("transform","translate(0,-5)");null==N.setAttributeNS||A.ownerDocument!=document&&null==document.documentMode?(N.setAttribute("xlink:href",Graph.foreignObjectWarningLink),N.setAttribute("target","_blank")):(N.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),
+N.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));q=q.createElement("text");q.setAttribute("text-anchor","middle");q.setAttribute("font-size","10px");q.setAttribute("x","50%");q.setAttribute("y","100%");mxUtils.write(q,Graph.foreignObjectWarningText);B.appendChild(F);N.appendChild(q);B.appendChild(N);A.appendChild(B)}};Graph.prototype.disableSvgLinks=function(q,A){q=q.getElementsByTagName("a");for(var B=0;B<q.length;B++){var F=q[B].getAttribute("href");null==F&&(F=q[B].getAttribute("xlink:href"));
+null!=F&&(q[B].style.pointerEvents="none",q[B].setAttribute("href",""));A&&A(q[B])}};Graph.prototype.updateSvgLinks=function(q,A,B){q=q.getElementsByTagName("a");for(var F=0;F<q.length;F++)if(null==q[F].getAttribute("target")){var N=q[F].getAttribute("href");null==N&&(N=q[F].getAttribute("xlink:href"));null!=N&&(null!=A&&/^https?:\/\//.test(N)?q[F].setAttribute("target",A):B&&this.isCustomLink(N)&&q[F].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(q){q=new mxSvgCanvas2D(q);
+q.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;q.adaptiveColors=this.getAdaptiveColors();q.pointerEvents=!0;return q};Graph.prototype.getSelectedElement=function(){var q=null;if(window.getSelection){var A=window.getSelection();A.getRangeAt&&A.rangeCount&&(q=A.getRangeAt(0).commonAncestorContainer)}else document.selection&&(q=document.selection.createRange().parentElement());return q};Graph.prototype.getSelectedEditingElement=function(){var q=null;if(null!=this.cellEditor.textarea)for(q=this.getSelectedElement();null!=
+q&&q.nodeType!=mxConstants.NODETYPE_ELEMENT;)q=q.parentNode;return q};Graph.prototype.getParentByName=function(q,A,B){for(;null!=q&&q.nodeName!=A;){if(q==B)return null;q=q.parentNode}return q};Graph.prototype.getParentByNames=function(q,A,B){for(;null!=q&&!(0<=mxUtils.indexOf(A,q.nodeName));){if(q==B)return null;q=q.parentNode}return q};Graph.prototype.selectNode=function(q){var A=null;if(window.getSelection){if(A=window.getSelection(),A.getRangeAt&&A.rangeCount){var B=document.createRange();B.selectNode(q);
+A.removeAllRanges();A.addRange(B)}}else(A=document.selection)&&"Control"!=A.type&&(q=A.createRange(),q.collapse(!0),B=A.createRange(),B.setEndPoint("StartToStart",q),B.select())};Graph.prototype.flipEdgePoints=function(q,A,B){var F=this.getCellGeometry(q);if(null!=F){F=F.clone();if(null!=F.points)for(var N=0;N<F.points.length;N++)A?F.points[N].x=B+(B-F.points[N].x):F.points[N].y=B+(B-F.points[N].y);N=function(R){null!=R&&(A?R.x=B+(B-R.x):R.y=B+(B-R.y))};N(F.getTerminalPoint(!0));N(F.getTerminalPoint(!1));
+this.model.setGeometry(q,F)}};Graph.prototype.flipChildren=function(q,A,B){this.model.beginUpdate();try{for(var F=this.model.getChildCount(q),N=0;N<F;N++){var R=this.model.getChildAt(q,N);if(this.model.isEdge(R))this.flipEdgePoints(R,A,B);else{var X=this.getCellGeometry(R);null!=X&&(X=X.clone(),A?X.x=B+(B-X.x-X.width):X.y=B+(B-X.y-X.height),this.model.setGeometry(R,X))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(q,A){this.model.beginUpdate();try{q=this.model.getTopmostCells(q);
+for(var B=[],F=0;F<q.length;F++)if(this.model.isEdge(q[F])){var N=this.view.getState(q[F]);null!=N&&this.flipEdgePoints(q[F],A,(A?N.getCenterX():N.getCenterY())/this.view.scale-(A?N.origin.x:N.origin.y)-(A?this.view.translate.x:this.view.translate.y))}else{var R=this.getCellGeometry(q[F]);null!=R&&this.flipChildren(q[F],A,A?R.getCenterX()-R.x:R.getCenterY()-R.y);B.push(q[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,B)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=
+function(q,A){var B=null;if(null!=q&&0<q.length){this.model.beginUpdate();try{for(var F=0;F<q.length;F++){var N=this.model.getParent(q[F]);if(this.isTable(N)){var R=this.getCellGeometry(q[F]),X=this.getCellGeometry(N);null!=R&&null!=X&&(X=X.clone(),X.height-=R.height,this.model.setGeometry(N,X))}}var fa=this.selectParentAfterDelete?this.model.getParents(q):null;this.removeCells(q,A)}finally{this.model.endUpdate()}if(null!=fa)for(B=[],F=0;F<fa.length;F++)this.model.contains(fa[F])&&(this.model.isVertex(fa[F])||
+this.model.isEdge(fa[F]))&&B.push(fa[F])}return B};Graph.prototype.insertTableColumn=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,N=0;if(this.isTableCell(q)){var R=B.getParent(q);F=B.getParent(R);N=mxUtils.indexOf(B.getChildCells(R,!0),q)}else this.isTableRow(q)?F=B.getParent(q):q=B.getChildCells(F,!0)[0],A||(N=B.getChildCells(q,!0).length-1);var X=B.getChildCells(F,!0),fa=Graph.minTableColumnWidth;for(q=0;q<X.length;q++){var da=B.getChildCells(X[q],!0)[N],ha=B.cloneCell(da,!1);
+null==ha&&(ha=this.createVertex());var va=this.getCellGeometry(ha);ha.value=null;ha.style=mxUtils.setStyle(mxUtils.setStyle(ha.style,"rowspan",null),"colspan",null);if(null!=va){null!=va.alternateBounds&&(va.width=va.alternateBounds.width,va.height=va.alternateBounds.height,va.alternateBounds=null);fa=va.width;var Ma=this.getCellGeometry(X[q]);null!=Ma&&(va.height=Ma.height)}B.add(X[q],ha,N+(A?0:1))}var Na=this.getCellGeometry(F);null!=Na&&(Na=Na.clone(),Na.width+=fa,B.setGeometry(F,Na))}finally{B.endUpdate()}};
+Graph.prototype.deleteLane=function(q){var A=this.getModel();A.beginUpdate();try{var B=null;B="stackLayout"==this.getCurrentCellStyle(q).childLayout?q:A.getParent(q);var F=A.getChildCells(B,!0);0==F.length?A.remove(B):(B==q&&(q=F[F.length-1]),A.remove(q))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(q).childLayout){F=q;var N=B.getChildCells(F,!0);q=N[A?0:N.length-1]}else F=B.getParent(q);
+var R=F.getIndex(q);q=B.cloneCell(q,!1);q.value=null;B.add(F,q,R+(A?0:1))}finally{B.endUpdate()}};Graph.prototype.insertTableRow=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,N=q;if(this.isTableCell(q))N=B.getParent(q),F=B.getParent(N);else if(this.isTableRow(q))F=B.getParent(q);else{var R=B.getChildCells(F,!0);N=R[A?0:R.length-1]}var X=B.getChildCells(N,!0),fa=F.getIndex(N);N=B.cloneCell(N,!1);N.value=null;var da=this.getCellGeometry(N);if(null!=da){for(R=0;R<X.length;R++){q=B.cloneCell(X[R],
+!1);q.value=null;q.style=mxUtils.setStyle(mxUtils.setStyle(q.style,"rowspan",null),"colspan",null);var ha=this.getCellGeometry(q);null!=ha&&(null!=ha.alternateBounds&&(ha.width=ha.alternateBounds.width,ha.height=ha.alternateBounds.height,ha.alternateBounds=null),ha.height=da.height);N.insert(q)}B.add(F,N,fa+(A?0:1));var va=this.getCellGeometry(F);null!=va&&(va=va.clone(),va.height+=da.height,B.setGeometry(F,va))}}finally{B.endUpdate()}};Graph.prototype.deleteTableColumn=function(q){var A=this.getModel();
+A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(F=A.getParent(q));this.isTableRow(F)&&(B=A.getParent(F));var N=A.getChildCells(B,!0);if(0==N.length)A.remove(B);else{this.isTableRow(F)||(F=N[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(B);else{var X=R.length-1;this.isTableCell(q)&&(X=mxUtils.indexOf(R,q));for(F=q=0;F<N.length;F++){var fa=A.getChildCells(N[F],!0)[X];A.remove(fa);var da=this.getCellGeometry(fa);null!=da&&(q=Math.max(q,da.width))}var ha=this.getCellGeometry(B);null!=
+ha&&(ha=ha.clone(),ha.width-=q,A.setGeometry(B,ha))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=function(q){var A=this.getModel();A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(q=F=A.getParent(q));this.isTableRow(q)&&(B=A.getParent(F));var N=A.getChildCells(B,!0);if(1>=N.length)A.remove(B);else{this.isTableRow(F)||(F=N[N.length-1]);A.remove(F);q=0;var R=this.getCellGeometry(F);null!=R&&(q=R.height);var X=this.getCellGeometry(B);null!=X&&(X=X.clone(),X.height-=q,A.setGeometry(B,
+X))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(q,A){for(var B=q.tBodies[0],F=B.rows[0].cells,N=q=0;N<F.length;N++){var R=F[N].getAttribute("colspan");q+=null!=R?parseInt(R):1}A=B.insertRow(A);for(N=0;N<q;N++)mxUtils.br(A.insertCell(-1));return A.cells[0]};Graph.prototype.deleteRow=function(q,A){q.tBodies[0].deleteRow(A)};Graph.prototype.insertColumn=function(q,A){var B=q.tHead;if(null!=B)for(var F=0;F<B.rows.length;F++){var N=document.createElement("th");B.rows[F].appendChild(N);
+mxUtils.br(N)}q=q.tBodies[0];for(B=0;B<q.rows.length;B++)F=q.rows[B].insertCell(A),mxUtils.br(F);return q.rows[0].cells[0<=A?A:q.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(q,A){if(0<=A){q=q.tBodies[0].rows;for(var B=0;B<q.length;B++)q[B].cells.length>A&&q[B].deleteCell(A)}};Graph.prototype.pasteHtmlAtCaret=function(q){if(window.getSelection){var A=window.getSelection();if(A.getRangeAt&&A.rangeCount){A=A.getRangeAt(0);A.deleteContents();var B=document.createElement("div");B.innerHTML=
+q;q=document.createDocumentFragment();for(var F;F=B.firstChild;)lastNode=q.appendChild(F);A.insertNode(q)}}else(A=document.selection)&&"Control"!=A.type&&A.createRange().pasteHTML(q)};Graph.prototype.createLinkForHint=function(q,A,B){function F(R,X){R.length>X&&(R=R.substring(0,Math.round(X/2))+"..."+R.substring(R.length-Math.round(X/4)));return R}q=null!=q?q:"javascript:void(0);";if(null==A||0==A.length)A=this.isCustomLink(q)?this.getLinkTitle(q):q;var N=document.createElement("a");N.setAttribute("rel",
+this.linkRelation);N.setAttribute("href",this.getAbsoluteUrl(q));N.setAttribute("title",F(this.isCustomLink(q)?this.getLinkTitle(q):q,80));null!=this.linkTarget&&N.setAttribute("target",this.linkTarget);mxUtils.write(N,F(A,40));this.isCustomLink(q)&&mxEvent.addListener(N,"click",mxUtils.bind(this,function(R){this.customLinkClicked(q,B);mxEvent.consume(R)}));return N};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};
+this.addListener(mxEvent.START_EDITING,function(R,X){this.popupMenuHandler.hideMenu()});var q=this.updateMouseEvent;this.updateMouseEvent=function(R){R=q.apply(this,arguments);if(mxEvent.isTouchEvent(R.getEvent())&&null==R.getState()){var X=this.getCellAt(R.graphX,R.graphY);null!=X&&this.isSwimlane(X)&&this.hitsSwimlaneContent(X,R.graphX,R.graphY)||(R.state=this.view.getState(X),null!=R.state&&null!=R.state.shape&&(this.container.style.cursor=R.state.shape.node.style.cursor))}null==R.getState()&&
this.isEnabled()&&(this.container.style.cursor="default");return R};var A=!1,B=!1,F=!1,N=this.fireMouseEvent;this.fireMouseEvent=function(R,X,fa){R==mxEvent.MOUSE_DOWN&&(X=this.updateMouseEvent(X),A=this.isCellSelected(X.getCell()),B=this.isSelectionEmpty(),F=this.popupMenuHandler.isMenuShowing());N.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(R,X){if(null!=this.freehand&&!this.freehand.isDrawing()){var fa=mxEvent.isMouseEvent(X.getEvent());this.popupMenuHandler.popupTrigger=
!this.isEditing()&&this.isEnabled()&&(null==X.getState()||!X.isSource(X.getState().control))&&(this.popupMenuHandler.popupTrigger||!F&&!fa&&(B&&null==X.getCell()&&this.isSelectionEmpty()||A&&this.isCellSelected(X.getCell())));fa=!A||fa?null:mxUtils.bind(this,function(da){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var ha=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(X.getX()+ha.x+1,X.getY()+ha.y+1,da,X.getEvent())}}),300)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,
-[R,X,fa])}})};mxCellEditor.prototype.isContentEditing=function(){var p=this.graph.view.getState(this.editingCell);return null!=p&&1==p.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var p="";window.getSelection?p=window.getSelection():document.getSelection?p=document.getSelection():document.selection&&(p=document.selection.createRange().text);
-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),
-N=null!=A&&mxEvent.isShiftDown(A);if(N||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(X){N||F||window.getSelection().containsNode(X,!0)?(X.removeAttribute("align"),X.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 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);fa=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<fa.length&&"\n"==fa.charAt(fa.length-1)&&(fa=fa.substring(0,fa.length-1));fa=Graph.sanitizeHtml(A?fa.replace(/\n/g,"<br/>"):fa,!0);this.textarea.className="mxCellEditor geContentEditable";da=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),N=(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,X=[];(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&X.push("underline");
-(mxUtils.getValue(p.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&X.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(da*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(da)+"px";this.textarea.style.textDecoration=X.join(" ");this.textarea.style.fontWeight=N?"bold":"normal";this.textarea.style.fontStyle=R?"italic":"";this.textarea.style.fontFamily=A;this.textarea.style.textAlign=
+[R,X,fa])}})};mxCellEditor.prototype.isContentEditing=function(){var q=this.graph.view.getState(this.editingCell);return null!=q&&1==q.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var q="";window.getSelection?q=window.getSelection():document.getSelection?q=document.getSelection():document.selection&&(q=document.selection.createRange().text);
+return""!=q};mxCellEditor.prototype.insertTab=function(q){var A=this.textarea.ownerDocument.defaultView.getSelection(),B=A.getRangeAt(0);q=Graph.createTabNode(q);B.insertNode(q);B.setStartAfter(q);B.setEndAfter(q);A.removeAllRanges();A.addRange(B)};mxCellEditor.prototype.alignText=function(q,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),
+N=null!=A&&mxEvent.isShiftDown(A);if(N||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(X){N||F||window.getSelection().containsNode(X,!0)?(X.removeAttribute("align"),X.style.textAlign=null):R=!1});(R||F)&&this.graph.cellEditor.setAlign(q)}F||document.execCommand("justify"+q.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var q=window.getSelection();if(q.getRangeAt&&q.rangeCount){for(var A=
+[],B=0,F=q.rangeCount;B<F;++B)A.push(q.getRangeAt(B));return A}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(q){try{if(q)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var A=0,B=q.length;A<B;++A)sel.addRange(q[A])}else document.selection&&q.select&&q.select()}catch(F){}};var G=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=
+function(q){null!=q.text&&(q.text.replaceLinefeeds="0"!=mxUtils.getValue(q.style,"nl2Br","1"));G.apply(this,arguments)};var I=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(q,A){this.isKeepFocusEvent(q)||!mxEvent.isAltDown(q.getEvent())?I.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(q){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var L=mxCellEditor.prototype.startEditing;
+mxCellEditor.prototype.startEditing=function(q,A){q=this.graph.getStartEditingCell(q,A);L.apply(this,arguments);var B=this.graph.view.getState(q);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(q)};mxCellEditor.prototype.toggleViewMode=function(){var q=this.graph.view.getState(this.editingCell);
+if(null!=q){var A=null!=q&&"0"!=mxUtils.getValue(q.style,"nl2Br","1"),B=this.saveSelection();if(this.codeViewMode){Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);fa=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<fa.length&&"\n"==fa.charAt(fa.length-1)&&(fa=fa.substring(0,fa.length-1));fa=Graph.sanitizeHtml(A?fa.replace(/\n/g,"<br/>"):fa,!0);this.textarea.className="mxCellEditor geContentEditable";da=mxUtils.getValue(q.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);
+A=mxUtils.getValue(q.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var F=mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),N=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,R=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,X=[];(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&X.push("underline");
+(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&X.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(da*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(da)+"px";this.textarea.style.textDecoration=X.join(" ");this.textarea.style.fontWeight=N?"bold":"normal";this.textarea.style.fontStyle=R?"italic":"";this.textarea.style.fontFamily=A;this.textarea.style.textAlign=
F;this.textarea.style.padding="0px";this.textarea.innerHTML!=fa&&(this.textarea.innerHTML=fa,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors());this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerText="");Graph.removeLightDarkColors(this.textarea,
Graph.backupStyleAttribute);var fa=mxUtils.htmlEntities(this.textarea.innerHTML);8!=document.documentMode&&(fa=mxUtils.replaceTrailingNewlines(fa,"<div><br></div>"));fa=Graph.sanitizeHtml(A?fa.replace(/\n/g,"").replace(/&lt;br\s*.?&gt;/g,"<br>"):fa,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var da=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(da*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=
Math.round(da)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=fa&&(this.textarea.innerHTML=fa);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=
-B;this.resize()}};var T=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(p,A){if(null!=this.textarea)if(p=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=p){var B=p.view.scale;this.bounds=mxRectangle.fromRectangle(p);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*B;this.bounds.height=60*B;var F=null!=p.text?p.text.margin:null;null==F&&(F=mxUtils.getAlignmentAsPoint(mxUtils.getValue(p.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),
-mxUtils.getValue(p.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=F.x*this.bounds.width;this.bounds.y+=F.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/B)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/B)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/B)+(this.textarea.offsetHeight-this.textarea.clientHeight)+
+B;this.resize()}};var T=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(q,A){if(null!=this.textarea)if(q=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=q){var B=q.view.scale;this.bounds=mxRectangle.fromRectangle(q);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*B;this.bounds.height=60*B;var F=null!=q.text?q.text.margin:null;null==F&&(F=mxUtils.getAlignmentAsPoint(mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),
+mxUtils.getValue(q.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=F.x*this.bounds.width;this.bounds.y+=F.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/B)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/B)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/B)+(this.textarea.offsetHeight-this.textarea.clientHeight)+
"px",this.bounds.height=parseInt(this.textarea.style.height)*B);this.textarea.clientWidth<this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/B)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*B);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+B+","+B+")")}else this.textarea.style.height=
-"",this.textarea.style.overflow="",T.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(p,A){if("0"==mxUtils.getValue(p.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var B=this.graph.getEditingValue(p.cell,A);"1"==mxUtils.getValue(p.style,"nl2Br","1")&&(B=B.replace(/\n/g,"<br/>"));return Graph.sanitizeHtml(B,!0)};mxCellEditorSetEditingValue=mxCellEditor.prototype.setEditingValue;mxCellEditor.prototype.setEditingValue=
-function(p,A){mxCellEditorSetEditingValue.apply(this,arguments);"1"==mxUtils.getValue(p.style,"html","0")&&Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors())};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(p){if("0"==mxUtils.getValue(p.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);
-var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(p.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"),0<A.length&&("<br/>"==A.substring(A.length-5)||"<br>"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("<br"))+"<div><br/></div>")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var K=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(p){this.codeViewMode&&this.toggleViewMode();K.apply(this,arguments);this.focusContainer()};
-mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(p){}};var U=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(p,A){this.graph.getModel().beginUpdate();try{U.apply(this,arguments),""==A&&this.graph.isCellDeletable(p.cell)&&0==this.graph.model.getChildCount(p.cell)&&this.graph.isTransparentState(p)&&this.graph.removeCells([p.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(p){p=
-mxUtils.getValue(p.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);p==mxConstants.NONE&&(p=null);return p};mxCellEditor.prototype.getBorderColor=function(p){p=mxUtils.getValue(p.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null);p==mxConstants.NONE&&(p=null);return p};mxCellEditor.prototype.getMinimumSize=function(p){var A=this.graph.getView().scale;return new mxRectangle(0,0,null==p.text?30:p.text.size*A+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;mxGraphHandler.prototype.isValidDropTarget=
-function(p,A){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(A.getEvent)};mxGraphView.prototype.formatUnitText=function(p){return p?b(p,this.unit):p};mxGraphHandler.prototype.updateHint=function(p){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=a(),this.graph.container.appendChild(this.hint));var A=this.graph.view.translate,B=this.graph.view.scale;p=this.roundLength((this.bounds.x+this.currentDx)/B-A.x);A=this.roundLength((this.bounds.y+
-this.currentDy)/B-A.y);B=this.graph.view.unit;this.hint.innerHTML=b(p,B)+", "+b(A,B);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var Y=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=
-function(p,A){Y.apply(this,arguments);var B=this.graph.getCellStyle(p);if(null==B.childLayout){var F=this.graph.model.getParent(p),N=null!=F?this.graph.getCellGeometry(F):null;if(null!=N&&(B=this.graph.getCellStyle(F),"stackLayout"==B.childLayout)){var R=parseFloat(mxUtils.getValue(B,"stackBorder",mxStackLayout.prototype.border));B="1"==mxUtils.getValue(B,"horizontalStack","1");var X=this.graph.getActualStartSize(F);N=N.clone();B?N.height=A.height+X.y+X.height+2*R:N.width=A.width+X.x+X.width+2*R;
-this.graph.model.setGeometry(F,N)}}};var Q=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function p(fa){B.get(fa)||(B.put(fa,!0),N.push(fa))}for(var A=Q.apply(this,arguments),B=new mxDictionary,F=this.graph.model,N=[],R=0;R<A.length;R++){var X=A[R];this.graph.isTableCell(X)?p(F.getParent(F.getParent(X))):this.graph.isTableRow(X)&&p(F.getParent(X));p(X)}return N};var P=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=
-function(p){return P.apply(this,arguments)&&!mxEvent.isControlDown(p.getEvent())&&!mxEvent.isShiftDown(p.getEvent())};var M=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return M.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var W=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=
-function(p){var A=W.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};var aa=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(p){var A=aa.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var p=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+
-p.x/2,this.bounds.y+this.rotationHandleVSpacing-p.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(p,A){return this.graph.isRecursiveVertexResize(p)&&!mxEvent.isAltDown(A.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(p,A){return mxEvent.isControlDown(A.getEvent())||mxEvent.isMetaDown(A.getEvent())};var ia=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return ia.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&
-!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var oa=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return oa.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};
-var qa=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(p){return p.tableHandle||qa.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var p=0;this.graph.isTableRow(this.state.cell)?p=1:this.graph.isTableCell(this.state.cell)&&(p=2);return p};var O=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=
-function(){return O.apply(this,arguments).grow(-this.getSelectionBorderInset())};var Z=null,ca=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==Z&&(Z=mxCellRenderer.defaultShapes.tableLine);var p=ca.apply(this,arguments);if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)){var A=function(za,va,ua){for(var Va=[],Qa=0;Qa<za.length;Qa++){var Ka=za[Qa];Va.push(null==Ka?null:new mxPoint((da+Ka.x+va)*R,(ha+Ka.y+ua)*
-R))}return Va},B=this,F=this.graph,N=F.model,R=F.view.scale,X=this.state,fa=this.selectionBorder,da=this.state.origin.x+F.view.translate.x,ha=this.state.origin.y+F.view.translate.y;null==p&&(p=[]);var wa=F.view.getCellStates(N.getChildCells(this.state.cell,!0));if(0<wa.length){var Ma=N.getChildCells(wa[0].cell,!0),Na=F.getTableLines(this.state.cell,!1,!0),ya=F.getTableLines(this.state.cell,!0,!1);for(N=0;N<wa.length;N++)mxUtils.bind(this,function(za){var va=wa[za],ua=null;if(F.isCellMovable(va.cell)){ua=
-za<wa.length-1?wa[za+1]:null;ua=null!=ua?F.getCellGeometry(ua.cell):null;var Va=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=ya[za]?new Z(ya[za],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);ua.isDashed=fa.isDashed;ua.svgStrokeTolerance++;ua=new mxHandle(va,"row-resize",null,ua);ua.tableHandle=!0;var Qa=0;ua.shape.node.parentNode.insertBefore(ua.shape.node,ua.shape.node.parentNode.firstChild);ua.redraw=function(){if(null!=this.shape){this.shape.stroke=
-0==Qa?mxConstants.NONE:fa.stroke;if(this.shape.constructor==Z)this.shape.line=A(ya[za],0,Qa),this.shape.updateBoundsFromLine();else{var Ua=F.getActualStartSize(X.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+Qa*R;this.shape.bounds.x=X.x+(za==wa.length-1?0:Ua.x*R);this.shape.bounds.width=X.width-(za==wa.length-1?0:Ua.width+Ua.x+R)}this.shape.redraw()}};var Ka=!1;ua.setPosition=function(Ua,Wa,mb){Qa=Math.max(Graph.minTableRowHeight-Ua.height,Wa.y-Ua.y-Ua.height);
-Ka=mxEvent.isShiftDown(mb.getEvent());null!=Va&&Ka&&(Qa=Math.min(Qa,Va.height-Graph.minTableRowHeight))};ua.execute=function(Ua){if(0!=Qa)F.setTableRowHeight(this.state.cell,Qa,!Ka);else if(!B.blockDelayedSelection){var Wa=F.getCellAt(Ua.getGraphX(),Ua.getGraphY())||X.cell;F.graphHandler.selectCellForEvent(Wa,Ua)}Qa=0};ua.reset=function(){Qa=0}}p.push(ua)})(N);for(N=0;N<Ma.length;N++)mxUtils.bind(this,function(za){var va=F.view.getState(Ma[za]),ua=F.getCellGeometry(Ma[za]),Va=null!=ua.alternateBounds?
-ua.alternateBounds:ua;null==va&&(va=new mxCellState(F.view,Ma[za],F.getCellStyle(Ma[za])),va.x=X.x+ua.x*R,va.y=X.y+ua.y*R,va.width=Va.width*R,va.height=Va.height*R,va.updateCachedBounds());ua=za<Ma.length-1?Ma[za+1]:null;ua=null!=ua?F.getCellGeometry(ua):null;var Qa=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=Na[za]?new Z(Na[za],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);ua.isDashed=fa.isDashed;ua.svgStrokeTolerance++;va=new mxHandle(va,"col-resize",
-null,ua);va.tableHandle=!0;var Ka=0;va.shape.node.parentNode.insertBefore(va.shape.node,va.shape.node.parentNode.firstChild);va.redraw=function(){if(null!=this.shape){this.shape.stroke=0==Ka?mxConstants.NONE:fa.stroke;if(this.shape.constructor==Z)this.shape.line=A(Na[za],Ka,0),this.shape.updateBoundsFromLine();else{var Wa=F.getActualStartSize(X.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x=this.state.x+(Va.width+Ka)*R;this.shape.bounds.y=X.y+(za==Ma.length-1?0:Wa.y*R);this.shape.bounds.height=
-X.height-(za==Ma.length-1?0:(Wa.height+Wa.y)*R)}this.shape.redraw()}};var Ua=!1;va.setPosition=function(Wa,mb,ub){Ka=Math.max(Graph.minTableColumnWidth-Va.width,mb.x-Wa.x-Va.width);Ua=mxEvent.isShiftDown(ub.getEvent());null==Qa||Ua||(Ka=Math.min(Ka,Qa.width-Graph.minTableColumnWidth))};va.execute=function(Wa){if(0!=Ka)F.setTableColumnWidth(this.state.cell,Ka,Ua);else if(!B.blockDelayedSelection){var mb=F.getCellAt(Wa.getGraphX(),Wa.getGraphY())||X.cell;F.graphHandler.selectCellForEvent(mb,Wa)}Ka=
-0};va.positionChanged=function(){};va.reset=function(){Ka=0};p.push(va)})(N)}}return null!=p?p.reverse():null};var V=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(p){V.apply(this,arguments);if(null!=this.moveHandles)for(var A=0;A<this.moveHandles.length;A++)null!=this.moveHandles[A]&&(this.moveHandles[A].node.style.visibility=p?"":"hidden");if(null!=this.cornerHandles)for(A=0;A<this.cornerHandles.length;A++)this.cornerHandles[A].node.style.visibility=
-p?"":"hidden"};mxVertexHandler.prototype.isMoveHandlesVisible=function(){return this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)};mxVertexHandler.prototype.refreshMoveHandles=function(){var p=this.isMoveHandlesVisible();p&&null==this.moveHandles?this.moveHandles=this.createMoveHandles():p||null==this.moveHandles||this.destroyMoveHandles();if(p&&null==this.moveHandles){for(p=0;p<this.moveHandles.length;p++)null!=this.moveHandles[p]&&this.moveHandles[p].parentNode.removeChild(this.moveHandles[p]);
-this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var p=this.graph,A=p.model,B=[],F=0;F<A.getChildCount(this.state.cell);F++)mxUtils.bind(this,function(N){if(null!=N&&A.isVertex(N.cell)&&p.isCellMovable(N.cell)){var R=new mxRectangle(0,0,this.rowHandleImage.width,this.rowHandleImage.height);R=new mxImageShape(R,this.rowHandleImage.src);R.rowState=N;R.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;R.init(this.graph.getView().getOverlayPane());
+"",this.textarea.style.overflow="",T.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(q,A){if("0"==mxUtils.getValue(q.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var B=this.graph.getEditingValue(q.cell,A);"1"==mxUtils.getValue(q.style,"nl2Br","1")&&(B=B.replace(/\n/g,"<br/>"));return Graph.sanitizeHtml(B,!0)};mxCellEditorSetEditingValue=mxCellEditor.prototype.setEditingValue;mxCellEditor.prototype.setEditingValue=
+function(q,A){mxCellEditorSetEditingValue.apply(this,arguments);"1"==mxUtils.getValue(q.style,"html","0")&&Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors())};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(q){if("0"==mxUtils.getValue(q.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);
+var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(q.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"),0<A.length&&("<br/>"==A.substring(A.length-5)||"<br>"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("<br"))+"<div><br/></div>")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var K=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(q){this.codeViewMode&&this.toggleViewMode();K.apply(this,arguments);this.focusContainer()};
+mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(q){}};var U=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(q,A){this.graph.getModel().beginUpdate();try{U.apply(this,arguments),""==A&&this.graph.isCellDeletable(q.cell)&&0==this.graph.model.getChildCount(q.cell)&&this.graph.isTransparentState(q)&&this.graph.removeCells([q.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(q){q=
+mxUtils.getValue(q.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);q==mxConstants.NONE&&(q=null);return q};mxCellEditor.prototype.getBorderColor=function(q){q=mxUtils.getValue(q.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null);q==mxConstants.NONE&&(q=null);return q};mxCellEditor.prototype.getMinimumSize=function(q){var A=this.graph.getView().scale;return new mxRectangle(0,0,null==q.text?30:q.text.size*A+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;mxGraphHandler.prototype.isValidDropTarget=
+function(q,A){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(A.getEvent)};mxGraphView.prototype.formatUnitText=function(q){return q?b(q,this.unit):q};mxGraphHandler.prototype.updateHint=function(q){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=a(),this.graph.container.appendChild(this.hint));var A=this.graph.view.translate,B=this.graph.view.scale;q=this.roundLength((this.bounds.x+this.currentDx)/B-A.x);A=this.roundLength((this.bounds.y+
+this.currentDy)/B-A.y);B=this.graph.view.unit;this.hint.innerHTML=b(q,B)+", "+b(A,B);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var Y=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=
+function(q,A){Y.apply(this,arguments);var B=this.graph.getCellStyle(q);if(null==B.childLayout){var F=this.graph.model.getParent(q),N=null!=F?this.graph.getCellGeometry(F):null;if(null!=N&&(B=this.graph.getCellStyle(F),"stackLayout"==B.childLayout)){var R=parseFloat(mxUtils.getValue(B,"stackBorder",mxStackLayout.prototype.border));B="1"==mxUtils.getValue(B,"horizontalStack","1");var X=this.graph.getActualStartSize(F);N=N.clone();B?N.height=A.height+X.y+X.height+2*R:N.width=A.width+X.x+X.width+2*R;
+this.graph.model.setGeometry(F,N)}}};var Q=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function q(fa){B.get(fa)||(B.put(fa,!0),N.push(fa))}for(var A=Q.apply(this,arguments),B=new mxDictionary,F=this.graph.model,N=[],R=0;R<A.length;R++){var X=A[R];this.graph.isTableCell(X)?q(F.getParent(F.getParent(X))):this.graph.isTableRow(X)&&q(F.getParent(X));q(X)}return N};var P=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=
+function(q){return P.apply(this,arguments)&&!mxEvent.isControlDown(q.getEvent())&&!mxEvent.isShiftDown(q.getEvent())};var M=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return M.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var V=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=
+function(q){var A=V.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};var aa=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(q){var A=aa.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var q=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+
+q.x/2,this.bounds.y+this.rotationHandleVSpacing-q.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(q,A){return this.graph.isRecursiveVertexResize(q)&&!mxEvent.isAltDown(A.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(q,A){return mxEvent.isControlDown(A.getEvent())||mxEvent.isMetaDown(A.getEvent())};var ia=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return ia.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&
+!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var na=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return na.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};
+var qa=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(q){return q.tableHandle||qa.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var q=0;this.graph.isTableRow(this.state.cell)?q=1:this.graph.isTableCell(this.state.cell)&&(q=2);return q};var O=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=
+function(){return O.apply(this,arguments).grow(-this.getSelectionBorderInset())};var Z=null,ca=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==Z&&(Z=mxCellRenderer.defaultShapes.tableLine);var q=ca.apply(this,arguments);if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)){var A=function(Ga,wa,ua){for(var Va=[],Qa=0;Qa<Ga.length;Qa++){var Ka=Ga[Qa];Va.push(null==Ka?null:new mxPoint((da+Ka.x+wa)*R,(ha+Ka.y+ua)*
+R))}return Va},B=this,F=this.graph,N=F.model,R=F.view.scale,X=this.state,fa=this.selectionBorder,da=this.state.origin.x+F.view.translate.x,ha=this.state.origin.y+F.view.translate.y;null==q&&(q=[]);var va=F.view.getCellStates(N.getChildCells(this.state.cell,!0));if(0<va.length){var Ma=N.getChildCells(va[0].cell,!0),Na=F.getTableLines(this.state.cell,!1,!0),ya=F.getTableLines(this.state.cell,!0,!1);for(N=0;N<va.length;N++)mxUtils.bind(this,function(Ga){var wa=va[Ga],ua=null;if(F.isCellMovable(wa.cell)){ua=
+Ga<va.length-1?va[Ga+1]:null;ua=null!=ua?F.getCellGeometry(ua.cell):null;var Va=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=ya[Ga]?new Z(ya[Ga],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);ua.isDashed=fa.isDashed;ua.svgStrokeTolerance++;ua=new mxHandle(wa,"row-resize",null,ua);ua.tableHandle=!0;var Qa=0;ua.shape.node.parentNode.insertBefore(ua.shape.node,ua.shape.node.parentNode.firstChild);ua.redraw=function(){if(null!=this.shape){this.shape.stroke=
+0==Qa?mxConstants.NONE:fa.stroke;if(this.shape.constructor==Z)this.shape.line=A(ya[Ga],0,Qa),this.shape.updateBoundsFromLine();else{var Ua=F.getActualStartSize(X.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+Qa*R;this.shape.bounds.x=X.x+(Ga==va.length-1?0:Ua.x*R);this.shape.bounds.width=X.width-(Ga==va.length-1?0:Ua.width+Ua.x+R)}this.shape.redraw()}};var Ka=!1;ua.setPosition=function(Ua,Wa,mb){Qa=Math.max(Graph.minTableRowHeight-Ua.height,Wa.y-Ua.y-Ua.height);
+Ka=mxEvent.isShiftDown(mb.getEvent());null!=Va&&Ka&&(Qa=Math.min(Qa,Va.height-Graph.minTableRowHeight))};ua.execute=function(Ua){if(0!=Qa)F.setTableRowHeight(this.state.cell,Qa,!Ka);else if(!B.blockDelayedSelection){var Wa=F.getCellAt(Ua.getGraphX(),Ua.getGraphY())||X.cell;F.graphHandler.selectCellForEvent(Wa,Ua)}Qa=0};ua.reset=function(){Qa=0}}q.push(ua)})(N);for(N=0;N<Ma.length;N++)mxUtils.bind(this,function(Ga){var wa=F.view.getState(Ma[Ga]),ua=F.getCellGeometry(Ma[Ga]),Va=null!=ua.alternateBounds?
+ua.alternateBounds:ua;null==wa&&(wa=new mxCellState(F.view,Ma[Ga],F.getCellStyle(Ma[Ga])),wa.x=X.x+ua.x*R,wa.y=X.y+ua.y*R,wa.width=Va.width*R,wa.height=Va.height*R,wa.updateCachedBounds());ua=Ga<Ma.length-1?Ma[Ga+1]:null;ua=null!=ua?F.getCellGeometry(ua):null;var Qa=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=Na[Ga]?new Z(Na[Ga],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);ua.isDashed=fa.isDashed;ua.svgStrokeTolerance++;wa=new mxHandle(wa,"col-resize",
+null,ua);wa.tableHandle=!0;var Ka=0;wa.shape.node.parentNode.insertBefore(wa.shape.node,wa.shape.node.parentNode.firstChild);wa.redraw=function(){if(null!=this.shape){this.shape.stroke=0==Ka?mxConstants.NONE:fa.stroke;if(this.shape.constructor==Z)this.shape.line=A(Na[Ga],Ka,0),this.shape.updateBoundsFromLine();else{var Wa=F.getActualStartSize(X.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x=this.state.x+(Va.width+Ka)*R;this.shape.bounds.y=X.y+(Ga==Ma.length-1?0:Wa.y*R);this.shape.bounds.height=
+X.height-(Ga==Ma.length-1?0:(Wa.height+Wa.y)*R)}this.shape.redraw()}};var Ua=!1;wa.setPosition=function(Wa,mb,ub){Ka=Math.max(Graph.minTableColumnWidth-Va.width,mb.x-Wa.x-Va.width);Ua=mxEvent.isShiftDown(ub.getEvent());null==Qa||Ua||(Ka=Math.min(Ka,Qa.width-Graph.minTableColumnWidth))};wa.execute=function(Wa){if(0!=Ka)F.setTableColumnWidth(this.state.cell,Ka,Ua);else if(!B.blockDelayedSelection){var mb=F.getCellAt(Wa.getGraphX(),Wa.getGraphY())||X.cell;F.graphHandler.selectCellForEvent(mb,Wa)}Ka=
+0};wa.positionChanged=function(){};wa.reset=function(){Ka=0};q.push(wa)})(N)}}return null!=q?q.reverse():null};var W=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(q){W.apply(this,arguments);if(null!=this.moveHandles)for(var A=0;A<this.moveHandles.length;A++)null!=this.moveHandles[A]&&(this.moveHandles[A].node.style.visibility=q?"":"hidden");if(null!=this.cornerHandles)for(A=0;A<this.cornerHandles.length;A++)this.cornerHandles[A].node.style.visibility=
+q?"":"hidden"};mxVertexHandler.prototype.isMoveHandlesVisible=function(){return this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)};mxVertexHandler.prototype.refreshMoveHandles=function(){var q=this.isMoveHandlesVisible();q&&null==this.moveHandles?this.moveHandles=this.createMoveHandles():q||null==this.moveHandles||this.destroyMoveHandles();if(q&&null==this.moveHandles){for(q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].parentNode.removeChild(this.moveHandles[q]);
+this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var q=this.graph,A=q.model,B=[],F=0;F<A.getChildCount(this.state.cell);F++)mxUtils.bind(this,function(N){if(null!=N&&A.isVertex(N.cell)&&q.isCellMovable(N.cell)){var R=new mxRectangle(0,0,this.rowHandleImage.width,this.rowHandleImage.height);R=new mxImageShape(R,this.rowHandleImage.src);R.rowState=N;R.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;R.init(this.graph.getView().getOverlayPane());
R.node.style.cursor="move";mxEvent.addGestureListeners(R.node,mxUtils.bind(this,function(X){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);!this.graph.isToggleEvent(X)&&this.graph.isCellSelected(N.cell)||this.graph.selectCellForEvent(N.cell,X);mxEvent.isPopupTrigger(X)||(this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(X),mxEvent.getClientY(X),this.graph.getSelectionCells()),this.graph.graphHandler.cellWasClicked=!0,this.graph.isMouseTrigger=mxEvent.isMouseEvent(X),
-this.graph.isMouseDown=!0);mxEvent.consume(X)}),null,mxUtils.bind(this,function(X){mxEvent.isPopupTrigger(X)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(X),mxEvent.getClientY(X),N.cell,X),mxEvent.consume(X))}));B.push(R)}else B.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return B};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=this.moveHandles){for(var p=0;p<this.moveHandles.length;p++)null!=this.moveHandles[p]&&this.moveHandles[p].destroy();
-this.moveHandles=null}};mxVertexHandler.prototype.destroyCornerHandles=function(){if(null!=this.cornerHandles){for(var p=0;p<this.cornerHandles.length;p++)null!=this.cornerHandles[p]&&null!=this.cornerHandles[p].node&&null!=this.cornerHandles[p].node.parentNode&&this.cornerHandles[p].node.parentNode.removeChild(this.cornerHandles[p].node);this.cornerHandles=null}};var ja=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ja.apply(this,arguments);this.destroyMoveHandles();
-this.destroyCornerHandles();if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&this.graph.isCellMovable(this.state.cell)&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=[];for(var p=0;4>p;p++){var A=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());
-this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();p=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(p,A)};var H=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var p=new mxPoint(0,0),A=this.tolerance,B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&&mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||
+this.graph.isMouseDown=!0);mxEvent.consume(X)}),null,mxUtils.bind(this,function(X){mxEvent.isPopupTrigger(X)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(X),mxEvent.getClientY(X),N.cell,X),mxEvent.consume(X))}));B.push(R)}else B.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return B};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=this.moveHandles){for(var q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].destroy();
+this.moveHandles=null}};mxVertexHandler.prototype.destroyCornerHandles=function(){if(null!=this.cornerHandles){for(var q=0;q<this.cornerHandles.length;q++)null!=this.cornerHandles[q]&&null!=this.cornerHandles[q].node&&null!=this.cornerHandles[q].node.parentNode&&this.cornerHandles[q].node.parentNode.removeChild(this.cornerHandles[q].node);this.cornerHandles=null}};var ja=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ja.apply(this,arguments);this.destroyMoveHandles();
+this.destroyCornerHandles();if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&this.graph.isCellMovable(this.state.cell)&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=[];for(var q=0;4>q;q++){var A=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());
+this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();q=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(q,A)};var H=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var q=new mxPoint(0,0),A=this.tolerance,B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&&mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||
this.graph.cellEditor.getEditingCell()==this.state.cell;if(!B&&null!=this.customHandles)for(var F=0;F<this.customHandles.length;F++)if(null!=this.customHandles[F]&&null!=this.customHandles[F].shape&&null!=this.customHandles[F].shape.bounds){var N=this.customHandles[F].shape.bounds,R=N.getCenterX(),X=N.getCenterY();if(Math.abs(this.state.x-R)<N.width/2||Math.abs(this.state.y-X)<N.height/2||Math.abs(this.state.x+this.state.width-R)<N.width/2||Math.abs(this.state.y+this.state.height-X)<N.height/2){B=
-!0;break}}B&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(A/=2,this.graph.isTable(this.state.cell)&&(A+=7),p.x=this.sizers[0].bounds.width+A,p.y=this.sizers[0].bounds.height+A):p=H.apply(this,arguments);return p};mxVertexHandler.prototype.updateHint=function(p){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{p=this.state.view.scale;
-var A=this.state.view.unit;this.hint.innerHTML=b(this.roundLength(this.bounds.width/p),A)+" x "+b(this.roundLength(this.bounds.height/p),A)}p=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==p&&(p=this.bounds);this.hint.style.left=p.x+Math.round((p.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=p.y+p.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=
-function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var ea=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){ea.apply(this,arguments);var p=this.graph.getLinkForCell(this.state.cell),A=this.graph.getLinksForState(this.state);this.updateLinkHint(p,A)};var la=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(p,A){la.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&
-null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};var sa=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(p,A){sa.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(p,A,B){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));var F=this.graph.view.translate,
+!0;break}}B&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(A/=2,this.graph.isTable(this.state.cell)&&(A+=7),q.x=this.sizers[0].bounds.width+A,q.y=this.sizers[0].bounds.height+A):q=H.apply(this,arguments);return q};mxVertexHandler.prototype.updateHint=function(q){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{q=this.state.view.scale;
+var A=this.state.view.unit;this.hint.innerHTML=b(this.roundLength(this.bounds.width/q),A)+" x "+b(this.roundLength(this.bounds.height/q),A)}q=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==q&&(q=this.bounds);this.hint.style.left=q.x+Math.round((q.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=q.y+q.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=
+function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var ea=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){ea.apply(this,arguments);var q=this.graph.getLinkForCell(this.state.cell),A=this.graph.getLinksForState(this.state);this.updateLinkHint(q,A)};var oa=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(q,A){oa.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&
+null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};var sa=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(q,A){sa.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(q,A,B){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));var F=this.graph.view.translate,
N=this.graph.view.scale,R=this.roundLength(A.x/N-F.x);F=this.roundLength(A.y/N-F.y);var X=this.graph.view.unit;this.hint.innerHTML=b(R,X)+", "+b(F,X);this.hint.style.visibility="visible";null!=B&&(B.view.updateEdgeBounds(B),this.hint.innerHTML+=" ("+(X==mxConstants.POINTS?Math.round(B.length/N):b(B.length/N,X))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(B=this.constraintHandler.currentConstraint.point,
-this.hint.innerHTML="["+Math.round(100*B.x)+"%, "+Math.round(100*B.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(p.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(p.getGraphY(),A.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');
+this.hint.innerHTML="["+Math.round(100*B.x)+"%, "+Math.round(100*B.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(q.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(q.getGraphY(),A.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');
Graph.prototype.collapsedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 4.5 2 L 4.5 7 M 2 4.5 L 7 4.5 z" stroke="#000"/>');mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle=
Graph.createSvgImage(18,18,'<circle cx="9" cy="9" r="5" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'<circle cx="9" cy="9" r="6" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,'<path d="m 8 3 L 13 8 L 8 13 L 3 8 z" stroke="#fff" fill="#fca000"/>');HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="6" stroke="#fff" fill="#01bd22"/><path d="m 8 8 L 14 14M 8 14 L 14 8" stroke="#fff"/>');
HoverIcons.prototype.endFixedHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="7" stroke="#fff" fill="#01bd22"/><path d="m 8 8 L 14 14M 8 14 L 14 8" stroke="#fff"/>');HoverIcons.prototype.terminalHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="6" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/><circle cx="11" cy="11" r="3" stroke="#fff" fill="transparent"/>');HoverIcons.prototype.endTerminalHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="7" stroke="#fff" fill="'+
@@ -2944,38 +2959,38 @@ HoverIcons.prototype.arrowFill+'"/><circle cx="11" cy="11" r="3" stroke="#fff" f
HoverIcons.prototype.endTerminalHandle;mxEdgeHandler.prototype.fixedHandleImage=HoverIcons.prototype.fixedHandle;mxEdgeHandler.prototype.endFixedHandleImage=HoverIcons.prototype.endFixedHandle;mxEdgeHandler.prototype.labelHandleImage=HoverIcons.prototype.secondaryHandle;mxOutline.prototype.sizerImage=HoverIcons.prototype.mainHandle;null!=window.Sidebar&&(Sidebar.prototype.triangleUp=HoverIcons.prototype.triangleUp,Sidebar.prototype.triangleRight=HoverIcons.prototype.triangleRight,Sidebar.prototype.triangleDown=
HoverIcons.prototype.triangleDown,Sidebar.prototype.triangleLeft=HoverIcons.prototype.triangleLeft,Sidebar.prototype.refreshTarget=HoverIcons.prototype.refreshTarget,Sidebar.prototype.roundDrop=HoverIcons.prototype.roundDrop);mxVertexHandler.prototype.rotationEnabled=!0;mxVertexHandler.prototype.manageSizers=!0;mxVertexHandler.prototype.livePreview=!0;mxGraphHandler.prototype.maxLivePreview=16;mxGraphHandler.prototype.previewColor="light-dark(#000000, #cccccc)";mxRubberband.prototype.defaultOpacity=
30;mxConnectionHandler.prototype.outlineConnect=!0;mxCellHighlight.prototype.keepOnTop=!0;mxVertexHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.dblClickRemoveEnabled=!0;mxEdgeHandler.prototype.straightRemoveEnabled=!0;mxEdgeHandler.prototype.virtualBendsEnabled=!0;mxEdgeHandler.prototype.mergeRemoveEnabled=!0;mxEdgeHandler.prototype.manageLabelHandle=!0;mxEdgeHandler.prototype.outlineConnect=!0;mxEdgeHandler.prototype.isAddVirtualBendEvent=
-function(p){return!mxEvent.isShiftDown(p.getEvent())};mxEdgeHandler.prototype.isCustomHandleEvent=function(p){return!mxEvent.isShiftDown(p.getEvent())};if(Graph.touchStyle){if(mxClient.IS_TOUCH||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)mxShape.prototype.svgStrokeTolerance=18,mxVertexHandler.prototype.tolerance=12,mxEdgeHandler.prototype.tolerance=12,Graph.prototype.tolerance=12,mxVertexHandler.prototype.rotationHandleVSpacing=-16,mxConstraintHandler.prototype.getTolerance=function(p){return mxEvent.isMouseEvent(p.getEvent())?
-4:this.graph.getTolerance()};mxPanningHandler.prototype.isPanningTrigger=function(p){var A=p.getEvent();return null==p.getState()&&!mxEvent.isMouseEvent(A)||mxEvent.isPopupTrigger(A)&&(null==p.getState()||mxEvent.isControlDown(A)||mxEvent.isShiftDown(A))}}else mxPanningHandler.prototype.isPanningTrigger=function(p){var A=p.getEvent();return mxEvent.isLeftMouseButton(A)&&(this.useLeftButtonForPanning&&null==p.getState()||mxEvent.isControlDown(A)&&!mxEvent.isShiftDown(A))||this.usePopupTrigger&&mxEvent.isPopupTrigger(A)};
-mxRubberband.prototype.isSpaceEvent=function(p){return this.graph.isEnabled()&&!this.graph.isCellLocked(this.graph.getDefaultParent())&&(mxEvent.isControlDown(p.getEvent())||mxEvent.isMetaDown(p.getEvent()))&&mxEvent.isShiftDown(p.getEvent())&&mxEvent.isAltDown(p.getEvent())};mxRubberband.prototype.cancelled=!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(p,A){if(this.cancelled)this.cancelled=!1,A.consume();else{var B=
-null!=this.div&&"none"!=this.div.style.display,F=null,N=null,R=p=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(F=this.first.x,N=this.first.y,p=(this.currentX-F)/this.graph.view.scale,R=(this.currentY-N)/this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(p=this.graph.snap(p),R=this.graph.snap(R),this.graph.isGridEnabled()||(Math.abs(p)<this.graph.tolerance&&(p=0),Math.abs(R)<this.graph.tolerance&&(R=0))));this.reset();if(B){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();
-try{var X=this.graph.getCellsBeyond(F,N,this.graph.getDefaultParent(),!0,!0);for(B=0;B<X.length;B++)if(this.graph.isCellMovable(X[B])){var fa=this.graph.view.getState(X[B]),da=this.graph.getCellGeometry(X[B]);null!=fa&&null!=da&&(da=da.clone(),da.translate(p,R),this.graph.model.setGeometry(X[B],da))}}finally{this.graph.model.endUpdate()}}else X=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(X,A.getEvent());A.consume()}}};mxRubberband.prototype.mouseMove=function(p,A){if(!A.isConsumed()&&
-null!=this.first){var B=mxUtils.getScrollOrigin(this.graph.container);p=mxUtils.getOffset(this.graph.container);B.x-=p.x;B.y-=p.y;p=A.getX()+B.x;B=A.getY()+B.y;var F=this.first.x-p,N=this.first.y-B,R=this.graph.tolerance;if(null!=this.div||Math.abs(F)>R||Math.abs(N)>R)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(p,B),this.isSpaceEvent(A)?(p=this.x+this.width,B=this.y+this.height,F=this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(this.width=this.graph.snap(this.width/
-F)*F,this.height=this.graph.snap(this.height/F)*F,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=p-this.width),this.y<this.first.y&&(this.y=B-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+
+function(q){return!mxEvent.isShiftDown(q.getEvent())};mxEdgeHandler.prototype.isCustomHandleEvent=function(q){return!mxEvent.isShiftDown(q.getEvent())};if(Graph.touchStyle){if(mxClient.IS_TOUCH||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)mxShape.prototype.svgStrokeTolerance=18,mxVertexHandler.prototype.tolerance=12,mxEdgeHandler.prototype.tolerance=12,Graph.prototype.tolerance=12,mxVertexHandler.prototype.rotationHandleVSpacing=-16,mxConstraintHandler.prototype.getTolerance=function(q){return mxEvent.isMouseEvent(q.getEvent())?
+4:this.graph.getTolerance()};mxPanningHandler.prototype.isPanningTrigger=function(q){var A=q.getEvent();return null==q.getState()&&!mxEvent.isMouseEvent(A)||mxEvent.isPopupTrigger(A)&&(null==q.getState()||mxEvent.isControlDown(A)||mxEvent.isShiftDown(A))}}else mxPanningHandler.prototype.isPanningTrigger=function(q){var A=q.getEvent();return mxEvent.isLeftMouseButton(A)&&(this.useLeftButtonForPanning&&null==q.getState()||mxEvent.isControlDown(A)&&!mxEvent.isShiftDown(A))||this.usePopupTrigger&&mxEvent.isPopupTrigger(A)};
+mxRubberband.prototype.isSpaceEvent=function(q){return this.graph.isEnabled()&&!this.graph.isCellLocked(this.graph.getDefaultParent())&&(mxEvent.isControlDown(q.getEvent())||mxEvent.isMetaDown(q.getEvent()))&&mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())};mxRubberband.prototype.cancelled=!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(q,A){if(this.cancelled)this.cancelled=!1,A.consume();else{var B=
+null!=this.div&&"none"!=this.div.style.display,F=null,N=null,R=q=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(F=this.first.x,N=this.first.y,q=(this.currentX-F)/this.graph.view.scale,R=(this.currentY-N)/this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(q=this.graph.snap(q),R=this.graph.snap(R),this.graph.isGridEnabled()||(Math.abs(q)<this.graph.tolerance&&(q=0),Math.abs(R)<this.graph.tolerance&&(R=0))));this.reset();if(B){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();
+try{var X=this.graph.getCellsBeyond(F,N,this.graph.getDefaultParent(),!0,!0);for(B=0;B<X.length;B++)if(this.graph.isCellMovable(X[B])){var fa=this.graph.view.getState(X[B]),da=this.graph.getCellGeometry(X[B]);null!=fa&&null!=da&&(da=da.clone(),da.translate(q,R),this.graph.model.setGeometry(X[B],da))}}finally{this.graph.model.endUpdate()}}else X=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(X,A.getEvent());A.consume()}}};mxRubberband.prototype.mouseMove=function(q,A){if(!A.isConsumed()&&
+null!=this.first){var B=mxUtils.getScrollOrigin(this.graph.container);q=mxUtils.getOffset(this.graph.container);B.x-=q.x;B.y-=q.y;q=A.getX()+B.x;B=A.getY()+B.y;var F=this.first.x-q,N=this.first.y-B,R=this.graph.tolerance;if(null!=this.div||Math.abs(F)>R||Math.abs(N)>R)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(q,B),this.isSpaceEvent(A)?(q=this.x+this.width,B=this.y+this.height,F=this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(this.width=this.graph.snap(this.width/
+F)*F,this.height=this.graph.snap(this.height/F)*F,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=q-this.width),this.y<this.first.y&&(this.y=B-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+
"px",this.div.style.borderWidth=0>=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)),this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor=
-"",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),A.consume()}};var Pa=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);Pa.apply(this,arguments)};var ma=(new Date).getTime(),Ca=0,Da=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(p,
-A,B,F){Da.apply(this,arguments);B!=this.currentTerminalState?(ma=(new Date).getTime(),Ca=0):Ca=(new Date).getTime()-ma;this.currentTerminalState=B};var Ga=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(p){return mxEvent.isShiftDown(p.getEvent())&&mxEvent.isAltDown(p.getEvent())?!1:null!=this.currentTerminalState&&p.getState()==this.currentTerminalState&&2E3<Ca||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,
-"outlineConnect","1"))&&Ga.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(p,A,B){A=null!=p&&0==p;var F=this.state.getVisibleTerminalState(A);p=null!=p&&null!=this.state.absolutePoints&&(0==p||p>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==p)?this.graph.getConnectionConstraint(this.state,F,A):null;B=null!=(null!=p?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(A),p):null)?B?this.endFixedHandleImage:this.fixedHandleImage:
-null!=p&&null!=F?B?this.endTerminalHandleImage:this.terminalHandleImage:B?this.endHandleImage:this.handleImage;if(null!=B)return B=new mxImageShape(new mxRectangle(0,0,B.width,B.height),B.src),B.preserveImageAspect=!1,B;B=mxConstants.HANDLE_SIZE;this.preferHtml&&--B;return new mxRectangleShape(new mxRectangle(0,0,B,B),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var Ia=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(p,A,B,F){F=A==mxEvent.ROTATION_HANDLE?
-HoverIcons.prototype.rotationHandle:A==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:F;return Ia.apply(this,arguments)};var Ha=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(p){if(null!=p&&1==p.length){var A=this.graph.getModel(),B=A.getParent(p[0]),F=this.graph.getCellGeometry(p[0]);if(A.isEdge(B)&&null!=F&&F.relative&&(A=this.graph.view.getState(p[0]),null!=A&&2>A.width&&2>A.height&&null!=A.text&&null!=A.text.boundingBox))return mxRectangle.fromRectangle(A.text.boundingBox)}return Ha.apply(this,
-arguments)};var Ja=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var p=Ja.apply(this,arguments),A=[],B=0;B<p.length;B++)"1"!=mxUtils.getValue(p[B].style,"part","0")&&A.push(p[B]);return A};var ta=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(p){var A=this.graph.getModel(),B=A.getParent(p.cell),F=this.graph.getCellGeometry(p.cell);return A.isEdge(B)&&null!=F&&F.relative&&2>p.width&&2>p.height&&null!=
-p.text&&null!=p.text.boundingBox?(A=p.text.unrotatedBoundingBox||p.text.boundingBox,new mxRectangle(Math.round(A.x),Math.round(A.y),Math.round(A.width),Math.round(A.height))):ta.apply(this,arguments)};var La=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(p,A){var B=this.graph.getModel(),F=B.getParent(this.state.cell),N=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!B.isEdge(F)||null==N||!N.relative||null==this.state||
-2<=this.state.width||2<=this.state.height)&&La.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var p=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),A=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&p==mxConstants.NONE&&A==mxConstants.NONE?(p=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,
-p,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Xa=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(p,A){Xa.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Ya=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=
-function(p,A){Ya.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(p,A){try{if(null==p&&(null==A||0==A.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),
-this.linkHint=null);else if(null!=p||null!=A&&0<A.length){var B=document.createElement("img");B.className="geAdaptiveAsset";B.setAttribute("src",Editor.editImage);B.setAttribute("title",mxResources.get("editLink"));B.setAttribute("width","14");B.setAttribute("height","14");B.style.paddingLeft="8px";B.style.marginLeft="auto";B.style.marginBottom="-1px";B.style.cursor="pointer";var F=B.cloneNode(!0);F.setAttribute("src",Editor.trashImage);F.setAttribute("title",mxResources.get("removeIt",[mxResources.get("link")]));
-F.style.paddingLeft="4px";F.style.marginLeft="0";null==this.linkHint&&(this.linkHint=a(),mxUtils.setPrefixedStyle(this.linkHint.style,"transform","translate(-50%,0)"),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerText="";if(null!=p){var N=document.createElement("div");
-N.style.display="flex";N.style.alignItems="center";N.appendChild(this.graph.createLinkForHint(p,null,this.state.cell));this.linkHint.appendChild(N);if(this.graph.isEnabled()&&"function"===typeof this.graph.editLink&&!this.graph.isCellLocked(this.state.cell)){var R=B.cloneNode(!0);N.appendChild(R);mxEvent.addListener(R,"click",mxUtils.bind(this,function(fa){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(fa)}));var X=F.cloneNode(!0);N.appendChild(X);mxEvent.addListener(X,
-"click",mxUtils.bind(this,function(fa){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(fa)}))}}if(null!=A)for(N=0;N<A.length;N++)mxUtils.bind(this,function(fa,da){var ha=document.createElement("div");ha.style.display="flex";ha.style.alignItems="center";ha.style.marginTop=null!=p||0<da?"6px":"0px";ha.appendChild(this.graph.createLinkForHint(fa.getAttribute("href"),mxUtils.getTextContent(fa),this.state.cell));var wa=B.cloneNode(!0);ha.appendChild(wa);var Ma=mxUtils.bind(this,function(Na){var ya=
-document.createElement("div");ya.innerHTML=Graph.sanitizeHtml(this.graph.getLabel(this.state.cell));var za=ya.getElementsByTagName("a")[da];if(null!=za){if(null==Na||""==Na){for(Na=za.cloneNode(!0).firstChild;null!=Na;)za.parentNode.insertBefore(Na.cloneNode(!0),za),Na=Na.nextSibling;za.parentNode.removeChild(za)}else za.setAttribute("href",Na);this.graph.labelChanged(this.state.cell,ya.innerHTML)}});mxEvent.addListener(wa,"click",mxUtils.bind(this,function(Na){this.graph.showLinkDialog(fa.getAttribute("href")||
-"",mxResources.get("ok"),Ma);mxEvent.consume(Na)}));wa=F.cloneNode(!0);ha.appendChild(wa);mxEvent.addListener(wa,"click",mxUtils.bind(this,function(Na){Ma();mxEvent.consume(Na)}));this.linkHint.appendChild(ha)})(A[N],N)}null!=this.linkHint&&Graph.sanitizeNode(this.linkHint)}catch(fa){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var cb=mxEdgeHandler.prototype.createConstraintHandler;mxEdgeHandler.prototype.createConstraintHandler=function(){var p=cb.apply(this,
-arguments);p.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});return p};var fb=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){fb.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var pb=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var p=0;p<this.moveHandles.length;p++)null!=
-this.moveHandles[p]&&(this.moveHandles[p].bounds.x=Math.round(this.moveHandles[p].rowState.x+this.moveHandles[p].rowState.width-this.moveHandles[p].bounds.width/2),this.moveHandles[p].bounds.y=Math.round(this.moveHandles[p].rowState.y+(this.moveHandles[p].rowState.height-this.moveHandles[p].bounds.height)/2),this.moveHandles[p].redraw());if(null!=this.cornerHandles){p=this.getSelectionBorderInset();var A=this.cornerHandles,B=A[0].bounds.height/2;A[0].bounds.x=this.state.x-A[0].bounds.width/2+p;A[0].bounds.y=
-this.state.y-B+p;A[0].redraw();A[1].bounds.x=A[0].bounds.x+this.state.width-2*p;A[1].bounds.y=A[0].bounds.y;A[1].redraw();A[2].bounds.x=A[0].bounds.x;A[2].bounds.y=this.state.y+this.state.height-2*p;A[2].redraw();A[3].bounds.x=A[1].bounds.x;A[3].bounds.y=A[2].bounds.y;A[3].redraw();for(p=0;p<this.cornerHandles.length;p++)this.cornerHandles[p].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.setAttribute("title",
-mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");pb.apply(this);null!=this.state&&null!=this.linkHint&&(p=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),A=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),B=mxUtils.getBoundingBox(A,this.state.style[mxConstants.STYLE_ROTATION]||"0",p),p=null!=B?mxUtils.getBoundingBox(this.state,
-this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,A=null!=this.state.text?this.state.text.boundingBox:null,null==B&&(B=this.state),B=B.y+B.height,null!=A&&(B=Math.max(B,A.y+A.height)),this.linkHint.style.left=p.x+p.width/2+"px",this.linkHint.style.top=Math.round(B+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var gb=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){gb.apply(this,arguments);
+"",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),A.consume()}};var Pa=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);Pa.apply(this,arguments)};var la=(new Date).getTime(),Ba=0,Ca=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(q,
+A,B,F){Ca.apply(this,arguments);B!=this.currentTerminalState?(la=(new Date).getTime(),Ba=0):Ba=(new Date).getTime()-la;this.currentTerminalState=B};var Fa=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(q){return mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())?!1:null!=this.currentTerminalState&&q.getState()==this.currentTerminalState&&2E3<Ba||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,
+"outlineConnect","1"))&&Fa.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(q,A,B){A=null!=q&&0==q;var F=this.state.getVisibleTerminalState(A);q=null!=q&&null!=this.state.absolutePoints&&(0==q||q>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==q)?this.graph.getConnectionConstraint(this.state,F,A):null;B=null!=(null!=q?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(A),q):null)?B?this.endFixedHandleImage:this.fixedHandleImage:
+null!=q&&null!=F?B?this.endTerminalHandleImage:this.terminalHandleImage:B?this.endHandleImage:this.handleImage;if(null!=B)return B=new mxImageShape(new mxRectangle(0,0,B.width,B.height),B.src),B.preserveImageAspect=!1,B;B=mxConstants.HANDLE_SIZE;this.preferHtml&&--B;return new mxRectangleShape(new mxRectangle(0,0,B,B),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var Ia=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(q,A,B,F){F=A==mxEvent.ROTATION_HANDLE?
+HoverIcons.prototype.rotationHandle:A==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:F;return Ia.apply(this,arguments)};var Ha=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(q){if(null!=q&&1==q.length){var A=this.graph.getModel(),B=A.getParent(q[0]),F=this.graph.getCellGeometry(q[0]);if(A.isEdge(B)&&null!=F&&F.relative&&(A=this.graph.view.getState(q[0]),null!=A&&2>A.width&&2>A.height&&null!=A.text&&null!=A.text.boundingBox))return mxRectangle.fromRectangle(A.text.boundingBox)}return Ha.apply(this,
+arguments)};var Ja=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var q=Ja.apply(this,arguments),A=[],B=0;B<q.length;B++)"1"!=mxUtils.getValue(q[B].style,"part","0")&&A.push(q[B]);return A};var ta=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(q){var A=this.graph.getModel(),B=A.getParent(q.cell),F=this.graph.getCellGeometry(q.cell);return A.isEdge(B)&&null!=F&&F.relative&&2>q.width&&2>q.height&&null!=
+q.text&&null!=q.text.boundingBox?(A=q.text.unrotatedBoundingBox||q.text.boundingBox,new mxRectangle(Math.round(A.x),Math.round(A.y),Math.round(A.width),Math.round(A.height))):ta.apply(this,arguments)};var La=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(q,A){var B=this.graph.getModel(),F=B.getParent(this.state.cell),N=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!B.isEdge(F)||null==N||!N.relative||null==this.state||
+2<=this.state.width||2<=this.state.height)&&La.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var q=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),A=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&q==mxConstants.NONE&&A==mxConstants.NONE?(q=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,
+q,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Xa=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(q,A){Xa.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Ya=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=
+function(q,A){Ya.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(q,A){try{if(null==q&&(null==A||0==A.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),
+this.linkHint=null);else if(null!=q||null!=A&&0<A.length){var B=document.createElement("img");B.className="geAdaptiveAsset";B.setAttribute("src",Editor.editImage);B.setAttribute("title",mxResources.get("editLink"));B.setAttribute("width","14");B.setAttribute("height","14");B.style.paddingLeft="8px";B.style.marginLeft="auto";B.style.marginBottom="-1px";B.style.cursor="pointer";var F=B.cloneNode(!0);F.setAttribute("src",Editor.trashImage);F.setAttribute("title",mxResources.get("removeIt",[mxResources.get("link")]));
+F.style.paddingLeft="4px";F.style.marginLeft="0";null==this.linkHint&&(this.linkHint=a(),mxUtils.setPrefixedStyle(this.linkHint.style,"transform","translate(-50%,0)"),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerText="";if(null!=q){var N=document.createElement("div");
+N.style.display="flex";N.style.alignItems="center";N.appendChild(this.graph.createLinkForHint(q,null,this.state.cell));this.linkHint.appendChild(N);if(this.graph.isEnabled()&&"function"===typeof this.graph.editLink&&!this.graph.isCellLocked(this.state.cell)){var R=B.cloneNode(!0);N.appendChild(R);mxEvent.addListener(R,"click",mxUtils.bind(this,function(fa){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(fa)}));var X=F.cloneNode(!0);N.appendChild(X);mxEvent.addListener(X,
+"click",mxUtils.bind(this,function(fa){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(fa)}))}}if(null!=A)for(N=0;N<A.length;N++)mxUtils.bind(this,function(fa,da){var ha=document.createElement("div");ha.style.display="flex";ha.style.alignItems="center";ha.style.marginTop=null!=q||0<da?"6px":"0px";ha.appendChild(this.graph.createLinkForHint(fa.getAttribute("href"),mxUtils.getTextContent(fa),this.state.cell));var va=B.cloneNode(!0);ha.appendChild(va);var Ma=mxUtils.bind(this,function(Na){var ya=
+document.createElement("div");ya.innerHTML=Graph.sanitizeHtml(this.graph.getLabel(this.state.cell));var Ga=ya.getElementsByTagName("a")[da];if(null!=Ga){if(null==Na||""==Na){for(Na=Ga.cloneNode(!0).firstChild;null!=Na;)Ga.parentNode.insertBefore(Na.cloneNode(!0),Ga),Na=Na.nextSibling;Ga.parentNode.removeChild(Ga)}else Ga.setAttribute("href",Na);this.graph.labelChanged(this.state.cell,ya.innerHTML)}});mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){this.graph.showLinkDialog(fa.getAttribute("href")||
+"",mxResources.get("ok"),Ma);mxEvent.consume(Na)}));va=F.cloneNode(!0);ha.appendChild(va);mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){Ma();mxEvent.consume(Na)}));this.linkHint.appendChild(ha)})(A[N],N)}null!=this.linkHint&&Graph.sanitizeNode(this.linkHint)}catch(fa){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var cb=mxEdgeHandler.prototype.createConstraintHandler;mxEdgeHandler.prototype.createConstraintHandler=function(){var q=cb.apply(this,
+arguments);q.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});return q};var fb=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){fb.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var pb=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var q=0;q<this.moveHandles.length;q++)null!=
+this.moveHandles[q]&&(this.moveHandles[q].bounds.x=Math.round(this.moveHandles[q].rowState.x+this.moveHandles[q].rowState.width-this.moveHandles[q].bounds.width/2),this.moveHandles[q].bounds.y=Math.round(this.moveHandles[q].rowState.y+(this.moveHandles[q].rowState.height-this.moveHandles[q].bounds.height)/2),this.moveHandles[q].redraw());if(null!=this.cornerHandles){q=this.getSelectionBorderInset();var A=this.cornerHandles,B=A[0].bounds.height/2;A[0].bounds.x=this.state.x-A[0].bounds.width/2+q;A[0].bounds.y=
+this.state.y-B+q;A[0].redraw();A[1].bounds.x=A[0].bounds.x+this.state.width-2*q;A[1].bounds.y=A[0].bounds.y;A[1].redraw();A[2].bounds.x=A[0].bounds.x;A[2].bounds.y=this.state.y+this.state.height-2*q;A[2].redraw();A[3].bounds.x=A[1].bounds.x;A[3].bounds.y=A[2].bounds.y;A[3].redraw();for(q=0;q<this.cornerHandles.length;q++)this.cornerHandles[q].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.setAttribute("title",
+mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");pb.apply(this);null!=this.state&&null!=this.linkHint&&(q=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),A=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),B=mxUtils.getBoundingBox(A,this.state.style[mxConstants.STYLE_ROTATION]||"0",q),q=null!=B?mxUtils.getBoundingBox(this.state,
+this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,A=null!=this.state.text?this.state.text.boundingBox:null,null==B&&(B=this.state),B=B.y+B.height,null!=A&&(B=Math.max(B,A.y+A.height)),this.linkHint.style.left=q.x+q.width/2+"px",this.linkHint.style.top=Math.round(B+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var gb=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){gb.apply(this,arguments);
this.destroyMoveHandles();this.destroyCornerHandles();null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var ab=mxEdgeHandler.prototype.redrawHandles;
-mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(ab.apply(this),null!=this.state&&null!=this.linkHint)){var p=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(p=new mxRectangle(p.x,p.y,p.width,p.height),p.add(this.state.text.bounds));this.linkHint.style.left=p.x+p.width/2+"px";this.linkHint.style.top=Math.round(p.y+p.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var ib=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=
-function(){ib.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var eb=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){eb.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();Format=function(a,b){this.editorUi=a;this.container=b};Format.inactiveTabBackgroundColor="light-dark(#e4e4e4, #000000)";Format.classicFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 10 2 L 5 8 L 10 14 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);
+mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(ab.apply(this),null!=this.state&&null!=this.linkHint)){var q=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(q=new mxRectangle(q.x,q.y,q.width,q.height),q.add(this.state.text.bounds));this.linkHint.style.left=q.x+q.width/2+"px";this.linkHint.style.top=Math.round(q.y+q.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var ib=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=
+function(){ib.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var eb=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){eb.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();Format=function(a,b){this.editorUi=a;this.container=b};Format.inactiveTabBackgroundColor="light-dark(#e4e4e4, #000000)";Format.noMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.classicFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 10 2 L 5 8 L 10 14 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);
Format.classicThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 4 L 3 8 L 8 12 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.openFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 0 L 0 8 L 8 16 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);
Format.openThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 4 L 0 8 L 8 12 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);Format.openAsyncFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 4 L 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);
Format.blockFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 2 L 8 14 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.blockThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 4 L 8 12 Z M 0 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);
@@ -2992,51 +3007,58 @@ Format.ERmandOneMarkerImage=Graph.createSvgImage(20,22,'<path transform="transla
Format.ERoneToManyMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 2 L 12 8 L 0 14 M 15 2 L 15 14 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);Format.ERzeroToOneMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 8 A 5 5 0 0 1 13 3 A 5 5 0 0 1 18 8 A 5 5 0 0 1 13 13 A 5 5 0 0 1 8 8 Z M 0 8 L 8 8 M 18 8 L 24 8 M 4 3 L 4 13" stroke="#404040" fill="transparent"/>',32,20);
Format.ERzeroToManyMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 8 8 A 5 5 0 0 1 13 3 A 5 5 0 0 1 18 8 A 5 5 0 0 1 13 13 A 5 5 0 0 1 8 8 Z M 0 8 L 8 8 M 18 8 L 24 8 M 0 3 L 8 8 L 0 13" stroke="#404040" fill="transparent"/>',32,20);Format.EROneMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 5 2 L 5 14 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);
Format.baseDashMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 2 L 0 14 M 0 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);Format.doubleBlockMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 2 L 8 14 Z M 8 8 L 16 2 L 16 14 Z M 16 8 L 24 8" stroke="#404040" fill="transparent"/>',32,20);
-Format.doubleBlockFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 2 L 8 14 Z M 8 8 L 16 2 L 16 14 Z M 16 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.processMenuIcon=function(a,b){var e=a.getElementsByTagName("img");0<e.length&&(e[0].className="geIcon geAdaptiveAsset",e[0].style.padding="0px",e[0].style.margin="0 0 0 2px",null!=b&&mxUtils.setPrefixedStyle(e[0].style,"transform",b));return a};Format.prototype.labelIndex=0;
-Format.prototype.diagramIndex=0;Format.prototype.currentIndex=0;Format.prototype.showCloseButton=!0;Format.prototype.rounded=!1;Format.prototype.curved=!1;
+Format.doubleBlockFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2" d="M 0 8 L 8 2 L 8 14 Z M 8 8 L 16 2 L 16 14 Z M 16 8 L 24 8" stroke="#404040" fill="#404040"/>',32,20);Format.connectionImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)" stroke-width="2" d="M 0 8 L 26 8 L 26 4 L 32 8 L 26 12 L 26 8 Z" stroke="#404040" fill="#404040"/>',42,20);
+Format.linkEdgeImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)" stroke-width="2" d="M 0 6 L 32 6 M 0 10 L 32 10" stroke="#404040" fill="#404040"/>',42,20);Format.arrowImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)" stroke-width="2" d="M 0 6 L 24 6 L 24 2 L 32 8 L 24 14 L 24 10 L 0 10 Z" stroke="#404040" fill="none"/>',42,20);
+Format.simpleArrowImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)" stroke-width="2" d="M 0 6 L 4 6 L 4 10 L 0 10 Z M 7 6 L 18 6 L 18 2 L 25 8 L 18 14 L 18 10 L 7 10 Z M 28 6 L 28 6 L 32 6 L 32 10 L 28 10 Z" stroke="#404040" fill="none"/>',42,20);Format.straightImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="#404040" fill="none"/>',36,36);
+Format.orthogonalImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="#404040" fill="none"/>',36,36);
+Format.horizontalElbowImage=Graph.createSvgImage(16,18,'<path transform="translate(3,3)rotate(270,0,0)scale(-1,1)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z M 14 11 L 14 5 M 14 3 L 16 5 L 12 5 Z M 14 17 L 14 23 M 14 25 L 16 23 L 12 23 Z" stroke="#404040" fill="none"/>',36,36);
+Format.verticalElbowImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z M 14 11 L 14 5 M 14 3 L 16 5 L 12 5 Z M 14 17 L 14 23 M 14 25 L 16 23 L 12 23 Z" stroke="#404040" fill="none"/>',36,36);
+Format.horizontalIsometricImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 19 17 L 10 12 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="#404040" fill="none"/>',36,36);Format.verticalIsometricImage=Graph.createSvgImage(16,18,'<path transform="translate(32,4)scale(-1,1)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 19 17 L 10 12 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="#404040" fill="none"/>',36,36);
+Format.curvedImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 Q 2 14 14 14 Q 28 14 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="#404040" fill="none"/>',36,36);Format.entityImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 28 L 10 28 L 20 2 L 26 2 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="#404040" fill="none"/>',36,36);
+Format.processMenuIcon=function(a,b){var e=a.getElementsByTagName("img");0<e.length&&(e[0].className="geIcon geAdaptiveAsset",e[0].style.padding="0px",e[0].style.margin="0 0 0 2px",null!=b&&mxUtils.setPrefixedStyle(e[0].style,"transform",b));return a};Format.prototype.labelIndex=0;Format.prototype.diagramIndex=0;Format.prototype.currentIndex=0;Format.prototype.showCloseButton=!0;Format.prototype.rounded=!1;Format.prototype.curved=!1;
Format.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 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,
+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,p=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,
-a,e));else{f.style.backgroundColor=Format.inactiveTabBackgroundColor;f.style.borderLeftWidth="1px";f.style.cursor="pointer";f.style.width=0==h.cells.length?"100%":d?"50%":"33.3%";u=f.cloneNode(!1);var z=u.cloneNode(!1);u.style.backgroundColor=Format.inactiveTabBackgroundColor;z.style.backgroundColor=Format.inactiveTabBackgroundColor;d?u.style.borderLeftWidth="0px":0<h.cells.length&&(f.style.borderLeftWidth="0px",mxUtils.write(f,mxResources.get("style")),e.appendChild(f),w=e.cloneNode(!1),w.style.display=
-"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 I=k.getSelectionState().cells;u.setCellStyles(b,G,I);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(I,function(T){T.removeAttribute("size");T.style.fontSize="";""==T.getAttribute("style")&&T.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};
+"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;p(f,h,k++);var x=e.cloneNode(!1);x.style.display="none";mxUtils.write(u,
+mxResources.get("style"));e.appendChild(u);this.panels.push(new DiagramStylePanel(this,a,x));this.container.appendChild(x);p(u,x,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",p=document.createElement("img"),p.className="geAdaptiveAsset",p.setAttribute("border","0"),p.setAttribute("src",Editor.crossImage),p.setAttribute("title",mxResources.get("hide")),p.style.width="16px",p.style.height="16px",p.style.opacity=.5,u.appendChild(p),mxEvent.addListener(p,"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,
+a,e));else{f.style.backgroundColor=Format.inactiveTabBackgroundColor;f.style.borderLeftWidth="1px";f.style.cursor="pointer";f.style.width=0==h.cells.length?"100%":d?"50%":"33.3%";u=f.cloneNode(!1);var z=u.cloneNode(!1);u.style.backgroundColor=Format.inactiveTabBackgroundColor;z.style.backgroundColor=Format.inactiveTabBackgroundColor;d?u.style.borderLeftWidth="0px":0<h.cells.length&&(f.style.borderLeftWidth="0px",mxUtils.write(f,mxResources.get("style")),e.appendChild(f),x=e.cloneNode(!1),x.style.display=
+"none",this.panels.push(new StyleFormatPanel(this,a,x)),this.container.appendChild(x),p(f,x,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?p(u,f,k+1):u.style.display="none";
+p(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,p){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 x=null,z=!1,C=null,E=mxUtils.bind(this,function(D){var G=m?parseFloat(a.value):parseInt(a.value);p&&(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!=x&&(u.cellEditor.restoreSelection(x),
+x=null),g(G),a.value=(p?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(T){T.removeAttribute("size");T.style.fontSize="";""==T.getAttribute("style")&&T.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=(p?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&&(x=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};
-BaseFormatPanel.prototype.createStepper=function(a,b,e,f,h,d,g){e=null!=e?e:1;f=null!=f?f:9;var m=10*e,q=document.createElement("div");q.className="geBtnStepper";q.style.position="absolute";var k=document.createElement("div");k.style.position="relative";k.style.height=f+"px";k.style.width="10px";k.className="geBtnUp";q.appendChild(k);var u=k.cloneNode(!1);u.style.border="none";u.style.height=f+"px";u.className="geBtnDown";q.appendChild(u);mxEvent.addGestureListeners(u,function(z){mxEvent.consume(z)},
-null,function(z){""==a.value&&(a.value=d||"2");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C-(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});mxEvent.addGestureListeners(k,function(z){mxEvent.consume(z)},null,function(z){""==a.value&&(a.value=d||"0");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C+(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});if(h){var w=null;mxEvent.addGestureListeners(q,function(z){mxEvent.consume(z)},null,
-function(z){if(null!=w){try{w.select()}catch(C){}w=null;mxEvent.consume(z)}})}else mxEvent.addListener(q,"click",function(z){mxEvent.consume(z)});return q};
+BaseFormatPanel.prototype.createStepper=function(a,b,e,f,h,d,g){e=null!=e?e:1;f=null!=f?f:9;var m=10*e,p=document.createElement("div");p.className="geBtnStepper";p.style.position="absolute";var k=document.createElement("div");k.style.height=f+"px";k.style.backgroundImage="url("+Editor.arrowUpImage+")";k.style.width="10px";p.appendChild(k);var u=k.cloneNode(!1);u.style.height=f+"px";u.style.backgroundImage="url("+Editor.arrowDownImage+")";p.appendChild(u);mxEvent.addGestureListeners(u,function(z){mxEvent.consume(z)},
+null,function(z){""==a.value&&(a.value=d||"2");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C-(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});mxEvent.addGestureListeners(k,function(z){mxEvent.consume(z)},null,function(z){""==a.value&&(a.value=d||"0");var C=g?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C+(mxEvent.isShiftDown(z)?m:e),null!=b&&b(z));mxEvent.consume(z)});if(h){var x=null;mxEvent.addGestureListeners(p,function(z){mxEvent.consume(z)},null,
+function(z){if(null!=x){try{x.select()}catch(C){}x=null;mxEvent.consume(z)}})}else mxEvent.addListener(p,"click",function(z){mxEvent.consume(z)});return p};
BaseFormatPanel.prototype.createOption=function(a,b,e,f,h){var d=document.createElement("div");d.style.display="flex";d.style.alignItems="center";d.style.padding="3px 0px 3px 0px";d.style.height="18px";var g=document.createElement("input");g.setAttribute("type","checkbox");g.style.margin="1px 6px 0px 0px";g.style.verticalAlign="top";d.appendChild(g);var m=document.createElement("div");m.setAttribute("title",a);m.style.display="inline-block";m.style.whiteSpace="nowrap";m.style.textOverflow="ellipsis";
-m.style.overflow="hidden";m.style.maxWidth="75%";m.style.userSelect="none";mxUtils.write(m,a);d.appendChild(m);var q=!1,k=b(),u=function(w,z){q||(q=!0,w?(g.setAttribute("checked","checked"),g.defaultChecked=!0,g.checked=!0):(g.removeAttribute("checked"),g.defaultChecked=!1,g.checked=!1),k!=w&&(k=w,b()!=k&&e(k,z)),q=!1)};mxEvent.addListener(d,"click",function(w){if("disabled"!=g.getAttribute("disabled")){var z=mxEvent.getSource(w);if(z==d||z==m)g.checked=!g.checked;u(g.checked,w)}});u(k);null!=f&&
+m.style.overflow="hidden";m.style.maxWidth="75%";m.style.userSelect="none";mxUtils.write(m,a);d.appendChild(m);var p=!1,k=b(),u=function(x,z){p||(p=!0,x?(g.setAttribute("checked","checked"),g.defaultChecked=!0,g.checked=!0):(g.removeAttribute("checked"),g.defaultChecked=!1,g.checked=!1),k!=x&&(k=x,b()!=k&&e(k,z)),p=!1)};mxEvent.addListener(d,"click",function(x){if("disabled"!=g.getAttribute("disabled")){var z=mxEvent.getSource(x);if(z==d||z==m)g.checked=!g.checked;u(g.checked,x)}});u(k);null!=f&&
(f.install(u),this.listeners.push(f));null!=h&&h(d);return d};
-BaseFormatPanel.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(Q,P){"default"!=Q||P||(Q=m);"default"!=Q&&q&&(Q=mxUtils.getLightDarkColor(Q),Q=k?Q.dark:Q.light);return Q}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");
+BaseFormatPanel.prototype.createCellOption=function(a,b,e,f,h,d,g,m,p){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 x=null!=p?u.getCommonStyle(p):k.getSelectionState().style;return this.createOption(a,function(){return mxUtils.getValue(x,b,e)!=h},function(z){m&&u.stopEditing();if(null!=g)g.funct();else{u.getModel().beginUpdate();try{var C=null!=p?p: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(x,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,p,k){function u(Q,P){"default"!=Q||P||(Q=m);"default"!=Q&&p&&(Q=mxUtils.getLightDarkColor(Q),Q=k()?Q.dark:Q.light);return Q}var x=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(),I=!1,L=null,T=null,K=document.createElement("input");K.setAttribute("type","color");K.style.position="relative";K.style.visibility="hidden";K.style.top="10px";K.style.width="0px";K.style.height="0px";K.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(Q){K.value=u(G);K.click();mxEvent.consume(Q)}));var U=null,Y=function(Q,P){I||(I=!0,null!=d&&d(Q),P||(null!=U&&(z.cellEditor.restoreSelection(U),U=null),e(Q)),G=b(),Q=mxUtils.getLightDarkColor("default"!=G?G:m),P=document.createElement("div"),P.style.width="21px",P.style.height="12px",
-P.style.margin="2px 18px 2px 3px",P.style.borderWidth="1px",P.style.borderStyle="solid",P.style.backgroundColor=Q.cssText,T.innerText="",T.appendChild(P),!q&&mxUtils.isLightDarkColor(G)&&Q.light!=Q.dark?P.style.background="linear-gradient(to right bottom, "+Q.cssText+" 50%, "+mxUtils.invertLightDarkColor(Q).cssText+" 50.3%)":q&&w&&(P.style.backgroundColor=k?Q.dark:Q.light),null!=L?(P.style.width="21px",P.style.margin="2px 18px 2px 3px",P.appendChild(L)):(P.style.width="36px",P.style.margin="3px"),
+P.style.margin="2px 18px 2px 3px",P.style.borderWidth="1px",P.style.borderStyle="solid",P.style.backgroundColor=Q.cssText,T.innerText="",T.appendChild(P),!p&&mxUtils.isLightDarkColor(G)&&Q.light!=Q.dark?P.style.background="linear-gradient(to right bottom, "+Q.cssText+" 50%, "+mxUtils.invertLightDarkColor(Q).cssText+" 50.3%)":p&&x&&(P.style.backgroundColor=k()?Q.dark:Q.light),null!=L?(P.style.width="21px",P.style.margin="2px 18px 2px 3px",P.appendChild(L)):(P.style.width="36px",P.style.margin="3px"),
null!=G&&G!=mxConstants.NONE&&1<G.length&&"string"===typeof G&&(Q="#"==G.charAt(0)?G.substring(1).toUpperCase():G,Q=ColorDialog.prototype.colorNames[Q],null!=Q?T.setAttribute("title",Q):"default"==G?T.setAttribute("title",mxResources.get("useBlackAndWhite")):T.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),T.style.display=E.checked||g?"":
-"none",I=!1)};C.appendChild(K);mxEvent.addListener(K,"change",function(){var Q=K.value;if(!q){var P=mxUtils.getLightDarkColor(G);k?P.dark=Q:P.light=Q;Q="light-dark("+P.light+", "+P.dark+")"}Y(Q)});T=mxUtils.button("",mxUtils.bind(this,function(Q){this.editorUi.pickColor(u(G,!0),function(P){Y(P)},"default"==f?"default":null,m,q);mxEvent.consume(Q)}));T.style.position="absolute";T.style.marginTop="-3px";T.style.left="178px";T.style.height="22px";T.className="geColorBtn";T.style.display=E.checked||g?
-"":"none";C.appendChild(T);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&T.setAttribute("title",a);g||(mxEvent.addListener(C,"click",function(Q){Q=mxEvent.getSource(Q);if(Q==E||"INPUT"!=Q.nodeName)Q!=E&&(E.checked=!E.checked),E.checked||null==G||G==mxConstants.NONE||f==mxConstants.NONE||(f=G),Y(E.checked?f:mxConstants.NONE)}),mxEvent.addGestureListeners(E,mxUtils.bind(this,function(Q){document.activeElement==z.cellEditor.textarea&&
-(U=z.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(Q){document.activeElement==z.cellEditor.textarea&&(U=z.cellEditor.saveSelection())})));Y(G,!0);null!=h&&(h.install(Y),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=
-function(){var k=m.getCellStyle(m.getSelectionCell(),!1);null!=k&&q(k[b],!0)};m.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){m.getModel().removeListener(this.listener)}},f,null,d)};
+"none",I=!1)};C.appendChild(K);mxEvent.addListener(K,"change",function(){var Q=K.value;if(!p){var P=mxUtils.getLightDarkColor(G);k()?P.dark=Q:P.light=Q;Q="light-dark("+P.light+", "+P.dark+")"}Y(Q)});T=mxUtils.button("",mxUtils.bind(this,function(Q){var P=m;p&&k()&&mxUtils.isLightDarkColor(P)&&(P=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(M){Y(M)},"default"==f?"default":null,P,p);mxEvent.consume(Q)}));T.style.position="absolute";T.style.marginTop="-3px";T.style.left=
+"178px";T.style.height="22px";T.className="geColorBtn";T.style.display=E.checked||g?"":"none";C.appendChild(T);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&T.setAttribute("title",a);g||(mxEvent.addListener(C,"click",function(Q){Q=mxEvent.getSource(Q);if(Q==E||"INPUT"!=Q.nodeName)Q!=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(Q){document.activeElement==z.cellEditor.textarea&&(U=z.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(Q){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 p=m.getCellStyle(m.getSelectionCell(),!1);return null!=p?p[b]:null},function(p){m.getModel().beginUpdate();try{var k=g.getSelectionState().cells;m.setCellStyles(b,p,k);null!=h&&h(p);g.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[p],"cells",k))}finally{m.getModel().endUpdate()}},e||mxConstants.NONE,{install:function(p){this.listener=
+function(){var k=m.getCellStyle(m.getSelectionCell(),!1);null!=k&&p(k[b],!0)};m.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){m.getModel().removeListener(this.listener)}},f,null,d)};
BaseFormatPanel.prototype.addArrow=function(a){a.className="geColorBtn";a.style.display="inline-flex";a.style.alignItems="top";a.style.boxSizing="border-box";a.style.width="64px";a.style.height="22px";a.style.borderWidth="1px";a.style.borderStyle="solid";a.style.margin="2px 2px 2px 3px";var b=document.createElement("div");b.className="geAdaptiveAsset";b.style.display="inline-block";b.style.backgroundImage="url("+Editor.thinExpandImage+")";b.style.backgroundRepeat="no-repeat";b.style.backgroundPosition=
"-2px 1px";b.style.backgroundSize="18px 18px";b.style.opacity="0.5";b.style.height="100%";b.style.width="14px";a.appendChild(b);a=a.getElementsByTagName("div")[0];null!=a&&(a.style.display="inline-block",a.style.backgroundPositionX="center",a.style.textAlign="center",a.style.height="100%",a.style.flexGrow="1",a.style.opacity="0.6");return a};
-BaseFormatPanel.prototype.addUnitInput=function(a,b,e,f,h,d,g,m,q){g=null!=g?g:0;b=document.createElement("input");b.style.position="absolute";b.style.textAlign="right";b.style.marginTop="-2px";b.style.left=228-e-f+"px";b.style.width=f+"px";b.style.height="21px";b.style.borderWidth="1px";b.style.borderStyle="solid";b.style.boxSizing="border-box";a.appendChild(b);f=this.createStepper(b,h,d,null,m,null,q);f.style.marginTop=g-2+"px";f.style.left=228-e+"px";a.appendChild(f);return b};
-BaseFormatPanel.prototype.addGenericInput=function(a,b,e,f,h,d){var g=this.editorUi.editor.graph,m=function(){d(q.value)},q=this.addUnitInput(a,b,e,f,m),k=mxUtils.bind(this,function(u,w,z){if(z||q!=document.activeElement)q.value=h()+b});mxEvent.addListener(q,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});
-k();mxEvent.addListener(q,"blur",m);mxEvent.addListener(q,"change",m);return q};
-BaseFormatPanel.prototype.createRelativeOption=function(a,b,e,f,h){e=null!=e?e:52;var d=this.editorUi,g=d.editor.graph,m=this.createPanel();m.style.paddingTop="10px";m.style.paddingBottom="12px";mxUtils.write(m,a);m.style.fontWeight="bold";a=mxUtils.bind(this,function(u){if(null!=f)f(q);else{var w=parseInt(q.value);w=Math.min(100,Math.max(0,isNaN(w)?100:w));var z=g.view.getState(d.getSelectionState().cells[0]);null!=z&&w!=mxUtils.getValue(z.style,b,100)&&(100==w&&(w=null),z=d.getSelectionState().cells,
-g.setCellStyles(b,w,z),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[w],"cells",z)));q.value=(null!=w?w:"100")+" %"}mxEvent.consume(u)});var q=this.addUnitInput(m,"%",16,e,a,10,mxClient.IS_MAC&&mxClient.IS_GC?-14:mxClient.IS_WIN?-16:-15,null!=f);if(null!=b){var k=mxUtils.bind(this,function(u,w,z){if(z||q!=document.activeElement)u=d.getSelectionState(),u=parseInt(mxUtils.getValue(u.style,b,100)),q.value=isNaN(u)?"":u+" %"});mxEvent.addListener(q,"keydown",function(u){13==
-u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});k()}mxEvent.addListener(q,"blur",a);mxEvent.addListener(q,"change",a);null!=h&&h(q);return m};
+BaseFormatPanel.prototype.addUnitInput=function(a,b,e,f,h,d,g,m,p){g=null!=g?g:0;b=document.createElement("input");b.style.position="absolute";b.style.textAlign="right";b.style.marginTop="-2px";b.style.left=228-e-f+"px";b.style.width=f+"px";b.style.height="21px";b.style.borderWidth="1px";b.style.borderStyle="solid";b.style.boxSizing="border-box";a.appendChild(b);f=this.createStepper(b,h,d,null,m,null,p);f.style.marginTop=g-2+"px";f.style.left=228-e+"px";a.appendChild(f);return b};
+BaseFormatPanel.prototype.addGenericInput=function(a,b,e,f,h,d){var g=this.editorUi.editor.graph,m=function(){d(p.value)},p=this.addUnitInput(a,b,e,f,m),k=mxUtils.bind(this,function(u,x,z){if(z||p!=document.activeElement)p.value=h()+b});mxEvent.addListener(p,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});
+k();mxEvent.addListener(p,"blur",m);mxEvent.addListener(p,"change",m);return p};
+BaseFormatPanel.prototype.createRelativeOption=function(a,b,e,f,h){e=null!=e?e:52;var d=this.editorUi,g=d.editor.graph,m=this.createPanel();m.style.paddingTop="10px";m.style.paddingBottom="12px";mxUtils.write(m,a);m.style.fontWeight="bold";a=mxUtils.bind(this,function(u){if(null!=f)f(p);else{var x=parseInt(p.value);x=Math.min(100,Math.max(0,isNaN(x)?100:x));var z=g.view.getState(d.getSelectionState().cells[0]);null!=z&&x!=mxUtils.getValue(z.style,b,100)&&(100==x&&(x=null),z=d.getSelectionState().cells,
+g.setCellStyles(b,x,z),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[x],"cells",z)));p.value=(null!=x?x:"100")+" %"}mxEvent.consume(u)});var p=this.addUnitInput(m,"%",16,e,a,10,0,null!=f);if(null!=b){var k=mxUtils.bind(this,function(u,x,z){if(z||p!=document.activeElement)u=d.getSelectionState(),u=parseInt(mxUtils.getValue(u.style,b,100)),p.value=isNaN(u)?"":u+" %"});mxEvent.addListener(p,"keydown",function(u){13==u.keyCode?(g.container.focus(),mxEvent.consume(u)):27==
+u.keyCode&&(k(null,null,!0),g.container.focus(),mxEvent.consume(u))});g.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){g.getModel().removeListener(k)}});k()}mxEvent.addListener(p,"blur",a);mxEvent.addListener(p,"change",a);null!=h&&h(p);return m};
BaseFormatPanel.prototype.addLabel=function(a,b,e,f){f=null!=f?f:61;var h=document.createElement("div");mxUtils.write(h,b);h.style.position="absolute";h.style.left=240-e-f+"px";h.style.width=f+"px";h.style.marginTop="6px";h.style.display="flex";h.style.justifyContent="center";a.appendChild(h);return h};
BaseFormatPanel.prototype.addKeyHandler=function(a,b){mxEvent.addListener(a,"keydown",mxUtils.bind(this,function(e){13==e.keyCode?(this.editorUi.editor.graph.container.focus(),mxEvent.consume(e)):27==e.keyCode&&(null!=b&&b(null,null,!0),this.editorUi.editor.graph.container.focus(),mxEvent.consume(e))}))};
BaseFormatPanel.prototype.styleButtons=function(a){for(var b=0;b<a.length;b++)mxUtils.setPrefixedStyle(a[b].style,"borderRadius","3px"),a[b].style.border="1px solid #a0a0a0",a[b].style.padding="4px",a[b].style.paddingTop="3px",a[b].style.paddingRight="1px",a[b].style.margin="1px",a[b].style.marginRight="2px",a[b].style.width="24px",a[b].style.height="20px"};
@@ -3044,153 +3066,152 @@ BaseFormatPanel.prototype.destroy=function(){if(null!=this.listeners){for(var a=
ArrangePanel.prototype.init=function(){var a=this.editorUi.getSelectionState();0<a.cells.length&&(this.container.appendChild(this.addLayerOps(this.createPanel())),this.addGeometry(this.container),this.addEdgeGeometry(this.container),a.containsLabel&&0!=a.edges.length||this.container.appendChild(this.addAngle(this.createPanel())),a.containsLabel||this.container.appendChild(this.addFlip(this.createPanel())),this.container.appendChild(this.addAlign(this.createPanel())),1<a.vertices.length&&!a.cell&&
!a.row&&this.container.appendChild(this.addDistribute(this.createPanel())),this.container.appendChild(this.addTable(this.createPanel())));this.container.appendChild(this.addGroupOps(this.createPanel()));a.containsLabel&&(1==a.cells.length&&(a=document.createElement("div"),a.style.width="100%",a.style.marginTop="0px",a.style.fontWeight="bold",a.style.padding="10px 0 0 14px",mxUtils.write(a,mxResources.get("style")),this.container.appendChild(a)),new StyleFormatPanel(this.format,this.editorUi,this.container))};
ArrangePanel.prototype.addTable=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="10px";var h=document.createElement("div");h.style.marginTop="0px";h.style.marginBottom="6px";h.style.fontWeight="bold";mxUtils.write(h,mxResources.get("table"));a.appendChild(h);h=document.createElement("div");h.style.position="relative";h.style.paddingLeft="0px";h.style.borderWidth="0px";h.style.width="220px";h.className="geToolbarContainer";var d=
-f.vertices[0];1<e.getSelectionCount()&&(e.isTableCell(d)&&(d=e.model.getParent(d)),e.isTableRow(d)&&(d=e.model.getParent(d)));var g=f.table||f.row||f.cell,m=e.isStack(d)||e.isStackChild(d),q=g;m&&(g="0"==(e.isStack(d)?f.style:e.getCellStyle(e.model.getParent(d))).horizontalStack,q=!g);var k=[];q&&(k=k.concat([b.toolbar.addButton("geSprite-insertcolumnbefore",mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!0):e.insertTableColumn(d,!0)}catch(u){b.handleError(u)}}),
-h),b.toolbar.addButton("geSprite-insertcolumnafter",mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!1):e.insertTableColumn(d,!1)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton("geSprite-deletecolumn",mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{m?e.deleteLane(d):e.deleteTableColumn(d)}catch(u){b.handleError(u)}}),h)]));g&&(k=k.concat([b.toolbar.addButton("geSprite-insertrowbefore",mxResources.get("insertRowBefore"),mxUtils.bind(this,
-function(){try{m?e.insertLane(d,!0):e.insertTableRow(d,!0)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton("geSprite-insertrowafter",mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!1):e.insertTableRow(d,!1)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton("geSprite-deleterow",mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{m?e.deleteLane(d):e.deleteTableRow(d)}catch(u){b.handleError(u)}}),h)]));if(0<k.length){this.styleButtons(k);a.appendChild(h);
-3<k.length&&(k[2].style.marginRight="10px");q=0;if(null!=f.mergeCell)q+=this.addActions(a,["mergeCells"]);else if(1<f.style.colspan||1<f.style.rowspan)q+=this.addActions(a,["unmergeCells"]);0<q&&(h.style.paddingBottom="2px")}else a.style.display="none";return a};ArrangePanel.prototype.addLayerOps=function(a){this.addActions(a,["toFront","toBack"]);this.addActions(a,["bringForward","sendBackward"]);return a};
+f.vertices[0];1<e.getSelectionCount()&&(e.isTableCell(d)&&(d=e.model.getParent(d)),e.isTableRow(d)&&(d=e.model.getParent(d)));var g=f.table||f.row||f.cell,m=e.isStack(d)||e.isStackChild(d),p=g;m&&(g="0"==(e.isStack(d)?f.style:e.getCellStyle(e.model.getParent(d))).horizontalStack,p=!g);var k=[];p&&(k=k.concat([b.toolbar.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!0):e.insertTableColumn(d,!0)}catch(u){b.handleError(u)}}),
+h),b.toolbar.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!1):e.insertTableColumn(d,!1)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{m?e.deleteLane(d):e.deleteTableColumn(d)}catch(u){b.handleError(u)}}),h)]));g&&(k=k.concat([b.toolbar.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{m?
+e.insertLane(d,!0):e.insertTableRow(d,!0)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{m?e.insertLane(d,!1):e.insertTableRow(d,!1)}catch(u){b.handleError(u)}}),h),b.toolbar.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{m?e.deleteLane(d):e.deleteTableRow(d)}catch(u){b.handleError(u)}}),h)]));if(0<k.length){this.styleButtons(k);a.appendChild(h);3<k.length&&
+(k[2].style.marginRight="10px");p=0;if(null!=f.mergeCell)p+=this.addActions(a,["mergeCells"]);else if(1<f.style.colspan||1<f.style.rowspan)p+=this.addActions(a,["unmergeCells"]);0<p&&(h.style.paddingBottom="2px")}else a.style.display="none";return a};ArrangePanel.prototype.addLayerOps=function(a){this.addActions(a,["toFront","toBack"]);this.addActions(a,["bringForward","sendBackward"]);return a};
ArrangePanel.prototype.addGroupOps=function(a){var b=this.editorUi,e=b.editor.graph;b=b.getSelectionState();a.style.paddingTop="8px";a.style.paddingBottom="6px";var f=this.addActions(a,["group","ungroup"])+this.addActions(a,["removeFromGroup"]);b.cell||b.row||(f+=this.addActions(a,["copySize","pasteSize","swap"]));var h=document.createElement("select");h.style.width="210px";h.style.textAlign="center";h.style.marginBottom="2px";for(var d=[{label:mxResources.get("reset"),action:"reset"},{label:mxResources.get("waypoints"),
-action:"clearWaypoints"},{label:mxResources.get("connectionPoints"),action:"clearAnchors"}],g=0;g<d.length;g++){var m=this.editorUi.actions.get(d[g].action);if(null==m||m.enabled){var q=document.createElement("option");q.setAttribute("value",d[g].action);q.setAttribute("title",d[g].label+(null!=m&&null!=m.shortcut?" ("+m.shortcut+")":""));mxUtils.write(q,d[g].label);h.appendChild(q)}}1<h.children.length&&(h.value="reset",a.appendChild(h),mxUtils.br(a),f++,mxEvent.addListener(h,"change",mxUtils.bind(this,
+action:"clearWaypoints"},{label:mxResources.get("connectionPoints"),action:"clearAnchors"}],g=0;g<d.length;g++){var m=this.editorUi.actions.get(d[g].action);if(null==m||m.enabled){var p=document.createElement("option");p.setAttribute("value",d[g].action);p.setAttribute("title",d[g].label+(null!=m&&null!=m.shortcut?" ("+m.shortcut+")":""));mxUtils.write(p,d[g].label);h.appendChild(p)}}1<h.children.length&&(h.value="reset",a.appendChild(h),mxUtils.br(a),f++,mxEvent.addListener(h,"change",mxUtils.bind(this,
function(k){k=this.editorUi.actions.get(h.value);h.value="reset";null!=k&&k.funct()})));f+=this.addActions(a,["lockUnlock"]);1==b.vertices.length&&0==b.edges.length&&0<e.getOpposites(e.getEdges(b.vertices[0]),b.vertices[0]).length&&(f+=this.addActions(a,["explore"]));0==f&&(a.style.display="none");return a};
ArrangePanel.prototype.addAlign=function(a){var b=this.editorUi.getSelectionState(),e=this.editorUi.editor.graph;a.style.paddingTop="6px";a.style.paddingBottom="8px";a.appendChild(this.createTitle(mxResources.get("align")));var f=document.createElement("div");f.style.position="relative";f.style.whiteSpace="nowrap";f.style.paddingLeft="0px";f.style.paddingBottom="2px";f.style.borderWidth="0px";f.style.width="220px";f.className="geToolbarContainer";if(1<b.vertices.length){b=this.editorUi.toolbar.addButton(Editor.alignHorizontalLeftImage,
mxResources.get("left"),function(){e.alignCells(mxConstants.ALIGN_LEFT)},f);var h=this.editorUi.toolbar.addButton(Editor.alignHorizontalCenterImage,mxResources.get("center"),function(){e.alignCells(mxConstants.ALIGN_CENTER)},f),d=this.editorUi.toolbar.addButton(Editor.alignHorizontalRightImage,mxResources.get("right"),function(){e.alignCells(mxConstants.ALIGN_RIGHT)},f),g=this.editorUi.toolbar.addButton(Editor.alignVerticalTopImage,mxResources.get("top"),function(){e.alignCells(mxConstants.ALIGN_TOP)},
-f),m=this.editorUi.toolbar.addButton(Editor.alignVerticalMiddleImage,mxResources.get("middle"),function(){e.alignCells(mxConstants.ALIGN_MIDDLE)},f),q=this.editorUi.toolbar.addButton(Editor.alignVerticalBottomImage,mxResources.get("bottom"),function(){e.alignCells(mxConstants.ALIGN_BOTTOM)},f);this.styleButtons([b,h,d,g,m,q]);d.style.marginRight="10px"}a.appendChild(f);this.addActions(a,["snapToGrid"]);return a};
+f),m=this.editorUi.toolbar.addButton(Editor.alignVerticalMiddleImage,mxResources.get("middle"),function(){e.alignCells(mxConstants.ALIGN_MIDDLE)},f),p=this.editorUi.toolbar.addButton(Editor.alignVerticalBottomImage,mxResources.get("bottom"),function(){e.alignCells(mxConstants.ALIGN_BOTTOM)},f);this.styleButtons([b,h,d,g,m,p]);d.style.marginRight="10px"}a.appendChild(f);this.addActions(a,["snapToGrid"]);return a};
ArrangePanel.prototype.addFlip=function(a){var b=this.editorUi.editor.graph;a.style.paddingTop="6px";a.style.paddingBottom="10px";var e=this.editorUi.getSelectionState(),f=document.createElement("div");f.style.marginTop="2px";f.style.marginBottom="8px";f.style.fontWeight="bold";mxUtils.write(f,mxResources.get("flip"));a.appendChild(f);f=mxUtils.button(mxResources.get("horizontal"),function(h){b.flipCells(e.cells,!0)});f.setAttribute("title",mxResources.get("horizontal"));f.style.width="104px";f.style.marginRight=
"2px";a.appendChild(f);f=mxUtils.button(mxResources.get("vertical"),function(h){b.flipCells(e.cells,!1)});f.setAttribute("title",mxResources.get("vertical"));f.style.width="104px";a.appendChild(f);return a};
ArrangePanel.prototype.addDistribute=function(a){var b=this.editorUi.editor.graph;a.style.paddingTop="6px";a.style.paddingBottom="8px";a.appendChild(this.createTitle(mxResources.get("distribute")));var e=mxUtils.button(mxResources.get("horizontal"),function(d){b.distributeCells(!0,null,f.checked)});e.setAttribute("title",mxResources.get("horizontal"));e.style.width="104px";e.style.marginRight="2px";a.appendChild(e);e=mxUtils.button(mxResources.get("vertical"),function(d){b.distributeCells(!1,null,
f.checked)});e.setAttribute("title",mxResources.get("vertical"));e.style.width="104px";a.appendChild(e);mxUtils.br(a);e=document.createElement("div");e.style.margin="6px 0 0 0";e.style.display="flex";e.style.justifyContent="center";e.style.alignItems="center";var f=document.createElement("input");f.setAttribute("type","checkbox");f.setAttribute("id","spacingCheckbox");f.style.margin="0 6px 0 0";e.appendChild(f);var h=document.createElement("label");h.style.verticalAlign="top";h.setAttribute("for",
"spacingCheckbox");h.style.userSelect="none";mxUtils.write(h,mxResources.get("spacing"));e.appendChild(h);a.appendChild(e);return a};
ArrangePanel.prototype.addAngle=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingBottom="12px";var h=document.createElement("div");h.style.position="absolute";h.style.width="70px";h.style.marginTop="0px";h.style.fontWeight="bold";var d=null,g=null,m=null;!f.rotatable||f.table||f.row||f.cell?a.style.paddingTop="8px":(mxUtils.write(h,mxResources.get("angle")),a.appendChild(h),d=this.addUnitInput(a,"°",16,52,function(){g.apply(this,arguments)}),mxUtils.br(a),a.style.paddingTop=
-"10px");f.containsLabel||(h=mxResources.get("reverse"),0<f.vertices.length&&0<f.edges.length?h=mxResources.get("turn")+" / "+h:0<f.vertices.length&&(h=mxResources.get("turn")),m=mxUtils.button(h,function(k){b.actions.get("turn").funct(k)}),m.setAttribute("title",h+" ("+this.editorUi.actions.get("turn").shortcut+")"),m.style.width="210px",a.appendChild(m),null!=d&&(m.style.marginTop="8px"));if(null!=d){var q=mxUtils.bind(this,function(k,u,w){if(w||document.activeElement!=d)f=b.getSelectionState(),
-k=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_ROTATION,0)),d.value=isNaN(k)?"":k+"°"});g=this.installInputHandler(d,mxConstants.STYLE_ROTATION,0,0,360,"°",null,!0);this.addKeyHandler(d,q);e.getModel().addListener(mxEvent.CHANGE,q);this.listeners.push({destroy:function(){e.getModel().removeListener(q)}});q()}return a};
+"10px");f.containsLabel||(h=mxResources.get("reverse"),0<f.vertices.length&&0<f.edges.length?h=mxResources.get("turn")+" / "+h:0<f.vertices.length&&(h=mxResources.get("turn")),m=mxUtils.button(h,function(k){b.actions.get("turn").funct(k)}),m.setAttribute("title",h+" ("+this.editorUi.actions.get("turn").shortcut+")"),m.style.width="210px",a.appendChild(m),null!=d&&(m.style.marginTop="8px"));if(null!=d){var p=mxUtils.bind(this,function(k,u,x){if(x||document.activeElement!=d)f=b.getSelectionState(),
+k=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_ROTATION,0)),d.value=isNaN(k)?"":k+"°"});g=this.installInputHandler(d,mxConstants.STYLE_ROTATION,0,0,360,"°",null,!0);this.addKeyHandler(d,p);e.getModel().addListener(mxEvent.CHANGE,p);this.listeners.push({destroy:function(){e.getModel().removeListener(p)}});p()}return a};
BaseFormatPanel.prototype.getUnit=function(a){var b="";switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:b="pt";break;case mxConstants.INCHES:b='"';break;case mxConstants.MILLIMETERS:b="mm";break;case mxConstants.METERS:b="m"}return(a?a:"")+b};BaseFormatPanel.prototype.inUnit=function(a){return this.editorUi.editor.graph.view.formatUnitText(a)};
BaseFormatPanel.prototype.fromUnit=function(a){switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:return a;case mxConstants.INCHES:return a*mxConstants.PIXELS_PER_INCH;case mxConstants.MILLIMETERS:return a*mxConstants.PIXELS_PER_MM;case mxConstants.METERS:return a*mxConstants.PIXELS_PER_MM*1E3}};BaseFormatPanel.prototype.isFloatUnit=function(){return this.editorUi.editor.graph.view.unit!=mxConstants.POINTS};
BaseFormatPanel.prototype.getUnitStep=function(){switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:return 1;case mxConstants.INCHES:return.1;case mxConstants.MILLIMETERS:return.5;case mxConstants.METERS:return.001}};
-ArrangePanel.prototype.addGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=f.getModel(),d=e.getSelectionState(),g=this.createPanel();g.style.paddingBottom="8px";var m=document.createElement("div");m.style.position="absolute";m.style.width="50px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("size"));g.appendChild(m);var q=this.addUnitInput(g,this.getUnit(),87,52,function(){C.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),
+ArrangePanel.prototype.addGeometry=function(a){var b=this,e=this.editorUi,f=e.editor.graph,h=f.getModel(),d=e.getSelectionState(),g=this.createPanel();g.style.paddingBottom="8px";var m=document.createElement("div");m.style.position="absolute";m.style.width="50px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("size"));g.appendChild(m);var p=this.addUnitInput(g,this.getUnit(),87,52,function(){C.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),
k=this.addUnitInput(g,this.getUnit(),16,52,function(){E.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),u=document.createElement("div");u.className="geAdaptiveAsset";u.style.backgroundImage="url("+Editor.autosizeImage+")";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";u.style.backgroundSize="18px 18px";u.style.width="21px";u.style.height="21px";u.setAttribute("title",mxResources.get("autosize")+" ("+this.editorUi.actions.get("autosize").shortcut+
-")");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(M,W,aa){W=Math.max(1,b.fromUnit(W));if(f.isTableCell(aa))return f.setTableColumnWidth(aa,W-M.width,!0),!0;0<M.width&&(z.checked&&(M.height=Math.round(M.height*W*100/M.width)/100),M.width=W)});var E=this.addGeometryHandler(k,function(M,W,aa){W=Math.max(1,b.fromUnit(W));f.isTableCell(aa)&&(aa=h.getParent(aa));if(f.isTableRow(aa))return f.setTableRowHeight(aa,W-M.height),!0;0<M.height&&(z.checked&&(M.width=Math.round(M.width*W*100/M.height)/100),M.height=W)});
+")");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?(p.style.visibility="hidden",p.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 x=this.createCellOption(mxResources.get("constrainProportions"),mxConstants.STYLE_ASPECT,null,"fixed","null");x.style.width="210px";m.appendChild(x);d.cell||d.row?u.style.visibility="hidden":g.appendChild(m);var z=x.getElementsByTagName("input")[0];this.addKeyHandler(p,Y);this.addKeyHandler(k,
+Y);var C=this.addGeometryHandler(p,function(M,V,aa){V=Math.max(1,b.fromUnit(V));if(f.isTableCell(aa))return f.setTableColumnWidth(aa,V-M.width,!0),!0;0<M.width&&(z.checked&&(M.height=Math.round(M.height*V*100/M.width)/100),M.width=V)});var E=this.addGeometryHandler(k,function(M,V,aa){V=Math.max(1,b.fromUnit(V));f.isTableCell(aa)&&(aa=h.getParent(aa));if(f.isTableRow(aa))return f.setTableRowHeight(aa,V-M.height),!0;0<M.height&&(z.checked&&(M.width=Math.round(M.width*V*100/M.height)/100),M.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(){Q.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),I=this.addUnitInput(D,this.getUnit(),16,52,function(){P.apply(this,arguments)},
-this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(D);w=!0;var L=null,T=null;if(d.movable){if(0==d.edges.length&&1==d.vertices.length){var K=f.getCellGeometry(d.vertices[0]);if(null!=K&&K.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*K.x)/10},function(M){M=parseFloat(M);if(!isNaN(M)){h.beginUpdate();
-try{K=K.clone(),K.x=parseFloat(M)/100,h.setGeometry(d.vertices[0],K)}finally{h.endUpdate()}}});if(h.isEdge(h.getParent(d.vertices[0]))){w=!1;var U=null;T=this.addUnitInput(D,this.getUnit(),16,52,function(){U.apply(this,arguments)});U=this.addGeometryHandler(T,function(M,W){M.y=b.fromUnit(W)})}else T=this.addGenericInput(D," %",16,52,function(){return Math.round(1E3*K.y)/10},function(M){M=parseFloat(M);if(!isNaN(M)){h.beginUpdate();try{K=K.clone(),K.y=parseFloat(M)/100,h.setGeometry(d.vertices[0],
-K)}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(M,W,aa){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(aa||document.activeElement!=q)q.value=this.inUnit(d.width)+" "+this.getUnit();
+this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(D);x=!0;var L=null,T=null;if(d.movable){if(0==d.edges.length&&1==d.vertices.length){var K=f.getCellGeometry(d.vertices[0]);if(null!=K&&K.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*K.x)/10},function(M){M=parseFloat(M);if(!isNaN(M)){h.beginUpdate();
+try{K=K.clone(),K.x=parseFloat(M)/100,h.setGeometry(d.vertices[0],K)}finally{h.endUpdate()}}});if(h.isEdge(h.getParent(d.vertices[0]))){x=!1;var U=null;T=this.addUnitInput(D,this.getUnit(),16,52,function(){U.apply(this,arguments)});U=this.addGeometryHandler(T,function(M,V){M.y=b.fromUnit(V)})}else T=this.addGenericInput(D," %",16,52,function(){return Math.round(1E3*K.y)/10},function(M){M=parseFloat(M);if(!isNaN(M)){h.beginUpdate();try{K=K.clone(),K.y=parseFloat(M)/100,h.setGeometry(d.vertices[0],
+K)}finally{h.endUpdate()}}});mxUtils.br(D)}}a.appendChild(D)}this.addLabel(D,mxResources.get(x?"left":"line"),87,64).style.marginTop="8px";this.addLabel(D,mxResources.get(x?"top":"orthogonal"),16,64).style.marginTop="8px";var Y=mxUtils.bind(this,function(M,V,aa){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(aa||document.activeElement!=p)p.value=this.inUnit(d.width)+" "+this.getUnit();
if(aa||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){M=f.getCellGeometry(d.vertices[0]);D.style.display="";if(aa||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(aa||document.activeElement!=I)I.value=this.inUnit(d.y)+" "+this.getUnit();null!=M&&M.relative&&(null==L||!aa&&document.activeElement==L||(L.value=Math.round(1E3*M.x)/10+" %"),null==T||!aa&&document.activeElement==
-T||(h.isEdge(h.getParent(d.vertices[0]))?T.value=this.inUnit(M.y)+" "+this.getUnit():T.value=Math.round(1E3*M.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 Q=this.addGeometryHandler(G,function(M,W){W=b.fromUnit(W);M.relative?(M.offset=null!=M.offset?M.offset:new mxPoint,M.offset.x=W):M.x=W});var P=this.addGeometryHandler(I,function(M,W){W=b.fromUnit(W);
-M.relative?(M.offset=null!=M.offset?M.offset:new mxPoint,M.offset.y=W):M.y=W});d.movable&&(0==d.edges.length&&1==d.vertices.length&&h.isEdge(h.getParent(d.vertices[0]))&&(K=f.getCellGeometry(d.vertices[0]),null!=K&&K.relative&&(m=mxUtils.button(mxResources.get("center"),mxUtils.bind(this,function(M){h.beginUpdate();try{K=K.clone(),K.x=0,K.y=0,K.offset=new mxPoint,h.setGeometry(d.vertices[0],K)}finally{h.endUpdate()}})),m.setAttribute("title",mxResources.get("center")),m.style.width="134px",m.style.left=
+T||(h.isEdge(h.getParent(d.vertices[0]))?T.value=this.inUnit(M.y)+" "+this.getUnit():T.value=Math.round(1E3*M.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 Q=this.addGeometryHandler(G,function(M,V){V=b.fromUnit(V);M.relative?(M.offset=null!=M.offset?M.offset:new mxPoint,M.offset.x=V):M.x=V});var P=this.addGeometryHandler(I,function(M,V){V=b.fromUnit(V);
+M.relative?(M.offset=null!=M.offset?M.offset:new mxPoint,M.offset.y=V):M.y=V});d.movable&&(0==d.edges.length&&1==d.vertices.length&&h.isEdge(h.getParent(d.vertices[0]))&&(K=f.getCellGeometry(d.vertices[0]),null!=K&&K.relative&&(m=mxUtils.button(mxResources.get("center"),mxUtils.bind(this,function(M){h.beginUpdate();try{K=K.clone(),K.x=0,K.y=0,K.offset=new mxPoint,h.setGeometry(d.vertices[0],K)}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=
-q;a.value=q+" "+g.getUnit()}}mxEvent.consume(m)}var f=this.editorUi,h=f.editor.graph,d=null,g=this;mxEvent.addListener(a,"blur",e);mxEvent.addListener(a,"change",e);mxEvent.addListener(a,"focus",function(){d=a.value});return e};
-ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function e(g){if(""!=a.value){var m=parseFloat(a.value);if(isNaN(m))a.value=d+" pt";else if(m!=d){h.getModel().beginUpdate();try{for(var q=f.getSelectionState().cells,k=0;k<q.length;k++)if(h.getModel().isEdge(q[k])){var u=h.getCellGeometry(q[k]);null!=u&&(u=u.clone(),b(u,m),h.getModel().setGeometry(q[k],u))}}finally{h.getModel().endUpdate()}d=m;a.value=m+" pt"}}mxEvent.consume(g)}var f=this.editorUi,h=f.editor.graph,d=null;mxEvent.addListener(a,
+ArrangePanel.prototype.addGeometryHandler=function(a,b){function e(m){if(""!=a.value){var p=parseFloat(a.value);if(isNaN(p))a.value=d+" "+g.getUnit();else if(p!=d){h.getModel().beginUpdate();try{for(var k=f.getSelectionState().cells,u=0;u<k.length;u++)if(h.getModel().isVertex(k[u])){var x=h.getCellGeometry(k[u]);if(null!=x&&(x=x.clone(),!b(x,p,k[u]))){var z=h.view.getState(k[u]);null!=z&&h.isRecursiveVertexResize(z)&&h.resizeChildCells(k[u],x);h.getModel().setGeometry(k[u],x);h.constrainChildCells(k[u])}}}finally{h.getModel().endUpdate()}d=
+p;a.value=p+" "+g.getUnit()}}mxEvent.consume(m)}var f=this.editorUi,h=f.editor.graph,d=null,g=this;mxEvent.addListener(a,"blur",e);mxEvent.addListener(a,"change",e);mxEvent.addListener(a,"focus",function(){d=a.value});return e};
+ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function e(g){if(""!=a.value){var m=parseFloat(a.value);if(isNaN(m))a.value=d+" pt";else if(m!=d){h.getModel().beginUpdate();try{for(var p=f.getSelectionState().cells,k=0;k<p.length;k++)if(h.getModel().isEdge(p[k])){var u=h.getCellGeometry(p[k]);null!=u&&(u=u.clone(),b(u,m),h.getModel().setGeometry(p[k],u))}}finally{h.getModel().endUpdate()}d=m;a.value=m+" pt"}}mxEvent.consume(g)}var f=this.editorUi,h=f.editor.graph,d=null;mxEvent.addListener(a,
"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(K){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(K)});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(){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(){T.apply(this,arguments)},this.getUnitStep(),null,
+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(){p.apply(this,arguments)});mxUtils.br(d);this.addKeyHandler(m,D);var p=mxUtils.bind(this,function(K){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(K)});mxEvent.addListener(m,"blur",p);mxEvent.addListener(m,"change",p);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()),x=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(x,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(){T.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(K,U,Y){h=e.getSelectionState();K=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(K)?(Y=f.model.getGeometry(K),null!=Y&&null!=Y.sourcePoint&&null==f.model.getTerminal(K,!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(K,!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(K,U){K.sourcePoint.x=b.fromUnit(U)});var I=this.addEdgeGeometryHandler(w,function(K,U){K.sourcePoint.y=b.fromUnit(U)});var L=this.addEdgeGeometryHandler(C,function(K,U){K.targetPoint.x=b.fromUnit(U)});var T=this.addEdgeGeometryHandler(E,function(K,U){K.targetPoint.y=b.fromUnit(U)});f.getModel().addListener(mxEvent.CHANGE,D);this.listeners.push({destroy:function(){f.getModel().removeListener(D)}});D()};
+"none";1==h.cells.length&&f.model.isEdge(K)?(Y=f.model.getGeometry(K),null!=Y&&null!=Y.sourcePoint&&null==f.model.getTerminal(K,!0)?(u.value=this.inUnit(Y.sourcePoint.x)+" "+this.getUnit(),x.value=this.inUnit(Y.sourcePoint.y)+" "+this.getUnit()):k.style.display="none",null!=Y&&null!=Y.targetPoint&&null==f.model.getTerminal(K,!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(K,U){K.sourcePoint.x=b.fromUnit(U)});var I=this.addEdgeGeometryHandler(x,function(K,U){K.sourcePoint.y=b.fromUnit(U)});var L=this.addEdgeGeometryHandler(C,function(K,U){K.targetPoint.x=b.fromUnit(U)});var T=this.addEdgeGeometryHandler(E,function(K,U){K.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"),
-!0,"formatBlock",q,null,!0);this.addArrow(k);k.style.width="211px";k.style.alignItems="center";k.style.justifyContent="center";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.margin="0px";k.style.position="relative";k=k.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";a.appendChild(q)}a.appendChild(m);q=this.createPanel();q.style.marginTop="8px";q.style.borderWidth="1px";q.style.borderStyle="solid";q.style.paddingTop="6px";q.style.paddingBottom="2px";var u=
-this.editorUi.toolbar.addMenu("Helvetica",mxResources.get("fontFamily"),!0,"fontFamily",m,null,!0);this.addArrow(u);u.style.width="211px";u.style.alignItems="center";u.style.justifyContent="center";u.style.whiteSpace="nowrap";u.style.overflow="hidden";u.style.margin="0px";u.style.position="relative";k=u.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";k=m.cloneNode(!1);k.style.marginLeft="-3px";var w=this.editorUi.toolbar.addItems(["bold","italic","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.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),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 T=this.editorUi.toolbar.addButton(Editor.alignTopImage,mxResources.get("top"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),K=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([T,K,U]);a.appendChild(C);var Y,Q,P,M,W;if(d.cellEditor.isContentEditing()){T.style.display="none";K.style.display="none";U.style.display="none";z.style.display="none";var aa=this.editorUi.toolbar.addButton(Editor.alignJustifyImage,mxResources.get("block"),function(){1==aa.style.opacity&&document.execCommand("justifyfull",!1,null)},C);aa.style.marginRight=
-"9px";this.styleButtons([aa,Y=this.editorUi.toolbar.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},C),Q=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",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(" "),qa={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,mxResources.get(oa[E]));ia.appendChild(O)}C.appendChild(ia);oa=m.cloneNode(!1);oa.removeAttribute("class");
-oa.style.marginLeft="0px";oa.style.paddingTop="4px";oa.style.paddingBottom="4px";oa.style.fontWeight="normal";mxUtils.write(oa,mxResources.get("writingDirection"));var Z=document.createElement("select");Z.style.position="absolute";Z.style.borderWidth="1px";Z.style.borderStyle="solid";Z.style.left="126px";Z.style.width="98px";Z.style.marginTop="-3px";O=["automatic","leftToRight","rightToLeft"];g.html&&(O.push("vertical-leftToRight"),O.push("vertical-rightToLeft"));var ca={automatic:null,leftToRight:mxConstants.TEXT_DIRECTION_LTR,
-rightToLeft:mxConstants.TEXT_DIRECTION_RTL,"vertical-leftToRight":mxConstants.TEXT_DIRECTION_VERTICAL_LR,"vertical-rightToLeft":mxConstants.TEXT_DIRECTION_VERTICAL_RL};for(E=0;E<O.length;E++){var V=document.createElement("option");V.setAttribute("value",O[E]);"vertical-"==O[E].substring(0,9)?mxUtils.write(V,mxResources.get("vertical")+" ("+mxResources.get(O[E].substring(9))+")"):mxUtils.write(V,mxResources.get(O[E]));Z.appendChild(V)}oa.appendChild(Z);d.isEditing()||(a.appendChild(C),mxEvent.addListener(ia,
-"change",function(p){d.getModel().beginUpdate();try{var A=qa[ia.value];null!=A&&(d.setCellStyles(mxConstants.STYLE_LABEL_POSITION,A[0],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_LABEL_POSITION,A[1],g.cells),d.setCellStyles(mxConstants.STYLE_ALIGN,A[2],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_ALIGN,A[3],g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(p)}),a.appendChild(oa),mxEvent.addListener(Z,"change",function(p){d.setCellStyles(mxConstants.STYLE_TEXT_DIRECTION,ca[Z.value],
-g.cells);mxEvent.consume(p)}));var ja=document.createElement("input");ja.style.position="absolute";ja.style.borderWidth="1px";ja.style.borderStyle="solid";ja.style.textAlign="right";ja.style.marginTop="4px";ja.style.left="161px";ja.style.width="53px";ja.style.height="23px";ja.style.boxSizing="border-box";k.appendChild(ja);C=this.installInputHandler(ja,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize,1,999," "+Editor.fontSizeUnit,function(p){if(null!=d.getSelectedEditingElement()){ja.value=
-p+" "+Editor.fontSizeUnit;document.execCommand("fontSize",!1,"1");for(var A=d.cellEditor.textarea.getElementsByTagName("font"),B=0;B<A.length;B++)if("1"==A[B].getAttribute("size")){A[B].removeAttribute("size");A[B].style.fontSize="";var F=mxUtils.getCurrentStyle(A[B]);p!=b(F)?A[B].style.fontSize=p+"px":""==A[B].getAttribute("style")&&A[B].removeAttribute("style")}}},!0);C=this.createStepper(ja,C,1,10,!0,Menus.prototype.defaultFontSize);C.style.display=ja.style.display;C.style.marginTop="4px";C.style.left=
-"214px";k.appendChild(C);k=u.getElementsByTagName("div")[0];k.style.cssFloat="right";var H=null,ea=d.shapeBackgroundColor,la=null,sa=d.shapeForegroundColor;k=mxUtils.getLightDarkColor(d.shapeBackgroundColor);var Pa="light-dark("+mxUtils.hex2rgb(k.light)+", "+mxUtils.hex2rgb(k.dark)+")",ma=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("backgroundColor"),function(){return ea==d.shapeBackgroundColor||ea==Pa?"default":ea},function(p){null!=d.cellEditor.textarea&&("default"==p&&
-(p=d.shapeBackgroundColor),Graph.setTextColor(d.cellEditor.textarea,p,!1),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[p],"cells",g.cells)))},"default",{install:function(p){H=p},destroy:function(){H=null}},null,null,d.shapeBackgroundColor):this.createCellColorOption(mxResources.get("backgroundColor"),mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,"default",null,function(p){d.updateLabelElements(g.cells,function(A){A.style.backgroundColor=null})},
-d.shapeBackgroundColor);ma.style.fontWeight="bold";var Ca=this.createCellColorOption(mxResources.get("borderColor"),mxConstants.STYLE_LABEL_BORDERCOLOR,"default",null,null,d.shapeForegroundColor);Ca.style.fontWeight="bold";k=1<=g.vertices.length?d.stylesheet.getDefaultVertexStyle():d.stylesheet.getDefaultEdgeStyle();k=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("fontColor"),function(){return sa},function(p){null!=d.cellEditor.textarea&&("default"==p&&(p=mxConstants.NONE),
-Graph.setTextColor(d.cellEditor.textarea,p,!0),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTCOLOR],"values",[p],"cells",g.cells)))},"default",{install:function(p){la=p},destroy:function(){la=null}},null,!0,null!=k[mxConstants.STYLE_FONTCOLOR]&&"default"!=k[mxConstants.STYLE_FONTCOLOR]?k[mxConstants.STYLE_FONTCOLOR]:d.shapeForegroundColor):this.createCellColorOption(mxResources.get("fontColor"),mxConstants.STYLE_FONTCOLOR,"default",function(p){ma.style.display=p==mxConstants.NONE?
-"none":"";Ca.style.display=ma.style.display},function(p){p==mxConstants.NONE?d.setCellStyles(mxConstants.STYLE_NOLABEL,"1",g.cells):d.setCellStyles(mxConstants.STYLE_NOLABEL,null,g.cells);d.setCellStyles(mxConstants.STYLE_FONTCOLOR,p,g.cells);d.updateLabelElements(g.cells,function(A){A.removeAttribute("color");A.style.color=null})},d.shapeForegroundColor);k.style.fontWeight="bold";q.appendChild(k);q.appendChild(ma);k=this.createCellOption(mxResources.get("shadow"),mxConstants.STYLE_TEXT_SHADOW,0);
-k.style.width="100%";k.style.fontWeight="bold";Editor.enableShadowOption||(k.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(k,60));d.cellEditor.isContentEditing()||(q.appendChild(Ca),q.appendChild(k));a.appendChild(q);q=this.createPanel();q.style.paddingTop="2px";q.style.paddingBottom="4px";k=d.filterSelectionCells(mxUtils.bind(this,function(p){var A=d.view.getState(p);return null==A||d.isAutoSizeState(A)||d.getModel().isEdge(p)||!d.isTableRow(p)&&!d.isTableCell(p)&&
-!d.isCellResizable(p)}));C=this.createCellOption(mxResources.get("wordWrap"),mxConstants.STYLE_WHITE_SPACE,null,"wrap","null",null,null,!0,k);C.style.fontWeight="bold";0<k.length&&q.appendChild(C);k=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null,h.actions.get("formattedText"));k.style.fontWeight="bold";q.appendChild(k);k=this.createPanel();k.style.paddingTop="10px";k.style.paddingBottom="28px";k.style.fontWeight="normal";C=document.createElement("div");C.style.position=
-"absolute";C.style.width="70px";C.style.marginTop="0px";C.style.fontWeight="bold";mxUtils.write(C,mxResources.get("spacing"));k.appendChild(C);var Da=this.addUnitInput(k,this.getUnit(),87,52,function(){fb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ga=this.addUnitInput(k,this.getUnit(),16,52,function(){cb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("top"),87,64);this.addLabel(k,mxResources.get("global"),
-16,64);mxUtils.br(k);mxUtils.br(k);var Ia=this.addUnitInput(k,this.getUnit(),158,52,function(){ab.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ha=this.addUnitInput(k,this.getUnit(),87,52,function(){gb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ja=this.addUnitInput(k,this.getUnit(),16,52,function(){pb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),158,64);this.addLabel(k,
-mxResources.get("bottom"),87,64);this.addLabel(k,mxResources.get("right"),16,64);if(d.cellEditor.isContentEditing()){var ta=null,La=null;a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(p){var A=""==p.value?120:parseInt(p.value);A=Math.max(0,isNaN(A)?120:A);if(window.getSelection){null!=ta&&(d.cellEditor.restoreSelection(ta),ta=null);var B=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&B==d.cellEditor.textarea&&null!=d.cellEditor.textarea.firstChild&&
-d.cellEditor.textarea.firstChild.nodeType!=mxConstants.NODETYPE_ELEMENT&&1==d.cellEditor.textarea.children.length){var F=window.getSelection();if(F.getRangeAt&&0<F.rangeCount){var N=F.getRangeAt(0);B=document.createElement("div");B.appendChild(N.extractContents());d.cellEditor.textarea.innerHTML="";d.cellEditor.textarea.appendChild(B);F.removeAllRanges();N=new Range;N.selectNodeContents(B);F.addRange(N)}}if(null!=B)for(B!=d.cellEditor.textarea&&e(B,A),B=B.getElementsByTagName("*"),F=window.getSelection(),
-N=0;N<B.length;N++)F.containsNode(B[N],!0)&&e(B[N],A)}p.value=A+" %"},function(p){La=p;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(A){document.activeElement==d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())}));mxEvent.addListener(p,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())});p.value="120 %"}));q=m.cloneNode(!1);q.style.paddingLeft="0px";k=this.editorUi.toolbar.addItems(["link","image"],q,!0,[Editor.linkImage,Editor.imageImage]);
-C=[this.editorUi.toolbar.addButton(Editor.horizontalRuleImage,mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",!1)},q),this.editorUi.toolbar.addMenuFunctionInContainer(q,Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(p){this.editorUi.menus.addInsertTableItem(p,null,null,!1)}))];this.styleButtons(k);this.styleButtons(C);k=this.createPanel();k.style.paddingTop="10px";k.style.paddingBottom="10px";k.appendChild(this.createTitle(mxResources.get("insert")));
-k.appendChild(q);a.appendChild(k);k=m.cloneNode(!1);k.style.paddingLeft="0px";C=[this.editorUi.toolbar.addButton("geSprite-insertcolumnbefore",mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=P&&d.insertColumn(P,null!=M?M.cellIndex:0)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton("geSprite-insertcolumnafter",mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{null!=P&&d.insertColumn(P,null!=M?M.cellIndex+1:-1)}catch(p){this.editorUi.handleError(p)}}),
-k),this.editorUi.toolbar.addButton("geSprite-deletecolumn",mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=P&&null!=M&&d.deleteColumn(P,M.cellIndex)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton("geSprite-insertrowbefore",mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{null!=P&&null!=W&&d.insertRow(P,W.sectionRowIndex)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton("geSprite-insertrowafter",mxResources.get("insertRowAfter"),
-mxUtils.bind(this,function(){try{null!=P&&null!=W&&d.insertRow(P,W.sectionRowIndex+1)}catch(p){this.editorUi.handleError(p)}}),k),this.editorUi.toolbar.addButton("geSprite-deleterow",mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=P&&null!=W&&d.deleteRow(P,W.sectionRowIndex)}catch(p){this.editorUi.handleError(p)}}),k)];this.styleButtons(C);C[2].style.marginRight="10px";q=this.createPanel();q.style.paddingTop="10px";q.style.paddingBottom="10px";q.appendChild(this.createTitle(mxResources.get("table")));
-q.appendChild(k);m=m.cloneNode(!1);m.style.paddingLeft="0px";C=[this.editorUi.toolbar.addButton("geSprite-strokecolor",mxResources.get("borderColor"),mxUtils.bind(this,function(p){if(null!=P){var A=P.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,N,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(N).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});this.editorUi.pickColor(A,function(B){var F=null==M||null!=p&&mxEvent.isShiftDown(p)?
-P:M;d.processElements(F,function(N){N.style.border=null});null==B||B==mxConstants.NONE?(F.removeAttribute("border"),F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+B,F.style.borderCollapse="collapse")})}}),m),this.editorUi.toolbar.addButton("geSprite-fillcolor",mxResources.get("backgroundColor"),mxUtils.bind(this,function(p){if(null!=P){var A=P.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,N,R){return"#"+
-("0"+Number(F).toString(16)).substr(-2)+("0"+Number(N).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});this.editorUi.pickColor(A,function(B){var F=null==M||null!=p&&mxEvent.isShiftDown(p)?P:M;d.processElements(F,function(N){N.style.backgroundColor=null});F.style.backgroundColor=null==B||B==mxConstants.NONE?"":B})}}),m),this.editorUi.toolbar.addButton("geSprite-fit",mxResources.get("spacing"),function(){if(null!=P){var p=P.getAttribute("cellPadding")||0;p=new FilenameDialog(h,p,
-mxResources.get("apply"),mxUtils.bind(this,function(A){null!=A&&0<A.length?P.setAttribute("cellPadding",A):P.removeAttribute("cellPadding")}),mxResources.get("spacing"));h.showDialog(p.container,300,80,!0,!0);p.init()}},m),this.editorUi.toolbar.addButton("geSprite-left",mxResources.get("left"),function(){null!=P&&P.setAttribute("align","left")},m),this.editorUi.toolbar.addButton("geSprite-center",mxResources.get("center"),function(){null!=P&&P.setAttribute("align","center")},m),this.editorUi.toolbar.addButton("geSprite-right",
-mxResources.get("right"),function(){null!=P&&P.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!=ja)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_FONTSIZE,
-Menus.prototype.defaultFontSize)),ja.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(I,p==mxConstants.ALIGN_RIGHT);p=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(T,p==mxConstants.ALIGN_TOP);f(K,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?Z.value="rightToLeft":p==mxConstants.TEXT_DIRECTION_LTR?Z.value="leftToRight":p!=mxConstants.TEXT_DIRECTION_AUTO&&g.html?p==mxConstants.TEXT_DIRECTION_VERTICAL_LR?Z.value="vertical-leftToRight":p==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(Z.value="vertical-rightToLeft"):Z.value="automatic";if(B||document.activeElement!=
-Ga)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING,2)),Ga.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Da)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_TOP,0)),Da.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ja)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ja.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ha)p=parseFloat(mxUtils.getValue(g.style,
-mxConstants.STYLE_SPACING_BOTTOM,0)),Ha.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit();if(B||document.activeElement!=Ia)p=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_LEFT,0)),Ia.value=isNaN(p)?"":this.inUnit(p)+" "+this.getUnit()});var cb=this.installInputHandler(Ga,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var fb=this.installInputHandler(Da,mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=
-this.installInputHandler(Ja,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var gb=this.installInputHandler(Ha,mxConstants.STYLE_SPACING_BOTTOM,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ab=this.installInputHandler(Ia,mxConstants.STYLE_SPACING_LEFT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(ja,Ya);this.addKeyHandler(Ga,Ya);this.addKeyHandler(Da,Ya);this.addKeyHandler(Ja,Ya);this.addKeyHandler(Ha,Ya);this.addKeyHandler(Ia,
-Ya);d.getModel().addListener(mxEvent.CHANGE,Ya);this.listeners.push({destroy:function(){d.getModel().removeListener(Ya)}});Ya();if(d.cellEditor.isContentEditing()){var ib=null,eb=!1;m=mxUtils.bind(this,function(){eb||(eb=!0,window.setTimeout(mxUtils.bind(this,function(){var p=d.getSelectedEditingElement();if(null!=p&&null!=d.cellEditor.textarea){var A=function(ya,za){if(null!=ya&&null!=za){if(ya==za)return!0;if(ya.length>za.length+1)return ya.substring(ya.length-za.length-1,ya.length)=="-"+za}return!1},
-B=function(ya){if(null!=d.getParentByName(p,ya,d.cellEditor.textarea))return!0;for(var za=p;null!=za&&1==za.childNodes.length;)if(za=za.childNodes[0],za.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},N=mxUtils.getCurrentStyle(p),R=p==d.cellEditor.textarea||""==p.style.lineHeight?null:p.style.lineHeight,X=p==d.cellEditor.textarea||""==p.style.fontSize?null:b(N);if(window.getSelection)for(var fa=
-p.getElementsByTagName("*"),da=window.getSelection(),ha=0;ha<fa.length&&(!da.containsNode(fa[ha],!0)||(null==X&&""!=fa[ha].style.fontSize&&(X=parseFloat(fa[ha].style.fontSize)),null==R&&""!=fa[ha].style.lineHeight&&(R=fa[ha].style.lineHeight),null==X||null==R));ha++);null==X&&(X=b(N));if(null==R)for(da=p;null!=da&&da!=d.cellEditor.textarea.parentNode;){if(null!=da.style&&""!=da.style.lineHeight){R=da.style.lineHeight;break}da=da.parentNode}if(null!=N){fa=function(ya,za){var va=null,ua=null;if(ya.nodeType==
-mxConstants.NODETYPE_ELEMENT){ya=ya.getAttribute(Graph.backupStyleAttribute);try{null!=ya&&(ua=JSON.parse(ya))}catch(Va){}null!=ua&&null!=ua[za]&&("color"==za&&"FONT"==p.nodeName&&""==ua[za]&&null!=p.getAttribute("color")?va=p.getAttribute("color"):""!=ua[za]&&(va=ua[za]));null==va&&""!=p.style[za]&&(va=p.style[za])}return va};f(w[0],"bold"==N.fontWeight||400<N.fontWeight||B("B")||B("STRONG"));f(w[1],"italic"==N.fontStyle||B("I")||B("EM"));f(w[2],"underline"==N.textDecorationLine||B("U"));f(L,"line-through"==
-N.textDecorationLine||B("STRIKE"));f(Q,B("SUP"));f(Y,B("SUB"));var wa=F(p);if(null!=wa){B=function(ya,za){Na.push({name:ya,dispName:za,type:"string",getValue:function(){return Ma[ya]},valueChanged:function(va,ua){var Va=wa.style,Qa=va;parseInt(Qa)==Qa&&(Qa+="px",null!=ua&&(ua.value=Qa));Va[ya]=Qa;""==va&&null!=ua&&(ua.value=Ma[ya])}})};var Ma=mxUtils.getCurrentStyle(wa),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(aa,A(N.textAlign,"justify")),f(D,A(N.textAlign,"left")),f(G,A(N.textAlign,"center")),f(I,A(N.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(g.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),A(N.textAlign,"justify")?
-(f(aa,A(N.textAlign,"justify")),f(D,!1),f(G,!1),f(I,!1)):(f(aa,!1),f(D,B==mxConstants.ALIGN_LEFT),f(G,B==mxConstants.ALIGN_CENTER),f(I,B==mxConstants.ALIGN_RIGHT)));P=d.getParentByName(p,"TABLE",d.cellEditor.textarea);W=null==P?null:d.getParentByName(p,"TR",P);M=null==P?null:d.getParentByNames(p,["TD","TH"],P);Xa.style.display=null!=P?"":"none";document.activeElement!=ja&&(ja.value=isNaN(X)?"":X+" "+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)+" %"));if(null!=la){da=p==d.cellEditor.textarea?"default":fa(p,"color");for(A=p;null==da&&null!=A&&A!=d.cellEditor.textarea.parentNode;)da=A==d.cellEditor.textarea?"default":fa(A,"color"),A=A.parentNode;if("rgba(0, 0, 0, 0)"==da||"transparent"==da)da=mxConstants.NONE;sa=da;la(sa,!0)}if(null!=H){da=fa(p,"background-color");for(A=p;null==da&&null!=A&&A!=d.cellEditor.textarea.parentNode;)da=fa(A,"background-color"),A=A.parentNode;if("rgba(0, 0, 0, 0)"==
-da||"transparent"==da)da=mxConstants.NONE;ea=da;H(ea,!0)}null!=u.firstChild&&(u.firstChild.nodeValue=mxUtils.getCssFontFamily(N.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);
+TextFormatPanel.prototype.addFont=function(a){function b(q){q=null!=q?q.fontSize:null;return null!=q&&"px"==q.substring(q.length-2)?parseFloat(q):mxConstants.DEFAULT_FONTSIZE}function e(q,A){if(null!=q&&""!=q.textContent){q.style.lineHeight="";var B=mxUtils.getCurrentStyle(q);parseFloat(B.fontSize)*A/100!=parseFloat(B.lineHeight)?q.style.lineHeight=A+"%":""==q.getAttribute("style")&&q.removeAttribute("style")}}function f(q,A){A?q.classList.add("geActiveItem"):q.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 p=m.cloneNode(),k=this.editorUi.toolbar.addMenu(mxResources.get("style"),mxResources.get("style"),
+!0,"formatBlock",p,null,!0);this.addArrow(k);k.style.width="211px";k.style.alignItems="center";k.style.justifyContent="center";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.margin="0px";k.style.position="relative";k=k.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";a.appendChild(p)}a.appendChild(m);p=this.createPanel();p.style.marginTop="8px";p.style.borderWidth="1px";p.style.borderStyle="solid";p.style.paddingTop="6px";p.style.paddingBottom="2px";var u=
+this.editorUi.toolbar.addMenu("Helvetica",mxResources.get("fontFamily"),!0,"fontFamily",m,null,!0);this.addArrow(u);u.style.width="211px";u.style.alignItems="center";u.style.justifyContent="center";u.style.whiteSpace="nowrap";u.style.overflow="hidden";u.style.margin="0px";u.style.position="relative";k=u.getElementsByTagName("div")[0];k.style.position="absolute";k.style.right="2px";k=m.cloneNode(!1);k.style.marginLeft="-3px";k.style.height="31px";var x=this.editorUi.toolbar.addItems(["bold","italic",
+"underline"],k,!0,[Editor.boldImage,Editor.italicImage,Editor.underlineImage]);x[0].setAttribute("title",mxResources.get("bold")+" ("+this.editorUi.actions.get("bold").shortcut+")");x[1].setAttribute("title",mxResources.get("italic")+" ("+this.editorUi.actions.get("italic").shortcut+")");x[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(x);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(q){return function(){return q()}},D=this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_LEFT,q);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(q){d.cellEditor.alignText(mxConstants.ALIGN_CENTER,q);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),I=this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_RIGHT,q);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 T=this.editorUi.toolbar.addButton(Editor.alignTopImage,mxResources.get("top"),E(this.editorUi.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),K=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([T,K,U]);a.appendChild(C);var Y,Q,P,M,V;if(d.cellEditor.isContentEditing()){T.style.display="none";K.style.display="none";U.style.display="none";z.style.display="none";var aa=this.editorUi.toolbar.addButton(Editor.alignJustifyImage,mxResources.get("block"),
+function(){1==aa.style.opacity&&document.execCommand("justifyfull",!1,null)},C);aa.style.marginRight="9px";this.styleButtons([aa,Y=this.editorUi.toolbar.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},C),Q=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 x[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 na="topLeft top topRight left center right bottomLeft bottom bottomRight".split(" "),qa={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<na.length;E++){var O=document.createElement("option");O.setAttribute("value",na[E]);mxUtils.write(O,
+mxResources.get(na[E]));ia.appendChild(O)}C.appendChild(ia);na=m.cloneNode(!1);na.removeAttribute("class");na.style.marginLeft="0px";na.style.paddingTop="4px";na.style.paddingBottom="4px";na.style.fontWeight="normal";mxUtils.write(na,mxResources.get("writingDirection"));var Z=document.createElement("select");Z.style.position="absolute";Z.style.borderWidth="1px";Z.style.borderStyle="solid";Z.style.left="126px";Z.style.width="98px";Z.style.marginTop="-3px";O=["automatic","leftToRight","rightToLeft"];
+g.html&&(O.push("vertical-leftToRight"),O.push("vertical-rightToLeft"));var ca={automatic:null,leftToRight:mxConstants.TEXT_DIRECTION_LTR,rightToLeft:mxConstants.TEXT_DIRECTION_RTL,"vertical-leftToRight":mxConstants.TEXT_DIRECTION_VERTICAL_LR,"vertical-rightToLeft":mxConstants.TEXT_DIRECTION_VERTICAL_RL};for(E=0;E<O.length;E++){var W=document.createElement("option");W.setAttribute("value",O[E]);"vertical-"==O[E].substring(0,9)?mxUtils.write(W,mxResources.get("vertical")+" ("+mxResources.get(O[E].substring(9))+
+")"):mxUtils.write(W,mxResources.get(O[E]));Z.appendChild(W)}na.appendChild(Z);d.isEditing()||(a.appendChild(C),mxEvent.addListener(ia,"change",function(q){d.getModel().beginUpdate();try{var A=qa[ia.value];null!=A&&(d.setCellStyles(mxConstants.STYLE_LABEL_POSITION,A[0],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_LABEL_POSITION,A[1],g.cells),d.setCellStyles(mxConstants.STYLE_ALIGN,A[2],g.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_ALIGN,A[3],g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(q)}),
+a.appendChild(na),mxEvent.addListener(Z,"change",function(q){d.setCellStyles(mxConstants.STYLE_TEXT_DIRECTION,ca[Z.value],g.cells);mxEvent.consume(q)}));var ja=document.createElement("input");ja.style.position="absolute";ja.style.borderWidth="1px";ja.style.borderStyle="solid";ja.style.textAlign="right";ja.style.marginTop="4px";ja.style.left="161px";ja.style.width="53px";ja.style.height="23px";ja.style.boxSizing="border-box";k.appendChild(ja);C=this.installInputHandler(ja,mxConstants.STYLE_FONTSIZE,
+Menus.prototype.defaultFontSize,1,999," "+Editor.fontSizeUnit,function(q){if(null!=d.getSelectedEditingElement()){ja.value=q+" "+Editor.fontSizeUnit;document.execCommand("fontSize",!1,"1");for(var A=d.cellEditor.textarea.getElementsByTagName("font"),B=0;B<A.length;B++)if("1"==A[B].getAttribute("size")){A[B].removeAttribute("size");A[B].style.fontSize="";var F=mxUtils.getCurrentStyle(A[B]);q!=b(F)?A[B].style.fontSize=q+"px":""==A[B].getAttribute("style")&&A[B].removeAttribute("style")}}},!0);C=this.createStepper(ja,
+C,1,10,!0,Menus.prototype.defaultFontSize);C.style.display=ja.style.display;C.style.marginTop="4px";C.style.left="214px";k.appendChild(C);k=u.getElementsByTagName("div")[0];k.style.cssFloat="right";var H=null,ea=d.shapeBackgroundColor,oa=null,sa=d.shapeForegroundColor;k=mxUtils.getLightDarkColor(d.shapeBackgroundColor);var Pa="light-dark("+mxUtils.hex2rgb(k.light)+", "+mxUtils.hex2rgb(k.dark)+")",la=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("backgroundColor"),function(){return ea==
+d.shapeBackgroundColor||ea==Pa?"default":ea},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=d.shapeBackgroundColor),Graph.setTextColor(d.cellEditor.textarea,q,!1),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[q],"cells",g.cells)))},"default",{install:function(q){H=q},destroy:function(){H=null}},null,null,d.shapeBackgroundColor):this.createCellColorOption(mxResources.get("backgroundColor"),mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,
+"default",null,function(q){d.updateLabelElements(g.cells,function(A){A.style.backgroundColor=null})},d.shapeBackgroundColor);la.style.fontWeight="bold";var Ba=this.createCellColorOption(mxResources.get("borderColor"),mxConstants.STYLE_LABEL_BORDERCOLOR,"default",null,null,d.shapeForegroundColor);Ba.style.fontWeight="bold";k=1<=g.vertices.length?d.stylesheet.getDefaultVertexStyle():d.stylesheet.getDefaultEdgeStyle();k=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("fontColor"),
+function(){return sa},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=mxConstants.NONE),Graph.setTextColor(d.cellEditor.textarea,q,!0),h.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTCOLOR],"values",[q],"cells",g.cells)))},"default",{install:function(q){oa=q},destroy:function(){oa=null}},null,!0,null!=k[mxConstants.STYLE_FONTCOLOR]&&"default"!=k[mxConstants.STYLE_FONTCOLOR]?k[mxConstants.STYLE_FONTCOLOR]:d.shapeForegroundColor):this.createCellColorOption(mxResources.get("fontColor"),
+mxConstants.STYLE_FONTCOLOR,"default",function(q){la.style.display=q==mxConstants.NONE?"none":"";Ba.style.display=la.style.display},function(q){q==mxConstants.NONE?d.setCellStyles(mxConstants.STYLE_NOLABEL,"1",g.cells):d.setCellStyles(mxConstants.STYLE_NOLABEL,null,g.cells);d.setCellStyles(mxConstants.STYLE_FONTCOLOR,q,g.cells);d.updateLabelElements(g.cells,function(A){A.removeAttribute("color");A.style.color=null})},d.shapeForegroundColor);k.style.fontWeight="bold";p.appendChild(k);p.appendChild(la);
+k=this.createCellOption(mxResources.get("shadow"),mxConstants.STYLE_TEXT_SHADOW,0);k.style.width="100%";k.style.fontWeight="bold";Editor.enableShadowOption||(k.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(k,60));d.cellEditor.isContentEditing()||(p.appendChild(Ba),p.appendChild(k));a.appendChild(p);p=this.createPanel();p.style.paddingTop="2px";p.style.paddingBottom="4px";k=d.filterSelectionCells(mxUtils.bind(this,function(q){var A=d.view.getState(q);return null==
+A||d.isAutoSizeState(A)||d.getModel().isEdge(q)||!d.isTableRow(q)&&!d.isTableCell(q)&&!d.isCellResizable(q)}));C=this.createCellOption(mxResources.get("wordWrap"),mxConstants.STYLE_WHITE_SPACE,null,"wrap","null",null,null,!0,k);C.style.fontWeight="bold";0<k.length&&p.appendChild(C);k=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null,h.actions.get("formattedText"));k.style.fontWeight="bold";p.appendChild(k);k=this.createPanel();k.style.paddingTop="10px";k.style.paddingBottom=
+"28px";k.style.fontWeight="normal";C=document.createElement("div");C.style.position="absolute";C.style.width="70px";C.style.marginTop="0px";C.style.fontWeight="bold";mxUtils.write(C,mxResources.get("spacing"));k.appendChild(C);var Ca=this.addUnitInput(k,this.getUnit(),87,52,function(){fb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Fa=this.addUnitInput(k,this.getUnit(),16,52,function(){cb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);
+this.addLabel(k,mxResources.get("top"),87,64);this.addLabel(k,mxResources.get("global"),16,64);mxUtils.br(k);mxUtils.br(k);var Ia=this.addUnitInput(k,this.getUnit(),158,52,function(){ab.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ha=this.addUnitInput(k,this.getUnit(),87,52,function(){gb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ja=this.addUnitInput(k,this.getUnit(),16,52,function(){pb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());
+mxUtils.br(k);this.addLabel(k,mxResources.get("left"),158,64);this.addLabel(k,mxResources.get("bottom"),87,64);this.addLabel(k,mxResources.get("right"),16,64);if(d.cellEditor.isContentEditing()){var ta=null,La=null;a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(q){var A=""==q.value?120:parseInt(q.value);A=Math.max(0,isNaN(A)?120:A);if(window.getSelection){null!=ta&&(d.cellEditor.restoreSelection(ta),ta=null);var B=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&
+B==d.cellEditor.textarea&&null!=d.cellEditor.textarea.firstChild&&d.cellEditor.textarea.firstChild.nodeType!=mxConstants.NODETYPE_ELEMENT&&1==d.cellEditor.textarea.children.length){var F=window.getSelection();if(F.getRangeAt&&0<F.rangeCount){var N=F.getRangeAt(0);B=document.createElement("div");B.appendChild(N.extractContents());d.cellEditor.textarea.innerHTML="";d.cellEditor.textarea.appendChild(B);F.removeAllRanges();N=new Range;N.selectNodeContents(B);F.addRange(N)}}if(null!=B)for(B!=d.cellEditor.textarea&&
+e(B,A),B=B.getElementsByTagName("*"),F=window.getSelection(),N=0;N<B.length;N++)F.containsNode(B[N],!0)&&e(B[N],A)}q.value=A+" %"},function(q){La=q;mxEvent.addGestureListeners(q,mxUtils.bind(this,function(A){document.activeElement==d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())}));mxEvent.addListener(q,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(ta=d.cellEditor.saveSelection())});q.value="120 %"}));p=m.cloneNode(!1);p.style.paddingLeft="0px";k=this.editorUi.toolbar.addItems(["link",
+"image"],p,!0,[Editor.linkImage,Editor.imageImage]);C=[this.editorUi.toolbar.addButton(Editor.horizontalRuleImage,mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",!1)},p),this.editorUi.toolbar.addMenuFunctionInContainer(p,Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(q){this.editorUi.menus.addInsertTableItem(q,null,null,!1)}))];this.styleButtons(k);this.styleButtons(C);k=this.createPanel();k.style.height="57px";k.style.paddingTop=
+"10px";k.style.paddingBottom="8px";k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(p);a.appendChild(k);k=m.cloneNode(!1);k.style.height="33px";k.style.paddingLeft="0px";C=[this.editorUi.toolbar.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=P&&d.insertColumn(P,null!=M?M.cellIndex:0)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),
+mxUtils.bind(this,function(){try{null!=P&&d.insertColumn(P,null!=M?M.cellIndex+1:-1)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=P&&null!=M&&d.deleteColumn(P,M.cellIndex)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{null!=P&&null!=V&&d.insertRow(P,V.sectionRowIndex)}catch(q){this.editorUi.handleError(q)}}),
+k),this.editorUi.toolbar.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{null!=P&&null!=V&&d.insertRow(P,V.sectionRowIndex+1)}catch(q){this.editorUi.handleError(q)}}),k),this.editorUi.toolbar.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=P&&null!=V&&d.deleteRow(P,V.sectionRowIndex)}catch(q){this.editorUi.handleError(q)}}),k)];this.styleButtons(C);C[2].style.marginRight="10px";p=this.createPanel();
+p.style.paddingTop="10px";p.style.paddingBottom="10px";p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(k);m=m.cloneNode(!1);m.style.height="33px";m.style.padding="0";C=[this.editorUi.toolbar.addButton(Editor.strokeColorImage,mxResources.get("borderColor"),mxUtils.bind(this,function(q){if(null!=P){var A=P.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,N,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(N).toString(16)).substr(-2)+
+("0"+Number(R).toString(16)).substr(-2)});this.editorUi.pickColor(A,function(B){var F=null==M||null!=q&&mxEvent.isShiftDown(q)?P:M;d.processElements(F,function(N){N.style.border=null});null==B||B==mxConstants.NONE?(F.removeAttribute("border"),F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+B,F.style.borderCollapse="collapse")})}}),m),this.editorUi.toolbar.addButton(Editor.fillColorImage,mxResources.get("backgroundColor"),mxUtils.bind(this,function(q){if(null!=
+P){var A=P.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,N,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(N).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});this.editorUi.pickColor(A,function(B){var F=null==M||null!=q&&mxEvent.isShiftDown(q)?P:M;d.processElements(F,function(N){N.style.backgroundColor=null});F.style.backgroundColor=null==B||B==mxConstants.NONE?"":B})}}),m),this.editorUi.toolbar.addButton(Editor.spacingImage,
+mxResources.get("spacing"),function(){if(null!=P){var q=P.getAttribute("cellPadding")||0;q=new FilenameDialog(h,q,mxResources.get("apply"),mxUtils.bind(this,function(A){null!=A&&0<A.length?P.setAttribute("cellPadding",A):P.removeAttribute("cellPadding")}),mxResources.get("spacing"));h.showDialog(q.container,300,80,!0,!0);q.init()}},m),this.editorUi.toolbar.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=P&&P.setAttribute("align","left")},m),this.editorUi.toolbar.addButton(Editor.alignCenterImage,
+mxResources.get("center"),function(){null!=P&&P.setAttribute("align","center")},m),this.editorUi.toolbar.addButton(Editor.alignRightImage,mxResources.get("right"),function(){null!=P&&P.setAttribute("align","right")},m)];this.styleButtons(C);C[2].style.marginRight="10px";p.appendChild(m);a.appendChild(p);var Xa=p}else a.appendChild(p),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_TEXT_OPACITY)),a.appendChild(k);for(E=0;3>E;E++)(function(q){mxEvent.addListener(x[q],
+"click",function(){f(x[q],""==x[q].style.backgroundImage)})})(E);var Ya=mxUtils.bind(this,function(q,A,B){g=h.getSelectionState();q=mxUtils.getValue(g.style,mxConstants.STYLE_FONTSTYLE,0);f(x[0],(q&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);f(x[1],(q&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);f(x[2],(q&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!=ja)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),ja.value=isNaN(q)?"":q+" "+Editor.fontSizeUnit;q=mxUtils.getValue(g.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,q==mxConstants.ALIGN_LEFT);f(G,q==mxConstants.ALIGN_CENTER);f(I,q==mxConstants.ALIGN_RIGHT);q=mxUtils.getValue(g.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(T,q==mxConstants.ALIGN_TOP);
+f(K,q==mxConstants.ALIGN_MIDDLE);f(U,q==mxConstants.ALIGN_BOTTOM);q=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=q==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_TOP?"topLeft":q==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_TOP?"top":q==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_TOP?"topRight":q==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_BOTTOM?"bottomLeft":
+q==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_BOTTOM?"bottom":q==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_BOTTOM?"bottomRight":q==mxConstants.ALIGN_LEFT?"left":q==mxConstants.ALIGN_RIGHT?"right":"center";q=mxUtils.getValue(g.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);q==mxConstants.TEXT_DIRECTION_RTL?Z.value="rightToLeft":q==mxConstants.TEXT_DIRECTION_LTR?Z.value="leftToRight":q!=mxConstants.TEXT_DIRECTION_AUTO&&g.html?q==mxConstants.TEXT_DIRECTION_VERTICAL_LR?
+Z.value="vertical-leftToRight":q==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(Z.value="vertical-rightToLeft"):Z.value="automatic";if(B||document.activeElement!=Fa)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING,2)),Fa.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ca)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_TOP,0)),Ca.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ja)q=parseFloat(mxUtils.getValue(g.style,
+mxConstants.STYLE_SPACING_RIGHT,0)),Ja.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ha)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Ha.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ia)q=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_SPACING_LEFT,0)),Ia.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit()});var cb=this.installInputHandler(Fa,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),
+null,this.isFloatUnit(),!0);var fb=this.installInputHandler(Ca,mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ja,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var gb=this.installInputHandler(Ha,mxConstants.STYLE_SPACING_BOTTOM,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ab=this.installInputHandler(Ia,mxConstants.STYLE_SPACING_LEFT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),
+!0);this.addKeyHandler(ja,Ya);this.addKeyHandler(Fa,Ya);this.addKeyHandler(Ca,Ya);this.addKeyHandler(Ja,Ya);this.addKeyHandler(Ha,Ya);this.addKeyHandler(Ia,Ya);d.getModel().addListener(mxEvent.CHANGE,Ya);this.listeners.push({destroy:function(){d.getModel().removeListener(Ya)}});Ya();if(d.cellEditor.isContentEditing()){var ib=null,eb=!1;m=mxUtils.bind(this,function(){eb||(eb=!0,window.setTimeout(mxUtils.bind(this,function(){var q=d.getSelectedEditingElement();if(null!=q&&null!=d.cellEditor.textarea){var A=
+function(ya,Ga){if(null!=ya&&null!=Ga){if(ya==Ga)return!0;if(ya.length>Ga.length+1)return ya.substring(ya.length-Ga.length-1,ya.length)=="-"+Ga}return!1},B=function(ya){if(null!=d.getParentByName(q,ya,d.cellEditor.textarea))return!0;for(var Ga=q;null!=Ga&&1==Ga.childNodes.length;)if(Ga=Ga.childNodes[0],Ga.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},N=mxUtils.getCurrentStyle(q),
+R=q==d.cellEditor.textarea||""==q.style.lineHeight?null:q.style.lineHeight,X=q==d.cellEditor.textarea||""==q.style.fontSize?null:b(N);if(window.getSelection)for(var fa=q.getElementsByTagName("*"),da=window.getSelection(),ha=0;ha<fa.length&&(!da.containsNode(fa[ha],!0)||(null==X&&""!=fa[ha].style.fontSize&&(X=parseFloat(fa[ha].style.fontSize)),null==R&&""!=fa[ha].style.lineHeight&&(R=fa[ha].style.lineHeight),null==X||null==R));ha++);null==X&&(X=b(N));if(null==R)for(fa=q;null!=fa&&fa!=d.cellEditor.textarea.parentNode;){if(null!=
+fa.style&&""!=fa.style.lineHeight){R=fa.style.lineHeight;break}fa=fa.parentNode}if(null!=N){f(x[0],"bold"==N.fontWeight||400<N.fontWeight||B("B")||B("STRONG"));f(x[1],"italic"==N.fontStyle||B("I")||B("EM"));f(x[2],"underline"==N.textDecorationLine||B("U"));f(L,"line-through"==N.textDecorationLine||B("STRIKE"));f(Q,B("SUP"));f(Y,B("SUB"));var va=F(q);if(null!=va){B=function(ya,Ga){Na.push({name:ya,dispName:Ga,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(aa,A(N.textAlign,"justify")),f(D,A(N.textAlign,"left")),f(G,A(N.textAlign,"center")),f(I,A(N.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(g.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),A(N.textAlign,"justify")?(f(aa,A(N.textAlign,"justify")),f(D,!1),f(G,!1),f(I,!1)):(f(aa,!1),f(D,B==mxConstants.ALIGN_LEFT),f(G,B==mxConstants.ALIGN_CENTER),f(I,B==mxConstants.ALIGN_RIGHT)));P=d.getParentByName(q,"TABLE",d.cellEditor.textarea);V=null==
+P?null:d.getParentByName(q,"TR",P);M=null==P?null:d.getParentByNames(q,["TD","TH"],P);Xa.style.display=null!=P?"":"none";document.activeElement!=ja&&(ja.value=isNaN(X)?"":X+" "+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!=oa&&(sa=d.getTextColor(q,!0),oa(sa,!0));null!=H&&(ea=d.getTextColor(q,!1),H(ea,!0));null!=u.firstChild&&(u.firstChild.nodeValue=mxUtils.getCssFontFamily(N.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()));
var b=this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_OPACITY);b.style.paddingTop="8px";b.style.paddingBottom="10px";this.container.appendChild(b);this.container.appendChild(this.addEffects(this.createPanel()))}b=this.createPanel();b.style.paddingTop="8px";1==a.cells.length&&(this.addEditOps(b),null!=b.firstChild&&mxUtils.br(b));1<=a.cells.length&&this.addStyleOps(b);null!=b.firstChild&&this.container.appendChild(b)};
StyleFormatPanel.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 dark"!=g.documentElement.style.colorScheme,q=g.getElementsByTagName("style");
-for(b=0;b<q.length;b++){var k=this.getCssRules(mxUtils.getTextContent(q[b]));if(e=m)for(var u=0;u<k.length;u++)if(0<=k[b].cssText.indexOf("color-scheme: light dark")){e=!1;break}for(u=0;u<k.length;u++)this.addSvgRule(a,k[u],g,q[b],k,u,f,e)}}}}catch(w){}return a};
-StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,h,d,g,m){var q=this.editorUi,k=q.editor.graph;g.test(b.selectorText)&&(g=mxUtils.bind(this,function(u,w,z){var C=mxUtils.trim(u.style[w]);if(""!=C&&"url("!=C.substring(0,4)){var E=C;"transparent"==E?E=mxConstants.NONE:mxUtils.isLightDarkColor(E)&&m&&(m=!1);u=this.createColorOption(z+" "+u.selectorText,function(){return E},mxUtils.bind(this,function(D){h[d].style[w]=D==mxConstants.NONE?"transparent":mxUtils.getLightDarkColor(D).cssText;D="";for(var G=
-0;G<h.length;G++)D+=h[G].cssText+" ";f.textContent=D;D=mxUtils.getXml(e.documentElement);k.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(D))):Base64.encode(D,!0)),q.getSelectionState().cells)}),"#ffffff",{install:function(D){},destroy:function(){}},null,null,null,m);a.appendChild(u);a.style.display=""}}),g(b,"fill",mxResources.get("fill")),g(b,"stroke",mxResources.get("line")),g(b,"stop-color",mxResources.get("gradient")))};
+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 dark"!=g.documentElement.style.colorScheme,p=g.getElementsByTagName("style");
+for(b=0;b<p.length;b++){var k=this.getCssRules(mxUtils.getTextContent(p[b]));if(e=m)for(var u=0;u<k.length;u++)if(0<=k[b].cssText.indexOf("color-scheme: light dark")){e=!1;break}for(u=0;u<k.length;u++)this.addSvgRule(a,k[u],g,p[b],k,u,f,e)}}}}catch(x){}return a};
+StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,h,d,g,m){var p=this.editorUi,k=p.editor.graph;g.test(b.selectorText)&&(g=mxUtils.bind(this,function(u,x,z){var C=mxUtils.trim(u.style[x]);if(""!=C&&"url("!=C.substring(0,4)){var E=C;"transparent"==E?E=mxConstants.NONE:mxUtils.isLightDarkColor(E)&&m&&(m=!1);u=this.createColorOption(z+" "+u.selectorText,function(){return E},mxUtils.bind(this,function(D){h[d].style[x]=D==mxConstants.NONE?"transparent":mxUtils.getLightDarkColor(D).cssText;D="";for(var G=
+0;G<h.length;G++)D+=h[G].cssText+" ";f.textContent=D;D=mxUtils.getXml(e.documentElement);k.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(D))):Base64.encode(D,!0)),p.getSelectionState().cells)}),"#ffffff",{install:function(D){},destroy:function(){}},null,null,null,m);a.appendChild(u);a.style.display=""}}),g(b,"fill",mxResources.get("fill")),g(b,"stroke",mxResources.get("line")),g(b,"stop-color",mxResources.get("gradient")))};
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&&
+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 p=mxResources.get(f[d]);mxUtils.write(m,p+("edit"==f[d]?"":"..."));null!=g&&null!=g.shortcut&&(p+=" ("+g.shortcut+")");m.setAttribute("title",p);e.appendChild(m)}}1<e.children.length&&
(a.appendChild(e),mxEvent.addListener(e,"change",mxUtils.bind(this,function(k){"openLibrary"==e.value?(null!=h&&0==h.length&&(this.editorUi.sidebar.updateSearchIndex(),k=this.editorUi.sidebar.getKeyStyle(b.cells[0].style),h=this.editorUi.sidebar.getLibsForStyle(k)),null!=h&&0<h.length?this.editorUi.sidebar.openLibraries(h):this.editorUi.handleError({message:mxResources.get("objectNotFound")}),e.value="edit"):(k=this.editorUi.actions.get(e.value),e.value="edit",null!=k&&k.funct())})),b.image&&(f=this.editorUi.editor.graph,
f=f.view.getState(f.getSelectionCell()),null!=f&&null!=mxUtils.getValue(f.style,mxConstants.STYLE_IMAGE,null)&&(f=mxUtils.button(mxResources.get("crop")+"...",mxUtils.bind(this,function(k){this.editorUi.actions.get("crop").funct()})),f.setAttribute("title",mxResources.get("crop")),e.style.width="104px",f.style.width="104px",f.style.marginLeft="2px",f.style.marginBottom="2px",a.appendChild(f))))}return a};
StyleFormatPanel.prototype.addFill=function(a){function b(){g.innerHTML="";C=1;for(var D=0;D<Editor.fillStyles.length;D++){var G=document.createElement("option");G.setAttribute("value",Editor.fillStyles[D].val);mxUtils.write(G,Editor.fillStyles[D].dispName);g.appendChild(G)}}var e=this.editorUi,f=e.editor.graph,h=e.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="6px";var d=document.createElement("select");d.style.position="absolute";d.style.left="104px";d.style.width="70px";d.style.height=
-"22px";d.style.padding="0px";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 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};
+"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 p="image"==h.style.shape?mxConstants.STYLE_IMAGE_BACKGROUND:mxConstants.STYLE_FILLCOLOR,k=this.createCellColorOption(mxResources.get("fill"),p,"default",null,mxUtils.bind(this,function(D){f.setCellStyles(p,D,h.cells)}),f.getDefaultColor(h.style,p,f.shapeBackgroundColor,f.shapeForegroundColor));k.style.fontWeight="bold";var u=mxUtils.getValue(h.style,p,null);m.style.display=
+null!=u&&u!=mxConstants.NONE&&h.fill&&"image"!=h.style.shape?"":"none";var x=[mxConstants.DIRECTION_NORTH,mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_RADIAL];for(u=0;u<x.length;u++){var z=document.createElement("option");z.setAttribute("value",x[u]);mxUtils.write(z,mxResources.get(x[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,p,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(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.padding="0px";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],la=["0","0"];"rounded"==q.value?la=["1","0"]:"curved"==q.value&&(la=["0","1"]);for(var sa=0;sa<ea.length;sa++)d.setCellStyles(ea[sa],la[sa],g.cells);h.fireEvent(new mxEventObject("styleChanged","keys",ea,"values",la,"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:mxConstants.STYLE_STROKECOLOR;k="image"==g.style.shape?mxResources.get("border"):mxResources.get("line");k=this.createCellColorOption(k,z,"default",null,mxUtils.bind(this,function(H){d.setCellStyles(z,H,g.cells);if(null==H||H==mxConstants.NONE){H=[];for(var ea=0;ea<g.cells.length;ea++)(d.isTableCell(g.cells[ea])||d.isTableRow(g.cells[ea]))&&H.push(g.cells[ea]);0<H.length&&d.setCellStyles(z,"inherit",H)}}),d.shapeForegroundColor);k.appendChild(q);
-m.appendChild(k);var C=m.cloneNode(!1);C.style.display="inline-flex";C.style.alignItems="top";C.style.fontWeight="normal";C.style.whiteSpace="nowrap";C.style.position="relative";C.style.paddingLeft="5px";C.style.overflow="hidden";C.style.marginTop="2px";C.style.width="220px";var E=mxUtils.bind(this,function(H,ea,la,sa,Pa){H=this.editorUi.menus.styleChange(H,"",sa,Pa,"geIcon",null);sa=document.createElement("div");sa.style.width=ea+"px";sa.style.height="1px";sa.style.paddingTop="6px";Pa=la.split(" ");
-2==Pa.length?(la=parseInt(Pa[0])+parseInt(Pa[1]),Pa=parseInt(Pa[0])/la*100,sa.style.borderBottom="1px pat transparent",sa.style.backgroundImage="linear-gradient(to right, currentcolor "+Pa+"%, transparent 0%)",sa.style.backgroundPosition="bottom left",sa.style.backgroundSize=la+"px 1px",sa.style.backgroundRepeat="repeat-x"):sa.style.borderBottom="1px "+la+" currentcolor";H.firstChild.firstChild.style.padding="0px 4px 0px 4px";H.firstChild.firstChild.style.width=ea+"px";H.firstChild.firstChild.appendChild(sa);
-return H});u=this.editorUi.toolbar.addMenuFunctionInContainer(C,"geSprite-orthogonal",mxResources.get("pattern"),!1,mxUtils.bind(this,function(H){E(H,75,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));E(H,75,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");E(H,75,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",
-mxResources.get("dashed")+" (2)");E(H,75,"12 12",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");E(H,75,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 1"]).setAttribute("title",mxResources.get("dotted")+" (1)");E(H,75,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");E(H,75,"1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],
-["1","1 4"]).setAttribute("title",mxResources.get("dotted")+" (3)")}));var D=C.cloneNode(!1),G=this.editorUi.toolbar.addMenuFunctionInContainer(D,"geSprite-connection",mxResources.get("connection"),!1,mxUtils.bind(this,function(H){this.editorUi.menus.styleChange(H,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],"geIcon geSprite geSprite-connection",null,null,null,!0).setAttribute("title",mxResources.get("line"));this.editorUi.menus.styleChange(H,
-"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],"geIcon geSprite geSprite-linkedge",null,null,null,!0).setAttribute("title",mxResources.get("link"));this.editorUi.menus.styleChange(H,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["flexArrow",null,null,null],"geIcon geSprite geSprite-arrow",null,null,null,!0).setAttribute("title",mxResources.get("arrow"));this.editorUi.menus.styleChange(H,
-"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],"geIcon geSprite geSprite-simplearrow",null,null,null,!0).setAttribute("title",mxResources.get("simpleArrow"))}));w=this.editorUi.toolbar.addMenuFunctionInContainer(D,"geSprite-orthogonal",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 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 T=this.createStepper(I,b,this.getUnitStep(),9,null,null,this.isFloatUnit());T.style.display=I.style.display;T.style.top="2px";T.style.left="198px";C.appendChild(T);T=this.createStepper(L,e,this.getUnitStep(),9,null,null,this.isFloatUnit());T.style.display=L.style.display;L.style.position="absolute";
-T.style.top="2px";T.style.left="198px";D.appendChild(T);mxEvent.addListener(I,"blur",b);mxEvent.addListener(I,"change",b);mxEvent.addListener(L,"blur",e);mxEvent.addListener(L,"change",e);var K=this.editorUi.toolbar.addMenuFunctionInContainer(k,"geSprite-orthogonal",mxResources.get("waypoints"),!1,mxUtils.bind(this,function(H){"arrow"!=g.style.shape&&(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],"geIcon geSprite geSprite-straight",
-null,!0).setAttribute("title",mxResources.get("straight")),this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],"geIcon geSprite geSprite-orthogonal",null,!0).setAttribute("title",mxResources.get("orthogonal")),this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],"geIcon geSprite geSprite-horizontalelbow",
-null,!0).setAttribute("title",mxResources.get("vertical")),this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],"geIcon geSprite geSprite-verticalelbow",null,!0).setAttribute("title",mxResources.get("horizontal")),this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",
-null,null,null],"geIcon geSprite geSprite-horizontalisometric",null,!0).setAttribute("title",mxResources.get("isometric")),this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],"geIcon geSprite geSprite-verticalisometric",null,!0).setAttribute("title",mxResources.get("isometric")),"connector"==g.style.shape&&this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,
-mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],"geIcon geSprite geSprite-curved",null,!0).setAttribute("title",mxResources.get("curved")),this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],"geIcon geSprite geSprite-entity",null,!0).setAttribute("title",mxResources.get("entityRelation")))})),U=this.editorUi.toolbar.addMenuFunctionInContainer(k,"geSprite-startclassic",
-mxResources.get("linestart"),!1,mxUtils.bind(this,function(H){if("connector"==g.style.shape||"flexArrow"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape){var ea=this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.NONE,0],"geIcon",null,!1);ea.setAttribute("title",mxResources.get("none"));var la=document.createElement("span");la.style.fontSize="11px";mxUtils.write(la,mxResources.get("none"));ea.firstChild.firstChild.appendChild(la);"connector"==
-g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,Format.classicFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+m.style.fontWeight="bold";g.stroke||(m.style.display="none");var p=document.createElement("select");p.style.position="absolute";p.style.height="22px";p.style.marginTop="-3px";p.style.textAlign="center";p.style.boxSizing="border-box";p.style.left="90px";p.style.width="83px";p.style.borderWidth="1px";p.style.borderStyle="solid";for(var k=["sharp","rounded","curved"],u=0;u<k.length;u++){var x=document.createElement("option");x.setAttribute("value",k[u]);mxUtils.write(x,mxResources.get(k[u]));p.appendChild(x)}mxEvent.addListener(p,
+"change",function(H){d.getModel().beginUpdate();try{var ea=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],oa=["0","0"];"rounded"==p.value?oa=["1","0"]:"curved"==p.value&&(oa=["0","1"]);for(var sa=0;sa<ea.length;sa++)d.setCellStyles(ea[sa],oa[sa],g.cells);h.fireEvent(new mxEventObject("styleChanged","keys",ea,"values",oa,"cells",g.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(H)});mxEvent.addListener(p,"click",function(H){mxEvent.consume(H)});var z="image"==g.style.shape?mxConstants.STYLE_IMAGE_BORDER:
+mxConstants.STYLE_STROKECOLOR;k="image"==g.style.shape?mxResources.get("border"):mxResources.get("line");k=this.createCellColorOption(k,z,"default",null,mxUtils.bind(this,function(H){d.setCellStyles(z,H,g.cells);if(null==H||H==mxConstants.NONE){H=[];for(var ea=0;ea<g.cells.length;ea++)(d.isTableCell(g.cells[ea])||d.isTableRow(g.cells[ea]))&&H.push(g.cells[ea]);0<H.length&&d.setCellStyles(z,"inherit",H)}}),d.shapeForegroundColor);k.appendChild(p);m.appendChild(k);var C=m.cloneNode(!1);C.style.display=
+"inline-flex";C.style.alignItems="top";C.style.fontWeight="normal";C.style.whiteSpace="nowrap";C.style.position="relative";C.style.paddingLeft="5px";C.style.overflow="hidden";C.style.marginTop="2px";C.style.width="220px";var E=mxUtils.bind(this,function(H,ea,oa,sa,Pa){H=this.editorUi.menus.styleChange(H,"",sa,Pa,"geIcon",null);sa=document.createElement("div");sa.style.width=ea+"px";sa.style.height="1px";sa.style.paddingTop="6px";Pa=oa.split(" ");2==Pa.length?(oa=parseInt(Pa[0])+parseInt(Pa[1]),Pa=
+parseInt(Pa[0])/oa*100,sa.style.borderBottom="1px pat transparent",sa.style.backgroundImage="linear-gradient(to right, currentcolor "+Pa+"%, transparent 0%)",sa.style.backgroundPosition="bottom left",sa.style.backgroundSize=oa+"px 1px",sa.style.backgroundRepeat="repeat-x"):sa.style.borderBottom="1px "+oa+" currentcolor";H.firstChild.firstChild.style.padding="0px 4px 0px 4px";H.firstChild.firstChild.style.width=ea+"px";H.firstChild.firstChild.appendChild(sa);return H});u=this.editorUi.toolbar.addMenuFunctionInContainer(C,
+null,mxResources.get("pattern"),!1,mxUtils.bind(this,function(H){E(H,75,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));E(H,75,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");E(H,75,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");E(H,75,"12 12",[mxConstants.STYLE_DASHED,
+mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");E(H,75,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 1"]).setAttribute("title",mxResources.get("dotted")+" (1)");E(H,75,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");E(H,75,"1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 4"]).setAttribute("title",mxResources.get("dotted")+
+" (3)")}));var D=C.cloneNode(!1),G=this.editorUi.toolbar.addMenuFunctionInContainer(D,null,mxResources.get("connection"),!1,mxUtils.bind(this,function(H){Format.processMenuIcon(this.editorUi.menus.styleChange(H,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],"",null,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line"));Format.processMenuIcon(this.editorUi.menus.styleChange(H,"",[mxConstants.STYLE_SHAPE,
+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"))}));x=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 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 T=this.createStepper(I,b,this.getUnitStep(),9,null,null,this.isFloatUnit());T.style.display=I.style.display;T.style.top="2px";T.style.left="198px";C.appendChild(T);T=this.createStepper(L,e,this.getUnitStep(),9,null,null,this.isFloatUnit());T.style.display=L.style.display;L.style.position="absolute";T.style.top="2px";T.style.left=
+"198px";D.appendChild(T);mxEvent.addListener(I,"blur",b);mxEvent.addListener(I,"change",b);mxEvent.addListener(L,"blur",e);mxEvent.addListener(L,"change",e);var K=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")),
+"connector"==g.style.shape&&Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,null,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,null,!0,Format.entityImage.src)).setAttribute("title",
+mxResources.get("entityRelation")))})),U=this.editorUi.toolbar.addMenuFunctionInContainer(k,null,mxResources.get("linestart"),!1,mxUtils.bind(this,function(H){if("connector"==g.style.shape||"flexArrow"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape)Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.NONE,0],null,null,!1,Format.noMarkerImage.src)).setAttribute("title",mxResources.get("none")),"connector"==g.style.shape||
+"filledEdge"==g.style.shape||"wire"==g.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,Format.classicFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",
+[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK,1],null,null,!1,Format.blockFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK_THIN,1],null,null,!1,Format.blockThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OVAL,1],null,null,!1,Format.ovalFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src)),
Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK,
@@ -3200,67 +3221,67 @@ Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STY
"startFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["circlePlus",0],null,null,!1,Format.circlePlusMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["circle",1],null,null,!1,Format.circleMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],
["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERone",0],null,null,!1,Format.EROneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERmany",
0],null,null,!1,Format.ERmanyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERoneToMany",0],null,null,!1,Format.ERoneToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERzeroToOne",0],null,null,!1,Format.ERzeroToOneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],
-["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src))):this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW],[mxConstants.ARROW_BLOCK],
-"geIcon geSprite geSprite-startblocktrans",null,!1).setAttribute("title",mxResources.get("block"));H.div.style.width="40px";window.setTimeout(mxUtils.bind(this,function(){null!=H.div&&mxUtils.fit(H.div)}),0)}})),Y=this.editorUi.toolbar.addMenuFunctionInContainer(k,"geSprite-endclassic",mxResources.get("lineend"),!1,mxUtils.bind(this,function(H){if("connector"==g.style.shape||"flexArrow"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape){var ea=this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.NONE,0],"geIcon",null,!1);ea.setAttribute("title",mxResources.get("none"));var la=document.createElement("span");la.style.fontSize="11px";mxUtils.write(la,mxResources.get("none"));ea.firstChild.firstChild.appendChild(la);"connector"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,
-Format.classicFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,1],null,null,!1,Format.blockFilledMarkerImage.src),
-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,1],null,null,!1,Format.blockThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,
-1],null,null,!1,Format.ovalFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,0],null,null,!1,Format.blockMarkerImage.src),
-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,0],null,null,!1,Format.blockThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",0],null,null,!1,Format.asyncMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,
-0],null,null,!1,Format.ovalMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,0],null,null,!1,Format.diamondMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,0],null,null,!1,Format.diamondThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],["box",0],null,null,!1,Format.boxMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["halfCircle",0],null,null,!1,Format.halfCircleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["dash",0],null,null,!1,Format.dashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circlePlus",0],null,null,!1,Format.circlePlusMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circle",0],null,null,!1,Format.circleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERone",0],null,null,!1,Format.EROneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmany",0],null,null,!1,Format.ERmanyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERoneToMany",0],null,null,!1,Format.ERoneToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToOne",0],null,null,!1,Format.ERzeroToOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src),"scaleX(-1)")):this.editorUi.menus.edgeStyleChange(H,
-"",[mxConstants.STYLE_ENDARROW],[mxConstants.ARROW_BLOCK],"geIcon geSprite geSprite-endblocktrans",null,!1).setAttribute("title",mxResources.get("block"));H.div.style.width="40px";window.setTimeout(mxUtils.bind(this,function(){null!=H.div&&mxUtils.fit(H.div)}),0)}}));this.addArrow(G);this.addArrow(K).style.marginTop="-1px";this.addArrow(U);this.addArrow(Y);T=this.addArrow(u);T.className="geIcon";u.style.width="134px";u=this.addArrow(w);u.className="geIcon";u.style.width="22px";var Q=document.createElement("div");
-Q.style.width="102px";Q.style.height="10px";Q.style.borderBottom="1px solid currentcolor";Q.style.marginLeft="10px";T.appendChild(Q);var P=document.createElement("div");P.style.width="30px";P.style.height="10px";P.style.borderBottom="1px solid currentcolor";P.style.marginLeft="10px";u.appendChild(P);a.appendChild(m);a.appendChild(D);a.appendChild(C);u=C.cloneNode(!1);u.style.display="block";u.style.padding="5px 4px 6px 0px";u.style.fontWeight="normal";w=document.createElement("div");w.style.position=
-"absolute";w.style.maxWidth="78px";w.style.overflow="hidden";w.style.textOverflow="ellipsis";w.style.marginLeft="0px";w.style.marginBottom="12px";w.style.marginTop="2px";w.style.fontWeight="normal";mxUtils.write(w,mxResources.get("lineend"));u.appendChild(w);var M=this.addUnitInput(u,this.getUnit(),98,52,function(){V.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),W=this.addUnitInput(u,this.getUnit(),30,52,function(){ca.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());
-mxUtils.br(u);T=document.createElement("div");T.style.height="8px";u.appendChild(T);w=w.cloneNode(!1);mxUtils.write(w,mxResources.get("linestart"));u.appendChild(w);var aa=this.addUnitInput(u,this.getUnit(),98,52,function(){Z.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(){ja.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 qa=mxUtils.bind(this,function(H,ea,la){function sa(Pa,ma,Ca,Da){Ca=Ca.getElementsByTagName("div")[0];null!=Ca&&h.updateCssForMarker(Ca,Da,g.style.shape,Pa,ma);return Ca}g=h.getSelectionState();if(la||document.activeElement!=I)H=
-parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),I.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(la||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");"1"==mxUtils.getValue(g.style,mxConstants.STYLE_DASHED,null)?(ea=mxUtils.getValue(g.style,mxConstants.STYLE_DASH_PATTERN,"").split(" "),2==ea.length?(H=parseInt(ea[0])+parseInt(ea[1]),ea=parseInt(ea[0])/H*100,Q.style.borderBottom="1px solid transparent",Q.style.backgroundImage="linear-gradient(to right, currentcolor "+ea+"%, transparent 0%)",Q.style.backgroundPosition="bottom left",Q.style.backgroundSize=H+"px 1px",Q.style.backgroundRepeat="repeat-x"):
-Q.style.borderBottom="1px dashed currentcolor"):Q.style.borderBottom="1px solid currentcolor";P.style.backgroundImage=Q.style.backgroundImage;P.style.backgroundPosition=Q.style.backgroundPosition;P.style.backgroundSize=Q.style.backgroundSize;P.style.backgroundRepeat=Q.style.backgroundRepeat;P.style.borderBottom=Q.style.borderBottom;H=K.getElementsByTagName("div")[0];null!=H&&(ea=mxUtils.getValue(g.style,mxConstants.STYLE_EDGE,null),"1"==mxUtils.getValue(g.style,mxConstants.STYLE_NOEDGESTYLE,null)&&
-(ea=null),"orthogonalEdgeStyle"==ea&&"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?H.className="geSprite geSprite-curved":H.className="straight"==ea||"none"==ea||null==ea?"geSprite geSprite-straight":"entityRelationEdgeStyle"==ea?"geSprite geSprite-entity":"elbowEdgeStyle"==ea?"geSprite "+("vertical"==mxUtils.getValue(g.style,mxConstants.STYLE_ELBOW,null)?"geSprite-verticalelbow":"geSprite-horizontalelbow"):"isometricEdgeStyle"==ea?"geSprite "+("vertical"==mxUtils.getValue(g.style,
-mxConstants.STYLE_ELBOW,null)?"geSprite-verticalisometric":"geSprite-horizontalisometric"):"geSprite geSprite-orthogonal");H=G.getElementsByTagName("div")[0];null!=H&&(H.className="link"==g.style.shape?"geSprite geSprite-linkedge":"flexArrow"==g.style.shape?"geSprite geSprite-arrow":"arrow"==g.style.shape?"geSprite geSprite-simplearrow":"geSprite geSprite-connection");g.edges.length==g.cells.length?(D.style.display="",C.style.display="none"):(D.style.display="none",C.style.display="");Graph.lineJumpsEnabled&&
-0<g.edges.length&&0==g.vertices.length&&g.lineJumps&&(a.style.borderBottomStyle="none");H=sa(mxUtils.getValue(g.style,mxConstants.STYLE_STARTARROW,null),mxUtils.getValue(g.style,"startFill","1"),U,"start");ea=sa(mxUtils.getValue(g.style,mxConstants.STYLE_ENDARROW,null),mxUtils.getValue(g.style,"endFill","1"),Y,"end");null!=H&&null!=ea&&("arrow"==g.style.shape?(H.className="geSprite geSprite-noarrow",ea.className="geSprite geSprite-endblocktrans"):"link"==g.style.shape&&(H.className="geSprite geSprite-noarrow",
-ea.className="geSprite geSprite-noarrow"));mxUtils.setOpacity(K,"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(la||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(la||
-document.activeElement!=aa)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0)),aa.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(la||document.activeElement!=W)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE)),W.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(la||document.activeElement!=aa)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0)),M.value=isNaN(H)?"":this.inUnit(H)+" "+
-this.getUnit();if(la||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 Z=this.installInputHandler(aa,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ca=this.installInputHandler(W,mxConstants.STYLE_ENDSIZE,
-mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var V=this.installInputHandler(M,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ja=this.installInputHandler(oa,mxConstants.STYLE_PERIMETER_SPACING,0,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(I,qa);this.addKeyHandler(ia,qa);this.addKeyHandler(aa,qa);this.addKeyHandler(W,qa);this.addKeyHandler(M,qa);this.addKeyHandler(oa,qa);d.getModel().addListener(mxEvent.CHANGE,
-qa);this.listeners.push({destroy:function(){d.getModel().removeListener(qa)}});qa();return a};
+["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW,"startFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src))):Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_STARTARROW],
+[mxConstants.ARROW_BLOCK],null,null,!1,Format.blockMarkerImage.src)).setAttribute("title",mxResources.get("block")),H.div.style.width="40px",window.setTimeout(mxUtils.bind(this,function(){null!=H.div&&mxUtils.fit(H.div)}),0)})),Y=this.editorUi.toolbar.addMenuFunctionInContainer(k,null,mxResources.get("lineend"),!1,mxUtils.bind(this,function(H){if("connector"==g.style.shape||"flexArrow"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape)Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"startFill"],[mxConstants.NONE,0],null,null,!1,Format.noMarkerImage.src)).setAttribute("title",mxResources.get("none")),"connector"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,Format.classicFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,
+"endFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src),"scaleX(-1)"),
+Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,1],null,null,!1,Format.blockFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,
+1],null,null,!1,Format.blockThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,1],null,null,!1,Format.ovalFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",
+[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src),
+"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,0],null,null,!1,Format.blockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],
+[mxConstants.ARROW_BLOCK_THIN,0],null,null,!1,Format.blockThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",0],null,null,!1,Format.asyncMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,0],null,null,!1,Format.ovalMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,0],null,null,!1,Format.diamondMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,0],null,null,!1,Format.diamondThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["box",0],null,null,!1,Format.boxMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"endFill"],["halfCircle",0],null,null,!1,Format.halfCircleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["dash",0],null,null,!1,Format.dashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"endFill"],["circlePlus",0],null,null,!1,Format.circlePlusMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circle",0],null,null,!1,Format.circleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERone",0],null,null,!1,Format.EROneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmany",0],null,null,!1,Format.ERmanyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERoneToMany",0],null,null,!1,Format.ERoneToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToOne",0],null,null,!1,Format.ERzeroToOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,
+"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src),"scaleX(-1)")):Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(H,"",[mxConstants.STYLE_ENDARROW],[mxConstants.ARROW_BLOCK],null,null,!1,Format.blockMarkerImage.src),"scaleX(-1)").setAttribute("title",
+mxResources.get("block")),H.div.style.width="40px",window.setTimeout(mxUtils.bind(this,function(){null!=H.div&&mxUtils.fit(H.div)}),0)}));this.addArrow(G);this.addArrow(K).style.marginTop="-1px";this.addArrow(U);this.addArrow(Y);T=this.addArrow(u);T.className="geIcon";u.style.width="134px";u=this.addArrow(x);u.className="geIcon";u.style.width="22px";var Q=document.createElement("div");Q.style.width="102px";Q.style.height="10px";Q.style.borderBottom="1px solid currentcolor";Q.style.marginLeft="10px";
+T.appendChild(Q);var P=document.createElement("div");P.style.width="30px";P.style.height="10px";P.style.borderBottom="1px solid currentcolor";P.style.marginLeft="10px";u.appendChild(P);a.appendChild(m);a.appendChild(D);a.appendChild(C);u=C.cloneNode(!1);u.style.display="block";u.style.padding="5px 4px 6px 0px";u.style.fontWeight="normal";x=document.createElement("div");x.style.position="absolute";x.style.maxWidth="78px";x.style.overflow="hidden";x.style.textOverflow="ellipsis";x.style.marginLeft=
+"0px";x.style.marginBottom="12px";x.style.marginTop="2px";x.style.fontWeight="normal";mxUtils.write(x,mxResources.get("lineend"));u.appendChild(x);var M=this.addUnitInput(u,this.getUnit(),98,52,function(){W.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),V=this.addUnitInput(u,this.getUnit(),30,52,function(){ca.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(u);T=document.createElement("div");T.style.height="8px";u.appendChild(T);x=x.cloneNode(!1);
+mxUtils.write(x,mxResources.get("linestart"));u.appendChild(x);var aa=this.addUnitInput(u,this.getUnit(),98,52,function(){Z.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";x=document.createElement("div");x.style.position="absolute";x.style.marginLeft="3px";x.style.marginBottom="12px";x.style.marginTop="1px";x.style.fontWeight="normal";x.style.width="120px";mxUtils.write(x,mxResources.get("perimeter"));m.appendChild(x);var na=this.addUnitInput(m,this.getUnit(),30,52,function(){ja.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 qa=mxUtils.bind(this,function(H,ea,oa){function sa(Pa,la,Ba,Ca){Ba=Ba.getElementsByTagName("div")[0];null!=Ba&&h.updateCssForMarker(Ba,Ca,g.style.shape,Pa,la);return Ba}g=h.getSelectionState();if(oa||document.activeElement!=I)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),I.value=isNaN(H)?"":
+this.inUnit(H)+" "+this.getUnit();if(oa||document.activeElement!=L)H=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)),L.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();p.style.visibility="connector"==g.style.shape||"filledEdge"==g.style.shape||"wire"==g.style.shape?"":"hidden";"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?p.value="curved":"1"==mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,null)&&(p.value="rounded");"1"==mxUtils.getValue(g.style,mxConstants.STYLE_DASHED,
+null)?(ea=mxUtils.getValue(g.style,mxConstants.STYLE_DASH_PATTERN,"").split(" "),2==ea.length?(H=parseInt(ea[0])+parseInt(ea[1]),ea=parseInt(ea[0])/H*100,Q.style.borderBottom="1px solid transparent",Q.style.backgroundImage="linear-gradient(to right, currentcolor "+ea+"%, transparent 0%)",Q.style.backgroundPosition="bottom left",Q.style.backgroundSize=H+"px 1px",Q.style.backgroundRepeat="repeat-x"):Q.style.borderBottom="1px dashed currentcolor"):Q.style.borderBottom="1px solid currentcolor";P.style.backgroundImage=
+Q.style.backgroundImage;P.style.backgroundPosition=Q.style.backgroundPosition;P.style.backgroundSize=Q.style.backgroundSize;P.style.backgroundRepeat=Q.style.backgroundRepeat;P.style.borderBottom=Q.style.borderBottom;H=K.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,
+null)&&(ea=null),"orthogonalEdgeStyle"==ea&&"1"==mxUtils.getValue(g.style,mxConstants.STYLE_CURVED,null)?H.style.backgroundImage="url("+Format.curvedImage.src+")":"straight"==ea||"none"==ea||null==ea?H.style.backgroundImage="url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==ea?H.style.backgroundImage="url("+Format.entityImage.src+")":"elbowEdgeStyle"==ea?"vertical"==mxUtils.getValue(g.style,mxConstants.STYLE_ELBOW,null)?H.style.backgroundImage="url("+Format.verticalElbowImage.src+")":
+H.style.backgroundImage="url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==ea?"vertical"==mxUtils.getValue(g.style,mxConstants.STYLE_ELBOW,null)?H.style.backgroundImage="url("+Format.verticalIsometricImage.src+")":H.style.backgroundImage="url("+Format.horizontalIsometricImage.src+")":H.style.backgroundImage="url("+Format.orthogonalImage.src+")");H=G.getElementsByTagName("div")[0];null!=H&&(H.style.backgroundPosition="center center",H.style.backgroundRepeat="no-repeat",H.className="geAdaptiveAsset",
+H.style.height="",H.style.backgroundImage="link"==g.style.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==g.style.shape?"url("+Format.arrowImage.src+")":"arrow"==g.style.shape?"url("+Format.simpleArrowImage.src+")":"url("+Format.connectionImage.src+")");g.edges.length==g.cells.length?(D.style.display="",C.style.display="none"):(D.style.display="none",C.style.display="");Graph.lineJumpsEnabled&&0<g.edges.length&&0==g.vertices.length&&g.lineJumps&&(a.style.borderBottomStyle="none");sa(mxUtils.getValue(g.style,
+mxConstants.STYLE_STARTARROW,null),mxUtils.getValue(g.style,"startFill","1"),U,"start");sa(mxUtils.getValue(g.style,mxConstants.STYLE_ENDARROW,null),mxUtils.getValue(g.style,"endFill","1"),Y,"end");mxUtils.setOpacity(K,"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(oa||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(oa||document.activeElement!=aa)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0)),aa.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(oa||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(oa||document.activeElement!=
+aa)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0)),M.value=isNaN(H)?"":this.inUnit(H)+" "+this.getUnit();if(oa||document.activeElement!=na)H=parseInt(mxUtils.getValue(g.style,mxConstants.STYLE_PERIMETER_SPACING,0)),na.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 Z=this.installInputHandler(aa,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,
+0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ca=this.installInputHandler(V,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var W=this.installInputHandler(M,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ja=this.installInputHandler(na,mxConstants.STYLE_PERIMETER_SPACING,0,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(I,qa);this.addKeyHandler(ia,
+qa);this.addKeyHandler(aa,qa);this.addKeyHandler(V,qa);this.addKeyHandler(M,qa);this.addKeyHandler(na,qa);d.getModel().addListener(mxEvent.CHANGE,qa);this.listeners.push({destroy:function(){d.getModel().removeListener(qa)}});qa();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.padding="0px";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,f.cells),b.fireEvent(new mxEventObject("styleChanged","keys",["jumpStyle"],"values",[d.value],"cells",f.cells))}finally{e.getModel().endUpdate()}mxEvent.consume(w)});mxEvent.addListener(d,"click",function(w){mxEvent.consume(w)});a.appendChild(d);var q=this.addUnitInput(a,this.getUnit(),16,52,function(){k.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());var k=this.installInputHandler(q,"jumpSize",Graph.defaultJumpSize,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);
-var u=mxUtils.bind(this,function(w,z,C){f=b.getSelectionState();d.value=mxUtils.getValue(f.style,"jumpStyle","none");if(C||document.activeElement!=q)w=parseInt(mxUtils.getValue(f.style,"jumpSize",Graph.defaultJumpSize)),q.value=isNaN(w)?"":this.inUnit(w)+" "+this.getUnit()});this.addKeyHandler(q,u);e.getModel().addListener(mxEvent.CHANGE,u);this.listeners.push({destroy:function(){e.getModel().removeListener(u)}});u()}else a.style.display="none";return a};
-StyleFormatPanel.prototype.addEffects=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingTop="4px";a.style.paddingBottom="4px";var h=document.createElement("table");h.style.width="210px";h.style.fontWeight="bold";h.style.tableLayout="fixed";var d=document.createElement("tbody"),g=document.createElement("tr");g.style.padding="0px";var m=document.createElement("td");m.style.padding="0px";m.style.width="50%";m.setAttribute("valign","top");var q=m.cloneNode(!0);q.style.paddingLeft=
-"8px";g.appendChild(m);g.appendChild(q);d.appendChild(g);h.appendChild(d);a.appendChild(h);var k=m,u=mxUtils.bind(this,function(z,C,E,D){z=this.createCellOption(z,C,E,null,null,D);z.style.width="100%";k.appendChild(z);k=k==m?q:m;return z}),w=mxUtils.bind(this,function(z,C,E){f=b.getSelectionState();m.innerText="";q.innerText="";k=m;f.rounded&&u(mxResources.get("rounded"),mxConstants.STYLE_ROUNDED,0);f.swimlane&&u(mxResources.get("divider"),"swimlaneLine",1);u(mxResources.get("sketch"),"sketch",0,
+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(x){e.getModel().beginUpdate();try{e.setCellStyles("jumpStyle",d.value,
+f.cells),b.fireEvent(new mxEventObject("styleChanged","keys",["jumpStyle"],"values",[d.value],"cells",f.cells))}finally{e.getModel().endUpdate()}mxEvent.consume(x)});mxEvent.addListener(d,"click",function(x){mxEvent.consume(x)});a.appendChild(d);var p=this.addUnitInput(a,this.getUnit(),16,52,function(){k.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());var k=this.installInputHandler(p,"jumpSize",Graph.defaultJumpSize,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var u=
+mxUtils.bind(this,function(x,z,C){f=b.getSelectionState();d.value=mxUtils.getValue(f.style,"jumpStyle","none");if(C||document.activeElement!=p)x=parseInt(mxUtils.getValue(f.style,"jumpSize",Graph.defaultJumpSize)),p.value=isNaN(x)?"":this.inUnit(x)+" "+this.getUnit()});this.addKeyHandler(p,u);e.getModel().addListener(mxEvent.CHANGE,u);this.listeners.push({destroy:function(){e.getModel().removeListener(u)}});u()}else a.style.display="none";return a};
+StyleFormatPanel.prototype.addEffects=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.style.paddingTop="4px";a.style.paddingBottom="4px";var h=document.createElement("table");h.style.width="210px";h.style.fontWeight="bold";h.style.tableLayout="fixed";var d=document.createElement("tbody"),g=document.createElement("tr");g.style.padding="0px";var m=document.createElement("td");m.style.padding="0px";m.style.width="50%";m.setAttribute("valign","top");var p=m.cloneNode(!0);p.style.paddingLeft=
+"8px";g.appendChild(m);g.appendChild(p);d.appendChild(g);h.appendChild(d);a.appendChild(h);var k=m,u=mxUtils.bind(this,function(z,C,E,D){z=this.createCellOption(z,C,E,null,null,D);z.style.width="100%";k.appendChild(z);k=k==m?p:m;return z}),x=mxUtils.bind(this,function(z,C,E){f=b.getSelectionState();m.innerText="";p.innerText="";k=m;f.rounded&&u(mxResources.get("rounded"),mxConstants.STYLE_ROUNDED,0);f.swimlane&&u(mxResources.get("divider"),"swimlaneLine",1);u(mxResources.get("sketch"),"sketch",0,
function(D,G){e.updateCellStyles({sketch:G?"1":null,curveFitting:G?Editor.sketchDefaultCurveFitting:null,jiggle:G?Editor.sketchDefaultJiggle:null},D)});f.glass&&u(mxResources.get("glass"),mxConstants.STYLE_GLASS,0);z=u(mxResources.get("shadow"),mxConstants.STYLE_SHADOW,0);Editor.enableShadowOption||(z.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(z,60));0<f.edges.length&&0==f.vertices.length&&u(mxResources.get("flowAnimation",null,"Flow Animation"),"flowAnimation",
-0)});e.getModel().addListener(mxEvent.CHANGE,w);this.listeners.push({destroy:function(){e.getModel().removeListener(w)}});w();return a};StyleFormatPanel.prototype.addStyleOps=function(a){1==this.editorUi.getSelectionState().cells.length&&this.addActions(a,["setAsDefaultStyle"]);return a};DiagramStylePanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(DiagramStylePanel,BaseFormatPanel);DiagramStylePanel.prototype.init=function(){this.container.appendChild(this.addView(this.createPanel()))};
+0)});e.getModel().addListener(mxEvent.CHANGE,x);this.listeners.push({destroy:function(){e.getModel().removeListener(x)}});x();return a};StyleFormatPanel.prototype.addStyleOps=function(a){1==this.editorUi.getSelectionState().cells.length&&this.addActions(a,["setAsDefaultStyle"]);return a};DiagramStylePanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(DiagramStylePanel,BaseFormatPanel);DiagramStylePanel.prototype.init=function(){this.container.appendChild(this.addView(this.createPanel()))};
DiagramStylePanel.prototype.getGlobalStyleButtons=function(){var a=this.editorUi,b=a.editor.graph,e=document.createElement("div");e.style.alignItems="center";e.style.textAlign="left";e.style.display="flex";var f=document.createElement("input");f.setAttribute("type","checkbox");f.style.margin="1px 6px 0px 0px";f.checked=Editor.sketchMode;e.appendChild(f);mxUtils.write(e,mxResources.get("sketch"));mxEvent.addListener(e,"click",function(d){if(b.isEnabled()){var g=!Editor.sketchMode;Editor.sketchMode=
-g;b.updateCellStyles({sketch:g?"1":null,curveFitting:g?Editor.sketchDefaultCurveFitting:null,jiggle:g?Editor.sketchDefaultJiggle:null},b.getVerticesAndEdges());mxEvent.consume(d);window.setTimeout(function(){Editor.sketchMode=!g;a.setSketchMode(g)})}});e=[e,mxUtils.button(mxResources.get("rounded"),mxUtils.bind(this,function(d){var g=b.getVerticesAndEdges(),m=!0;if(0<g.length)for(var q=0;q<g.length;q++){var k=b.getCellStyle(g[q]);if(0==mxUtils.getValue(k,mxConstants.STYLE_ROUNDED,0)){m=!1;break}}m=
+g;b.updateCellStyles({sketch:g?"1":null,curveFitting:g?Editor.sketchDefaultCurveFitting:null,jiggle:g?Editor.sketchDefaultJiggle:null},b.getVerticesAndEdges());mxEvent.consume(d);window.setTimeout(function(){Editor.sketchMode=!g;a.setSketchMode(g)})}});e=[e,mxUtils.button(mxResources.get("rounded"),mxUtils.bind(this,function(d){var g=b.getVerticesAndEdges(),m=!0;if(0<g.length)for(var p=0;p<g.length;p++){var k=b.getCellStyle(g[p]);if(0==mxUtils.getValue(k,mxConstants.STYLE_ROUNDED,0)){m=!1;break}}m=
!m;b.updateCellStyles({rounded:m?"1":"0"},g);m?(b.currentEdgeStyle.rounded="1",b.currentVertexStyle.rounded="1"):(delete b.currentEdgeStyle.rounded,delete b.currentVertexStyle.rounded);mxEvent.consume(d)}))];if(!b.isEnabled())for(f=0;f<e.length;f++)if("BUTTON"==e[f].nodeName)e[f].setAttribute("disabled","disabled");else{var h=e[f].getElementsByTagName("input");0<h.length&&h[0].setAttribute("disabled","disabled")}return e};
DiagramStylePanel.prototype.addView=function(a){var b=this.editorUi,e=b.editor.graph;a.style.paddingTop="2px";a.style.whiteSpace="normal";var f=document.createElement("div");f.style.marginRight="16px";f.style.paddingBottom="2px";if(e.isEnabled()){var h=document.createElement("div");h.style.display="flex";h.style.alignItems="center";h.style.padding="4px 0px 0px 4px";h.style.height="18px";var d=mxResources.get("adaptiveColors"),g=document.createElement("div");g.setAttribute("title",d);g.style.display=
"inline-block";g.style.whiteSpace="nowrap";g.style.textOverflow="ellipsis";g.style.overflow="hidden";g.style.maxWidth="92px";g.style.width="92px";g.style.userSelect="none";mxUtils.write(g,d);h.appendChild(g);mxClient.IS_FF&&(g.style.marginTop="1px");var m=document.createElement("select");m.style.textOverflow="ellipsis";m.style.height="22px";m.style.position="absolute";m.style.maxWidth="70px";m.style.width="70px";m.style.left="127px";d=document.createElement("option");d.setAttribute("title",mxResources.get("default")+
" ("+mxResources.get(Graph.getDefaultAdaptiveColorsKey())+")");mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));d.setAttribute("value","default");m.appendChild(d);d=document.createElement("option");d.setAttribute("title",mxResources.get("automatic"));mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));d.setAttribute("value","auto");m.appendChild(d);d=document.createElement("option");d.setAttribute("title",mxResources.get("simple"));mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));
d.setAttribute("value","simple");m.appendChild(d);d=document.createElement("option");d.setAttribute("title",mxResources.get("none"));mxUtils.write(d,mxUtils.htmlEntities(d.getAttribute("title")));d.setAttribute("value","none");m.appendChild(d);m.value=null==e.adaptiveColors?"default":e.adaptiveColors;mxEvent.addListener(m,"change",function(){var C=new ChangePageSetup(b);C.ignoreColor=!0;C.ignoreImage=!0;C.adaptiveColors=m.value;e.model.execute(C)});h.appendChild(m);if(!b.isOffline()||mxClient.IS_CHROMEAPP||
-EditorUi.isElectronApp)d=b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/4713"),d.style.position="absolute",d.style.left="196px",h.appendChild(d);a.appendChild(h)}h=document.createElement("table");h.style.width="204px";d=document.createElement("tbody");g=document.createElement("tr");g.style.padding="0px";var q=document.createElement("td");q.style.textAlign="center";q.style.padding="2px";q.style.width="50%";for(var k=q.cloneNode(!0),u=this.getGlobalStyleButtons(),w=0;w<u.length;w+=
-2){var z=u[w];z.style.height="22px";z.style.width="88px";q.appendChild(z);g.appendChild(q);z=u[w+1];null!=z&&(z.style.height="22px",z.style.width="88px",k.appendChild(z));g.appendChild(k);d.appendChild(g);q=q.cloneNode(!1);k=k.cloneNode(!1);g=g.cloneNode(!1)}h.appendChild(d);f.appendChild(h);a.appendChild(f);e.isEnabled()&&this.addGraphStyles(a);return a};
-DiagramStylePanel.prototype.addGraphStyles=function(a){var b=this.editorUi,e=b.editor.graph,f=e.getModel(),h=e.view.gridColor,d=["fillColor","strokeColor","fontColor","gradientColor"];a.style.whiteSpace="normal";a.style.paddingLeft="18px";a.style.paddingTop="6px";var g=mxUtils.bind(this,function(Y,Q){var P=e.getVerticesAndEdges();f.beginUpdate();try{for(var M=0;M<P.length;M++){var W=e.getCellStyle(P[M]);q||null==W.labelBackgroundColor?q&&e.updateCellStyles({labelBackgroundColor:mxConstants.NONE},
-[P[M]]):e.updateCellStyles({labelBackgroundColor:null!=Q?Q.background:null},[P[M]]);for(var aa=f.isEdge(P[M]),ia=f.getStyle(P[M]),oa=aa?e.currentEdgeStyle:e.currentVertexStyle,qa=0;qa<Y.length;qa++)if(null!=W[Y[qa]]&&W[Y[qa]]!=mxConstants.NONE||Y[qa]!=mxConstants.STYLE_FILLCOLOR&&Y[qa]!=mxConstants.STYLE_STROKECOLOR)ia=q&&aa&&Y[qa]==mxConstants.STYLE_FONTCOLOR?mxUtils.setStyle(ia,Y[qa],"default"):mxUtils.setStyle(ia,Y[qa],oa[Y[qa]]);f.setStyle(P[M],ia)}}finally{f.endUpdate()}}),m=mxUtils.bind(this,
-function(Y,Q,P){if(null!=Y)for(var M=0;M<Q.length;M++)if(null!=Y[Q[M]]&&Y[Q[M]]!=mxConstants.NONE||Q[M]!=mxConstants.STYLE_FILLCOLOR&&Q[M]!=mxConstants.STYLE_STROKECOLOR)Y[Q[M]]=P[Q[M]]}),q=!0,k=mxUtils.bind(this,function(Y,Q,P,M,W){if(null!=Y){null!=P&&(q||null==Q.labelBackgroundColor?q&&(Q.labelBackgroundColor=mxConstants.NONE):(M=null!=M?M.background:null,W=null!=W?W:e,null==M&&(M=W.background),null==M&&(M=W.defaultPageBackgroundColor),Q.labelBackgroundColor=M));for(var aa in Y)if(null==P||null!=
-Q[aa]&&Q[aa]!=mxConstants.NONE||aa!=mxConstants.STYLE_FILLCOLOR&&aa!=mxConstants.STYLE_STROKECOLOR)q&&f.isEdge(P)&&aa==mxConstants.STYLE_FONTCOLOR?Q[aa]="default":Q[aa]=Y[aa]}}),u=mxUtils.bind(this,function(Y,Q,P,M,W){var aa=document.createElement("div");aa.style.position="absolute";aa.style.display="inline-block";aa.style.overflow="hidden";aa.style.pointerEvents="none";aa.style.width="100%";aa.style.height="100%";W.appendChild(aa);var ia=new Graph(aa,null,null,e.getStylesheet());ia.shapeBackgroundColor=
-"light-dark(#f1f3f4, "+Editor.darkColor+")";ia.resetViewOnRootChange=!1;ia.foldingEnabled=!1;ia.gridEnabled=!1;ia.autoScroll=!1;ia.setTooltips(!1);ia.setConnectable(!1);ia.setPanning(!1);ia.setEnabled(!1);ia.getCellStyle=function(O,Z){Z=null!=Z?Z:!0;var ca=mxUtils.clone(e.getCellStyle.apply(this,arguments)),V=e.stylesheet.getDefaultVertexStyle(),ja=Q;f.isEdge(O)&&(V=e.stylesheet.getDefaultEdgeStyle(),ja=P);m(ca,d,V);k(Y,ca,O,M,ia);k(ja,ca,O,M,ia);Z&&(ca=e.postProcessCellStyle(O,ca));return ca};ia.model.beginUpdate();
-try{var oa=ia.insertVertex(ia.getDefaultParent(),null,"Shape",14,8,70,36,"strokeWidth=2;"),qa=ia.insertEdge(ia.getDefaultParent(),null,"Connector",oa,oa,"edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;endSize=5;strokeWidth=2;");qa.geometry.points=[new mxPoint(32,66)];qa.geometry.offset=new mxPoint(0,8)}finally{ia.model.endUpdate()}W=ia.view.getDrawPane().ownerSVGElement;null!=W&&(aa=W.cloneNode(!0),aa.style.position="absolute",aa.style.clipPath="rect(0 52% 100% 0)",W.style.clipPath=
-"rect(0 100% 100% 51%)",W.style.colorScheme="light",W.parentNode.appendChild(aa))}),w=document.createElement("div");w.style.position="relative";w.style.width="210px";a.appendChild(w);null==this.format.cachedStyleEntries&&(this.format.cachedStyleEntries=[]);var z=mxUtils.bind(this,function(Y,Q,P,M,W){var aa=this.format.cachedStyleEntries[W];null==aa&&(aa=document.createElement("div"),aa.className="geItem",aa.style.position="relative",aa.style.width="96px",aa.style.height="86px",aa.style.cursor="pointer",
-aa.style.border="1px solid gray",aa.style.borderRadius="8px",aa.style.margin="1px 2px",aa.style.overflow="hidden",q||null==M||null==M.background||(aa.style.backgroundColor=M.background),u(Y,Q,P,M,aa),mxEvent.addListener(aa,"click",mxUtils.bind(this,function(ia){e.currentVertexStyle=mxUtils.clone(e.defaultVertexStyle);e.currentEdgeStyle=mxUtils.clone(e.defaultEdgeStyle);k(Y,e.currentVertexStyle);k(Y,e.currentEdgeStyle);k(Q,e.currentVertexStyle);k(P,e.currentEdgeStyle);f.beginUpdate();try{var oa=d.slice(),
-qa;for(qa in Y)oa.push(qa);g(oa,M);if(!q){var O=new ChangePageSetup(b,null!=M?M.background:null);O.ignoreImage=!0;f.execute(O);f.execute(new ChangeGridColor(b,null!=M&&null!=M.gridColor?M.gridColor:h))}}finally{f.endUpdate()}})),mxEvent.addGestureListeners(aa,mxUtils.bind(this,function(ia){aa.style.opacity=.5}),null,mxUtils.bind(this,function(ia){aa.style.opacity=1})),mxEvent.addListener(aa,"mouseenter",mxUtils.bind(this,function(ia){var oa=e.getCellStyle;ia=e.background;var qa=e.view.gridColor;q||
-(e.background=null!=M?M.background:null,e.view.gridColor=null!=M&&null!=M.gridColor?M.gridColor:h);e.getCellStyle=function(O,Z){Z=null!=Z?Z:!0;var ca=mxUtils.clone(oa.apply(this,arguments)),V=e.stylesheet.getDefaultVertexStyle(),ja=Q;f.isEdge(O)&&(V=e.stylesheet.getDefaultEdgeStyle(),ja=P);m(ca,d,V);k(Y,ca,O,M);k(ja,ca,O,M);Z&&(ca=this.postProcessCellStyle(O,ca));return ca};e.refresh();e.getCellStyle=oa;e.background=ia;e.view.gridColor=qa;aa.style.border="2px solid blue";aa.style.margin="0px 1px"})),
-mxEvent.addListener(aa,"mouseleave",mxUtils.bind(this,function(ia){aa.style.border="1px solid gray";aa.style.margin="1px 2px";e.refresh()})),mxClient.IS_IE||mxClient.IS_IE11||(this.format.cachedStyleEntries[W]=aa));w.appendChild(aa)}),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 Q=Editor.styles[Y];z(Q.commonStyle,Q.vertexStyle,Q.edgeStyle,Q.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 T=
+EditorUi.isElectronApp)d=b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/4713"),d.style.position="absolute",d.style.left="196px",h.appendChild(d);a.appendChild(h)}h=document.createElement("table");h.style.width="204px";d=document.createElement("tbody");g=document.createElement("tr");g.style.padding="0px";var p=document.createElement("td");p.style.textAlign="center";p.style.padding="2px";p.style.width="50%";for(var k=p.cloneNode(!0),u=this.getGlobalStyleButtons(),x=0;x<u.length;x+=
+2){var z=u[x];z.style.height="22px";z.style.width="88px";p.appendChild(z);g.appendChild(p);z=u[x+1];null!=z&&(z.style.height="22px",z.style.width="88px",k.appendChild(z));g.appendChild(k);d.appendChild(g);p=p.cloneNode(!1);k=k.cloneNode(!1);g=g.cloneNode(!1)}h.appendChild(d);f.appendChild(h);a.appendChild(f);e.isEnabled()&&this.addGraphStyles(a);return a};
+DiagramStylePanel.prototype.addGraphStyles=function(a){var b=this.editorUi,e=b.editor.graph,f=e.getModel(),h=e.view.gridColor,d=["fillColor","strokeColor","fontColor","gradientColor"];a.style.whiteSpace="normal";a.style.paddingLeft="18px";a.style.paddingTop="6px";var g=mxUtils.bind(this,function(Y,Q){var P=e.getVerticesAndEdges();f.beginUpdate();try{for(var M=0;M<P.length;M++){var V=e.getCellStyle(P[M]);p||null==V.labelBackgroundColor?p&&e.updateCellStyles({labelBackgroundColor:mxConstants.NONE},
+[P[M]]):e.updateCellStyles({labelBackgroundColor:null!=Q?Q.background:null},[P[M]]);for(var aa=f.isEdge(P[M]),ia=f.getStyle(P[M]),na=aa?e.currentEdgeStyle:e.currentVertexStyle,qa=0;qa<Y.length;qa++)if(null!=V[Y[qa]]&&V[Y[qa]]!=mxConstants.NONE||Y[qa]!=mxConstants.STYLE_FILLCOLOR&&Y[qa]!=mxConstants.STYLE_STROKECOLOR)ia=p&&aa&&Y[qa]==mxConstants.STYLE_FONTCOLOR?mxUtils.setStyle(ia,Y[qa],"default"):mxUtils.setStyle(ia,Y[qa],na[Y[qa]]);f.setStyle(P[M],ia)}}finally{f.endUpdate()}}),m=mxUtils.bind(this,
+function(Y,Q,P){if(null!=Y)for(var M=0;M<Q.length;M++)if(null!=Y[Q[M]]&&Y[Q[M]]!=mxConstants.NONE||Q[M]!=mxConstants.STYLE_FILLCOLOR&&Q[M]!=mxConstants.STYLE_STROKECOLOR)Y[Q[M]]=P[Q[M]]}),p=!0,k=mxUtils.bind(this,function(Y,Q,P,M,V){if(null!=Y){null!=P&&(p||null==Q.labelBackgroundColor?p&&(Q.labelBackgroundColor=mxConstants.NONE):(M=null!=M?M.background:null,V=null!=V?V:e,null==M&&(M=V.background),null==M&&(M=V.defaultPageBackgroundColor),Q.labelBackgroundColor=M));for(var aa in Y)if(null==P||null!=
+Q[aa]&&Q[aa]!=mxConstants.NONE||aa!=mxConstants.STYLE_FILLCOLOR&&aa!=mxConstants.STYLE_STROKECOLOR)p&&f.isEdge(P)&&aa==mxConstants.STYLE_FONTCOLOR?Q[aa]="default":Q[aa]=Y[aa]}}),u=mxUtils.bind(this,function(Y,Q,P,M,V){var aa=document.createElement("div");aa.style.position="absolute";aa.style.display="inline-block";aa.style.overflow="hidden";aa.style.pointerEvents="none";aa.style.width="100%";aa.style.height="100%";V.appendChild(aa);var ia=new Graph(aa,null,null,e.getStylesheet());ia.shapeBackgroundColor=
+"light-dark(#f1f3f4, "+Editor.darkColor+")";ia.resetViewOnRootChange=!1;ia.foldingEnabled=!1;ia.gridEnabled=!1;ia.autoScroll=!1;ia.setTooltips(!1);ia.setConnectable(!1);ia.setPanning(!1);ia.setEnabled(!1);ia.getCellStyle=function(O,Z){Z=null!=Z?Z:!0;var ca=mxUtils.clone(e.getCellStyle.apply(this,arguments)),W=e.stylesheet.getDefaultVertexStyle(),ja=Q;f.isEdge(O)&&(W=e.stylesheet.getDefaultEdgeStyle(),ja=P);m(ca,d,W);k(Y,ca,O,M,ia);k(ja,ca,O,M,ia);Z&&(ca=e.postProcessCellStyle(O,ca));return ca};ia.model.beginUpdate();
+try{var na=ia.insertVertex(ia.getDefaultParent(),null,"Shape",14,8,70,36,"strokeWidth=2;"),qa=ia.insertEdge(ia.getDefaultParent(),null,"Connector",na,na,"edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;endSize=5;strokeWidth=2;");qa.geometry.points=[new mxPoint(32,66)];qa.geometry.offset=new mxPoint(0,8)}finally{ia.model.endUpdate()}V=ia.view.getDrawPane().ownerSVGElement;null!=V&&(aa=V.cloneNode(!0),aa.style.position="absolute",aa.style.clipPath="rect(0 52% 100% 0)",V.style.clipPath=
+"rect(0 100% 100% 51%)",V.style.colorScheme="light",V.parentNode.appendChild(aa))}),x=document.createElement("div");x.style.position="relative";x.style.width="210px";a.appendChild(x);null==this.format.cachedStyleEntries&&(this.format.cachedStyleEntries=[]);var z=mxUtils.bind(this,function(Y,Q,P,M,V){var aa=this.format.cachedStyleEntries[V];null==aa&&(aa=document.createElement("div"),aa.className="geItem",aa.style.position="relative",aa.style.width="96px",aa.style.height="86px",aa.style.cursor="pointer",
+aa.style.border="1px solid gray",aa.style.borderRadius="8px",aa.style.margin="1px 2px",aa.style.overflow="hidden",p||null==M||null==M.background||(aa.style.backgroundColor=M.background),u(Y,Q,P,M,aa),mxEvent.addListener(aa,"click",mxUtils.bind(this,function(ia){e.currentVertexStyle=mxUtils.clone(e.defaultVertexStyle);e.currentEdgeStyle=mxUtils.clone(e.defaultEdgeStyle);k(Y,e.currentVertexStyle);k(Y,e.currentEdgeStyle);k(Q,e.currentVertexStyle);k(P,e.currentEdgeStyle);f.beginUpdate();try{var na=d.slice(),
+qa;for(qa in Y)na.push(qa);g(na,M);if(!p){var O=new ChangePageSetup(b,null!=M?M.background:null);O.ignoreImage=!0;f.execute(O);f.execute(new ChangeGridColor(b,null!=M&&null!=M.gridColor?M.gridColor:h))}}finally{f.endUpdate()}})),mxEvent.addGestureListeners(aa,mxUtils.bind(this,function(ia){aa.style.opacity=.5}),null,mxUtils.bind(this,function(ia){aa.style.opacity=1})),mxEvent.addListener(aa,"mouseenter",mxUtils.bind(this,function(ia){var na=e.getCellStyle;ia=e.background;var qa=e.view.gridColor;p||
+(e.background=null!=M?M.background:null,e.view.gridColor=null!=M&&null!=M.gridColor?M.gridColor:h);e.getCellStyle=function(O,Z){Z=null!=Z?Z:!0;var ca=mxUtils.clone(na.apply(this,arguments)),W=e.stylesheet.getDefaultVertexStyle(),ja=Q;f.isEdge(O)&&(W=e.stylesheet.getDefaultEdgeStyle(),ja=P);m(ca,d,W);k(Y,ca,O,M);k(ja,ca,O,M);Z&&(ca=this.postProcessCellStyle(O,ca));return ca};e.refresh();e.getCellStyle=na;e.background=ia;e.view.gridColor=qa;aa.style.border="2px solid blue";aa.style.margin="0px 1px"})),
+mxEvent.addListener(aa,"mouseleave",mxUtils.bind(this,function(ia){aa.style.border="1px solid gray";aa.style.margin="1px 2px";e.refresh()})),mxClient.IS_IE||mxClient.IS_IE11||(this.format.cachedStyleEntries[V]=aa));x.appendChild(aa)}),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 Q=Editor.styles[Y];z(Q.commonStyle,Q.vertexStyle,Q.edgeStyle,Q.graph,Y)}}),G=mxUtils.bind(this,function(Y){0<=Y&&Y<C&&(E[this.format.currentStylePage].style.background="transparent",x.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 T=
document.createElement("div");T.style.display="inline-block";T.style.width="6px";T.style.height="6px";T.style.marginLeft="4px";T.style.marginRight="3px";T.style.borderRadius="3px";T.style.cursor="pointer";T.style.background="transparent";T.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(Y,Q){mxEvent.addListener(T,"click",mxUtils.bind(this,function(){G(Y)}))})(L,T);I.appendChild(T);E.push(T)}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 K=document.createElement("div");K.className="geAdaptiveAsset";K.style.position="absolute";K.style.left="0px";K.style.top="0px";K.style.bottom="0px";K.style.width="24px";K.style.height="24px";K.style.margin="0px";K.style.cursor="pointer";K.style.opacity="0.5";K.style.backgroundRepeat="no-repeat";K.style.backgroundPosition="center center";K.style.backgroundSize="24px 24px";K.style.backgroundImage="url("+Editor.previousImage+
")";var U=K.cloneNode(!1);U.style.backgroundImage="url("+Editor.nextImage+")";U.style.left="";U.style.right="2px";I.appendChild(K);I.appendChild(U);mxEvent.addListener(K,"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(K);L(U)}}else D();return a};DiagramFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};
@@ -3275,43 +3296,43 @@ a.appendChild(this.createOption(mxResources.get("connectionPoints"),function(){r
{install:function(f){this.listener=function(){f(e.graphHandler.guidesEnabled)};b.addListener("guidesEnabledChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})));return a};
DiagramFormatPanel.prototype.addGridOption=function(a){function b(k){var u=e.isFloatUnit()?parseFloat(d.value):parseInt(d.value);u=e.fromUnit(Math.max(e.inUnit(1),isNaN(u)?e.inUnit(10):u));u!=h.getGridSize()&&(mxGraph.prototype.gridSize=u,h.setGridSize(u));d.value=e.inUnit(u)+" "+e.getUnit();mxEvent.consume(k)}var e=this,f=this.editorUi,h=f.editor.graph,d=document.createElement("input");d.style.position="absolute";d.style.textAlign="right";d.style.width="48px";d.style.marginTop="-2px";d.style.height=
"21px";d.style.borderWidth="1px";d.style.borderStyle="solid";d.style.boxSizing="border-box";d.value=this.inUnit(h.getGridSize())+" "+this.getUnit();var g=this.createStepper(d,b,this.getUnitStep(),null,null,null,this.isFloatUnit());d.style.display=h.isGridEnabled()?"":"none";g.style.display=d.style.display;mxEvent.addListener(d,"keydown",function(k){13==k.keyCode?(h.container.focus(),mxEvent.consume(k)):27==k.keyCode&&(d.value=h.getGridSize(),h.container.focus(),mxEvent.consume(k))});mxEvent.addListener(d,
-"blur",b);mxEvent.addListener(d,"change",b);d.style.left="104px";g.style.marginTop=mxClient.IS_MAC&&mxClient.IS_GC?"-16px":mxClient.IS_WIN?"-18px":"-17px";g.style.left="152px";var m="none"!=h.getAdaptiveColors()?null:!1,q=this.createColorOption(mxResources.get("grid"),function(){return h.isGridEnabled()?h.view.gridColor:null},function(k){var u=h.isGridEnabled();k==mxConstants.NONE?h.setGridEnabled(!1):(h.setGridEnabled(!0),f.setGridColor(k,m));d.style.display=h.isGridEnabled()?"":"none";g.style.display=
-d.style.display;u!=h.isGridEnabled()&&(h.defaultGridEnabled=h.isGridEnabled(),f.fireEvent(new mxEventObject("gridEnabledChanged")))},h.view.gridColor,{install:function(k){this.listener=function(){k(h.isGridEnabled()?h.view.gridColor:mxConstants.NONE)};f.addListener("gridColorChanged",this.listener);f.addListener("gridEnabledChanged",this.listener)},destroy:function(){f.removeListener(this.listener)}},null,null,null,!0,m);q.style.padding="6px 0 0 0";q.appendChild(d);q.appendChild(g);a.appendChild(q)};
-DiagramFormatPanel.prototype.addDocumentProperties=function(a){a.appendChild(this.createTitle(mxResources.get("options")));return a};
+"blur",b);mxEvent.addListener(d,"change",b);d.style.left="104px";g.style.marginTop="-2px";g.style.left="152px";var m=function(){return"none"!=h.getAdaptiveColors()&&Editor.isDarkMode()},p="light-dark("+mxGraphView.prototype.defaultGridColor+","+mxGraphView.prototype.defaultDarkGridColor+")";p=this.createColorOption(mxResources.get("grid"),function(){return h.isGridEnabled()?h.view.gridColor:null},function(k){var u=h.isGridEnabled();k==mxConstants.NONE?h.setGridEnabled(!1):(h.setGridEnabled(!0),f.setGridColor(k,
+m()));d.style.display=h.isGridEnabled()?"":"none";g.style.display=d.style.display;u!=h.isGridEnabled()&&(h.defaultGridEnabled=h.isGridEnabled(),f.fireEvent(new mxEventObject("gridEnabledChanged")))},h.view.gridColor,{install:function(k){this.listener=function(){k(h.isGridEnabled()?h.view.gridColor:mxConstants.NONE)};f.addListener("darkModeChanged",this.listener);f.addListener("gridColorChanged",this.listener);f.addListener("gridEnabledChanged",this.listener)},destroy:function(){f.removeListener(this.listener)}},
+null,null,p,!0,m);p.style.padding="6px 0 0 0";p.appendChild(d);p.appendChild(g);a.appendChild(p)};DiagramFormatPanel.prototype.addDocumentProperties=function(a){a.appendChild(this.createTitle(mxResources.get("options")));return a};
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)}
+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 p(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function x(){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 I(){mxActor.call(this)}function L(){mxActor.call(this)}function T(){mxActor.call(this)}function K(){mxActor.call(this)}function U(){mxActor.call(this)}function Y(){mxActor.call(this)}function Q(){mxActor.call(this)}function P(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,P.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,P.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,P.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,P.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,
-P.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,P.prototype.arcTo)}function M(){mxRectangleShape.call(this)}function W(){mxRectangleShape.call(this)}function aa(){mxActor.call(this)}function ia(){mxActor.call(this)}function oa(){mxActor.call(this)}function qa(){mxRectangleShape.call(this)}function O(){mxRectangleShape.call(this)}function Z(){mxCylinder.call(this)}function ca(){mxShape.call(this)}function V(){mxShape.call(this)}function ja(){mxEllipse.call(this)}
-function H(){mxShape.call(this)}function ea(){mxShape.call(this)}function la(){mxRectangleShape.call(this)}function sa(){mxShape.call(this)}function Pa(){mxShape.call(this)}function ma(){mxShape.call(this)}function Ca(){mxShape.call(this)}function Da(){mxShape.call(this)}function Ga(){mxCylinder.call(this)}function Ia(){mxCylinder.call(this)}function Ha(){mxRectangleShape.call(this)}function Ja(){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 N(){mxEllipse.call(this)}
-function R(){mxEllipse.call(this)}function X(){mxEllipse.call(this)}function fa(){mxRhombus.call(this)}function da(){mxEllipse.call(this)}function ha(){mxEllipse.call(this)}function wa(){mxEllipse.call(this)}function Ma(){mxEllipse.call(this)}function Na(){mxActor.call(this)}function ya(){mxActor.call(this)}function za(){mxActor.call(this)}function va(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,J,y,ba){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);ba?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=
+P.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,P.prototype.arcTo)}function M(){mxRectangleShape.call(this)}function V(){mxRectangleShape.call(this)}function aa(){mxActor.call(this)}function ia(){mxActor.call(this)}function na(){mxActor.call(this)}function qa(){mxRectangleShape.call(this)}function O(){mxRectangleShape.call(this)}function Z(){mxCylinder.call(this)}function ca(){mxShape.call(this)}function W(){mxShape.call(this)}function ja(){mxEllipse.call(this)}
+function H(){mxShape.call(this)}function ea(){mxShape.call(this)}function oa(){mxRectangleShape.call(this)}function sa(){mxShape.call(this)}function Pa(){mxShape.call(this)}function la(){mxShape.call(this)}function Ba(){mxShape.call(this)}function Ca(){mxShape.call(this)}function Fa(){mxCylinder.call(this)}function Ia(){mxCylinder.call(this)}function Ha(){mxRectangleShape.call(this)}function Ja(){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 q(){mxActor.call(this)}function A(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function N(){mxEllipse.call(this)}
+function R(){mxEllipse.call(this)}function X(){mxEllipse.call(this)}function fa(){mxRhombus.call(this)}function da(){mxEllipse.call(this)}function ha(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Ma(){mxEllipse.call(this)}function Na(){mxActor.call(this)}function ya(){mxActor.call(this)}function Ga(){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,w,J,y,ba){w+=y;var S=n.clone();n.x-=r*(2*w+y);n.y-=v*(2*w+y);r*=w+y;v*=w+y;return function(){c.ellipse(S.x-r-w,S.y-v-w,2*w,2*w);ba?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 w=l[v];null!=w&&(null==r?c.moveTo(w.x+t,w.y+n):null!=r&&c.lineTo(w.x+t,w.y+n));r=w}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(),J=this.getTitleSize();0==J||this.outline?wa.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)))),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,
+!1,w=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||!(w&&J<r||!w&&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,w=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var J=v;v=w;w=J}c.rotate(-this.getShapeRotation(),
+v,w,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))))),w=Math.max(-1,Math.min(1,
+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!=w&&(c.setFillAlpha(Math.abs(w)),c.setFillColor(0>w?"#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*
-l,(.5-Ka)*l),c.lineTo(.5*l,(1-Ka)*l)):(c.translate((n-l)/2,(r-l)/2),c.moveTo(0,.25*l),c.lineTo(.5*l,l*Ka),c.lineTo(l,.25*l),c.lineTo(l,.75*l),c.lineTo(.5*l,(1-Ka)*l),c.lineTo(0,.75*l),c.close());c.end()};mxCellRenderer.registerShape("isoCube",m);mxUtils.extend(q,mxCylinder);q.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(r/2,Math.round(r/8)+this.strokewidth-1);if(v&&null!=this.fill||!v&&null==this.fill)c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,
-l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,-l);v||(c.moveTo(0,l),c.curveTo(0,-l/3,n,-l/3,n,l),c.lineTo(n,r-l),c.curveTo(n,r+l/3,0,r+l/3,0,r-l),c.close())};q.prototype.getLabelMargins=function(c){return new mxRectangle(0,2.5*Math.min(c.height/2,Math.round(c.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",q);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=
-0;k.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))));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(0,r);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(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.close(),c.fill()),c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.end(),c.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(u,k);mxCellRenderer.registerShape("note2",u);u.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,0)}return null};mxUtils.extend(w,mxShape);w.prototype.isoAngle=
-15;w.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;v=Math.min(n*Math.tan(v),.5*r);c.translate(l,t);c.begin();c.moveTo(.5*n,0);c.lineTo(n,v);c.lineTo(n,r-v);c.lineTo(.5*n,r);c.lineTo(0,r-v);c.lineTo(0,v);c.close();c.fillAndStroke();c.setShadow(!1);c.begin();c.moveTo(0,v);c.lineTo(.5*n,2*v);c.lineTo(n,v);c.moveTo(.5*n,2*v);c.lineTo(.5*n,r);c.stroke()};mxCellRenderer.registerShape("isoCube2",
-w);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),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,
+l,(.5-Ka)*l),c.lineTo(.5*l,(1-Ka)*l)):(c.translate((n-l)/2,(r-l)/2),c.moveTo(0,.25*l),c.lineTo(.5*l,l*Ka),c.lineTo(l,.25*l),c.lineTo(l,.75*l),c.lineTo(.5*l,(1-Ka)*l),c.lineTo(0,.75*l),c.close());c.end()};mxCellRenderer.registerShape("isoCube",m);mxUtils.extend(p,mxCylinder);p.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(r/2,Math.round(r/8)+this.strokewidth-1);if(v&&null!=this.fill||!v&&null==this.fill)c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,
+l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,-l);v||(c.moveTo(0,l),c.curveTo(0,-l/3,n,-l/3,n,l),c.lineTo(n,r-l),c.curveTo(n,r+l/3,0,r+l/3,0,r-l),c.close())};p.prototype.getLabelMargins=function(c){return new mxRectangle(0,2.5*Math.min(c.height/2,Math.round(c.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",p);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=
+0;k.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))))),w=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));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(0,r);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=w&&(c.setFillAlpha(Math.abs(w)),c.setFillColor(0>w?"#FFFFFF":"#000000"),
+c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.close(),c.fill()),c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.end(),c.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(u,k);mxCellRenderer.registerShape("note2",u);u.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,0)}return null};mxUtils.extend(x,mxShape);x.prototype.isoAngle=
+15;x.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;v=Math.min(n*Math.tan(v),.5*r);c.translate(l,t);c.begin();c.moveTo(.5*n,0);c.lineTo(n,v);c.lineTo(n,r-v);c.lineTo(.5*n,r);c.lineTo(0,r-v);c.lineTo(0,v);c.close();c.fillAndStroke();c.setShadow(!1);c.begin();c.moveTo(0,v);c.lineTo(.5*n,2*v);c.lineTo(n,v);c.moveTo(.5*n,2*v);c.lineTo(.5*n,r);c.stroke()};mxCellRenderer.registerShape("isoCube2",
+x);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)))),w=mxUtils.getValue(this.style,"lid",!0);c.translate(l,t);0==v?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),w?(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),w&&(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),w=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);w||(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));w?(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),
+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),w=mxUtils.getValue(this.style,"absoluteArcSize",!1);l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));t=mxUtils.getValue(this.style,"umlStateConnection",
+null);w||(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(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||
@@ -3325,155 +3346,155 @@ this.scale,0,0,0):null};u.prototype.getLabelMargins=function(c){if(mxUtils.getVa
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(.5,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(l,0),new mxPoint(n-l,0),new mxPoint(n,r)],this.isRounded,t,!0)};mxCellRenderer.registerShape("trapezoid",U);mxUtils.extend(Y,mxActor);
Y.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(Q,mxActor);
Q.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",Q);P.prototype.moveTo=function(c,l){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;this.firstX=c;this.firstY=l};P.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)};P.prototype.quadTo=function(c,l,t,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=n};P.prototype.curveTo=function(c,l,t,n,r,v){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=r;this.lastY=v};P.prototype.arcTo=function(c,l,t,n,r,v,x){this.originalArcTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=x};P.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),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 ba=(Math.random()-.5)*J;this.originalLineTo.call(this.canvas,y*v+this.lastX-ba*r,t*v+this.lastY-ba*n)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,
+arguments));this.originalClose.apply(this.canvas,arguments)};P.prototype.quadTo=function(c,l,t,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=n};P.prototype.curveTo=function(c,l,t,n,r,v){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=r;this.lastY=v};P.prototype.arcTo=function(c,l,t,n,r,v,w){this.originalArcTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=w};P.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 w=Math.round(v/10),J=this.defaultVariation;5>w&&(w=5,J/=3);var y=t(c-this.lastX)*n/w;t=t(l-this.lastY)*r/w;n/=v;r/=v;for(v=0;v<w;v++){var ba=(Math.random()-.5)*J;this.originalLineTo.call(this.canvas,y*v+this.lastX-ba*r,t*v+this.lastY-ba*n)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,
arguments);this.lastX=c;this.lastY=l};P.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 P(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!=P)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!=
this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)v||null!=this.fill&&this.fill!=mxConstants.NONE||(c.pointerEvents=!1),c.begin(),this.isRounded?("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?v=Math.min(n/2,Math.min(r/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2)):(v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,v=Math.min(n*v,r*v)),c.moveTo(l+
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,t+r,l+n-v,t+r),c.lineTo(l+v,t+r),c.quadTo(l,t+r,l,t+r-v),c.lineTo(l,t+v),c.quadTo(l,t,l+v,t)):(c.moveTo(l,t),c.lineTo(l+n,t),c.lineTo(l+n,t+r),c.lineTo(l,t+r),c.lineTo(l,t)),c.close(),c.end(),c.fillAndStroke()}};mxUtils.extend(M,mxRectangleShape);M.prototype.size=.1;M.prototype.fixedSize=!1;M.prototype.isHtmlAllowed=function(){return!1};M.prototype.getLabelBounds=function(c){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,
!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var l=c.width,t=c.height;c=new mxRectangle(c.x,c.y,l,t);var n=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));if(this.isRounded){var r=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;n=Math.max(n,Math.min(l*r,t*r))}c.x+=Math.round(n);c.width-=Math.round(2*n);return c}return c};M.prototype.paintForeground=
-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",M);mxCellRenderer.registerShape("process2",M);mxUtils.extend(W,mxRectangleShape);W.prototype.paintBackground=function(c,l,t,n,r){c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};W.prototype.paintForeground=function(c,l,t,n,r){};mxCellRenderer.registerShape("transparent",W);mxUtils.extend(aa,mxHexagon);aa.prototype.size=30;aa.prototype.position=.5;aa.prototype.position2=.5;aa.prototype.base=20;aa.prototype.getLabelMargins=function(){return new mxRectangle(0,
-0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};aa.prototype.isRoundable=function(){return!0};aa.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)))),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",aa);mxUtils.extend(ia,mxActor);ia.prototype.size=.2;ia.prototype.fixedSize=20;ia.prototype.isRoundable=function(){return!0};ia.prototype.redrawPath=function(c,l,
+function(c,l,t,n,r){var v=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),w=parseFloat(mxUtils.getValue(this.style,"size",this.size));w=v?Math.max(0,Math.min(n,w)):n*Math.max(0,Math.min(1,w));this.isRounded&&(v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,w=Math.max(w,Math.min(n*v,r*v)));w=Math.round(w);c.begin();c.moveTo(l+w,t);c.lineTo(l+w,t+r);c.moveTo(l+n-w,t);c.lineTo(l+n-w,t+r);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,
+arguments)};mxCellRenderer.registerShape("process",M);mxCellRenderer.registerShape("process2",M);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(aa,mxHexagon);aa.prototype.size=30;aa.prototype.position=.5;aa.prototype.position2=.5;aa.prototype.base=20;aa.prototype.getLabelMargins=function(){return new mxRectangle(0,
+0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};aa.prototype.isRoundable=function(){return!0};aa.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)))),w=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",
+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(w,r),new mxPoint(Math.max(0,v),r-t),new mxPoint(0,r-t)],this.isRounded,l,!0,[4])};mxCellRenderer.registerShape("callout",aa);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(qa,mxRectangleShape);qa.prototype.isHtmlAllowed=function(){return!1};qa.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)};
+ia);mxUtils.extend(na,mxHexagon);na.prototype.size=.25;na.prototype.fixedSize=20;na.prototype.isRoundable=function(){return!0};na.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",na);mxUtils.extend(qa,mxRectangleShape);qa.prototype.isHtmlAllowed=function(){return!1};qa.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",qa);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 J=this.style["symbol"+v+"Align"],y=this.style["symbol"+v+"VerticalAlign"],ba=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-ba)/2:J==mxConstants.ALIGN_RIGHT?Oa+(n-ba-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,ba,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 w=mxCellRenderer.defaultShapes[this.style["symbol"+v]];if(null!=w){var J=this.style["symbol"+v+"Align"],y=this.style["symbol"+v+"VerticalAlign"],ba=this.style["symbol"+v+"Width"],S=this.style["symbol"+v+"Height"],Ea=this.style["symbol"+v+"Spacing"]||0,Ra=this.style["symbol"+v+"VSpacing"]||Ea,
+Oa=this.style["symbol"+v+"ArcSpacing"];null!=Oa&&(Oa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Ea+=Oa,Ra+=Oa);Oa=l;var ka=t;Oa=J==mxConstants.ALIGN_CENTER?Oa+(n-ba)/2:J==mxConstants.ALIGN_RIGHT?Oa+(n-ba-Ea):Oa+Ea;ka=y==mxConstants.ALIGN_MIDDLE?ka+(r-S)/2:y==mxConstants.ALIGN_BOTTOM?ka+(r-S-Ra):ka+Ra;c.save();J=new w;J.style=this.style;w.prototype.paintVertexShape.call(J,c,Oa,ka,ba,S);c.restore()}v++}while(null!=w)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",
O);mxUtils.extend(Z,mxCylinder);Z.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",Z);mxUtils.extend(ca,mxShape);ca.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",ca);mxUtils.extend(V,mxShape);V.prototype.getLabelMargins=function(c){return new mxRectangle(c.width/6,0,0,0)};V.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",
-V);mxUtils.extend(ja,mxEllipse);ja.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",ja);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);
-ea.prototype.getLabelBounds=function(c){return new mxRectangle(c.x,c.y+c.height/8,c.width,7*c.height/8)};ea.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,0);c.end();c.stroke();c.ellipse(0,r/8,n,7*r/8);c.fillAndStroke()};ea.prototype.paintForeground=function(c,l,t,n,r){c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,r/4);c.end();c.stroke()};mxCellRenderer.registerShape("umlControl",ea);mxUtils.extend(la,mxRectangleShape);la.prototype.size=
-40;la.prototype.isHtmlAllowed=function(){return!1};la.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)};la.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!=la&&(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())};la.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",la);mxUtils.extend(sa,mxShape);sa.prototype.width=60;sa.prototype.height=30;sa.prototype.corner=10;sa.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)};sa.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))};sa.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",sa);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=la.prototype.size;null!=l&&(n=mxUtils.getValue(l.style,"size",n)*l.view.scale);l=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*
+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",ca);mxUtils.extend(W,mxShape);W.prototype.getLabelMargins=function(c){return new mxRectangle(c.width/6,0,0,0)};W.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",
+W);mxUtils.extend(ja,mxEllipse);ja.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",ja);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);
+ea.prototype.getLabelBounds=function(c){return new mxRectangle(c.x,c.y+c.height/8,c.width,7*c.height/8)};ea.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,0);c.end();c.stroke();c.ellipse(0,r/8,n,7*r/8);c.fillAndStroke()};ea.prototype.paintForeground=function(c,l,t,n,r){c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,r/4);c.end();c.stroke()};mxCellRenderer.registerShape("umlControl",ea);mxUtils.extend(oa,mxRectangleShape);oa.prototype.size=
+40;oa.prototype.isHtmlAllowed=function(){return!1};oa.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)};oa.prototype.paintBackground=function(c,l,t,n,r){var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),w=mxUtils.getValue(this.style,"participant");null==w||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,
+c,l,t,n,v):(w=this.state.view.graph.cellRenderer.getShape(w),null!=w&&w!=oa&&(w=new w,w.apply(this.state),c.save(),w.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())};oa.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",oa);mxUtils.extend(sa,mxShape);sa.prototype.width=60;sa.prototype.height=30;sa.prototype.corner=10;sa.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)};sa.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))};sa.prototype.paintBackground=function(c,l,t,n,r){var v=this.corner,w=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+w,t);c.lineTo(l+w,t+Math.max(0,J-1.5*v));c.lineTo(l+Math.max(0,w-v),t+J);c.lineTo(l,t+J);c.close();c.fillAndStroke();this.configurePointerEvents(c);
+c.begin();c.moveTo(l+w,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",sa);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=oa.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",aa.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?K.prototype.fixedSize:K.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,ba=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(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+ba),new mxPoint(x,J+ba-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+ba),new mxPoint(x,J+ba),new mxPoint(x+r,J)]);ba=c.getCenterX();c=c.getCenterY();c=new mxPoint(ba,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,ba=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+ba),new mxPoint(x,J+ba),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+
-ba),new mxPoint(x+r,J+ba),new mxPoint(x,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J+r),new mxPoint(x+y,J),new mxPoint(x+y,J+ba),new mxPoint(x,J+ba-r),new mxPoint(x,J+r)]):(r=r?Math.max(0,Math.min(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+ba-r),new mxPoint(x,J+ba),new mxPoint(x,J)]);ba=c.getCenterX();c=c.getCenterY();c=new mxPoint(ba,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,ba=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+ba),new mxPoint(x,J+ba),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+ba),new mxPoint(x+r,J+ba),new mxPoint(x,c),new mxPoint(x+r,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(ba,v)):ba*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+ba),new mxPoint(S,J+ba-r),new mxPoint(x,J+ba),new mxPoint(x,J+r)]):(r=r?Math.max(0,Math.min(ba,v)):ba*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+ba-r),new mxPoint(S,J+ba),new mxPoint(x,J+ba-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,ba=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(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(S,J),new mxPoint(x+y,J+r),new mxPoint(x+y,J+ba-r),new mxPoint(S,J+ba),new mxPoint(x,J+ba-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+ba),new mxPoint(x+r,J+ba),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(Ca,mxShape);Ca.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",Ca);mxUtils.extend(Da,mxShape);Da.prototype.inset=2;Da.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",Da);mxUtils.extend(Ga,mxCylinder);Ga.prototype.jettyWidth=
-20;Ga.prototype.jettyHeight=10;Ga.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",Ga);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(Ha,mxRectangleShape);Ha.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",Ha);mxUtils.extend(Ja,mxDoubleEllipse);Ja.prototype.outerStroke=!0;Ja.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&&
+r&&(v*=l.view.scale);var w=c.x,J=c.y,y=c.width,ba=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(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(w,J),new mxPoint(w+y,J+r),new mxPoint(w+y,J+ba),new mxPoint(w,J+ba-r),new mxPoint(w,J)]):(r=r?Math.max(0,Math.min(.5*y,v)):y*Math.max(0,Math.min(1,v)),J=[new mxPoint(w+r,J),new mxPoint(w+
+y,J),new mxPoint(w+y-r,J+ba),new mxPoint(w,J+ba),new mxPoint(w+r,J)]);ba=c.getCenterX();c=c.getCenterY();c=new mxPoint(ba,c);n&&(t.x<w||t.x>w+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 w=c.x,J=c.y,y=c.width,ba=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(w+r,J),new mxPoint(w+y-r,J),new mxPoint(w+y,J+ba),new mxPoint(w,J+ba),new mxPoint(w+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(w,J),new mxPoint(w+y,J),new mxPoint(w+y-r,J+
+ba),new mxPoint(w+r,J+ba),new mxPoint(w,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(w,J+r),new mxPoint(w+y,J),new mxPoint(w+y,J+ba),new mxPoint(w,J+ba-r),new mxPoint(w,J+r)]):(r=r?Math.max(0,Math.min(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(w,J),new mxPoint(w+y,J+r),new mxPoint(w+y,J+ba-r),new mxPoint(w,J+ba),new mxPoint(w,J)]);ba=c.getCenterX();c=c.getCenterY();c=new mxPoint(ba,c);n&&(t.x<w||t.x>w+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 w=c.x,J=c.y,y=c.width,ba=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(w,J),new mxPoint(w+y-r,J),new mxPoint(w+y,c),new mxPoint(w+y-r,J+ba),new mxPoint(w,J+ba),new mxPoint(w+r,c),new mxPoint(w,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(w+r,J),new mxPoint(w+y,J),new mxPoint(w+y-r,c),new mxPoint(w+y,J+ba),new mxPoint(w+r,J+ba),new mxPoint(w,c),new mxPoint(w+r,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(ba,v)):ba*Math.max(0,
+Math.min(1,v)),J=[new mxPoint(w,J+r),new mxPoint(S,J),new mxPoint(w+y,J+r),new mxPoint(w+y,J+ba),new mxPoint(S,J+ba-r),new mxPoint(w,J+ba),new mxPoint(w,J+r)]):(r=r?Math.max(0,Math.min(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(w,J),new mxPoint(S,J+r),new mxPoint(w+y,J),new mxPoint(w+y,J+ba-r),new mxPoint(S,J+ba),new mxPoint(w,J+ba-r),new mxPoint(w,J)]);S=new mxPoint(S,c);n&&(t.x<w||t.x>w+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?na.prototype.fixedSize:na.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var w=c.x,J=c.y,y=c.width,ba=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(ba,v)):ba*Math.max(0,Math.min(1,v)),J=[new mxPoint(S,J),new mxPoint(w+y,J+r),new mxPoint(w+y,J+ba-r),new mxPoint(S,J+ba),new mxPoint(w,J+ba-r),new mxPoint(w,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(w+r,J),new mxPoint(w+y-r,J),new mxPoint(w+y,c),new mxPoint(w+y-r,J+ba),new mxPoint(w+r,J+ba),new mxPoint(w,c),new mxPoint(w+r,J)]);S=new mxPoint(S,c);n&&(t.x<w||t.x>w+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(la,mxShape);la.prototype.size=10;la.prototype.inset=2;la.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,
+"size",this.size)),w=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.begin();c.moveTo(n/2,v+w);c.lineTo(n/2,r);c.end();c.stroke();c.begin();c.moveTo((n-v)/2-w,v/2);c.quadTo((n-v)/2-w,v+w,n/2,v+w);c.quadTo((n+v)/2+w,v+w,(n+v)/2+w,v/2);c.end();c.stroke()};mxCellRenderer.registerShape("requires",la);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(Fa,mxCylinder);Fa.prototype.jettyWidth=
+20;Fa.prototype.jettyHeight=10;Fa.prototype.redrawPath=function(c,l,t,n,r,v){var w=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=w/2;w=t+w/2;var J=Math.min(l,r-l),y=Math.min(J+2*l,r-l);v?(c.moveTo(t,J),c.lineTo(w,J),c.lineTo(w,J+l),c.lineTo(t,J+l),c.moveTo(t,y),c.lineTo(w,y),c.lineTo(w,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",Fa);mxUtils.extend(Ia,mxCylinder);Ia.prototype.jettyWidth=32;Ia.prototype.jettyHeight=12;Ia.prototype.redrawPath=function(c,l,t,n,r,v){var w=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=w/2;w=t+w/2;var J=.3*r-l/2,y=.7*r-l/2;v?(c.moveTo(t,J),c.lineTo(w,J),c.lineTo(w,
+J+l),c.lineTo(t,J+l),c.moveTo(t,y),c.lineTo(w,y),c.lineTo(w,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(Ha,mxRectangleShape);Ha.prototype.paintForeground=function(c,l,t,n,r){var v=n/2,w=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+w),new mxPoint(l+v,t+r),new mxPoint(l,t+w)],this.isRounded,J,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Ha);mxUtils.extend(Ja,mxDoubleEllipse);Ja.prototype.outerStroke=!0;Ja.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",Ja);mxUtils.extend(ta,Ja);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",
-Ya);mxUtils.extend(cb,mxRectangleShape);cb.prototype.dx=20;cb.prototype.dy=20;cb.prototype.isHtmlAllowed=function(){return!1};cb.prototype.paintForeground=function(c,l,t,n,r){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var v=0;if(this.isRounded){var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;v=Math.max(v,Math.min(n*x,r*x))}x=Math.max(v,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));v=Math.max(v,Math.min(r,
-parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.begin();c.moveTo(l,t+v);c.lineTo(l+n,t+v);c.end();c.stroke();c.begin();c.moveTo(l+x,t);c.lineTo(l+x,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("internalStorage",cb);mxUtils.extend(fb,mxActor);fb.prototype.dx=20;fb.prototype.dy=20;fb.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));
+Ya);mxUtils.extend(cb,mxRectangleShape);cb.prototype.dx=20;cb.prototype.dy=20;cb.prototype.isHtmlAllowed=function(){return!1};cb.prototype.paintForeground=function(c,l,t,n,r){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var v=0;if(this.isRounded){var w=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;v=Math.max(v,Math.min(n*w,r*w))}w=Math.max(v,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));v=Math.max(v,Math.min(r,
+parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.begin();c.moveTo(l,t+v);c.lineTo(l+n,t+v);c.end();c.stroke();c.begin();c.moveTo(l+w,t);c.lineTo(l+w,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("internalStorage",cb);mxUtils.extend(fb,mxActor);fb.prototype.dx=20;fb.prototype.dy=20;fb.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));
parseFloat(mxUtils.getValue(this.style,"size",this.size));var v=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,t),new mxPoint(l,t),new mxPoint(l,r),new mxPoint(0,r)],this.isRounded,v,!0);c.end()};mxCellRenderer.registerShape("corner",fb);mxUtils.extend(pb,mxActor);pb.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.lineTo(0,r);c.end();c.moveTo(n,0);c.lineTo(n,r);c.end();c.moveTo(0,r/2);c.lineTo(n,
r/2);c.end()};mxCellRenderer.registerShape("crossbar",pb);mxUtils.extend(gb,mxActor);gb.prototype.dx=20;gb.prototype.dy=20;gb.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var v=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,t),new mxPoint((n+l)/2,t),new mxPoint((n+l)/2,r),new mxPoint((n-l)/2,r),new mxPoint((n-l)/2,t),new mxPoint(0,t)],this.isRounded,v,!0);c.end()};mxCellRenderer.registerShape("tee",gb);mxUtils.extend(ab,mxActor);ab.prototype.arrowWidth=.3;ab.prototype.arrowSize=.2;ab.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"arrowSize",this.arrowSize))));t=(r-v)/2;v=t+v;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(0,v)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("singleArrow",ab);mxUtils.extend(ib,mxActor);ib.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",
-ab.prototype.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",ab.prototype.arrowSize))));t=(r-v)/2;v=t+v;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r/2),new mxPoint(l,0),new mxPoint(l,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(l,v),new mxPoint(l,r)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("doubleArrow",
+"arrowSize",this.arrowSize))));t=(r-v)/2;v=t+v;var w=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(0,v)],this.isRounded,w,!0);c.end()};mxCellRenderer.registerShape("singleArrow",ab);mxUtils.extend(ib,mxActor);ib.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",
+ab.prototype.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",ab.prototype.arrowSize))));t=(r-v)/2;v=t+v;var w=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r/2),new mxPoint(l,0),new mxPoint(l,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(l,v),new mxPoint(l,r)],this.isRounded,w,!0);c.end()};mxCellRenderer.registerShape("doubleArrow",
ib);mxUtils.extend(eb,mxActor);eb.prototype.size=.1;eb.prototype.fixedSize=20;eb.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))));c.moveTo(l,0);c.lineTo(n,0);c.quadTo(n-2*l,r/2,n,r);c.lineTo(l,r);c.quadTo(l-2*l,r/2,l,0);c.close();c.end()};mxCellRenderer.registerShape("dataStorage",eb);
-mxUtils.extend(p,mxActor);p.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.close();c.end()};mxCellRenderer.registerShape("or",p);mxUtils.extend(A,mxActor);A.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.quadTo(n/2,r/2,0,0);c.close();c.end()};mxCellRenderer.registerShape("xor",A);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.isRoundable=function(){return!0};B.prototype.redrawPath=function(c,
+mxUtils.extend(q,mxActor);q.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.close();c.end()};mxCellRenderer.registerShape("or",q);mxUtils.extend(A,mxActor);A.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.quadTo(n/2,r/2,0,0);c.close();c.end()};mxCellRenderer.registerShape("xor",A);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.isRoundable=function(){return!0};B.prototype.redrawPath=function(c,
l,t,n,r){l=Math.min(n/2,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-l,0),new mxPoint(n,.8*l),new mxPoint(n,r),new mxPoint(0,r),new mxPoint(0,.8*l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("loopLimit",B);mxUtils.extend(F,mxActor);F.prototype.size=.375;F.prototype.isRoundable=function(){return!0};F.prototype.redrawPath=function(c,
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(N,mxEllipse);N.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",N);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(X,mxEllipse);X.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",X);mxUtils.extend(fa,mxRhombus);fa.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",fa);mxUtils.extend(da,mxEllipse);da.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",da);mxUtils.extend(ha,mxEllipse);ha.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",ha);mxUtils.extend(wa,mxEllipse);wa.prototype.drawHidden=!0;wa.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"),ba="1"==mxUtils.getValue(this.style,"right","1"),S="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||x||this.outline||J||ba||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||ba?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",wa);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",fa);mxUtils.extend(da,mxEllipse);da.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",da);mxUtils.extend(ha,mxEllipse);ha.prototype.paintVertexShape=function(c,l,t,n,r){var v=c.state.strokeWidth/2,w=10+2*v,J=t+r-w/2;c.begin();
+c.moveTo(l,t);c.lineTo(l,t+r);c.moveTo(l+v,J);c.lineTo(l+v+w,J-w/2);c.moveTo(l+v,J);c.lineTo(l+v+w,J+w/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-w-v,J-w/2);c.moveTo(l+n-v,J);c.lineTo(l+n-w-v,J+w/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",ha);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,
+w=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||w||(c.pointerEvents=!1);var J="1"==mxUtils.getValue(this.style,"top","1"),y="1"==mxUtils.getValue(this.style,"left","1"),ba="1"==mxUtils.getValue(this.style,"right","1"),S="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||w||this.outline||J||ba||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||ba?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(za,mxActor);za.prototype.size=.25;za.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",za);mxUtils.extend(va,mxActor);va.prototype.cst={RECT2:"mxgraph.basic.rect"};va.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",
+Math.max(0,Math.min(l,l*parseFloat(mxUtils.getValue(this.style,"size",this.size))));l=(r-v)/2;t=l+v;var w=(n-v)/2;v=w+v;c.moveTo(0,l);c.lineTo(w,l);c.lineTo(w,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(w,r);c.lineTo(w,t);c.lineTo(0,t);c.close();c.end()};mxCellRenderer.registerShape("cross",ya);mxUtils.extend(Ga,mxActor);Ga.prototype.size=.25;Ga.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",Ga);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",
dispName:"Fold"}]},{name:"size",dispName:"Corner Size",type:"float",defVal:10},{name:"absoluteCornerSize",dispName:"Abs. Corner Size",type:"bool",defVal:!0},{name:"indent",dispName:"Indent",type:"float",defVal:2},{name:"rectOutline",dispName:"Outline",type:"enum",defVal:"single",enumList:[{val:"single",dispName:"Single"},{val:"double",dispName:"Double"},{val:"frame",dispName:"Frame"}]},{name:"fillColor2",dispName:"Inside Fill Color",type:"color",defVal:"none"},{name:"gradientColor2",dispName:"Inside Gradient Color",
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"}]}];va.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);this.strictDrawShape(c,0,0,n,r)};va.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)))),ba=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),ra=v&&v.right?v.right:mxUtils.getValue(this.style,"right",!0),pa=v&&v.bottom?v.bottom:mxUtils.getValue(this.style,"bottom",!0),na=v&&v.left?v.left:mxUtils.getValue(this.style,"left",!0),xa=v&&v.topLeftStyle?v.topLeftStyle:mxUtils.getValue(this.style,"topLeftStyle","default"),Aa=v&&v.topRightStyle?v.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),Ba=v&&v.bottomRightStyle?v.bottomRightStyle:mxUtils.getValue(this.style,"bottomRightStyle","default"),Ea=v&&v.bottomLeftStyle?
+{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 w=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)))),ba=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)))),Ea=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),ra=v&&v.right?v.right:mxUtils.getValue(this.style,"right",!0),pa=v&&v.bottom?v.bottom:mxUtils.getValue(this.style,"bottom",!0),ma=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"),Da=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=va.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||ra||pa||na)&&"frame"!=ba&&(c.begin(),ka?v.moveNW(c,l,t,n,r,x,xa,y,na):c.moveTo(0,
-0),ka&&v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),ra&&v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),pa&&v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),na&&v.paintSW(c,l,t,n,r,x,Ea,y,pa),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,na):c.moveTo(S,0),v.paintLeftInner(c,l,
-t,n,r,x,Ea,y,S,pa,na),na&&pa&&v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),pa&&ra&&v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),ra&&ka&&v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),ka&&na&&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,Aa,Ba,Ea,y,ka,ra,pa,na),c.stroke()));ka||ra||pa||!na?ka||ra||!pa||na?!ka&&!ra&&pa&&na?"frame"!=ba?(c.begin(),v.moveSE(c,
-l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.lineNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,
-l,t,n,r,x,Ea,y,S,pa,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),c.close(),c.fillAndStroke()):ka||!ra||pa||na?!ka&&ra&&!pa&&na?"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na)),c.stroke(),c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,x,Ba,y,S,pa),v.paintRightInner(c,
-l,t,n,r,x,Aa,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.lineNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),c.close(),c.fillAndStroke(),c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.lineSEInner(c,l,t,n,r,x,Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),c.close(),c.fillAndStroke()):!ka&&ra&&pa&&!na?"frame"!=ba?(c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,
-Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),"double"==ba&&(v.moveSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.lineSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,
-l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),c.close(),c.fillAndStroke()):!ka&&ra&&pa&&na?"frame"!=ba?(c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,
-pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.lineNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),
-v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),c.close(),c.fillAndStroke()):!ka||ra||pa||na?ka&&!ra&&!pa&&na?"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,
-r,x,xa,y,ka),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.lineNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),c.close(),c.fillAndStroke()):ka&&!ra&&pa&&!na?"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka)),c.stroke(),c.begin(),v.moveSE(c,l,t,n,r,x,
-Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),"double"==ba&&(v.moveSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.lineNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),c.close(),c.fillAndStroke(),c.begin(),v.moveSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.lineSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),c.close(),
-c.fillAndStroke()):ka&&!ra&&pa&&na?"frame"!=ba?(c.begin(),v.moveSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,
-pa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.lineNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),c.close(),c.fillAndStroke()):ka&&ra&&!pa&&
-!na?"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,x,Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.lineSEInner(c,l,t,n,r,
-x,Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),c.close(),c.fillAndStroke()):ka&&ra&&!pa&&na?"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,x,Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,
-l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.lineSEInner(c,l,t,n,r,x,Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,
-S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),c.close(),c.fillAndStroke()):ka&&ra&&pa&&!na?"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),"double"==ba&&(v.moveSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,
-t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.lineSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,
-x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),c.close(),c.fillAndStroke()):ka&&ra&&pa&&na&&("frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),c.close(),"double"==ba&&(v.moveSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintSWInner(c,l,t,n,r,x,Ea,
-y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),c.close()),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.paintNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.paintSE(c,l,t,n,r,x,
-Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),v.paintSW(c,l,t,n,r,x,Ea,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),c.close(),v.moveSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintSWInner(c,l,t,n,r,x,Ea,y,S,pa),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,x,Ba,y,S),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,x,Aa,y,S),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),v.paintNWInner(c,l,t,n,r,x,xa,y,S),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),c.close(),c.fillAndStroke())):
-"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,y,na),v.paintTop(c,l,t,n,r,x,Aa,y,ra),v.lineNEInner(c,l,t,n,r,x,Aa,y,S,ra),v.paintTopInner(c,l,t,n,r,x,xa,y,S,na,ka),c.close(),c.fillAndStroke()):"frame"!=ba?(c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,x,
-Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Aa,y,ka),v.paintRight(c,l,t,n,r,x,Ba,y,pa),v.lineSEInner(c,l,t,n,r,x,Ba,y,S,pa),v.paintRightInner(c,l,t,n,r,x,Aa,y,S,ka,ra),c.close(),c.fillAndStroke()):"frame"!=ba?(c.begin(),v.moveSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,l,t,n,r,x,Ea,y,na),"double"==ba&&(v.moveSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Ba,y,ra),v.paintBottom(c,
-l,t,n,r,x,Ea,y,na),v.lineSWInner(c,l,t,n,r,x,Ea,y,S,na),v.paintBottomInner(c,l,t,n,r,x,Ba,y,S,ra,pa),c.close(),c.fillAndStroke()):"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,xa,y,pa),v.paintLeft(c,l,t,n,r,x,xa,y,ka),v.lineNWInner(c,l,t,n,r,x,xa,y,S,ka,na),v.paintLeftInner(c,l,t,n,r,x,Ea,y,S,pa,na),c.close(),c.fillAndStroke());
-c.begin();v.paintFolds(c,l,t,n,r,x,xa,Aa,Ba,Ea,y,ka,ra,pa,na);c.stroke()};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};
-va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.prototype.paintTopInner=function(c,l,t,n,r,v,x,J,y,ba,S){ba||S?!ba&&S?c.lineTo(0,y):ba&&!S?c.lineTo(y,0):ba?"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)};va.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)};va.prototype.paintRightInner=function(c,l,t,n,r,v,x,J,y,ba,S){ba||S?!ba&&S?c.lineTo(n-y,0):ba&&!S?c.lineTo(n,y):ba?"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)};va.prototype.paintLeftInner=function(c,l,t,n,r,v,x,J,y,ba,S){ba||S?!ba&&S?c.lineTo(y,r):ba&&!S?c.lineTo(0,r-y):ba?"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)};va.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)};va.prototype.paintBottomInner=function(c,l,t,n,r,v,x,J,y,ba,S){ba||S?!ba&&S?c.lineTo(n,r-y):ba&&!S?c.lineTo(n-y,r):"square"==
-x||"default"==x&&"square"==v||!ba?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)};va.prototype.paintSWInner=function(c,l,t,n,r,v,x,J,y,ba){if(!ba)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)};va.prototype.moveSWInner=function(c,l,t,n,r,v,x,J,y,ba){ba?"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)};va.prototype.lineSWInner=function(c,l,t,n,
-r,v,x,J,y,ba){ba?"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)};va.prototype.moveSEInner=function(c,l,t,n,r,v,x,J,y,ba){ba?"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)};va.prototype.lineSEInner=function(c,l,t,n,r,v,x,J,y,ba){ba?"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)};va.prototype.moveNEInner=function(c,l,t,n,r,v,x,
-J,y,ba){ba?"square"==x||"default"==x&&"square"==v||ba?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)};va.prototype.lineNEInner=function(c,l,t,n,r,v,x,J,y,ba){ba?"square"==x||"default"==x&&"square"==v||ba?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)};va.prototype.moveNWInner=function(c,l,t,n,r,v,x,J,y,ba,S){ba||S?!ba&&S?c.moveTo(y,0):ba&&!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)};va.prototype.lineNWInner=function(c,
-l,t,n,r,v,x,J,y,ba,S){ba||S?!ba&&S?c.lineTo(y,0):ba&&!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)};va.prototype.paintFolds=function(c,l,t,n,r,v,x,J,y,ba,S,Fa,Ra,Oa,ka){if("fold"==v||"fold"==x||"fold"==J||"fold"==y||"fold"==ba)("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"==ba||"default"==ba&&"fold"==v)&&Oa&&ka&&(c.moveTo(0,r-S),c.lineTo(S,r-S),c.lineTo(S,r))};mxCellRenderer.registerShape(va.prototype.cst.RECT2,va);va.prototype.constraints=null;mxUtils.extend(ua,mxConnector);ua.prototype.origPaintEdgeShape=ua.prototype.paintEdgeShape;
+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(Ea);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||ra||pa||ma)&&"frame"!=ba&&(c.begin(),ka?v.moveNW(c,l,t,n,r,w,xa,y,ma):c.moveTo(0,
+0),ka&&v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),ra&&v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),pa&&v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),ma&&v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Ea=J=Eb,"none"==zb&&(J=0),"none"==Ab&&(Ea=0),c.setGradient(zb,Ab,0,0,n,r,Db,J,Ea),c.begin(),ka?v.moveNWInner(c,l,t,n,r,w,xa,y,S,ka,ma):c.moveTo(S,0),v.paintLeftInner(c,l,
+t,n,r,w,Da,y,S,pa,ma),ma&&pa&&v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),pa&&ra&&v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),ra&&ka&&v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),ka&&ma&&v.paintNWInner(c,l,t,n,r,w,xa,y,S),c.fill(),"none"==Bb&&(c.begin(),v.paintFolds(c,l,t,n,r,w,xa,za,Aa,Da,y,ka,ra,pa,ma),c.stroke()));ka||ra||pa||!ma?ka||ra||!pa||ma?!ka&&!ra&&pa&&ma?"frame"!=ba?(c.begin(),v.moveSE(c,
+l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.lineNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,
+l,t,n,r,w,Da,y,S,pa,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),c.close(),c.fillAndStroke()):ka||!ra||pa||ma?!ka&&ra&&!pa&&ma?"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,w,xa,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma)),c.stroke(),c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,w,Aa,y,S,pa),v.paintRightInner(c,
+l,t,n,r,w,za,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,w,xa,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.lineNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),c.close(),c.fillAndStroke(),c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.lineSEInner(c,l,t,n,r,w,Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),c.close(),c.fillAndStroke()):!ka&&ra&&pa&&!ma?"frame"!=ba?(c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,
+Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),"double"==ba&&(v.moveSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.lineSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,
+l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),c.close(),c.fillAndStroke()):!ka&&ra&&pa&&ma?"frame"!=ba?(c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,
+pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.lineNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),
+v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),c.close(),c.fillAndStroke()):!ka||ra||pa||ma?ka&&!ra&&!pa&&ma?"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,
+r,w,xa,y,ka),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.lineNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),c.close(),c.fillAndStroke()):ka&&!ra&&pa&&!ma?"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka)),c.stroke(),c.begin(),v.moveSE(c,l,t,n,r,w,
+Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),"double"==ba&&(v.moveSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.lineNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),c.close(),c.fillAndStroke(),c.begin(),v.moveSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.lineSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),c.close(),
+c.fillAndStroke()):ka&&!ra&&pa&&ma?"frame"!=ba?(c.begin(),v.moveSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,
+pa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.lineNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),c.close(),c.fillAndStroke()):ka&&ra&&!pa&&
+!ma?"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,w,Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.lineSEInner(c,l,t,n,r,
+w,Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),c.close(),c.fillAndStroke()):ka&&ra&&!pa&&ma?"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,w,Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,
+l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.lineSEInner(c,l,t,n,r,w,Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,
+S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),c.close(),c.fillAndStroke()):ka&&ra&&pa&&!ma?"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),"double"==ba&&(v.moveSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,
+t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.lineSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,
+w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),c.close(),c.fillAndStroke()):ka&&ra&&pa&&ma&&("frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),c.close(),"double"==ba&&(v.moveSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintSWInner(c,l,t,n,r,w,Da,
+y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),c.close()),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.paintNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.paintSE(c,l,t,n,r,w,
+Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),v.paintSW(c,l,t,n,r,w,Da,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),c.close(),v.moveSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintSWInner(c,l,t,n,r,w,Da,y,S,pa),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),v.paintSEInner(c,l,t,n,r,w,Aa,y,S),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),v.paintNEInner(c,l,t,n,r,w,za,y,S),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),v.paintNWInner(c,l,t,n,r,w,xa,y,S),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),c.close(),c.fillAndStroke())):
+"frame"!=ba?(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),"double"==ba&&(v.moveNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,w,xa,y,ma),v.paintTop(c,l,t,n,r,w,za,y,ra),v.lineNEInner(c,l,t,n,r,w,za,y,S,ra),v.paintTopInner(c,l,t,n,r,w,xa,y,S,ma,ka),c.close(),c.fillAndStroke()):"frame"!=ba?(c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),"double"==ba&&(v.moveSEInner(c,l,t,n,r,w,
+Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,w,za,y,ka),v.paintRight(c,l,t,n,r,w,Aa,y,pa),v.lineSEInner(c,l,t,n,r,w,Aa,y,S,pa),v.paintRightInner(c,l,t,n,r,w,za,y,S,ka,ra),c.close(),c.fillAndStroke()):"frame"!=ba?(c.begin(),v.moveSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,l,t,n,r,w,Da,y,ma),"double"==ba&&(v.moveSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,w,Aa,y,ra),v.paintBottom(c,
+l,t,n,r,w,Da,y,ma),v.lineSWInner(c,l,t,n,r,w,Da,y,S,ma),v.paintBottomInner(c,l,t,n,r,w,Aa,y,S,ra,pa),c.close(),c.fillAndStroke()):"frame"!=ba?(c.begin(),v.moveSW(c,l,t,n,r,w,xa,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),"double"==ba&&(v.moveNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,w,xa,y,pa),v.paintLeft(c,l,t,n,r,w,xa,y,ka),v.lineNWInner(c,l,t,n,r,w,xa,y,S,ka,ma),v.paintLeftInner(c,l,t,n,r,w,Da,y,S,pa,ma),c.close(),c.fillAndStroke());
+c.begin();v.paintFolds(c,l,t,n,r,w,xa,za,Aa,Da,y,ka,ra,pa,ma);c.stroke()};wa.prototype.moveNW=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==w&&"square"==v||!y?c.moveTo(0,0):c.moveTo(0,J)};wa.prototype.moveNE=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==w&&"square"==v||!y?c.moveTo(n,0):c.moveTo(n-J,0)};wa.prototype.moveSE=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==w&&"square"==v||!y?c.moveTo(n,r):c.moveTo(n,r-J)};wa.prototype.moveSW=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==
+w&&"square"==v||!y?c.moveTo(0,r):c.moveTo(J,r)};wa.prototype.paintNW=function(c,l,t,n,r,v,w,J,y){if(y)if("rounded"==w||"default"==w&&"rounded"==v||"invRound"==w||"default"==w&&"invRound"==v){l=0;if("rounded"==w||"default"==w&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,J,0)}else("snip"==w||"default"==w&&"snip"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(J,0);else c.lineTo(0,0)};wa.prototype.paintTop=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==w&&"square"==v||!y?c.lineTo(n,0):c.lineTo(n-J,0)};
+wa.prototype.paintNE=function(c,l,t,n,r,v,w,J,y){if(y)if("rounded"==w||"default"==w&&"rounded"==v||"invRound"==w||"default"==w&&"invRound"==v){l=0;if("rounded"==w||"default"==w&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,n,J)}else("snip"==w||"default"==w&&"snip"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(n,J);else c.lineTo(n,0)};wa.prototype.paintRight=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==w&&"square"==v||!y?c.lineTo(n,r):c.lineTo(n,r-J)};wa.prototype.paintLeft=function(c,l,t,n,r,v,w,
+J,y){"square"==w||"default"==w&&"square"==v||!y?c.lineTo(0,0):c.lineTo(0,J)};wa.prototype.paintSE=function(c,l,t,n,r,v,w,J,y){if(y)if("rounded"==w||"default"==w&&"rounded"==v||"invRound"==w||"default"==w&&"invRound"==v){l=0;if("rounded"==w||"default"==w&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,n-J,r)}else("snip"==w||"default"==w&&"snip"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(n-J,r);else c.lineTo(n,r)};wa.prototype.paintBottom=function(c,l,t,n,r,v,w,J,y){"square"==w||"default"==w&&"square"==
+v||!y?c.lineTo(0,r):c.lineTo(J,r)};wa.prototype.paintSW=function(c,l,t,n,r,v,w,J,y){if(y)if("rounded"==w||"default"==w&&"rounded"==v||"invRound"==w||"default"==w&&"invRound"==v){l=0;if("rounded"==w||"default"==w&&"rounded"==v)l=1;c.arcTo(J,J,0,0,l,0,r-J)}else("snip"==w||"default"==w&&"snip"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(0,r-J);else c.lineTo(0,r)};wa.prototype.paintNWInner=function(c,l,t,n,r,v,w,J,y){if("rounded"==w||"default"==w&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,y,.5*y+
+J);else if("invRound"==w||"default"==w&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,y,y+J);else if("snip"==w||"default"==w&&"snip"==v)c.lineTo(y,.5*y+J);else if("fold"==w||"default"==w&&"fold"==v)c.lineTo(y+J,y+J),c.lineTo(y,y+J)};wa.prototype.paintTopInner=function(c,l,t,n,r,v,w,J,y,ba,S){ba||S?!ba&&S?c.lineTo(0,y):ba&&!S?c.lineTo(y,0):ba?"square"==w||"default"==w&&"square"==v?c.lineTo(y,y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"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,w,J,y){if("rounded"==w||"default"==w&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,n-J-.5*y,y);else if("invRound"==w||"default"==w&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,n-J-y,y);else if("snip"==w||"default"==w&&"snip"==v)c.lineTo(n-J-.5*y,y);else if("fold"==w||"default"==w&&"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,w,J,y,ba,S){ba||S?!ba&&S?c.lineTo(n-y,0):ba&&!S?c.lineTo(n,y):ba?"square"==
+w||"default"==w&&"square"==v?c.lineTo(n-y,y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"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,w,J,y,ba,S){ba||S?!ba&&S?c.lineTo(y,r):ba&&!S?c.lineTo(0,r-y):ba?"square"==w||"default"==w&&"square"==v?c.lineTo(y,r-y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"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,w,J,y){if("rounded"==w||"default"==w&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,n-y,r-J-.5*y);else if("invRound"==w||"default"==w&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,n-y,r-J-y);else if("snip"==w||"default"==w&&"snip"==v)c.lineTo(n-y,r-J-.5*y);else if("fold"==w||"default"==w&&"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,w,J,y,ba,S){ba||S?!ba&&S?c.lineTo(n,r-y):ba&&!S?c.lineTo(n-y,r):"square"==
+w||"default"==w&&"square"==v||!ba?c.lineTo(n-y,r-y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"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,w,J,y,ba){if(!ba)c.lineTo(y,r);else if("square"==w||"default"==w&&"square"==v)c.lineTo(y,r-y);else if("rounded"==w||"default"==w&&"rounded"==v)c.arcTo(J-.5*y,J-.5*y,0,0,0,J+.5*y,r-y);else if("invRound"==w||"default"==w&&"invRound"==v)c.arcTo(J+y,J+y,0,0,1,J+y,r-y);else if("snip"==
+w||"default"==w&&"snip"==v)c.lineTo(J+.5*y,r-y);else if("fold"==w||"default"==w&&"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,w,J,y,ba){ba?"square"==w||"default"==w&&"square"==v?c.moveTo(y,r-y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.moveTo(y,r-J-.5*y):("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.moveTo(y,r-J-y):c.moveTo(0,r-y)};wa.prototype.lineSWInner=function(c,l,t,n,
+r,v,w,J,y,ba){ba?"square"==w||"default"==w&&"square"==v?c.lineTo(y,r-y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.lineTo(y,r-J-.5*y):("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(y,r-J-y):c.lineTo(0,r-y)};wa.prototype.moveSEInner=function(c,l,t,n,r,v,w,J,y,ba){ba?"square"==w||"default"==w&&"square"==v?c.moveTo(n-y,r-y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.moveTo(n-y,r-J-.5*y):
+("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.moveTo(n-y,r-J-y):c.moveTo(n-y,r)};wa.prototype.lineSEInner=function(c,l,t,n,r,v,w,J,y,ba){ba?"square"==w||"default"==w&&"square"==v?c.lineTo(n-y,r-y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.lineTo(n-y,r-J-.5*y):("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(n-y,r-J-y):c.lineTo(n-y,r)};wa.prototype.moveNEInner=function(c,l,t,n,r,v,w,
+J,y,ba){ba?"square"==w||"default"==w&&"square"==v||ba?c.moveTo(n-y,y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.moveTo(n-y,J+.5*y):("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.moveTo(n-y,J+y):c.moveTo(n,y)};wa.prototype.lineNEInner=function(c,l,t,n,r,v,w,J,y,ba){ba?"square"==w||"default"==w&&"square"==v||ba?c.lineTo(n-y,y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.lineTo(n-y,J+.5*y):("invRound"==
+w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(n-y,J+y):c.lineTo(n,y)};wa.prototype.moveNWInner=function(c,l,t,n,r,v,w,J,y,ba,S){ba||S?!ba&&S?c.moveTo(y,0):ba&&!S?c.moveTo(0,y):"square"==w||"default"==w&&"square"==v?c.moveTo(y,y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.moveTo(y,J+.5*y):("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.moveTo(y,J+y):c.moveTo(0,0)};wa.prototype.lineNWInner=function(c,
+l,t,n,r,v,w,J,y,ba,S){ba||S?!ba&&S?c.lineTo(y,0):ba&&!S?c.lineTo(0,y):"square"==w||"default"==w&&"square"==v?c.lineTo(y,y):"rounded"==w||"default"==w&&"rounded"==v||"snip"==w||"default"==w&&"snip"==v?c.lineTo(y,J+.5*y):("invRound"==w||"default"==w&&"invRound"==v||"fold"==w||"default"==w&&"fold"==v)&&c.lineTo(y,J+y):c.lineTo(0,0)};wa.prototype.paintFolds=function(c,l,t,n,r,v,w,J,y,ba,S,Ea,Ra,Oa,ka){if("fold"==v||"fold"==w||"fold"==J||"fold"==y||"fold"==ba)("fold"==w||"default"==w&&"fold"==v)&&Ea&&
+ka&&(c.moveTo(0,S),c.lineTo(S,S),c.lineTo(S,0)),("fold"==J||"default"==J&&"fold"==v)&&Ea&&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"==ba||"default"==ba&&"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,J,y,ba){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,ba){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();ba?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,v,x,J,y,ba){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,ba){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,ba){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,ba){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();ba?
-c.fillAndStroke():c.stroke()}});mxMarker.addMarker("openAsync",function(c){c=null!=c?c:2;return function(l,t,n,r,v,x,J,y,ba,S){v*=J+ba;x*=J+ba;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,ba=t?x[0]:x[J];x=t?x[1]:x[J-1];J=x.x-ba.x;var S=x.y-ba.y,Fa=Math.sqrt(J*J+S*S);ba=n.call(this,Fa,J/Fa,S/Fa,ba,x);return new mxPoint(ba.x/y-v.x,ba.y/y-v.y)}return null},function(v,x,J){var y=c.absolutePoints,ba=y.length-1;v=c.view.translate;
-var S=c.view.scale,Fa=t?y[0]:y[ba];y=t?y[1]:y[ba-1];ba=y.x-Fa.x;var Ra=y.y-Fa.y,Oa=Math.sqrt(ba*ba+Ra*Ra);x.x=(x.x+v.x)*S;x.y=(x.y+v.y)*S;r.call(this,Oa,ba/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-
+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,w,J,y,ba){var S=r*(w+y+1),Ea=v*(w+y+1);return function(){c.begin();c.moveTo(n.x-S/2-Ea/2,n.y-Ea/2+S/2);c.lineTo(n.x+Ea/2-3*S/2,n.y-3*Ea/2-S/2);c.stroke()}});mxMarker.addMarker("box",
+function(c,l,t,n,r,v,w,J,y,ba){var S=r*(w+y+1),Ea=v*(w+y+1),Ra=n.x+S/2,Oa=n.y+Ea/2;n.x-=S;n.y-=Ea;return function(){c.begin();c.moveTo(Ra-S/2-Ea/2,Oa-Ea/2+S/2);c.lineTo(Ra-S/2+Ea/2,Oa-Ea/2-S/2);c.lineTo(Ra+Ea/2-3*S/2,Oa-3*Ea/2-S/2);c.lineTo(Ra-Ea/2-3*S/2,Oa-3*Ea/2+S/2);c.close();ba?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,v,w,J,y,ba){var S=r*(w+y+1),Ea=v*(w+y+1);return function(){c.begin();c.moveTo(n.x-S/2-Ea/2,n.y-Ea/2+S/2);c.lineTo(n.x+Ea/2-3*S/2,n.y-3*Ea/2-
+S/2);c.moveTo(n.x-S/2+Ea/2,n.y-Ea/2-S/2);c.lineTo(n.x-Ea/2-3*S/2,n.y-3*Ea/2+S/2);c.stroke()}});mxMarker.addMarker("circle",Va);mxMarker.addMarker("circlePlus",function(c,l,t,n,r,v,w,J,y,ba){var S=n.clone(),Ea=Va.apply(this,arguments),Ra=r*(w+2*y),Oa=v*(w+2*y);return function(){Ea.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,w,J,y,ba){var S=r*(w+y+1),Ea=v*(w+y+1),Ra=n.clone();n.x-=S;n.y-=Ea;return function(){c.begin();c.moveTo(Ra.x-Ea,Ra.y+S);c.quadTo(n.x-Ea,n.y+S,n.x,n.y);c.quadTo(n.x+Ea,n.y-S,Ra.x+Ea,Ra.y-S);c.stroke()}});mxMarker.addMarker("async",function(c,l,t,n,r,v,w,J,y,ba){l=r*y*1.118;t=v*y*1.118;r*=w+y;v*=w+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();ba?
+c.fillAndStroke():c.stroke()}});mxMarker.addMarker("openAsync",function(c){c=null!=c?c:2;return function(l,t,n,r,v,w,J,y,ba,S){v*=J+ba;w*=J+ba;var Ea=r.clone();return function(){l.begin();l.moveTo(Ea.x,Ea.y);y?l.lineTo(Ea.x-v-w/c,Ea.y-w+v/c):l.lineTo(Ea.x+w/c-v,Ea.y-w-v/c);l.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var nb=function(c,l,t){return db(c,["width"],l,function(n,r,v,w,J){J=c.shape.getEdgeWidth()*c.view.scale+t;return new mxPoint(w.x+r*n/4+v*J/2,w.y+v*n/4-r*J/2)},function(n,
+r,v,w,J,y){n=Math.sqrt(mxUtils.ptSegDistSq(w.x,w.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 w=c.absolutePoints;if(null!=w&&0<w.length){var J=w.length-1;v=c.view.translate;var y=c.view.scale,ba=t?w[0]:w[J];w=t?w[1]:w[J-1];J=w.x-ba.x;var S=w.y-ba.y,Ea=Math.sqrt(J*J+S*S);ba=n.call(this,Ea,J/Ea,S/Ea,ba,w);return new mxPoint(ba.x/y-v.x,ba.y/y-v.y)}return null},function(v,w,J){var y=c.absolutePoints,ba=y.length-1;v=c.view.translate;
+var S=c.view.scale,Ea=t?y[0]:y[ba];y=t?y[1]:y[ba-1];ba=y.x-Ea.x;var Ra=y.y-Ea.y,Oa=Math.sqrt(ba*ba+Ra*Ra);w.x=(w.x+v.x)*S;w.y=(w.y+v.y)*S;r.call(this,Oa,ba/Oa,Ra/Oa,Ea,y,w,J)})},qb=function(c,l){return function(t){return[db(t,["startWidth"],!0,function(n,r,v,w,J){J=mxUtils.getNumber(t.style,"startWidth",c)*t.view.scale+l;return new mxPoint(w.x+r*n/4+v*J/2,w.y+v*n/4-r*J/2)},function(n,r,v,w,J,y){n=Math.sqrt(mxUtils.ptSegDistSq(w.x,w.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(J){var y=null!=r?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ba=parseFloat(mxUtils.getValue(this.state.style,"size",y?r:c));return new mxPoint(J.x+Math.max(0,Math.min(.5*J.width,
-ba*(y?1:J.width))),J.getCenterY())},function(J,y,ba){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,
+(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 w=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+w,v.y+
+w)},function(v,w){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(v.width,w.x-v.x),Math.min(v.height,w.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 w=[Ta(v,["size"],function(J){var y=null!=r?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ba=parseFloat(mxUtils.getValue(this.state.style,"size",y?r:c));return new mxPoint(J.x+Math.max(0,Math.min(.5*J.width,
+ba*(y?1:J.width))),J.getCenterY())},function(J,y,ba){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)&&w.push(hb(v));return w}},yb=function(c,l,t){c=null!=c?c:.5;return function(n){var r=[Ta(n,["size"],function(v){var w=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,J=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,
+"size",w?t:l)));return new mxPoint(v.x+Math.min(.75*v.width*c,J*(w?.75:.75*v.width)),v.y+v.height/4)},function(v,w){v=null!=t&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?w.x-v.x:Math.max(0,Math.min(c,(w.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 J=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);J.execute=function(ba){for(var S=0;S<l.length;S++)this.copyStyle(l[S]);
-x&&x(ba)};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,ba){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)/
+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,w){var J=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);J.execute=function(ba){for(var S=0;S<l.length;S++)this.copyStyle(l[S]);
+w&&w(ba)};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,w,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(w.x+r*(J+c.shape.strokewidth*c.view.scale)+v*n/2,w.y+v*(J+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,w,J,y,ba){n=Math.sqrt(mxUtils.ptSegDistSq(w.x,w.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(w.x,w.y,w.x+v,w.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(ba.getEvent())||mxEvent.isControlDown(ba.getEvent()))c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE];mxEvent.isAltDown(ba.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,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,ba){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)/
+!0,function(n,r,v,w,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(w.x+r*(J+c.shape.strokewidth*c.view.scale)+v*n/2,w.y+v*(J+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,w,J,y,ba){n=Math.sqrt(mxUtils.ptSegDistSq(w.x,w.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(w.x,w.y,w.x+v,w.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(ba.getEvent())||mxEvent.isControlDown(ba.getEvent()))c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE],c.style.endWidth=c.style.startWidth;mxEvent.isAltDown(ba.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,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,ba){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(ba.getEvent())||mxEvent.isControlDown(ba.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(ba.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,ba){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(ba.getEvent())||mxEvent.isControlDown(ba.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,w,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(w.x+r*(J+c.shape.strokewidth*
+c.view.scale)-v*n/2,w.y+v*(J+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,w,J,y,ba){n=Math.sqrt(mxUtils.ptSegDistSq(w.x,w.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(w.x,w.y,w.x+v,w.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(ba.getEvent())||mxEvent.isControlDown(ba.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(ba.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,w,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(w.x+r*(J+c.shape.strokewidth*
+c.view.scale)-v*n/2,w.y+v*(J+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,w,J,y,ba){n=Math.sqrt(mxUtils.ptSegDistSq(w.x,w.y,J.x,J.y,y.x,y.y));r=mxUtils.ptLineDist(w.x,w.y,w.x+v,w.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(ba.getEvent())||mxEvent.isControlDown(ba.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE],
c.style.startWidth=c.style.endWidth;mxEvent.isAltDown(ba.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=[],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",la.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 w=[],J=0;J<v.length;J++)v[J]!=c.cell&&r.isSwimlane(v[J])&&r.getSwimlaneDirection(r.getCurrentCellStyle(v[J]))==
+n&&w.push(v[J]);r.setCellStyles(mxConstants.STYLE_STARTSIZE,c.style[mxConstants.STYLE_STARTSIZE],w)}}));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",oa.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(sa.prototype.corner,Math.min(l.width,mxUtils.getValue(this.state.style,"width",sa.prototype.width))),n=Math.max(1.5*sa.prototype.corner,Math.min(l.height,mxUtils.getValue(this.state.style,"height",sa.prototype.height)));return new mxPoint(l.x+t,l.y+n)},function(l,t){this.state.style.width=Math.round(Math.max(sa.prototype.corner,Math.min(l.width,t.x-l.x)));this.state.style.height=Math.round(Math.max(1.5*sa.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",M.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,
@@ -3484,27 +3505,27 @@ return l},dataStorage:function(c){return[Ta(c,["size"],function(l){var t="0"!=mx
Math.round(100*Math.max(0,Math.min(1,(n.x-t.x)/t.width)))/100},!1),Ta(c,["position2"],function(t){var n=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",aa.prototype.position2)));return new mxPoint(t.x+n*t.width,t.y+t.height)},function(t,n){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(n.x-t.x)/t.width)))/100},!1),Ta(c,["base"],function(t){var n=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"size",aa.prototype.size))),r=Math.max(0,Math.min(1,
mxUtils.getValue(this.state.style,"position",aa.prototype.position))),v=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"base",aa.prototype.base)));return new mxPoint(t.x+Math.min(t.width,r*t.width+v),t.y+t.height-n)},function(t,n){var r=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",aa.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(t.width,n.x-t.x-r*t.width)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(hb(c));
return l},internalStorage:function(c){var l=[Ta(c,["dx","dy"],function(t){var n=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"dx",cb.prototype.dx))),r=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"dy",cb.prototype.dy)));return new mxPoint(t.x+n,t.y+r)},function(t,n){this.state.style.dx=Math.round(Math.max(0,Math.min(t.width,n.x-t.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(t.height,n.y-t.y)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&
-l.push(hb(c));return l},module:function(c){return[Ta(c,["jettyWidth","jettyHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"jettyWidth",Ga.prototype.jettyWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"jettyHeight",Ga.prototype.jettyHeight)));return new mxPoint(l.x+t/2,l.y+2*n)},function(l,t){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(l.width,t.x-l.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(l.height,
+l.push(hb(c));return l},module:function(c){return[Ta(c,["jettyWidth","jettyHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"jettyWidth",Fa.prototype.jettyWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"jettyHeight",Fa.prototype.jettyHeight)));return new mxPoint(l.x+t/2,l.y+2*n)},function(l,t){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(l.width,t.x-l.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(l.height,
t.y-l.y))/2)})]},corner:function(c){return[Ta(c,["dx","dy"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"dx",fb.prototype.dx))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"dy",fb.prototype.dy)));return new mxPoint(l.x+t,l.y+n)},function(l,t){this.state.style.dx=Math.round(Math.max(0,Math.min(l.width,t.x-l.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},tee:function(c){return[Ta(c,["dx","dy"],function(l){var t=
Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"dx",gb.prototype.dx))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"dy",gb.prototype.dy)));return new mxPoint(l.x+(l.width+t)/2,l.y+n)},function(l,t){this.state.style.dx=Math.round(Math.max(0,2*Math.min(l.width/2,t.x-l.x-l.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},singleArrow:bb(1),doubleArrow:bb(.5),"mxgraph.arrows2.wedgeArrow":qb(20,20),"mxgraph.arrows2.wedgeArrowDashed":qb(20,
20),"mxgraph.arrows2.wedgeArrowDashed2":qb(20,20),folder:function(c){return[Ta(c,["tabWidth","tabHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"tabWidth",D.prototype.tabWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"tabHeight",D.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",D.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(t=l.width-t);return new mxPoint(l.x+t,l.y+n)},function(l,t){var n=Math.max(0,Math.min(l.width,
t.x-l.x));mxUtils.getValue(this.state.style,"tabPosition",D.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(n=l.width-n);this.state.style.tabWidth=Math.round(n);this.state.style.tabHeight=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},document:function(c){return[Ta(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",T.prototype.size))));return new mxPoint(l.x+3*l.width/4,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)]},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/
+Math.min(1,(l.y+l.height-t.y)/l.height))},!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",x.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(za.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,
+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(na.prototype.size,!0,.5,!0,na.prototype.fixedSize),curlyBracket:tb(Y.prototype.size,!1),display:tb(Ga.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,K.prototype.size,K.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,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,ba=$a.y,S=kb.x,Fa=kb.y,Ra="horizontal"==mxUtils.getValue(c.style,"elbow","horizontal");if(null!=x&&null!=J){c=function(ka,ra,pa){ka-=Oa.x;var na=ra-Oa.y;ra=(Fa*ka-S*na)/(y*Fa-ba*S);ka=(ba*ka-y*na)/(ba*S-y*Fa);Ra?(pa&&(Oa=new mxPoint(Oa.x+y*ra,Oa.y+ba*ra),r.push(Oa)),Oa=new mxPoint(Oa.x+S*ka,Oa.y+Fa*ka)):(pa&&(Oa=new mxPoint(Oa.x+S*ka,Oa.y+Fa*ka),r.push(Oa)),Oa=new mxPoint(Oa.x+y*ra,Oa.y+ba*ra));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=
+{};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 w=c.absolutePoints,J=w[0];w=w[w.length-1];null!=n&&(n=v.transformControlPoint(c,n));null==J&&null!=l&&(J=new mxPoint(l.getCenterX(),l.getCenterY()));null==w&&null!=t&&(w=new mxPoint(t.getCenterX(),
+t.getCenterY()));var y=$a.x,ba=$a.y,S=kb.x,Ea=kb.y,Ra="horizontal"==mxUtils.getValue(c.style,"elbow","horizontal");if(null!=w&&null!=J){c=function(ka,ra,pa){ka-=Oa.x;var ma=ra-Oa.y;ra=(Ea*ka-S*ma)/(y*Ea-ba*S);ka=(ba*ka-y*ma)/(ba*S-y*Ea);Ra?(pa&&(Oa=new mxPoint(Oa.x+y*ra,Oa.y+ba*ra),r.push(Oa)),Oa=new mxPoint(Oa.x+S*ka,Oa.y+Ea*ka)):(pa&&(Oa=new mxPoint(Oa.x+S*ka,Oa.y+Ea*ka),r.push(Oa)),Oa=new mxPoint(Oa.x+y*ra,Oa.y+ba*ra));r.push(Oa)};var Oa=J;null==n&&(n=new mxPoint(J.x+(w.x-J.x)/2,J.y+(w.y-J.y)/
+2));c(n.x,n.y,!0);c(w.x,w.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};x.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,0,n));return c};aa.prototype.getConstraints=function(c,l,t){c=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var n=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,"position",this.position));var r=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));
parseFloat(mxUtils.getValue(this.style,"base",this.base));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t-n)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,r,t));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)));l>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};mxRectangleShape.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,
0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),
-new mxConnectionConstraint(new mxPoint(1,1),!0)];mxEllipse.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,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))];wa.prototype.constraints=mxRectangleShape.prototype.constraints;
+new mxConnectionConstraint(new mxPoint(1,1),!0)];mxEllipse.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,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;qa.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};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,
@@ -3517,9 +3538,9 @@ function(c,l,t){c=[];var n=Math.max(0,Math.min(l,parseFloat(mxUtils.getValue(thi
0),!1,null,n,r)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),r))):(c.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-.5*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-n,r)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),r)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,r));c.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,l,.25*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.75*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.25*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,0,.75*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t));c.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return c};cb.prototype.constraints=mxRectangleShape.prototype.constraints;eb.prototype.constraints=mxRectangleShape.prototype.constraints;N.prototype.constraints=mxEllipse.prototype.constraints;R.prototype.constraints=mxEllipse.prototype.constraints;
-X.prototype.constraints=mxEllipse.prototype.constraints;Ma.prototype.constraints=mxEllipse.prototype.constraints;Ya.prototype.constraints=mxRectangleShape.prototype.constraints;Na.prototype.constraints=mxRectangleShape.prototype.constraints;za.prototype.getConstraints=function(c,l,t){c=[];var n=Math.min(l,t/2),r=Math.min(l-n,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*l);c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+l-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+l-n),t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));return c};Ga.prototype.getConstraints=function(c,l,t){l=parseFloat(mxUtils.getValue(c,
-"jettyWidth",Ga.prototype.jettyWidth))/2;c=parseFloat(mxUtils.getValue(c,"jettyHeight",Ga.prototype.jettyHeight));var n=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,l),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,
+X.prototype.constraints=mxEllipse.prototype.constraints;Ma.prototype.constraints=mxEllipse.prototype.constraints;Ya.prototype.constraints=mxRectangleShape.prototype.constraints;Na.prototype.constraints=mxRectangleShape.prototype.constraints;Ga.prototype.getConstraints=function(c,l,t){c=[];var n=Math.min(l,t/2),r=Math.min(l-n,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*l);c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+l-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+l-n),t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));return c};Fa.prototype.getConstraints=function(c,l,t){l=parseFloat(mxUtils.getValue(c,
+"jettyWidth",Fa.prototype.jettyWidth))/2;c=parseFloat(mxUtils.getValue(c,"jettyHeight",Fa.prototype.jettyHeight));var n=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,l),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,
.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!1,null,l),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(t-.5*c,1.5*c)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(t-.5*c,3.5*c))];t>5*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,l));t>8*c&&n.push(new mxConnectionConstraint(new mxPoint(0,
.5),!1,null,l));t>15*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,l));return n};B.prototype.constraints=mxRectangleShape.prototype.constraints;F.prototype.constraints=mxRectangleShape.prototype.constraints;mxCylinder.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.15,.05),!1),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.85,.05),!1),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,
.5),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.3),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.7),!0),new mxConnectionConstraint(new mxPoint(.15,.95),!1),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.85,.95),!1)];ca.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.1),!1),new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.75,
@@ -3542,44 +3563,44 @@ X.prototype.constraints=mxEllipse.prototype.constraints;Ma.prototype.constraints
function(c,l,t){c=[];var n=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),r=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));n=(t-n)/2;c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-r),n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,0));c.push(new mxConnectionConstraint(new mxPoint(1,
.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-r),t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));return c};ib.prototype.getConstraints=function(c,l,t){c=[];var n=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",ab.prototype.arrowWidth)))),r=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",ab.prototype.arrowSize))));n=(t-n)/2;c.push(new mxConnectionConstraint(new mxPoint(0,
.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*l,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*l,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));return c};ya.prototype.getConstraints=
-function(c,l,t){c=[];var n=Math.min(t,l),r=Math.max(0,Math.min(n,n*parseFloat(mxUtils.getValue(this.style,"size",this.size))));n=(t-r)/2;var v=n+r,x=(l-r)/2;r=x+r;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,0));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,r,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),n));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,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,n));return c};la.prototype.constraints=null;p.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,
-.9),!1)];A.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];Ca.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];Da.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
+function(c,l,t){c=[];var n=Math.min(t,l),r=Math.max(0,Math.min(n,n*parseFloat(mxUtils.getValue(this.style,"size",this.size))));n=(t-r)/2;var v=n+r,w=(l-r)/2;r=w+r;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,w,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,w,0));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,r,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,w,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,w,t));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),n));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,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,w,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*w,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*w,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,w,n));return c};oa.prototype.constraints=null;q.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,
+.9),!1)];A.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];Ba.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];Ca.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(a){this.editorUi=a;this.actions={};this.init()}
-Actions.prototype.init=function(){function a(k){d.escape();k=d.deleteCells(d.getDeletableCells(d.getSelectionCells()),k);null!=k&&d.setSelectionCells(k)}function b(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),u=0;u<k.length;u++)d.cellLabelChanged(k[u],"")}finally{d.getModel().endUpdate()}}}function e(k,u,w,z,C){C.getModel().beginUpdate();try{var E=C.getCellGeometry(k);null!=E&&w&&z&&(w/=z,E=E.clone(),1<w?E.height=E.width/w:E.width=E.height*w,C.getModel().setGeometry(k,
+Actions.prototype.init=function(){function a(k){d.escape();k=d.deleteCells(d.getDeletableCells(d.getSelectionCells()),k);null!=k&&d.setSelectionCells(k)}function b(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),u=0;u<k.length;u++)d.cellLabelChanged(k[u],"")}finally{d.getModel().endUpdate()}}}function e(k,u,x,z,C){C.getModel().beginUpdate();try{var E=C.getCellGeometry(k);null!=E&&x&&z&&(x/=z,E=E.clone(),1<x?E.height=E.width/x:E.width=E.height*x,C.getModel().setGeometry(k,
E));C.setCellStyles(mxConstants.STYLE_CLIP_PATH,u,[k]);C.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[k])}finally{C.getModel().endUpdate()}}var f=this.editorUi,h=f.editor,d=h.graph,g=function(){return Action.prototype.isEnabled.apply(this,arguments)&&d.isEnabled()};this.addAction("new...",function(){d.openLink(f.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";f.openFile()});this.put("smartFit",new Action(mxResources.get("fitWindow")+" / "+mxResources.get("resetView"),
-function(){d.popupMenuHandler.hideMenu();var k=d.view.scale,u=d.container.scrollLeft,w=d.container.scrollTop,z=d.view.translate.x,C=d.view.translate.y;f.actions.get("resetView").funct();1E-5>Math.abs(k-d.view.scale)&&5>Math.abs(u-d.container.scrollLeft)&&5>Math.abs(w-d.container.scrollTop)&&z==d.view.translate.x&&C==d.view.translate.y&&f.actions.get("fitWindow").funct()},null,null,"Enter"));this.addAction("keyPressEnter",function(){d.isSelectionEmpty()?f.actions.get("smartFit").funct():d.isEnabled()&&
-d.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){f.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(k,u){try{var w=mxUtils.parseXml(k);h.graph.setSelectionCells(h.graph.importGraphModel(w.documentElement))}catch(z){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+z.message)}}));f.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=
+function(){d.popupMenuHandler.hideMenu();var k=d.view.scale,u=d.container.scrollLeft,x=d.container.scrollTop,z=d.view.translate.x,C=d.view.translate.y;f.actions.get("resetView").funct();1E-5>Math.abs(k-d.view.scale)&&5>Math.abs(u-d.container.scrollLeft)&&5>Math.abs(x-d.container.scrollTop)&&z==d.view.translate.x&&C==d.view.translate.y&&f.actions.get("fitWindow").funct()},null,null,"Enter"));this.addAction("keyPressEnter",function(){d.isSelectionEmpty()?f.actions.get("smartFit").funct():d.isEnabled()&&
+d.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){f.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(k,u){try{var x=mxUtils.parseXml(k);h.graph.setSelectionCells(h.graph.importGraphModel(x.documentElement))}catch(z){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+z.message)}}));f.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=
null})}).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,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=
-d.getModel();if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=f.copiedValue){z.beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());if(0==C.length)w(z.getRoot(),f.copiedValue);else for(u=0;u<C.length;u++)w(C[u],f.copiedValue)}finally{z.endUpdate()}}},null,null,"Alt+Shift+E");this.addAction("delete",function(k,u){k=null!=u?u:k;null!=k&&mxEvent.isShiftDown(k)?b():a(null!=k&&(mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)||mxEvent.isAltDown(k)))},null,null,"Delete");this.addAction("deleteAll",
+E-I)),d.cellsMoved(z,C-D.x,E-D.y))}}function x(){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 x()}),k=!0)}catch(z){}k||x()}});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 x=d.getCellGeometry(k[u]);
+null!=x&&(x=x.clone(),x.width=f.copiedSize.width,x.height=f.copiedSize.height,d.getModel().setGeometry(k[u],x))}}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 x(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=
+d.getModel();if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=f.copiedValue){z.beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());if(0==C.length)x(z.getRoot(),f.copiedValue);else for(u=0;u<C.length;u++)x(C[u],f.copiedValue)}finally{z.endUpdate()}}},null,null,"Alt+Shift+E");this.addAction("delete",function(k,u){k=null!=u?u:k;null!=k&&mxEvent.isShiftDown(k)?b():a(null!=k&&(mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)||mxEvent.isAltDown(k)))},null,null,"Delete");this.addAction("deleteAll",
function(){a(!0)});this.addAction("deleteLabels",function(){b()},null,null,Editor.ctrlKey+"+Delete");this.addAction("duplicate",function(){try{d.setSelectionCells(d.duplicateCells()),d.scrollCellToVisible(d.getSelectionCell())}catch(k){f.handleError(k)}},null,null,Editor.ctrlKey+"+D");this.put("mergeCells",new Action(mxResources.get("merge"),function(){var k=f.getSelectionState();if(null!=k.mergeCell){d.getModel().beginUpdate();try{d.setCellStyles("rowspan",k.rowspan,[k.mergeCell]),d.setCellStyles("colspan",
k.colspan,[k.mergeCell])}finally{d.getModel().endUpdate()}}}));this.put("unmergeCells",new Action(mxResources.get("unmerge"),function(){var k=f.getSelectionState();if(0<k.cells.length){d.getModel().beginUpdate();try{d.setCellStyles("rowspan",null,k.cells),d.setCellStyles("colspan",null,k.cells)}finally{d.getModel().endUpdate()}}}));this.put("turn",new Action(mxResources.get("turn")+" / "+mxResources.get("reverse"),function(k,u){k=null!=u?u:k;d.turnShapes(d.getResizableCells(d.getSelectionCells()),
null!=k?mxEvent.isShiftDown(k):!1)},null,null,mxClient.IS_SF?null:Editor.ctrlKey+"+R"));this.put("selectConnections",new Action(mxResources.get("selectEdges"),function(k){k=d.getSelectionCell();d.isEnabled()&&null!=k&&d.addSelectionCells(d.getEdges(k))}));this.addAction("selectVertices",function(){d.selectVertices(null,!0)},null,null,Editor.ctrlKey+"+Shift+I");this.addAction("selectEdges",function(){d.selectEdges()},null,null,Editor.ctrlKey+"+Shift+E");this.addAction("selectAll",function(){d.selectAll(null,
-!0)},null,null,Editor.ctrlKey+"+A");this.addAction("selectNone",function(){d.clearSelection()},null,null,Editor.ctrlKey+"+Shift+A");this.addAction("lockUnlock",function(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),u=d.getCurrentCellStyle(d.getSelectionCell()),w=1==mxUtils.getValue(u,mxConstants.STYLE_EDITABLE,1)?0:1;d.setCellStyles(mxConstants.STYLE_MOVABLE,w,k);d.setCellStyles(mxConstants.STYLE_RESIZABLE,w,k);d.setCellStyles(mxConstants.STYLE_ROTATABLE,w,
-k);d.setCellStyles(mxConstants.STYLE_DELETABLE,w,k);d.setCellStyles(mxConstants.STYLE_EDITABLE,w,k);d.setCellStyles("locked",1==w?0:1,k);d.setCellStyles("connectable",w,k)}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+L");this.addAction("explore",function(){d.model.isVertex(d.getSelectionCell())&&Graph.exploreFromCell(f.editor.graph,f.editor.graph.getSelectionCell())});this.addAction("home",function(){d.home()},null,null,"Shift+Home");this.addAction("exitGroup",function(){d.exitGroup()},
+!0)},null,null,Editor.ctrlKey+"+A");this.addAction("selectNone",function(){d.clearSelection()},null,null,Editor.ctrlKey+"+Shift+A");this.addAction("lockUnlock",function(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),u=d.getCurrentCellStyle(d.getSelectionCell()),x=1==mxUtils.getValue(u,mxConstants.STYLE_EDITABLE,1)?0:1;d.setCellStyles(mxConstants.STYLE_MOVABLE,x,k);d.setCellStyles(mxConstants.STYLE_RESIZABLE,x,k);d.setCellStyles(mxConstants.STYLE_ROTATABLE,x,
+k);d.setCellStyles(mxConstants.STYLE_DELETABLE,x,k);d.setCellStyles(mxConstants.STYLE_EDITABLE,x,k);d.setCellStyles("locked",1==x?0:1,k);d.setCellStyles("connectable",x,k)}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+L");this.addAction("explore",function(){d.model.isVertex(d.getSelectionCell())&&Graph.exploreFromCell(f.editor.graph,f.editor.graph.getSelectionCell())});this.addAction("home",function(){d.home()},null,null,"Shift+Home");this.addAction("exitGroup",function(){d.exitGroup()},
null,null,Editor.ctrlKey+"+Shift+Home");this.addAction("enterGroup",function(){d.enterGroup()},null,null,Editor.ctrlKey+"+Shift+End");this.addAction("collapse",function(){d.foldCells(!0)},null,null,Editor.ctrlKey+"+Home");this.addAction("expand",function(){d.foldCells(!1)},null,null,Editor.ctrlKey+"+End");this.addAction("toFront",function(){d.orderCells(!1)},null,null,Editor.ctrlKey+"+Shift+F");this.addAction("toBack",function(){d.orderCells(!0)},null,null,Editor.ctrlKey+"+Shift+B");this.addAction("bringForward",
function(k){d.orderCells(!1,null,!0)},null,null,Editor.ctrlKey+"+Alt+Shift+F");this.addAction("sendBackward",function(k){d.orderCells(!0,null,!0)},null,null,Editor.ctrlKey+"+Alt+Shift+B");this.addAction("group",function(){if(d.isEnabled()){var k=mxUtils.sortCells(d.getSelectionCells(),!0);1!=k.length||d.isTable(k[0])||d.isTableRow(k[0])?(k=d.getCellsForGroup(k),1<k.length&&d.setSelectionCell(d.groupCells(null,0,k))):d.setCellStyles("container","1")}},null,null,Editor.ctrlKey+"+G");this.addAction("ungroup",
-function(){if(d.isEnabled()){var k=d.getEditableCells(d.getSelectionCells());d.model.beginUpdate();try{var u=d.ungroupCells();if(null!=k)for(var w=0;w<k.length;w++)d.model.contains(k[w])&&(0==d.model.getChildCount(k[w])&&d.model.isVertex(k[w])&&d.setCellStyles("container","0",[k[w]]),u.push(k[w]))}finally{d.model.endUpdate()}0<u.length&&d.setSelectionCells(u)}},null,null,Editor.ctrlKey+"+Shift+U");this.addAction("removeFromGroup",function(){if(d.isEnabled()){var k=d.getSelectionCells();if(null!=k){for(var u=
-[],w=0;w<k.length;w++)d.isTableRow(k[w])||d.isTableCell(k[w])||u.push(k[w]);d.removeCellsFromParent(u);0<u.length&&d.scrollCellToVisible(u[0])}}});this.addAction("edit",function(){d.isEnabled()&&d.startEditingAtCell()},null,null,"F2/Enter");this.addAction("editData...",function(){var k=d.getSelectionCell()||d.getModel().getRoot();f.showDataDialog(k)},null,null,Editor.ctrlKey+"+M");this.addAction("editTooltip...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var u=
-"";if(mxUtils.isNode(k.value)){var w=null;Graph.translateDiagram&&null!=Graph.diagramLanguage&&k.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(w=k.value.getAttribute("tooltip_"+Graph.diagramLanguage));null==w&&(w=k.value.getAttribute("tooltip"));null!=w&&(u=w)}u=new TextareaDialog(f,mxResources.get("editTooltip")+":",u,function(z){d.setTooltipForCell(k,z)});f.showDialog(u.container,320,200,!0,!0);u.init()}},null,null,"Alt+Shift+T");this.addAction("openLink",function(){var k=d.getLinkForCell(d.getSelectionCell());
-null!=k&&d.openLink(k)});this.addAction("editLink...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var u=d.getLinkForCell(k,!0)||"";f.showLinkDialog(u,mxResources.get("ok"),function(w,z,C){d.getModel().beginUpdate();try{d.setLinkForCell(k,0<w.length?w:null),d.setAttributeForCell(k,"linkTarget",C)}finally{d.getModel().endUpdate()}},!0,d.getLinkTargetForCell(k))}},null,null,"Alt+Shift+L");this.put("insertImage",new Action(mxResources.get("image")+"...",function(){d.isEnabled()&&
-!d.isCellLocked(d.getDefaultParent())&&(d.clearSelection(),f.actions.get("image").funct())})).isEnabled=g;this.addAction("editImage...",function(){f.actions.get("image").funct()});this.put("insertLink",new Action(mxResources.get("link")+"...",function(){d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&f.showLinkDialog("",mxResources.get("ok"),function(k,u,w){k=mxUtils.trim(k);if(0<k.length){var z=null,C=d.getLinkTitle(k);null!=u&&0<u.length&&(z=u[0].iconUrl,C=u[0].name||u[0].type,C=C.charAt(0).toUpperCase()+
-C.substring(1),30<C.length&&(C=C.substring(0,30)+"..."));u=new mxCell(C,new mxGeometry(0,0,100,40),"fontColor=#0000EE;fontStyle=4;rounded=1;overflow=hidden;"+(null!=z?"shape=label;imageWidth=16;imageHeight=16;spacingLeft=26;align=left;image="+z:"spacing=10;"));u.vertex=!0;z=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry([u],!0));u.geometry.x=z.x;u.geometry.y=z.y;d.setAttributeForCell(u,"linkTarget",w);d.setLinkForCell(u,k);d.cellSizeUpdated(u,!0);d.getModel().beginUpdate();try{u=d.addCell(u),
-d.fireEvent(new mxEventObject("cellsInserted","cells",[u]))}finally{d.getModel().endUpdate()}d.setSelectionCell(u);d.scrollCellToVisible(d.getSelectionCell())}},!0)},null,null,"L")).isEnabled=g;this.addAction("link...",mxUtils.bind(this,function(){if(d.isEnabled())if(d.cellEditor.isContentEditing()){var k=d.getSelectedElement(),u=d.getParentByName(k,"A",d.cellEditor.textarea),w="";if(null==u&&null!=k&&null!=k.getElementsByTagName)for(var z=k.getElementsByTagName("a"),C=0;C<z.length&&null==u;C++)z[C].textContent==
-k.textContent&&(u=z[C]);null!=u&&"A"==u.nodeName&&(w=u.getAttribute("href")||"",d.selectNode(u));var E=d.cellEditor.saveSelection();f.showLinkDialog(w,mxResources.get("ok"),mxUtils.bind(this,function(D){d.cellEditor.restoreSelection(E);null!=D&&d.insertLink(D)}))}else d.isSelectionEmpty()?this.get("insertLink").funct():this.get("editLink").funct()})).isEnabled=g;this.addAction("autosize",function(){var k=d.getSelectionCells();if(null!=k){d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var w=
-k[u];d.getModel().isVertex(w)&&(0<d.getModel().getChildCount(w)?d.updateGroupBounds([w],0,!0):d.updateCellSize(w))}}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+Shift+Y");this.addAction("snapToGrid",function(){d.snapCellsToGrid(d.getSelectionCells(),d.gridSize)});this.addAction("formattedText",function(){d.stopEditing();var k=d.getCommonStyle(d.getSelectionCells());k="1"==mxUtils.getValue(k,"html","0")?null:"1";d.getModel().beginUpdate();try{for(var u=d.getEditableCells(d.getSelectionCells()),
-w=0;w<u.length;w++)if(state=d.getView().getState(u[w]),null!=state){var z=mxUtils.getValue(state.style,"html","0");if("1"==z&&null==k)d.removeTextStyleForCell(state.cell),d.setCellStyles("html",k,[u[w]]);else if("0"==z&&"1"==k){var C=mxUtils.htmlEntities(d.convertValueToString(state.cell),!1);"0"!=mxUtils.getValue(state.style,"nl2Br","1")&&(C=C.replace(/\n/g,"<br/>"));d.cellLabelChanged(state.cell,Graph.sanitizeHtml(C));d.setCellStyles("html",k,[u[w]])}}f.fireEvent(new mxEventObject("styleChanged",
+function(){if(d.isEnabled()){var k=d.getEditableCells(d.getSelectionCells());d.model.beginUpdate();try{var u=d.ungroupCells();if(null!=k)for(var x=0;x<k.length;x++)d.model.contains(k[x])&&(0==d.model.getChildCount(k[x])&&d.model.isVertex(k[x])&&d.setCellStyles("container","0",[k[x]]),u.push(k[x]))}finally{d.model.endUpdate()}0<u.length&&d.setSelectionCells(u)}},null,null,Editor.ctrlKey+"+Shift+U");this.addAction("removeFromGroup",function(){if(d.isEnabled()){var k=d.getSelectionCells();if(null!=k){for(var u=
+[],x=0;x<k.length;x++)d.isTableRow(k[x])||d.isTableCell(k[x])||u.push(k[x]);d.removeCellsFromParent(u);0<u.length&&d.scrollCellToVisible(u[0])}}});this.addAction("edit",function(){d.isEnabled()&&d.startEditingAtCell()},null,null,"F2/Enter");this.addAction("editData...",function(){var k=d.getSelectionCell()||d.getModel().getRoot();f.showDataDialog(k)},null,null,Editor.ctrlKey+"+M");this.addAction("editTooltip...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var u=
+"";if(mxUtils.isNode(k.value)){var x=null;Graph.translateDiagram&&null!=Graph.diagramLanguage&&k.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(x=k.value.getAttribute("tooltip_"+Graph.diagramLanguage));null==x&&(x=k.value.getAttribute("tooltip"));null!=x&&(u=x)}u=new TextareaDialog(f,mxResources.get("editTooltip")+":",u,function(z){d.setTooltipForCell(k,z)});f.showDialog(u.container,320,200,!0,!0);u.init()}},null,null,"Alt+Shift+T");this.addAction("openLink",function(){var k=d.getLinkForCell(d.getSelectionCell());
+null!=k&&d.openLink(k)});this.addAction("editLink...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var u=d.getLinkForCell(k,!0)||"";f.showLinkDialog(u,mxResources.get("ok"),function(x,z,C){d.getModel().beginUpdate();try{d.setLinkForCell(k,0<x.length?x:null),d.setAttributeForCell(k,"linkTarget",C)}finally{d.getModel().endUpdate()}},!0,d.getLinkTargetForCell(k))}},null,null,"Alt+Shift+L");this.put("insertImage",new Action(mxResources.get("image")+"...",function(){d.isEnabled()&&
+!d.isCellLocked(d.getDefaultParent())&&(d.clearSelection(),f.actions.get("image").funct())})).isEnabled=g;this.addAction("editImage...",function(){f.actions.get("image").funct()});this.put("insertLink",new Action(mxResources.get("link")+"...",function(){d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&f.showLinkDialog("",mxResources.get("ok"),function(k,u,x){k=mxUtils.trim(k);if(0<k.length){var z=null,C=d.getLinkTitle(k);null!=u&&0<u.length&&(z=u[0].iconUrl,C=u[0].name||u[0].type,C=C.charAt(0).toUpperCase()+
+C.substring(1),30<C.length&&(C=C.substring(0,30)+"..."));u=new mxCell(C,new mxGeometry(0,0,100,40),"fontColor=#0000EE;fontStyle=4;rounded=1;overflow=hidden;"+(null!=z?"shape=label;imageWidth=16;imageHeight=16;spacingLeft=26;align=left;image="+z:"spacing=10;"));u.vertex=!0;z=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry([u],!0));u.geometry.x=z.x;u.geometry.y=z.y;d.setAttributeForCell(u,"linkTarget",x);d.setLinkForCell(u,k);d.cellSizeUpdated(u,!0);d.getModel().beginUpdate();try{u=d.addCell(u),
+d.fireEvent(new mxEventObject("cellsInserted","cells",[u]))}finally{d.getModel().endUpdate()}d.setSelectionCell(u);d.scrollCellToVisible(d.getSelectionCell())}},!0)},null,null,"L")).isEnabled=g;this.addAction("link...",mxUtils.bind(this,function(){if(d.isEnabled())if(d.cellEditor.isContentEditing()){var k=d.getSelectedElement(),u=d.getParentByName(k,"A",d.cellEditor.textarea),x="";if(null==u&&null!=k&&null!=k.getElementsByTagName)for(var z=k.getElementsByTagName("a"),C=0;C<z.length&&null==u;C++)z[C].textContent==
+k.textContent&&(u=z[C]);null!=u&&"A"==u.nodeName&&(x=u.getAttribute("href")||"",d.selectNode(u));var E=d.cellEditor.saveSelection();f.showLinkDialog(x,mxResources.get("ok"),mxUtils.bind(this,function(D){d.cellEditor.restoreSelection(E);null!=D&&d.insertLink(D)}))}else d.isSelectionEmpty()?this.get("insertLink").funct():this.get("editLink").funct()})).isEnabled=g;this.addAction("autosize",function(){var k=d.getSelectionCells();if(null!=k){d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var x=
+k[u];d.getModel().isVertex(x)&&(0<d.getModel().getChildCount(x)?d.updateGroupBounds([x],0,!0):d.updateCellSize(x))}}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+Shift+Y");this.addAction("snapToGrid",function(){d.snapCellsToGrid(d.getSelectionCells(),d.gridSize)});this.addAction("formattedText",function(){d.stopEditing();var k=d.getCommonStyle(d.getSelectionCells());k="1"==mxUtils.getValue(k,"html","0")?null:"1";d.getModel().beginUpdate();try{for(var u=d.getEditableCells(d.getSelectionCells()),
+x=0;x<u.length;x++)if(state=d.getView().getState(u[x]),null!=state){var z=mxUtils.getValue(state.style,"html","0");if("1"==z&&null==k)d.removeTextStyleForCell(state.cell),d.setCellStyles("html",k,[u[x]]);else if("0"==z&&"1"==k){var C=mxUtils.htmlEntities(d.convertValueToString(state.cell),!1);"0"!=mxUtils.getValue(state.style,"nl2Br","1")&&(C=C.replace(/\n/g,"<br/>"));d.cellLabelChanged(state.cell,Graph.sanitizeHtml(C));d.setCellStyles("html",k,[u[x]])}}f.fireEvent(new mxEventObject("styleChanged",
"keys",["html"],"values",[null!=k?k:"0"],"cells",u))}finally{d.getModel().endUpdate()}});this.addAction("wordWrap",function(){var k=d.getView().getState(d.getSelectionCell()),u="wrap";d.stopEditing();null!=k&&"wrap"==k.style[mxConstants.STYLE_WHITE_SPACE]&&(u=null);d.setCellStyles(mxConstants.STYLE_WHITE_SPACE,u)});this.addAction("rotation",function(){var k="0",u=d.getView().getState(d.getSelectionCell());null!=u&&(k=u.style[mxConstants.STYLE_ROTATION]||k);k=new FilenameDialog(f,k,mxResources.get("apply"),
-function(w){null!=w&&0<w.length&&d.setCellStyles(mxConstants.STYLE_ROTATION,w)},mxResources.get("enterValue")+" ("+mxResources.get("rotation")+" 0-360)");f.showDialog(k.container,375,80,!0,!0);k.init()});this.addAction("resetView",function(){d.zoomTo(1);f.resetScrollbars()},null,null,"Enter/Home");this.addAction("zoomIn",function(k){d.isFastZoomEnabled()?d.lazyZoom(!0,!0,f.buttonZoomDelay):d.zoomIn()},null,null,Editor.ctrlKey+" + / Alt+Mousewheel");this.addAction("zoomOut",function(k){d.isFastZoomEnabled()?
+function(x){null!=x&&0<x.length&&d.setCellStyles(mxConstants.STYLE_ROTATION,x)},mxResources.get("enterValue")+" ("+mxResources.get("rotation")+" 0-360)");f.showDialog(k.container,375,80,!0,!0);k.init()});this.addAction("resetView",function(){d.zoomTo(1);f.resetScrollbars()},null,null,"Enter/Home");this.addAction("zoomIn",function(k){d.isFastZoomEnabled()?d.lazyZoom(!0,!0,f.buttonZoomDelay):d.zoomIn()},null,null,Editor.ctrlKey+" + / Alt+Mousewheel");this.addAction("zoomOut",function(k){d.isFastZoomEnabled()?
d.lazyZoom(!1,!0,f.buttonZoomDelay):d.zoomOut()},null,null,Editor.ctrlKey+" - / Alt+Mousewheel");this.addAction("fitWindow",function(){d.pageVisible&&d.isSelectionEmpty()?d.fitPages():f.fitDiagramToWindow()},null,null,Editor.ctrlKey+"+Shift+H");this.addAction("fitPage",mxUtils.bind(this,function(){d.pageVisible?d.fitPages(1):this.get("pageView").funct()}),null,null,Editor.ctrlKey+"+J");this.addAction("fitTwoPages",mxUtils.bind(this,function(){d.pageVisible?d.fitPages(2):this.get("pageView").funct()}),
null,null,Editor.ctrlKey+"+Shift+J");this.addAction("fitPageWidth",mxUtils.bind(this,function(){d.pageVisible?d.fitPages(1,!0):this.get("pageView").funct()}));this.put("customZoom",new Action(mxResources.get("custom")+"...",mxUtils.bind(this,function(){var k=new FilenameDialog(this.editorUi,parseInt(100*d.getView().getScale()),mxResources.get("apply"),mxUtils.bind(this,function(u){u=parseInt(u);!isNaN(u)&&0<u&&d.zoomTo(u/100)}),mxResources.get("zoom")+" (%)");this.editorUi.showDialog(k.container,
300,80,!0,!0);k.init()}),null,null,Editor.ctrlKey+"+0"));this.addAction("pageScale...",mxUtils.bind(this,function(){var k=new FilenameDialog(this.editorUi,parseInt(100*d.pageScale),mxResources.get("apply"),mxUtils.bind(this,function(u){u=parseInt(u);!isNaN(u)&&0<u&&(u=new ChangePageSetup(f,null,null,null,u/100),u.ignoreColor=!0,u.ignoreImage=!0,d.model.execute(u))}),mxResources.get("pageScale")+" (%)");this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}));var m=null;m=this.addAction("grid",
@@ -3588,7 +3609,7 @@ m.setEnabled(!1);m=this.addAction("animations",function(){Editor.enableAnimation
m=this.addAction("collapseExpand",function(){var k=new ChangePageSetup(f);k.ignoreColor=!0;k.ignoreImage=!0;k.foldingEnabled=!d.foldingEnabled;d.model.execute(k)});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.foldingEnabled});m.isEnabled=g;m=this.addAction("pageView",mxUtils.bind(this,function(){f.setPageVisible(!d.pageVisible)}));m.setToggleAction(!0);m.setSelectedCallback(function(){return d.pageVisible});m=this.addAction("connectionArrows",function(){d.connectionArrowsEnabled=
!d.connectionArrowsEnabled;f.fireEvent(new mxEventObject("connectionArrowsChanged"))},null,null,"Alt+Shift+A");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionArrowsEnabled});m=this.addAction("connectionPoints",function(){d.setConnectable(!d.connectionHandler.isEnabled());f.fireEvent(new mxEventObject("connectionPointsChanged"))},null,null,"Alt+Shift+O");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionHandler.isEnabled()});m=this.addAction("copyConnect",
function(){d.connectionHandler.setCreateTarget(!d.connectionHandler.isCreateTarget());f.fireEvent(new mxEventObject("copyConnectChanged"))});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionHandler.isCreateTarget()});m.isEnabled=g;m=this.addAction("autosave",function(){f.editor.setAutosave(!f.editor.autosave)});m.setToggleAction(!0);m.setSelectedCallback(function(){return f.editor.autosave});m.isEnabled=g;m.visible=!1;this.addAction("help",function(){var k="";mxResources.isLanguageSupported(mxClient.language)&&
-(k="_"+mxClient.language);d.openLink(RESOURCES_PATH+"/help"+k+".html")});var q=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){q||(f.showDialog((new AboutDialog(f)).container,320,280,!0,!0,function(){q=!1}),q=!0)}));m=mxUtils.bind(this,function(k,u,w,z){return this.addAction(k,function(){if(null!=w&&d.cellEditor.isContentEditing())w();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
+(k="_"+mxClient.language);d.openLink(RESOURCES_PATH+"/help"+k+".html")});var p=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){p||(f.showDialog((new AboutDialog(f)).container,320,280,!0,!0,function(){p=!1}),p=!0)}));m=mxUtils.bind(this,function(k,u,x,z){return this.addAction(k,function(){if(null!=x&&d.cellEditor.isContentEditing())x();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
u,C);(u&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?d.updateLabelElements(C,function(D){D.style.fontWeight=null;"B"==D.nodeName&&d.replaceElement(D)}):(u&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?d.updateLabelElements(C,function(D){D.style.fontStyle=null;"I"==D.nodeName&&d.replaceElement(D)}):(u&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&d.updateLabelElements(C,function(D){D.style.textDecoration=null;"U"==D.nodeName&&d.replaceElement(D)});for(var E=0;E<C.length;E++)0==d.model.getChildCount(C[E])&&
d.autoSizeCell(C[E],!1)}finally{d.getModel().endUpdate()}}},null,null,z)});m("bold",mxConstants.FONT_BOLD,function(){document.execCommand("bold",!1,null)},Editor.ctrlKey+"+B");m("italic",mxConstants.FONT_ITALIC,function(){document.execCommand("italic",!1,null)},Editor.ctrlKey+"+I");m("underline",mxConstants.FONT_UNDERLINE,function(){document.execCommand("underline",!1,null)},Editor.ctrlKey+"+U");this.addAction("fontColor...",function(){f.menus.pickColor(mxConstants.STYLE_FONTCOLOR,"forecolor","000000",
"default",d.shapeForegroundColor)});this.addAction("strokeColor...",function(){f.menus.pickColor(mxConstants.STYLE_STROKECOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("fillColor...",function(){f.menus.pickColor(mxConstants.STYLE_FILLCOLOR,null,null,"default",d.shapeBackgroundColor)});this.addAction("gradientColor...",function(){f.menus.pickColor(mxConstants.STYLE_GRADIENTCOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("backgroundColor...",function(){f.menus.pickColor(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,
@@ -3597,79 +3618,79 @@ d.autoSizeCell(C[E],!1)}finally{d.getModel().endUpdate()}}},null,null,z)});m("bo
try{d.setCellStyles(mxConstants.STYLE_DASHED,"1"),d.setCellStyles(mxConstants.STYLE_DASH_PATTERN,null),f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],"values",["1",null],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("dotted",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_DASHED,"1"),d.setCellStyles(mxConstants.STYLE_DASH_PATTERN,"1 4"),f.fireEvent(new mxEventObject("styleChanged",
"keys",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],"values",["1","1 4"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("sharp",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"0"),d.setCellStyles(mxConstants.STYLE_CURVED,"0"),f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["0","0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});
this.addAction("rounded",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"1"),d.setCellStyles(mxConstants.STYLE_CURVED,"0"),f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["1","0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("toggleRounded",function(){if(!d.isSelectionEmpty()&&d.isEnabled()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),u=d.getCurrentCellStyle(k[0]),
-w="1"==mxUtils.getValue(u,mxConstants.STYLE_ROUNDED,"0")?"0":"1";d.setCellStyles(mxConstants.STYLE_ROUNDED,w);d.setCellStyles(mxConstants.STYLE_CURVED,null);f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",[w,"0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}}});this.addAction("curved",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"0"),d.setCellStyles(mxConstants.STYLE_CURVED,
+x="1"==mxUtils.getValue(u,mxConstants.STYLE_ROUNDED,"0")?"0":"1";d.setCellStyles(mxConstants.STYLE_ROUNDED,x);d.setCellStyles(mxConstants.STYLE_CURVED,null);f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",[x,"0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}}});this.addAction("curved",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"0"),d.setCellStyles(mxConstants.STYLE_CURVED,
"1"),f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["0","1"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("collapsible",function(){var k=d.view.getState(d.getSelectionCell()),u="1";null!=k&&null!=d.getFoldingImage(k)&&(u="0");d.setCellStyles("collapsible",u);f.fireEvent(new mxEventObject("styleChanged","keys",["collapsible"],"values",[u],"cells",d.getSelectionCells()))});this.addAction("editStyle...",
-mxUtils.bind(this,function(){var k=d.getEditableCells(d.getSelectionCells());if(null!=k&&0<k.length){var u=d.getModel();u=new TextareaDialog(this.editorUi,mxResources.get("editStyle")+":",u.getStyle(k[0])||"",function(w){null!=w&&d.setCellStyle(mxUtils.trim(w),k)},null,null,400,220);this.editorUi.showDialog(u.container,420,300,!0,!0);u.init()}}),null,null,Editor.ctrlKey+"+E");this.addAction("setAsDefaultStyle",function(){d.isEnabled()&&!d.isSelectionEmpty()&&f.setDefaultStyle(d.getSelectionCell())},
-null,null,Editor.ctrlKey+"+Shift+D");this.addAction("clearDefaultStyle",function(){d.isEnabled()&&f.clearDefaultStyle()},null,null,Editor.ctrlKey+"+Shift+R");this.addAction("addWaypoint",function(){var k=d.getSelectionCell();if(null!=k&&d.getModel().isEdge(k)){var u=h.graph.selectionCellsHandler.getHandler(k);if(u instanceof mxEdgeHandler){var w=d.view.translate,z=d.view.scale,C=w.x;w=w.y;k=d.getModel().getParent(k);for(var E=d.getCellGeometry(k);d.getModel().isVertex(k)&&null!=E;)C+=E.x,w+=E.y,k=
-d.getModel().getParent(k),E=d.getCellGeometry(k);C=Math.round(d.snap(d.popupMenuHandler.triggerX/z-C));z=Math.round(d.snap(d.popupMenuHandler.triggerY/z-w));u.addPointAt(u.state,C,z)}}});this.addAction("removeWaypoint",function(){var k=f.actions.get("removeWaypoint");null!=k.handler&&k.handler.removePoint(k.handler.state,k.index)});this.addAction("clearAnchors",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var w=
-k[u];d.getModel().isEdge(w)&&(d.setCellStyles(mxConstants.STYLE_EXIT_X,null,[w]),d.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[w]),d.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[w]),d.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[w]))}}finally{d.getModel().endUpdate()}}});this.addAction("clearWaypoints",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var w=k[u];if(d.getModel().isEdge(w)){var z=d.getCellGeometry(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(){var k=d.getEditableCells(d.getSelectionCells());if(null!=k&&0<k.length){var u=d.getModel();u=new TextareaDialog(this.editorUi,mxResources.get("editStyle")+":",u.getStyle(k[0])||"",function(x){null!=x&&d.setCellStyle(mxUtils.trim(x),k)},null,null,400,220);this.editorUi.showDialog(u.container,420,300,!0,!0);u.init()}}),null,null,Editor.ctrlKey+"+E");this.addAction("setAsDefaultStyle",function(){d.isEnabled()&&!d.isSelectionEmpty()&&f.setDefaultStyle(d.getSelectionCell())},
+null,null,Editor.ctrlKey+"+Shift+D");this.addAction("clearDefaultStyle",function(){d.isEnabled()&&f.clearDefaultStyle()},null,null,Editor.ctrlKey+"+Shift+R");this.addAction("addWaypoint",function(){var k=d.getSelectionCell();if(null!=k&&d.getModel().isEdge(k)){var u=h.graph.selectionCellsHandler.getHandler(k);if(u instanceof mxEdgeHandler){var x=d.view.translate,z=d.view.scale,C=x.x;x=x.y;k=d.getModel().getParent(k);for(var E=d.getCellGeometry(k);d.getModel().isVertex(k)&&null!=E;)C+=E.x,x+=E.y,k=
+d.getModel().getParent(k),E=d.getCellGeometry(k);C=Math.round(d.snap(d.popupMenuHandler.triggerX/z-C));z=Math.round(d.snap(d.popupMenuHandler.triggerY/z-x));u.addPointAt(u.state,C,z)}}});this.addAction("removeWaypoint",function(){var k=f.actions.get("removeWaypoint");null!=k.handler&&k.handler.removePoint(k.handler.state,k.index)});this.addAction("clearAnchors",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var x=
+k[u];d.getModel().isEdge(x)&&(d.setCellStyles(mxConstants.STYLE_EXIT_X,null,[x]),d.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[x]),d.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[x]),d.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[x]))}}finally{d.getModel().endUpdate()}}});this.addAction("clearWaypoints",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var x=k[u];if(d.getModel().isEdge(x)){var z=d.getCellGeometry(x);
+null!=z&&(z=z.clone(),z.points=null,z.x=0,z.y=0,z.offset=null,d.getModel().setGeometry(x,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,I,L,T){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(E,D,G);else{var K=d.getSelectionCells();if(null!=E&&(0<E.length||0<K.length)){var U=null;d.getModel().beginUpdate();try{if(0==K.length){K=[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(K,!0));K[0].geometry.x=Y.x;K[0].geometry.y=
+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()),x="",z=null;null!=u&&(x=u.style[mxConstants.STYLE_IMAGE]||x,z=u.style[mxConstants.STYLE_CLIP_PATH]||z);var C=d.cellEditor.saveSelection();
+f.showImageDialog(k,x,function(E,D,G,I,L,T){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(E,D,G);else{var K=d.getSelectionCells();if(null!=E&&(0<E.length||0<K.length)){var U=null;d.getModel().beginUpdate();try{if(0==K.length){K=[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(K,!0));K[0].geometry.x=Y.x;K[0].geometry.y=
Y.y;null!=I&&e(K[0],I,L,T,d);U=K;d.fireEvent(new mxEventObject("cellsInserted","cells",U))}d.setCellStyles(mxConstants.STYLE_IMAGE,0<E.length?E:null,K);var Q=d.getCurrentCellStyle(K[0]);"image"!=Q[mxConstants.STYLE_SHAPE]&&"label"!=Q[mxConstants.STYLE_SHAPE]?d.setCellStyles(mxConstants.STYLE_SHAPE,"image",K):0==E.length&&d.setCellStyles(mxConstants.STYLE_SHAPE,null,K);null==I&&d.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,K);if(null!=D&&null!=G)for(E=0;E<K.length;E++){var P=K[E];if("0"!=d.getCurrentCellStyle(P).expand){var M=
-d.getModel().getGeometry(P);null!=M&&(M=M.clone(),M.width=D,M.height=G,d.getModel().setGeometry(P,M))}null!=I&&e(P,I,L,T,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"))}),
+d.getModel().getGeometry(P);null!=M&&(M=M.clone(),M.width=D,M.height=G,d.getModel().setGeometry(P,M))}null!=I&&e(P,I,L,T,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),x=u[mxConstants.STYLE_IMAGE],z=u[mxConstants.STYLE_SHAPE];
+x&&"image"==z&&(u=new CropImageDialog(f,x,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),
f.fireEvent(new mxEventObject("outline"))):this.outlineWindow.window.setVisible(!this.outlineWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+Shift+O");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.outlineWindow&&this.outlineWindow.window.isVisible()}));this.addAction("editConnectionPoints...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k&&null!=k.geometry){var u=new ConnectionPointsDialog(f,
k);f.showDialog(u.container,350,450,!0,!1,function(){u.destroy()});u.init()}},null,null,"Alt+Shift+Q").isEnabled=g};Actions.prototype.addAction=function(a,b,e,f,h){if("..."==a.substring(a.length-3)){a=a.substring(0,a.length-3);var d=mxResources.get(a)+"..."}else d=mxResources.get(a);return this.put(a,new Action(d,b,e,f,h))};Actions.prototype.put=function(a,b){return this.actions[a]=b};Actions.prototype.get=function(a){return this.actions[a]};
function Action(a,b,e,f,h){mxEventSource.call(this);this.label=a;this.funct=this.createFunction(b);this.enabled=null!=e?e:!0;this.iconCls=f;this.shortcut=h;this.visible=!0}mxUtils.extend(Action,mxEventSource);Action.prototype.createFunction=function(a){return a};Action.prototype.setEnabled=function(a){this.enabled!=a&&(this.enabled=a,this.fireEvent(new mxEventObject("stateChanged")))};Action.prototype.isEnabled=function(){return this.enabled};
-Action.prototype.setToggleAction=function(a){this.toggleAction=a};Action.prototype.setSelectedCallback=function(a){this.selectedCallback=a};Action.prototype.isSelected=function(){return this.selectedCallback()};Menus=function(a){this.editorUi=a;this.menus={};this.init();mxClient.IS_SVG||((new Image).src=this.checkmarkImage)};Menus.prototype.defaultFont="Helvetica";Menus.prototype.defaultFontSize="12";Menus.prototype.defaultMenuItems="file edit view arrange extras help".split(" ");Menus.prototype.defaultFonts="Helvetica;Verdana;Times New Roman;Garamond;Comic Sans MS;Courier New;Georgia;Lucida Console;Tahoma".split(";");Menus.prototype.autoPopup=!0;
+Action.prototype.setToggleAction=function(a){this.toggleAction=a};Action.prototype.setSelectedCallback=function(a){this.selectedCallback=a};Action.prototype.isSelected=function(){return this.selectedCallback()};Menus=function(a){this.editorUi=a;this.menus={};this.init()};Menus.prototype.defaultFont="Helvetica";Menus.prototype.defaultFontSize="12";Menus.prototype.defaultMenuItems="file edit view arrange extras help".split(" ");Menus.prototype.defaultFonts="Helvetica;Verdana;Times New Roman;Garamond;Comic Sans MS;Courier New;Georgia;Lucida Console;Tahoma".split(";");Menus.prototype.autoPopup=!0;
Menus.prototype.init=function(){var a=this.editorUi,b=a.editor.graph,e=mxUtils.bind(b,b.isEnabled);this.customFonts=[];this.customFontSizes=[];this.put("fontFamily",new Menu(mxUtils.bind(this,function(f,h){for(var d=mxUtils.bind(this,function(m){this.styleChange(f,m,[mxConstants.STYLE_FONTFAMILY],[m],null,h,function(){document.execCommand("fontname",!1,m);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY],"values",[m],"cells",[b.cellEditor.getEditingCell()]))},function(){b.updateLabelElements(b.getSelectionCells(),
-function(q){q.removeAttribute("face");q.style.fontFamily=null;"PRE"==q.nodeName&&b.replaceElement(q,"div")})}).firstChild.nextSibling.style.fontFamily=m}),g=0;g<this.defaultFonts.length;g++)d(this.defaultFonts[g]);f.addSeparator(h);if(0<this.customFonts.length){for(g=0;g<this.customFonts.length;g++)d(this.customFonts[g]);f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];this.editorUi.fireEvent(new mxEventObject("customFontsChanged"))}),h);f.addSeparator(h)}this.promptChange(f,
+function(p){p.removeAttribute("face");p.style.fontFamily=null;"PRE"==p.nodeName&&b.replaceElement(p,"div")})}).firstChild.nextSibling.style.fontFamily=m}),g=0;g<this.defaultFonts.length;g++)d(this.defaultFonts[g]);f.addSeparator(h);if(0<this.customFonts.length){for(g=0;g<this.customFonts.length;g++)d(this.customFonts[g]);f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];this.editorUi.fireEvent(new mxEventObject("customFontsChanged"))}),h);f.addSeparator(h)}this.promptChange(f,
mxResources.get("custom")+"...","",mxConstants.DEFAULT_FONTFAMILY,mxConstants.STYLE_FONTFAMILY,h,!0,mxUtils.bind(this,function(m){0>mxUtils.indexOf(this.customFonts,m)&&(this.customFonts.push(m),this.editorUi.fireEvent(new mxEventObject("customFontsChanged")))}))})));this.put("formatBlock",new Menu(mxUtils.bind(this,function(f,h){function d(g,m){return f.addItem(g,null,mxUtils.bind(this,function(){null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),document.execCommand("formatBlock",!1,"<"+
m+">"))}),h)}d(mxResources.get("normal"),"p");d("","h1").firstChild.nextSibling.innerHTML='<h1 style="margin:0px;">'+mxResources.get("heading")+" 1</h1>";d("","h2").firstChild.nextSibling.innerHTML='<h2 style="margin:0px;">'+mxResources.get("heading")+" 2</h2>";d("","h3").firstChild.nextSibling.innerHTML='<h3 style="margin:0px;">'+mxResources.get("heading")+" 3</h3>";d("","h4").firstChild.nextSibling.innerHTML='<h4 style="margin:0px;">'+mxResources.get("heading")+" 4</h4>";d("","h5").firstChild.nextSibling.innerHTML=
'<h5 style="margin:0px;">'+mxResources.get("heading")+" 5</h5>";d("","h6").firstChild.nextSibling.innerHTML='<h6 style="margin:0px;">'+mxResources.get("heading")+" 6</h6>";d("","pre").firstChild.nextSibling.innerHTML='<pre style="margin:0px;">'+mxResources.get("formatted")+"</pre>";d("","blockquote").firstChild.nextSibling.innerHTML='<blockquote style="margin-top:0px;margin-bottom:0px;">'+mxResources.get("blockquote")+"</blockquote>"})));this.put("fontSize",new Menu(mxUtils.bind(this,function(f,h){var d=
-[6,8,9,10,11,12,14,18,24,36,48,72];0>mxUtils.indexOf(d,this.defaultFontSize)&&(d.push(this.defaultFontSize),d.sort(function(w,z){return w-z}));for(var g=mxUtils.bind(this,function(w){if(null!=b.cellEditor.textarea){document.execCommand("fontSize",!1,"3");for(var z=b.cellEditor.textarea.getElementsByTagName("font"),C=0;C<z.length;C++)if("3"==z[C].getAttribute("size")){z[C].removeAttribute("size");z[C].style.fontSize=w+"px";break}a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTSIZE],
-"values",[w],"cells",[b.cellEditor.getEditingCell()]))}}),m=mxUtils.bind(this,function(w){this.styleChange(f,w,[mxConstants.STYLE_FONTSIZE],[w],null,h,function(){g(w)})}),q=0;q<d.length;q++)m(d[q]);f.addSeparator(h);if(0<this.customFontSizes.length){var k=0;for(q=0;q<this.customFontSizes.length;q++)0>mxUtils.indexOf(d,this.customFontSizes[q])&&(m(this.customFontSizes[q]),k++);0<k&&f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFontSizes=[]}),h);f.addSeparator(h)}var u=
-null;this.promptChange(f,mxResources.get("custom")+"...","("+mxResources.get("points")+")",this.defaultFontSize,mxConstants.STYLE_FONTSIZE,h,!0,mxUtils.bind(this,function(w){null!=u&&null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),b.cellEditor.restoreSelection(u));null!=w&&0<w.length&&(this.customFontSizes.push(w),g(w))}),null,function(){u=b.cellEditor.saveSelection();return!1})})));this.put("direction",new Menu(mxUtils.bind(this,function(f,h){f.addItem(mxResources.get("flipH"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPH,
+[6,8,9,10,11,12,14,18,24,36,48,72];0>mxUtils.indexOf(d,this.defaultFontSize)&&(d.push(this.defaultFontSize),d.sort(function(x,z){return x-z}));for(var g=mxUtils.bind(this,function(x){if(null!=b.cellEditor.textarea){document.execCommand("fontSize",!1,"3");for(var z=b.cellEditor.textarea.getElementsByTagName("font"),C=0;C<z.length;C++)if("3"==z[C].getAttribute("size")){z[C].removeAttribute("size");z[C].style.fontSize=x+"px";break}a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTSIZE],
+"values",[x],"cells",[b.cellEditor.getEditingCell()]))}}),m=mxUtils.bind(this,function(x){this.styleChange(f,x,[mxConstants.STYLE_FONTSIZE],[x],null,h,function(){g(x)})}),p=0;p<d.length;p++)m(d[p]);f.addSeparator(h);if(0<this.customFontSizes.length){var k=0;for(p=0;p<this.customFontSizes.length;p++)0>mxUtils.indexOf(d,this.customFontSizes[p])&&(m(this.customFontSizes[p]),k++);0<k&&f.addSeparator(h);f.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFontSizes=[]}),h);f.addSeparator(h)}var u=
+null;this.promptChange(f,mxResources.get("custom")+"...","("+mxResources.get("points")+")",this.defaultFontSize,mxConstants.STYLE_FONTSIZE,h,!0,mxUtils.bind(this,function(x){null!=u&&null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),b.cellEditor.restoreSelection(u));null!=x&&0<x.length&&(this.customFontSizes.push(x),g(x))}),null,function(){u=b.cellEditor.saveSelection();return!1})})));this.put("direction",new Menu(mxUtils.bind(this,function(f,h){f.addItem(mxResources.get("flipH"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPH,
!1)},h);f.addItem(mxResources.get("flipV"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPV,!1)},h);this.addMenuItems(f,["-","rotation"],h)})));this.put("align",new Menu(mxUtils.bind(this,function(f,h){var d=1<this.editorUi.getSelectionState().vertices.length;f.addItem(mxResources.get("leftAlign"),null,function(){b.alignCells(mxConstants.ALIGN_LEFT)},h,null,d);f.addItem(mxResources.get("center"),null,function(){b.alignCells(mxConstants.ALIGN_CENTER)},h,null,d);f.addItem(mxResources.get("rightAlign"),
null,function(){b.alignCells(mxConstants.ALIGN_RIGHT)},h,null,d);f.addSeparator(h);f.addItem(mxResources.get("topAlign"),null,function(){b.alignCells(mxConstants.ALIGN_TOP)},h,null,d);f.addItem(mxResources.get("middle"),null,function(){b.alignCells(mxConstants.ALIGN_MIDDLE)},h,null,d);f.addItem(mxResources.get("bottomAlign"),null,function(){b.alignCells(mxConstants.ALIGN_BOTTOM)},h,null,d);this.addMenuItems(f,["-","snapToGrid"],h)})));this.put("distribute",new Menu(mxUtils.bind(this,function(f,h){f.addItem(mxResources.get("horizontal"),
null,function(){b.distributeCells(!0)},h);f.addItem(mxResources.get("vertical"),null,function(){b.distributeCells(!1)},h);f.addSeparator(h);this.addSubmenu("distributeSpacing",f,h,mxResources.get("spacing"))})));this.put("distributeSpacing",new Menu(mxUtils.bind(this,function(f,h){f.addItem(mxResources.get("horizontal"),null,function(){b.distributeCells(!0,null,!0)},h);f.addItem(mxResources.get("vertical"),null,function(){b.distributeCells(!1,null,!0)},h)})));this.put("line",new Menu(mxUtils.bind(this,
-function(f,h){var d=b.view.getState(b.getSelectionCell());null!=d&&(d=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE),"arrow"!=d&&(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],"geIcon geSprite geSprite-straight",h,!0).setAttribute("title",mxResources.get("straight")),this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],"geIcon geSprite geSprite-orthogonal",
-h,!0).setAttribute("title",mxResources.get("orthogonal")),this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],"geIcon geSprite geSprite-horizontalelbow",h,!0).setAttribute("title",mxResources.get("simple")),this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],"geIcon geSprite geSprite-verticalelbow",
-h,!0).setAttribute("title",mxResources.get("simple")),this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],"geIcon geSprite geSprite-horizontalisometric",h,!0).setAttribute("title",mxResources.get("isometric")),this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],"geIcon geSprite geSprite-verticalisometric",
-h,!0).setAttribute("title",mxResources.get("isometric")),"connector"==d&&this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],"geIcon geSprite geSprite-curved",h,!0).setAttribute("title",mxResources.get("curved")),this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],"geIcon geSprite geSprite-entity",h,!0).setAttribute("title",
-mxResources.get("entityRelation"))),f.addSeparator(h),this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],"geIcon geSprite geSprite-connection",h,null,null,!0).setAttribute("title",mxResources.get("line")),this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],"geIcon geSprite geSprite-linkedge",h,null,null,!0).setAttribute("title",mxResources.get("link")),
-this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["flexArrow",null,null,null],"geIcon geSprite geSprite-arrow",h,null,null,!0).setAttribute("title",mxResources.get("arrow")),this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],"geIcon geSprite geSprite-simplearrow",h,null,null,!0).setAttribute("title",mxResources.get("simpleArrow")))})));this.put("layout",
-new Menu(mxUtils.bind(this,function(f,h){var d=mxUtils.bind(this,function(m,q){this.editorUi.prompt(mxResources.get("spacing"),m,q)}),g=mxUtils.bind(this,function(m){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var q=b.getSelectionCell(),k=null;null==q||0==b.getModel().getChildCount(q)?0==b.getModel().getEdgeCount(q)&&(k=b.findTreeRoots(b.getDefaultParent())):k=b.findTreeRoots(q);null!=k&&0<k.length&&(q=k[0]);null!=q&&this.editorUi.executeLayout(function(){m.execute(b.getDefaultParent(),
-q);b.isSelectionEmpty()||(q=b.getModel().getParent(q),b.getModel().isVertex(q)&&b.updateGroupBounds([q],2*b.gridSize,!0))},!0)}))});f.addItem(mxResources.get("horizontalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_WEST);this.editorUi.executeLayout(function(){var q=b.getSelectionCells();m.execute(b.getDefaultParent(),0==q.length?null:q)},!0)}))}),h);f.addItem(mxResources.get("verticalFlow"),null,
-mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_NORTH);this.editorUi.executeLayout(function(){var q=b.getSelectionCells();m.execute(b.getDefaultParent(),0==q.length?null:q)},!0)}))}),h);f.addSeparator(h);f.addItem(mxResources.get("horizontalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!0);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(q){isNaN(q)||
-(m.levelDistance=q,g(m))}))}),h);f.addItem(mxResources.get("verticalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!1);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(q){isNaN(q)||(m.levelDistance=q,g(m))}))}),h);f.addItem(mxResources.get("radialTree"),null,mxUtils.bind(this,function(){var m=new mxRadialTreeLayout(b);m.levelDistance=80;m.autoRadius=!0;d(m.levelDistance,mxUtils.bind(this,function(q){isNaN(q)||(m.levelDistance=
-q,g(m))}))}),h);f.addSeparator(h);f.addItem(mxResources.get("organic"),null,mxUtils.bind(this,function(){var m=new mxFastOrganicLayout(b);d(m.forceConstant,mxUtils.bind(this,function(q){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){m.forceConstant=q;this.editorUi.executeLayout(function(){var k=b.getSelectionCell();if(null==k||0==b.getModel().getChildCount(k))k=b.getDefaultParent();m.execute(k);b.getModel().isVertex(k)&&b.updateGroupBounds([k],2*b.gridSize,!0)},!0)}))}))}),h);f.addItem(mxResources.get("circle"),
-null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxCircleLayout(b);this.editorUi.executeLayout(function(){var q=b.getSelectionCell();if(null==q||0==b.getModel().getChildCount(q))q=b.getDefaultParent();m.execute(q);b.getModel().isVertex(q)&&b.updateGroupBounds([q],2*b.gridSize,!0)},!0)}))}),h)})));this.put("navigation",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"home - exitGroup enterGroup - expand collapse - collapsible".split(" "),
-h)})));this.put("arrange",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["toFront","toBack","bringForward","sendBackward","-"],h);this.addSubmenu("direction",f,h);this.addMenuItems(f,["turn","-"],h);this.addSubmenu("align",f,h);this.addSubmenu("distribute",f,h);f.addSeparator(h);this.addSubmenu("navigation",f,h);this.addSubmenu("insert",f,h);this.addSubmenu("layout",f,h);this.addMenuItems(f,"- group ungroup removeFromGroup - clearWaypoints autosize".split(" "),h)}))).isEnabled=e;this.put("insert",
-new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["insertLink","insertImage"],h)})));this.put("view",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,(null!=this.editorUi.format?["format"]:[]).concat("outline layers - pageView pageScale - tooltips grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),h))})));this.put("viewPanels",new Menu(mxUtils.bind(this,function(f,h){null!=this.editorUi.format&&this.addMenuItems(f,["format"],h);this.addMenuItems(f,
-["outline","layers"],h)})));this.put("viewZoom",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["smartFit","-"],h);for(var d=[.25,.5,.75,1,1.25,1.5,2,3,4],g=0;g<d.length;g++)(function(m){f.addItem(100*m+"%",null,function(){b.zoomTo(m)},h)})(d[g]);this.addMenuItems(f,"- fitWindow fitPageWidth fitPage fitTwoPages - customZoom".split(" "),h)})));this.put("file",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"new open - save saveAs - import export - pageSetup print".split(" "),
-h)})));this.put("edit",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"undo redo - cut copy paste delete - duplicate - editData editTooltip - editStyle - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));this.put("extras",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["copyConnect","collapseExpand","-","editDiagram"])})));this.put("help",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["help","-","about"])})))};
-Menus.prototype.put=function(a,b){return this.menus[a]=b};Menus.prototype.get=function(a){return this.menus[a]};Menus.prototype.addSubmenu=function(a,b,e,f){var h=this.get(a),d=null;null!=h&&(h=h.isEnabled(),b.showDisabled||h)&&(d=b.addItem(f||mxResources.get(a),null,null,e,null,h),this.addMenu(a,b,d));return d};Menus.prototype.addMenu=function(a,b,e){a=this.get(a);null!=a&&(b.showDisabled||a.isEnabled())&&a.execute(b,e)};
-Menus.prototype.addInsertTableCellItem=function(a,b){var e=this.editorUi.editor.graph,f=e.getSelectionCell(),h=e.getCurrentCellStyle(f);1<e.getSelectionCount()&&(e.isTableCell(f)&&(f=e.model.getParent(f)),e.isTableRow(f)&&(f=e.model.getParent(f)));var d=e.isTable(f)||e.isTableRow(f)||e.isTableCell(f),g=e.isStack(f)||e.isStackChild(f),m=d,q=d;g&&(h=e.isStack(f)?h:e.getCellStyle(e.model.getParent(f)),q="0"==h.horizontalStack,m=!q);null!=b||!d&&!g?this.addInsertTableItem(a,mxUtils.bind(this,function(k,
-u,w,z,C){u=C||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)?e.createCrossFunctionalSwimlane(u,w,null,null,z||mxEvent.isShiftDown(k)?"Cross-Functional Flowchart":null):e.createTable(u,w,null,null,z||mxEvent.isShiftDown(k)?"Table":null);k=mxEvent.isAltDown(k)?e.getFreeInsertPoint():e.getCenterInsertPoint(e.getBoundingBoxFromGeometry([u],!0));w=null;e.getModel().beginUpdate();try{w=e.importCells([u],k.x,k.y),e.fireEvent(new mxEventObject("cellsInserted","cells",e.model.getDescendants(w[0])))}finally{e.getModel().endUpdate()}null!=
-w&&0<w.length&&(e.scrollCellToVisible(w[0]),e.setSelectionCells(w))}),b):(m&&(b=a.addItem(mxResources.get("insertColumnBefore"),null,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableColumn(f,!0)}catch(k){this.editorUi.handleError(k)}}),null,"geIcon geSprite geSprite-insertcolumnbefore"),b.setAttribute("title",mxResources.get("insertColumnBefore")),b=a.addItem(mxResources.get("insertColumnAfter"),null,mxUtils.bind(this,function(){try{g?e.insertLane(f,!1):e.insertTableColumn(f,!1)}catch(k){this.editorUi.handleError(k)}}),
-null,"geIcon geSprite geSprite-insertcolumnafter"),b.setAttribute("title",mxResources.get("insertColumnAfter")),b=a.addItem(mxResources.get("deleteColumn"),null,mxUtils.bind(this,function(){if(null!=f)try{g?e.deleteLane(f):e.deleteTableColumn(f)}catch(k){this.editorUi.handleError(k)}}),null,"geIcon geSprite geSprite-deletecolumn"),b.setAttribute("title",mxResources.get("deleteColumn"))),q&&(b=a.addItem(mxResources.get("insertRowBefore"),null,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableRow(f,
-!0)}catch(k){this.editorUi.handleError(k)}}),null,"geIcon geSprite geSprite-insertrowbefore"),b.setAttribute("title",mxResources.get("insertRowBefore")),b=a.addItem(mxResources.get("insertRowAfter"),null,mxUtils.bind(this,function(){try{g?e.insertLane(f,!1):e.insertTableRow(f,!1)}catch(k){this.editorUi.handleError(k)}}),null,"geIcon geSprite geSprite-insertrowafter"),b.setAttribute("title",mxResources.get("insertRowAfter")),b=a.addItem(mxResources.get("deleteRow"),null,mxUtils.bind(this,function(){try{g?
-e.deleteLane(f):e.deleteTableRow(f)}catch(k){this.editorUi.handleError(k)}}),null,"geIcon geSprite geSprite-deleterow"),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,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 T=G.insertRow(L),K=0;K<G.rows[0].cells.length;K++)T.insertCell(-1);for(L=0;L<G.rows.length;L++)for(T=G.rows[L],K=T.cells.length;K<D;K++)T.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");
+function(f,h){var d=b.view.getState(b.getSelectionCell());null!=d&&(d=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE),"arrow"!=d&&(Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],null,h,!0,Format.straightImage.src)).setAttribute("title",mxResources.get("straight")),Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",
+null,null],null,h,!0,Format.orthogonalImage.src)).setAttribute("title",mxResources.get("orthogonal")),Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],null,h,!0,Format.horizontalElbowImage.src)).setAttribute("title",mxResources.get("simple")),Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,
+mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],null,h,!0,Format.verticalElbowImage.src)).setAttribute("title",mxResources.get("simple")),Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],null,h,!0,Format.horizontalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,
+mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,h,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),"connector"==d&&Format.processMenuIcon(this.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,h,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),Format.processMenuIcon(this.edgeStyleChange(f,
+"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,h,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))),f.addSeparator(h),Format.processMenuIcon(this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],null,h,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line")),Format.processMenuIcon(this.styleChange(f,
+"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],null,h,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link")),Format.processMenuIcon(this.styleChange(f,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["flexArrow",null,null,null],null,h,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow")),Format.processMenuIcon(this.styleChange(f,
+"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],null,h,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow")))})));this.put("layout",new Menu(mxUtils.bind(this,function(f,h){var d=mxUtils.bind(this,function(m,p){this.editorUi.prompt(mxResources.get("spacing"),m,p)}),g=mxUtils.bind(this,function(m){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var p=b.getSelectionCell(),k=null;null==
+p||0==b.getModel().getChildCount(p)?0==b.getModel().getEdgeCount(p)&&(k=b.findTreeRoots(b.getDefaultParent())):k=b.findTreeRoots(p);null!=k&&0<k.length&&(p=k[0]);null!=p&&this.editorUi.executeLayout(function(){m.execute(b.getDefaultParent(),p);b.isSelectionEmpty()||(p=b.getModel().getParent(p),b.getModel().isVertex(p)&&b.updateGroupBounds([p],2*b.gridSize,!0))},!0)}))});f.addItem(mxResources.get("horizontalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=
+new mxHierarchicalLayout(b,mxConstants.DIRECTION_WEST);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),h);f.addItem(mxResources.get("verticalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_NORTH);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),
+h);f.addSeparator(h);f.addItem(mxResources.get("horizontalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!0);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,g(m))}))}),h);f.addItem(mxResources.get("verticalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!1);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=
+p,g(m))}))}),h);f.addItem(mxResources.get("radialTree"),null,mxUtils.bind(this,function(){var m=new mxRadialTreeLayout(b);m.levelDistance=80;m.autoRadius=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,g(m))}))}),h);f.addSeparator(h);f.addItem(mxResources.get("organic"),null,mxUtils.bind(this,function(){var m=new mxFastOrganicLayout(b);d(m.forceConstant,mxUtils.bind(this,function(p){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){m.forceConstant=p;this.editorUi.executeLayout(function(){var k=
+b.getSelectionCell();if(null==k||0==b.getModel().getChildCount(k))k=b.getDefaultParent();m.execute(k);b.getModel().isVertex(k)&&b.updateGroupBounds([k],2*b.gridSize,!0)},!0)}))}))}),h);f.addItem(mxResources.get("circle"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxCircleLayout(b);this.editorUi.executeLayout(function(){var p=b.getSelectionCell();if(null==p||0==b.getModel().getChildCount(p))p=b.getDefaultParent();m.execute(p);b.getModel().isVertex(p)&&
+b.updateGroupBounds([p],2*b.gridSize,!0)},!0)}))}),h)})));this.put("navigation",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"home - exitGroup enterGroup - expand collapse - collapsible".split(" "),h)})));this.put("arrange",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["toFront","toBack","bringForward","sendBackward","-"],h);this.addSubmenu("direction",f,h);this.addMenuItems(f,["turn","-"],h);this.addSubmenu("align",f,h);this.addSubmenu("distribute",f,h);f.addSeparator(h);
+this.addSubmenu("navigation",f,h);this.addSubmenu("insert",f,h);this.addSubmenu("layout",f,h);this.addMenuItems(f,"- group ungroup removeFromGroup - clearWaypoints autosize".split(" "),h)}))).isEnabled=e;this.put("insert",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["insertLink","insertImage"],h)})));this.put("view",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,(null!=this.editorUi.format?["format"]:[]).concat("outline layers - pageView pageScale - tooltips grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),
+h))})));this.put("viewPanels",new Menu(mxUtils.bind(this,function(f,h){null!=this.editorUi.format&&this.addMenuItems(f,["format"],h);this.addMenuItems(f,["outline","layers"],h)})));this.put("viewZoom",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["smartFit","-"],h);for(var d=[.25,.5,.75,1,1.25,1.5,2,3,4],g=0;g<d.length;g++)(function(m){f.addItem(100*m+"%",null,function(){b.zoomTo(m)},h)})(d[g]);this.addMenuItems(f,"- fitWindow fitPageWidth fitPage fitTwoPages - customZoom".split(" "),
+h)})));this.put("file",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"new open - save saveAs - import export - pageSetup print".split(" "),h)})));this.put("edit",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,"undo redo - cut copy paste delete - duplicate - editData editTooltip - editStyle - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));this.put("extras",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,
+["copyConnect","collapseExpand","-","editDiagram"])})));this.put("help",new Menu(mxUtils.bind(this,function(f,h){this.addMenuItems(f,["help","-","about"])})))};Menus.prototype.put=function(a,b){return this.menus[a]=b};Menus.prototype.get=function(a){return this.menus[a]};Menus.prototype.addSubmenu=function(a,b,e,f){var h=this.get(a),d=null;null!=h&&(h=h.isEnabled(),b.showDisabled||h)&&(d=b.addItem(f||mxResources.get(a),null,null,e,null,h),this.addMenu(a,b,d));return d};
+Menus.prototype.addMenu=function(a,b,e){a=this.get(a);null!=a&&(b.showDisabled||a.isEnabled())&&a.execute(b,e)};
+Menus.prototype.addInsertTableCellItem=function(a,b){var e=this.editorUi.editor.graph,f=e.getSelectionCell(),h=e.getCurrentCellStyle(f);1<e.getSelectionCount()&&(e.isTableCell(f)&&(f=e.model.getParent(f)),e.isTableRow(f)&&(f=e.model.getParent(f)));var d=e.isTable(f)||e.isTableRow(f)||e.isTableCell(f),g=e.isStack(f)||e.isStackChild(f),m=d,p=d;g&&(h=e.isStack(f)?h:e.getCellStyle(e.model.getParent(f)),p="0"==h.horizontalStack,m=!p);null!=b||!d&&!g?this.addInsertTableItem(a,mxUtils.bind(this,function(k,
+u,x,z,C){u=C||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)?e.createCrossFunctionalSwimlane(u,x,null,null,z||mxEvent.isShiftDown(k)?"Cross-Functional Flowchart":null):e.createTable(u,x,null,null,z||mxEvent.isShiftDown(k)?"Table":null);k=mxEvent.isAltDown(k)?e.getFreeInsertPoint():e.getCenterInsertPoint(e.getBoundingBoxFromGeometry([u],!0));x=null;e.getModel().beginUpdate();try{x=e.importCells([u],k.x,k.y),e.fireEvent(new mxEventObject("cellsInserted","cells",e.model.getDescendants(x[0])))}finally{e.getModel().endUpdate()}null!=
+x&&0<x.length&&(e.scrollCellToVisible(x[0]),e.setSelectionCells(x))}),b):(m&&(b=a.addItem(mxResources.get("insertColumnBefore"),Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!0):e.insertTableColumn(f,!0)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertColumnBefore")),b=a.addItem(mxResources.get("insertColumnAfter"),Editor.addColumnRightImage,mxUtils.bind(this,function(){try{g?e.insertLane(f,!1):e.insertTableColumn(f,!1)}catch(k){this.editorUi.handleError(k)}})),
+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"))),p&&(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")),p=this.editorUi.getSelectionState(),null!=p.mergeCell?this.addMenuItem(a,"mergeCells"):(1<p.style.colspan||1<p.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=x,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 T=G.insertRow(L),K=0;K<G.rows[0].cells.length;K++)T.insertCell(-1);for(L=0;L<G.rows.length;L++)for(T=G.rows[L],K=T.cells.length;K<D;K++)T.insertCell(-1);z.innerHTML=m.cellIndex+1+"x"+(g.sectionRowIndex+
+1);for(G=0;G<x.rows.length;G++)for(I=x.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 T=0;T<E;T++){I.push("<tr>");for(var K=0;K<D;K++)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 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};
-Menus.prototype.styleChange=function(a,b,e,f,h,d,g,m,q){var k=this.createStyleChangeFunction(e,f);a=a.addItem(b,null,mxUtils.bind(this,function(){var u=this.editorUi.editor.graph;null!=g&&u.cellEditor.isContentEditing()?g():k(m)}),d,h);q&&this.showIconOnly(a);return a};
+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 p=document.createElement("input");p.setAttribute("id","geTitleOption");p.setAttribute("type","checkbox");p.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(p,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(p),a.firstChild.appendChild(e),mxUtils.br(a.firstChild),a.firstChild.appendChild(k),a.firstChild.appendChild(u),mxUtils.br(a.firstChild));var x=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 I=D.insertRow(G),L=0;L<E;L++)I.insertCell(-1);return D}(5,5);a.firstChild.appendChild(x);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(x,null,null,mxUtils.bind(this,function(C){var E=h(C);null!=m&&null!=g&&E&&(b(C,g.sectionRowIndex+
+1,m.cellIndex+1,p.checked,k.checked),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0))}));mxEvent.addListener(x,"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 p=this.editorUi.editor.graph;p.stopEditing(!1);p.getModel().beginUpdate();try{for(var k=p.getSelectionCells(),u=[],x=0;x<k.length;x++){var z=k[x];if(p.getModel().isEdge(z)){if(g){var C=p.getCellGeometry(z);null!=C&&(C=C.clone(),C.points=null,p.getModel().setGeometry(z,C))}for(var E=0;E<e.length;E++)p.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{p.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};
+Menus.prototype.styleChange=function(a,b,e,f,h,d,g,m,p,k){var u=this.createStyleChangeFunction(e,f);a=a.addItem(b,k,mxUtils.bind(this,function(){var x=this.editorUi.editor.graph;null!=g&&x.cellEditor.isContentEditing()?g():u(m)}),d,h);p&&this.showIconOnly(a);return a};
Menus.prototype.createStyleChangeFunction=function(a,b){return mxUtils.bind(this,function(e){var f=this.editorUi.editor.graph;f.stopEditing(!1);f.getModel().beginUpdate();try{for(var h=f.getEditableCells(f.getSelectionCells()),d=!1,g=0;g<a.length;g++)if(f.setCellStyles(a[g],b[g],h),a[g]==mxConstants.STYLE_ALIGN&&f.updateLabelElements(h,function(m){m.removeAttribute("align");m.style.textAlign=null}),a[g]==mxConstants.STYLE_FONTFAMILY||"fontSource"==a[g])d=!0;if(d)for(d=0;d<h.length;d++)0==f.model.getChildCount(h[d])&&
f.autoSizeCell(h[d],!1);null!=e&&e();this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",a,"values",b,"cells",h))}finally{f.getModel().endUpdate()}})};
-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){var g=this.editorUi;g.tryAndHandle(mxUtils.bind(this,function(){var m=g.editor.graph,q=260+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));if(null!=b&&m.cellEditor.isContentEditing()){var k=m.cellEditor.saveSelection(),u=new ColorDialog(this.editorUi,e||m.shapeForegroundColor,mxUtils.bind(this,function(z){m.cellEditor.restoreSelection(k);document.execCommand(b,!1,z!=mxConstants.NONE?
-z:"transparent");var C={forecolor:mxConstants.STYLE_FONTCOLOR,backcolor:mxConstants.STYLE_LABEL_BACKGROUNDCOLOR}[b];null!=C&&g.fireEvent(new mxEventObject("styleChanged","keys",[C],"values",[z],"cells",[m.cellEditor.getEditingCell()]))}),function(){m.cellEditor.restoreSelection(k)});this.editorUi.showDialog(u.container,230,q,!0,!0);u.init()}else{u=m.getView().getState(m.getSelectionCell());var w=mxConstants.NONE;null!=u&&(w=u.style[a]||w);null!=f?(w=/(^#?[a-zA-Z0-9]*$)/.test(w)?w:f,this.editorUi.pickColor(w,
-ColorDialog.createApplyFunction(this.editorUi,a),f,h,d)):(null==this.colorDialog&&(this.colorDialog=new ColorDialog(this.editorUi)),this.colorDialog.currentColorKey=a,w==mxConstants.NONE?(w=m.shapeBackgroundColor.substring(1),this.colorDialog.picker.fromString(w),this.colorDialog.colorInput.value=mxConstants.NONE):this.colorDialog.picker.fromString(mxUtils.rgba2hex(w)),this.editorUi.showDialog(this.colorDialog.container,230,q,!0,!0),this.colorDialog.init())}}))};
+Menus.prototype.promptChange=function(a,b,e,f,h,d,g,m,p,k){return a.addItem(b,null,mxUtils.bind(this,function(){var u=this.editorUi.editor.graph,x=f,z=u.getView().getState(u.getSelectionCell());null!=z&&(x=z.style[h]||x);var C=null!=k?k():!0;x=new FilenameDialog(this.editorUi,x,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(x.container,300,80,!0,!0);x.init()}),d,p,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 p=g.getView().getState(g.getSelectionCell());m=mxConstants.NONE;null!=p&&(m=p.style[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.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(p){this.editorUi.handleError(p)}}),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)};
Menus.prototype.createPopupMenu=function(a,b,e){a.smartSeparators=!0;a.hideShortcuts=!0;this.addPopupMenuItems(a,b,e)};Menus.prototype.addPopupMenuItems=function(a,b,e){this.isShowHistoryItems()&&this.addPopupMenuHistoryItems(a,b,e);this.addPopupMenuEditItems(a,b,e);this.isShowStyleItems()&&this.addPopupMenuStyleItems(a,b,e);this.isShowArrangeItems()&&this.addPopupMenuArrangeItems(a,b,e);this.addPopupMenuCellItems(a,b,e);this.addPopupMenuSelectionItems(a,b,e)};Menus.prototype.isShowHistoryItems=function(){return!0};
Menus.prototype.addPopupMenuHistoryItems=function(a,b,e){this.editorUi.editor.graph.isSelectionEmpty()&&this.addMenuItems(a,["undo","redo"],null,e)};Menus.prototype.addPopupDeleteItem=function(a,b,e){a=this.addMenuItem(a,"delete");null!=a&&null!=a.firstChild&&null!=a.firstChild.nextSibling&&(a.firstChild.nextSibling.style.color="red",b=this.editorUi.editor.graph,1<b.getSelectionCount()&&(a.firstChild.nextSibling.innerHTML=mxUtils.htmlEntities(mxResources.get("delete")+" ("+b.getSelectionCount()+")")))};
@@ -3687,162 +3708,155 @@ Menubar.prototype.addMenu=function(a,b,e,f){var h=document.createElement("a");h.
Menubar.prototype.addMenuHandler=function(a,b,e){if(null!=b){var f=!0,h=mxUtils.bind(this,function(d){null!=e&&e(d);if(!mxEvent.isConsumed(d)&&f&&(null==a.enabled||a.enabled)){this.editorUi.editor.graph.popupMenuHandler.hideMenu();var g=new mxPopupMenu(b);g.div.className+=" geMenubarMenu";g.smartSeparators=!0;g.showDisabled=!0;g.autoExpand=!0;g.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(g,arguments);this.editorUi.resetCurrentMenu();g.destroy()});this.editorUi.menus.autoPopup||
null==this.editorUi.currentMenu||this.editorUi.hideCurrentMenu();var m=mxUtils.getOffset(a);g.popup(m.x,m.y+a.offsetHeight,null,d);this.editorUi.setCurrentMenu(g,a)}mxEvent.consume(d)});mxEvent.addListener(a,"mousemove",mxUtils.bind(this,function(d){this.editorUi.menus.autoPopup&&null!=this.editorUi.currentMenu&&this.editorUi.currentMenuElt!=a&&(this.editorUi.hideCurrentMenu(),h(d))}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(d){!this.editorUi.menus.autoPopup&&
null!=this.editorUi.currentMenu&&this.editorUi.currentMenuElt!=a&&mxEvent.isMouseEvent(d)&&this.editorUi.hideCurrentMenu();f=null==this.editorUi.currentMenu;d.preventDefault()}));mxEvent.addListener(a,"click",mxUtils.bind(this,function(d){h(d);f=!0}))}};Menubar.prototype.destroy=function(){};function Menu(a,b){mxEventSource.call(this);this.funct=a;this.enabled=null!=b?b:!0}mxUtils.extend(Menu,mxEventSource);Menu.prototype.isEnabled=function(){return this.enabled};
-Menu.prototype.setEnabled=function(a){this.enabled!=a&&(this.enabled=a,this.fireEvent(new mxEventObject("stateChanged")))};Menu.prototype.execute=function(a,b){this.funct(a,b)};EditorUi.prototype.createMenus=function(){return new Menus(this)};function Toolbar(a,b){this.editorUi=a;this.container=b;this.staticElements=[];this.init();this.gestureHandler=mxUtils.bind(this,function(e){null!=this.editorUi.currentMenu&&mxEvent.getSource(e)!=this.editorUi.currentMenu.div&&this.hideMenu()});mxEvent.addGestureListeners(document,this.gestureHandler)}
-Toolbar.prototype.dropDownImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQANAIABAHt7e////yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCREM1NkJFMjE0NEMxMUU1ODk1Q0M5MjQ0MTA4QjNDMSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCREM1NkJFMzE0NEMxMUU1ODk1Q0M5MjQ0MTA4QjNDMSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkQzOUMzMjZCMTQ0QjExRTU4OTVDQzkyNDQxMDhCM0MxIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkQzOUMzMjZDMTQ0QjExRTU4OTVDQzkyNDQxMDhCM0MxIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAQAsAAAAAA0ADQAAAhGMj6nL3QAjVHIu6azbvPtWAAA7":IMAGE_PATH+
-"/dropdown.gif";Toolbar.prototype.selectedBackground="#d0d0d0";Toolbar.prototype.unselectedBackground="none";Toolbar.prototype.staticElements=null;
-Toolbar.prototype.init=function(){var a=screen.width;a-=740<screen.height?56:0;if(700<=a){var b=this.addMenu("",mxResources.get("view")+" ("+mxResources.get("panTooltip")+")",!0,"viewPanels",null,!0);this.addDropDownArrow(b,"geSprite-formatpanel",38,50,-4,-3,36,-8);this.addSeparator()}var e=this.addMenu("",mxResources.get("zoom")+" (Alt+Mousewheel)",!0,"viewZoom",null,!0);e.showDisabled=!0;e.style.whiteSpace="nowrap";e.style.position="relative";e.style.overflow="hidden";e.style.width=EditorUi.compactUi?
-"50px":"36px";420<=a&&(this.addSeparator(),b=this.addItems(["zoomIn","zoomOut"]),b[0].setAttribute("title",mxResources.get("zoomIn")+" ("+this.editorUi.actions.get("zoomIn").shortcut+")"),b[1].setAttribute("title",mxResources.get("zoomOut")+" ("+this.editorUi.actions.get("zoomOut").shortcut+")"));this.updateZoom=mxUtils.bind(this,function(f,h,d){e.innerHTML=Math.round(100*this.editorUi.editor.graph.view.scale*(null!=d?d:1))+"%";this.appendDropDownImageHtml(e);EditorUi.compactUi&&(e.getElementsByTagName("img")[0].style.right=
-"1px",e.getElementsByTagName("img")[0].style.top="5px")});this.editorUi.editor.graph.view.addListener(mxEvent.EVENT_SCALE,this.updateZoom);this.editorUi.editor.addListener("resetGraphView",this.updateZoom);this.editorUi.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(f,h){this.updateZoom(f,h,h.getProperty("factor"))}));b=this.addItems(["-","undo","redo"]);b[1].setAttribute("title",mxResources.get("undo")+" ("+this.editorUi.actions.get("undo").shortcut+")");b[2].setAttribute("title",
-mxResources.get("redo")+" ("+this.editorUi.actions.get("redo").shortcut+")");320<=a&&(b=this.addItems(["-","delete"]),b[1].setAttribute("title",mxResources.get("delete")+" ("+this.editorUi.actions.get("delete").shortcut+")"));550<=a&&this.addItems(["-","toFront","toBack"]);740<=a&&(this.addItems(["-","fillColor"]),780<=a&&(this.addItems(["strokeColor"]),820<=a&&this.addItems(["shadow"])));400<=a&&(this.addSeparator(),440<=a&&(this.edgeShapeMenu=this.addMenuFunction("",mxResources.get("connection"),
-!1,mxUtils.bind(this,function(f){this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],[null,null],"geIcon geSprite geSprite-connection",null,!0).setAttribute("title",mxResources.get("line"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],["link",null],"geIcon geSprite geSprite-linkedge",null,!0).setAttribute("title",mxResources.get("link"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],["flexArrow",null],"geIcon geSprite geSprite-arrow",
-null,!0).setAttribute("title",mxResources.get("arrow"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],["arrow",null],"geIcon geSprite geSprite-simplearrow",null,!0).setAttribute("title",mxResources.get("simpleArrow"))})),this.addDropDownArrow(this.edgeShapeMenu,"geSprite-connection",44,50,0,0,22,-4)),this.edgeStyleMenu=this.addMenuFunction("geSprite-orthogonal",mxResources.get("waypoints"),!1,mxUtils.bind(this,function(f){this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,
-mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],"geIcon geSprite geSprite-straight",null,!0).setAttribute("title",mxResources.get("straight"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],"geIcon geSprite geSprite-orthogonal",null,!0).setAttribute("title",mxResources.get("orthogonal"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,
-mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],"geIcon geSprite geSprite-horizontalelbow",null,!0).setAttribute("title",mxResources.get("simple"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],"geIcon geSprite geSprite-verticalelbow",null,!0).setAttribute("title",mxResources.get("simple"));this.editorUi.menus.edgeStyleChange(f,
-"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],"geIcon geSprite geSprite-horizontalisometric",null,!0).setAttribute("title",mxResources.get("isometric"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],"geIcon geSprite geSprite-verticalisometric",null,!0).setAttribute("title",
-mxResources.get("isometric"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],"geIcon geSprite geSprite-curved",null,!0).setAttribute("title",mxResources.get("curved"));this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],"geIcon geSprite geSprite-entity",null,!0).setAttribute("title",mxResources.get("entityRelation"))})),
-this.addDropDownArrow(this.edgeStyleMenu,"geSprite-orthogonal",44,50,0,0,22,-4));this.addSeparator();a=this.addMenu("",mxResources.get("insert")+" ("+mxResources.get("doubleClickTooltip")+")",!0,"insert",null,!0);this.addDropDownArrow(a,"geSprite-plus",38,48,-4,-3,36,-8);this.addSeparator();this.addTableDropDown()};
-Toolbar.prototype.appendDropDownImageHtml=function(a){var b=document.createElement("img");b.setAttribute("border","0");b.setAttribute("valign","middle");b.setAttribute("src",Toolbar.prototype.dropDownImage);a.appendChild(b);b.style.position="absolute";b.style.right="4px";b.style.top=(EditorUi.compactUi?6:8)+"px"};
-Toolbar.prototype.addTableDropDown=function(){var a=this.addMenuFunction("geIcon geSprite geSprite-table",mxResources.get("table"),!1,mxUtils.bind(this,function(e){this.editorUi.menus.addInsertTableCellItem(e)}));a.style.position="relative";a.style.whiteSpace="nowrap";a.style.overflow="hidden";a.style.width="30px";a.innerHTML='<div class="geSprite geSprite-table"></div>';this.appendDropDownImageHtml(a);a.getElementsByTagName("div")[0].style.marginLeft="-2px";EditorUi.compactUi&&(a.getElementsByTagName("img")[0].style.left=
-"22px",a.getElementsByTagName("img")[0].style.top="5px");var b=this.editorUi.menus.get("insert");null!=b&&"function"===typeof a.setEnabled&&b.addListener("stateChanged",function(){a.setEnabled(b.enabled)});return a};
-Toolbar.prototype.addDropDownArrow=function(a,b,e,f,h,d,g,m){h=EditorUi.compactUi?h:m;a.style.whiteSpace="nowrap";a.style.overflow="hidden";a.style.position="relative";a.style.width=f-(null!=g?g:32)+"px";a.innerHTML='<div class="geSprite '+b+'"></div>';this.appendDropDownImageHtml(a);b=a.getElementsByTagName("div")[0];b.style.marginLeft=h+"px";b.style.marginTop=d+"px";EditorUi.compactUi&&(a.getElementsByTagName("img")[0].style.left="24px",a.getElementsByTagName("img")[0].style.top="5px",a.style.width=
-e-10+"px")};Toolbar.prototype.setFontName=function(a){if(null!=this.fontMenu){this.fontMenu.innerText="";var b=document.createElement("div");b.style.display="inline-block";b.style.overflow="hidden";b.style.textOverflow="ellipsis";b.style.maxWidth="66px";mxUtils.write(b,a);this.fontMenu.appendChild(b);this.appendDropDownImageHtml(this.fontMenu)}};
+Menu.prototype.setEnabled=function(a){this.enabled!=a&&(this.enabled=a,this.fireEvent(new mxEventObject("stateChanged")))};Menu.prototype.execute=function(a,b){this.funct(a,b)};EditorUi.prototype.createMenus=function(){return new Menus(this)};function Toolbar(a,b){this.editorUi=a;this.container=b;this.staticElements=[];this.init();this.gestureHandler=mxUtils.bind(this,function(e){null!=this.editorUi.currentMenu&&mxEvent.getSource(e)!=this.editorUi.currentMenu.div&&this.hideMenu()});mxEvent.addGestureListeners(document,this.gestureHandler)}Toolbar.prototype.selectedBackground="#d0d0d0";Toolbar.prototype.unselectedBackground="none";Toolbar.prototype.staticElements=null;
+Toolbar.prototype.init=function(){var a=screen.width;a-=740<screen.height?56:0;if(700<=a){var b=this.addMenu("",mxResources.get("view")+" ("+mxResources.get("panTooltip")+")",!0,"viewPanels",null,!0);this.addDropDownArrow(b,Editor.dockRightImage,38);this.addSeparator()}var e=this.addMenu("",mxResources.get("zoom")+" (Alt+Mousewheel)",!0,"viewZoom",null,!0);e.showDisabled=!0;e.style.whiteSpace="nowrap";e.style.position="relative";e.style.overflow="hidden";e.style.width="54px";420<=a&&(this.addSeparator(),
+b=this.addItems(["zoomIn","zoomOut"],null,null,[Editor.zoomInImage,Editor.zoomOutImage]),b[0].setAttribute("title",mxResources.get("zoomIn")+" ("+this.editorUi.actions.get("zoomIn").shortcut+")"),b[1].setAttribute("title",mxResources.get("zoomOut")+" ("+this.editorUi.actions.get("zoomOut").shortcut+")"));this.updateZoom=mxUtils.bind(this,function(f,h,d){e.innerHTML=Math.round(100*this.editorUi.editor.graph.view.scale*(null!=d?d:1))+"%";this.appendDropDownImageHtml(e)});this.editorUi.editor.graph.view.addListener(mxEvent.EVENT_SCALE,
+this.updateZoom);this.editorUi.editor.addListener("resetGraphView",this.updateZoom);this.editorUi.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(f,h){this.updateZoom(f,h,h.getProperty("factor"))}));b=this.addItems(["-","undo","redo"],null,null,[null,Editor.undoImage,Editor.redoImage]);b[1].setAttribute("title",mxResources.get("undo")+" ("+this.editorUi.actions.get("undo").shortcut+")");b[2].setAttribute("title",mxResources.get("redo")+" ("+this.editorUi.actions.get("redo").shortcut+
+")");320<=a&&(b=this.addItems(["-","delete"],null,null,[null,Editor.trashImage]),b[1].setAttribute("title",mxResources.get("delete")+" ("+this.editorUi.actions.get("delete").shortcut+")"));550<=a&&this.addItems(["-","toFront","toBack"],null,null,[null,Editor.toFrontImage,Editor.toBackImage]);740<=a&&(this.addItems(["-","fillColor"],null,null,[null,Editor.fillColorImage]),780<=a&&(this.addItems(["strokeColor"],null,null,[Editor.strokeColorImage]),820<=a&&this.addItems(["shadow"],null,null,[Editor.shadowImage])));
+400<=a&&(this.addSeparator(),440<=a&&(this.edgeShapeMenu=this.addMenuFunction(null,mxResources.get("connection"),!1,mxUtils.bind(this,function(f){Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],[null,null],null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],["link",null],null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",
+mxResources.get("link"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],["flexArrow",null],null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_SHAPE,"width"],["arrow",null],null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow"))})),this.addDropDownArrow(this.edgeShapeMenu,null,38)),this.edgeStyleMenu=
+this.addMenuFunction("",mxResources.get("waypoints"),!1,mxUtils.bind(this,function(f){Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[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(f,"",[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(f,"",[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("simple"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[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("simple"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[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(f,
+"",[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"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,null,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved"));
+Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(f,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,null,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))})),this.addDropDownArrow(this.edgeStyleMenu,null,38));this.addSeparator();a=this.addMenu("",mxResources.get("insert")+" ("+mxResources.get("doubleClickTooltip")+")",!0,"insert",null,!0);this.addDropDownArrow(a,Editor.plusImage,
+38);this.addSeparator();this.addTableDropDown()};Toolbar.prototype.appendDropDownImageHtml=function(a){a.style.backgroundImage="url("+Editor.arrowDownImage+")";a.style.backgroundPosition="right -4px top 50%";a.style.backgroundRepeat="no-repeat"};
+Toolbar.prototype.addTableDropDown=function(){var a=this.addMenuFunction(Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(e){this.editorUi.menus.addInsertTableCellItem(e)}));a.style.position="relative";a.style.whiteSpace="nowrap";a.style.overflow="hidden";a.style.width="36px";this.appendDropDownImageHtml(a);var b=this.editorUi.menus.get("insert");null!=b&&"function"===typeof a.setEnabled&&b.addListener("stateChanged",function(){a.setEnabled(b.enabled)});return a};
+Toolbar.prototype.addDropDownArrow=function(a,b,e){a.style.display="flex";a.style.alignItems="center";a.style.whiteSpace="nowrap";a.style.overflow="hidden";a.style.position="relative";a.style.boxSizing="border-box";a.style.width=e+"px";a.style.opacity="1";a.innerText="";e=document.createElement("div");a.appendChild(e);null!=b&&"data:"==b.substring(0,5)&&(e.className="geToolbarButton geAdaptiveAsset",e.style.backgroundImage="url("+b+")",e.style.backgroundPosition="left center",e.style.backgroundRepeat=
+"no-repeat",e.style.backgroundSize="18px");this.appendDropDownImageHtml(a)};Toolbar.prototype.setFontName=function(a){if(null!=this.fontMenu){this.fontMenu.innerText="";var b=document.createElement("div");b.style.display="inline-block";b.style.overflow="hidden";b.style.textOverflow="ellipsis";b.style.maxWidth="66px";mxUtils.write(b,a);this.fontMenu.appendChild(b);this.appendDropDownImageHtml(this.fontMenu)}};
Toolbar.prototype.setFontSize=function(a){if(null!=this.sizeMenu){this.sizeMenu.innerText="";var b=document.createElement("div");b.style.display="inline-block";b.style.overflow="hidden";b.style.textOverflow="ellipsis";b.style.maxWidth="24px";mxUtils.write(b,a);this.sizeMenu.appendChild(b);this.appendDropDownImageHtml(this.sizeMenu)}};
-Toolbar.prototype.createTextToolbar=function(){var a=this.editorUi,b=a.editor.graph,e=this.addMenu("",mxResources.get("style"),!0,"formatBlock");e.style.position="relative";e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.innerHTML=mxResources.get("style");this.appendDropDownImageHtml(e);EditorUi.compactUi&&(e.style.paddingRight="18px",e.getElementsByTagName("img")[0].style.right="1px",e.getElementsByTagName("img")[0].style.top="5px");this.addSeparator();this.fontMenu=this.addMenu("",mxResources.get("fontFamily"),
-!0,"fontFamily");this.fontMenu.style.position="relative";this.fontMenu.style.whiteSpace="nowrap";this.fontMenu.style.overflow="hidden";this.fontMenu.style.width="68px";this.setFontName(Menus.prototype.defaultFont);EditorUi.compactUi&&(this.fontMenu.style.paddingRight="18px",this.fontMenu.getElementsByTagName("img")[0].style.right="1px",this.fontMenu.getElementsByTagName("img")[0].style.top="5px");this.addSeparator();this.sizeMenu=this.addMenu(Menus.prototype.defaultFontSize,mxResources.get("fontSize"),
-!0,"fontSize");this.sizeMenu.style.position="relative";this.sizeMenu.style.whiteSpace="nowrap";this.sizeMenu.style.overflow="hidden";this.sizeMenu.style.width="24px";this.setFontSize(Menus.prototype.defaultFontSize);EditorUi.compactUi&&(this.sizeMenu.style.paddingRight="18px",this.sizeMenu.getElementsByTagName("img")[0].style.right="1px",this.sizeMenu.getElementsByTagName("img")[0].style.top="5px");e=this.addItems("- undo redo - bold italic underline".split(" "));e[1].setAttribute("title",mxResources.get("undo")+
-" ("+a.actions.get("undo").shortcut+")");e[2].setAttribute("title",mxResources.get("redo")+" ("+a.actions.get("redo").shortcut+")");e[4].setAttribute("title",mxResources.get("bold")+" ("+a.actions.get("bold").shortcut+")");e[5].setAttribute("title",mxResources.get("italic")+" ("+a.actions.get("italic").shortcut+")");e[6].setAttribute("title",mxResources.get("underline")+" ("+a.actions.get("underline").shortcut+")");var f=this.addMenuFunction("",mxResources.get("align"),!1,mxUtils.bind(this,function(d){h=
-d.addItem("",null,mxUtils.bind(this,function(g){b.cellEditor.alignText(mxConstants.ALIGN_LEFT,g);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_LEFT],"cells",[b.cellEditor.getEditingCell()]))}),null,"geIcon geSprite geSprite-left");h.setAttribute("title",mxResources.get("left"));h=d.addItem("",null,mxUtils.bind(this,function(g){b.cellEditor.alignText(mxConstants.ALIGN_CENTER,g);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],
-"values",[mxConstants.ALIGN_CENTER],"cells",[b.cellEditor.getEditingCell()]))}),null,"geIcon geSprite geSprite-center");h.setAttribute("title",mxResources.get("center"));h=d.addItem("",null,mxUtils.bind(this,function(g){b.cellEditor.alignText(mxConstants.ALIGN_RIGHT,g);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],"cells",[b.cellEditor.getEditingCell()]))}),null,"geIcon geSprite geSprite-right");h.setAttribute("title",mxResources.get("right"));
-h=d.addItem("",null,mxUtils.bind(this,function(){document.execCommand("justifyfull",!1,null)}),null,"geIcon geSprite geSprite-justifyfull");h.setAttribute("title",mxResources.get("justifyfull"));h=d.addItem("",null,mxUtils.bind(this,function(){document.execCommand("insertorderedlist",!1,null)}),null,"geIcon geSprite geSprite-orderedlist");h.setAttribute("title",mxResources.get("numberedList"));h=d.addItem("",null,mxUtils.bind(this,function(){document.execCommand("insertunorderedlist",!1,null)}),null,
-"geIcon geSprite geSprite-unorderedlist");h.setAttribute("title",mxResources.get("bulletedList"));h=d.addItem("",null,mxUtils.bind(this,function(){document.execCommand("outdent",!1,null)}),null,"geIcon geSprite geSprite-outdent");h.setAttribute("title",mxResources.get("decreaseIndent"));h=d.addItem("",null,mxUtils.bind(this,function(){document.execCommand("indent",!1,null)}),null,"geIcon geSprite geSprite-indent");h.setAttribute("title",mxResources.get("increaseIndent"))}));f.style.position="relative";
-f.style.whiteSpace="nowrap";f.style.overflow="hidden";f.style.width="30px";f.innerText="";e=document.createElement("div");e.className="geSprite geSprite-left";e.style.marginLeft="-2px";f.appendChild(e);this.appendDropDownImageHtml(f);EditorUi.compactUi&&(f.getElementsByTagName("img")[0].style.left="22px",f.getElementsByTagName("img")[0].style.top="5px");f=this.addMenuFunction("",mxResources.get("format"),!1,mxUtils.bind(this,function(d){h=d.addItem("",null,this.editorUi.actions.get("subscript").funct,
-null,"geIcon geSprite geSprite-subscript");h.setAttribute("title",mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)");h=d.addItem("",null,this.editorUi.actions.get("superscript").funct,null,"geIcon geSprite geSprite-superscript");h.setAttribute("title",mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)");h=d.addItem("",null,this.editorUi.actions.get("fontColor").funct,null,"geIcon geSprite geSprite-fontcolor");h.setAttribute("title",mxResources.get("fontColor"));h=d.addItem("",null,this.editorUi.actions.get("backgroundColor").funct,
-null,"geIcon geSprite geSprite-fontbackground");h.setAttribute("title",mxResources.get("backgroundColor"));h=d.addItem("",null,mxUtils.bind(this,function(){document.execCommand("removeformat",!1,null)}),null,"geIcon geSprite geSprite-removeformat");h.setAttribute("title",mxResources.get("removeFormat"))}));f.style.position="relative";f.style.whiteSpace="nowrap";f.style.overflow="hidden";f.style.width="30px";f.innerText="";e=document.createElement("div");e.className="geSprite geSprite-dots";e.style.marginLeft=
-"-2px";f.appendChild(e);this.appendDropDownImageHtml(f);EditorUi.compactUi&&(f.getElementsByTagName("img")[0].style.left="22px",f.getElementsByTagName("img")[0].style.top="5px");this.addSeparator();this.addButton("geIcon geSprite geSprite-code",mxResources.get("html"),function(){b.cellEditor.toggleViewMode();0<b.cellEditor.textarea.innerHTML.length&&("&nbsp;"!=b.cellEditor.textarea.innerHTML||!b.cellEditor.clearOnChange)&&window.setTimeout(function(){document.execCommand("selectAll",!1,null)})});
-this.addSeparator();f=this.addMenuFunction("",mxResources.get("insert"),!0,mxUtils.bind(this,function(d){d.addItem(mxResources.get("insertLink"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("link").funct()}));d.addItem(mxResources.get("insertImage"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("image").funct()}));d.addItem(mxResources.get("insertHorizontalRule"),null,mxUtils.bind(this,function(){document.execCommand("inserthorizontalrule",!1,null)}))}));f.style.whiteSpace=
-"nowrap";f.style.overflow="hidden";f.style.position="relative";f.style.width="16px";f.innerText="";e=document.createElement("div");e.className="geSprite geSprite-plus";e.style.marginLeft="-4px";e.style.marginTop="-3px";f.appendChild(e);this.appendDropDownImageHtml(f);EditorUi.compactUi&&(f.getElementsByTagName("img")[0].style.left="24px",f.getElementsByTagName("img")[0].style.top="5px",f.style.width="30px");this.addSeparator();var h=this.addMenuFunction("geIcon geSprite geSprite-table",mxResources.get("table"),
-!1,mxUtils.bind(this,function(d){var g=b.getSelectedElement(),m=b.getParentByNames(g,["TD","TH"],b.cellEditor.text2),q=b.getParentByName(g,"TR",b.cellEditor.text2);if(null==q)this.editorUi.menus.addInsertTableItem(d);else{var k=b.getParentByName(q,"TABLE",b.cellEditor.text2);g=d.addItem("",null,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(k,null!=m?m.cellIndex:0))}catch(u){this.editorUi.handleError(u)}}),null,"geIcon geSprite geSprite-insertcolumnbefore");g.setAttribute("title",mxResources.get("insertColumnBefore"));
-g=d.addItem("",null,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(k,null!=m?m.cellIndex+1:-1))}catch(u){this.editorUi.handleError(u)}}),null,"geIcon geSprite geSprite-insertcolumnafter");g.setAttribute("title",mxResources.get("insertColumnAfter"));g=d.addItem("Delete column",null,mxUtils.bind(this,function(){if(null!=m)try{b.deleteColumn(k,m.cellIndex)}catch(u){this.editorUi.handleError(u)}}),null,"geIcon geSprite geSprite-deletecolumn");g.setAttribute("title",mxResources.get("deleteColumn"));
-g=d.addItem("",null,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(k,q.sectionRowIndex))}catch(u){this.editorUi.handleError(u)}}),null,"geIcon geSprite geSprite-insertrowbefore");g.setAttribute("title",mxResources.get("insertRowBefore"));g=d.addItem("",null,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(k,q.sectionRowIndex+1))}catch(u){this.editorUi.handleError(u)}}),null,"geIcon geSprite geSprite-insertrowafter");g.setAttribute("title",mxResources.get("insertRowAfter"));g=d.addItem("",
-null,mxUtils.bind(this,function(){try{b.deleteRow(k,q.sectionRowIndex)}catch(u){this.editorUi.handleError(u)}}),null,"geIcon geSprite geSprite-deleterow");g.setAttribute("title",mxResources.get("deleteRow"));g=d.addItem("",null,mxUtils.bind(this,function(){var u=k.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(w,z,C,E){return"#"+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)+("0"+Number(E).toString(16)).substr(-2)});this.editorUi.pickColor(u,
-function(w){null==w||w==mxConstants.NONE?(k.removeAttribute("border"),k.style.border="",k.style.borderCollapse=""):(k.setAttribute("border","1"),k.style.border="1px solid "+w,k.style.borderCollapse="collapse")})}),null,"geIcon geSprite geSprite-strokecolor");g.setAttribute("title",mxResources.get("borderColor"));g=d.addItem("",null,mxUtils.bind(this,function(){var u=k.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(w,z,C,E){return"#"+("0"+Number(z).toString(16)).substr(-2)+
-("0"+Number(C).toString(16)).substr(-2)+("0"+Number(E).toString(16)).substr(-2)});this.editorUi.pickColor(u,function(w){k.style.backgroundColor=null==w||w==mxConstants.NONE?"":w})}),null,"geIcon geSprite geSprite-fillcolor");g.setAttribute("title",mxResources.get("backgroundColor"));g=d.addItem("",null,mxUtils.bind(this,function(){var u=k.getAttribute("cellPadding")||0;u=new FilenameDialog(this.editorUi,u,mxResources.get("apply"),mxUtils.bind(this,function(w){null!=w&&0<w.length?k.setAttribute("cellPadding",
-w):k.removeAttribute("cellPadding")}),mxResources.get("spacing"));this.editorUi.showDialog(u.container,300,80,!0,!0);u.init()}),null,"geIcon geSprite geSprite-fit");g.setAttribute("title",mxResources.get("spacing"));g=d.addItem("",null,mxUtils.bind(this,function(){k.setAttribute("align","left")}),null,"geIcon geSprite geSprite-left");g.setAttribute("title",mxResources.get("left"));g=d.addItem("",null,mxUtils.bind(this,function(){k.setAttribute("align","center")}),null,"geIcon geSprite geSprite-center");
-g.setAttribute("title",mxResources.get("center"));g=d.addItem("",null,mxUtils.bind(this,function(){k.setAttribute("align","right")}),null,"geIcon geSprite geSprite-right");g.setAttribute("title",mxResources.get("right"))}}));h.style.position="relative";h.style.whiteSpace="nowrap";h.style.overflow="hidden";h.style.width="30px";h.innerText="";e=document.createElement("div");e.className="geSprite geSprite-table";e.style.marginLeft="-2px";h.appendChild(e);this.appendDropDownImageHtml(h);EditorUi.compactUi&&
-(h.getElementsByTagName("img")[0].style.left="22px",h.getElementsByTagName("img")[0].style.top="5px")};Toolbar.prototype.hideMenu=function(){this.editorUi.hideCurrentMenu()};Toolbar.prototype.addMenu=function(a,b,e,f,h,d,g){var m=this.editorUi.menus.get(f),q=this.addMenuFunction(a,b,e,function(){m.funct.apply(m,arguments)},h,d);g||"function"!==typeof q.setEnabled||m.addListener("stateChanged",function(){q.setEnabled(m.enabled)});return q};
-Toolbar.prototype.addMenuFunction=function(a,b,e,f,h,d){return this.addMenuFunctionInContainer(null!=h?h:this.container,a,b,e,f,d)};Toolbar.prototype.addMenuFunctionInContainer=function(a,b,e,f,h,d){b=f?this.createLabel(b):this.createButton(b);this.initElement(b,e);this.addMenuHandler(b,f,h,d);a.appendChild(b);return b};Toolbar.prototype.addSeparator=function(a){a=null!=a?a:this.container;var b=document.createElement("div");b.className="geSeparator";a.appendChild(b);return b};
-Toolbar.prototype.addItems=function(a,b,e,f){for(var h=[],d=0;d<a.length;d++){var g=a[d];"-"==g?h.push(this.addSeparator(b)):h.push(this.addItem(null!=f?f[d]:"geSprite-"+g.toLowerCase(),g,b,e))}return h};
-Toolbar.prototype.addItem=function(a,b,e,f){var h=this.editorUi.actions.get(b),d=null;null!=h&&(b=h.label,null!=h.shortcut&&(b+=" ("+h.shortcut+")"),d=this.addButton(a,b,h.funct,e),f||"function"!==typeof d.setEnabled||(d.setEnabled(h.enabled),h.addListener("stateChanged",function(){d.setEnabled(h.enabled)})));return d};Toolbar.prototype.addButton=function(a,b,e,f){a=this.createButton(a);f=null!=f?f:this.container;this.initElement(a,b);this.addClickHandler(a,e);f.appendChild(a);return a};
-Toolbar.prototype.initElement=function(a,b){null!=b&&a.setAttribute("title",b);this.addEnabledState(a)};Toolbar.prototype.addEnabledState=function(a){var b=a.className;a.setEnabled=function(e){a.enabled=e;a.className=e?b:b+" mxDisabled"};a.setEnabled(!0)};Toolbar.prototype.addClickHandler=function(a,b){null!=b&&(mxEvent.addListener(a,"click",function(e){a.enabled&&b(e);mxEvent.consume(e)}),mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(e){e.preventDefault()})))};
-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"):e.className="geSprite "+a);b.appendChild(e);return b};
+Toolbar.prototype.createTextToolbar=function(){var a=this.editorUi,b=a.editor.graph,e=this.addMenu("",mxResources.get("style"),!0,"formatBlock");e.style.position="relative";e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.innerHTML=mxResources.get("style");e.style.width="46px";this.appendDropDownImageHtml(e);this.addSeparator();this.fontMenu=this.addMenu("",mxResources.get("fontFamily"),!0,"fontFamily");this.fontMenu.style.position="relative";this.fontMenu.style.whiteSpace="nowrap";this.fontMenu.style.overflow=
+"hidden";this.fontMenu.style.width="78px";this.setFontName(Menus.prototype.defaultFont);this.addSeparator();this.sizeMenu=this.addMenu(Menus.prototype.defaultFontSize,mxResources.get("fontSize"),!0,"fontSize");this.sizeMenu.style.position="relative";this.sizeMenu.style.whiteSpace="nowrap";this.sizeMenu.style.overflow="hidden";this.sizeMenu.style.width="34px";this.setFontSize(Menus.prototype.defaultFontSize);e=this.addItems("- undo redo - bold italic underline".split(" "),null,null,[null,Editor.undoImage,
+Editor.redoImage,null,Editor.boldImage,Editor.italicImage,Editor.underlineImage]);e[1].setAttribute("title",mxResources.get("undo")+" ("+a.actions.get("undo").shortcut+")");e[2].setAttribute("title",mxResources.get("redo")+" ("+a.actions.get("redo").shortcut+")");e[4].setAttribute("title",mxResources.get("bold")+" ("+a.actions.get("bold").shortcut+")");e[5].setAttribute("title",mxResources.get("italic")+" ("+a.actions.get("italic").shortcut+")");e[6].setAttribute("title",mxResources.get("underline")+
+" ("+a.actions.get("underline").shortcut+")");e=this.addMenuFunction("",mxResources.get("align"),!1,mxUtils.bind(this,function(h){f=h.addItem("",Editor.alignLeftImage,mxUtils.bind(this,function(d){b.cellEditor.alignText(mxConstants.ALIGN_LEFT,d);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_LEFT],"cells",[b.cellEditor.getEditingCell()]))}));f.setAttribute("title",mxResources.get("left"));f=h.addItem("",Editor.alignCenterImage,mxUtils.bind(this,
+function(d){b.cellEditor.alignText(mxConstants.ALIGN_CENTER,d);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_CENTER],"cells",[b.cellEditor.getEditingCell()]))}));f.setAttribute("title",mxResources.get("center"));f=h.addItem("",Editor.alignRightImage,mxUtils.bind(this,function(d){b.cellEditor.alignText(mxConstants.ALIGN_RIGHT,d);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],
+"cells",[b.cellEditor.getEditingCell()]))}));f.setAttribute("title",mxResources.get("right"));f=h.addItem("",Editor.alignJustifyImage,mxUtils.bind(this,function(){document.execCommand("justifyfull",!1,null)}));f.setAttribute("title",mxResources.get("justifyfull"));f=h.addItem("",Editor.orderedListImage,mxUtils.bind(this,function(){document.execCommand("insertorderedlist",!1,null)}));f.setAttribute("title",mxResources.get("numberedList"));f=h.addItem("",Editor.unorderedListImage,mxUtils.bind(this,
+function(){document.execCommand("insertunorderedlist",!1,null)}));f.setAttribute("title",mxResources.get("bulletedList"));f=h.addItem("",Editor.indentImage,mxUtils.bind(this,function(){document.execCommand("indent",!1,null)}));f.setAttribute("title",mxResources.get("increaseIndent"));f=h.addItem("",Editor.outdentImage,mxUtils.bind(this,function(){document.execCommand("outdent",!1,null)}));f.setAttribute("title",mxResources.get("decreaseIndent"))}));this.addDropDownArrow(e,Editor.alignLeftImage,38);
+e=this.addMenuFunction("",mxResources.get("format"),!1,mxUtils.bind(this,function(h){f=h.addItem("",Editor.subscriptImage,this.editorUi.actions.get("subscript").funct);f.setAttribute("title",mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)");f=h.addItem("",Editor.superscriptImage,this.editorUi.actions.get("superscript").funct);f.setAttribute("title",mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)");f=h.addItem("",Editor.fontColorImage,this.editorUi.actions.get("fontColor").funct);f.setAttribute("title",
+mxResources.get("fontColor"));f=h.addItem("",Editor.backgroundColorImage,this.editorUi.actions.get("backgroundColor").funct);f.setAttribute("title",mxResources.get("backgroundColor"));f=h.addItem("",Editor.removeFormatImage,mxUtils.bind(this,function(){document.execCommand("removeformat",!1,null)}));f.setAttribute("title",mxResources.get("removeFormat"))}));this.addDropDownArrow(e,Editor.textFormatImage,38);this.addSeparator();this.addButton(Editor.codeImage,mxResources.get("html"),function(){b.cellEditor.toggleViewMode();
+0<b.cellEditor.textarea.innerHTML.length&&("&nbsp;"!=b.cellEditor.textarea.innerHTML||!b.cellEditor.clearOnChange)&&window.setTimeout(function(){document.execCommand("selectAll",!1,null)})});this.addSeparator();e=this.addMenuFunction("",mxResources.get("insert"),!0,mxUtils.bind(this,function(h){h.addItem(mxResources.get("insertLink"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("link").funct()}));h.addItem(mxResources.get("insertImage"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("image").funct()}));
+h.addItem(mxResources.get("insertHorizontalRule"),null,mxUtils.bind(this,function(){document.execCommand("inserthorizontalrule",!1,null)}))}));this.addDropDownArrow(e,Editor.plusImage,38);this.addSeparator();var f=this.addMenuFunction(Editor.tableImage,mxResources.get("table"),!1,mxUtils.bind(this,function(h){var d=b.getSelectedElement(),g=b.getParentByNames(d,["TD","TH"],b.cellEditor.text2),m=b.getParentByName(d,"TR",b.cellEditor.text2);if(null==m)this.editorUi.menus.addInsertTableItem(h);else{var p=
+b.getParentByName(m,"TABLE",b.cellEditor.text2);d=h.addItem("",Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(p,null!=g?g.cellIndex:0))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertColumnBefore"));d=h.addItem("",Editor.addColumnRightImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(p,null!=g?g.cellIndex+1:-1))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertColumnAfter"));
+d=h.addItem("Delete column",Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=g)try{b.deleteColumn(p,g.cellIndex)}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("deleteColumn"));d=h.addItem("",Editor.addRowAboveImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(p,m.sectionRowIndex))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertRowBefore"));d=h.addItem("",Editor.addRowBelowImage,mxUtils.bind(this,
+function(){try{b.selectNode(b.insertRow(p,m.sectionRowIndex+1))}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("insertRowAfter"));d=h.addItem("",Editor.removeRowImage,mxUtils.bind(this,function(){try{b.deleteRow(p,m.sectionRowIndex)}catch(k){this.editorUi.handleError(k)}}));d.setAttribute("title",mxResources.get("deleteRow"));d=h.addItem("",Editor.strokeColorImage,mxUtils.bind(this,function(){var k=p.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,
+function(u,x,z,C){return"#"+("0"+Number(x).toString(16)).substr(-2)+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)});this.editorUi.pickColor(k,function(u){null==u||u==mxConstants.NONE?(p.removeAttribute("border"),p.style.border="",p.style.borderCollapse=""):(p.setAttribute("border","1"),p.style.border="1px solid "+u,p.style.borderCollapse="collapse")})}));d.setAttribute("title",mxResources.get("borderColor"));d=h.addItem("",Editor.fillColorImage,mxUtils.bind(this,
+function(){var k=p.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(u,x,z,C){return"#"+("0"+Number(x).toString(16)).substr(-2)+("0"+Number(z).toString(16)).substr(-2)+("0"+Number(C).toString(16)).substr(-2)});this.editorUi.pickColor(k,function(u){p.style.backgroundColor=null==u||u==mxConstants.NONE?"":u})}));d.setAttribute("title",mxResources.get("backgroundColor"));d=h.addItem("",Editor.spacingImage,mxUtils.bind(this,function(){var k=p.getAttribute("cellPadding")||
+0;k=new FilenameDialog(this.editorUi,k,mxResources.get("apply"),mxUtils.bind(this,function(u){null!=u&&0<u.length?p.setAttribute("cellPadding",u):p.removeAttribute("cellPadding")}),mxResources.get("spacing"));this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}));d.setAttribute("title",mxResources.get("spacing"));d=h.addItem("",Editor.alignLeftImage,mxUtils.bind(this,function(){p.setAttribute("align","left")}));d.setAttribute("title",mxResources.get("left"));d=h.addItem("",Editor.alignCenterImage,
+mxUtils.bind(this,function(){p.setAttribute("align","center")}));d.setAttribute("title",mxResources.get("center"));d=h.addItem("",Editor.alignRightImage,mxUtils.bind(this,function(){p.setAttribute("align","right")}));d.setAttribute("title",mxResources.get("right"))}}));this.addDropDownArrow(f,Editor.tableImage,38)};Toolbar.prototype.hideMenu=function(){this.editorUi.hideCurrentMenu()};
+Toolbar.prototype.addMenu=function(a,b,e,f,h,d,g){var m=this.editorUi.menus.get(f),p=this.addMenuFunction(a,b,e,function(){m.funct.apply(m,arguments)},h,d);g||"function"!==typeof p.setEnabled||m.addListener("stateChanged",function(){p.setEnabled(m.enabled)});return p};Toolbar.prototype.addMenuFunction=function(a,b,e,f,h,d){return this.addMenuFunctionInContainer(null!=h?h:this.container,a,b,e,f,d)};
+Toolbar.prototype.addMenuFunctionInContainer=function(a,b,e,f,h,d){b=f?this.createLabel(b):this.createButton(b);this.initElement(b,e);this.addMenuHandler(b,f,h,d);a.appendChild(b);return b};Toolbar.prototype.addSeparator=function(a){a=null!=a?a:this.container;var b=document.createElement("div");b.className="geSeparator";a.appendChild(b);return b};
+Toolbar.prototype.addItems=function(a,b,e,f){for(var h=[],d=0;d<a.length;d++){var g=a[d];"-"==g?h.push(this.addSeparator(b)):h.push(this.addItem(null!=f?f[d]:null,g,b,e))}return h};Toolbar.prototype.addItem=function(a,b,e,f){var h=this.editorUi.actions.get(b),d=null;null!=h&&(b=h.label,null!=h.shortcut&&(b+=" ("+h.shortcut+")"),d=this.addButton(a,b,h.funct,e),f||"function"!==typeof d.setEnabled||(d.setEnabled(h.enabled),h.addListener("stateChanged",function(){d.setEnabled(h.enabled)})));return d};
+Toolbar.prototype.addButton=function(a,b,e,f){a=this.createButton(a);f=null!=f?f:this.container;this.initElement(a,b);this.addClickHandler(a,e);f.appendChild(a);return a};Toolbar.prototype.initElement=function(a,b){null!=b&&a.setAttribute("title",b);this.addEnabledState(a)};Toolbar.prototype.addEnabledState=function(a){var b=a.className;a.setEnabled=function(e){a.enabled=e;a.className=e?b:b+" mxDisabled"};a.setEnabled(!0)};
+Toolbar.prototype.addClickHandler=function(a,b){null!=b&&(mxEvent.addListener(a,"click",function(e){a.enabled&&b(e);mxEvent.consume(e)}),mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(e){e.preventDefault()})))};
+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 I=Math.floor(E),
+arguments);this.editorUi.resetCurrentMenu();d.destroy()});var p=mxUtils.getOffset(a);d.popup(p.x,p.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=
+"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,p=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),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=
+mxUtils.rgba2hex(D)))}),k=mxUtils.bind(this,function(E){0==h[2]&&(h[2]=1);g=!0;x(E)}),u=mxUtils.bind(this,function(E){m=!0;x(E)}),x=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),p())}),z=mxUtils.bind(this,function(){g=m=!1});mxEvent.addGestureListeners(e,k);mxEvent.addGestureListeners(sliderBox,u);mxEvent.addGestureListeners(b,null,x,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 I=G.g/255,L=G.b/255,T=Math.min(Math.min(E,I),L);G=Math.max(Math.max(E,I),L);var K=G-T;0===K?E=[null,0,G]:(E=E===T?3+(L-I)/K:I===T?5+(E-L)/K:1+(I-E)/K,E=[6===E?0:E,K/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,T=Math.min(Math.min(E,I),L);G=Math.max(Math.max(E,I),L);var K=G-T;0===K?E=[null,0,G]:(E=E===T?3+(L-I)/K:I===T?5+(E-L)/K:1+(I-E)/K,E=[6===E?0:E,K/G,G]);null!=E[0]&&(h[0]=E[0]);0!=E[2]&&(h[1]=E[1]);h[2]=E[2];p(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(V){return mxUtils.color2hex("#"+V).substring(1).toUpperCase()}function q(){W.src="none"==M.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(V){""==V.value&&null!=I&&T?V.style.background=V==Y?I.dark:I.light:""==V.value||V.value==mxConstants.NONE||mxUtils.isVarColor(V.value)?V.style.background="transparent":V.style.background="#"+V.value;V.style.color="transparent"==V.style.background?"light-dark(#000000, #ffffff)":mxUtils.isDarkColor(V.style.background)?
-"#ffffff":"#000000"}function u(){k(K);k(Y)}function w(V){V?(K.value="",Y.value="",Q.value="automatic",K.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),Y.setAttribute("title",mxResources.get("useBlackAndWhite")),K.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==K.value&&null!=I&&(K.value=I.light.substring(1).toUpperCase()),K.removeAttribute("placeholder"),K.removeAttribute("title"),""==Y.value&&null!=I&&(Y.value=I.dark.substring(1).toUpperCase()),Y.removeAttribute("placeholder"),
-Y.removeAttribute("title"),V=!1);T=V}function z(V){var ja=V.value,H=ja.toLowerCase();null==h||""!=ja&&"automatic"!=H&&"default"!=H&&H!=mxResources.get("default").toLowerCase()&&H!=mxResources.get("automatic").toLowerCase()||null==I?(V.value==mxConstants.NONE||mxUtils.isVarColor(V.value)||(V.value=m(V.value),oa.fromString("#"+V.value)),w(!1),V!=Y||K.value==mxConstants.NONE&&Y.value==mxConstants.NONE||(Q.value="custom"),V==K&&"automatic"==Q.value&&(K.value==mxConstants.NONE?Y.value=mxConstants.NONE:
-mxUtils.isVarColor(K.value)?Y.value=K.value:Y.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+V.value)).substring(1).toUpperCase()),u()):aa.click()}function C(){var V=K.value,ja=Y.value;if(T&&null!=I||(/(^#?[a-zA-Z0-9]*$)/.test(V)||mxUtils.isVarColor(V))&&(/(^#?[a-zA-Z0-9]*$)/.test(ja)||mxUtils.isVarColor(ja))){if(T)V="default";else if(""==V&&(V=mxConstants.NONE),""==ja&&(ja=mxConstants.NONE),V==mxConstants.NONE||mxUtils.isVarColor(V)||"#"==V.charAt(0)||(V="#"+m(V)),ja==mxConstants.NONE||mxUtils.isVarColor(ja)||
-"#"==ja.charAt(0)||(ja="#"+m(ja)),ColorDialog.addRecentColor("none"!=V?V.substring(1):V,12),"automatic"!=Q.value&&ColorDialog.addRecentColor("none"!=ja?ja.substring(1):ja,12),"none"!=V||"none"!=ja)V=V==mxConstants.NONE?"transparent":V,ja=ja==mxConstants.NONE?"transparent":ja,g||"automatic"==Q.value||(V="light-dark("+V+","+ja+")");ia(V);a.hideDialog()}else a.handleError({message:mxResources.get("invalidInput")})}function E(){mxClient.IS_TOUCH||(qa.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?
-qa.select():document.execCommand("selectAll",!1,null))}function D(){var V=Z(0==ColorDialog.recentColors.length?["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);V.style.marginBottom="8px";return V}function G(V){13==V.keyCode&&(z(mxEvent.getSource(V)),C())}var I=null!=d?mxUtils.getLightDarkColor(d):null,L=a.editor.graph;this.editorUi=a;var T=!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 K=document.createElement("input");K.style.textOverflow="ellipsis";K.style.margin="0 0 0 4px";K.style.width="100%";d=document.createElement("div");d.style.padding="0 4px";var U=document.createElement("div");U.style.display="flex";U.style.alignItems="center";d.appendChild(U);var Y=document.createElement("input");Y.style.textOverflow="ellipsis";Y.style.margin="0 4px";Y.style.maxWidth="60px";Y.style.width="100%";var Q=document.createElement("select");Q.style.textOverflow="ellipsis";
-Q.style.width="100%";var P=document.createElement("option");P.setAttribute("value","automatic");mxUtils.write(P,mxResources.get("automatic"));Q.appendChild(P);P=document.createElement("option");P.setAttribute("value","custom");mxUtils.write(P,mxResources.get("userDefined"));Q.appendChild(P);Q.value=mxUtils.isLightDarkColor(b)?"custom":"automatic";var M=document.createElement("div");M.style.padding="0 6px 0 6px";P=document.createElement("img");P.setAttribute("title",mxResources.get("dark"));P.className=
-"geAdaptiveAsset";P.src=Editor.thinDarkImage;P.style.width="20px";M.appendChild(P);mxEvent.addListener(P,"click",function(){Y.focus()});M.appendChild(Y);M.appendChild(Q);M.style.display="flex";M.style.alignItems="center";P=document.createElement("div");P.style.display="flex";P.style.alignItems="center";P.style.userSelect="none";P.style.cursor="pointer";P.style.padding="2px 0 2px 0";var W=document.createElement("img");W.setAttribute("title",mxResources.get("dark"));W.className="geAdaptiveAsset";W.style.marginLeft=
-"-2px";P.appendChild(W);mxUtils.write(P,mxResources.get("advanced"));q();mxEvent.addListener(P,"click",function(){M.style.display="none"==M.style.display?"flex":"none";q();q();ColorDialog.collapsed="none"==M.style.display});var aa=mxUtils.button("",function(){w(!0);u();qa.focus();""==qa.value&&null!=I&&T&&oa.fromString(qa==Y?I.dark:I.light,!0)});mxEvent.addListener(Q,"change",function(){"automatic"==Q.value?(K.focus(),z(K)):(w(!1),mxUtils.isVarColor(Y.value)||(Y.value=T&&null!=I?I.dark.substring(1).toUpperCase():
-Y.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+K.value)).substring(1).toUpperCase()),Y.focus(),E());u()});mxEvent.addListener(K,"change",function(){z(K)});mxEvent.addListener(Y,"change",function(){z(Y)});var ia=null!=e?e:this.createApplyFunction();this.init=function(){E()};var oa=new ColorPicker,qa=Editor.isDarkMode()&&("auto"==L.getAdaptiveColors()||"simple"==L.getAdaptiveColors()&&"custom"==Q.value)&&!g?Y:K;mxEvent.addListener(K,"focus",function(){qa=K});mxEvent.addListener(Y,"focus",function(){qa=
-Y});oa.addListener("change",function(V,ja){V=ja.getProperty("color").substring(1).toUpperCase();qa.value.toUpperCase()!=V&&(qa.value=V,z(qa),window.setTimeout(function(){qa.focus()},0))});e=document.createElement("div");e.appendChild(oa.div);var O=document.createElement("div");O.style.display="flex";O.style.flexFlow="row wrap";O.style.justifyContent="center";O.style.paddingTop="10px";var Z=mxUtils.bind(this,function(V,ja,H,ea){ja=null!=ja?ja:12;var la=document.createElement("table");la.style.borderCollapse=
-"collapse";la.setAttribute("cellspacing","0");la.style.marginBottom="20px";la.style.cellSpacing="0px";la.style.marginLeft="1px";var sa=document.createElement("tbody");la.appendChild(sa);for(var Pa=V.length/ja,ma=0;ma<Pa;ma++){for(var Ca=document.createElement("tr"),Da=0;Da<ja;Da++)mxUtils.bind(this,function(Ga){var Ia=document.createElement("td");Ia.style.border="0px solid black";Ia.style.padding="0px";Ia.style.width="16px";Ia.style.height="16px";null==Ga&&(Ga=H);if(null!=Ga){Ia.style.borderWidth=
-"1px";Ga==mxConstants.NONE?Ia.style.background="url('"+Dialog.prototype.noColorImage+"')":Ia.style.backgroundColor="#"+Ga;var Ha=this.colorNames[String(Ga).toUpperCase()];null!=Ha&&Ia.setAttribute("title",Ha)}Ca.appendChild(Ia);null!=Ga&&(Ia.style.cursor="pointer",mxEvent.addListener(Ia,"click",function(){if(Ga==mxConstants.NONE){qa==Y&&Y.value==mxConstants.NONE?K.value=mxConstants.NONE:qa.value=mxConstants.NONE;if(qa==K||qa==Y&&K.value==mxConstants.NONE)Q.value="automatic";z(qa);window.setTimeout(function(){qa.focus()},
-0)}else oa.fromString("#"+Ga)}),mxEvent.addListener(Ia,"dblclick",C))})(V[ma*ja+Da]);sa.appendChild(Ca)}ea&&(V=document.createElement("td"),V.setAttribute("title",mxResources.get("reset")),V.className="geAdaptiveAsset",V.style.border="1px solid black",V.style.padding="0px",V.style.width="16px",V.style.height="16px",V.style.backgroundImage="url('"+Editor.crossImage+"')",V.style.backgroundPosition="center center",V.style.backgroundSize="14px 14px",V.style.backgroundRepeat="no-repeat",V.style.cursor=
-"pointer",Ca.appendChild(V),mxEvent.addListener(V,"click",function(){ColorDialog.resetRecentColors();la.parentNode.replaceChild(D(),la)}));O.appendChild(la);return la});g||(d.appendChild(P),!ColorDialog.collapsed||Editor.isDarkMode()&&"auto"==L.getAdaptiveColors()||"automatic"!=Q.value||(M.style.display="none",q()),P=document.createElement("img"),P.setAttribute("title",mxResources.get("light")),P.className="geAdaptiveAsset",P.src=Editor.thinLightImage,P.style.width="20px",U.appendChild(P),mxEvent.addListener(P,
-"click",function(){K.focus()}));U.appendChild(K);null!=I&&(aa.setAttribute("title",mxResources.get("useBlackAndWhite")),aa.style.cursor="pointer",aa.style.position="relative",aa.style.marginLeft="4px",aa.innerText="",L=document.createElement("div"),L.style.backgroundImage="linear-gradient(to right bottom, "+I.cssText+" 50%, "+mxUtils.invertLightDarkColor(I).cssText+" 50.3%)",L.style.display="inline-block",L.style.verticalAlign="middle",L.style.borderStyle="solid",L.style.borderWidth="1px",L.style.marginTop=
-"-2px",L.style.width="12px",L.style.height="12px",aa.appendChild(L),U.appendChild(aa),mxEvent.addListener(aa,"dblclick",C));var ca=document.createElement("input");ca.setAttribute("type","color");ca.style.position="relative";ca.style.visibility="hidden";ca.style.top="10px";ca.style.width="0px";ca.style.height="0px";ca.style.border="none";e.style.whiteSpace="nowrap";U.appendChild(ca);L=mxUtils.button("",function(){document.activeElement==ca?K.focus():(ca.value="#"+K.value,ca.click())});L.style.cursor=
-"pointer";P=document.createElement("img");P.src=Editor.colorDropperImage;P.className="geAdaptiveAsset";P.style.position="relative";P.style.verticalAlign="middle";P.style.marginTop="-2px";P.style.width="auto";P.style.height="14px";L.appendChild(P);U.appendChild(L);e.appendChild(d);mxEvent.addListener(ca,"change",function(){oa.fromString(ca.value)});g||e.appendChild(M);D();d=Z(this.presetColors);d.style.marginBottom="8px";d=Z(this.defaultColors);d.style.marginBottom="16px";e.appendChild(O);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"));U=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=f&&f()});U.className="geBtn";a.editor.cancelFirst&&d.appendChild(U);L=mxUtils.button(mxResources.get("apply"),C);L.className="geBtn gePrimaryBtn";d.appendChild(L);a.editor.cancelFirst||d.appendChild(U);null!=b&&("default"==
-b?aa.click():(U=mxUtils.getLightDarkColor(b),b==mxConstants.NONE||"transparent"==U.light?K.value=mxConstants.NONE:mxUtils.isVarColor(U.light)?K.value=U.light:(mxUtils.isRgbColor(U.light)?U.light=mxUtils.rgba2hex(U.light):mxUtils.isHexColor(U.light)||(U.light="#"+m(U.light)),K.value=U.light.substring(1).toUpperCase()),b==mxConstants.NONE||"transparent"==U.dark?Y.value=mxConstants.NONE:mxUtils.isVarColor(U.dark)?Y.value=U.dark:(mxUtils.isRgbColor(U.dark)?U.dark=mxUtils.rgba2hex(U.dark):mxUtils.isHexColor(U.dark)||
-(U.dark="#"+m(U.dark)),Y.value=U.dark.substring(1).toUpperCase()),oa.fromString(qa.value,!0),u()));g||!ColorDialog.collapsed||"automatic"!=Q.value||Editor.isDarkMode()||(M.style.display="none",q());e.appendChild(d);this.picker=oa;this.colorInput=K;mxEvent.addListener(K,"keypress",G);mxEvent.addListener(Y,"keypress",G);mxEvent.addListener(e,"keydown",function(V){27==V.keyCode&&(a.hideDialog(),null!=f&&f(),mxEvent.consume(V))});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(" ");
+var ColorDialog=function(a,b,e,f,h,d,g){function m(W){return mxUtils.color2hex("#"+W).substring(1).toUpperCase()}function p(){V.src="none"==M.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(W){""==W.value&&null!=I&&T?W.style.background=W==Y?I.dark:I.light:""==W.value||W.value==mxConstants.NONE||mxUtils.isVarColor(W.value)?W.style.background="transparent":W.style.background="#"+W.value;W.style.color="transparent"==W.style.background?"light-dark(#000000, #ffffff)":mxUtils.isDarkColor(W.style.background)?
+"#ffffff":"#000000"}function u(){k(K);k(Y)}function x(W){W?g&&null!=I?(K.value=I.light.substring(1).toUpperCase(),W=!1):(K.value="",Y.value="",Q.value="automatic",K.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),Y.setAttribute("title",mxResources.get("useBlackAndWhite")),K.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==K.value&&null!=I&&(K.value=I.light.substring(1).toUpperCase()),K.removeAttribute("placeholder"),K.removeAttribute("title"),""==Y.value&&null!=I&&(Y.value=
+I.dark.substring(1).toUpperCase()),Y.removeAttribute("placeholder"),Y.removeAttribute("title"),W=!1);T=W}function z(W){var ja=W.value,H=ja.toLowerCase();null==h||""!=ja&&"automatic"!=H&&"default"!=H&&H!=mxResources.get("default").toLowerCase()&&H!=mxResources.get("automatic").toLowerCase()||null==I?(W.value==mxConstants.NONE||mxUtils.isVarColor(W.value)||(W.value=m(W.value),na.fromString("#"+W.value)),x(!1),W!=Y||K.value==mxConstants.NONE&&Y.value==mxConstants.NONE||(Q.value="custom"),W==K&&"automatic"==
+Q.value&&(K.value==mxConstants.NONE?Y.value=mxConstants.NONE:mxUtils.isVarColor(K.value)?Y.value=K.value:Y.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+W.value)).substring(1).toUpperCase()),u()):aa.click()}function C(){var W=K.value,ja=Y.value;if(T&&null!=I||(/(^#?[a-zA-Z0-9]*$)/.test(W)||mxUtils.isVarColor(W))&&(/(^#?[a-zA-Z0-9]*$)/.test(ja)||mxUtils.isVarColor(ja))){if(T)W="default";else if(""==W&&(W=mxConstants.NONE),""==ja&&(ja=mxConstants.NONE),W==mxConstants.NONE||mxUtils.isVarColor(W)||
+"#"==W.charAt(0)||(W="#"+m(W)),ja==mxConstants.NONE||mxUtils.isVarColor(ja)||"#"==ja.charAt(0)||(ja="#"+m(ja)),ColorDialog.addRecentColor("none"!=W?W.substring(1):W,12),"automatic"!=Q.value&&ColorDialog.addRecentColor("none"!=ja?ja.substring(1):ja,12),"none"!=W||"none"!=ja)W=W==mxConstants.NONE?"transparent":W,ja=ja==mxConstants.NONE?"transparent":ja,g||"automatic"==Q.value||(W="light-dark("+W+","+ja+")");ia(W);a.hideDialog()}else a.handleError({message:mxResources.get("invalidInput")})}function E(){mxClient.IS_TOUCH||
+(qa.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?qa.select():document.execCommand("selectAll",!1,null))}function D(){var W=Z(0==ColorDialog.recentColors.length?["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);W.style.marginBottom="8px";return W}function G(W){13==W.keyCode&&(z(mxEvent.getSource(W)),C())}var I=null!=d?mxUtils.getLightDarkColor(d,null,null,g):null,L=a.editor.graph;this.editorUi=a;var T=!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 K=document.createElement("input");K.style.textOverflow="ellipsis";K.style.margin="0 0 0 4px";K.style.width="100%";d=document.createElement("div");d.style.padding="0 4px";var U=document.createElement("div");U.style.display="flex";U.style.alignItems="center";d.appendChild(U);var Y=document.createElement("input");Y.style.textOverflow="ellipsis";Y.style.margin="0 4px";Y.style.maxWidth="60px";Y.style.width=
+"100%";var Q=document.createElement("select");Q.style.textOverflow="ellipsis";Q.style.width="100%";var P=document.createElement("option");P.setAttribute("value","automatic");mxUtils.write(P,mxResources.get("automatic"));Q.appendChild(P);P=document.createElement("option");P.setAttribute("value","custom");mxUtils.write(P,mxResources.get("userDefined"));Q.appendChild(P);Q.value=mxUtils.isLightDarkColor(b)?"custom":"automatic";var M=document.createElement("div");M.style.padding="0 6px 0 6px";P=document.createElement("img");
+P.setAttribute("title",mxResources.get("dark"));P.className="geAdaptiveAsset";P.src=Editor.thinDarkImage;P.style.width="20px";M.appendChild(P);mxEvent.addListener(P,"click",function(){Y.focus()});M.appendChild(Y);M.appendChild(Q);M.style.display="flex";M.style.alignItems="center";P=document.createElement("div");P.style.display="flex";P.style.alignItems="center";P.style.userSelect="none";P.style.cursor="pointer";P.style.padding="2px 0 2px 0";var V=document.createElement("img");V.setAttribute("title",
+mxResources.get("dark"));V.className="geAdaptiveAsset";V.style.marginLeft="-2px";P.appendChild(V);mxUtils.write(P,mxResources.get("advanced"));p();mxEvent.addListener(P,"click",function(){M.style.display="none"==M.style.display?"flex":"none";p();p();ColorDialog.collapsed="none"==M.style.display});var aa=mxUtils.button("",function(){x(!0);u();qa.focus();""==qa.value&&null!=I&&T&&na.fromString(qa==Y?I.dark:I.light,!0)});mxEvent.addListener(Q,"change",function(){"automatic"==Q.value?(K.focus(),z(K)):
+(x(!1),mxUtils.isVarColor(Y.value)||(Y.value=T&&null!=I?I.dark.substring(1).toUpperCase():Y.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+K.value)).substring(1).toUpperCase()),Y.focus(),E());u()});mxEvent.addListener(K,"change",function(){z(K)});mxEvent.addListener(Y,"change",function(){z(Y)});var ia=null!=e?e:this.createApplyFunction();this.init=function(){E()};var na=new ColorPicker,qa=Editor.isDarkMode()&&("auto"==L.getAdaptiveColors()||"simple"==L.getAdaptiveColors()&&"custom"==Q.value)&&
+!g?Y:K;mxEvent.addListener(K,"focus",function(){qa=K});mxEvent.addListener(Y,"focus",function(){qa=Y});na.addListener("change",function(W,ja){W=ja.getProperty("color").substring(1).toUpperCase();qa.value.toUpperCase()!=W&&(qa.value=W,z(qa),window.setTimeout(function(){qa.focus()},0))});e=document.createElement("div");e.appendChild(na.div);var O=document.createElement("div");O.style.display="flex";O.style.flexFlow="row wrap";O.style.justifyContent="center";O.style.paddingTop="10px";var Z=mxUtils.bind(this,
+function(W,ja,H,ea){ja=null!=ja?ja:12;var oa=document.createElement("table");oa.style.borderCollapse="collapse";oa.setAttribute("cellspacing","0");oa.style.marginBottom="20px";oa.style.cellSpacing="0px";oa.style.marginLeft="1px";var sa=document.createElement("tbody");oa.appendChild(sa);for(var Pa=W.length/ja,la=0;la<Pa;la++){for(var Ba=document.createElement("tr"),Ca=0;Ca<ja;Ca++)mxUtils.bind(this,function(Fa){var Ia=document.createElement("td");Ia.style.border="0px solid black";Ia.style.padding=
+"0px";Ia.style.width="16px";Ia.style.height="16px";null==Fa&&(Fa=H);if(null!=Fa){Ia.style.borderWidth="1px";Fa==mxConstants.NONE?Ia.style.background="url('"+Dialog.prototype.noColorImage+"')":Ia.style.backgroundColor="#"+Fa;var Ha=this.colorNames[String(Fa).toUpperCase()];null!=Ha&&Ia.setAttribute("title",Ha)}Ba.appendChild(Ia);null!=Fa&&(Ia.style.cursor="pointer",mxEvent.addListener(Ia,"click",function(){if(Fa==mxConstants.NONE){qa==Y&&Y.value==mxConstants.NONE?K.value=mxConstants.NONE:qa.value=
+mxConstants.NONE;if(qa==K||qa==Y&&K.value==mxConstants.NONE)Q.value="automatic";z(qa);window.setTimeout(function(){qa.focus()},0)}else na.fromString("#"+Fa)}),mxEvent.addListener(Ia,"dblclick",C))})(W[la*ja+Ca]);sa.appendChild(Ba)}ea&&(W=document.createElement("td"),W.setAttribute("title",mxResources.get("reset")),W.className="geAdaptiveAsset",W.style.border="1px solid black",W.style.padding="0px",W.style.width="16px",W.style.height="16px",W.style.backgroundImage="url('"+Editor.crossImage+"')",W.style.backgroundPosition=
+"center center",W.style.backgroundSize="14px 14px",W.style.backgroundRepeat="no-repeat",W.style.cursor="pointer",Ba.appendChild(W),mxEvent.addListener(W,"click",function(){ColorDialog.resetRecentColors();oa.parentNode.replaceChild(D(),oa)}));O.appendChild(oa);return oa});g||(d.appendChild(P),!ColorDialog.collapsed||Editor.isDarkMode()&&"auto"==L.getAdaptiveColors()||"automatic"!=Q.value||(M.style.display="none",p()),P=document.createElement("img"),P.setAttribute("title",mxResources.get("light")),
+P.className="geAdaptiveAsset",P.src=Editor.thinLightImage,P.style.width="20px",U.appendChild(P),mxEvent.addListener(P,"click",function(){K.focus()}));U.appendChild(K);null!=I&&(aa.setAttribute("title",mxResources.get(g?"default":"useBlackAndWhite")),aa.style.cursor="pointer",aa.style.position="relative",aa.style.marginLeft="4px",aa.innerText="",L=document.createElement("div"),L.style.display="inline-block",L.style.verticalAlign="middle",L.style.borderStyle="solid",L.style.borderWidth="1px",L.style.marginTop=
+"-2px",L.style.width="12px",L.style.height="12px",g?L.style.backgroundColor=I.light:L.style.backgroundImage="linear-gradient(to right bottom, "+I.cssText+" 50%, "+mxUtils.invertLightDarkColor(I).cssText+" 50.3%)",aa.appendChild(L),U.appendChild(aa),mxEvent.addListener(aa,"dblclick",C));var ca=document.createElement("input");ca.setAttribute("type","color");ca.style.position="relative";ca.style.visibility="hidden";ca.style.top="10px";ca.style.width="0px";ca.style.height="0px";ca.style.border="none";
+e.style.whiteSpace="nowrap";U.appendChild(ca);L=mxUtils.button("",function(){document.activeElement==ca?K.focus():(ca.value="#"+K.value,ca.click())});L.style.cursor="pointer";P=document.createElement("img");P.src=Editor.colorDropperImage;P.className="geAdaptiveAsset";P.style.position="relative";P.style.verticalAlign="middle";P.style.marginTop="-2px";P.style.width="auto";P.style.height="14px";L.appendChild(P);U.appendChild(L);e.appendChild(d);mxEvent.addListener(ca,"change",function(){na.fromString(ca.value)});
+g||e.appendChild(M);D();d=Z(this.presetColors);d.style.marginBottom="8px";d=Z(this.defaultColors);d.style.marginBottom="16px";e.appendChild(O);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"));U=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=f&&f()});U.className="geBtn";a.editor.cancelFirst&&
+d.appendChild(U);L=mxUtils.button(mxResources.get("apply"),C);L.className="geBtn gePrimaryBtn";d.appendChild(L);a.editor.cancelFirst||d.appendChild(U);null!=b&&("default"==b?aa.click():(U=mxUtils.getLightDarkColor(b),b==mxConstants.NONE||"transparent"==U.light?K.value=mxConstants.NONE:mxUtils.isVarColor(U.light)?K.value=U.light:(mxUtils.isRgbColor(U.light)?U.light=mxUtils.rgba2hex(U.light):mxUtils.isHexColor(U.light)||(U.light="#"+m(U.light)),K.value=U.light.substring(1).toUpperCase()),b==mxConstants.NONE||
+"transparent"==U.dark?Y.value=mxConstants.NONE:mxUtils.isVarColor(U.dark)?Y.value=U.dark:(mxUtils.isRgbColor(U.dark)?U.dark=mxUtils.rgba2hex(U.dark):mxUtils.isHexColor(U.dark)||(U.dark="#"+m(U.dark)),Y.value=U.dark.substring(1).toUpperCase()),na.fromString(qa.value,!0),u()));g||!ColorDialog.collapsed||"automatic"!=Q.value||Editor.isDarkMode()||(M.style.display="none",p());e.appendChild(d);this.picker=na;this.colorInput=K;mxEvent.addListener(K,"keypress",G);mxEvent.addListener(Y,"keypress",G);mxEvent.addListener(e,
+"keydown",function(W){27==W.keyCode&&(a.hideDialog(),null!=f&&f(),mxEvent.consume(W))});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");
+"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,p,k,u,x,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 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(T,K,U){T=mxUtils.button(T,function(Y){K(Y,I)});null!=U&&T.setAttribute("title",U);T.className="geBtn";G.appendChild(T)})(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",
+C)for(b=0;b<C.length;b++)(function(T,K,U){T=mxUtils.button(T,function(Y){K(Y,I)});null!=U&&T.setAttribute("title",U);T.className="geBtn";G.appendChild(T)})(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!=p&&p(G,I);if(null!=f){var L=mxUtils.button(x||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,"keypress",function(T){13==T.keyCode&&mxEvent.isControlDown(T)&&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;
-if("new"==d.value)a.hideDialog(),a.editor.editAsNew(m);else if("apply"==d.value)try{var k=mxUtils.parseXml(m).documentElement;a.updateDiagramData(f,k);a.hideDialog()}catch(C){q=C}else if("insert"==d.value){a.editor.graph.model.beginUpdate();try{var u=mxUtils.parseXml(m),w=new mxGraphModel;(new mxCodec(u)).decode(u.documentElement,w);var z=w.getChildren(w.getChildAt(w.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(z));a.hideDialog()}catch(C){q=C}finally{a.editor.graph.model.endUpdate()}}null!=
-q&&a.handleError(q)});g.className="geBtn gePrimaryBtn";b.appendChild(g);a.editor.cancelFirst||b.appendChild(h);this.container=b};EditDiagramDialog.showNewWindowOption=!0;
-var ExportDialog=function(a){function b(){var Q=u.value,P=Q.lastIndexOf(".");u.value=0<P?Q.substring(0,P+1)+w.value:Q+"."+w.value;"xml"===w.value?(z.setAttribute("disabled","true"),C.setAttribute("disabled","true"),E.setAttribute("disabled","true"),K.setAttribute("disabled","true")):(z.removeAttribute("disabled"),C.removeAttribute("disabled"),E.removeAttribute("disabled"),K.removeAttribute("disabled"));"png"===w.value||"svg"===w.value||"pdf"===w.value?L.removeAttribute("disabled"):L.setAttribute("disabled",
-"disabled");"png"===w.value||"jpg"===w.value||"pdf"===w.value?T.removeAttribute("disabled"):T.setAttribute("disabled","disabled");"png"===w.value?(D.removeAttribute("disabled"),G.removeAttribute("disabled")):(D.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"))}function e(){C.style.backgroundColor=C.value*E.value>MAX_AREA||0>=C.value?"red":"";E.style.backgroundColor=C.value*E.value>MAX_AREA||0>=E.value?"red":""}var f=a.editor.graph,h=f.getGraphBounds(),d=f.view.scale,g=Math.ceil(h.width/
-d),m=Math.ceil(h.height/d);d=document.createElement("table");var q=document.createElement("tbody");d.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");h=document.createElement("tr");var k=document.createElement("td");k.style.fontSize="10pt";k.style.width="100px";mxUtils.write(k,mxResources.get("filename")+":");h.appendChild(k);var u=document.createElement("input");u.setAttribute("value",a.editor.getOrCreateFilename());u.style.width="180px";k=document.createElement("td");k.appendChild(u);h.appendChild(k);
-q.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("format")+":");h.appendChild(k);var w=document.createElement("select");w.style.width="180px";k=document.createElement("option");k.setAttribute("value","png");mxUtils.write(k,mxResources.get("formatPng"));w.appendChild(k);k=document.createElement("option");ExportDialog.showGifOption&&(k.setAttribute("value","gif"),mxUtils.write(k,mxResources.get("formatGif")),w.appendChild(k));
-k=document.createElement("option");k.setAttribute("value","jpg");mxUtils.write(k,mxResources.get("formatJpg"));w.appendChild(k);k=document.createElement("option");k.setAttribute("value","svg");mxUtils.write(k,mxResources.get("formatSvg"));w.appendChild(k);ExportDialog.showXmlOption&&(k=document.createElement("option"),k.setAttribute("value","xml"),mxUtils.write(k,mxResources.get("formatXml")),w.appendChild(k));k=document.createElement("td");k.appendChild(w);h.appendChild(k);q.appendChild(h);h=document.createElement("tr");
-k=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");
+"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 p=new FileReader;
+p.onload=function(k){e.value=k.target.result};p.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)),p=null;
+if("new"==d.value)a.hideDialog(),a.editor.editAsNew(m);else if("apply"==d.value)try{var k=mxUtils.parseXml(m).documentElement;a.updateDiagramData(f,k);a.hideDialog()}catch(C){p=C}else if("insert"==d.value){a.editor.graph.model.beginUpdate();try{var u=mxUtils.parseXml(m),x=new mxGraphModel;(new mxCodec(u)).decode(u.documentElement,x);var z=x.getChildren(x.getChildAt(x.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(z));a.hideDialog()}catch(C){p=C}finally{a.editor.graph.model.endUpdate()}}null!=
+p&&a.handleError(p)});g.className="geBtn gePrimaryBtn";b.appendChild(g);a.editor.cancelFirst||b.appendChild(h);this.container=b};EditDiagramDialog.showNewWindowOption=!0;
+var ExportDialog=function(a){function b(){var Q=u.value,P=Q.lastIndexOf(".");u.value=0<P?Q.substring(0,P+1)+x.value:Q+"."+x.value;"xml"===x.value?(z.setAttribute("disabled","true"),C.setAttribute("disabled","true"),E.setAttribute("disabled","true"),K.setAttribute("disabled","true")):(z.removeAttribute("disabled"),C.removeAttribute("disabled"),E.removeAttribute("disabled"),K.removeAttribute("disabled"));"png"===x.value||"svg"===x.value||"pdf"===x.value?L.removeAttribute("disabled"):L.setAttribute("disabled",
+"disabled");"png"===x.value||"jpg"===x.value||"pdf"===x.value?T.removeAttribute("disabled"):T.setAttribute("disabled","disabled");"png"===x.value?(D.removeAttribute("disabled"),G.removeAttribute("disabled")):(D.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"))}function e(){C.style.backgroundColor=C.value*E.value>MAX_AREA||0>=C.value?"red":"";E.style.backgroundColor=C.value*E.value>MAX_AREA||0>=E.value?"red":""}var f=a.editor.graph,h=f.getGraphBounds(),d=f.view.scale,g=Math.ceil(h.width/
+d),m=Math.ceil(h.height/d);d=document.createElement("table");var p=document.createElement("tbody");d.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");h=document.createElement("tr");var k=document.createElement("td");k.style.fontSize="10pt";k.style.width="100px";mxUtils.write(k,mxResources.get("filename")+":");h.appendChild(k);var u=document.createElement("input");u.setAttribute("value",a.editor.getOrCreateFilename());u.style.width="180px";k=document.createElement("td");k.appendChild(u);h.appendChild(k);
+p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("format")+":");h.appendChild(k);var x=document.createElement("select");x.style.width="180px";k=document.createElement("option");k.setAttribute("value","png");mxUtils.write(k,mxResources.get("formatPng"));x.appendChild(k);k=document.createElement("option");ExportDialog.showGifOption&&(k.setAttribute("value","gif"),mxUtils.write(k,mxResources.get("formatGif")),x.appendChild(k));
+k=document.createElement("option");k.setAttribute("value","jpg");mxUtils.write(k,mxResources.get("formatJpg"));x.appendChild(k);k=document.createElement("option");k.setAttribute("value","svg");mxUtils.write(k,mxResources.get("formatSvg"));x.appendChild(k);ExportDialog.showXmlOption&&(k=document.createElement("option"),k.setAttribute("value","xml"),mxUtils.write(k,mxResources.get("formatXml")),x.appendChild(k));k=document.createElement("td");k.appendChild(x);h.appendChild(k);p.appendChild(h);h=document.createElement("tr");
+k=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);p.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);p.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);p.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 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 Q=parseInt(G.value);isNaN(Q)||0>=Q?G.style.backgroundColor="red":(G.style.backgroundColor="",I||(z.value=Q))});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 T=document.createElement("input");T.setAttribute("type","checkbox");T.checked=!1;k=document.createElement("td");k.appendChild(T);
-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 K=document.createElement("input");K.setAttribute("type","number");K.setAttribute("value",ExportDialog.lastBorderValue);K.style.width="180px";k=document.createElement("td");k.appendChild(K);h.appendChild(k);q.appendChild(h);d.appendChild(q);mxEvent.addListener(w,"change",b);b();mxEvent.addListener(z,"change",
+"",G.focus()):(G.value=this.value,I||(z.value=this.value))});mxEvent.addListener(G,"change",function(){var Q=parseInt(G.value);isNaN(Q)||0>=Q?G.style.backgroundColor="red":(G.style.backgroundColor="",I||(z.value=Q))});k=document.createElement("td");k.appendChild(D);k.appendChild(G);h.appendChild(k);p.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);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("grid")+":");h.appendChild(k);var T=document.createElement("input");T.setAttribute("type","checkbox");T.checked=!1;k=document.createElement("td");k.appendChild(T);
+h.appendChild(k);p.appendChild(h);h=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("borderWidth")+":");h.appendChild(k);var K=document.createElement("input");K.setAttribute("type","number");K.setAttribute("value",ExportDialog.lastBorderValue);K.style.width="180px";k=document.createElement("td");k.appendChild(K);h.appendChild(k);p.appendChild(h);d.appendChild(p);mxEvent.addListener(x,"change",b);b();mxEvent.addListener(z,"change",
function(){I=!0;var Q=Math.max(0,parseFloat(z.value)||100)/100;z.value=parseFloat((100*Q).toFixed(2));0<g?(C.value=Math.floor(g*Q),E.value=Math.floor(m*Q)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(C,"change",function(){var Q=parseInt(C.value)/g;0<Q?(z.value=parseFloat((100*Q).toFixed(2)),E.value=Math.floor(m*Q)):(z.value="100",C.value=g,E.value=m);e()});mxEvent.addListener(E,"change",function(){var Q=parseInt(E.value)/m;0<Q?(z.value=parseFloat((100*Q).toFixed(2)),C.value=Math.floor(g*
-Q)):(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 Q=u.value,P=w.value,M=Math.max(0,parseFloat(z.value)||100)/100,W=Math.max(0,parseInt(K.value)),aa=f.background,ia=Math.max(1,parseInt(G.value));if(("svg"==P||"png"==P||
-"pdf"==P)&&L.checked)aa=null;else if(null==aa||aa==mxConstants.NONE)aa="#ffffff";ExportDialog.lastBorderValue=W;ExportDialog.exportFile(a,Q,P,aa,M,W,ia,T.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;
+Q)):(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 Q=u.value,P=x.value,M=Math.max(0,parseFloat(z.value)||100)/100,V=Math.max(0,parseInt(K.value)),aa=f.background,ia=Math.max(1,parseInt(G.value));if(("svg"==P||"png"==P||
+"pdf"==P)&&L.checked)aa=null;else if(null==aa||aa==mxConstants.NONE)aa="#ffffff";ExportDialog.lastBorderValue=V;ExportDialog.exportFile(a,Q,P,aa,M,V,ia,T.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);p.appendChild(h);d.appendChild(p);this.container=d};ExportDialog.lastBorderValue=0;
ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0;
-ExportDialog.exportFile=function(a,b,e,f,h,d,g,m){m=a.editor.graph;if("xml"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),b,e);else if("svg"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(m.getSvg(f,h,d)),b,e);else{var q=m.getGraphBounds(),k=mxUtils.createXmlDocument(),u=k.createElement("output");k.appendChild(u);k=new mxXmlCanvas2D(u);k.translate(Math.floor((d/h-q.x)/m.view.scale),Math.floor((d/h-q.y)/m.view.scale));k.scale(h/m.view.scale);(new mxImageExport).drawState(m.getView().getState(m.model.root),
-k);u="xml="+encodeURIComponent(mxUtils.getXml(u));k=Math.ceil(q.width*h/m.view.scale+2*d);h=Math.ceil(q.height*h/m.view.scale+2*d);u.length<=MAX_REQUEST_SIZE&&k*h<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format="+e+"&filename="+encodeURIComponent(b)+"&bg="+(null!=f?f:"none")+"&w="+k+"&h="+h+"&"+u+"&dpi="+g)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};
+ExportDialog.exportFile=function(a,b,e,f,h,d,g,m){m=a.editor.graph;if("xml"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),b,e);else if("svg"==e)ExportDialog.saveLocalFile(a,mxUtils.getXml(m.getSvg(f,h,d)),b,e);else{var p=m.getGraphBounds(),k=mxUtils.createXmlDocument(),u=k.createElement("output");k.appendChild(u);k=new mxXmlCanvas2D(u);k.translate(Math.floor((d/h-p.x)/m.view.scale),Math.floor((d/h-p.y)/m.view.scale));k.scale(h/m.view.scale);(new mxImageExport).drawState(m.getView().getState(m.model.root),
+k);u="xml="+encodeURIComponent(mxUtils.getXml(u));k=Math.ceil(p.width*h/m.view.scale+2*d);h=Math.ceil(p.height*h/m.view.scale+2*d);u.length<=MAX_REQUEST_SIZE&&k*h<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format="+e+"&filename="+encodeURIComponent(b)+"&bg="+(null!=f?f:"none")+"&w="+k+"&h="+h+"&"+u+"&dpi="+g)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};
ExportDialog.saveLocalFile=function(a,b,e,f){b.length<MAX_REQUEST_SIZE?(a.hideDialog(),(new mxXmlRequest(SAVE_URL,"xml="+encodeURIComponent(b)+"&filename="+encodeURIComponent(e)+"&format="+f)).simulate(document,"_blank")):(mxUtils.alert(mxResources.get("drawingTooLarge")),mxUtils.popup(xml))};
-var EditDataDialog=function(a,b){function e(){0<K.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(Q){}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(Q,P){var M=document.createElement("div");M.style.position="relative";M.style.paddingRight="20px";M.style.boxSizing="border-box";M.style.width="100%";var W=document.createElement("a"),aa=mxUtils.createImage(Dialog.prototype.closeImage);aa.style.height="9px";aa.style.fontSize="9px";aa.style.marginBottom=mxClient.IS_IE11?"-1px":"5px";W.className="geButton";W.setAttribute("title",
-mxResources.get("delete"));W.style.position="absolute";W.style.top="4px";W.style.right="0px";W.style.margin="0px";W.style.width="9px";W.style.height="9px";W.style.cursor="pointer";W.appendChild(aa);P=function(ia){return function(){for(var oa=0,qa=0;qa<w.length;qa++){if(w[qa]==ia){z[qa]=null;k.table.deleteRow(oa+(null!=E?1:0));break}null!=z[qa]&&oa++}}}(P);mxEvent.addListener(W,"click",P);P=Q.parentNode;M.appendChild(Q);M.appendChild(W);P.appendChild(M)};g=function(Q,P,M){w[Q]=P;z[Q]=k.addTextarea(w[C]+
-":",M,2);z[Q].style.width="100%";0<M.indexOf("\n")&&z[Q].setAttribute("rows","2");D(z[Q],P);null!=m[P]&&0==m[P].editable&&z[Q].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(Q,P){return"label"==Q.name?1:"label"==P.name?-1:Q.name<P.name?-1:Q.name>
-P.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 T=k.addField(mxResources.get("id")+":",u);mxEvent.addListener(u,"dblclick",function(Q){Q=new FilenameDialog(a,E,mxResources.get("apply"),mxUtils.bind(this,function(P){if(null!=P&&0<P.length&&P!=E)if(h.model.isRoot(b)){var M=a.getPageById(E);if(null!=M)if(null==a.getPageById(P)){var W=a.getPageIndex(M);0<=W&&(a.removePage(M),M.node.setAttribute("id",
-P),E=P,T.innerHTML=mxUtils.htmlEntities(P),a.insertPage(M,W))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==h.getModel().getCell(P)?(h.getModel().cellRemoved(b),b.setId(P),E=P,T.innerHTML=mxUtils.htmlEntities(P),h.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[P])})}),mxResources.get("id"));a.showDialog(Q.container,300,80,!0,!0);Q.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 K=document.createElement("input");K.setAttribute("placeholder",mxResources.get("enterPropertyName"));K.setAttribute("type",
-"text");K.setAttribute("size",mxClient.IS_IE||mxClient.IS_IE11?"36":"40");K.style.boxSizing="border-box";K.style.borderWidth="1px";K.style.borderStyle="solid";K.style.marginLeft="2px";K.style.padding="4px";K.style.width="100%";g.appendChild(K);q.appendChild(g);f.appendChild(q);var U=mxUtils.button(mxResources.get("addProperty"),function(){var Q=K.value;if(0<Q.length&&"label"!=Q&&"id"!=Q&&"placeholders"!=Q&&0>Q.indexOf(":"))try{var P=mxUtils.indexOf(w,Q);if(0<=P&&null!=z[P])z[P].focus();else{d.cloneNode(!1).setAttribute(Q,
-"");0<=P&&(w.splice(P,1),z.splice(P,1));w.push(Q);var M=k.addTextarea(Q+":","",2);M.style.width="100%";z.push(M);D(M,Q);M.focus()}U.setAttribute("disabled","disabled");K.value=""}catch(W){mxUtils.alert(W)}else mxUtils.alert(mxResources.get("invalidName"))});mxEvent.addListener(K,"keypress",function(Q){13==Q.keyCode&&U.click()});this.init=function(){0<z.length?z[0].focus():K.focus()};U.setAttribute("title",mxResources.get("addProperty"));U.setAttribute("disabled","disabled");U.style.textOverflow="ellipsis";
-U.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(Q){var P=h.getDataForCells([b],!0);Q=new EmbedDialog(a,JSON.stringify(P,null,2),null,null,function(){console.log(P);a.alert("Written to Console (Dev Tools)")},
-mxResources.get("export"),null,"Console","data.json");a.showDialog(Q.container,450,240,!0,!0);Q.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 Q=!1,P=0;P<w.length;P++)null==z[P]?d.removeAttribute(w[P]):(d.setAttribute(w[P],z[P].value),Q=Q||"placeholder"==w[P]&&"1"==d.getAttribute("placeholders"));Q&&d.removeAttribute("label");h.getModel().setValue(b,
+var EditDataDialog=function(a,b){function e(){0<K.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 p=mxUtils.getValue(a.editor.graph.getCurrentCellStyle(b),"metaData",null);null!=p&&(m=JSON.parse(p))}catch(Q){}var k=new mxForm("properties");k.table.style.width=
+"100%";var u=d.attributes,x=[],z=[],C=0,E=null!=EditDataDialog.getDisplayIdForCell?EditDataDialog.getDisplayIdForCell(a,b):null,D=function(Q,P){var M=document.createElement("div");M.style.position="relative";M.style.paddingRight="20px";M.style.boxSizing="border-box";M.style.width="100%";var V=document.createElement("a"),aa=mxUtils.createImage(Dialog.prototype.closeImage);aa.style.height="9px";aa.style.fontSize="9px";aa.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(aa);P=function(ia){return function(){for(var na=0,qa=0;qa<x.length;qa++){if(x[qa]==ia){z[qa]=null;k.table.deleteRow(na+(null!=E?1:0));break}null!=z[qa]&&na++}}}(P);mxEvent.addListener(V,"click",P);P=Q.parentNode;M.appendChild(Q);M.appendChild(V);P.appendChild(M)};g=function(Q,P,M){x[Q]=P;z[Q]=k.addTextarea(x[C]+
+":",M,2);z[Q].style.width="100%";0<M.indexOf("\n")&&z[Q].setAttribute("rows","2");D(z[Q],P);null!=m[P]&&0==m[P].editable&&z[Q].setAttribute("disabled","disabled")};p=[];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&&p.push({name:u[L].nodeName,value:u[L].nodeValue});p.sort(function(Q,P){return"label"==Q.name?1:"label"==P.name?-1:Q.name<P.name?-1:Q.name>
+P.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 T=k.addField(mxResources.get("id")+":",u);mxEvent.addListener(u,"dblclick",function(Q){Q=new FilenameDialog(a,E,mxResources.get("apply"),mxUtils.bind(this,function(P){if(null!=P&&0<P.length&&P!=E)if(h.model.isRoot(b)){var M=a.getPageById(E);if(null!=M)if(null==a.getPageById(P)){var V=a.getPageIndex(M);0<=V&&(a.removePage(M),M.node.setAttribute("id",
+P),E=P,T.innerHTML=mxUtils.htmlEntities(P),a.insertPage(M,V))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==h.getModel().getCell(P)?(h.getModel().cellRemoved(b),b.setId(P),E=P,T.innerHTML=mxUtils.htmlEntities(P),h.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[P])})}),mxResources.get("id"));a.showDialog(Q.container,300,80,!0,!0);Q.init()})}for(L=0;L<p.length;L++)g(C,p[L].name,p[L].value),C++;p=document.createElement("div");
+p.style.position="absolute";p.style.top="30px";p.style.left="30px";p.style.right="30px";p.style.bottom="80px";p.style.overflowY="auto";p.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 K=document.createElement("input");K.setAttribute("placeholder",mxResources.get("enterPropertyName"));K.setAttribute("type",
+"text");K.setAttribute("size",mxClient.IS_IE||mxClient.IS_IE11?"36":"40");K.style.boxSizing="border-box";K.style.borderWidth="1px";K.style.borderStyle="solid";K.style.marginLeft="2px";K.style.padding="4px";K.style.width="100%";g.appendChild(K);p.appendChild(g);f.appendChild(p);var U=mxUtils.button(mxResources.get("addProperty"),function(){var Q=K.value;if(0<Q.length&&"label"!=Q&&"id"!=Q&&"placeholders"!=Q&&0>Q.indexOf(":"))try{var P=mxUtils.indexOf(x,Q);if(0<=P&&null!=z[P])z[P].focus();else{d.cloneNode(!1).setAttribute(Q,
+"");0<=P&&(x.splice(P,1),z.splice(P,1));x.push(Q);var M=k.addTextarea(Q+":","",2);M.style.width="100%";z.push(M);D(M,Q);M.focus()}U.setAttribute("disabled","disabled");K.value=""}catch(V){mxUtils.alert(V)}else mxUtils.alert(mxResources.get("invalidName"))});mxEvent.addListener(K,"keypress",function(Q){13==Q.keyCode&&U.click()});this.init=function(){0<z.length?z[0].focus():K.focus()};U.setAttribute("title",mxResources.get("addProperty"));U.setAttribute("disabled","disabled");U.style.textOverflow="ellipsis";
+U.style.position="absolute";U.style.overflow="hidden";U.style.width="144px";U.style.right="0px";U.className="geBtn";g.appendChild(U);p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog.apply(a,arguments)});p.setAttribute("title","Escape");p.className="geBtn";g=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(Q){var P=h.getDataForCells([b],!0);Q=new EmbedDialog(a,JSON.stringify(P,null,2),null,null,function(){console.log(P);a.alert("Written to Console (Dev Tools)")},
+mxResources.get("export"),null,"Console","data.json");a.showDialog(Q.container,450,240,!0,!0);Q.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 Q=!1,P=0;P<x.length;P++)null==z[P]?d.removeAttribute(x[P]):(d.setAttribute(x[P],z[P].value),Q=Q||"placeholder"==x[P]&&"1"==d.getAttribute("placeholders"));Q&&d.removeAttribute("label");h.getModel().setValue(b,
d)}catch(M){mxUtils.alert(M)}});Y.setAttribute("title","Ctrl+Enter");Y.className="geBtn gePrimaryBtn";mxEvent.addListener(f,"keypress",function(Q){13==Q.keyCode&&mxEvent.isControlDown(Q)&&Y.click()});mxEvent.addListener(K,"keyup",e);mxEvent.addListener(K,"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",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;
+u.appendChild(G);a.editor.cancelFirst&&u.appendChild(p);u.appendChild(g);u.appendChild(Y);a.editor.cancelFirst||u.appendChild(p);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)";
mxEvent.addListener(b,"click",function(){g.value="";g.focus()});d.appendChild(g);d.appendChild(b);h.appendChild(d);this.init=function(){g.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?g.select():document.execCommand("selectAll",!1,null)};d=document.createElement("div");d.style.marginTop="18px";d.style.textAlign="right";mxEvent.addListener(g,"keypress",function(m){13==m.keyCode&&(a.hideDialog(),f(g.value))});b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});
b.className="geBtn";a.editor.cancelFirst&&d.appendChild(b);e=mxUtils.button(e,function(){a.hideDialog();f(g.value)});e.className="geBtn gePrimaryBtn";d.appendChild(e);a.editor.cancelFirst||d.appendChild(b);h.appendChild(d);this.container=h},OutlineWindow=function(a,b,e,f,h){var d=a.editor.graph,g=document.createElement("div");g.style.position="absolute";g.style.width="100%";g.style.height="100%";g.style.overflow="hidden";this.window=new mxWindow(mxResources.get("outline"),g,b,e,f,h,!0,!0);this.window.minimumSize=
new mxRectangle(0,0,80,80);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);var m=a.createOutline(this.window);a.installResizeHandler(this,!0,function(){m.destroy()});this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit();m.setSuspended(!1)}));this.window.addListener(mxEvent.HIDE,mxUtils.bind(this,function(){m.setSuspended(!0)}));this.window.addListener(mxEvent.NORMALIZE,mxUtils.bind(this,
-function(){m.setSuspended(!1)}));this.window.addListener(mxEvent.MINIMIZE,mxUtils.bind(this,function(){m.setSuspended(!0)}));m.init(g);mxEvent.addMouseWheelListener(function(q,k){for(var u=!1,w=mxEvent.getSource(q);null!=w;){if(w==m.svg){u=!0;break}w=w.parentNode}u&&(u=d.zoomFactor,null!=q.deltaY&&Math.round(q.deltaY)!=q.deltaY&&(u=1+Math.abs(q.deltaY)/20*(u-1)),d.lazyZoom(k,null,null,u),mxEvent.consume(q))})},LayersWindow=function(a,b,e,f,h){function d(){var P=K.get(q.getLayerForCells(q.getSelectionCells()));
-null!=P?P.appendChild(Q):null!=Q.parentNode&&Q.parentNode.removeChild(Q)}function g(){function P(aa,ia,oa,qa){var O=document.createElement("div");O.className="geToolbarContainer";K.put(oa,O);O.style.overflow="hidden";O.style.position="relative";O.style.padding="4px";O.style.height="22px";O.style.display="flex";O.style.alignItems="center";O.style.borderWidth="0px 0px 1px 0px";O.style.borderStyle="solid";O.style.whiteSpace="nowrap";O.setAttribute("title",ia+" ("+oa.getId()+")");var Z=document.createElement("div");
-Z.style.display="inline-flex";Z.style.alignItems="center";Z.style.width="100%";Z.style.textOverflow="ellipsis";Z.style.overflow="hidden";var ca=document.createElement("span");mxEvent.addListener(O,"dragover",function(H){H.dataTransfer.dropEffect="move";z=aa;H.stopPropagation();H.preventDefault()});mxEvent.addListener(O,"dragstart",function(H){"true"!=ca.contentEditable&&(w=O,mxClient.IS_FF&&H.dataTransfer.setData("Text","<layer/>"))});mxEvent.addListener(O,"dragend",function(H){null!=w&&null!=z&&
-q.addCell(oa,q.model.root,z);z=w=null;H.stopPropagation();H.preventDefault()});var V=document.createElement("img");V.setAttribute("draggable","false");V.setAttribute("align","top");V.setAttribute("border","0");V.className="geAdaptiveAsset";V.style.width="16px";V.style.padding="0px 6px 0 4px";V.style.cursor="pointer";V.setAttribute("title",mxResources.get(q.model.isVisible(oa)?"hide":"show"));q.model.isVisible(oa)?(V.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(O,90)):(V.setAttribute("src",
-Editor.hiddenImage),mxUtils.setOpacity(O,40));q.isEnabled()||mxUtils.setOpacity(V,50);Z.appendChild(V);mxEvent.addListener(V,"click",function(H){q.isEnabled()&&q.model.setVisible(oa,!q.model.isVisible(oa));mxEvent.consume(H)});V=document.createElement("img");V.setAttribute("draggable","false");V.setAttribute("align","top");V.setAttribute("border","0");V.className="geAdaptiveAsset";V.style.width="16px";V.style.padding="0px 6px 0 0";V.setAttribute("title",mxResources.get("lockUnlock"));var ja=q.getCurrentCellStyle(oa);
-"1"==mxUtils.getValue(ja,"locked","0")?(V.setAttribute("src",Editor.lockedImage),mxUtils.setOpacity(V,90),O.style.color="red"):(V.setAttribute("src",Editor.unlockedImage),mxUtils.setOpacity(V,40));q.isEnabled()&&(V.style.cursor="pointer");mxEvent.addListener(V,"click",function(H){if(q.isEnabled()){var ea=null;q.getModel().beginUpdate();try{ea="1"==mxUtils.getValue(ja,"locked","0")?null:"1",q.setCellStyles("locked",ea,[oa])}finally{q.getModel().endUpdate()}"1"==ea&&q.removeSelectionCells(q.getModel().getDescendants(oa));
-mxEvent.consume(H)}});Z.appendChild(V);mxUtils.write(ca,ia);ca.style.display="block";ca.style.whiteSpace="nowrap";ca.style.overflow="hidden";ca.style.textOverflow="ellipsis";ca.style.position="absolute";ca.style.padding="2px";ca.style.left="52px";ca.style.right="8px";Z.appendChild(ca);O.appendChild(Z);if(q.isEnabled()){if(mxClient.IS_TOUCH||mxClient.IS_POINTER||mxClient.IS_IE&&10>document.documentMode)ia=document.createElement("div"),ia.style.display="block",ia.style.textAlign="right",ia.style.whiteSpace=
-"nowrap",ia.style.position="absolute",ia.style.right="16px",ia.style.top="6px",0<aa&&(Z=document.createElement("a"),Z.setAttribute("title",mxResources.get("toBack")),Z.className="geButton",Z.style.cssFloat="none",Z.innerHTML="&#9660;",Z.style.width="14px",Z.style.height="14px",Z.style.fontSize="14px",Z.style.margin="0px",Z.style.marginTop="-1px",ia.appendChild(Z),mxEvent.addListener(Z,"click",function(H){q.isEnabled()&&q.addCell(oa,q.model.root,aa-1);mxEvent.consume(H)})),0<=aa&&aa<C-1&&(Z=document.createElement("a"),
-Z.setAttribute("title",mxResources.get("toFront")),Z.className="geButton",Z.style.cssFloat="none",Z.innerHTML="&#9650;",Z.style.width="14px",Z.style.height="14px",Z.style.fontSize="14px",Z.style.margin="0px",Z.style.marginTop="-1px",ia.appendChild(Z),mxEvent.addListener(Z,"click",function(H){q.isEnabled()&&q.addCell(oa,q.model.root,aa+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"!=ca.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"!=ca.contentEditable&&(q.setDefaultParent(qa),q.view.setCurrentRoot(null),mxEvent.isShiftDown(H)&&q.setSelectionCells(oa.children),mxEvent.consume(H))});u.appendChild(O)}q.isEnabled()?(I.classList.remove("mxDisabled"),
-T.classList.remove("mxDisabled"),U.classList.remove("mxDisabled"),Y.classList.remove("mxDisabled")):(I.classList.add("mxDisabled"),T.classList.add("mxDisabled"),U.classList.add("mxDisabled"),Y.classList.add("mxDisabled"));C=q.model.getChildCount(q.model.root);u.innerText="";K.clear();for(var M=C-1;0<=M;M--)mxUtils.bind(this,function(aa){P(M,q.convertValueToString(aa)||mxResources.get("background"),aa,aa)})(q.model.getChildAt(q.model.root,M));var W=q.convertValueToString(E)||mxResources.get("background");
-I.setAttribute("title",mxResources.get("removeIt",[W]));U.setAttribute("title",mxResources.get("duplicateIt",[W]));q.isSelectionEmpty()&&L.classList.add("mxDisabled");d()}function m(P){if(q.isEnabled()&&null!=P){var M=K.get(P);if(null!=M){var W=M.getElementsByTagName("span");if(null!=W&&0<W.length){var aa=W[0],ia=mxUtils.getTextContent(aa);aa.style.textOverflow="";aa.style.cursor="text";aa.contentEditable="true";aa.focus();document.execCommand("selectAll",!1,null);M.removeAttribute("draggable");M.style.cursor=
-"";var oa=function(qa){if("true"==aa.contentEditable){aa.contentEditable="false";var O=mxUtils.getTextContent(aa);qa&&O!=ia?(O=mxUtils.getTextContent(aa),0<O.length?q.cellLabelChanged(P,O):q.cellLabelChanged(P,mxResources.get("untitledLayer"))):g()}};mxEvent.addListener(aa,"keydown",function(qa){if(13==qa.keyCode||27==qa.keyCode)oa(13==qa.keyCode),mxEvent.consume(qa)});mxEvent.addListener(aa,"blur",function(qa){oa(!0);mxEvent.consume(qa)})}}}}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(P){P.dataTransfer.dropEffect="move";z=0;P.stopPropagation();P.preventDefault()});mxEvent.addListener(k,"drop",function(P){P.stopPropagation();P.preventDefault()});
+function(){m.setSuspended(!1)}));this.window.addListener(mxEvent.MINIMIZE,mxUtils.bind(this,function(){m.setSuspended(!0)}));m.init(g);mxEvent.addMouseWheelListener(function(p,k){for(var u=!1,x=mxEvent.getSource(p);null!=x;){if(x==m.svg){u=!0;break}x=x.parentNode}u&&(u=d.zoomFactor,null!=p.deltaY&&Math.round(p.deltaY)!=p.deltaY&&(u=1+Math.abs(p.deltaY)/20*(u-1)),d.lazyZoom(k,null,null,u),mxEvent.consume(p))})},LayersWindow=function(a,b,e,f,h){function d(){var P=K.get(p.getLayerForCells(p.getSelectionCells()));
+null!=P?P.appendChild(Q):null!=Q.parentNode&&Q.parentNode.removeChild(Q)}function g(){function P(aa,ia,na,qa){var O=document.createElement("div");O.className="geToolbarContainer";K.put(na,O);O.style.overflow="hidden";O.style.position="relative";O.style.padding="4px";O.style.height="22px";O.style.display="flex";O.style.alignItems="center";O.style.borderWidth="0px 0px 1px 0px";O.style.borderStyle="solid";O.style.whiteSpace="nowrap";O.setAttribute("title",ia+" ("+na.getId()+")");var Z=document.createElement("div");
+Z.style.display="inline-flex";Z.style.alignItems="center";Z.style.width="100%";Z.style.textOverflow="ellipsis";Z.style.overflow="hidden";var ca=document.createElement("span");mxEvent.addListener(O,"dragover",function(H){H.dataTransfer.dropEffect="move";z=aa;H.stopPropagation();H.preventDefault()});mxEvent.addListener(O,"dragstart",function(H){"true"!=ca.contentEditable&&(x=O,mxClient.IS_FF&&H.dataTransfer.setData("Text","<layer/>"))});mxEvent.addListener(O,"dragend",function(H){null!=x&&null!=z&&
+p.addCell(na,p.model.root,z);z=x=null;H.stopPropagation();H.preventDefault()});var W=document.createElement("img");W.setAttribute("draggable","false");W.setAttribute("align","top");W.setAttribute("border","0");W.className="geAdaptiveAsset";W.style.width="16px";W.style.padding="0px 6px 0 4px";W.style.cursor="pointer";W.setAttribute("title",mxResources.get(p.model.isVisible(na)?"hide":"show"));p.model.isVisible(na)?(W.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(O,90)):(W.setAttribute("src",
+Editor.hiddenImage),mxUtils.setOpacity(O,40));p.isEnabled()||mxUtils.setOpacity(W,50);Z.appendChild(W);mxEvent.addListener(W,"click",function(H){p.isEnabled()&&p.model.setVisible(na,!p.model.isVisible(na));mxEvent.consume(H)});W=document.createElement("img");W.setAttribute("draggable","false");W.setAttribute("align","top");W.setAttribute("border","0");W.className="geAdaptiveAsset";W.style.width="16px";W.style.padding="0px 6px 0 0";W.setAttribute("title",mxResources.get("lockUnlock"));var ja=p.getCurrentCellStyle(na);
+"1"==mxUtils.getValue(ja,"locked","0")?(W.setAttribute("src",Editor.lockedImage),mxUtils.setOpacity(W,90),O.style.color="red"):(W.setAttribute("src",Editor.unlockedImage),mxUtils.setOpacity(W,40));p.isEnabled()&&(W.style.cursor="pointer");mxEvent.addListener(W,"click",function(H){if(p.isEnabled()){var ea=null;p.getModel().beginUpdate();try{ea="1"==mxUtils.getValue(ja,"locked","0")?null:"1",p.setCellStyles("locked",ea,[na])}finally{p.getModel().endUpdate()}"1"==ea&&p.removeSelectionCells(p.getModel().getDescendants(na));
+mxEvent.consume(H)}});Z.appendChild(W);mxUtils.write(ca,ia);ca.style.display="block";ca.style.whiteSpace="nowrap";ca.style.overflow="hidden";ca.style.textOverflow="ellipsis";ca.style.position="absolute";ca.style.padding="2px";ca.style.left="52px";ca.style.right="8px";Z.appendChild(ca);O.appendChild(Z);if(p.isEnabled()){if(mxClient.IS_TOUCH||mxClient.IS_POINTER||mxClient.IS_IE&&10>document.documentMode)ia=document.createElement("div"),ia.style.display="block",ia.style.textAlign="right",ia.style.whiteSpace=
+"nowrap",ia.style.position="absolute",ia.style.right="16px",ia.style.top="6px",0<aa&&(Z=document.createElement("a"),Z.setAttribute("title",mxResources.get("toBack")),Z.className="geButton",Z.style.cssFloat="none",Z.innerHTML="&#9660;",Z.style.width="14px",Z.style.height="14px",Z.style.fontSize="14px",Z.style.margin="0px",Z.style.marginTop="-1px",ia.appendChild(Z),mxEvent.addListener(Z,"click",function(H){p.isEnabled()&&p.addCell(na,p.model.root,aa-1);mxEvent.consume(H)})),0<=aa&&aa<C-1&&(Z=document.createElement("a"),
+Z.setAttribute("title",mxResources.get("toFront")),Z.className="geButton",Z.style.cssFloat="none",Z.innerHTML="&#9650;",Z.style.width="14px",Z.style.height="14px",Z.style.fontSize="14px",Z.style.margin="0px",Z.style.marginTop="-1px",ia.appendChild(Z),mxEvent.addListener(Z,"click",function(H){p.isEnabled()&&p.addCell(na,p.model.root,aa+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"!=ca.contentEditable&&(m(na),mxEvent.consume(H))});p.getDefaultParent()==na&&(O.classList.add("geActivePage"),O.style.fontWeight=p.isEnabled()?"bold":"",E=na);mxEvent.addListener(O,"click",function(H){p.isEnabled()&&"true"!=ca.contentEditable&&(p.setDefaultParent(qa),p.view.setCurrentRoot(null),mxEvent.isShiftDown(H)&&p.setSelectionCells(na.children),mxEvent.consume(H))});u.appendChild(O)}p.isEnabled()?(I.classList.remove("mxDisabled"),
+T.classList.remove("mxDisabled"),U.classList.remove("mxDisabled"),Y.classList.remove("mxDisabled")):(I.classList.add("mxDisabled"),T.classList.add("mxDisabled"),U.classList.add("mxDisabled"),Y.classList.add("mxDisabled"));C=p.model.getChildCount(p.model.root);u.innerText="";K.clear();for(var M=C-1;0<=M;M--)mxUtils.bind(this,function(aa){P(M,p.convertValueToString(aa)||mxResources.get("background"),aa,aa)})(p.model.getChildAt(p.model.root,M));var V=p.convertValueToString(E)||mxResources.get("background");
+I.setAttribute("title",mxResources.get("removeIt",[V]));U.setAttribute("title",mxResources.get("duplicateIt",[V]));p.isSelectionEmpty()&&L.classList.add("mxDisabled");d()}function m(P){if(p.isEnabled()&&null!=P){var M=K.get(P);if(null!=M){var V=M.getElementsByTagName("span");if(null!=V&&0<V.length){var aa=V[0],ia=mxUtils.getTextContent(aa);aa.style.textOverflow="";aa.style.cursor="text";aa.contentEditable="true";aa.focus();document.execCommand("selectAll",!1,null);M.removeAttribute("draggable");M.style.cursor=
+"";var na=function(qa){if("true"==aa.contentEditable){aa.contentEditable="false";var O=mxUtils.getTextContent(aa);qa&&O!=ia?(O=mxUtils.getTextContent(aa),0<O.length?p.cellLabelChanged(P,O):p.cellLabelChanged(P,mxResources.get("untitledLayer"))):g()}};mxEvent.addListener(aa,"keydown",function(qa){if(13==qa.keyCode||27==qa.keyCode)na(13==qa.keyCode),mxEvent.consume(qa)});mxEvent.addListener(aa,"blur",function(qa){na(!0);mxEvent.consume(qa)})}}}}var p=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 x=null,z=null;mxEvent.addListener(k,"dragover",function(P){P.dataTransfer.dropEffect="move";z=0;P.stopPropagation();P.preventDefault()});mxEvent.addListener(k,"drop",function(P){P.stopPropagation();P.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 I=G.cloneNode(!1);I.style.backgroundImage="url("+Editor.trashImage+")";I.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(I,"click",function(P){if(q.isEnabled()){q.model.beginUpdate();try{var M=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<M&&M<=q.model.getChildCount(q.model.root)?q.setDefaultParent(q.model.getChildAt(q.model.root,M-1)):q.setDefaultParent(null)}finally{q.model.endUpdate()}}mxEvent.consume(P)});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(P){if(q.isEnabled()&&!q.isSelectionEmpty()){var M=
-mxUtils.getOffset(L);a.showPopupMenu(mxUtils.bind(this,function(W,aa){for(var ia=q.getLayerForCells(q.getSelectionCells()),oa=C-1;0<=oa;oa--)mxUtils.bind(this,function(qa){var O="1"==mxUtils.getValue(q.getCurrentCellStyle(qa),"locked","0"),Z=W.addItem(q.convertValueToString(qa)||mxResources.get("background"),null,mxUtils.bind(this,function(){O||q.moveCells(q.getSelectionCells(),0,0,!1,qa)}),aa,null,null,!O);O?W.addCheckmark(Z,Editor.lockedImage):qa==ia&&W.addCheckmark(Z,Editor.checkmarkImage)})(q.model.getChildAt(q.model.root,
-oa))}),M.x,M.y+L.offsetHeight,P)}});D.appendChild(L);var T=G.cloneNode(!1);T.style.backgroundImage="url("+Editor.editImage+")";T.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(T,"click",function(P){q.isEnabled()&&a.showDataDialog(E);mxEvent.consume(P)});q.isEnabled()||T.classList.add("mxDisabled");D.appendChild(T);var K=new mxDictionary,U=G.cloneNode(!1);U.style.backgroundImage="url("+Editor.duplicateImage+")";U.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(U,
-"click",function(P){if(q.isEnabled()){P=null;q.model.beginUpdate();try{P=q.cloneCell(E),q.cellLabelChanged(P,mxResources.get("untitledLayer")),P.setVisible(!0),P=q.addCell(P,q.model.root),q.setDefaultParent(P)}finally{q.model.endUpdate()}null==P||q.isCellLocked(P)||q.selectAll(P)}});q.isEnabled()||U.classList.add("mxDisabled");D.appendChild(U);var Y=G.cloneNode(!1);Y.style.backgroundImage="url("+Editor.plusImage+")";Y.setAttribute("title",mxResources.get("addLayer"));mxEvent.addListener(Y,"click",
-function(P){if(q.isEnabled()){q.model.beginUpdate();try{var M=q.addCell(new mxCell(mxResources.get("untitledLayer")),q.model.root);q.setDefaultParent(M)}finally{q.model.endUpdate()}m(M)}mxEvent.consume(P)});q.isEnabled()||Y.classList.add("mxDisabled");D.appendChild(Y);k.appendChild(D);var Q=document.createElement("span");Q.setAttribute("title",mxResources.get("selectionOnly"));Q.innerHTML="&#8226;";Q.style.position="absolute";Q.style.fontWeight="bold";Q.style.fontSize="16pt";Q.style.right="6px";g();
-q.model.addListener(mxEvent.CHANGE,g);q.addListener("defaultParentChanged",g);a.addListener("lockedChanged",g);q.selectionModel.addListener(mxEvent.CHANGE,function(){q.isSelectionEmpty()?L.classList.add("mxDisabled"):L.classList.remove("mxDisabled");d()});this.window=new mxWindow(mxResources.get("layers"),k,b,e,f,h,!0,!0);this.window.minimumSize=new mxRectangle(0,0,150,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);
+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(P){if(p.isEnabled()){p.model.beginUpdate();try{var M=p.model.root.getIndex(E);p.removeCells([E],!1);0==p.model.getChildCount(p.model.root)?(p.model.add(p.model.root,
+new mxCell),p.setDefaultParent(null)):0<M&&M<=p.model.getChildCount(p.model.root)?p.setDefaultParent(p.model.getChildAt(p.model.root,M-1)):p.setDefaultParent(null)}finally{p.model.endUpdate()}}mxEvent.consume(P)});p.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(P){if(p.isEnabled()&&!p.isSelectionEmpty()){var M=
+mxUtils.getOffset(L);a.showPopupMenu(mxUtils.bind(this,function(V,aa){for(var ia=p.getLayerForCells(p.getSelectionCells()),na=C-1;0<=na;na--)mxUtils.bind(this,function(qa){var O="1"==mxUtils.getValue(p.getCurrentCellStyle(qa),"locked","0"),Z=V.addItem(p.convertValueToString(qa)||mxResources.get("background"),null,mxUtils.bind(this,function(){O||p.moveCells(p.getSelectionCells(),0,0,!1,qa)}),aa,null,null,!O);O?V.addCheckmark(Z,Editor.lockedImage):qa==ia&&V.addCheckmark(Z,Editor.checkmarkImage)})(p.model.getChildAt(p.model.root,
+na))}),M.x,M.y+L.offsetHeight,P)}});D.appendChild(L);var T=G.cloneNode(!1);T.style.backgroundImage="url("+Editor.editImage+")";T.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(T,"click",function(P){p.isEnabled()&&a.showDataDialog(E);mxEvent.consume(P)});p.isEnabled()||T.classList.add("mxDisabled");D.appendChild(T);var K=new mxDictionary,U=G.cloneNode(!1);U.style.backgroundImage="url("+Editor.duplicateImage+")";U.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(U,
+"click",function(P){if(p.isEnabled()){P=null;p.model.beginUpdate();try{P=p.cloneCell(E),p.cellLabelChanged(P,mxResources.get("untitledLayer")),P.setVisible(!0),P=p.addCell(P,p.model.root),p.setDefaultParent(P)}finally{p.model.endUpdate()}null==P||p.isCellLocked(P)||p.selectAll(P)}});p.isEnabled()||U.classList.add("mxDisabled");D.appendChild(U);var Y=G.cloneNode(!1);Y.style.backgroundImage="url("+Editor.plusImage+")";Y.setAttribute("title",mxResources.get("addLayer"));mxEvent.addListener(Y,"click",
+function(P){if(p.isEnabled()){p.model.beginUpdate();try{var M=p.addCell(new mxCell(mxResources.get("untitledLayer")),p.model.root);p.setDefaultParent(M)}finally{p.model.endUpdate()}m(M)}mxEvent.consume(P)});p.isEnabled()||Y.classList.add("mxDisabled");D.appendChild(Y);k.appendChild(D);var Q=document.createElement("span");Q.setAttribute("title",mxResources.get("selectionOnly"));Q.innerHTML="&#8226;";Q.style.position="absolute";Q.style.fontWeight="bold";Q.style.fontSize="16pt";Q.style.right="6px";g();
+p.model.addListener(mxEvent.CHANGE,g);p.addListener("defaultParentChanged",g);a.addListener("lockedChanged",g);p.selectionModel.addListener(mxEvent.CHANGE,function(){p.isSelectionEmpty()?L.classList.add("mxDisabled"):L.classList.remove("mxDisabled");d()});this.window=new mxWindow(mxResources.get("layers"),k,b,e,f,h,!0,!0);this.window.minimumSize=new mxRectangle(0,0,150,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);
this.init=function(){u.scrollTop=u.scrollHeight-u.clientHeight};this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));this.refreshLayers=g;a.installResizeHandler(this,!0)};
(function(){Sidebar.prototype.tagIndex="5V1dV+M6sv01rDvngax0oLvveYQEaGaAziE0PW8sxVYSDbblI9uk6V9/VVWS7ST+kB0zL3etbmIn3ltlfZRKUqkU/rpRLN6MmFJym5yM/8QL/Xnw7yLceXQ03fA3JaOTyfjCQCKZehvu66tErCMW6J9E1M4jlJcFTJWIPP1VIKK1ixj/zML4VBRiTMaf9HOKx8G7/lwy71V/ZJEv8Vv8cKea9KW646tU41nk678/4tK7SZVu5FpC9oz/TDPVnkEPJlsn4wVma1lEnVemGByy6q+M+SXkSmaQ6Vv27gJeBDzyOQDMu1ma5FVEEVBEtuokgQhdyZ62Uv/9qWWoYPRltgx4A3U970/hc6BnIuD+kdI+KbGTcelGce6ec4evOBl/k0r8llGKtWBTvulF98xVKjzEvxWXDVS/M8VHF57Hk0TDpzpxJQGScC9TIoX3euXvVV/UcWWpDFkqsCYyfaM/1ly36vGfgVhv0oiasyfh7ypgyaaBaKHl5/nThqb5VeAvZEigXx8k0AolJJUkVjo7jGBOHFOm29Se3FZin6VsyRL42V+2U90z9crTOGAeIEK8Q1UCnMlGxk4CLWb/gsflKt0y/MLnbzyQccgjaIivAjgTT/Gtr4Quf9cXXWRLjRKxyRwvkBko75hHnjisPzUkP/kyESnHtwoAtQ7kkrehL7UyzUAtLrh6E5g7Nnn9iYo2SWW8ZVr1QYsTIW8gE+ll5kHWQlXGdr/Qug1Zl/RDe2O4FL+fWPBaiJSUZGoDT6HRYT3DN9Gdgy4agY3Q59gj+iIOdAOB/MmYYlHKqYp5PMLaFHMVirSSG2XYySnnZrGHNW19JdaZoiYxGV8LbGq+9DKsT0APT3Sk1ldzXaZszQvOpfzlkndUYodytAPDOEuxuocyEqlUmM+Jbm6HevkAq0sAW8+MB9BmQJs+8HQr1Wup3G2zL6uCetJZjXKofV7J+FLnUUWtxZyLTYa20FzpV1GxEgnVdxH4JOgyS0QECr4F3z3nEUHWUQfUjUi/ZUv7tjqTGaCkl0q6Wou0Ef9tdhslUBAn9Xq4GshZkG6gTmx0m8EqvuGoYzb4iwMYdDnVMcpbS2QM3TYB3mM0Sp71/0fuSVPf7lmki1d10DN3LE6x0/CKut+GuddVgGpRyFCtc/sZYS/Cm9FySdUj3sgIPlOZeZvWNAm1o0uTXH81UO3zZEEqQDkwD5q37t+zdAOqNe/RS/aJ6Tdi5purBt73xV930PiLapT8HTTXqz2Kh7JloQ26bIlVOtAl6dIY9uBPMhbeCdgtu/ZLJeEe1XdduTSPrpc6v9+TlIf64jakMpeQ9RumQFVr3YiV3vcb+eZyy9Viw4Ogl1p+nM2xmofSyNSdYgHjnSzA6m26fu+wTKtwYM30S1LXTkxPsYp0qp+nbu8yg271r4xnWM3/hoseBI+8qttygmLlSfLhZtmsS7CZUd1Kds295iT2m4dTh7aH0qLgF2QqGo5qVVdLtHiPvIp2mdDXinvvXtBgGhLRI4/1sJs09z5TqY6sRCNVqlU+2qxPDNuRuxm20MqLmqNOO3CqHRqxEGEclC3jNtATkMOLhFZpOynrH5FAc3UlcKRsbJHvy/9wD8iylUSFJHhrrfmRYBPaZCGDZ2Mu6QXolr3prFf16OdvsxOjqyqUVPXzVEngw+g2Qrur8WehCxWnqu71sE9gv/QWnrSalK00WglxllLFX+VXVaxv1TMae7yFcRrlV2059PNiNr2+wdxh60gmKamJ7trRDvIm4xsecYXqxI7z6sQ5pICWKDHp6jFiEyjpgtLioL1lU6MmSu3VHZm0QtcI1RVNeCPPjIeKHnuZLamxJzHnNIzdyIzsV2+DJm+Y22ZVlPINS35AxuFl1Bo4nQ5IJ7PIfxyW8xzGplLgaG9BGginPqsrUhn55RCZiLoxbRn4v4dAbkYubdBLFkWoRfXYs24CvPz8lGzpNZchT1XDzN8OSEkcF8ZBhnP+1cq2jJgddJORxMmOmMX7w5A96HXzILoS882Mr/IBWqAHTcjxejheKQPvJRo3kWNuP0g0msMlzn6upFoK36/o6A6R34t5fG0RKMGiNdXSwyFVJX4R6mwE9Y+GsodSb1gcv7cCTRUWmCEx1rI2SAbsPvY2+m9QmTl7mCeBdrAdKeMnTGC24X4ylMvU3qWtzY2Yf5/QdB+kwyKPB1i9agqkwEqZJqm+HLULWY27rx0Q72mUWoass8VjGOIQHihN0cRKenQVagMsqEtZ40YXPq4geB2yGWCXNjHdvWUBLwzZJqO0hL+TVEJ2va5urbACZWbCVYXEuLKywZep5bhnERlBRuANDHRa5c1HgwZlFJY2kWnipFFzIUE+znKy+EtINIQLcbvWDo8tdUmlOANNl1A7/85EXGmvHeBG00tYB81LS0AuLBVnVATUY8Ryv9DreSbjX5/Gw7BN6qTSVmRHniapOrKd1UqFa33dmLRcn4eiO68TzJgwXYga5OrAdj+l/P+s/3w5u4BXnkOdFpGwo5wOb+7Cf+7CX/0GtfRfzjCN8YfJX05g2BeQMAv9mxwCtgIWyOwr5L/o7pR+6SJ3Fe/5QLwwr4C6BIv1fKyzpToXHJTbLiG8/GQotrMJyTgA31zp7sYz07uavDfhI0+ET93fNFPKrlqZnmkCBaS85u7Qkeu8E9ciU7jYt/Oin4Cirkdwp8G3qlPh7jTYKupVrjsR5kytjqzkeYIFXRodnI/DcJL3VsvKmexWjgEoQCsdT/N5gLf5grrxeJ6vHTm4gO6UlxdM9fCJr5VdTooZGIdRDXwVSKniAK23gL3Xr/TsPT66RK06s+5MS1xeX2UqEqZDcGRYCDPKrMfWwKV89WhCtCt0umFC9cHJWKCO87lZ93ND0Yx1Ilesax5NH5/A6H4+Kc+ulmZcK+SoYJnx5BWnwRUNUOzoqJMouyS0VN6PSOkRm10jTnAgsGXKVzQTWkNVwXMVcD3cwHzgiccCc+0iwrV+eIB8vYYrzXPHQmiE1ZMQ1dCqZe8YRowhM391K5bkoGWFgTnpJC0cvypov69W1PHZKu61VvUKlrlgOFehv8dRqYiSVFVPrFeh9R+a6FKwUKF/2DYN5EtABZqrc/t6ZBF2b+Aky+I4EDDf0hE76YPlKyXWsFCNdaYrfEHqwDPaoVMBPZl25/OkuXfYh1AuGViPJI2HzBH4syPx50fiP/fFS0ErkVp1KFpUCxjqH1AdWqWlSspDr9t9mp8sRe05lZKcAbbwhWfvXCT5uaMGgh6KpJLW1xfoBw3LaFijA7pLbA/dLBaAHq0vExEoc+vIsCVvS8dsgKfzHs2zF5UcNegfdc9XQw7LtzEBEfnVuw5qsk9o/ZpU+TG0Qy5lmqJsZZKl/bKVR1cmoRI9kMKywhvIGYGrFIq+bi/73BQ0hZ97urenL6JXo5mqakobbtIVV66p/w8gNxay1cYALkHB9QnaBuTxx//OCudewXQalev3OcXoIopkah29PmH7C415oHVru0dODdPkGKapDAJyVt7oUe06YBVuotXIfZ+gJPdtaYfWuto0odAH8LSEDeELJ+eFgmTOYjMjHzutTu3jF0WpG5cTsOdrF/oO4OA7ZEqfB4GIEzsLWN3o6/CT3nipaAhKotcVWg06C0PjypdFnnW8zKDa16wc7zM8ads4WfHympGqW4QkbMBZ9BJqM5HWi99YkIFBog0Hzio7lkrk6FpEIqHNUzdS+rD2lUqc/dJZEPYVaHSDy8bczBP5mZ0nMo6LJDO2Kt7crnZYv2dpIkqO4Lj+UwiaZGA0N9XXHbZnPaKg7UVm+cmsVbpgLwQqTBDlK2QRjYqU9WGg36q1rR4EKSmgVoQS93g0qWbzMLnj/zKeThc2Ny9xdcxvW89tJ4FBZ+TrYS822IEJJ+OfG7MBproKdaU+lm6ha0k6VD5Wkg2Rn63EH5QRvWjn4LGOw95S7TY+lo3TH5bgr0x4r7qHlmhA5xdL8inC2+X+qnIjibHk+hEt7HPJHmiPr5FDKwqa25qJBIaLoGOvda+c0H4n10rRyKPrgymjDoVVMM5x8qynOBbcSwY9gDZTfidm4q9hNigH6Zq7EjwAgaEWn4CdRLdtSHCS1yLr+oE6voukO1CwEDCn2jNsm2CDCNlvtAe2HK3BYr8H2yZ1uJHuZl7so7STbMGZwqkd6+yc2C8a0q/ngU2T1/pvyFPmk83Tn/jK+AeZjy7QxdUCkrSe3NbTqNgL40jzsEOzt6u1D9tkTG81GT/skQ2ayLenp/lHp2H3zgzG+tdOZtsNHX1oJuNi99VAhH9Z9NF0P6/LNDBfboa6fZhgGdkTPhmqg3Eaf+zelGaa70Uruxfjpw7m7dWUBlIMPOJLqqEnlbYw7m/rCMN8W4EIq3yU28lRr/00O6EP07B7pPtJPgO3BzSObqMkNTPyh4nQVpli6C+Kh7umeGXIdYrzyrTE4a54V+7GdziaNakWdy8rutDfP+5Q6uGXHqZnFasiznRQXfSQERvNwMTfZtcLB/4N88lR1Bd6tC6Wmg+3UpO1nNAGReekn+dT/fCb2QYDbrLizeyyPyxWZ8bSBMBkfKP5KJTH8MncwhpdhJEJPjKZR2kWM4anfp4/4AqMtort1M9HJXJkDjXvCa99fDR7j1goZ+Ci5eNlH6zuA1JT24fiScpErMTelfGWWtwxQgHFjjzCtuJuPPlabFdZTK9hY7OU1LD5pjsLmKV+V7LRWsksxq1hcNHhDR5nYFYqnRg0I1Y7DGhmMD12qaM7njEng52y6I//yONAG9BDsy/0hb98H4T2Hv7Q9t5BMyMPDTB4Nn9XzMNV9SGpaZMwKq/cRu6MBdc0PRqMupDoGiLfYQUGNXqIoSzglobh11Ll0aDyYCql7wahxgrlvX5sEk9cZ8huDzRQKtakbzDk+1FCGCwTPmIQ6tuLe/08bRLHSBvMs1uV8of6M2tpff8UM/Pjklg8LY7ij2R0alrmSxLrke4KNjZKlWGvuIKL9jaT+K844epjeCsbzgtnkPNwXuM/X3fC4BwyjB44eY2kUW1gqzKElvowWzyKevTim5hHprYrSXGfbPU290OwgmbZRoHEXmVmBwR7emHQ9K589FG7k96B/hk0nQWuRNKy6Ee92NUl1NrCPFkWodFqXT7dWLX8EYuTjUw/LIFnGWQh/wD6BXjF5f1UsZTtMB/UxgsRVUy8uA9OYDJGlyEbZyNpS1HacBx90z06HU8knhzZ+GJAVIo1Vl/L92CjS6WtHnxx8r5FZ4xmPbZPYWNQQGbmEnRmuZ+BSxs5k2zBqQJpskiklWy1PIuQ4XrcZbGXdyOzpNmGIhLrhZhgucX6peINVyxIRreX0Gvda5tspRgFQCo8FlPjIwyemeTOGHtHJCIiCLF1sTgfj3fTib1jX+DJSDoQaa0feE+++5K/Z4mSnEGL3N11JS8SdE9HeEraqGfFD0fVEJwXKwldJ25PbrDKdG6T+y0F1RlOcDth5Q1LnHvED0S48Kx/2FCEsd33NxRhFplVkqLAB2obiywGV+ucayDaPEbVTg7QOnlfSrsfbDAhf+w3rmPInvWoA13OtB5XbLiyp9hIlxATesgqVVuZanqbKm6MJh1Y9lBCLL9k9Gl8cwW+HVN5dYJRLrKWiYZmurNPX2FH4z9mJNcfpaWJPKJ1YKpu6aZ3cv+m5HAb00cnVoSnzXdi39v8OjrjroXiW7JZiggXhh5ecLu4/2OIdA7Ih+C08S2Hz/Mi1Fqe56VEdMY8L6Zn4/H4j64J+gKCZEl0trLXXWAjGMsGJWQg26I8EcMmW9IrrmlhBZrg+JIlHLZJUsDSTda8UlJHNIXvj2Y5Dm0N7+NY9pee1o2LUIfB7vYSCPXf0b/4OxT2bsD8RsTjfKH/6Z9VXOcwfICpjK3rhMzX9DytZOyWPLfXrWCUPg9NPwImrq4cFDp2bgze3FOyVbYDpm9SprndbD67s+TRiPMDD27nJfk83rKrqZ7X5xQq0q9YDHNhWMhV5/fLowhZv+42gEJbG6qJssvEbZBSVOXSZTsKYuja+uiYEEIglnuoh940Z5eYnsnancUvHRghyGUuRsN2kzpsWYZVmcuVBAd9W77MgSF8cWI9JZs5sAeipm0DrrRhtrqDCGj+YStWogZxgwj9oEfBAkdsCZHMvHQ0uwCj1xdrQQeRMG1SSzqzI4JDRSpiZTWQ8TCDQIm6wsMEi66wv1qClVex6HKgZJe6zcRte5SqGO6zX6dWll1JmiVrIz2g68ZgQnab6IEXIcRmwh3ZYRxAHN5hGCfHMT5dGKlkiVuP1WAvj64TsOvFLGDWJOJAP/lY+rOPooctUXaFcG5CMCa1a0AHPB6LmSeMTZjfdEePpjmWiipzbiI1JJMhSCDb6SkZvNPUfwVnB0LYx541RzxuJ/k8hFT3ptWjI2OJC8b3RVLQnYF/CSf9GYYUlJRr45LCdn5cmnOM+J+nGctEOKfpC22h0DCFPGOcUCZPT0PubViEX01O6XyqRR4tbFvn7ONCdyczP8nnzoqrvnzzLNmUx3kP0PNFsKof4FFvGGqlYWNjR/bvu+xaITXs0W3mplMCaGSq9dDgslfw95VecO/809fRxfT0YkqMuRWRmxYdiWa1RIXZ4s43G5IMY9p07mxL6Mn4UtAY33ZVfdkuC2NpZQ2orngTjbcXfnaxl7EVNqU7WUX1OZLvoBYVfDWmbgulWK24yneHH1cVriJPvce4Kh95HZSwgX8Tx5T8neyLftHFIDycVUHfSFbhqFqHRluMTCF73Rk7urVIY0gLE+jEreOr5DkbiOfzMTy0c16rX25fTSgzM38k16QXl41tRaVVG+mqHQ9Kj2tRjO4N49KlY/vbrXN4V1f3WuAjOGZmozND0lk84L9yZ3zmzFEzTpQwu8YD2B2viUbXWWKDSOkmchQHFhbnzo2qkgRHQ8tEBty9dVYSnR8lzW0QZLBgZ46HuswCmA8R9ltgtcHh8HNJD3RKA4PMUdZbLlFOtrvUhnEyICPSHGYAsR3mR598eOA4RDUx91qTOIbeVNIBkpDJiqcJlB1dnsAJOg2hOSqwoxkt5cC8PixAfV9cX8Gqx8PJzjAM7N5oP9h+T2rYzFYabfWizslupwMJu8s4qIywhoDnZ+gK/DqkqPM94mMlfji1sFJxfTppGJD3YpwMzng2OOP54IyfB2f8cgzjvK6saydCejFOBmc8G5zxfHDGz4MzfunPCEXQt3+YDK4TahiP0Ak1jEfohBrGI3RCDeMROqGG8QidMBlcJ9QwHqETahiP0Ak1jEfohBrGI3RCDWMfnSDjVL6Y+cxIeMnoK67frkNzxEEetjrhb7XHe/VlzX35Z/NSCj73REj+FIdndDml9mfNO0Si1lGgL+nuK5gEjn+Du6vZ3iiMhyK1J7EeLjJ0IJ0MTApUp8xL0fUFY+1PIThD4lH4kcAc0ZZ7fsEUO87W7k3yOaX2XX9x6sksJg8y+L2461euSImrmyKhGTR4ZOeLfsTzjUylzdYYbqqzuZbvRY8OMSAUjkF3l2M7rL3GgfcSMN/nCg7P1gX0PUvjzEbVbDt124lo0ptoAFl6SwF7LF4S3QbMsrY0LjilL47hGt08fS+aQ3tDMPNvaYbHaMjVCm4278rUQudkb2+mtp+2Z3RgWoYf/YJS812Jv/v7mYQmH57QA7rd3d5cFu+VZMFuaksRSzpcr7Lp9ktr8l9M6+y/mNb5x6Y1f5j/18prJ60PLq+dtD64vHbS+uDyAhVlI6M799fdE5h8YAK31gsPt6BVaZt6RsUp69DTk3fr9ROx1h3yS5LHHaarfvARrtguLAODtUQzBeyZU8d6kM5KpOZkDlwuH5J18iGsZwOxPmOw7TcZpG2xuxs4cH33aI5Jd5J0A/u0wKZ8oZC56GjUdHaNAwVZp8aD2xqnlQ7dlXy5uknqlI8rfmfa4p+V00n/cZ2kaqGdDEA7r5a267C7hbLPjMiWvXFYo0Y/ZnPdiBUy+ToCJYpL0l6tk/j+06MLbE6e4m3OCmUMBlbBmIwYySAVIUXwCUXkNy1blzguKWaN4jE6VDljtma3rNJVX2ak5eHgFEcCGB0nG3TrWcrDQ+wrQdSQmIkm0+0tpXzFpGTTidwVMBCtiEwAsXob3RfLWCX4ypxyl0oZVL1mDXTKAh75Jk66e3WYbjBMgC8SL0vqzqOpBO7WH5vDDkAZ6haFYTV80TxG3EGhkULjQpwqMUeO68F4KirOKKgkwXBn/2FvzDVZc9pEc2C+SiA3Pgq6yskW3VGGFYeCeDJ2blwWhh1SQRGzpMmTZIdgizN+NtQNGoLctdpe2WPnJ+N/XIVx+o67L/O4wYoztyZe5jFhh4EpiyoZ6kje0SLH+OEmmkWxpN90tkyJ4zpgyWbHhcM19WsZkH6Ras0i8du55AloXNdaztzYgSmjVSMTb53tH+BUg7xhGZYONOBme6EMCujYxrX+rN3BeYD6xunkoQ3XlnTdTqBDlETN0hSK5ABzV3IzOXRyoYOyyjWjlS7C4Gzl2KFuctjgTfkpR62bf3bRrzgai5lv1GzlwbDVWPlKbkk35kykmnDxNfh7Eyk+b73cNsoi+HsbRY71qHcpDnlyBic7MhgeB3Q5TsmbJMsckqeTLbVSk+tI5EHclWjjK84IzRcv3ASRtGEiPyEv+h/61AUTSdPlpplatvIkMKP6LPiW06Ed6OhY1wfKmLYftpG+gY7Fc4RyhcXwxBznF3yQ2LXoERXmbJgl6LsIFIGoOEPugOC7tnWi/CywOxNXSxuzuPakZB7BoTLnqxhxGxNtsOAVRmUdSnF0fvb2MtDBzKimE2/MA2mNB7qTEI8873ZXiid0El/MsdYrniqHt38sni8oclZHCnqsvxCLcqZV5+t+fnro/r7m5ryWStYNhRnMYvM+Tnm60EOFmFThlPqfZeZcvRe6EzZntaWkS0wsOJ8spTa4HjHk+6Ibt48fQlPMCVXtlFkLkvG2iMbZYpnXMBwMWHzFas7yPYRn2FSxmTraXlU05nQ71NwNh5Uc4uTB2MANp7Sh5+EmdN03vFN026Vw7ud/xJ2r5Q8KdgOHyTIb+oN5bt1bHpGwXf/vNj8HUrMgLTPqDioiQ1eBf7KAoiFR2zLDcwecuIa+t7TluwWGYR+m9rzA4ghBJ5iZsdwJqknTOi4mHXJ0HtARirSFPaHPBXL1KyZjxYJaSwJh5izfLind6Vpr9KPN18QcHuVG8GizwuetHvkllLGJuoi6sGeG/eObVOI3NJkAhoY154U58DxDm/F6suBsH7TdDa8wy2tA3fQ6YlC9NOXTGgF0TuGI+bD1SyTEX3M0aAXOM1NHtJU7n0ZywCkYmwWjBz30PNV21NvJzuSeO0EfLBzLSaFI8HQybXkJbo+4tZ/tLMW0krl0QcGMLniY2CkXc+kC1c9lJPUyS1OcetH6+4SiDIMPmf4dGpT+0lgaIX3TQmvUXIL7tS5MjYlzg7gjwTfSQF3xN9z0aDhTy1PUXKarOmnpnCoJzWDUmgLFgLBZGF0hcDmELWGhtiVWVYyHIcbCnNNabPDKOwolTaRtHq1FxLnabcBlpslwVCMGezrNyo69hvxMhe7NKq2yCuzowiK1zpsqmSSnl5yFGAIM7kBRVJ1H68B2DYvgp5cBwwNf58z3A5yua4hje1NQxjHTqlC3Bed2VIAx6JNYZTRNUNy1A2UYw6GIJmxFftcFSGvDF8JELCgYOq0S75NO7UvgzpwS72R8qv8/ZWop8DTbmR5fknemaluT2kvj5fRFJLLje6ss2UCcubWuqSZOMX53Uj4XDH+0nxTziHBunKMpfIOWCGTtjU0KwgfbJPYIawXWuUKzqHiBn+9NQxjAUFssWiW8m2z0WSihRldm5Q/ElaZpXEz/6FMhmihnSOm+CF/mw3DTbBjZdrj6CLXi3E5041VrkdJWbsdN3SXA6E78nQk8jJVwWuBLIXHTLNl9S9Ec04PI8pHWKvfRbYEEcvuS8CixfoyRS1PbcJa+8F+wBL2m181vTnDqPM0v3FlG1+IX+QKnipndmk/ZksMe4W/ANBlflVJJs2W7StlP4oAHehqJJ3NiUn8MSXwN4xO/eAtQGNcsGjSN/bzqTf4DMn7D4rLAvbO91851AIa6CmB9wgvHx0e30ekd9TiPUo9cwMH+3uBFFLT571cSLcAO8roTkUFVIjoWj5N7XieKjDzA4dPtYd3b+jiPZCB+xaTSDirhaBFZnWFuWhNLdP3Sb/diemM6EMb2ms3QNzgeGsc+dOUKGM1ktsSZMgjAqTjuIn5idqksZYIGnp6A8MItr205EY/N+dkKcxzX0bLo3kLK9I8hiEr5BNFrh+KEfgwopR5JhgOTPkq5+gBK/QFjy4GFftODSX9ILqqJg5X/TGjj1R8yV3cYSdoPqRDXLMCAGUNSBtJGzhgsO/Y4jyg+xbxXE4/UhoiespQF77gOa0e7eWi0s/FkrD9WNG0CW882fBvwlNxvvFfyzRgorU/HptUVBG6zdODOGk83i2jQkJ/09x4uccbM/F6NH7EINuHhNEZktuOlMlO0SkxXYfnHZpoRBlaYybU5t2wpfL9lQyThV1L6NUm34kZThkF9C91FPjq0dLTEeyeea4Zle02yhLzFiaaEfORJyjLFIrtJa9XA0Uow6UZAnjseLcPmbjwh94VHlsZGJvFhyLlaFp2fuFnzDo/N8PQNxE4Sv5tiJNcw3WJ05d/Mzi2K0n03poX0KACac1zyGqKn2QyqF6wS7MV+zr3Ffc5W5pn9sNl7vLq9ZZrziinM8xgi12CwVt16W+ucAf8z04VDZ2xY+BrLXtdGBSPi9wrCaqp7RnE87+gFdANgfrM75R4c7dvjxeDKy9T7IFTkqpPoAXYQiJZlrB3kA4/TjEKfHyvEPMjQ8/9oogUz+xaPZ4rkdhWwV3hy27QQUIXFY31wI1PasqxWgZv0xJ31xJ13xv3QajQbpCI/82OJnMLpHwJG11x3p1i4shPunlAdMbY+mDQ74SadcT/xlUw/yfthJ12wCVtxPGJgw35XmVR1CLBmupkxBU53VCE5e4Jdu6a1N/jU1l1rz5B4AuZARroHljjTAMIHFadYVUBjqegcRrgofTqgIKykRANWm7VhSMLHsnbdtYLhX+yd4fYTuTUr3ZK8TFkk6wIn7BA84rk3y4CZBY38HByV/9CefZZqa1Lfl8YJ/XyCfkewgYfsgze+EV67KWnwCyZouIcpJvqubXp6Dx4JM7UHUTRkQsZPvlpZHKKVgpsUaIrDDQU11B6PcKoPHFdt7I03bXa7mAqW41X3yDo3lSmmJL/vwBFhASlaZ0jsXfm6MfThLpmtsXarWZdaWwJP3MEp9za1p9FUGY8NLHuHwdEZkWHpAMndYxfT4lC6Wk739fkD6OMCDguCJSBoA4IClZL1lcDRBKiPmgie8rc3xdFw+kwjeHIM+OwY8Pkx4M9dwLDLEephqUG/cXOaBJxi241gdIG+4kXW43VXMcosk0FYzgZhOR+E5fMgLF8GYfnan+USwwljIWfLACtK/kQvqslwVGfDUZ0PQTVlefBuPZhz8PpuYJkMwnI2CMv5kSxwXGOqMvSUXAmcQrK3XWhuFO41mYyfKrRZTYG1ki5oNfaSB2hC6bslXXbkMUtOTIXkCwSfOD/vaNHt0ykmoqEaniUbpOlZskEanyYLB3zLcLiXhOpJgh1RuSzNZBias2Fozoeh+TwMzZdhaL52pzEGUM0iQB1kRM61k/HD1QkeK5NuTjntucUb3rj/tprpZ8605QWTue7CtACZEpkVMuFND5kWP3MmIwfedJDpkq3XNBgIMnvlDFVLdMVZ0HaSDRPKa4knt0sAoRsm4wvsLhYye9Oj0RIfhHRISpdp4+kRO8y0lcR7L3nwnGCMOLdFAsNyFfA3490RiFWHF8OdweQFbLdrOSJxvmjOlJkv6jLjZBjmZqunZ7Og8kSzaixkPM4YUa53yfEfsR6TCvKKsRd7//4P";
Sidebar.prototype.searchIndexData="7Z1rU+M40Kh/zVbN+wEq98vHkHDbJUxeHGDrfFEpjkh0cKwc2R6G/fVHchKGKMwuRo7Usr21xQyBzUaPW62+qfuP9tkf3bM/Go0ofg2I+POP5kB+t8Rr8kdztPq54Hi9PMWcs5fodCD/QCP2Ev7RPFvGq0D8Sl389QfhMfVxcINnJJiwiMaUiV8ZzVgcs9W7XxgEdCF/ELO1eDWKOXsmj3QeL8VrjbdXhixgXLzyR6NZS/8RP5EfrTEUX182H7Jb23y73Hzb726+pfO3NWw+89t/F9DZBz/qjuRPsxK4IU+xdQK7JS/3gZghcEcXy5IjuF9bX7+lTXBGwjjdAyglYR2DIgZGMaQboeIgdgNMCL2mGQhDHAQsicXhmMwCAoRF245+2LH43wTPgZCwtDV2JMDsjo4iET1DHJbkB2chEAj9zh6EjiGzYUi5nwSYQ6GwvyU6fTMU/kxW6xO6FQVUt49hXxj6VjA0yoohtSJxOIejIVUQHYMgvCXma3Q+X5A5uiJQD09T+vKWxf5SkPDEOnDwtlns49iXkKYhHJU1tfG1dmIBBMW+MJgKQbzXFEBA2FES4JRD14py8AISzgkHHJUxJhBbEtMXhh7xawVDwhAfmqAppgEcdWHHB/NiTtdwINiJX3vil2gkKIA+Sk2JxJRTqIZVx1B4Zk9XoivG6T8sjHFgn4clkdjj8bBdlnUaavDOkGt6j6YJB2pfmQpgbhnI1DdMEJ2GURCA7Mzdyg07o1sQkPJ/dknAieAZ3hk+jXx2OktoMKfhIjo94zj0l+j70xP1yT6NNaNhTPj5DxLG0fa1OY6EDSa+kWt5okHwfo3NTk8s54PVP6X/fEjqi8jx9jufyI8oXmBJHNBQ/E/DkPjx9gOqsNv1fRO2fQA7xfMh6/QnZztuWszPw3lZgLf2gLcPjQAjwC9JSDj10e7dio69v2971Zu2uDOxqnAlSy7Kgr5eU9zkQ5vPCPrx6L7oqDv7/lbv0N8yQtpb4SAQ8h2JDxxFRYe+82F2Gr1lB/qUBMRnq1UiPjq6YklU+KO0Xts/S3uWFMsheTQZVvDNwL8PqViWWOtr4Yk3m/uK5rA08ojEhYCvpYBHabnHWhiP6yXhOIhOr8/GaIxp+MTxqvA6RynJ/CDk/x/PYLjj+EejJkiKr5NfLPN/LjSkaOC1Uke70A+mtb85PogagHowU/aSrq3Yz2Q/oNU9DGiBeSY3eL1ZaaEfiOIFd+pwH8gY+4I+i5aFfyb9/WeS2X0w+Eyoz9l6ycLCH/O9/0zVgXkoxXc1uj1nbK7JEA3m4igRjuAQ83nRn0xH8QFBbxN0x+SP/BI8F5d2DKfblRX6ifT382xNwKe852OxksI/EeWIz575NPhE1gQ/F/+JtPdd+D7kPZKE6JHx5yjGGyLFfjK99r6PAtiR9xLx3e7HhX8uyo45vPUH5rlM8SwgcdEfiHLMtwEbXlPCVzRUy2KL90g6yiMBfKrcF9+XVzYIZI/xgc4JE278Snxb9MfS2S/R+aAsG8xjeSQzdCaLPIt/vCsFwZBDw2UyhuFlGkNBJAh2z2XF5klAotN67fIcXQzZedGfiBqG/IL2eiP49kzGG4o5Po9mvdtC30YkehaL/R80DJIoDRS//XrRn1N3/5RpfmHnGHlOf8vndBEwxqun9FZTCu0pyf+LLKP2XmjsL9Hmf1D0Z9PraFsEJp7NBeXkRdYAe4T/oD7ZPh2xqV688f8U/SEpcczeFyLLJh7S/rMp/EOpO6HVvFdx2qxKdNqo4RmgttsD5XGCg91p8+t/ir49eEN5mbHwaq2ldFbLXH6c75OaizPGjxn/ZQmchwuxCPRtiP0lQaPtzwv/XNSivsw2wY6U3lPYvcvJMMBRhC7ojBM0XMpccvD2MIr+LNRTJnNCJq9nITjQWRKTeWnQK5FlW9vghon1zEvCXKkzameuJ86HuQw+LjhL1qURdjUGmTkhrwN+mcw2xtECx8LNe5WRxtoZjsgUXSWzoqNXjttWZu9OMPpl/1xuEebyGIby9TI8A+Wec3an4XjPYNdYYfumJXsS3cyn7vGeRLUPbNIfD7yy7IG2YgVlNvqP9xQ2nRhKsBMAn8rbG+o4KM1+0G1xdLxn8TC5LctTUPzhlrWzYSW+ntbbjeLfQe/rHsdj8eWrhDvdWk3m2ygpfMcdpd4je6hHh3O3XathHqFv3Xa9WfjgsnqTzKhID3yfRBGaSKqFB71/xSL7BTEt0MPC14hpZ0n0+HpF56vIb/bmRFp8R+PC89UNtWvx9Qao3S6+AddWenFkDqtrQY6ojyacyTOv+BkMJWjywZzXo8rzHarXSmMv9xTWmR1yLdbTQdH51mu61/70AI9Rs1d85azcUcp+YV8L8kPhLTi7FvLfk6LzVV1po3zPzrzCm8iqGt61HzREmBP8LIeFn7GfRSetNNs0q4rPOJ0vCl+v3tVNomghnnrCPi5BxF5t52tUkIcyNzvGIV6Ursy/aTSOPMTF57sfuWgajVwIvsKN5mmDPRou0OYSS9GRW02NDEeja3QhvhSdsl3felj8wHJ/35bLXr2kxVf+NQ3FFR2zcim0ZdSe22AeFj4Qp10Wrw/5PqTxKzr/ueYlGH2ktgqwwDttPFN0ztr9F7U4y1nSfowG/v9LKC++q6IOrTYap9vBHu4+cqFRd3Qv5euilteGpxyH0RPjq7R71a9bxNPzwld3KaPrDIu6dzIe3BU+raIWxpj1X7zxSeEJq+2/zAbxvHs08go/WbRe2+9FmP2ChRbk+7PCFyiqAxXNVtCNSFyKi9OKx5K9G7AWZBafzFnhS5mb+4yNxkVHk2nR8SpGW/aLPVp8vZtB4UOiSqcjs7W2I9lmaszmxc9wt22q4sfRGF3QoAROttKTKPswKB3OMkWF7mi4KDrlerNjUS1fcJY2QJuXp4BcGS5rVkmnXT6Enh6s1wHFoV94Za342Gavtu56qpRGtq1ejrjC4XxJgsIPSVTqyc2WzFxN0tnsRWes1NeZtfGuULPRLDzhusVj8HpYeF9QCWZkn2Gvx7fwwftuzSZf+UlDEiMv5kQOeio67Xptv07U7CWU6+8e8m7Oig5Z7bxjNFVyXfh7VIor0jV6y+d6Mi38jL6DklujZRmC8APa1WaU5HaE1eYO1xOBe7VKQrGaEmQA1UCd4SNwgkbeTdEZd21eJb6eFv4IVPWF0fjQn2ffR0UH3FAawRi1Mf4ihW9O2doX4LrRSyeCb+ErxpXrw9knw+sAvhncopgh8UfRMasFzEYNtxu6WMYvRH5Fg8KfeXa9khsWLjjBcvTXpPCliOpMNqPKYzwofDFtbz913TAqyeNh4fm2bd7gGZ/X68W/zqrdXVwLMZnTMoQqFCOuZ9QLGRMimzmsA1z86paWzXjFmETLyn47OmSxelQvQQ9b7ZlAWphpSNHD4O+iQ27rjpvRgsxmNCAlylkrCT+jBcxjr/DunnKhxGyR1vi+8MpCyYaYjdaP/y68/Kpd240G4W4Hw/JUgfcUx9qoCXdbDSk5Ll9hIuOwDNUWysUzs/qCxBELS9CQUrkOZdRCFpBfGH/elg+tSPHHRylnoFkb7pb8TKJSdPGzrKAl5oacW3KBZ/JC1PnPmITz4mtsu01AN9zbJRBvCJy7JeCsXNrpGE2wfvdjEhSdsJI6MesTfr/16mUYl6Z2wDaan/q+TteBBivhfD/R4h+Cyn1Vs27LjnbaLHHNeOENaqVRlNl7aZPBCNWLTliZSmc2rC8JNwpPeD/QYbZIYyI8b3Tty9UVm7JSy2zWmJucFT59ojTDMJvQngyRx57iF8wLH9xXSrrMTgkVnB/onLCiQ1ZLa43mAiejwk+A2Pkgu4slNaNW8mRc/MvBjX3Chg1jzmLms60fEpShCFQxL8yOqJv8fVF0vmr3cKNBjDsck1VS+HmhVodZ3pE1wSXo86kIstnpt3L0H0HeC439ZXn69Km6w6xcTzzxb9ERW22N4RH+gwpRLjpk5cKU2eqBLeS05wtnZctMmQ3KeSRGU7Yuw4zyet3meeh5hfcElXiR2aF0nneDpoSvaFgGH1Dtvmw0xOxNC9+xT6lrNtsK2Ct+vyI1hG9WfktyT0oZ5Gy2NtF7KH4eymYQY0oC4ssufeIDlyKrumu5ZSVRImnLAc6kBHd66k1FORutw5iKpRdelq1eUJtOUAlavih5P7ORuE1RHJYrLzblTt+iiTHlif9cdMIH2tjsuZdwTgpf2lnv7NfFmb3GOn0oOt9206II35/d9euFr7y3e1HnfnyJPMJp8RMjljlX6b2j8n3ASVD4085qWOihdONIzHoeD5NbmTeVn5hXiZBjw/YKr46tCvPjoGrwclS+117hx/X19gH3jQkwm5NVhHA4R+slC0l0OsSzgKSD3FdFh66UtDSzlyin9P5o1AQ/8XWSEsznKZAgQOn7Ff0hNLUnNB/tIVzg4lcbNTq6lsnR8F8xFq/LsAXUCujsyv9oz+B6Ug4tpBg4X4iXHO0RbNvmDnxZm45K+kB6oB5IGWyj/T4SjeylZUfjn77VyVMJDudaB+zBUAolBPhgvrsoh4+mzBz6QjX80R6BbLBQDvtUewJGTs9gTdg6IKeDcM7ZgoQsidCE8KgEVYX7BSzZL/tOUnJfRz7GPnpkK1x80vt2T72W2fDRRx2WA7Vq3tTbmQNwuqwnQ9lrufig9+2YeitzlEcX9F0ShjRclIF2bz9x3c9cRqTL2qOxnIBWDiWiXAHuZ44TaNOOhVFTEtFu7Bvj2ceL5wa7FLJtDzeXbTF4dCrMn9K1A85e93m3oaXBeTAdo827VLCNwJ7ixa7rSzm4a7eL0ud+xhme+ziKS4JcbTOeObOtj1z2JhGfGe16lZQSvA0dc0kXeEbjnY7ZqZxS8rch+NeDUTlh2xD26wlKbx4vWfhaTurZm2fnQN0bXpeEtnqdJXszUX3c+2UY5eDeV6azWVDkt8PzksAGoMhvSfwUsJeyAFcG02QOHeoD342n2TVsLAt5ZcpV5usE+uRLAtq+Ttm8A7oO0VlCAxm8LTp0pcHgW2sEC9QfabxEHg2oz8KtL1p0+kpHlex9SvXhV9EW08DXuDS468qFmezzx3LgHTMux2SVg7hSfJX9rr8+8Omoyg8Zg/3AKuVtEPcj/kECEi7isqTiAPidj5QL5qWJY6kJicw1nV8nHhE/4TR+PR3KXhcUXQjyLzgo/LiAltK+JXO+2duC02Iuv0Vv71Rw5KqUZ9YreSAvi3w3lJaSmVVKHrAvcUyeCVkXX4MrI4GzX1PPBXeC+bzwpBWLMHNsNg/S19+98pyUSm+dzLer8gB+w4rfo1bp75m9nXUeoG9J/ML4c2mMkpaiuDOHY/OAPrn+uzTqRPUurUj5Nv1QGuZKNZBZZ4f/SEs9U1/nPqRPlMzRZDsFIs0sF988VGacfMUaTynq8JdTTkKxILnOqJzcs98M1+c+EjrGjxl/LQlyJb/5FU9IF/kFDUhUCtg5RLHygF0S0VZof8VW1KV9xaLCd9ZWr4N/xUTU5Xw9mT6URKpzMMh1aY+pz9kLmZVDaUMA/v2qJNIN4ITcvMOm1q0c+Uxl2FL2+tkcoMtGlJz9LIvZrcSxvpJc00bOnuIXzAk6w5Fw8cvBXenHlD11nwN32XQC8zkqg3EIQZ9vqwvLIeBKCKWXuQJLH/h9SOOy6PG2km2zED7Z1BfKeGE57HEAQcLHx8eSyHdnvx+W0Uj4Rm9vMxFp3Oo8XNDi90fVno6zPfF0mAcsKXxpSr2nNIysZVcl2qRHNHomcVx4oW7rTpDUR30xRLs3KThsJWTVym4E6sOmM+FaDpdYfM4ASSlHXjKLXqO4+E3G9Z2eHPCL43KIZ+KzFt7HVFSLDdx3JEgT9ViIOo7xDEeF1zGKZZj9qo8+9an4IRpwjotf9mZfozySGRoGSVSCeLhdwzC9Vk82fSUvZHvDXfO383gpPKlS3Lrv6Hb08LYUdR9AOZoc6IdUcsA9DHAUoRZqlwS6cg88e6vxXKArHT23DSbr9eL3ae5D0DFv/Msh8rpztfNAvu+ZXuAZp35J+B80PrQi85ckJClz9hSXw5xRskTZ+03mgf1afOIgoJvvkRfj4l/RUrMX2bNzeXD3Rrcl0S9t5bKnFd43+JVw1EB3ZMViUhLyqmb/Qnw9N/TNkjAH4aSOL/9GvVqthsZJENNoz4wv+gPQbgyfywOQ3E92ZuSmdrQc+JVZWXasmhR/kOqdUil81ZWyJ/tbg3JEpOYpOnb1nLWj9Cdnf5dEzFWLMnuWKQ/cnInXVys8C8qiXkBEhMt8mloiTle/ztOScFc0jJWD9FcoDE0uH9H4clh47B0A5+gD5XGCA3RTInkHEYPf1KxXCVYL0MsBHEY87JHx5wVnybqifnzqL9smxKcDmVINcdFhK50V39owfB72rm2zDuxLId7hHE0JX9EQF741lzLCrL77sVnod3hOGZqyl+LX4jW7ipRnbr+QB3APp7nT4l/TUMeBtDIHdXPFLS8OFP7UVHRK9qKMPJA/0pMLKocKF5229rC4fGhv36PgsBXtnf36aJ6w0Rmn8xJc/tpvLZK9L3GuzG/YpoUlGqzXAcVh8VNEfd2O57nyn3IcRmvGC38LTG3TZQf7zeAWyZpezoKg+Mb5gb+fOa71Jegc+8+neO2fDiZD5K0wj9H9xEP1Wq120pS1MA8D1Ljfhx8oPDhdLON3Cw/Ik/w2WmOfhoub9LtRva0+IvFR5uzl4+f19lQOMHX2MTUPwyJySR9Skj8Qy8yDT3uLpg0YzQfGrwk03XZKpg6YTP3QE8ufzEadDeVXVO/X2rKgieIAydph8Wvxtk/Yb2dLuwxsuNNUOsgadSdZZdVIubBq1VPxEngqZJ9C1ujX3BQvC1ux0a+7yeqDiNvxWTmqtqywalesPsmq2W+0K1afZdWqWH2SVbdTa4Ln0jFvHwguLfBcPrgmYIBLBzyXj/L3BsD0wYNp1g8j2McHU4evYRofpFOODabXbNU2ofxNWP/ku3DgQnlgbScRilX/LtQPiZ2FU2vgDVC73Wuf/I0Gc7yO6Q/yNrbRBWQWHN6BdyejunXwW9GCg7tl0wDPxp7cNMRWq+j8jg58U9GCCb1lA99c7B32VjDDxgHDqN4/vCZoAk5fHFVwqVjSNAJKBy6UesvOPurX6jW4VBotS7LSl78OlUqnfVjsfWwqAsD8rStfs9aEJDRK2ap5OEPMhffJ0UT8gMS/Sp1QQ+1eCEmMLOjh34JqA+Zkwaf6LacOZIGyYAoOcYyD1yhGLXG8f3yJExIhK1vujVCjJ8zm/S7OIfm45SckaFb23xu0VgXtS9AqQL8H1GnXmifn8BC1lPmrFrWVQNRyAJGFJOJ7RB0HENU/aIdnklEfPKFGw3yY6B2hutBFgOH0zScX3+AoXm+jhp4YR1cTQLjUe+Dmc9S/o9VspLRGJAjg8vpgJJktXq0afF5Wgisf4qrXHMAFSLzqlfLKQqtZSdeHvK7nJIx3Y7XTutCPZuGW3NG7nnio1RYKyiNhJD8wVDYW4lHb8iw08H15LXh7RxUuIgvic0t+JpHMcNfQrjHg225zoD7LGrGG8B2mu0E65z9jEs5BVwdY49RotKYTdHlesfoEq2ZjMhGbsaL1SVrTcUXrs7Ravcn/VrQ+T6vSWp9j1azVO/DCnnDoVPmpf6PTaVV0fkunXcnO7+m0BZ1Jhef3ePqdKVwuVqIBOy738OXGGp+OvHoEnY61XdWRV0ig07FQS7Gh05XNtuq1Ey9gu6olOXM4imgEl5aNq7bvcfUcw9W1iqvlFi0bF9zf0eq7RatRM1++8/3WQ/V2s9beHyY6TKKYrQjf5Q4mAY6fGF/BhWfhTNyyExp/eIO877fn032IFbR/hTYeIG90BR1Zb39olYXC+w2xVru1kbGTQ2ic/aCRQCMbMcAjeCh05svMNgw7H89MhomtoTTabdTNFwRNlq+RbBz8q2lF6x55MeNY7akOScAsOACHoD5Ua4XqNmsQW5E6OxvE1gKMzcImvR96qC2LGcF7AhasDAmn02j17ie7pJ/sTMj9XTN4qKgsaK0NqjSO6hQqC5pKoho2GmjcRJvJznDpWBIkQadW4fkXPC0X6FjbWi0nhMcank6F51/wtNxQPdbwSOlpgMdjwZJ+HJyftOsNuEwsnFaSSadicsik24LLxIJqkUy6zVbVNe4QSreCsg/l4Rw1+oC3jxWVIqC0KyiHUDoVlEMo3XalaT+iUqnaQyq9SlYUKmT2Qbt65NW7NbicbGia33BqQuYESJ46FafT5fr0aoKEA9m+/NX67n2nBECENHtJXE2+iifl4b1GMVkhPx37ex76AYsSDrgcIWsyLyc8XUfw1FtWxCfqtN3gkzW893U81+ETDekZDufoYnQHXe00zMnNhLMbcVQJfXzTadT8bUR4I05g+RhUy+/5dCo+/8qn14bKp9m1zmd0U+/U0GUPDhRd7yIXKM1GjVRUDqh0KiofUllXVA6o9IDLSlYvMy8qsGXFEpV2ReWAShv4wWwBinfTaNYiUFR61nWtgNKGDcWcpOxaCg43lcHoIiA/T+o18e8IDh0bbhGdrU6vz8aoXq/Vag8DdD/xAAHRnF4uFqZBpF2rnTQa8Klk3UV6VLrtFrph/mYvRSwgaIxDvIBclpdV9+oBuhfKBcdogkPyi9FfNK74pHyaDuiZrPPJtYB0HACSNfKtBWT+U3jOcFkYVbdCKuTBDBhH1pyaLo62TKZdPcAFYlR5CCDddiUeWxo/m8LjQeMCFd9p4mg3KxzvcVTS8R5HR0pHEy4OoyftFgdg6TCNA/hmMY2jD/iUNcyiC3lytXEW7UqJ/sLRE1rj7zZcHEY92Z/NfoXj+ZSJrwE5vSUxx9tC2r+bJ40zePd5NQPw39OFagIaTprysvxgOhzsqo6hYVKs1nrG1qK5YepWmP4T07Rfg01J9YGyTk7OD1OtgvMhnG2RpNTZcNFktXPyIbPG3EfT1kkdvOhY5rM77NGYzZMAUK0tiDP/jVPxepzkwufvljzroaOxssX+7vxCU22ufUKbbXUuWwKuOY0IGrdcOOWz5kxyp9R2gVK9ZQNTddb/G5nqlP8PQvDP96zp67zItMCTyVp9qEsmCbcue8eZ+8OGNbJCaHdXfzdt/fznmsuRKRtlhBqtNarX0OXsHBBCy3ppn+C2Spr+Q+aolZL6DcsK4AHAKqL973hSN+Wth2clR4egRjjGQyLN8O39/5m8/78dmdXsAGKlWbaSA6udWqrXpJLaMuo21hWkDyD97+jufUeJSxyTF/wKr6uEfWK7SHfjBHDhi2kLfY8LoMtkAOxzJzIjFveR4HIDF4zpMIkEs5nYhRrycpmwhgac49eK0DtC/+fCe6PUrTcKVGiWN5wmZDiG00QCzgXlBE3roC/LmFfFKZW/G3VYVBogqLSAUYEhKy3Q94ks6ZW/W52SU1nT+Sle0BiL4yc6HWz/Jv5jcSBRztWg15pRGck4/0HCONq+tiPjp0EO8YKwEWM5PfFGQTljccxW735hsP0vY7ZW+aloejUlkHOIZr35+wEZ8fpuXVEObNC3QegvGf+fiswBmSFnUXRyRvCqonNIZ0QjHyqX5uGxZIyLbKxATjYB5QmezwMClVLLovRcpt0nINOxubeuSCA/PVQ0HziVxtBcr9YkCAjYA8smmwlnsOD0FR+q2bAHZ5rwGQ3BqhtjR9Z6jTmOkwiRgKzkqk/HOFwyNc9pDYz0d/fI1LLtqN36/mjUzrcrzAOSx/xnEktXYtueTawU3bJ//gEDrrnPLePpfixsyXrNeIzOpEdHYiCo6qqIQUJ1QxZAMDXaIHfiltMdDaGAUnVWI5syPzIo75lyODvPvnaXC+T0KVmQ6HT49nep2kfEx2ltyzfP5+QlDRyxgM6RtxR2FRTToX6gvjIx/LXkvNAJh4UulshbEzIHA0kVtGxK/hiQJoQ/MSG9BJo8AUSViM8Lxo0BuOHe9BNYoQLIjKSHh3AGIcUuAe4+YTCsVtX2+zdCAK0Ci3LEVmnhPeMROkE0YqdnAXshaeLtAodQAWUUo1+LFMbntfc9B0y/3lOiesB+kqzQJFmtK2T/jQx9e5NZOKFy4MRGVPwexwswGU3gvM7/L/FjONlx4LQmNIpZWMH6FCwZvqpQfQ4Vk0ktcT7CSd+AJxZj/lrB+hSs1JeuWH2KlcyisorVjhVP41QRWnAazoVCPx1uXgEK6IMSzH/js12dgHO5XV9+hIT1zuCqc1CgrjCoaAxkVNerNfbjCtUnUP2JwZ55oDhtjM8K1X+gSt9qiHZvi8bYF69BqY2BiG1MgyDN4CSBWBH9p7IaMsGqzsWvUauOyM9Qq/T+Zzk90BnHcoUVqh2qOafiHU5H8g+gUDJe/kiXkj0x+B6EvBmT0Hnat+sMcJ2QBTDb+KZwiH+QV8YFngCsgjbM51Xakt/FquUxtv12uMSr2Sa7LDPwT/L1aqNJXlcEx+k432QFF0i2IJ0ekE0cXAhIskIbdSyEZpqsZoEUpEpBbzF5a45fKxw7HGmQ+5e8yGqxX9+N2Q8pOzvNU3ZkT4TMJbOL9M9d5glN8QzO1c56raWjgjZL+zoaeS2PcbkOHKDNm4EBo6WbjwAGfRsTsV5AufGmwqhtH9F2jz1g4dVDwWRZlDYnGKj7eCoRQ4JD41jsnuj0TJg48/TsAsKjpXU8XWzXpQGEE/wcLzlLFksgSJo9rT2jjWQY4NVa+OMXAQ4XRHgOyTqAc6uuradR9OkwASeM0hZCMIgoW6hnHEglH+9wiF2zIrI7JongiAgsKOjbiMTCdpELOxG2DHsqir2SO6jzn+tALK3i9B+cZKu7kzsS0SjGIdwwKSxMaRij2om/RSesn/m7xh5AyDS0HIjcuIyS1epV0PkBJm7Ra9sFkwhBCaCwsOxWXbEIjMetsMjWi0sfxXW4uS4EBIdCw7RgXMul+UupQ2QweBNG//YrLAHl/LEdl/iY03fhem7+eh0ioXB8SCUWtpG9wal4bHhw+kR9giay92jFJGVyR+aJD8Zi6do15e6SdZxwAmnP2A5UeCR4OhGKRBavhQt0RwKCI7JJqgBBdJi3bBlmRAMSwtlEdVWnGJcZ8VWc0BvHCAgUu66QF3NMQzASYjlAvqMB63KbZSgPYm1ASNj2lR8oeZGHzWWAowgIE800db5M0LcbOaEEUPmHrejkUpZykp8bv5DL3Fs4J2EERtP2dJSKrFOVHTzflqeNZ8QS6TtP6JqgtAr27b2B8Orr7LL8eZ0HxI859VNYYCBpGnj5Y7qgP2VjRXmsC7WEpsmMRDDlS9VT2Y62/MldYcrXNATHqf+f8xHNYoK0/YDp9P19Jm1qGmy2IFTjAII0vSd2QcNQ6K+K2ReZ/bFpYAkVnfXj8YBdwDbRNPEDsDf8oAlcGrSvYH0OlremvDDdPg3g2rNcoWKzLWTpDkQ4nKMLLquonDDwMw6oy5/aHZkJgwwMH9Wwb9qlk/YGT2VKbj1FpFAdCLTOvkxla5VgGlqjgpYdWrOC9iG0TSZvImPOINV9H9YRubG7YKJST8Z+pulb+bOaLml4ckGDFTr/gdeMA7pApDfkNn9U9ycf6CwgrIBFCu+RJ39r7lIQ2jSzFf0pUV2HJzc0JGh7T3osX4VCqK/lMaZL0ebixVh8blhc9DxpPS5/hQQDasrQtYhC/NcyfjfBMZQ70o2ODRzrZLWOTof4B41fQU3kaTT3NWwmW0cu5MssyNuwnRQIGB9W2S6drjUiYBzUxh6Rrj0iULxPazIi23iA0h9aZQI6JC5xhLZj4WCg6DYsyYQk8W7yGwwaB2WAxg6WS4I5pC3S7u5HE+qmQFwxTv9hYbxVnkBw1NvKFPi6MSBFuk+pw2FCuLzGH4gPDASFGs3tm0KRzmqCtD1Uy6JjngQYu1N1TsztEC+ZrYSbR9MaYDjCUa/tA+lmur+lB0TIBWAS9Z6xjSK7ucKZRNLfb/mWLQ+mgwHedOF+f19bGDtEHrafFRKMutLspd4ytUHQCZrT8L3vDgWJXkx4i6Q2ur7VAvM2M7nC8h7Lue+nEuOjR8YrNvts0ts1bIUXIYFjtAOBI/39ish7Ilevc46ToBKUfSw39P8ldI7+JFCuDwPhckd8uubMT0vtKzR7aDYZ/80g+grNezRpvKBCskMiB1sLzbIJoHzbqBqo9fFfxPOVidbv8WzQvPMLKj4f8HlzDyo6H9CRxl4F5gMwlcb5LZrNmn6k3crWAfbJihSm0XPOpDhbyCyyhLWpVaowfYBpz2DeGocVqA9ApTZiReY0Imuclu1Hp5d8UwPo7V76Q46dJHEcvB9FCYOYXnX/2wqzx5Hf8dqMl36Hq0KzQ7MvQvQJbOMPu3SEy/HqB4D65wGjowSXK0r/RinaXHWYcGkC0Fj+rAKWEZhUV48EjAUOjNuE8BUOxYLRON2RFaYPMckuoAmnSJiYyUyYTBWmDzGJfVYh+ggRC+icPtG0D1jAIgImdAKNjpyNULF5xyadDLvbU6UHI16TjusK+0sakuj0/GfMk3SqMLC4SF2nYYS3WaZw/8fbheZJClaYBByoCQkC4Zn8I18ENHBCjScBACVjt+A2HlRMd0yIFRijCB6m7Xui7Tuib7/uE1XQPg1tVxtcIdsi+yE2Hwmi0zMMpdZImRyUrd3Pw2Y5OhjQt2vvOxT5sAyDcxLI+NCIJ1BqgJXb7xnTRvkiASUqeo00tMEk4fN2Mk569+IsXQkUNprJRl04AorwKWKCpjh8hoJEkZeuUdUylIZLOllKbKWUivhzKCxlwqEWdnZNi8xvAaFvZ4yBiUSrnLLNFTg2p0oLfRLVDVmA7SBdr9lRTuhbGnpNBwVsKvrSv17iCFC3bcVEzDZ6SBfVdjBTdcAdgJHmIeMI2mAvrbaXulAuGPfJ/GTE8VMsyLC0yGoKqGmQcme5n+nOsjadhIfYh3KTXclhWEHRgMnC8LmdttYSnz6AIhrN/ZZBZoMSksYVC+A09OzaDNFc4eBpMxZx29pz84ZA0BzYcd1MYxt04VyHckY86PNmv12IWRfzT+w/C5tt7ojoZGquo8vmr5D5zycsiSGFPtt1i5oGUjtppZlKr2cYhNwtdwQDal6n5gkydZfRJSJrktBZEjwjTxDBCyh2it7sa10qaV474fQfoWFBq9aGWXN2wtkaDRbb4mMYSKwqFFiapGXTnH27eQUpjmQ1vr2pbxxxCubwtcxjc8Igb70kHMpBYzc+sAvlgz5kzLo2gNSHVX0qOcDOFmbrv50Pj7dsxRmOwFxDVDtEWgJTFW/8O5o7xp6ggulb5pJOqYQmO/sxk7pZH3DHSHxyOFeaDo5mC0fSFok0WyCfTj0LaEZUfkDYisYuFik1jhxVDQukLnAQEWBgFCu4Xm9Y4BKwTYsgyFvLvJ+kgAGvks0CApQsrLf2lXCmiVa5gECPNF6iCfafAbWmtUplM3wCWji72dlnYjTrLltBoG9nBFJTPyXfYR5Hau9WPFIe8k9pzz09CRdAwBlRvCJitWBKatVkqlGV8otPau9uzDh5KHsJf8I+QdfhnMpeh3DuFCvGXc8mr/NwU6N9xtPqFjAy1bHpQf2G0aYnVOpGyeHs4kyHQsvqtcff0NoiOtnVkW3Kp8AQa8AjBulKieqANow6oL8BdAdpywEUIO+ZcjgqHKQITZeyQV0grIIoCUBZBTAEiq3AZPj6+2Xz2UYw5wXkIgmCk2kyIwfn2ZBROG0xGjajYjtWEwrmeAchOx5ZUQdkp25adiLx2aJTHFKhiKPTMznwvP7fMJ5oEAxZIING4n/UrKX/iNejmLNnsvtJyNLZpl8EdQD8QK6UeaWHR1q6uA9ppT8ZbFaty6vhCC81n/zBQOijAxsR4o6A9RQr4LCy1gwvVwRsF2z6fezp+LzYAn0PhfcmtKyj1A5rp45PLfE/UXIIgtZbO4XdCXmYHzg6rgvhxqArHPvCf3l1hJsiZR8Uhxwd218kDD9T4wuRV//wBt/ReY0Ziz5RJQ4Dl2KLWRCvW4aE9o/cBGbDtvDIZ+apg6B1UMRlwdb3AhY7Y1Ps9wLpWbApvBA/O6q9rGzGGM8+0ySj4rXhNSXz+Ss6+9TAdhDMOv/ZnudozJ4Ym8vun46Q0pauC7Her2Ia4jB6uwsQEFfMiW7LJjP29EQc1V2dzEejDqkRp6GsP0SPOHYpEGZTuhRmDUeYdTsWmV3gKEbpG7gBS9mUH1RhHROW+IKm3J0YmELrg2thR6T1V0ifnNH1+0GculFdf0eiGCcch7Ezel5tjmdUZ73j5YqOV8pE6rXMUcIvAlsSHMRLH3NyOgjEZwtxOpV+TObUp6Ez21NxiTIHDa/eMGgyDIXsLUlEsSvklPPSHrkoolEqezeyGXco7TTvVfztE33nQJDs6ZppeZE845iGjkADI35DzOdUrHnhTBpOiW1kNnRzJEeQF+OnJzTgxBm91wWyW4c4XiKxOle47YvdR11ITIGTv+BK2qmrWwCUF7URwU+uMOuDYcZXOHbqcFDQZa7Pyw0dFSuLnQl+q/EQa+bI+aujrpdVZOjRoWK9pmYWLy9uF3hFg1c04dgX63BG7HRTe7nhozyK0YA6GiC3B+6ShEQswNGjwd5+3bwPOp8nm/vvjvKzJnfifbg7gfR6TTknMgeG8+XWcISbKm6Zi7tzw8aiNY1x4IzEwdmoO3KuyFxPN+mVF7nr1SoJ6T/p8eDM+QrF278On4iwhFkSoRGNCHa1ct4mwbUQPfExXQEHJXNzLT5gGMkcmAyqu0IPjtil+evAteR1tw4E4F90HhJXQpxgqN0koTt3hRRo1pzYMV6tmPiZK8l9MEou1W1ppxvxQddyfgN3BaFyk8haoHiH8IbOOHbn2i00CbwjPuNzZzQfHHxhvGk1GDhzCVC7aj83eHfXjiADE3+6JQl3KXUNRtZuk5hTlwLsutcC8wL3PfRdEjgwJ8P3JEYTpwIn7Q4QkZssMV9h3xWRazeBiNxk+RqlxpxsoInXrvBTXQlrcndHFlSs3Kk8LJRgpydeQDc4XCSfmpUNAp7a+K5nLRvrMZ+KfesR/oP67tTXQUnyeAlfuNNy66BpjTVu09HIEWZg/Igpc6fbz8EI58z3XPOidh+IYzViSehMXZ2yRa3ZJI9LQgJ/iSlHA18cDRGdBcSZ6pPdhX2gGBuOYrSm/T7G2HQEo9p6w6w0hjhOZGE75s4cINrBlNt0zV+H9Weypu7kxHq6lwB0cY3xWmzHG3cuhfVsC9gYc2e8LeusCPcTZ7ysXdt/e5uRORNF0j4YdVndknWcOFPipW2O6eKaBEnMHIHV0Y2O68Ly5B+u7ER1pKLxneiF7OUpcKdFr/W96CWhM+64dlI5D1iuON0gYLniWls3TiWsVgXrc7CmURLiFXUFl5IfNo7rnuMwccVN7LQsq60H4hAs3Tt+X4a1JmwdkNMzPHt1xnxQ3MR6rZEV1yRdtSYuVwyIrm7yQ5fWcInDRdp5MXaqpkU316vNjYViwYnvEDM1kGpc1i7ICjszp0S7B7surbE7rNSWFW/fm6Tljovd1I1H5AHLlROyqRt31oaVrFauJDTUJuzGYU3InIgVU+zMoagbTNUl5i3Zi0PjXNR6WPPKawvMFf2lBnKM+0OeWG0QOFMgoVa+Zr81rAvsPqQR+ekILjUCbdzwesRiKcJ/vGNs5YwWU9zuL/S0zhWbK7qsp1vMr08tkOO8HMHVtm2NPbKVQ25RS7vRfD68XNmNLWviFeEnEr+enlG2xP9g7krBfr2m+JKZJ2h46cK/TmyIE4cChtrZbW1cS7JKL6s+Erx2FlvmU1IX2wUOgo1t4T+7kmXTbracBzSWxMhbksCdcnLrW/SC4wV1JlDd1a2+18V1hcN5QNAjjZdOdXzU7SKnzY0uluiBBTFeuHOzrWX7INij5oxZqxuRzZWaM8V1ugVQutT+ImSNRs5c/dC+h6XL69aV4nzrJsYtC0+uWUj/SW1aPKdOFaoo4y4zx2f16aHzMHZmXwKQNuStmENRRuvu5q+cLxpyFkUOodMtstZF55o2eyvn/PJsGl1iXkDX6MqlqGNXO6ytzSxmnKA7YdbG6H7tjPvUte0IKNxccaAsajWfktAnp2JFjGNBzxmrQxvZZuUazMZ4ERJX2oB2dS+Q5MCL+sLY8NnalRia9qUbfWa3iR8Q7E6xmX5QIzdkrip/C1L2SMP5SrBwhJg6qN0ksTXjcXQ6WK2XNCbYobSTbumBl65cAxn3l+5081RFLLse08R1hiMyw85syba2EtPlRUPmJ0GJGj9pE2PCI3/BwbMrwHSvd+UALEY3OAl9Rzv9tTNXsusiG+LV2qGrEor12jWuxba8HDVd21Z4PVF3ijJsWxWS14K71LFZ8SezR6+1iYXMnfoVNXeZvVw2F1yu6C/1FnTLvAJLuy7f0CdX4ojaLfu1iQV0NXMoYamdHdflJRO8aCh0fsxfkfdMZU2Go/rsC8nLY9BzRb2psmfe/H/1A4e2qnJ4Ghe2EeUxOqPOdOlU5csCsB8OiZd2NkmXFnsJl4KEc4eAImbGjVoVnKP637xCO/9JuE+jSp99ktcF5eSFMVec84POItnrpLSBRUuXVNnBkLjsxcU5EXNGhym1eHXj2n9HbELdSfbadtIlMzQMCA4dss/2Ja1jfGtessCVCT/q+Afjtqxk5Y5oabcV0ccVzlmAHcGlPTpaF9cVFvr+MqBzd0RMYdbpGGdGn505H7Wn1+QAyyHRUoKwxg/GK8ZlMZT/jKYcU1dKoqxH/q99grbGa4Xs88i8Zxw7hGzftPjKXSVdZsK0YBx5L3S1coibbRvjTxLLeKKjuIybF3/hV+xMpaJtNXZDnwj6UxyYzlxPOgiMGWc2ZjHjM1ni6UowUREz88Urv5A13ETWNK7GJtQPqe9ayzLbVRhbalMs59I7uj07xp3MPWqO7lDzFYx3OFwQvhuu5I602S4tVrg5I2+6s+K0uTH/GTlW1Kg9aSkfaHJIgkvjvOzv0XSsxCzALgW2bZdN3bEXaeO6gks5P+vGcSWhQ0lftWON+S354Agp1Zw1XkzsYRqgM4d2onaXAm1gIY0xf0UjKl6JcODaxFDbroAnPppwoB4oeUkhOcJNe0CaPrdkhpFbxdmKrBnPcXqERPjFTVpt4wEhjwRP6DJJCzSqpHAmck5HHo0nN2UymMxkpwx3dFnHtnfuPVP0Z7JaO8JrV9Bij1dA5g7Jl3pPzngSRfAia6n5HVNmfdvKbIWDjQvlVhsb+7cmvDANAvG5s8Jm3tAQyFZs5s6kIdUFML89BTGh0hhx5yhQu0GYl7KEO3QPQG1hZh7XtkjPnbTmvq2xa8togVjDFWJKVVDmYdw5EHNnQ+p3+tekNSVhSJ3pWWnbqKhCPRlgybi1I6x2sX1rLvijUylx7flB2rTEB4vSZhgVsk8iW+KApKkkh6DZbuos+9JHbln41uWMsTm6xPGScIeoWSuMiom/PB04VPOvuyWnYsEanBz1gvqZvSAdTkO8Ihy7KlPZ20TlwMpRucoej9BiRYIATZabFbpAq6Vr1mvRYqsVdrXRtVnFLlCtE4cSabqjM7RYceZMYtumTJ3/X+K7UjGnRpkzVxpqgZK2ujuDBNX4stHNlzZIdGjeg26bLB1WY2dDpV2j1vqEvbhz8tUtnnxy9DVzBZRSoZq5RkkLlOe5gslmOGFKArKW3owznnJrP071hXRhPrxc8ZabupWo+eBqOoJLmdH81l7ZNK+WK7zqILRX2xFcVnfjvXfmCKaWbjm4DqYHOicMbYKijvBSbIiW0TPxEW+ac4+xL/50xS/s6jad+CoyjsM0T5heAz1tocclEWrMGe9HCdNkPx731q8PcED5DLuSZFWH3fWz+0T541sH2CH7X20flj1OcSyCrngE9dq+C9XOHmo9FkJXvIS+dlLtWARd8Rv0o2jHIuiKK6HdNetoBDuuENzfxV/x9Y+FsOsIQvVaYCt74UreCFezRCD0XfFDtFtU5g4w9JeMu2MP6tYtHomfK9ag9pyqI/FzxhTUrTY+Ej9nDEHtQqKc+Z1R/9V3KCADzQzc8nPnANFtqncsgM6cINp5/iMBdPQIaWfPoR0JoDNniAIQjA50JpawfwhnbyaXO8AkcvUAAXACC3iOHh4N+4eHgOfowdHM3JPpGPBcOTR6+xHorxSS5UxviB0KuyidmqwrPQnPFaWnRk3tb1xJz1WtB0L0XNF62o0jjwHvhvnOzBVU6l+slx/IFt9zMkdXdLF8wa+OYFSb1lnfwxeEc1fgKTLYsR4vkFfCYp64s4mVE8R63veC8eeAPjlz/1A5RKwXEF1id8IFHe3a5iPAc8Vy1q/aPQI8ZwxnaFVrEp4rhjM8yeMsCedIeVs3YKoWjPWc2xXmM7lwF+llb2KfOz0SUJ+t3eleogZgOtYDMG65bx1oRRt/ErJ2xgJUs23WhS+l54oJqN/8JGd6N2LrxkuWRA7VvEDbv+8YuiKHbWgG4ZitydxVEbR/CWmDzxXpA1exMWYx42nVi5sEO9YzIRMs1oGD4BV5yWxF+EKI4yMn7kRVldSIdaCyWRIWUonSXuluUuxb39iez5hD+JRqXvv4CI7RGQlcie33oF3MFADRRF6KcwQguAtd3pK66xtbjwym9JyxCqGVok5x6Ir5osYE29bDqlP8kzoCD5zVMmUvaOBOQFXhZ78iQbyfH7t0DVhpX2vd+dgBdPTosF/YJufMhc7IXxua2bzB54r0dXSnsh4HnzOVHdDusG7weS4XJYCQwZUzClB13CBYMCtn9J96gxXABk78Z3eErw9O+CQ+R6WvBUDzSXzOnL5K9137zm+Kz5XKSnC3WDf4nLm7r9ygtp5I3+BzpQlgF1zINMXnSgNA9eiwfvLeh0RAQncMOzp20H7C6IEsqexe4tSdOAWilfjfDxKcDjinP2Q7/ItA1rRFjvA7mHvyFQ9ErF8LHHtB5zhyJVOu3oL7it2SA7Hbc1d45XDS5sFL7PGlI8h2MmUb2aMjvPKoa86Bl+fMlgTCiyXVlsyIrNqSmXg9EnfsCqW1knG74gwvFnjhTL2dYoYZN1zP3KlxUkXrK16SJis+Ixx5S3cGuO/r+6+1idNjRnASvyIPB+6kUjvWoTH2jAbhXNoWAg91S+aUM9O4SpNNue7Ep8OuTC9XujN8bZSLJrJoSV29JvGlWgc9XAzHaLh053aTWh78pcmHesgSzknov6Lzn/4Sh+4YaIqsGbdnh0kkFuBKJFa10b6STdbCNWIvYRRjyl0lZlzARpyGz2nMnyXi0KSumGk7X8neqTnaJkumLHHm6GxYPjrPA/JDXmt1hFdHNc2M+wLnkfjUDhFTL1J/paIjH2BIngWuUFNOAfP78o3avTOOpmKamd+aCWeOsOopVxSMB7LPf1JnQthKAMO4RXYlzFc/cQVXu2f7iLxiMXEl1qOW+tiBha7DJ8ZXTl1wUZquGz8hr1crKl6ukGVA9kvK3LmNYTvl+x5awxFobdvVUXIIhzPx624Od/U0aUVxml+SIR9HK437X7njrUVtnEQkWblCK4eeFlq0bhmaYC4Di64Qs51V2uJy5qTs5jAGJxdgrpyS1k2LiSSDvj8J8198QmeLyixsTYfOyTzam+vBEpIlPpwjuLq2I2OytMeZZKUiW8ZtMM+p1K7tOzZTKryiGI2xv6TOtKDsWY8nbrFNEu4vceQKN+t7c5qEoTNxWOsJkfu1W2Uqii7Tk6726P8D";
@@ -6198,16 +6212,16 @@ d.vertex=!0;var c=new mxCell("Tooltip on bottom",new mxGeometry(0,0,130,30),"htm
d.vertex=!0;var c=new mxCell("Tooltip on left",new mxGeometry(100,0,110,30),"html=1;shadow=0;dashed=0;shape=mxgraph.bootstrap.rrect;rSize=5;fillColor=#6C767D;strokeColor=none;perimeter=none;whiteSpace=wrap;resizeWidth=1;align=center;spacing=5;fontColor=#FFFFFF;fontSize=14;");c.vertex=!0;return a.createVertexTemplateFromCells([d,c],210,30,"Tooltip on left")}),this.addEntry("bootstrap tooltip with HTML",function(){var d=new mxCell("<i>Tooltip </i><u>with</u> <b>HTML</b>",new mxGeometry(10,0,120,30),
"html=1;shadow=0;dashed=0;shape=mxgraph.bootstrap.popover;fillColor=#1A1A1A;strokeColor=none;dx=60;dy=5;rSize=5;whiteSpace=wrap;verticalAlign=top;spacing=10;fontSize=12;spacingLeft=0;align=center;spacingTop=-10;fontColor=#FFFFFF;");d.vertex=!0;var c=new mxCell("Tooltip with HTML",new mxGeometry(0,30,140,30),"html=1;shadow=0;dashed=0;shape=mxgraph.bootstrap.rrect;rSize=5;fillColor=#6C767D;strokeColor=none;perimeter=none;whiteSpace=wrap;resizeWidth=1;align=center;spacing=5;fontColor=#FFFFFF;fontSize=14;");
c.vertex=!0;return a.createVertexTemplateFromCells([d,c],140,60,"Tooltip with HTML")})];this.addPalette("bootstrap",mxResources.get("bootstrap"),!1,mxUtils.bind(this,function(d){for(var c=0;c<b.length;c++)d.appendChild(b[c](d))}));this.setCurrentSearchEntryLibrary()}})();(function(){Sidebar.prototype.addBpmn2Palette=function(){this.setCurrentSearchEntryLibrary("bpmn2","bpmn2General");this.addBPMN2GeneralPalette("mxgraph.bpmn2",400,this);this.setCurrentSearchEntryLibrary("bpmn2","bpmn2Tasks");this.addBPMN2TasksPalette("mxgraph.bpmn2",400,this);this.setCurrentSearchEntryLibrary("bpmn2","bpmn2Choreographies");this.addBPMN2ChoreographiesPalette("mxgraph.bpmn2",400,this);this.setCurrentSearchEntryLibrary("bpmn2","bpmn2Events");this.addBPMN2EventsPalette("mxgraph.bpmn2",
-400,this);this.setCurrentSearchEntryLibrary("bpmn2","bpmn2Gateways");this.addBPMN2GatewaysPalette("mxgraph.bpmn2",400,this);this.setCurrentSearchEntryLibrary()};Sidebar.prototype.addBPMN2GeneralPalette=function(a,b,d){var c=[this.createVertexTemplateEntry("shape=mxgraph.bpmn.data;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;",40,60,"","Data Object",null,null,"bpmn business process model notation data object"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=none;isCollection=1;",
-40,60,"","Data Object Collection",null,null,"bpmn business process model notation data object collection"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=input;",40,60,"","Data Input",null,null,"bpmn business process model notation data input"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=input;isCollection=1;",
-40,60,"","Data Input Collection",null,null,"bpmn business process model notation data input collection"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=output;",40,60,"","Data Output",null,null,"bpmn business process model notation data output"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=output;isCollection=1;",
+400,this);this.setCurrentSearchEntryLibrary("bpmn2","bpmn2Gateways");this.addBPMN2GatewaysPalette("mxgraph.bpmn2",400,this);this.setCurrentSearchEntryLibrary()};Sidebar.prototype.addBPMN2GeneralPalette=function(a,b,d){var c=[this.createVertexTemplateEntry("shape=mxgraph.bpmn.data2;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;",40,60,"","Data Object",null,null,"bpmn business process model notation data object"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data2;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=none;isCollection=1;",
+40,60,"","Data Object Collection",null,null,"bpmn business process model notation data object collection"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data2;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=input;",40,60,"","Data Input",null,null,"bpmn business process model notation data input"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data2;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=input;isCollection=1;",
+40,60,"","Data Input Collection",null,null,"bpmn business process model notation data input collection"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data2;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=output;",40,60,"","Data Output",null,null,"bpmn business process model notation data output"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.data2;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;size=15;html=1;bpmnTransferType=output;isCollection=1;",
40,60,"","Data Output Collection",null,null,"bpmn business process model notation data output collection"),this.createVertexTemplateEntry("shape=datastore;html=1;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;",100,100,"","Data Store",null,null,"bpmn business process model notation data store"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];rounded=1;dashed=1;dashPattern=5 2 1 2;labelPosition=center;verticalLabelPosition=middle;align=center;verticalAlign=middle;fontSize=8;html=1;whiteSpace=wrap;",
140,80,"","Data Object",null,null,"bpmn business process model notation data object"),this.createVertexTemplateEntry("text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;",80,30,"Text","Text Annotation",null,null,"bpmn business process model notation text annotation label"),this.createVertexTemplateEntry("swimlane;html=1;startSize=20;fontStyle=0;collapsible=0;horizontal=0;swimlaneLine=0;fillColor=none;whiteSpace=wrap;",440,100,"","Horizontal Lane",
null,null,"bpmn business process model notation horizontal lane"),this.createVertexTemplateEntry("swimlane;html=1;startSize=20;fontStyle=0;collapsible=0;horizontal=1;swimlaneLine=0;fillColor=none;whiteSpace=wrap;",440,100,"","Vertical Lane",null,null,"bpmn business process model notation vertical lane"),this.createVertexTemplateEntry("swimlane;html=1;startSize=20;fontStyle=0;collapsible=0;horizontal=0;swimlaneLine=1;swimlaneFillColor=#ffffff;strokeWidth=2;whiteSpace=wrap;",440,100,"","Horizontal Lane",
null,null,"bpmn business process model notation horizontal lane"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.swimlane;html=1;startSize=20;horizontal=0;swimlaneLine=1;collapsible=0;fontStyle=0;swimlaneFillColor=#ffffff;strokeWidth=2;isCollection=1;whiteSpace=wrap;",440,100,"","Horizontal Lane",null,null,"bpmn business process model notation horizontal lane"),this.createVertexTemplateEntry("swimlane;html=1;startSize=20;fontStyle=0;collapsible=0;horizontal=1;swimlaneLine=1;strokeWidth=2;swimlaneFillColor=#ffffff;whiteSpace=wrap;",
-220,100,"","Vertical Lane",null,null,"bpmn business process model notation vertical lane"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.swimlane;html=1;startSize=20;horizontal=1;swimlaneLine=1;collapsible=0;fontStyle=0;strokeWidth=2;swimlaneFillColor=#ffffff;isCollection=1;whiteSpace=wrap;",220,100,"","Vertical Lane",null,null,"bpmn business process model notation vertical lane"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=conv;",
-70,60,"","Conversation",null,null,"bpmn business process model notation conversation"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=conv;isLoopSub=1;",70,60,"","Sub-Conversation",null,null,"bpmn business process model notation sub conversation"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=call;",
-70,60,"","Call Conversation",null,null,"bpmn business process model notation call conversation"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=call;isLoopSub=1;",70,60,"","Call Sub-Conversation",null,null,"bpmn business process model notation call sub conversation"),this.createVertexTemplateEntry("html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;",50,100,"","Annotation",
+220,100,"","Vertical Lane",null,null,"bpmn business process model notation vertical lane"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.swimlane;html=1;startSize=20;horizontal=1;swimlaneLine=1;collapsible=0;fontStyle=0;strokeWidth=2;swimlaneFillColor=#ffffff;isCollection=1;whiteSpace=wrap;",220,100,"","Vertical Lane",null,null,"bpmn business process model notation vertical lane"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation2;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=conv;",
+70,60,"","Conversation",null,null,"bpmn business process model notation conversation"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation2;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=conv;isLoopSub=1;",70,60,"","Sub-Conversation",null,null,"bpmn business process model notation sub conversation"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation2;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=call;",
+70,60,"","Call Conversation",null,null,"bpmn business process model notation call conversation"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.conversation2;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;aspect=fixed;bpmnConversationType=call;isLoopSub=1;",70,60,"","Call Sub-Conversation",null,null,"bpmn business process model notation call sub conversation"),this.createVertexTemplateEntry("html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;",50,100,"","Annotation",
null,null,this.getTagsForStencil("bpmn","annotation_1","bpmn business process model ").join(" ")),this.addDataEntry("crossfunctional cross-functional cross functional flowchart swimlane table",400,400,"Cross-Functional Flowchart","7Zldb5swFIZ/DZeb+EjS7nIhTXexSVO2P+DCabDq+CD75Ku/fnZskipAi6JmUxkSkezDscHnfWK9MkGSrnb3ipXFD8xBBMldkKQKkVxrtUtBiCAOeR4ksyCOQ/ML4nnL3ehwNyyZAkldBsRuwIaJNbiIebjWn+ZrmRFHyWzyXOA2K5gil6xpL3yyLlhpm8QebGiaFVzk39ke11RFq95Uk5nhF3+2+aPQJqMQrNT8MHRmIwqytdJ8AwvQLtFGYVcymfvOI8pqkmhS9f0L+dVvQBHsWgtyCPlq3AOugNTepGx5ToXLGIWuaGEBfFnQWZBpF1gex57qaxq+xM3lTmrl/poRKhOKXq/tArdmsQUq/mwWbFRx1dBbvhJMwjdg+VloivnehwhL3xLwSFUeKXyCFIV5fDLjsgDFrUwPSISrShC/ftvOFZa/mVoCvZTiWHrT50JU80mUlocSuaRDvcZTc5kKpuHncTA260tNPzr1zWXTFaUozasxfpALmKYt6Ovh04mYuJmYfQWGG/EWQFH8DgCNagD9LJiGZoA8CZ05ORe0DZEMpYTM/+fdyLr0/1CvpFmvXateR2k66+VnX9gyyKWAS+ZjgkBJRkaCtcx1DYPjq3ciY9xKRjyQ0Y2MaNJPNCataCQDGt3QiG/7icZNqyFp2DUGQ/IhDEnTNnY9R3JbI+j995T63tEGyxt7yt+V6eZ/9CFfBh4u46Gv7iMKByIuI6KvpiOKakRUrqPBkA6u40O4jiZYr+c6ovrB5bCpVAVuOeHst++I6merAxHdiOit86iflg5IdEOiJ9bDdE/f0lz6y09tfwA="),
this.addDataEntry("container swimlane pool horizontal",480,380,"Horizontal Pool 1","zZTPboMwDMafJvf8YdPOpVsvrVSJJ4jAaqIFgkI6oE8/Q0KrdmXjsE09RLI/f7aT3yFEpGW3cbJWO1uAIeKViNRZ60NUdikYQzjVBRFrwjnFQ/jbTJWNVVpLB5Vf0sBDw4c0RwjK3loTxMb3JopNq0sjK8xWypd4yzXDMFfaFFvZ2+Owq/Eyf5+ylYNGn2A/XYTdSDvZoUqHedbpk628nKbiHOczdGLOrx3ZsCL2tUp7yGqZD74WAaIWHwPOQzcLZJQijQ3YErzr0dLqwqvgSF4CNKpAH1RsE5MomyAczr0XvhhExPdxiy+4twNVTtlC5N/AiVwWMeD3GfSxGl/6ExLGfwFJMoeEPxISlvwnk6c5JuKRmPDnP2SC6eUXHGtXn+Qn"),this.addDataEntry("container swimlane pool horizontal",
480,360,"Horizontal Pool 2","zZRNboMwEIVP472xadR1SJtNIkXiBBaMYqsGI+MEyOk7YCcRCVQs2ioLpJk37/nnEzLhSdFurajk3uSgCf8gPLHGOF8VbQJaE0ZVTviGMEbxI+xzZhoNU1oJC6VbEmA+cBb6BF45GKO9WLtOB7FuVKFFid1augJPuYmwzKTS+U505tTvVTuRfV27tYVaXeBwPUj0IO1Fiyrt1zNWXUzphA4CrmNdik7s2diR9lsEWyOVg7QSWe9rECBq4TJgHbSzQAYp0NiCKcDZDi2Nyp30jvjdQ6MS1FGGGF8FUdReON6yd75YBMTTuPkT7l1PldFoIfIf4AQuixiwaQYhEP6ZEZLVBJKI/QKSeA4Je0Uk3cPN/wXR2xwi/sKIWPyHiLC9v5HDbPSEfgM="),this.createVertexTemplateEntry("swimlane;startSize=20;horizontal=0;html=1;whiteSpace=wrap;",
@@ -6221,130 +6235,130 @@ this.createEdgeTemplateEntry("edgeStyle=elbowEdgeStyle;fontSize=12;html=1;endArr
mxUtils.bind(this,function(){var e=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=blockThin;html=1;labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;dashed=1;dashPattern=8 4;endFill=0;startArrow=oval;startFill=0;endSize=6;startSize=4;");e.geometry.setTerminalPoint(new mxPoint(0,0),!0);e.geometry.setTerminalPoint(new mxPoint(160,0),!1);e.geometry.relative=!0;e.edge=!0;var f=new mxCell("",new mxGeometry(0,0,24,16),"shape=message;html=1;outlineConnect=0;labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;spacingRight=5;labelBackgroundColor=#ffffff;");
f.geometry.relative=!0;f.vertex=!0;f.geometry.offset=new mxPoint(8,-8);e.insert(f);return this.createEdgeTemplateFromCells([e],160,0,"Initiating Message Flow with Decorator")})),this.addEntry("edge shape symbol message mail email non initiating message flow with decorator",mxUtils.bind(this,function(){var e=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=blockThin;html=1;labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;dashed=1;dashPattern=8 4;endFill=0;startArrow=oval;startFill=0;endSize=6;startSize=4;");
e.geometry.setTerminalPoint(new mxPoint(0,0),!0);e.geometry.setTerminalPoint(new mxPoint(160,0),!1);e.geometry.relative=!0;e.edge=!0;var f=new mxCell("",new mxGeometry(0,0,24,16),"shape=message;html=1;outlineConnect=0;labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;spacingRight=5;labelBackgroundColor=#ffffff;fillColor=#C0C0C0;");f.geometry.relative=!0;f.vertex=!0;f.geometry.offset=new mxPoint(8,-8);e.insert(f);return this.createEdgeTemplateFromCells([e],160,0,"Non-Initiating Message Flow with Decorator")}))];
-this.addPalette("bpmn2General","BPMN 2.0 General",!1,mxUtils.bind(this,function(e){for(var f=0;f<c.length;f++)e.appendChild(c[f](e))}))};Sidebar.prototype.addBPMN2TasksPalette=function(a,b,d){var c=[this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;",120,
-80,"","Generic Task",null,null,"bpmn business process model notation task generic"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopStandard=1;",120,80,"","Standard Loop",null,null,"bpmn business process model notation task standard loop"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopStandard=1;isLoopSub=1;",
-120,80,"","Standard Loop",null,null,"bpmn business process model notation task standard loop"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopMultiParallel=1;",120,80,"","Multi-Instance, Parallel",null,null,"bpmn business process model notation task multi instance parallel"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;isLoopMultiParallel=1;",120,80,"","Multi-Instance, Parallel",null,null,"bpmn business process model notation task multi instance parallel"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopMultiSeq=1;",
-120,80,"","Multi-Instance, Sequential",null,null,"bpmn business process model notation task multi instance sequential"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;isLoopMultiSeq=1;",120,80,"","Multi-Instance, Sequential",null,null,"bpmn business process model notation task multi instance sequential"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopComp=1;",120,80,"","Compensation",null,null,"bpmn business process model notation task compensation"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;isLoopComp=1;",
-120,80,"","Compensation",null,null,"bpmn business process model notation task compensation"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopComp=1;isLoopStandard=1;",120,80,"","Loop and Compensation",null,null,"bpmn business process model notation task loop compensation"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopComp=1;isLoopStandard=1;isLoopSub=1;",120,80,"","Loop and Compensation",null,null,"bpmn business process model notation task loop compensation"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isAdHoc=1;isLoopSub=1;",
-120,80,"","Ad Hoc, Collapsed",null,null,"bpmn business process model notation task ad hoc collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isAdHoc=1;",120,80,"","Ad Hoc, Expanded",null,null,"bpmn business process model notation task ad hoc expanded"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=service;",120,80,"","Service",null,null,"bpmn business process model notation task service"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=send;",
-120,80,"","Send",null,null,"bpmn business process model notation task send"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=receive;",120,80,"","Receive",null,null,"bpmn business process model notation task receive"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=user;",
-120,80,"","User",null,null,"bpmn business process model notation task user"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=manual;",120,80,"","Manual",null,null,"bpmn business process model notation task manual"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=businessRule;",
-120,80,"","Business Rule",null,null,"bpmn business process model notation task business rule"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=script;",120,80,"","Script",null,null,"bpmn business process model notation task script"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;",
-120,80,"","Sub-Process, Collapsed",null,null,"bpmn business process model notation task sub process subprocess collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=transaction;isLoopSub=1;",120,80,"","Transaction, Collapsed",null,null,
-"bpmn business process model notation task transaction collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=transaction;",120,80,"","Transaction, Expanded",null,null,"bpmn business process model notation task transaction expanded"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=message;",120,80,"","Message-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting message event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=message;",120,80,"","Message-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting message event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=timer;",120,80,"","Timer-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting timer event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=timer;",120,80,"","Timer-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting timer event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=conditional;",120,80,"","Conditional-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting conditional event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=conditional;",120,80,"","Conditional-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting conditional event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=signal;",120,80,"","Signal-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting signal event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=signal;",120,80,"","Signal-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting signal event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=multiple;",120,80,"","Multiple-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting multiple event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=multiple;",120,80,"","Multiple-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting multiple event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=parallelMultiple;",120,80,"","Parallel Multiple Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting parallel multiple event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=parallelMultiple;",120,80,"","Parallel Multiple Event Sub-Process, Interrupting , Collapsed",null,null,"bpmn business process model notation task interrupting parallel multiple event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=escalation;",120,80,"","Escalation-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting escalation event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=escalation;",120,80,"","Escalation-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting escalation event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=error;",120,80,"","Error-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting error event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=compensation;",120,80,"","Compensation-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting compensation event sub process collapsed"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;arcSize=10;taskMarker=abstract;outline=none;symbol=general;bpmnShapeType=subprocess;isLoopSub=0;verticalAlign=top;align=left;spacingLeft=5;html=1;whiteSpace=wrap;",180,100,"","Event Sub-Process, Expanded",null,null,"bpmn business process model notation task event sub process expanded"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;",
-120,80,"","Call Activity",null,null,"bpmn business process model notation task call activity"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=user;",120,80,"","User Call Activity",null,null,"bpmn business process model notation task user call activity"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=manual;",120,80,"","Manual Call Activity",null,null,"bpmn business process model notation task manual call activity"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=businessRule;",
-120,80,"","Business Rule Call Activity",null,null,"bpmn business process model notation task business rule call activity"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=script;",120,80,"","Script Call Activity",null,null,"bpmn business process model notation task script call activity"),
-this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;isLoopSub=1;",120,80,"","Call Activity, Collapsed",null,null,"bpmn business process model notation task call activity collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;verticalAlign=top;align=left;spacingLeft=5;",
+this.addPalette("bpmn2General","BPMN 2.0 General",!1,mxUtils.bind(this,function(e){for(var f=0;f<c.length;f++)e.appendChild(c[f](e))}))};Sidebar.prototype.addBPMN2TasksPalette=function(a,b,d){var c=[this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;",120,
+80,"","Generic Task",null,null,"bpmn business process model notation task generic"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopStandard=1;",120,80,"","Standard Loop",null,null,"bpmn business process model notation task standard loop"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopStandard=1;isLoopSub=1;",
+120,80,"","Standard Loop",null,null,"bpmn business process model notation task standard loop"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopMultiParallel=1;",120,80,"","Multi-Instance, Parallel",null,null,"bpmn business process model notation task multi instance parallel"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;isLoopMultiParallel=1;",120,80,"","Multi-Instance, Parallel",null,null,"bpmn business process model notation task multi instance parallel"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopMultiSeq=1;",
+120,80,"","Multi-Instance, Sequential",null,null,"bpmn business process model notation task multi instance sequential"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;isLoopMultiSeq=1;",120,80,"","Multi-Instance, Sequential",null,null,"bpmn business process model notation task multi instance sequential"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopComp=1;",120,80,"","Compensation",null,null,"bpmn business process model notation task compensation"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;isLoopComp=1;",
+120,80,"","Compensation",null,null,"bpmn business process model notation task compensation"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopComp=1;isLoopStandard=1;",120,80,"","Loop and Compensation",null,null,"bpmn business process model notation task loop compensation"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopComp=1;isLoopStandard=1;isLoopSub=1;",120,80,"","Loop and Compensation",null,null,"bpmn business process model notation task loop compensation"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isAdHoc=1;isLoopSub=1;",
+120,80,"","Ad Hoc, Collapsed",null,null,"bpmn business process model notation task ad hoc collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isAdHoc=1;",120,80,"","Ad Hoc, Expanded",null,null,"bpmn business process model notation task ad hoc expanded"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=service;",120,80,"","Service",null,null,"bpmn business process model notation task service"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=send;",
+120,80,"","Send",null,null,"bpmn business process model notation task send"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=receive;",120,80,"","Receive",null,null,"bpmn business process model notation task receive"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=user;",
+120,80,"","User",null,null,"bpmn business process model notation task user"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=manual;",120,80,"","Manual",null,null,"bpmn business process model notation task manual"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=businessRule;",
+120,80,"","Business Rule",null,null,"bpmn business process model notation task business rule"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=script;",120,80,"","Script",null,null,"bpmn business process model notation task script"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;isLoopSub=1;",
+120,80,"","Sub-Process, Collapsed",null,null,"bpmn business process model notation task sub process subprocess collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=transaction;isLoopSub=1;",120,80,"","Transaction, Collapsed",null,
+null,"bpmn business process model notation task transaction collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=transaction;",120,80,"","Transaction, Expanded",null,null,"bpmn business process model notation task transaction expanded"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=message;",120,80,"","Message-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting message event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=message;",120,80,"","Message-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting message event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=timer;",120,80,"","Timer-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting timer event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=timer;",120,80,"","Timer-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting timer event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=conditional;",120,80,"","Conditional-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting conditional event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=conditional;",120,80,"","Conditional-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting conditional event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=signal;",120,80,"","Signal-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting signal event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=signal;",120,80,"","Signal-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting signal event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=multiple;",120,80,"","Multiple-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting multiple event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=multiple;",120,80,"","Multiple-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting multiple event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=parallelMultiple;",120,80,"","Parallel Multiple Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting parallel multiple event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=parallelMultiple;",120,80,"","Parallel Multiple Event Sub-Process, Interrupting , Collapsed",null,null,"bpmn business process model notation task interrupting parallel multiple event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventNonint;symbol=escalation;",120,80,"","Escalation-Event Sub-Process, Non-interrupting, Collapsed",null,null,"bpmn business process model notation task non interrupting escalation event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=escalation;",120,80,"","Escalation-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting escalation event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=error;",120,80,"","Error-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting error event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;bpmnShapeType=subprocess;isLoopSub=1;outline=eventInt;symbol=compensation;",120,80,"","Compensation-Event Sub-Process, Interrupting, Collapsed",null,null,"bpmn business process model notation task interrupting compensation event sub process collapsed"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;arcSize=10;taskMarker=abstract;outline=none;symbol=general;bpmnShapeType=subprocess;isLoopSub=0;verticalAlign=top;align=left;spacingLeft=5;html=1;whiteSpace=wrap;",180,100,"","Event Sub-Process, Expanded",null,null,"bpmn business process model notation task event sub process expanded"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;",
+120,80,"","Call Activity",null,null,"bpmn business process model notation task call activity"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=user;",120,80,"","User Call Activity",null,null,"bpmn business process model notation task user call activity"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=manual;",120,80,"","Manual Call Activity",null,null,"bpmn business process model notation task manual call activity"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=businessRule;",
+120,80,"","Business Rule Call Activity",null,null,"bpmn business process model notation task business rule call activity"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;taskMarker=script;",120,80,"","Script Call Activity",null,null,"bpmn business process model notation task script call activity"),
+this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;isLoopSub=1;",120,80,"","Call Activity, Collapsed",null,null,"bpmn business process model notation task call activity collapsed"),this.createVertexTemplateEntry("points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task2;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;bpmnShapeType=call;verticalAlign=top;align=left;spacingLeft=5;",
180,100,"","Call Activity, Expanded",null,null,"bpmn business process model notation task call activity expanded")];this.addPalette("bpmn2Tasks","BPMN 2.0 Tasks",!1,mxUtils.bind(this,function(e){for(var f=0;f<c.length;f++)e.appendChild(c[f](e))}))};Sidebar.prototype.addBPMN2ChoreographiesPalette=function(a,b,d){var c=[this.addEntry("bpmn business process model notation choreography choreography task",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task")}),this.addEntry("bpmn business process model notation choreography choreography task loop",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");e.vertex=!0;
-var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task, Loop")}),this.addEntry("bpmn business process model notation choreography choreography task sequential multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task, Sequential Multi Instance")}),this.addEntry("bpmn business process model notation choreography choreography task parallel multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task, Parallel Multi Instance")}),this.addEntry("bpmn business process model notation choreography sub choreography collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography loop collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Loop, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography sequential multi instance collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Sequential Multi Instance, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography parallel multi instance collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Parallel Multi Instance, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography expanded",function(){var e=new mxCell("",new mxGeometry(0,0,400,200),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,400,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,400,160),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;verticalAlign=top;align=left;spacingLeft=5;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,400,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,400,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,400,160),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;verticalAlign=top;align=left;spacingLeft=5;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,400,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Expanded")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
e.vertex=!0;return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"bzzzzt")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");e.vertex=!0;var f=new mxCell("",
-new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task loop",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global, Loop")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task sequential multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global, Sequential Multi Instance")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task parallel multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global, Parallel Multi Instance")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling loop",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Loop")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling sequential multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Sequential Multi Instance")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling parallel multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Parallel Multi Instance")}),this.addEntry("bpmn business process model notation choreography choreography task",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task")}),this.addEntry("bpmn business process model notation choreography choreography task loop",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");e.vertex=!0;
-var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task, Loop")}),this.addEntry("bpmn business process model notation choreography choreography task sequential multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task, Sequential Multi Instance")}),this.addEntry("bpmn business process model notation choreography choreography task parallel multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Choreography Task, Parallel Multi Instance")}),this.addEntry("bpmn business process model notation choreography sub choreography collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography loop collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Loop, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography sequential multi instance collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Sequential Multi Instance, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography parallel multi instance collapsed",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;taskMarker=abstract;part=1;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Parallel Multi Instance, Collapsed")}),this.addEntry("bpmn business process model notation choreography sub choreography expanded",function(){var e=new mxCell("",new mxGeometry(0,0,400,200),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,400,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,400,160),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;verticalAlign=top;align=left;spacingLeft=5;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,400,20),
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,400,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,400,160),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;verticalAlign=top;align=left;spacingLeft=5;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,400,20),
"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Sub-Choreography, Expanded")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task loop",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;fillColor=#C0C0C0;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global, Loop")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task sequential multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global, Sequential Multi Instance")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling global task parallel multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling Global, Parallel Multi Instance")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling loop",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopStandard=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Loop")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling sequential multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiSeq=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Sequential Multi Instance")}),this.addEntry("bpmn business process model notation choreography call choreography activity calling parallel multi instance",function(){var e=new mxCell("",new mxGeometry(0,0,120,100),"rounded=1;whiteSpace=wrap;html=1;container=1;collapsible=0;absoluteArcSize=1;arcSize=20;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;strokeWidth=8;");
-e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
-f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Parallel Multi Instance")}),this.createVertexTemplateEntry("whiteSpace=wrap;shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;html=1;",120,20,"","Participant, Initiating, Top",null,null,"bpmn business process model notation choreography initiating participant top"),this.addEntry("bpmn business process model notation choreography initiating participant top with decorator",
-function(){var e=new mxCell("",new mxGeometry(0,60,120,20),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;whiteSpace=wrap;html=1;");e.vertex=!0;var f=new mxCell("",new mxGeometry(40,0,40,30),"shape=message;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=0;rounded=0;");
-g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Initiating, Top with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=square;whiteSpace=wrap;html=1;",120,20,"","Additional Participant, Initiating",null,null,"bpmn business process model notation choreography initiating additional participant"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;whiteSpace=wrap;html=1;",
-120,20,"","Participant, Initiating, Bottom",null,null,"bpmn business process model notation choreography initiating participant bottom"),this.addEntry("bpmn business process model notation choreography initiating participant bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,20),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;whiteSpace=wrap;html=1;");e.vertex=!0;var f=new mxCell("",new mxGeometry(40,
-50,40,30),"shape=message;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=1;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Initiating, Bottom with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;",
-120,40,"","Participant, Initiating, Multi-Instance, Top",null,null,"bpmn business process model notation choreography initiating participant bottom"),this.addEntry("bpmn business process model notation choreography initiating participant multi instance top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,40),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;");
+e.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,120,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;part=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,0,120,60),"shape=mxgraph.bpmn.task2;arcSize=0;part=1;taskMarker=abstract;isLoopSub=1;isLoopMultiParallel=1;connectable=0;whiteSpace=wrap;html=1;");f.vertex=!0;e.insert(f);f=new mxCell("",new mxGeometry(0,1,20,20),"whiteSpace=wrap;connectable=0;html=1;shape=mxgraph.basic.rect;size=10;rectStyle=rounded;topRightStyle=square;topLeftStyle=square;part=1;");
+f.vertex=!0;f.geometry.relative=!1;e.insert(f);return d.createVertexTemplateFromCells([e],e.geometry.width,e.geometry.height,"Call Choreography calling a Choreography, Parallel Multi Instance")}),this.createVertexTemplateEntry("whiteSpace=wrap;shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;html=1;",120,20,"","Participant, Initiating, Top",null,null,"bpmn business process model notation choreography initiating participant top"),
+this.addEntry("bpmn business process model notation choreography initiating participant top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,20),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;whiteSpace=wrap;html=1;");e.vertex=!0;var f=new mxCell("",new mxGeometry(40,0,40,30),"shape=message;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=0;rounded=0;");
+g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Initiating, Top with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=square;whiteSpace=wrap;html=1;",120,20,"","Additional Participant, Initiating",null,null,"bpmn business process model notation choreography initiating additional participant"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;whiteSpace=wrap;html=1;",
+120,20,"","Participant, Initiating, Bottom",null,null,"bpmn business process model notation choreography initiating participant bottom"),this.addEntry("bpmn business process model notation choreography initiating participant bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,20),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;whiteSpace=wrap;html=1;");e.vertex=!0;var f=new mxCell("",new mxGeometry(40,
+50,40,30),"shape=message;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=1;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Initiating, Bottom with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;",
+120,40,"","Participant, Initiating, Multi-Instance, Top",null,null,"bpmn business process model notation choreography initiating participant bottom"),this.addEntry("bpmn business process model notation choreography initiating participant multi instance top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,40),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;");
e.vertex=!0;var f=new mxCell("",new mxGeometry(40,0,40,30),"shape=message;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=0;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,100,"Participant, Initiating, Multi-Instance Top with Decorator")}),
-this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;",120,40,"","Additional Participant, Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography initiating additional participant multi instance bottom"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;verticalAlign=top;isLoopMultiParallel=1;topLeftStyle=square;topRightStyle=square;whiteSpace=wrap;html=1;",
-120,40,"","Participant, Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography initiating participant multi instance bottom"),this.addEntry("bpmn business process model notation choreography initiating participant multi instance bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,40),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;topLeftStyle=square;topRightStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;");
+this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;",120,40,"","Additional Participant, Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography initiating additional participant multi instance bottom"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;verticalAlign=top;isLoopMultiParallel=1;topLeftStyle=square;topRightStyle=square;whiteSpace=wrap;html=1;",
+120,40,"","Participant, Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography initiating participant multi instance bottom"),this.addEntry("bpmn business process model notation choreography initiating participant multi instance bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,40),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;topLeftStyle=square;topRightStyle=square;verticalAlign=top;isLoopMultiParallel=1;whiteSpace=wrap;html=1;");
e.vertex=!0;var f=new mxCell("",new mxGeometry(40,70,40,30),"shape=message;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=1;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,100,"Participant, Initiating, Multi-Instance, Bottom with Decorator")}),
-this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",120,20,"","Participant, Non-Initiating, Top",null,null,"bpmn business process model notation choreography non initiating participant top"),this.addEntry("bpmn business process model notation choreography non initiating participant top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,20),
-"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");e.vertex=!0;var f=new mxCell("",new mxGeometry(40,0,40,30),"shape=message;fillColor=#C0C0C0;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=0;rounded=0;");g.geometry.relative=
-!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Non-Initiating, Top with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",120,20,"","Additional Participant, Non-Initiating",null,null,"bpmn business process model notation choreography non initiating additional participant"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",
-120,20,"","Participant, Non-Initiating, Bottom",null,null,"bpmn business process model notation choreography non initiating participant bottom"),this.addEntry("bpmn business process model notation choreography non initiating participant bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,20),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");e.vertex=!0;var f=
-new mxCell("",new mxGeometry(40,50,40,30),"shape=message;fillColor=#C0C0C0;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=1;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Non-Initiating, Bottom with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",
-120,40,"","Participant, Non-Initiating, Multi-Instance, Top",null,null,"bpmn business process model notation choreography initiating participant bottom"),this.addEntry("bpmn business process model notation choreography non initiating participant multi instance top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,40),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");
+this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",120,20,"","Participant, Non-Initiating, Top",null,null,"bpmn business process model notation choreography non initiating participant top"),this.addEntry("bpmn business process model notation choreography non initiating participant top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,20),
+"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");e.vertex=!0;var f=new mxCell("",new mxGeometry(40,0,40,30),"shape=message;fillColor=#C0C0C0;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=0;rounded=0;");g.geometry.relative=
+!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Non-Initiating, Top with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",120,20,"","Additional Participant, Non-Initiating",null,null,"bpmn business process model notation choreography non initiating additional participant"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",
+120,20,"","Participant, Non-Initiating, Bottom",null,null,"bpmn business process model notation choreography non initiating participant bottom"),this.addEntry("bpmn business process model notation choreography non initiating participant bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,20),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;isLoopSub=0;topLeftStyle=square;topRightStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");e.vertex=!0;var f=
+new mxCell("",new mxGeometry(40,50,40,30),"shape=message;fillColor=#C0C0C0;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=1;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,80,"Participant, Non-Initiating, Bottom with Decorator")}),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",
+120,40,"","Participant, Non-Initiating, Multi-Instance, Top",null,null,"bpmn business process model notation choreography initiating participant bottom"),this.addEntry("bpmn business process model notation choreography non initiating participant multi instance top with decorator",function(){var e=new mxCell("",new mxGeometry(0,60,120,40),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;bottomRightStyle=square;bottomLeftStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");
e.vertex=!0;var f=new mxCell("",new mxGeometry(40,0,40,30),"shape=message;fillColor=#C0C0C0;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=0;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,100,"Participant, Non-Initiating, Multi-Instance, Top with Decorator")}),
-this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",120,40,"","Additional Participant, Non-Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography non initiating additional participant multi instance bottom"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;verticalAlign=top;isLoopMultiParallel=1;topLeftStyle=square;topRightStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",
-120,40,"","Participant, Non-Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography non initiating participant multi instance bottom"),this.addEntry("bpmn business process model notation choreography non initiating participant multi instance bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,40),"shape=mxgraph.bpmn.task;part=1;taskMarker=abstract;rectStyle=rounded;topLeftStyle=square;topRightStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");
+this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",120,40,"","Additional Participant, Non-Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography non initiating additional participant multi instance bottom"),this.createVertexTemplateEntry("shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;verticalAlign=top;isLoopMultiParallel=1;topLeftStyle=square;topRightStyle=square;fillColor=#C0C0C0;whiteSpace=wrap;html=1;",
+120,40,"","Participant, Non-Initiating, Multi-Instance, Bottom",null,null,"bpmn business process model notation choreography non initiating participant multi instance bottom"),this.addEntry("bpmn business process model notation choreography non initiating participant multi instance bottom with decorator",function(){var e=new mxCell("",new mxGeometry(0,0,120,40),"shape=mxgraph.bpmn.task2;part=1;taskMarker=abstract;rectStyle=rounded;topLeftStyle=square;topRightStyle=square;verticalAlign=top;isLoopMultiParallel=1;fillColor=#C0C0C0;whiteSpace=wrap;html=1;");
e.vertex=!0;var f=new mxCell("",new mxGeometry(40,70,40,30),"shape=message;fillColor=#C0C0C0;html=1;");f.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;html=1;elbow=horizontal;endArrow=none;labelBackgroundColor=none;endSize=12;endFill=0;dashed=1;dashPattern=1 2;exitX=0.5;exitY=1;rounded=0;");g.geometry.relative=!0;g.edge=!0;e.insertEdge(g,!0);f.insertEdge(g,!1);return d.createVertexTemplateFromCells([e,f,g],120,100,"Participant, Non-Initiating, Multi-Instance, Bottom with Decorator")})];
this.addPalette("bpmn2Choreographies","BPMN 2.0 Choreographies",!1,mxUtils.bind(this,function(e){for(var f=0;f<c.length;f++)e.appendChild(c[f](e))}))};Sidebar.prototype.addBPMN2EventsPalette=function(a,b,d){var c=[this.createVertexTemplateEntry("points=[[0.145,0.145,0],[0.5,0,0],[0.855,0.145,0],[1,0.5,0],[0.855,0.855,0],[0.5,1,0],[0.145,0.855,0],[0,0.5,0]];shape=mxgraph.bpmn.event;html=1;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;align=center;perimeter=ellipsePerimeter;outlineConnect=0;aspect=fixed;outline=standard;symbol=general;",
50,50,"","None Start",null,null,"bpmn business process model notation event none start"),this.createVertexTemplateEntry("points=[[0.145,0.145,0],[0.5,0,0],[0.855,0.145,0],[1,0.5,0],[0.855,0.855,0],[0.5,1,0],[0.145,0.855,0],[0,0.5,0]];shape=mxgraph.bpmn.event;html=1;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;align=center;perimeter=ellipsePerimeter;outlineConnect=0;aspect=fixed;outline=throwing;symbol=general;",50,50,"","None Intermediate, Throwing",null,null,"bpmn business process model notation event none intermediate throwing"),
@@ -12161,7 +12175,7 @@ e.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+th
DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var f=new mxCodec(mxUtils.createXmlDocument()),m=f.document.createElement("mxfile");if(null!=b)for(var d=0;d<b.length;d++){var t=f.encode(new mxGraphModel(b[d].root));"1"!=urlParams.dev&&(t=this.ui.anonymizeNode(t,!0));t.setAttribute("id",b[d].getId());b[d].viewState&&this.ui.editor.graph.saveViewState(b[d].viewState,t,!0);m.appendChild(t)}return mxUtils.getPrettyXml(m)};
DrawioFile.prototype.compressReportData=function(b,f,m){f=null!=f?f:1E4;null!=m&&null!=b&&b.length>m?b=b.substring(0,m)+"[...]":null!=b&&b.length>f&&(b=Graph.compress(b)+"\n");return b};
DrawioFile.prototype.checksumError=function(b,f,m,d,t,y,x,C){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var K=this.getCurrentUser(),M=null!=K?K.id:"unknown",N=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",P=JSON.stringify(f).length,I=null;if(null!=f&&1E3>P){for(b=0;b<f.length;b++)this.ui.anonymizePatch(f[b]);I=JSON.stringify(f);I=null!=I&&1E3>I.length?Graph.compress(I):
-null}this.getLatestVersion(mxUtils.bind(this,function(c){try{var e=null!=I?"report":"error",l=this.ui.getHashValueForPages(c.getShadowPages()),n="unknown",p="unknown",u="unknown";try{var A=null!=c.initialData&&0<c.initialData.length?mxUtils.parseXml(c.initialData).documentElement:null;null!=A&&(null!=A.getAttribute("version")&&(n=A.getAttribute("version")),null!=A.getAttribute("agent")&&(p=A.getAttribute("agent")),null!=A.getAttribute("type")&&(u=A.getAttribute("type")))}catch(D){}EditorUi.logError("Checksum "+
+null}this.getLatestVersion(mxUtils.bind(this,function(c){try{var e=null!=I?"report":"error",l=this.ui.getHashValueForPages(c.getShadowPages()),n="unknown",p="unknown",u="unknown";try{var B=null!=c.initialData&&0<c.initialData.length?mxUtils.parseXml(c.initialData).documentElement:null;null!=B&&(null!=B.getAttribute("version")&&(n=B.getAttribute("version")),null!=B.getAttribute("agent")&&(p=B.getAttribute("agent")),null!=B.getAttribute("type")&&(u=B.getAttribute("type")))}catch(D){}EditorUi.logError("Checksum "+
e+" in "+t,null,this.getMode()+"."+N,"user_"+M+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+P+"-patches_"+f.length+(null!=I?"-json_"+I:"")+"-size_"+this.getSize()+(null!=y?"-expected_"+y:"")+(null!=x?"-current_"+x:"")+(null!=C?"-rev_"+this.ui.hashValue(C):"")+(null!=l?"-latest_"+l:"")+"-latestRev_"+this.ui.hashValue(c.getCurrentRevisionId())+("-latestVersion_"+n)+("-latestAgent_"+p)+("-latestType_"+u));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+N,action:t,label:"user_"+
M+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+P+"-patches_"+f.length+"-size_"+this.getSize()})}catch(D){}}),function(){})}catch(c){}};
DrawioFile.prototype.sendErrorReport=function(b,f,m,d){try{var t=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),y=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),x=this.getCurrentUser(),C=null!=x?this.ui.hashValue(x.id):"unknown",K=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",M=this.getTitle(),N=M.lastIndexOf(".");x="xml";0<N&&(x=M.substring(N));var P=null!=m?m.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
@@ -12255,10 +12269,10 @@ StorageLibrary.prototype.isRenamable=function(b,f,m){return".scratchpad"!=this.t
RemoteLibrary.prototype.saveAs=function(b,f,m){};RemoteLibrary.prototype.updateFileData=function(){};RemoteLibrary.prototype.open=function(){};UrlLibrary=function(b,f,m){StorageFile.call(this,b,f,m);b=m;f=b.lastIndexOf("/");0<=f&&(b=b.substring(f+1));this.fname=b};mxUtils.extend(UrlLibrary,StorageFile);UrlLibrary.prototype.getHash=function(){return"U"+encodeURIComponent(this.title)};UrlLibrary.prototype.getTitle=function(){return this.fname};UrlLibrary.prototype.isAutosave=function(){return!1};UrlLibrary.prototype.isEditable=function(b,f,m){return!1};UrlLibrary.prototype.saveAs=function(b,f,m){};UrlLibrary.prototype.open=function(){};EmbedFile=function(b,f,m){DrawioFile.call(this,b,f);this.desc=m||{};this.mode=App.MODE_EMBED};mxUtils.extend(EmbedFile,DrawioFile);EmbedFile.prototype.getMode=function(){return this.mode};EmbedFile.prototype.getTitle=function(){return this.desc.title||""};/*
mxClient.IS_IOS || */
var StorageDialog=function(b,f,m){function d(P,I,c,e,l,n){function p(){mxEvent.addListener(u,"click",null!=n?n:function(){c==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(c,!0);f()})):c==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(c,!0);f()}),function(T){b.spinner.stop();b.handleError(T)}):
-(b.setMode(c,!0),f())})}C++;++x>m&&(mxUtils.br(K),x=1);var u=document.createElement("a");u.style.overflow="hidden";u.style.display="inline-block";u.className="geBaseButton";u.style.boxSizing="border-box";u.style.fontSize="11px";u.style.position="relative";u.style.margin="4px";u.style.marginTop="8px";u.style.marginBottom="0px";u.style.padding="8px 10px 8px 10px";u.style.width="88px";u.style.height="100px";u.style.whiteSpace="nowrap";u.setAttribute("title",I);var A=document.createElement("div");A.style.textOverflow=
-"ellipsis";A.style.overflow="hidden";A.style.position="absolute";A.style.bottom="8px";A.style.left="0px";A.style.right="0px";mxUtils.write(A,I);u.appendChild(A);if(null!=P){var D=document.createElement("img");D.setAttribute("src",P);D.setAttribute("border","0");D.setAttribute("align","absmiddle");D.style.width="60px";D.style.height="60px";D.style.paddingBottom="6px";u.appendChild(D)}else A.style.paddingTop="5px",A.style.whiteSpace="normal",mxClient.IS_IOS?(u.style.padding="0px 10px 20px 10px",u.style.top=
-"6px"):mxClient.IS_FF&&(A.style.paddingTop="0px",A.style.marginTop="-2px");if(null!=l)for(P=0;P<l.length;P++)mxUtils.br(A),mxUtils.write(A,l[P]);if(null!=e&&null==b[e]){D.style.visibility="hidden";mxUtils.setOpacity(A,10);var G=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});G.spin(u);var E=window.setTimeout(function(){null==b[e]&&(G.stop(),u.style.display="none")},3E4);b.addListener("clientLoaded",
-mxUtils.bind(this,function(T,O){null!=b[e]&&O.getProperty("client")==b[e]&&(window.clearTimeout(E),mxUtils.setOpacity(A,100),D.style.visibility="",G.stop(),p(),"drive"==e&&null!=M.parentNode&&M.parentNode.removeChild(M))}))}else p();K.appendChild(u)}m=null!=m?m:2;var t=document.createElement("div");t.style.textAlign="center";t.style.whiteSpace="nowrap";t.style.paddingTop="0px";t.style.paddingBottom="20px";var y=document.createElement("div");y.style.border="1px solid #d3d3d3";y.style.borderWidth="1px 0px 1px 0px";
+(b.setMode(c,!0),f())})}C++;++x>m&&(mxUtils.br(K),x=1);var u=document.createElement("a");u.style.overflow="hidden";u.style.display="inline-block";u.className="geBaseButton";u.style.boxSizing="border-box";u.style.fontSize="11px";u.style.position="relative";u.style.margin="4px";u.style.marginTop="8px";u.style.marginBottom="0px";u.style.padding="8px 10px 8px 10px";u.style.width="88px";u.style.height="100px";u.style.whiteSpace="nowrap";u.setAttribute("title",I);var B=document.createElement("div");B.style.textOverflow=
+"ellipsis";B.style.overflow="hidden";B.style.position="absolute";B.style.bottom="8px";B.style.left="0px";B.style.right="0px";mxUtils.write(B,I);u.appendChild(B);if(null!=P){var D=document.createElement("img");D.setAttribute("src",P);D.setAttribute("border","0");D.setAttribute("align","absmiddle");D.style.width="60px";D.style.height="60px";D.style.paddingBottom="6px";u.appendChild(D)}else B.style.paddingTop="5px",B.style.whiteSpace="normal",mxClient.IS_IOS?(u.style.padding="0px 10px 20px 10px",u.style.top=
+"6px"):mxClient.IS_FF&&(B.style.paddingTop="0px",B.style.marginTop="-2px");if(null!=l)for(P=0;P<l.length;P++)mxUtils.br(B),mxUtils.write(B,l[P]);if(null!=e&&null==b[e]){D.style.visibility="hidden";mxUtils.setOpacity(B,10);var G=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});G.spin(u);var E=window.setTimeout(function(){null==b[e]&&(G.stop(),u.style.display="none")},3E4);b.addListener("clientLoaded",
+mxUtils.bind(this,function(T,O){null!=b[e]&&O.getProperty("client")==b[e]&&(window.clearTimeout(E),mxUtils.setOpacity(B,100),D.style.visibility="",G.stop(),p(),"drive"==e&&null!=M.parentNode&&M.parentNode.removeChild(M))}))}else p();K.appendChild(u)}m=null!=m?m:2;var t=document.createElement("div");t.style.textAlign="center";t.style.whiteSpace="nowrap";t.style.paddingTop="0px";t.style.paddingBottom="20px";var y=document.createElement("div");y.style.border="1px solid #d3d3d3";y.style.borderWidth="1px 0px 1px 0px";
y.style.padding="10px 0px 20px 0px";var x=0,C=0,K=document.createElement("div");K.style.paddingTop="2px";y.appendChild(K);var M=document.createElement("p"),N=document.createElement("p");N.style.cssText="font-size:22px;padding:4px 0 16px 0;margin:0;color:gray;";mxUtils.write(N,mxResources.get("saveDiagramsTo")+":");t.appendChild(N);t.appendChild(y);x=0;"function"===typeof window.DriveClient&&d(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive");"function"===
typeof window.OneDriveClient&&d(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive");"1"!=urlParams.noDevice&&d(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);!isLocalStorage||"1"!=urlParams.browser&&"1"!=urlParams.offline||d(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER);"function"===typeof window.DropboxClient&&d(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox");
null!=b.gitHub&&d(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),App.MODE_GITHUB,"gitHub");null!=b.gitLab&&d(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab");y=document.createElement("span");y.style.position="absolute";y.style.cursor="pointer";y.style.bottom="27px";y.style.color="gray";y.style.userSelect="none";y.style.textAlign="center";y.style.left="50%";mxUtils.setPrefixedStyle(y.style,"transform","translate(-50%,0)");mxUtils.write(y,mxResources.get("decideLater"));
@@ -12285,20 +12299,20 @@ mxUtils.button("",function(){try{var c="https://twitter.com/intent/tweet?text="+
" max)"),I.style.verticalAlign="bottom",I.style.paddingTop="4px",I.style.minWidth="46px",I.className="geBtn",y.appendChild(I))}!b.isOffline()&&5E5>f.length&&(I=mxUtils.button("",function(){try{var c="mailto:?subject="+encodeURIComponent(K||b.defaultFilename)+"&body="+encodeURIComponent(N.value);b.openLink(c)}catch(e){b.handleError({message:e.message||mxResources.get("drawingTooLarge")})}}),C=document.createElement("img"),C.className="geAdaptiveAsset",C.setAttribute("src",Editor.mailImage),C.setAttribute("width",
"18"),C.setAttribute("height","18"),C.setAttribute("border","0"),C.style.marginBottom="5px",I.appendChild(C),I.style.verticalAlign="bottom",I.style.paddingTop="4px",I.style.minWidth="46px",I.className="geBtn",y.appendChild(I));C=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});y.appendChild(C);I=mxUtils.button(mxResources.get("copy"),function(){N.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?N.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");
b.alert(mxResources.get("copiedToClipboard"))});5E5>f.length?mxClient.IS_SF||null!=document.documentMode?C.className="geBtn gePrimaryBtn":(y.appendChild(I),I.className="geBtn gePrimaryBtn",C.className="geBtn"):null!=P&&(y.appendChild(P),C.className="geBtn",P.className="geBtn gePrimaryBtn");d.appendChild(y);this.container=d};EmbedDialog.showPreviewOption=!0;
-var GoogleSitesDialog=function(b,f){function m(){var T=null!=E&&null!=E.getTitle()?E.getTitle():this.defaultFilename;if(D.checked&&""!=I.value){var O="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(I.value));null!=T&&(O+="&title="+encodeURIComponent(T));0<G.length&&(O+="&s="+G);""!=c.value&&"0"!=c.value&&(O+="&border="+c.value);""!=P.value&&(O+="&height="+P.value);O+="&pan="+(e.checked?"1":"0");O+="&zoom="+(l.checked?"1":"0");O+="&fit="+(A.checked?"1":"0");
+var GoogleSitesDialog=function(b,f){function m(){var T=null!=E&&null!=E.getTitle()?E.getTitle():this.defaultFilename;if(D.checked&&""!=I.value){var O="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(I.value));null!=T&&(O+="&title="+encodeURIComponent(T));0<G.length&&(O+="&s="+G);""!=c.value&&"0"!=c.value&&(O+="&border="+c.value);""!=P.value&&(O+="&height="+P.value);O+="&pan="+(e.checked?"1":"0");O+="&zoom="+(l.checked?"1":"0");O+="&fit="+(B.checked?"1":"0");
O+="&resize="+(u.checked?"1":"0");O+="&x0="+Number(N.value);O+="&y0="+K;t.mathEnabled&&(O+="&math=1");p.checked?O+="&edit=_blank":n.checked&&(O+="&edit="+encodeURIComponent(mxUtils.htmlEntities(window.location.href)));M.value=O}else E.constructor==DriveFile||E.constructor==DropboxFile?(O="https://www.draw.io/gadget.xml?embed=0&diagram=",""!=I.value?O+=encodeURIComponent(mxUtils.htmlEntities(I.value))+"&type=3":(O+=E.getHash().substring(1),O=E.constructor==DropboxFile?O+"&type=2":O+"&type=1"),null!=
T&&(O+="&title="+encodeURIComponent(T)),""!=P.value&&(T=parseInt(P.value)+parseInt(N.value),O+="&height="+T),M.value=O):M.value=""}var d=document.createElement("div"),t=b.editor.graph,y=t.getGraphBounds(),x=t.view.scale,C=Math.floor(y.x/x-t.view.translate.x),K=Math.floor(y.y/x-t.view.translate.y);mxUtils.write(d,mxResources.get("googleGadget")+":");mxUtils.br(d);var M=document.createElement("input");M.setAttribute("type","text");M.style.marginBottom="8px";M.style.marginTop="2px";M.style.width="410px";
d.appendChild(M);mxUtils.br(d);this.init=function(){M.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?M.select():document.execCommand("selectAll",!1,null)};mxUtils.write(d,mxResources.get("top")+":");var N=document.createElement("input");N.setAttribute("type","text");N.setAttribute("size","4");N.style.marginRight="16px";N.style.marginLeft="4px";N.value=C;d.appendChild(N);mxUtils.write(d,mxResources.get("height")+":");var P=document.createElement("input");P.setAttribute("type","text");
P.setAttribute("size","4");P.style.marginLeft="4px";P.value=Math.ceil(y.height/x);d.appendChild(P);mxUtils.br(d);y=document.createElement("hr");y.setAttribute("size","1");y.style.marginBottom="16px";y.style.marginTop="16px";d.appendChild(y);mxUtils.write(d,mxResources.get("publicDiagramUrl")+":");mxUtils.br(d);var I=document.createElement("input");I.setAttribute("type","text");I.setAttribute("size","28");I.style.marginBottom="8px";I.style.marginTop="2px";I.style.width="410px";I.value=f||"";d.appendChild(I);
mxUtils.br(d);mxUtils.write(d,mxResources.get("borderWidth")+":");var c=document.createElement("input");c.setAttribute("type","text");c.setAttribute("size","3");c.style.marginBottom="8px";c.style.marginLeft="4px";c.value="0";d.appendChild(c);mxUtils.br(d);var e=document.createElement("input");e.setAttribute("type","checkbox");e.setAttribute("checked","checked");e.defaultChecked=!0;e.style.marginLeft="16px";d.appendChild(e);mxUtils.write(d,mxResources.get("pan")+" ");var l=document.createElement("input");
l.setAttribute("type","checkbox");l.setAttribute("checked","checked");l.defaultChecked=!0;l.style.marginLeft="8px";d.appendChild(l);mxUtils.write(d,mxResources.get("zoom")+" ");var n=document.createElement("input");n.setAttribute("type","checkbox");n.style.marginLeft="8px";n.setAttribute("title",window.location.href);d.appendChild(n);mxUtils.write(d,mxResources.get("edit")+" ");var p=document.createElement("input");p.setAttribute("type","checkbox");p.style.marginLeft="8px";d.appendChild(p);mxUtils.write(d,
-mxResources.get("asNew")+" ");mxUtils.br(d);var u=document.createElement("input");u.setAttribute("type","checkbox");u.setAttribute("checked","checked");u.defaultChecked=!0;u.style.marginLeft="16px";d.appendChild(u);mxUtils.write(d,mxResources.get("resize")+" ");var A=document.createElement("input");A.setAttribute("type","checkbox");A.style.marginLeft="8px";d.appendChild(A);mxUtils.write(d,mxResources.get("fit")+" ");var D=document.createElement("input");D.setAttribute("type","checkbox");D.style.marginLeft=
-"8px";d.appendChild(D);mxUtils.write(d,mxResources.get("embed")+" ");var G=b.getBasenames().join(";"),E=b.getCurrentFile();mxEvent.addListener(e,"change",m);mxEvent.addListener(l,"change",m);mxEvent.addListener(u,"change",m);mxEvent.addListener(A,"change",m);mxEvent.addListener(n,"change",m);mxEvent.addListener(p,"change",m);mxEvent.addListener(D,"change",m);mxEvent.addListener(P,"change",m);mxEvent.addListener(N,"change",m);mxEvent.addListener(c,"change",m);mxEvent.addListener(I,"change",m);m();
+mxResources.get("asNew")+" ");mxUtils.br(d);var u=document.createElement("input");u.setAttribute("type","checkbox");u.setAttribute("checked","checked");u.defaultChecked=!0;u.style.marginLeft="16px";d.appendChild(u);mxUtils.write(d,mxResources.get("resize")+" ");var B=document.createElement("input");B.setAttribute("type","checkbox");B.style.marginLeft="8px";d.appendChild(B);mxUtils.write(d,mxResources.get("fit")+" ");var D=document.createElement("input");D.setAttribute("type","checkbox");D.style.marginLeft=
+"8px";d.appendChild(D);mxUtils.write(d,mxResources.get("embed")+" ");var G=b.getBasenames().join(";"),E=b.getCurrentFile();mxEvent.addListener(e,"change",m);mxEvent.addListener(l,"change",m);mxEvent.addListener(u,"change",m);mxEvent.addListener(B,"change",m);mxEvent.addListener(n,"change",m);mxEvent.addListener(p,"change",m);mxEvent.addListener(D,"change",m);mxEvent.addListener(P,"change",m);mxEvent.addListener(N,"change",m);mxEvent.addListener(c,"change",m);mxEvent.addListener(I,"change",m);m();
mxEvent.addListener(M,"click",function(){M.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?M.select():document.execCommand("selectAll",!1,null)});f=document.createElement("div");f.style.paddingTop="12px";f.style.textAlign="right";y=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});y.className="geBtn gePrimaryBtn";f.appendChild(y);d.appendChild(f);this.container=d},CreateGraphDialog=function(b,f,m){var d=document.createElement("div");d.style.textAlign="right";this.init=
function(){var t=document.createElement("div");t.style.position="relative";t.style.border="1px solid gray";t.style.boxSizing="border-box";t.style.width="100%";t.style.height="360px";t.style.overflow="hidden";t.style.marginBottom="16px";mxEvent.disableContextMenu(t);d.appendChild(t);var y=new Graph(t);y.setCellsCloneable(!0);y.setPanning(!0);y.setAllowDanglingEdges(!1);y.connectionHandler.select=!1;y.view.setTranslate(20,20);y.border=20;y.panningHandler.useLeftButtonForPanning=!0;mxClient.IS_SVG&&
null!=y.view.getDrawPane()&&(t=y.view.getDrawPane().ownerSVGElement,null!=t&&(t.style.position="absolute"));var x="curved=1;";y.cellRenderer.installCellOverlayListeners=function(e,l,n){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(n.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(p){l.fireEvent(new mxEventObject("pointerdown","event",p,"state",e))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(n.node,"touchstart",function(p){l.fireEvent(new mxEventObject("pointerdown",
"event",p,"state",e))})};y.getAllConnectionConstraints=function(){return null};y.connectionHandler.marker.highlight.keepOnTop=!1;y.connectionHandler.createEdgeState=function(e){e=y.createEdge(null,null,null,null,null,x);return new mxCellState(this.graph.view,e,this.graph.getCellStyle(e))};var C=y.getDefaultParent(),K=mxUtils.bind(this,function(e){var l=new mxCellOverlay(this.connectImage,"Add outgoing");l.cursor="hand";l.addListener(mxEvent.CLICK,function(n,p){y.connectionHandler.reset();y.clearSelection();
-var u=y.getCellGeometry(e),A;P(function(){A=y.insertVertex(C,null,"Entry",u.x,u.y,80,30,"rounded=1;");K(A);y.view.refresh(A);y.insertEdge(C,null,"",e,A,x)},function(){y.scrollCellToVisible(A)})});l.addListener("pointerdown",function(n,p){n=p.getProperty("event");p=p.getProperty("state");y.popupMenuHandler.hideMenu();y.stopEditing(!1);var u=mxUtils.convertPoint(y.container,mxEvent.getClientX(n),mxEvent.getClientY(n));y.connectionHandler.start(p,u.x,u.y);y.isMouseDown=!0;y.isMouseTrigger=mxEvent.isMouseEvent(n);
+var u=y.getCellGeometry(e),B;P(function(){B=y.insertVertex(C,null,"Entry",u.x,u.y,80,30,"rounded=1;");K(B);y.view.refresh(B);y.insertEdge(C,null,"",e,B,x)},function(){y.scrollCellToVisible(B)})});l.addListener("pointerdown",function(n,p){n=p.getProperty("event");p=p.getProperty("state");y.popupMenuHandler.hideMenu();y.stopEditing(!1);var u=mxUtils.convertPoint(y.container,mxEvent.getClientX(n),mxEvent.getClientY(n));y.connectionHandler.start(p,u.x,u.y);y.isMouseDown=!0;y.isMouseTrigger=mxEvent.isMouseEvent(n);
mxEvent.consume(n)});y.addCellOverlay(e,l)});y.getModel().beginUpdate();try{var M=y.insertVertex(C,null,"Start",0,0,80,30,"ellipse");K(M)}finally{y.getModel().endUpdate()}if("horizontalTree"==m){var N=new mxCompactTreeLayout(y);N.edgeRouting=!1;N.levelDistance=30;N.sortEdges=!0;x="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==m?(N=new mxCompactTreeLayout(y,!1),N.edgeRouting=!1,N.levelDistance=30,N.sortEdges=!0,x="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==m?(N=new mxRadialTreeLayout(y,
!1),N.edgeRouting=!1,N.levelDistance=80):"verticalFlow"==m?N=new mxHierarchicalLayout(y,mxConstants.DIRECTION_NORTH):"horizontalFlow"==m?N=new mxHierarchicalLayout(y,mxConstants.DIRECTION_WEST):"circle"==m?N=new mxCircleLayout(y):(N=new mxFastOrganicLayout(y,!1),N.forceConstant=80);if(null!=N){var P=function(e,l){y.getModel().beginUpdate();try{null!=e&&e(),N.execute(y.getDefaultParent(),M)}catch(n){throw n;}finally{e=new mxMorphing(y),e.addListener(mxEvent.DONE,mxUtils.bind(this,function(){y.getModel().endUpdate();
null!=l&&l()})),e.startAnimation()}},I=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(e,l,n,p,u){I.apply(this,arguments);P()};y.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);P()};y.connectionHandler.addListener(mxEvent.CONNECT,function(){P()})}t=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});t.className="geBtn";b.editor.cancelFirst&&d.appendChild(t);var c=mxUtils.button(mxResources.get("insert"),
@@ -12309,21 +12323,21 @@ CreateGraphDialog.prototype.connectImage=new mxImage(mxClient.IS_SVG?"data:image
var BackgroundImageDialog=function(b,f,m,d,t){function y(){null==k||k==mxConstants.NONE?(S.style.display="none",T.checked=!1):(S.style.backgroundColor=k,S.style.display="",T.checked=!0)}var x=b.editor.graph,C=document.createElement("div");C.style.whiteSpace="nowrap";var K=document.createElement("h2");mxUtils.write(K,mxResources.get("background"));K.style.marginTop="0px";C.appendChild(K);var M=null!=m&&null!=m.originalSrc;K=!1;var N=document.createElement("input");N.style.cssText="margin-right:8px;margin-bottom:8px;";
N.setAttribute("value","url");N.setAttribute("type","radio");N.setAttribute("name","geBackgroundImageDialogOption");var P=document.createElement("input");P.style.cssText="margin-right:8px;margin-bottom:8px;";P.setAttribute("value","url");P.setAttribute("type","radio");P.setAttribute("name","geBackgroundImageDialogOption");var I=document.createElement("input");I.setAttribute("type","text");I.style.marginBottom="8px";I.style.width="360px";I.value=M||null==m?"":m.src;var c=document.createElement("select");
c.style.width="360px";if(null!=b.pages)for(var e=0;e<b.pages.length;e++){var l=document.createElement("option");mxUtils.write(l,b.pages[e].getName()||mxResources.get("pageWithNumber",[e+1]));l.setAttribute("value","data:page/id,"+b.pages[e].getId());b.pages[e]==b.currentPage&&l.setAttribute("disabled","disabled");null!=m&&m.originalSrc==l.getAttribute("value")&&(l.setAttribute("selected","selected"),K=!0);c.appendChild(l)}M||null!=b.pages&&1!=b.pages.length||(N.style.display="none",P.style.display=
-"none",c.style.display="none");var n=document.createElement("option"),p=!1,u=!1,A=function(z,B){p||null!=z&&u||(P.checked?null!=B&&B(n.selected?null:c.value):""==I.value||b.isOffline()?(G.value="",E.value="",null!=B&&B("")):(I.value=mxUtils.trim(I.value),b.loadImage(I.value,function(H){G.value=H.width;E.value=H.height;null!=B&&B(I.value)},function(){b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"));G.value="";E.value="";null!=B&&B(null)})))},D=mxUtils.bind(this,
-function(z){b.importFiles(z,0,0,b.maxBackgroundSize,function(B,H,R,g,q,F){I.value=B;A();I.focus()},function(){},function(B){return"image/"==B.type.substring(0,6)},function(B){for(var H=0;H<B.length;H++)B[H]()},!0,b.maxBackgroundBytes,b.maxBackgroundBytes,!0)});this.init=function(){M?c.focus():I.focus();mxEvent.addListener(c,"focus",function(){N.removeAttribute("checked");P.setAttribute("checked","checked");P.checked=!0});mxEvent.addListener(I,"focus",function(){P.removeAttribute("checked");N.setAttribute("checked",
-"checked");N.checked=!0});if(Graph.fileSupport){I.setAttribute("placeholder",mxResources.get("dragImagesHere"));var z=C.parentNode,B=null;mxEvent.addListener(z,"dragleave",function(H){null!=B&&(B.parentNode.removeChild(B),B=null);H.stopPropagation();H.preventDefault()});mxEvent.addListener(z,"dragover",mxUtils.bind(this,function(H){null==B&&(!mxClient.IS_IE||10<document.documentMode)&&(B=b.highlightElement(z));H.stopPropagation();H.preventDefault()}));mxEvent.addListener(z,"drop",mxUtils.bind(this,
-function(H){null!=B&&(B.parentNode.removeChild(B),B=null);if(0<H.dataTransfer.files.length)D(H.dataTransfer.files);else if(0<=mxUtils.indexOf(H.dataTransfer.types,"text/uri-list")){var R=H.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(R)&&(I.value=decodeURIComponent(R),A())}H.stopPropagation();H.preventDefault()}),!1)}};C.appendChild(N);C.appendChild(I);mxUtils.br(C);e=document.createElement("span");e.style.marginLeft="30px";mxUtils.write(e,mxResources.get("width")+
+"none",c.style.display="none");var n=document.createElement("option"),p=!1,u=!1,B=function(z,A){p||null!=z&&u||(P.checked?null!=A&&A(n.selected?null:c.value):""==I.value||b.isOffline()?(G.value="",E.value="",null!=A&&A("")):(I.value=mxUtils.trim(I.value),b.loadImage(I.value,function(H){G.value=H.width;E.value=H.height;null!=A&&A(I.value)},function(){b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"));G.value="";E.value="";null!=A&&A(null)})))},D=mxUtils.bind(this,
+function(z){b.importFiles(z,0,0,b.maxBackgroundSize,function(A,H,R,g,q,F){I.value=A;B();I.focus()},function(){},function(A){return"image/"==A.type.substring(0,6)},function(A){for(var H=0;H<A.length;H++)A[H]()},!0,b.maxBackgroundBytes,b.maxBackgroundBytes,!0)});this.init=function(){M?c.focus():I.focus();mxEvent.addListener(c,"focus",function(){N.removeAttribute("checked");P.setAttribute("checked","checked");P.checked=!0});mxEvent.addListener(I,"focus",function(){P.removeAttribute("checked");N.setAttribute("checked",
+"checked");N.checked=!0});if(Graph.fileSupport){I.setAttribute("placeholder",mxResources.get("dragImagesHere"));var z=C.parentNode,A=null;mxEvent.addListener(z,"dragleave",function(H){null!=A&&(A.parentNode.removeChild(A),A=null);H.stopPropagation();H.preventDefault()});mxEvent.addListener(z,"dragover",mxUtils.bind(this,function(H){null==A&&(!mxClient.IS_IE||10<document.documentMode)&&(A=b.highlightElement(z));H.stopPropagation();H.preventDefault()}));mxEvent.addListener(z,"drop",mxUtils.bind(this,
+function(H){null!=A&&(A.parentNode.removeChild(A),A=null);if(0<H.dataTransfer.files.length)D(H.dataTransfer.files);else if(0<=mxUtils.indexOf(H.dataTransfer.types,"text/uri-list")){var R=H.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(R)&&(I.value=decodeURIComponent(R),B())}H.stopPropagation();H.preventDefault()}),!1)}};C.appendChild(N);C.appendChild(I);mxUtils.br(C);e=document.createElement("span");e.style.marginLeft="30px";mxUtils.write(e,mxResources.get("width")+
":");C.appendChild(e);var G=document.createElement("input");G.setAttribute("type","text");G.style.width="60px";G.style.marginLeft="8px";G.style.marginRight="16px";G.value=null==m||M?"":m.width;C.appendChild(G);mxUtils.write(C,mxResources.get("height")+":");var E=document.createElement("input");E.setAttribute("type","text");E.style.width="60px";E.style.marginLeft="8px";E.style.marginRight="16px";E.value=null==m||M?"":m.height;C.appendChild(E);mxUtils.br(C);mxUtils.br(C);mxEvent.addListener(I,"change",
-A);ImageDialog.filePicked=function(z){z.action==google.picker.Action.PICKED&&null!=z.docs[0].thumbnails&&(z=z.docs[0].thumbnails[z.docs[0].thumbnails.length-1],null!=z&&(I.value=z.url,A()));I.focus()};C.appendChild(P);C.appendChild(c);mxUtils.br(C);mxUtils.br(C);M?(P.setAttribute("checked","checked"),P.checked=!0):(N.setAttribute("checked","checked"),N.checked=!0);!K&&P.checked&&(mxUtils.write(n,mxResources.get("pageNotFound")),n.setAttribute("disabled","disabled"),n.setAttribute("selected","selected"),
+B);ImageDialog.filePicked=function(z){z.action==google.picker.Action.PICKED&&null!=z.docs[0].thumbnails&&(z=z.docs[0].thumbnails[z.docs[0].thumbnails.length-1],null!=z&&(I.value=z.url,B()));I.focus()};C.appendChild(P);C.appendChild(c);mxUtils.br(C);mxUtils.br(C);M?(P.setAttribute("checked","checked"),P.checked=!0):(N.setAttribute("checked","checked"),N.checked=!0);!K&&P.checked&&(mxUtils.write(n,mxResources.get("pageNotFound")),n.setAttribute("disabled","disabled"),n.setAttribute("selected","selected"),
n.setAttribute("value","pageNotFound"),c.appendChild(n),mxEvent.addListener(c,"change",function(){null==n.parentNode||n.selected||n.parentNode.removeChild(n)}));m=document.createElement("div");m.style.display=t?"inline-flex":"none";m.style.alignItems="center";m.style.cursor="default";m.style.minWidth="40%";m.style.height="20px";var T=document.createElement("input");T.setAttribute("type","checkbox");T.style.margin="0px 10px 0px 4px";T.style.verticalAlign="bottom";T.defaultChecked=d!=mxConstants.NONE&&
null!=d;T.checked=T.defaultChecked;m.appendChild(T);mxUtils.write(m,mxResources.get("fillColor"));t=m.cloneNode(!1);var O=document.createElement("input");O.setAttribute("type","checkbox");O.style.margin="0px 10px 0px 30px";O.style.verticalAlign="bottom";O.defaultChecked=x.shadowVisible;O.checked=O.defaultChecked;t.appendChild(O);mxUtils.write(t,mxResources.get("shadow"));mxClient.IS_SVG&&!mxClient.IS_SF||O.setAttribute("disabled","disabled");mxEvent.addListener(t,"click",function(z){mxEvent.getSource(z)!=
-O&&(O.checked=!O.checked)});var S=document.createElement("button");S.style.width="36px";S.style.height="18px";S.style.cursor="pointer";S.style.marginLeft="10px";S.style.backgroundPosition="center center";S.style.backgroundRepeat="no-repeat";S.style.verticalAlign="bottom";S.className="geColorBtn";var k=d;y();mxEvent.addListener(m,"click",function(z){mxEvent.getSource(z)!=T&&(T.checked=!T.checked);k=T.checked?"#ffffff":null;y()});mxEvent.addListener(S,"click",function(z){b.pickColor(k||"none",function(B){k=
-B;y()});mxEvent.consume(z)});m.appendChild(S);C.appendChild(m);C.appendChild(t);mxUtils.br(C);d=document.createElement("div");d.style.marginTop="30px";d.style.textAlign="right";x=mxUtils.button(mxResources.get("cancel"),function(){p=!0;b.hideDialog()});x.className="geBtn";b.editor.cancelFirst&&d.appendChild(x);t=mxUtils.button(mxResources.get("reset"),function(){I.value="";G.value="";E.value="";N.checked=!0;k=mxConstants.NONE;y();p=!1});mxEvent.addGestureListeners(t,function(){p=!0});t.className=
-"geBtn";t.width="100";d.appendChild(t);if(Graph.fileSupport){var v=document.createElement("input");v.setAttribute("multiple","multiple");v.setAttribute("type","file");mxEvent.addListener(v,"change",function(z){null!=v.files&&(D(v.files),v.type="",v.type="file",v.value="")});v.style.display="none";C.appendChild(v);t=mxUtils.button(mxResources.get("open"),function(){v.click()});t.className="geBtn";d.appendChild(t)}applyBtn=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();A(null,function(z){f(""!=
+O&&(O.checked=!O.checked)});var S=document.createElement("button");S.style.width="36px";S.style.height="18px";S.style.cursor="pointer";S.style.marginLeft="10px";S.style.backgroundPosition="center center";S.style.backgroundRepeat="no-repeat";S.style.verticalAlign="bottom";S.className="geColorBtn";var k=d;y();mxEvent.addListener(m,"click",function(z){mxEvent.getSource(z)!=T&&(T.checked=!T.checked);k=T.checked?"#ffffff":null;y()});mxEvent.addListener(S,"click",function(z){b.pickColor(k||"none",function(A){k=
+A;y()});mxEvent.consume(z)});m.appendChild(S);C.appendChild(m);C.appendChild(t);mxUtils.br(C);d=document.createElement("div");d.style.marginTop="30px";d.style.textAlign="right";x=mxUtils.button(mxResources.get("cancel"),function(){p=!0;b.hideDialog()});x.className="geBtn";b.editor.cancelFirst&&d.appendChild(x);t=mxUtils.button(mxResources.get("reset"),function(){I.value="";G.value="";E.value="";N.checked=!0;k=mxConstants.NONE;y();p=!1});mxEvent.addGestureListeners(t,function(){p=!0});t.className=
+"geBtn";t.width="100";d.appendChild(t);if(Graph.fileSupport){var v=document.createElement("input");v.setAttribute("multiple","multiple");v.setAttribute("type","file");mxEvent.addListener(v,"change",function(z){null!=v.files&&(D(v.files),v.type="",v.type="file",v.value="")});v.style.display="none";C.appendChild(v);t=mxUtils.button(mxResources.get("open"),function(){v.click()});t.className="geBtn";d.appendChild(t)}applyBtn=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();B(null,function(z){f(""!=
z&&null!=z?new mxImage(z,G.value,E.value):null,null==z,k,!mxClient.IS_SVG||mxClient.IS_SF?null:O.checked)})});mxEvent.addGestureListeners(applyBtn,function(){u=!0});applyBtn.className="geBtn gePrimaryBtn";d.appendChild(applyBtn);b.editor.cancelFirst||d.appendChild(x);C.appendChild(d);this.container=C},ParseDialog=function(b,f,m){function d(c,e,l){var n=c.split("\n");if("plantUmlPng"==e||"plantUmlSvg"==e||"plantUmlTxt"==e){if(b.spinner.spin(document.body,mxResources.get("inserting"))){var p=function(R,
-g,q,F,J){y=mxEvent.isAltDown(l)?y:u.getCenterInsertPoint(new mxRectangle(0,0,F,J));var L=null;u.getModel().beginUpdate();try{L="txt"==g?b.insertAsPreText(q,y.x,y.y):u.insertVertex(null,null,null,y.x,y.y,F,J,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(q)+";"),u.setAttributeForCell(L,"plantUmlData",JSON.stringify({data:R,format:g},null,2))}finally{u.getModel().endUpdate()}null!=L&&(u.setSelectionCell(L),u.scrollCellToVisible(L))},u=b.editor.graph,A="plantUmlTxt"==
-e?"txt":"plantUmlPng"==e?"png":"svg";"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml"==c&&"svg"==A?window.setTimeout(function(){b.spinner.stop();p(c,A,"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBjb250ZW50U2NyaXB0VHlwZT0iYXBwbGljYXRpb24vZWNtYXNjcmlwdCIgY29udGVudFN0eWxlVHlwZT0idGV4dC9jc3MiIGhlaWdodD0iMjEycHgiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHN0eWxlPSJ3aWR0aDoyOTVweDtoZWlnaHQ6MjEycHg7IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyOTUgMjEyIiB3aWR0aD0iMjk1cHgiIHpvb21BbmRQYW49Im1hZ25pZnkiPjxkZWZzLz48Zz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsgc3Ryb2tlLWRhc2hhcnJheTogNS4wLDUuMDsiIHgxPSIzMSIgeDI9IjMxIiB5MT0iMzQuNDg4MyIgeTI9IjE3MS43MzA1Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7IHN0cm9rZS1kYXNoYXJyYXk6IDUuMCw1LjA7IiB4MT0iMjY0LjUiIHgyPSIyNjQuNSIgeTE9IjM0LjQ4ODMiIHkyPSIxNzEuNzMwNSIvPjxyZWN0IGZpbGw9IiNGRUZFQ0UiIGhlaWdodD0iMzAuNDg4MyIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjU7IiB3aWR0aD0iNDciIHg9IjgiIHk9IjMiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIzMyIgeD0iMTUiIHk9IjIzLjUzNTIiPkFsaWNlPC90ZXh0PjxyZWN0IGZpbGw9IiNGRUZFQ0UiIGhlaWdodD0iMzAuNDg4MyIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjU7IiB3aWR0aD0iNDciIHg9IjgiIHk9IjE3MC43MzA1Ii8+PHRleHQgZmlsbD0iIzAwMDAwMCIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTQiIGxlbmd0aEFkanVzdD0ic3BhY2luZ0FuZEdseXBocyIgdGV4dExlbmd0aD0iMzMiIHg9IjE1IiB5PSIxOTEuMjY1NiI+QWxpY2U8L3RleHQ+PHJlY3QgZmlsbD0iI0ZFRkVDRSIgaGVpZ2h0PSIzMC40ODgzIiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuNTsiIHdpZHRoPSI0MCIgeD0iMjQ0LjUiIHk9IjMiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIyNiIgeD0iMjUxLjUiIHk9IjIzLjUzNTIiPkJvYjwvdGV4dD48cmVjdCBmaWxsPSIjRkVGRUNFIiBoZWlnaHQ9IjMwLjQ4ODMiIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS41OyIgd2lkdGg9IjQwIiB4PSIyNDQuNSIgeT0iMTcwLjczMDUiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIyNiIgeD0iMjUxLjUiIHk9IjE5MS4yNjU2Ij5Cb2I8L3RleHQ+PHBvbHlnb24gZmlsbD0iI0E4MDAzNiIgcG9pbnRzPSIyNTIuNSw2MS43OTg4LDI2Mi41LDY1Ljc5ODgsMjUyLjUsNjkuNzk4OCwyNTYuNSw2NS43OTg4IiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiLz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiIHgxPSIzMS41IiB4Mj0iMjU4LjUiIHkxPSI2NS43OTg4IiB5Mj0iNjUuNzk4OCIvPjx0ZXh0IGZpbGw9IiMwMDAwMDAiIGZvbnQtZmFtaWx5PSJzYW5zLXNlcmlmIiBmb250LXNpemU9IjEzIiBsZW5ndGhBZGp1c3Q9InNwYWNpbmdBbmRHbHlwaHMiIHRleHRMZW5ndGg9IjE0NyIgeD0iMzguNSIgeT0iNjEuMDU2NiI+QXV0aGVudGljYXRpb24gUmVxdWVzdDwvdGV4dD48cG9seWdvbiBmaWxsPSIjQTgwMDM2IiBwb2ludHM9IjQyLjUsOTEuMTA5NCwzMi41LDk1LjEwOTQsNDIuNSw5OS4xMDk0LDM4LjUsOTUuMTA5NCIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7IHN0cm9rZS1kYXNoYXJyYXk6IDIuMCwyLjA7IiB4MT0iMzYuNSIgeDI9IjI2My41IiB5MT0iOTUuMTA5NCIgeTI9Ijk1LjEwOTQiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxMyIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIxNTciIHg9IjQ4LjUiIHk9IjkwLjM2NzIiPkF1dGhlbnRpY2F0aW9uIFJlc3BvbnNlPC90ZXh0Pjxwb2x5Z29uIGZpbGw9IiNBODAwMzYiIHBvaW50cz0iMjUyLjUsMTIwLjQxOTksMjYyLjUsMTI0LjQxOTksMjUyLjUsMTI4LjQxOTksMjU2LjUsMTI0LjQxOTkiIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS4wOyIvPjxsaW5lIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS4wOyIgeDE9IjMxLjUiIHgyPSIyNTguNSIgeTE9IjEyNC40MTk5IiB5Mj0iMTI0LjQxOTkiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxMyIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIxOTkiIHg9IjM4LjUiIHk9IjExOS42Nzc3Ij5Bbm90aGVyIGF1dGhlbnRpY2F0aW9uIFJlcXVlc3Q8L3RleHQ+PHBvbHlnb24gZmlsbD0iI0E4MDAzNiIgcG9pbnRzPSI0Mi41LDE0OS43MzA1LDMyLjUsMTUzLjczMDUsNDIuNSwxNTcuNzMwNSwzOC41LDE1My43MzA1IiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiLz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsgc3Ryb2tlLWRhc2hhcnJheTogMi4wLDIuMDsiIHgxPSIzNi41IiB4Mj0iMjYzLjUiIHkxPSIxNTMuNzMwNSIgeTI9IjE1My43MzA1Ii8+PHRleHQgZmlsbD0iIzAwMDAwMCIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTMiIGxlbmd0aEFkanVzdD0ic3BhY2luZ0FuZEdseXBocyIgdGV4dExlbmd0aD0iMjA5IiB4PSI0OC41IiB5PSIxNDguOTg4MyI+QW5vdGhlciBhdXRoZW50aWNhdGlvbiBSZXNwb25zZTwvdGV4dD48IS0tTUQ1PVs3ZjNlNGQwYzkwMWVmZGJjNTdlYjQ0MjQ5YTNiODE5N10KQHN0YXJ0dW1sDQpza2lucGFyYW0gc2hhZG93aW5nIGZhbHNlDQpBbGljZSAtPiBCb2I6IEF1dGhlbnRpY2F0aW9uIFJlcXVlc3QNCkJvYiAtIC0+IEFsaWNlOiBBdXRoZW50aWNhdGlvbiBSZXNwb25zZQ0KDQpBbGljZSAtPiBCb2I6IEFub3RoZXIgYXV0aGVudGljYXRpb24gUmVxdWVzdA0KQWxpY2UgPC0gLSBCb2I6IEFub3RoZXIgYXV0aGVudGljYXRpb24gUmVzcG9uc2UNCkBlbmR1bWwNCgpQbGFudFVNTCB2ZXJzaW9uIDEuMjAyMC4wMihTdW4gTWFyIDAxIDA0OjIyOjA3IENTVCAyMDIwKQooTUlUIHNvdXJjZSBkaXN0cmlidXRpb24pCkphdmEgUnVudGltZTogT3BlbkpESyBSdW50aW1lIEVudmlyb25tZW50CkpWTTogT3BlbkpESyA2NC1CaXQgU2VydmVyIFZNCkphdmEgVmVyc2lvbjogMTIrMzMKT3BlcmF0aW5nIFN5c3RlbTogTWFjIE9TIFgKRGVmYXVsdCBFbmNvZGluZzogVVRGLTgKTGFuZ3VhZ2U6IGVuCkNvdW50cnk6IFVTCi0tPjwvZz48L3N2Zz4=",
-295,212)},200):b.generatePlantUmlImage(c,A,function(R,g,q){b.spinner.stop();p(c,A,R,g,q)},function(R){b.handleError(R)})}}else if("mermaid"==e||"mermaid2drawio"==e){if(b.spinner.spin(document.body,mxResources.get("inserting"))){for(var D=0;D<n.length&&(0==n[D].trim().length||"%%"==n[D].substring(0,2));)D++;if("---"==n[D].trim()){do D++;while(D<n.length&&"---"!=n[D].trim());D++}D=n[D].trim().toLowerCase();n=D.indexOf(" ");D=D.substring(0,0<n?n:D.length);var G="undefined"!==typeof mxMermaidToDrawio&&
+g,q,F,J){y=mxEvent.isAltDown(l)?y:u.getCenterInsertPoint(new mxRectangle(0,0,F,J));var L=null;u.getModel().beginUpdate();try{L="txt"==g?b.insertAsPreText(q,y.x,y.y):u.insertVertex(null,null,null,y.x,y.y,F,J,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(q)+";"),u.setAttributeForCell(L,"plantUmlData",JSON.stringify({data:R,format:g},null,2))}finally{u.getModel().endUpdate()}null!=L&&(u.setSelectionCell(L),u.scrollCellToVisible(L))},u=b.editor.graph,B="plantUmlTxt"==
+e?"txt":"plantUmlPng"==e?"png":"svg";"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml"==c&&"svg"==B?window.setTimeout(function(){b.spinner.stop();p(c,B,"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBjb250ZW50U2NyaXB0VHlwZT0iYXBwbGljYXRpb24vZWNtYXNjcmlwdCIgY29udGVudFN0eWxlVHlwZT0idGV4dC9jc3MiIGhlaWdodD0iMjEycHgiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHN0eWxlPSJ3aWR0aDoyOTVweDtoZWlnaHQ6MjEycHg7IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyOTUgMjEyIiB3aWR0aD0iMjk1cHgiIHpvb21BbmRQYW49Im1hZ25pZnkiPjxkZWZzLz48Zz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsgc3Ryb2tlLWRhc2hhcnJheTogNS4wLDUuMDsiIHgxPSIzMSIgeDI9IjMxIiB5MT0iMzQuNDg4MyIgeTI9IjE3MS43MzA1Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7IHN0cm9rZS1kYXNoYXJyYXk6IDUuMCw1LjA7IiB4MT0iMjY0LjUiIHgyPSIyNjQuNSIgeTE9IjM0LjQ4ODMiIHkyPSIxNzEuNzMwNSIvPjxyZWN0IGZpbGw9IiNGRUZFQ0UiIGhlaWdodD0iMzAuNDg4MyIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjU7IiB3aWR0aD0iNDciIHg9IjgiIHk9IjMiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIzMyIgeD0iMTUiIHk9IjIzLjUzNTIiPkFsaWNlPC90ZXh0PjxyZWN0IGZpbGw9IiNGRUZFQ0UiIGhlaWdodD0iMzAuNDg4MyIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjU7IiB3aWR0aD0iNDciIHg9IjgiIHk9IjE3MC43MzA1Ii8+PHRleHQgZmlsbD0iIzAwMDAwMCIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTQiIGxlbmd0aEFkanVzdD0ic3BhY2luZ0FuZEdseXBocyIgdGV4dExlbmd0aD0iMzMiIHg9IjE1IiB5PSIxOTEuMjY1NiI+QWxpY2U8L3RleHQ+PHJlY3QgZmlsbD0iI0ZFRkVDRSIgaGVpZ2h0PSIzMC40ODgzIiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuNTsiIHdpZHRoPSI0MCIgeD0iMjQ0LjUiIHk9IjMiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIyNiIgeD0iMjUxLjUiIHk9IjIzLjUzNTIiPkJvYjwvdGV4dD48cmVjdCBmaWxsPSIjRkVGRUNFIiBoZWlnaHQ9IjMwLjQ4ODMiIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS41OyIgd2lkdGg9IjQwIiB4PSIyNDQuNSIgeT0iMTcwLjczMDUiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIyNiIgeD0iMjUxLjUiIHk9IjE5MS4yNjU2Ij5Cb2I8L3RleHQ+PHBvbHlnb24gZmlsbD0iI0E4MDAzNiIgcG9pbnRzPSIyNTIuNSw2MS43OTg4LDI2Mi41LDY1Ljc5ODgsMjUyLjUsNjkuNzk4OCwyNTYuNSw2NS43OTg4IiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiLz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiIHgxPSIzMS41IiB4Mj0iMjU4LjUiIHkxPSI2NS43OTg4IiB5Mj0iNjUuNzk4OCIvPjx0ZXh0IGZpbGw9IiMwMDAwMDAiIGZvbnQtZmFtaWx5PSJzYW5zLXNlcmlmIiBmb250LXNpemU9IjEzIiBsZW5ndGhBZGp1c3Q9InNwYWNpbmdBbmRHbHlwaHMiIHRleHRMZW5ndGg9IjE0NyIgeD0iMzguNSIgeT0iNjEuMDU2NiI+QXV0aGVudGljYXRpb24gUmVxdWVzdDwvdGV4dD48cG9seWdvbiBmaWxsPSIjQTgwMDM2IiBwb2ludHM9IjQyLjUsOTEuMTA5NCwzMi41LDk1LjEwOTQsNDIuNSw5OS4xMDk0LDM4LjUsOTUuMTA5NCIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7IHN0cm9rZS1kYXNoYXJyYXk6IDIuMCwyLjA7IiB4MT0iMzYuNSIgeDI9IjI2My41IiB5MT0iOTUuMTA5NCIgeTI9Ijk1LjEwOTQiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxMyIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIxNTciIHg9IjQ4LjUiIHk9IjkwLjM2NzIiPkF1dGhlbnRpY2F0aW9uIFJlc3BvbnNlPC90ZXh0Pjxwb2x5Z29uIGZpbGw9IiNBODAwMzYiIHBvaW50cz0iMjUyLjUsMTIwLjQxOTksMjYyLjUsMTI0LjQxOTksMjUyLjUsMTI4LjQxOTksMjU2LjUsMTI0LjQxOTkiIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS4wOyIvPjxsaW5lIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS4wOyIgeDE9IjMxLjUiIHgyPSIyNTguNSIgeTE9IjEyNC40MTk5IiB5Mj0iMTI0LjQxOTkiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxMyIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIxOTkiIHg9IjM4LjUiIHk9IjExOS42Nzc3Ij5Bbm90aGVyIGF1dGhlbnRpY2F0aW9uIFJlcXVlc3Q8L3RleHQ+PHBvbHlnb24gZmlsbD0iI0E4MDAzNiIgcG9pbnRzPSI0Mi41LDE0OS43MzA1LDMyLjUsMTUzLjczMDUsNDIuNSwxNTcuNzMwNSwzOC41LDE1My43MzA1IiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiLz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsgc3Ryb2tlLWRhc2hhcnJheTogMi4wLDIuMDsiIHgxPSIzNi41IiB4Mj0iMjYzLjUiIHkxPSIxNTMuNzMwNSIgeTI9IjE1My43MzA1Ii8+PHRleHQgZmlsbD0iIzAwMDAwMCIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTMiIGxlbmd0aEFkanVzdD0ic3BhY2luZ0FuZEdseXBocyIgdGV4dExlbmd0aD0iMjA5IiB4PSI0OC41IiB5PSIxNDguOTg4MyI+QW5vdGhlciBhdXRoZW50aWNhdGlvbiBSZXNwb25zZTwvdGV4dD48IS0tTUQ1PVs3ZjNlNGQwYzkwMWVmZGJjNTdlYjQ0MjQ5YTNiODE5N10KQHN0YXJ0dW1sDQpza2lucGFyYW0gc2hhZG93aW5nIGZhbHNlDQpBbGljZSAtPiBCb2I6IEF1dGhlbnRpY2F0aW9uIFJlcXVlc3QNCkJvYiAtIC0+IEFsaWNlOiBBdXRoZW50aWNhdGlvbiBSZXNwb25zZQ0KDQpBbGljZSAtPiBCb2I6IEFub3RoZXIgYXV0aGVudGljYXRpb24gUmVxdWVzdA0KQWxpY2UgPC0gLSBCb2I6IEFub3RoZXIgYXV0aGVudGljYXRpb24gUmVzcG9uc2UNCkBlbmR1bWwNCgpQbGFudFVNTCB2ZXJzaW9uIDEuMjAyMC4wMihTdW4gTWFyIDAxIDA0OjIyOjA3IENTVCAyMDIwKQooTUlUIHNvdXJjZSBkaXN0cmlidXRpb24pCkphdmEgUnVudGltZTogT3BlbkpESyBSdW50aW1lIEVudmlyb25tZW50CkpWTTogT3BlbkpESyA2NC1CaXQgU2VydmVyIFZNCkphdmEgVmVyc2lvbjogMTIrMzMKT3BlcmF0aW5nIFN5c3RlbTogTWFjIE9TIFgKRGVmYXVsdCBFbmNvZGluZzogVVRGLTgKTGFuZ3VhZ2U6IGVuCkNvdW50cnk6IFVTCi0tPjwvZz48L3N2Zz4=",
+295,212)},200):b.generatePlantUmlImage(c,B,function(R,g,q){b.spinner.stop();p(c,B,R,g,q)},function(R){b.handleError(R)})}}else if("mermaid"==e||"mermaid2drawio"==e){if(b.spinner.spin(document.body,mxResources.get("inserting"))){for(var D=0;D<n.length&&(0==n[D].trim().length||"%%"==n[D].substring(0,2));)D++;if("---"==n[D].trim()){do D++;while(D<n.length&&"---"!=n[D].trim());D++}D=n[D].trim().toLowerCase();n=D.indexOf(" ");D=D.substring(0,0<n?n:D.length);var G="undefined"!==typeof mxMermaidToDrawio&&
"mermaid2drawio"==e&&("graph"==D||"flowchart"==D||"sequencediagram"==D||"classdiagram"==D||"statediagram-v2"==D||"statediagram"==D||"erdiagram"==D||"requirementdiagram"==D||"gitgraph"==D||"mindmap"==D||"journey"==D);u=b.editor.graph;G&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(R){b.spinner.stop();u.setSelectionCells(b.importXml(R,Math.max(y.x,20),Math.max(y.y,20),!0,null,null,!0));u.scrollCellToVisible(u.getSelectionCell())}));b.generateMermaidImage(c,null,function(R,g,q){if(!G){y=
mxEvent.isAltDown(l)?y:u.getCenterInsertPoint(new mxRectangle(0,0,g,q));b.spinner.stop();var F=null;u.getModel().beginUpdate();try{F=u.insertVertex(null,null,null,y.x,y.y,g,q,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+R+";"),u.setAttributeForCell(F,"mermaidData",JSON.stringify({data:c},null,2))}finally{u.getModel().endUpdate()}null!=F&&(u.setSelectionCell(F),u.scrollCellToVisible(F))}},function(R){"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.resetListeners();b.handleError(R)})}}else if("table"==
e){e=null;var E=[],T=0,O={};for(D=0;D<n.length;D++){var S=mxUtils.trim(n[D]);if("primary key"==S.substring(0,11).toLowerCase()){var k=S.match(/\((.+)\)/);k&&k[1]&&(O[k[1]]=!0);n.splice(D,1)}else 0<S.toLowerCase().indexOf("primary key")&&(O[S.split(" ")[0]]=!0,n[D]=mxUtils.trim(S.replace(/primary key/i,"")))}for(D=0;D<n.length;D++)if(S=mxUtils.trim(n[D]),"create table"==S.substring(0,12).toLowerCase())S=mxUtils.trim(S.substring(12)),"("==S.charAt(S.length-1)&&(S=mxUtils.trim(S.substring(0,S.length-
@@ -12333,7 +12347,7 @@ e){e=null;var E=[],T=0,O={};for(D=0;D<n.length;D++){var S=mxUtils.trim(n[D]);if(
!0)),u.setSelectionCells(u.importCells(E,y.x,y.y)),u.scrollCellToVisible(u.getSelectionCell()))}else if("list"==e){if(0<n.length){u=b.editor.graph;e=null;E=[];for(D=v=0;D<n.length;D++)";"!=n[D].charAt(0)&&(0==n[D].length?e=null:null==e?(e=new mxCell(n[D],new mxGeometry(v,0,160,30),"swimlane;fontStyle=1;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"),e.vertex=!0,E.push(e),S=u.getPreferredSizeForCell(e),
null!=S&&e.geometry.width<S.width+10&&(e.geometry.width=S.width+10),v+=e.geometry.width+40):"--"==n[D]?(S=new mxCell("",new mxGeometry(0,0,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),S.vertex=!0,e.geometry.height+=S.geometry.height,e.insert(S)):0<n[D].length&&(T=new mxCell(n[D],new mxGeometry(0,0,60,26),"text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
T.vertex=!0,S=u.getPreferredSizeForCell(T),null!=S&&T.geometry.width<S.width&&(T.geometry.width=S.width),e.geometry.width=Math.max(e.geometry.width,T.geometry.width),e.geometry.height+=T.geometry.height,e.insert(T)));if(0<E.length){y=mxEvent.isAltDown(l)?y:u.getCenterInsertPoint(u.getBoundingBoxFromGeometry(E,!0));u.getModel().beginUpdate();try{E=u.importCells(E,y.x,y.y);S=[];for(D=0;D<E.length;D++)S.push(E[D]),S=S.concat(E[D].children);u.fireEvent(new mxEventObject("cellsInserted","cells",S))}finally{u.getModel().endUpdate()}u.setSelectionCells(E);
-u.scrollCellToVisible(u.getSelectionCell())}}}else{v=function(R){var g=B[R];null==g&&(g=new mxCell(R,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),g.vertex=!0,B[R]=g,E.push(g));return g};var B={};E=[];for(D=0;D<n.length;D++)if(";"!=n[D].charAt(0)){var H=n[D].split("->");2<=H.length&&(k=v(H[0]),z=v(H[H.length-1]),H=new mxCell(2<H.length?H[1]:"",new mxGeometry),H.edge=!0,H.geometry.relative=!0,k.insertEdge(H,!0),z.insertEdge(H,!1),E.push(H))}if(0<E.length){n=document.createElement("div");n.style.visibility=
+u.scrollCellToVisible(u.getSelectionCell())}}}else{v=function(R){var g=A[R];null==g&&(g=new mxCell(R,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),g.vertex=!0,A[R]=g,E.push(g));return g};var A={};E=[];for(D=0;D<n.length;D++)if(";"!=n[D].charAt(0)){var H=n[D].split("->");2<=H.length&&(k=v(H[0]),z=v(H[H.length-1]),H=new mxCell(2<H.length?H[1]:"",new mxGeometry),H.edge=!0,H.geometry.relative=!0,k.insertEdge(H,!0),z.insertEdge(H,!1),E.push(H))}if(0<E.length){n=document.createElement("div");n.style.visibility=
"hidden";document.body.appendChild(n);u=new Graph(n);u.getModel().beginUpdate();try{E=u.importCells(E);for(D=0;D<E.length;D++)u.getModel().isVertex(E[D])&&(S=u.getPreferredSizeForCell(E[D]),E[D].geometry.width=Math.max(E[D].geometry.width,S.width),E[D].geometry.height=Math.max(E[D].geometry.height,S.height));D=!0;"horizontalFlow"==e||"verticalFlow"==e?((new mxHierarchicalLayout(u,"horizontalFlow"==e?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH)).execute(u.getDefaultParent(),E),D=!1):"circle"==
e?(new mxCircleLayout(u)).execute(u.getDefaultParent()):(T=new mxFastOrganicLayout(u),T.disableEdgeStyle=!1,T.forceConstant=180,T.execute(u.getDefaultParent()));D&&(O=new mxParallelEdgeLayout(u),O.spacing=30,O.execute(u.getDefaultParent()))}finally{u.getModel().endUpdate()}u.clearCellOverlays();S=[];b.editor.graph.getModel().beginUpdate();try{E=u.getModel().getChildren(u.getDefaultParent()),y=mxEvent.isAltDown(l)?y:b.editor.graph.getCenterInsertPoint(u.getBoundingBoxFromGeometry(E,!0)),S=b.editor.graph.importCells(E,
y.x,y.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",S))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(S);b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());u.destroy();n.parentNode.removeChild(n)}}}function t(){return"list"==C.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setName(String): void\n+isBirthday(): boolean\n\nAddress\n-street: String\n-city: String\n-state: String":"mermaid"==C.value||
@@ -12346,14 +12360,14 @@ K.setAttribute("value","table");mxUtils.write(K,mxResources.get("formatSql"));"f
"plantUmlTxt");mxUtils.write(N,mxResources.get("plantUml")+" ("+mxResources.get("text")+")");EditorUi.enablePlantUml&&Graph.fileSupport&&!b.isOffline()&&"plantUml"==m&&(C.appendChild(K),C.appendChild(M),C.appendChild(N));var I=t();x.value=I;f.appendChild(x);this.init=function(){x.focus()};Graph.fileSupport&&(x.addEventListener("dragover",function(c){c.stopPropagation();c.preventDefault()},!1),x.addEventListener("drop",function(c){c.stopPropagation();c.preventDefault();if(0<c.dataTransfer.files.length){c=
c.dataTransfer.files[0];var e=new FileReader;e.onload=function(l){x.value=l.target.result};e.readAsText(c)}},!1));f.appendChild(C);mxEvent.addListener(C,"change",function(){var c=t();if(0==x.value.length||x.value==I)I=c,x.value=I});b.isOffline()||"mermaid"!=m&&"plantUml"!=m||(K=mxUtils.button(mxResources.get("help"),function(){b.openLink("mermaid"==m?"https://mermaid-js.github.io/mermaid/#/":"https://plantuml.com/")}),K.className="geBtn",f.appendChild(K));K=mxUtils.button(mxResources.get("close"),
function(){x.value==I?b.hideDialog():b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});K.className="geBtn";b.editor.cancelFirst&&f.appendChild(K);M=mxUtils.button(mxResources.get("insert"),function(c){try{b.hideDialog(),d(x.value,C.value,c)}catch(e){b.handleError(e)}});M.className="geBtn gePrimaryBtn";f.appendChild(M);b.editor.cancelFirst||f.appendChild(K);this.container=f},NewDialog=function(b,f,m,d,t,y,x,C,K,M,N,P,I,c,e,l,n,p){function u(ja){null!=ja&&(pa=Aa=ja?135:140);ja=!0;
-if(null!=Wa)for(;g<Wa.length&&(ja||0!=mxUtils.mod(g,30));){var xa=Wa[g++];xa=k(xa.url,xa.libs,xa.title,xa.tooltip?xa.tooltip:xa.title,xa.select,xa.imgUrl,xa.info,xa.onClick,xa.preview,xa.noImg,xa.clibs,xa.type);ja&&xa.click();ja=!1}}function A(ja,xa,qa,oa,la,ya){if(null!=ja&&mxUtils.isAncestorNode(document.body,oa)){ja=mxUtils.parseXml(ja);ja=Editor.parseDiagramNode(ja.documentElement,null,!0);var Ja=new mxCodec(ja.ownerDocument),Fa=new mxGraphModel;Ja.decode(ja,Fa);b.sidebar.createTooltip(oa,Fa.root.children,
+if(null!=Wa)for(;g<Wa.length&&(ja||0!=mxUtils.mod(g,30));){var xa=Wa[g++];xa=k(xa.url,xa.libs,xa.title,xa.tooltip?xa.tooltip:xa.title,xa.select,xa.imgUrl,xa.info,xa.onClick,xa.preview,xa.noImg,xa.clibs,xa.type);ja&&xa.click();ja=!1}}function B(ja,xa,qa,oa,la,ya){if(null!=ja&&mxUtils.isAncestorNode(document.body,oa)){ja=mxUtils.parseXml(ja);ja=Editor.parseDiagramNode(ja.documentElement,null,!0);var Ja=new mxCodec(ja.ownerDocument),Fa=new mxGraphModel;Ja.decode(ja,Fa);b.sidebar.createTooltip(oa,Fa.root.children,
Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-120,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-120,800),null!=la?mxResources.get(la):null,!0,new mxPoint(xa,qa),!0,function(){U=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;null!=ya&&E(oa,null,null,ya,infoObj,clibs)},!0,!1)}}function D(){var ja=document.createElement("div");ja.style.position="absolute";ja.style.overflow="visible";
ja.style.left="8px";ja.style.right="8px";ja.style.bottom="8px";ja.style.top="8px";mxUtils.write(ja,mxResources.get("describeYourDiagram")+":");mxUtils.br(ja);var xa=document.createElement("input");xa.setAttribute("type","text");xa.setAttribute("placeholder",mxResources.get("processForHiringNewEmployee"));xa.style.width="100%";xa.style.marginTop="6px";xa.style.marginBottom="4px";xa.style.boxSizing="border-box";ja.appendChild(xa);ja.init=function(){xa.focus()};mxUtils.br(ja);var qa=document.createElement("div");
qa.style.top="86px";qa.style.left="2px";qa.style.right="2px";qa.style.bottom="2px";qa.style.position="absolute";qa.style.border="1px solid #424242";var oa=document.createElement("div");oa.style.boxSizing="border-box";oa.style.position="relative";oa.style.textAlign="center";oa.style.top="50%";mxUtils.write(oa,mxResources.get("blankDiagram"));qa.appendChild(oa);var la=document.createElement("select");la.className="geBtn";la.style.maxWidth="160px";la.style.marginLeft="0px";oa=document.createElement("option");
mxUtils.write(oa,mxResources.get("diagramType"));oa.setAttribute("value","");la.appendChild(oa);for(var ya=0;ya<EditorUi.mermaidDiagramTypes.length;ya++){oa=document.createElement("option");var Ja=EditorUi.mermaidDiagramTypes[ya],Fa=Ja;Ja==urlParams["smart-template-type"]&&oa.setAttribute("selected","selected");"erDiagram"==Fa&&(Fa="entityRelationshipDiagram");Fa=mxResources.get(Fa,null,Fa.charAt(0).toUpperCase()+Fa.substring(1).replace(/[A-Z]/g," $&"));oa.setAttribute("value",Ja);mxUtils.write(oa,
Fa);la.appendChild(oa)}var La=mxUtils.button(mxResources.get("generate"),function(){var Pa=xa.value,Ka=la.value.replace(/([A-Z])/g," $1").toLowerCase();Pa="Write the declaration code for a detailed and complex "+(""!=Ka?Ka:"graph")+' that shows "'+(""!=Pa?Pa:"something random")+'" using correct MermaidJS syntax and do not provide additional text in your response.';Ka=""!=la.value?" ("+mxUtils.trim(mxUtils.getTextContent(la.options[la.selectedIndex]))+")":"";var Ra="gantt"==la.value||"pie"==la.value||
"timeline"==la.value||"quadrantchart"==la.value||"c4context"==la.value,Ma=xa.value+Ka;"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(Qa){Ra||(sa=ma=Qa,fa="Smart Template: "+Ma)}));b.spinner.spin(document.body,mxResources.get("loading"))&&b.generateOpenAiMermaidDiagram(Pa,function(Qa,Ya,Ga,eb){b.spinner.stop();qa.innerHTML="";var Ua=document.createElement("img");Ua.setAttribute("title",Ma);Ua.src="data:image/svg+xml;base64,"+Ya.substring(Ya.indexOf(",")+
-1);Ua.style.cursor="pointer";Ua.style.width="100%";Ua.style.height="100%";qa.appendChild(Ua);Qa=b.createMermaidXml(Qa,EditorUi.defaultMermaidConfig,Ya,Ga,eb,Ma);var ib="<mxfile><diagram>"+Graph.compress(Qa)+"</diagram></mxfile>";if(Ra||"undefined"===typeof mxMermaidToDrawio)sa=ma=Qa;Qa=J.cloneNode(!0);qa.appendChild(Qa);Ya=function(fb){U=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};Ga=function(fb){U||A(ib,mxEvent.getClientX(fb),mxEvent.getClientY(fb),Ua,Ma)};mxEvent.addGestureListeners(Ua,
+1);Ua.style.cursor="pointer";Ua.style.width="100%";Ua.style.height="100%";qa.appendChild(Ua);Qa=b.createMermaidXml(Qa,EditorUi.defaultMermaidConfig,Ya,Ga,eb,Ma);var ib="<mxfile><diagram>"+Graph.compress(Qa)+"</diagram></mxfile>";if(Ra||"undefined"===typeof mxMermaidToDrawio)sa=ma=Qa;Qa=J.cloneNode(!0);qa.appendChild(Qa);Ya=function(fb){U=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};Ga=function(fb){U||B(ib,mxEvent.getClientX(fb),mxEvent.getClientY(fb),Ua,Ma)};mxEvent.addGestureListeners(Ua,
Ya,null,Ga);mxEvent.addGestureListeners(Qa,Ya,null,Ga)},function(Qa){b.spinner.stop();null!=mxMermaidToDrawio.resetListeners&&mxMermaidToDrawio.resetListeners();b.handleError(Qa)})});La.setAttribute("disabled","disabled");La.className="geBtn gePrimaryBtn";oa=function(){window.setTimeout(function(){""!=xa.value?La.removeAttribute("disabled"):La.setAttribute("disabled","disabled")},0)};ya=urlParams["smart-template"];null!=ya&&"1"!=ya&&(xa.value=decodeURIComponent(ya),oa(),"1"==urlParams["smart-template-generate"]&&
window.setTimeout(function(){La.click()},0));mxEvent.addListener(xa,"change",oa);mxEvent.addListener(xa,"keydown",oa);mxEvent.addListener(xa,"cut",oa);mxEvent.addListener(xa,"paste",oa);mxEvent.addListener(xa,"keydown",function(Pa){13==Pa.keyCode&&La.click()});oa=document.createElement("div");oa.style.height="40px";oa.style.marginTop="4px";oa.style.marginBottom="4px";oa.style.whiteSpace="nowrap";oa.style.overflowX="auto";oa.style.overflowY="hidden";oa.appendChild(la);oa.appendChild(La);ja.appendChild(oa);
ja.appendChild(qa);return ja}function G(){null!=ma&&ma==sa&&EditorUi.logEvent({category:"OPENAI-DIAGRAM",action:"templateGenerated",label:fa});if(ia&&null!=c)m||b.hideDialog(),c(ia,ta,R.value);else if(d)m||b.hideDialog(),d(ma,R.value,ka,ca);else{var ja=R.value;if(null!=ja&&0<ja.length){var xa=function(oa,la,ya){b.createFile(ya,ma,null!=ca&&0<ca.length?ca:null,oa,function(){b.hideDialog()},null,la,null,null!=da&&0<da.length?da:null)};if(b.mode==App.MODE_GOOGLE||b.mode==App.MODE_ONEDRIVE){var qa=new SaveDialog(b,
@@ -12364,7 +12378,7 @@ ja,mxUtils.bind(this,function(oa,la,ya){xa(la,ya,oa.value)}),null,null,null,null
if(ja||""==xa)null!=fa&&(wa.value=fa,O());else{wa.style.visibility="hidden";Da.style.visibility="hidden";Ca.style.visibility="hidden";var qa=!1;ja='Write a detailed and complex MermaidJS declaration for "'+(""!=xa?xa:"something random")+'" using correct MermaidJS syntax and do not provide additional text in your response.';"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(oa){oa!=b.emptyDiagramXml&&(qa=!0,ma=oa)}));na.style.backgroundImage="url("+Editor.spinImage+
")";na.style.backgroundSize="12px 12px";b.generateOpenAiMermaidDiagram(ja,function(oa,la,ya,Ja){aa==na&&"hidden"==wa.style.visibility&&(Ha="url(data:image/svg+xml;base64,"+la.substring(la.indexOf(",")+1)+")",na.setAttribute("title",xa),sa=ma=oa=qa?ma:b.createMermaidXml(oa,EditorUi.defaultMermaidConfig,la,ya,Ja,xa),fa=xa,O())},function(oa){aa==na&&(wa.style.visibility="visible",Da.style.visibility="visible",Ca.style.visibility="visible",Ba.style.visibility="visible",Ea.style.visibility="visible",b.handleError(oa))})}}
function k(ja,xa,qa,oa,la,ya,Ja,Fa,La,Pa,Ka,Ra){function Ma(Oa,$a){null==eb?(Ua=Oa,Ua=/^https?:\/\//.test(Ua)?b.editor.isCorsEnabledForUrl(Ua)?Ua:PROXY_URL+"?url="+encodeURIComponent(Ua):TEMPLATE_PATH+"/"+Ua,mxUtils.get(Ua,mxUtils.bind(this,function(ab){200<=ab.getStatus()&&299>=ab.getStatus()&&(eb=ab.getText());$a(eb,Ua)}))):$a(eb,Ua)}function Qa(Oa,$a){if(null==ja||L||b.sidebar.currentElt==Ga)b.sidebar.hideTooltip();else if(b.sidebar.hideTooltip(),null!=Q){var ab="<mxfile><diagram>"+Graph.compress('<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" value="" style="shape=image;image='+
-Q.src+';imageAspect=1;" parent="1" vertex="1"><mxGeometry width="'+Q.naturalWidth+'" height="'+Q.naturalHeight+'" as="geometry" /></mxCell></root></mxGraphModel>')+"</diagram></mxfile>";A(ab,mxEvent.getClientX(Oa),mxEvent.getClientY(Oa),qa,ja)}else b.sidebar.currentElt=Ga,L=!0,Ma(ja,function(gb){if(L&&b.sidebar.currentElt==Ga)try{A(gb,mxEvent.getClientX(Oa),mxEvent.getClientY(Oa),Ga,$a)}catch(Za){b.sidebar.currentElt=null,b.handleError(Za)}L=!1})}function Ya(){var Oa=document.createElement("table");
+Q.src+';imageAspect=1;" parent="1" vertex="1"><mxGeometry width="'+Q.naturalWidth+'" height="'+Q.naturalHeight+'" as="geometry" /></mxCell></root></mxGraphModel>')+"</diagram></mxfile>";B(ab,mxEvent.getClientX(Oa),mxEvent.getClientY(Oa),qa,ja)}else b.sidebar.currentElt=Ga,L=!0,Ma(ja,function(gb){if(L&&b.sidebar.currentElt==Ga)try{B(gb,mxEvent.getClientX(Oa),mxEvent.getClientY(Oa),Ga,$a)}catch(Za){b.sidebar.currentElt=null,b.handleError(Za)}L=!1})}function Ya(){var Oa=document.createElement("table");
Oa.setAttribute("width","100%");Oa.setAttribute("height","100%");Oa.style.background="light-dark(rgba(255,255,255,0.85), transparent)";Oa.style.lineHeight="1.3em";Oa.style.border="none";var $a=document.createElement("tbody"),ab=document.createElement("tr"),gb=document.createElement("td");gb.setAttribute("align","center");gb.setAttribute("valign","middle");var Za=document.createElement("span");Za.style.display="inline-block";Za.style.padding="2px 8px";Za.style.userSelect="none";Za.style.borderRadius=
"8px";Za.style.background="rgba(255,255,255,0.7)";Za.style.overflow="hidden";Za.style.textOverflow="ellipsis";Za.style.maxWidth=pa-34+"px";mxUtils.write(Za,mxResources.get(qa,null,qa));gb.appendChild(Za);ab.appendChild(gb);$a.appendChild(ab);Oa.appendChild($a);return Oa}var Ga=null;if("generative"!=Ra||null==na){Ga=document.createElement("div");Ga.className="geTemplate geAdaptiveAsset";Ga.style.backgroundOrigin="content-box";Ga.style.backgroundPosition="center center";Ga.style.backgroundRepeat="no-repeat";
Ga.style.backgroundSize="contain";Ga.style.boxSizing="border-box";Ga.style.borderRadius="12px";Ga.style.position="relative";Ga.style.height=pa+"px";Ga.style.width=Aa+"px";Ga.style.padding="4px";Ga.style.border="2px solid transparent";var eb=null,Ua=ja;null!=qa?Ga.setAttribute("title",mxResources.get(qa,null,qa)):null!=oa&&0<oa.length&&Ga.setAttribute("title",oa)}else Ga=na;if(null!=ya){Ga.style.display="inline-flex";Ga.style.justifyContent="center";Ga.style.alignItems="center";la=document.createElement("img");
@@ -12378,11 +12392,11 @@ ya.length+")");mxUtils.write(la,la.getAttribute("title"));null!=M&&(la.style.pad
ya=null;if(null!=Ia[oa].content)la=document.createElement(Ja?"ul":"div"),qa=ja(oa),la.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;transition: all 0.5s;",la.setAttribute("title",qa),mxUtils.write(la,qa),ha.appendChild(la),qa=la;else{var Ja=Va[oa];qa=la=document.createElement(Ja?"ul":"div");ya=Ia[oa];var Fa=ja(oa,ya);if(null!=Ja){ya=document.createElement("li");var La=document.createElement("div");
La.className="geTempTreeCaret";La.setAttribute("title",Fa);mxUtils.write(La,Fa);qa=La;ya.appendChild(La);Fa=document.createElement("ul");Fa.className="geTempTreeNested";Fa.style.visibility="hidden";for(var Pa in Ja){var Ka=document.createElement("li"),Ra=ja(Pa,Ja[Pa]);Ka.setAttribute("title",Ra);mxUtils.write(Ka,Ra);xa(oa,Ka,Pa);Fa.appendChild(Ka)}ya.appendChild(Fa);la.className="geTempTree";la.appendChild(ya);(function(Ma,Qa){mxEvent.addListener(Qa,"click",function(){Ma.style.visibility="visible";
Ma.classList.toggle("geTempTreeActive");Ma.classList.toggle("geTempTreeNested")&&setTimeout(function(){Ma.style.visibility="hidden"},550);Qa.classList.toggle("geTempTreeCaret-down")})})(Fa,La)}else la.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;transition: all 0.5s;",la.setAttribute("title",Fa),mxUtils.write(la,Fa);null!=M&&(la.style.padding=M);ha.appendChild(la)}xa(oa,qa);null==Sa&&qa.click()}u(!1)}
-C=500>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);m=null!=m?m:!0;t=null!=t?t:!1;x=null!=x?x:"light-dark(#ebf2f9, "+Editor.darkColor+")";K=null!=K?K:"2px dashed light-dark(#29b6f2, #00a8ff)";N=null!=N?N:EditorUi.templateFile;var z=document.createElement("div");z.style.userSelect="none";z.style.height="100%";var B=document.createElement("div");B.style.whiteSpace="nowrap";B.style.height="46px";m&&z.appendChild(B);var H=document.createElement("img");H.setAttribute("border",
+C=500>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);m=null!=m?m:!0;t=null!=t?t:!1;x=null!=x?x:"light-dark(#ebf2f9, "+Editor.darkColor+")";K=null!=K?K:"2px dashed light-dark(#29b6f2, #00a8ff)";N=null!=N?N:EditorUi.templateFile;var z=document.createElement("div");z.style.userSelect="none";z.style.height="100%";var A=document.createElement("div");A.style.whiteSpace="nowrap";A.style.height="46px";m&&z.appendChild(A);var H=document.createElement("img");H.setAttribute("border",
"0");H.setAttribute("align","absmiddle");H.style.width="40px";H.style.height="40px";H.style.marginRight="10px";H.style.paddingBottom="4px";H.src=b.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg":b.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":b.mode==App.MODE_ONEDRIVE?IMAGE_PATH+"/onedrive-logo.svg":b.mode==App.MODE_GITHUB?IMAGE_PATH+"/github-logo.svg":b.mode==App.MODE_GITLAB?IMAGE_PATH+"/gitlab-logo.svg":b.mode==App.MODE_TRELLO?IMAGE_PATH+"/trello-logo.svg":b.mode==App.MODE_BROWSER?
-IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";f||C||!m||B.appendChild(H);m&&mxUtils.write(B,(C?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");H=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?H=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?H=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&&null!=b.oneDrive?H=b.oneDrive.extension:b.mode==App.MODE_GITHUB&&null!=
+IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";f||C||!m||A.appendChild(H);m&&mxUtils.write(A,(C?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");H=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?H=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?H=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&&null!=b.oneDrive?H=b.oneDrive.extension:b.mode==App.MODE_GITHUB&&null!=
b.gitHub?H=b.gitHub.extension:b.mode==App.MODE_GITLAB&&null!=b.gitLab?H=b.gitLab.extension:b.mode==App.MODE_TRELLO&&null!=b.trello&&(H=b.trello.extension);var R=document.createElement("input");R.setAttribute("value",b.defaultFilename+H);R.style.marginLeft="10px";R.style.width=f||C?"144px":"244px";this.init=function(){m&&Editor.selectFilename(R);null!=ra.parentNode&&null!=ra.parentNode.parentNode&&mxEvent.addGestureListeners(ra.parentNode.parentNode,mxUtils.bind(this,function(ja){null!=b.sidebar&&
-b.sidebar.hideTooltip()}),null,null)};m&&(B.appendChild(R),p?R.style.width=f||C?"350px":"450px":null!=b.editor.diagramFileTypes&&(p=FilenameDialog.createFileTypes(b,R,b.editor.diagramFileTypes),p.style.marginLeft="6px",p.style.width=f||C?"80px":"180px",B.appendChild(p)));p=!1;var g=0,q=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),F=mxUtils.button(l||mxResources.get("create"),function(){F.setAttribute("disabled",
+b.sidebar.hideTooltip()}),null,null)};m&&(A.appendChild(R),p?R.style.width=f||C?"350px":"450px":null!=b.editor.diagramFileTypes&&(p=FilenameDialog.createFileTypes(b,R,b.editor.diagramFileTypes),p.style.marginLeft="6px",p.style.width=f||C?"80px":"180px",A.appendChild(p)));p=!1;var g=0,q=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),F=mxUtils.button(l||mxResources.get("create"),function(){F.setAttribute("disabled",
"disabled");G();F.removeAttribute("disabled")});F.className="geBtn gePrimaryBtn";var J=document.createElement("img");J.setAttribute("src",Editor.magnifyImage);J.setAttribute("title",mxResources.get("preview"));J.className="geAdaptiveAsset geActiveButton";J.style.position="absolute";J.style.borderRadius="16px";J.style.background="white";J.style.cursor="default";J.style.padding="2px";J.style.opacity="0.8";J.style.height="16px";J.style.right="2px";J.style.top="2px";var L=!1,Q=null,U=!1;if(P||I){var V=
[],W=null,X=null,Z=null,Y=function(ja){F.setAttribute("disabled","disabled");for(var xa=0;xa<V.length;xa++)V[xa].className=xa==ja?"geBtn gePrimaryBtn":"geBtn"};p=!0;l=document.createElement("div");l.style.whiteSpace="nowrap";l.style.height="30px";z.appendChild(l);C=mxUtils.button(mxResources.get("Templates",null,"Templates"),function(){ha.style.display="";ua.style.display="";ra.style.left="160px";Y(0);ra.scrollTop=0;ra.innerText="";g=0;W!=Wa&&(Wa=W,Ia=X,Xa=Z,ha.innerText="",v(),W=null)});V.push(C);
l.appendChild(C);var ba=function(ja){ha.style.display="none";ua.style.display="none";ra.style.left="30px";Y(ja?-1:1);null==W&&(W=Wa);ra.scrollTop=0;ra.innerText="";q.spin(ra);var xa=function(qa,oa,la){g=0;q.stop();Wa=qa;la=la||{};var ya=0,Ja;for(Ja in la)ya+=la[Ja].length;if(oa)ra.innerText=oa;else if(0==qa.length&&0==ya)ra.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(ra.innerText="",0<ya){ha.style.display="";ra.style.left="160px";ha.innerText="";Xa=0;Ia={"draw.io":qa};
@@ -12395,7 +12409,7 @@ Ta[Ka],la=0;la<oa.length;la++)for(ya=oa[la],Ja=ya.title.split(" "),Ja.push(Ka),F
mxUtils.write(qa,mxResources.get(0==Ka.length?"noResultsFor":"resultsFor",[xa]));ra.appendChild(qa);null!=Sa&&null==bb&&(Sa.style.backgroundColor="",bb=Sa,Sa=qa);Wa=Ka;W=null;u(!1)}mxEvent.consume(ja)}}));mxEvent.addListener(za,"keyup",mxUtils.bind(this,function(ja){""==za.value?(va.setAttribute("src",Editor.magnifyImage),va.setAttribute("title",mxResources.get("search"))):(va.setAttribute("src",Editor.crossImage),va.setAttribute("title",mxResources.get("reset")))}));l+=23;var ha=document.createElement("div");
ha.style.cssText="position:absolute;left:30px;width:128px;top:"+l+"px;bottom:68px;margin-top:6px;overflow:auto;border:1px solid #d3d3d3;";mxEvent.addListener(ra,"scroll",function(){b.sidebar.hideTooltip()});var pa=140,Aa=pa,na=null,Ha="url("+Editor.sparklesImage+")",wa=document.createElement("textarea");wa.setAttribute("placeholder",mxResources.get("describeYourDiagram"));wa.style.position="absolute";wa.style.fontFamily="sans-serif";wa.style.outline="none";wa.style.left="0px";wa.style.right="0px";
wa.style.top="0px";wa.style.bottom="38px";wa.style.resize="none";wa.style.boxSizing="border-box";wa.style.fontSize="12px";wa.style.border="none";wa.style.margin="8px";var Da=document.createElement("button");Da.className="geBtn gePrimaryBtn";Da.style.position="absolute";Da.style.bottom="0px";Da.style.height="30px";Da.style.right="0px";Da.style.left="0px";Da.style.margin="8px";Da.style.fontSize="14px";Da.style.borderRadius="4px";Da.setAttribute("disabled","disabled");Da.setAttribute("title",mxResources.get("ok"));
-mxUtils.write(Da,mxResources.get("ok"));var Ea=J.cloneNode(!0),Na=!1;mxEvent.addGestureListeners(Ea,function(ja){Na=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display},null,function(ja){if(!Na&&null!=sa){var xa="<mxfile><diagram>"+Graph.compress(sa)+"</diagram></mxfile>";A(xa,mxEvent.getClientX(ja),mxEvent.getClientY(ja),na,fa)}});var Ba=J.cloneNode(!0);Ba.setAttribute("src",Editor.editImage);Ba.setAttribute("title",mxResources.get("edit"));Ba.style.right="";Ba.style.left="2px";var Ca=
+mxUtils.write(Da,mxResources.get("ok"));var Ea=J.cloneNode(!0),Na=!1;mxEvent.addGestureListeners(Ea,function(ja){Na=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display},null,function(ja){if(!Na&&null!=sa){var xa="<mxfile><diagram>"+Graph.compress(sa)+"</diagram></mxfile>";B(xa,mxEvent.getClientX(ja),mxEvent.getClientY(ja),na,fa)}});var Ba=J.cloneNode(!0);Ba.setAttribute("src",Editor.editImage);Ba.setAttribute("title",mxResources.get("edit"));Ba.style.right="";Ba.style.left="2px";var Ca=
J.cloneNode(!0);Ca.setAttribute("src",Editor.helpImage);Ca.setAttribute("title",mxResources.get("help"));Ca.style.opacity="1";Ca.style.right="-8px";Ca.style.top="-8px";mxEvent.addListener(Ca,"click",function(ja){b.openLink("https://www.drawio.com/blog/write-query-generate-diagram");mxEvent.consume(ja)});wa.style.visibility="hidden";Da.style.visibility="hidden";Ba.style.visibility="hidden";Ca.style.visibility="hidden";Ea.style.visibility="hidden";mxEvent.addListener(Ba,"click",T);mxEvent.addListener(wa,
"input",function(){""!=wa.value?Da.removeAttribute("disabled"):Da.setAttribute("disabled","disabled")});mxEvent.addListener(Da,"click",function(){S()});mxEvent.addListener(wa,"keydown",function(ja){13!=ja.keyCode||mxEvent.isShiftDown(ja)?27==ja.keyCode&&(S(!0),mxEvent.consume(ja)):(S(),mxEvent.consume(ja))});var Ia={},Va={},Ta={},Xa=0,jb=!0,Sa=null,bb=null;Ia.basic=[{title:"blankDiagram"}];var Wa=Ia.basic;Editor.enableChatGpt&&b.isExternalDataComms()&&"draw.io"==b.getServiceName()&&"undefined"!==
typeof mxMermaidToDrawio&&window.isMermaidEnabled&&Ia.basic.push({title:"generate",type:"generative"});Editor.enableChatGpt&&b.isExternalDataComms()&&"draw.io"==b.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&(Ia.smartTemplate={content:D()});if(!f){var cb=function(){mxUtils.get(db,function(ja){if(!hb){hb=!0;ja=ja.getXml().documentElement.firstChild;for(var xa={};null!=ja;){if("undefined"!==typeof ja.getAttribute)if("parsererror"==ja.nodeName)null!=window.console&&
@@ -12405,26 +12419,26 @@ z.appendChild(ra);var hb=!1,db=N;/^https?:\/\//.test(db)&&!b.editor.isCorsEnable
function(){null!=y&&y();b.hideDialog(!0)});l.className="geBtn";!b.editor.cancelFirst||t&&null==y||n.appendChild(l);f||"1"==urlParams.embed||t||mxClient.IS_ANDROID||mxClient.IS_IOS||"1"==urlParams.noDevice||(f=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var ja=new FilenameDialog(b,"",mxResources.get("create"),function(xa){null!=xa&&0<xa.length&&b.editor.loadUrl(b.editor.getProxiedUrl(xa),function(qa){ma=qa;ca=null;templateRealURl=xa;b.hideDialog();G()},function(qa){b.handleError(qa)})},
mxResources.get("url"),null,null,null,!1);b.showDialog(ja.container,300,80,!0,!0);ja.init()}),f.className="geBtn",n.appendChild(f));Graph.fileSupport&&e&&(e=mxUtils.button(mxResources.get("import"),function(){if(null==b.newDlgFileInputElt){var ja=document.createElement("input");ja.setAttribute("multiple","multiple");ja.setAttribute("type","file");mxEvent.addListener(ja,"change",function(xa){b.openFiles(ja.files,!0);ja.value=""});ja.style.display="none";document.body.appendChild(ja);b.newDlgFileInputElt=
ja}b.newDlgFileInputElt.click()}),e.className="geBtn",n.appendChild(e));n.appendChild(F);b.editor.cancelFirst||null!=d||t&&null==y||n.appendChild(l);z.appendChild(n);this.container=z};NewDialog.tagsList={};
-var SaveDialog=function(b,f,m,d,t,y,x,C){function K(z,B,H,R,g,q){var F=null;if(null==d||0>mxUtils.indexOf(d,z))if(g=null!=g?g:b.getTitleForService(z),0<=mxUtils.indexOf(T,z)||null!=b.getServiceForName(z)){F=document.createElement("option");if("pick"==q)F.innerHTML=mxUtils.htmlEntities(g)+"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"...",F.setAttribute("value","pickFolder-"+z),F.setAttribute("title",g+" - "+mxResources.get("pickFolder")+"...");else{var J=z+
-(null!=H?"-"+H:""),L=k[J];null!=L&&null!=L.option&&L.option.parentNode.removeChild(L.option);L=null;if(null!=B){"/"==B.charAt(B.length-1)&&(B=B.substring(0,B.length-1));"/"==B.charAt(0)&&(B=B.substring(1));L=B;if(z!=App.MODE_GITHUB&&z==App.MODE_GITLAB){var Q=L.lastIndexOf("/");0<=Q&&(L=L.substring(Q+1))}40<L.length&&(L=L.substring(0,20)+"..."+L.substring(L.length-20))}F.innerHTML=mxUtils.htmlEntities(g)+(null!=L?"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(L):"");F.setAttribute("title",g+
-(null!=B?" ("+B+")":"")+(null!=H&&decodeURIComponent(H)!=B?" ["+H+"]":""));F.setAttribute("value",J);k[J]={option:F,mode:z,path:B,id:H};SaveDialog.lastValue==J&&null==C?R=!0:null==R&&("root"==q?R=null==C&&b.mode==z||null!=z&&z==C:"pickFolder-"==G.value.substring(0,11)&&(R=!0));R&&F.setAttribute("selected","selected")}G.appendChild(F)}return F}function M(z){b.pickFolder(z,function(B){var H=null;z==App.MODE_GOOGLE&&null!=B.docs&&0<B.docs.length?H={mode:z,path:B.docs[0].name,id:B.docs[0].id}:z==App.MODE_ONEDRIVE&&
-null!=B.value&&0<B.value.length?H={mode:z,path:B.value[0].name,id:OneDriveFile.prototype.getIdOf(B.value[0])}:(z==App.MODE_GITHUB||z==App.MODE_GITLAB)&&null!=B&&0<B.length&&(H={mode:z,path:decodeURIComponent(B),id:B});null!=H&&(E.style.display="",b.addRecent(H,"Folders",5),B=K(H.mode,H.path,H.id,!0),G.innerHTML="",k={},N(),H=G.selectedIndex,G.value=B.value,0>G.selectedIndex&&(G.selectedIndex=H))},!0,!0,!0,!0)}function N(){var z=b.getRecent("Folders"),B=0;if(null!=z&&0<z.length){for(var H=0;H<z.length;H++)null!=
-K(z[H].mode,z[H].path,z[H].id)&&B++;0<B&&G.appendChild(O.cloneNode(!0))}K(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");K(App.MODE_GOOGLE,null,null,null,null,"pick");null!=b.oneDrive&&(K(App.MODE_ONEDRIVE,mxResources.get("myFiles"),OneDriveFile.prototype.getIdOf(b.oneDrive.rootId),null,null,"root"),K(App.MODE_ONEDRIVE,null,null,null,null,"pick"));null!=b.dropbox&&K(App.MODE_DROPBOX,"Apps"+b.dropbox.appPath);K(App.MODE_GITHUB,null,null,null,null,"pick");K(App.MODE_GITLAB,null,
-null,null,null,"pick");K(App.MODE_TRELLO);z=!Editor.useLocalStorage||"device"==urlParams.storage||null!=b.getCurrentFile()&&"1"!=urlParams.noDevice;EditorUi.nativeFileSupport&&z&&K(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE||null!=d&&0<=mxUtils.indexOf(d,App.MODE_BROWSER)?!0:null);isLocalStorage&&"0"!=urlParams.browser&&K(App.MODE_BROWSER);z&&K("download");Editor.popupsAllowed&&K("_blank",null,null,null,mxResources.get("openInNewWindow"));0<B&&(G.appendChild(O.cloneNode(!0)),B=G.value,G.appendChild(E),
-G.value=B);if("pickFolder-"==G.value.substring(0,11)||"reset"==G.value)B=document.createElement("option"),B.setAttribute("value",""),B.setAttribute("selected","selected"),mxUtils.write(B,mxResources.get("pickFolder")+"..."),G.insertBefore(B,G.firstChild);S=G.value}function P(){if("reset"==G.value)b.resetRecent("Folders"),G.innerHTML="",G.value="",pickFolderOption=null,k={},N();else if("pickFolder-"==G.value.substring(0,11)){var z=G.value.substring(11);G.value=S;M(z)}else if(null!=D&&null!=k[G.value]&&
-null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[D.value].extension){z=b.getExtensionForService(k[G.value].mode);var B=A.value;null!=z&&0>f.indexOf(".")&&0>B.indexOf(".")&&(A.value=B+z)}v.innerHTML="";mxUtils.write(v,mxResources.get("download"==G.value||"_blank"==G.value?"ok":"save"));""==G.value?v.setAttribute("disabled","disabled"):v.removeAttribute("disabled")}var I=document.createElement("div");I.style.display="flex";I.style.flexWrap="wrap";I.style.whiteSpace="nowrap";var c=
+var SaveDialog=function(b,f,m,d,t,y,x,C){function K(z,A,H,R,g,q){var F=null;if(null==d||0>mxUtils.indexOf(d,z))if(g=null!=g?g:b.getTitleForService(z),0<=mxUtils.indexOf(T,z)||null!=b.getServiceForName(z)){F=document.createElement("option");if("pick"==q)F.innerHTML=mxUtils.htmlEntities(g)+"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"...",F.setAttribute("value","pickFolder-"+z),F.setAttribute("title",g+" - "+mxResources.get("pickFolder")+"...");else{var J=z+
+(null!=H?"-"+H:""),L=k[J];null!=L&&null!=L.option&&L.option.parentNode.removeChild(L.option);L=null;if(null!=A){"/"==A.charAt(A.length-1)&&(A=A.substring(0,A.length-1));"/"==A.charAt(0)&&(A=A.substring(1));L=A;if(z!=App.MODE_GITHUB&&z==App.MODE_GITLAB){var Q=L.lastIndexOf("/");0<=Q&&(L=L.substring(Q+1))}40<L.length&&(L=L.substring(0,20)+"..."+L.substring(L.length-20))}F.innerHTML=mxUtils.htmlEntities(g)+(null!=L?"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(L):"");F.setAttribute("title",g+
+(null!=A?" ("+A+")":"")+(null!=H&&decodeURIComponent(H)!=A?" ["+H+"]":""));F.setAttribute("value",J);k[J]={option:F,mode:z,path:A,id:H};SaveDialog.lastValue==J&&null==C?R=!0:null==R&&("root"==q?R=null==C&&b.mode==z||null!=z&&z==C:"pickFolder-"==G.value.substring(0,11)&&(R=!0));R&&F.setAttribute("selected","selected")}G.appendChild(F)}return F}function M(z){b.pickFolder(z,function(A){var H=null;z==App.MODE_GOOGLE&&null!=A.docs&&0<A.docs.length?H={mode:z,path:A.docs[0].name,id:A.docs[0].id}:z==App.MODE_ONEDRIVE&&
+null!=A.value&&0<A.value.length?H={mode:z,path:A.value[0].name,id:OneDriveFile.prototype.getIdOf(A.value[0])}:(z==App.MODE_GITHUB||z==App.MODE_GITLAB)&&null!=A&&0<A.length&&(H={mode:z,path:decodeURIComponent(A),id:A});null!=H&&(E.style.display="",b.addRecent(H,"Folders",5),A=K(H.mode,H.path,H.id,!0),G.innerHTML="",k={},N(),H=G.selectedIndex,G.value=A.value,0>G.selectedIndex&&(G.selectedIndex=H))},!0,!0,!0,!0)}function N(){var z=b.getRecent("Folders"),A=0;if(null!=z&&0<z.length){for(var H=0;H<z.length;H++)null!=
+K(z[H].mode,z[H].path,z[H].id)&&A++;0<A&&G.appendChild(O.cloneNode(!0))}K(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");K(App.MODE_GOOGLE,null,null,null,null,"pick");null!=b.oneDrive&&(K(App.MODE_ONEDRIVE,mxResources.get("myFiles"),OneDriveFile.prototype.getIdOf(b.oneDrive.rootId),null,null,"root"),K(App.MODE_ONEDRIVE,null,null,null,null,"pick"));null!=b.dropbox&&K(App.MODE_DROPBOX,"Apps"+b.dropbox.appPath);K(App.MODE_GITHUB,null,null,null,null,"pick");K(App.MODE_GITLAB,null,
+null,null,null,"pick");K(App.MODE_TRELLO);z=!Editor.useLocalStorage||"device"==urlParams.storage||null!=b.getCurrentFile()&&"1"!=urlParams.noDevice;EditorUi.nativeFileSupport&&z&&K(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE||null!=d&&0<=mxUtils.indexOf(d,App.MODE_BROWSER)?!0:null);isLocalStorage&&"0"!=urlParams.browser&&K(App.MODE_BROWSER);z&&K("download");Editor.popupsAllowed&&K("_blank",null,null,null,mxResources.get("openInNewWindow"));0<A&&(G.appendChild(O.cloneNode(!0)),A=G.value,G.appendChild(E),
+G.value=A);if("pickFolder-"==G.value.substring(0,11)||"reset"==G.value)A=document.createElement("option"),A.setAttribute("value",""),A.setAttribute("selected","selected"),mxUtils.write(A,mxResources.get("pickFolder")+"..."),G.insertBefore(A,G.firstChild);S=G.value}function P(){if("reset"==G.value)b.resetRecent("Folders"),G.innerHTML="",G.value="",pickFolderOption=null,k={},N();else if("pickFolder-"==G.value.substring(0,11)){var z=G.value.substring(11);G.value=S;M(z)}else if(null!=D&&null!=k[G.value]&&
+null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[D.value].extension){z=b.getExtensionForService(k[G.value].mode);var A=B.value;null!=z&&0>f.indexOf(".")&&0>A.indexOf(".")&&(B.value=A+z)}v.innerHTML="";mxUtils.write(v,mxResources.get("download"==G.value||"_blank"==G.value?"ok":"save"));""==G.value?v.setAttribute("disabled","disabled"):v.removeAttribute("disabled")}var I=document.createElement("div");I.style.display="flex";I.style.flexWrap="wrap";I.style.whiteSpace="nowrap";var c=
document.createElement("div");c.style.display="grid";c.style.gap="5px 8px";c.style.gridAutoRows="auto auto 44px";c.style.gridAutoColumns="0fr minmax(0,1fr)";c.style.width="100%";var e=null,l=null;if(null!=t&&null!=y&&"image/"==y.substring(0,6)&&("image/svg"!=y.substring(0,9)||mxClient.IS_SVG)){c.style.display="inline-grid";c.style.flexBasis="75%";e=document.createElement("div");e.style.display="inline-block";e.style.height="auto";e.style.maxWidth="25%";e.style.margin="auto";var n=document.createElement("img"),
p=x?t:btoa(unescape(encodeURIComponent(t)));n.setAttribute("src","data:"+y+";base64,"+p);n.style.boxSizing="border-box";n.style.maxHeight="50px";n.style.maxWidth="100%";n.style.paddingLeft="10px";e.appendChild(n);mxClient.IS_FF||"image/png"!=y||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||(l=mxUtils.button(mxResources.get("copy"),function(){var z=b.base64ToBlob(p,"image/png");z=new ClipboardItem({"image/png":z,"text/html":new Blob(['<img src="data:'+y+";base64,"+p+'">'],{type:"text/html"})});
-navigator.clipboard.write([z]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(B){b.handleError(B)}))},null,"geBtn"));Editor.popupsAllowed&&(null==d||0>mxUtils.indexOf(d,"_blank"))?(e.setAttribute("title",mxResources.get("openInNewWindow")),e.style.cursor="pointer",mxEvent.addGestureListeners(e,null,null,function(z){mxEvent.isPopupTrigger(z)||b.openInNewWindow(t,y,x)})):e.setAttribute("title",mxResources.get("preview"))}n=document.createElement("div");
-n.style.display="flex";n.style.padding="1px";n.style.alignItems="center";n.style.justifyContent="flex-end";n.style.gridColumn="1";n.style.whiteSpace="nowrap";var u=document.createElement("div");u.style.display="grid";u.style.padding="1px";u.style.alignItems="center";u.style.gridColumn="2";u.style.gridAutoColumns="minmax(0,1fr) auto";u.style.gap="6px";mxUtils.write(n,mxResources.get("saveAs")+":");var A=document.createElement("input");A.setAttribute("type","text");A.setAttribute("value",f);A.style.boxSizing=
-"border-box";A.style.width="100%";u.appendChild(A);c.appendChild(n);c.appendChild(u);var D=null;null!=b.editor.diagramFileTypes&&null==y&&(n=n.cloneNode(!1),u=u.cloneNode(!1),mxUtils.write(n,mxResources.get("type")+":"),D=FilenameDialog.createFileTypes(b,A,b.editor.diagramFileTypes),D.style.boxSizing="border-box",D.style.width="100%",u.appendChild(D),c.appendChild(n),c.appendChild(u));n=n.cloneNode(!1);u=u.cloneNode(!1);mxUtils.write(n,mxResources.get("where")+":");var G=document.createElement("select");
-G.style.textOverflow="ellipsis";G.style.gridColumn="1";var E=document.createElement("option");mxUtils.write(E,mxResources.get("reset"));E.setAttribute("value","reset");var T=["browser","device","download","_blank"],O=document.createElement("option");O.setAttribute("disabled","disabled");O.innerHTML="-----------------";var S=null,k={},v=mxUtils.button(mxResources.get("save"),function(){SaveDialog.lastValue=G.value;var z=k[SaveDialog.lastValue];null!=z&&m(A,z.mode,z.id)},null,"geBtn gePrimaryBtn");
-mxEvent.addListener(A,"keypress",function(z){13==z.keyCode&&v.click()});mxEvent.addListener(G,"change",P);N();P();u.appendChild(G);null!=SaveDialog.lastValue&&null!=k[SaveDialog.lastValue]&&(G.value=SaveDialog.lastValue);c.appendChild(n);c.appendChild(u);I.appendChild(c);null!=e&&I.appendChild(e);c=document.createElement("div");c.style.flexBasis="100%";c.style.textAlign="right";c.style.marginTop=null!=y?"16px":"8px";b.isOffline()&&!mxClient.IS_CHROMEAPP||c.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/save-file-formats"));
-e=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()},null,"geBtn");b.editor.cancelFirst&&c.appendChild(e);null!=l&&c.appendChild(l);c.appendChild(v);b.editor.cancelFirst||c.appendChild(e);I.appendChild(c);this.init=function(){Editor.selectFilename(A)};this.container=I},CreateDialog=function(b,f,m,d,t,y,x,C,K,M,N,P,I,c,e,l,n){function p(S,k,v,z){function B(){mxEvent.addListener(H,"click",function(){var J=v;if(x){var L=D.value,Q=L.lastIndexOf(".");if(0>f.lastIndexOf(".")&&0>Q){J=null!=
+navigator.clipboard.write([z]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(A){b.handleError(A)}))},null,"geBtn"));Editor.popupsAllowed&&(null==d||0>mxUtils.indexOf(d,"_blank"))?(e.setAttribute("title",mxResources.get("openInNewWindow")),e.style.cursor="pointer",mxEvent.addGestureListeners(e,null,null,function(z){mxEvent.isPopupTrigger(z)||b.openInNewWindow(t,y,x)})):e.setAttribute("title",mxResources.get("preview"))}n=document.createElement("div");
+n.style.display="flex";n.style.padding="1px";n.style.alignItems="center";n.style.justifyContent="flex-end";n.style.gridColumn="1";n.style.whiteSpace="nowrap";var u=document.createElement("div");u.style.display="grid";u.style.padding="1px";u.style.alignItems="center";u.style.gridColumn="2";u.style.gridAutoColumns="minmax(0,1fr) auto";u.style.gap="6px";mxUtils.write(n,mxResources.get("saveAs")+":");var B=document.createElement("input");B.setAttribute("type","text");B.setAttribute("value",f);B.style.boxSizing=
+"border-box";B.style.width="100%";u.appendChild(B);c.appendChild(n);c.appendChild(u);var D=null;null!=b.editor.diagramFileTypes&&null==y&&(n=n.cloneNode(!1),u=u.cloneNode(!1),mxUtils.write(n,mxResources.get("type")+":"),D=FilenameDialog.createFileTypes(b,B,b.editor.diagramFileTypes),D.style.boxSizing="border-box",D.style.width="100%",u.appendChild(D),c.appendChild(n),c.appendChild(u));n=n.cloneNode(!1);u=u.cloneNode(!1);mxUtils.write(n,mxResources.get("where")+":");var G=document.createElement("select");
+G.style.textOverflow="ellipsis";G.style.gridColumn="1";var E=document.createElement("option");mxUtils.write(E,mxResources.get("reset"));E.setAttribute("value","reset");var T=["browser","device","download","_blank"],O=document.createElement("option");O.setAttribute("disabled","disabled");O.innerHTML="-----------------";var S=null,k={},v=mxUtils.button(mxResources.get("save"),function(){SaveDialog.lastValue=G.value;var z=k[SaveDialog.lastValue];null!=z&&m(B,z.mode,z.id)},null,"geBtn gePrimaryBtn");
+mxEvent.addListener(B,"keypress",function(z){13==z.keyCode&&v.click()});mxEvent.addListener(G,"change",P);N();P();u.appendChild(G);null!=SaveDialog.lastValue&&null!=k[SaveDialog.lastValue]&&(G.value=SaveDialog.lastValue);c.appendChild(n);c.appendChild(u);I.appendChild(c);null!=e&&I.appendChild(e);c=document.createElement("div");c.style.flexBasis="100%";c.style.textAlign="right";c.style.marginTop=null!=y?"16px":"8px";b.isOffline()&&!mxClient.IS_CHROMEAPP||c.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/save-file-formats"));
+e=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()},null,"geBtn");b.editor.cancelFirst&&c.appendChild(e);null!=l&&c.appendChild(l);c.appendChild(v);b.editor.cancelFirst||c.appendChild(e);I.appendChild(c);this.init=function(){Editor.selectFilename(B)};this.container=I},CreateDialog=function(b,f,m,d,t,y,x,C,K,M,N,P,I,c,e,l,n){function p(S,k,v,z){function A(){mxEvent.addListener(H,"click",function(){var J=v;if(x){var L=D.value,Q=L.lastIndexOf(".");if(0>f.lastIndexOf(".")&&0>Q){J=null!=
J?J:O.value;var U="";J==App.MODE_GOOGLE?U=b.drive.extension:J==App.MODE_GITHUB?U=b.gitHub.extension:J==App.MODE_GITLAB?U=b.gitLab.extension:J==App.MODE_TRELLO?U=b.trello.extension:J==App.MODE_DROPBOX?U=b.dropbox.extension:J==App.MODE_ONEDRIVE?U=b.oneDrive.extension:J==App.MODE_DEVICE&&(U=".drawio");0<=Q&&(L=L.substring(0,Q));D.value=L+U}}u(v)})}var H=document.createElement("a");H.style.overflow="hidden";var R=document.createElement("img");R.src=S;R.setAttribute("border","0");R.setAttribute("align",
"absmiddle");R.style.width="60px";R.style.height="60px";R.style.paddingBottom="6px";H.style.display="inline-block";H.className="geBaseButton";H.style.position="relative";H.style.margin="4px";H.style.padding="8px 8px 10px 8px";H.style.whiteSpace="nowrap";H.appendChild(R);H.style.color="gray";H.style.fontSize="11px";var g=document.createElement("div");H.appendChild(g);mxUtils.write(g,k);if(null!=z&&null==b[z]){R.style.visibility="hidden";mxUtils.setOpacity(g,10);var q=new Spinner({lines:12,length:12,
-width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});q.spin(H);var F=window.setTimeout(function(){null==b[z]&&(q.stop(),H.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[z]&&(window.clearTimeout(F),mxUtils.setOpacity(g,100),R.style.visibility="",q.stop(),B())}))}else B();E.appendChild(H);++T==P&&(mxUtils.br(E),T=0)}function u(S){var k=D.value;if(null==S||null!=k&&0<k.length)n&&b.hideDialog(),
-m(k,S,D)}N="1"==urlParams.noDevice?!1:N;x=null!=x?x:!0;C=null!=C?C:!0;P=null!=P?P:4;n=null!=n?n:!0;y=document.createElement("div");y.style.whiteSpace="nowrap";null==d&&b.addLanguageMenu(y);var A=document.createElement("h2");mxUtils.write(A,t||mxResources.get("create"));A.style.marginTop="0px";A.style.marginBottom="24px";y.appendChild(A);t=document.createElement("span");mxUtils.write(t,mxResources.get("filename")+":");t.style.maxWidth="106px";t.style.overflow="hidden";t.style.textOverflow="ellipsis";
+width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});q.spin(H);var F=window.setTimeout(function(){null==b[z]&&(q.stop(),H.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[z]&&(window.clearTimeout(F),mxUtils.setOpacity(g,100),R.style.visibility="",q.stop(),A())}))}else A();E.appendChild(H);++T==P&&(mxUtils.br(E),T=0)}function u(S){var k=D.value;if(null==S||null!=k&&0<k.length)n&&b.hideDialog(),
+m(k,S,D)}N="1"==urlParams.noDevice?!1:N;x=null!=x?x:!0;C=null!=C?C:!0;P=null!=P?P:4;n=null!=n?n:!0;y=document.createElement("div");y.style.whiteSpace="nowrap";null==d&&b.addLanguageMenu(y);var B=document.createElement("h2");mxUtils.write(B,t||mxResources.get("create"));B.style.marginTop="0px";B.style.marginBottom="24px";y.appendChild(B);t=document.createElement("span");mxUtils.write(t,mxResources.get("filename")+":");t.style.maxWidth="106px";t.style.overflow="hidden";t.style.textOverflow="ellipsis";
t.style.display="inline-block";y.appendChild(t);var D=document.createElement("input");D.setAttribute("value",f);D.style.width="180px";D.style.marginLeft="10px";D.style.marginBottom="20px";D.style.maxWidth="70%";this.init=function(){Editor.selectFilename(D)};y.appendChild(D);null!=l&&null!=b.editor.diagramFileTypes&&(l=FilenameDialog.createFileTypes(b,D,b.editor.diagramFileTypes),l.style.marginLeft="6px",l.style.width="90px",y.appendChild(l));l=null;if("1"!=urlParams.noDevice&&null!=I&&null!=c&&"image/"==
c.substring(0,6)&&("image/svg"!=c.substring(0,9)||mxClient.IS_SVG)){D.style.width="160px";t=document.createElement("img");var G=e?I:btoa(unescape(encodeURIComponent(I)));t.setAttribute("src","data:"+c+";base64,"+G);t.style.position="absolute";t.style.top="70px";t.style.right="100px";t.style.maxWidth="120px";t.style.maxHeight="80px";mxUtils.setPrefixedStyle(t.style,"transform","translate(50%,-50%)");y.appendChild(t);mxClient.IS_FF||"image/png"!=c||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||
(l=mxUtils.button(mxResources.get("copy"),function(S){S=b.base64ToBlob(G,"image/png");S=new ClipboardItem({"image/png":S,"text/html":new Blob(['<img src="data:'+c+";base64,"+G+'">'],{type:"text/html"})});navigator.clipboard.write([S]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(k){b.handleError(k)}))}),l.style.marginTop="6px",l.className="geBtn");K&&Editor.popupsAllowed&&(t.style.cursor="pointer",mxEvent.addGestureListeners(t,
@@ -12437,19 +12451,19 @@ b.mode==App.MODE_BROWSER&&C.setAttribute("selected","selected"),p(IMAGE_PATH+"/o
N.className="geBtn";b.editor.cancelFirst&&null==d&&C.appendChild(N);null==d&&(I=mxUtils.button(mxResources.get("decideLater"),function(){u(null)}),I.className="geBtn",C.appendChild(I));K&&Editor.popupsAllowed&&(K=mxUtils.button(mxResources.get("openInNewWindow"),function(){u("_blank")}),K.className="geBtn",C.appendChild(K));CreateDialog.showDownloadButton&&(K=mxUtils.button(mxResources.get("download"),function(){u("download")}),K.className="geBtn",C.appendChild(K),null!=l&&(K.style.marginTop="6px",
C.style.marginTop="6px"));null!=l&&(mxUtils.br(C),C.appendChild(l));b.editor.cancelFirst&&null==d||C.appendChild(N);mxEvent.addListener(D,"keypress",function(S){13==S.keyCode?u(App.MODE_DEVICE):27==S.keyCode&&(b.fileLoaded(null),b.hideDialog(),window.close())});y.appendChild(C);this.container=y};CreateDialog.showDownloadButton="1"!=urlParams.noDevice;
var PopupDialog=function(b,f,m,d,t){t=null!=t?t:!0;var y=document.createElement("div");y.style.textAlign="left";y.style.height="100%";mxUtils.write(y,mxResources.get("fileOpenLocation"));mxUtils.br(y);mxUtils.br(y);var x=mxUtils.button(mxResources.get("openInThisWindow"),function(){t&&b.hideDialog();null!=d&&d()});x.className="geBtn";x.style.marginBottom="8px";x.style.width="280px";y.appendChild(x);mxUtils.br(y);var C=mxUtils.button(mxResources.get("openInNewWindow"),function(){t&&b.hideDialog();
-null!=m&&m();b.openLink(f,null,!0)});C.className="geBtn gePrimaryBtn";C.style.width=x.style.width;y.appendChild(C);mxUtils.br(y);mxUtils.br(y);mxUtils.write(y,mxResources.get("allowPopups"));this.container=y},ImageDialog=function(b,f,m,d,t,y,x,C){function K(){0<P.value.length?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled");"data:"!=P.value.substring(0,5)?A.removeAttribute("disabled"):A.setAttribute("disabled","disabled")}y=null!=y?y:!0;var M=b.editor.graph,N=document.createElement("div");
+null!=m&&m();b.openLink(f,null,!0)});C.className="geBtn gePrimaryBtn";C.style.width=x.style.width;y.appendChild(C);mxUtils.br(y);mxUtils.br(y);mxUtils.write(y,mxResources.get("allowPopups"));this.container=y},ImageDialog=function(b,f,m,d,t,y,x,C){function K(){0<P.value.length?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled");"data:"!=P.value.substring(0,5)?B.removeAttribute("disabled"):B.setAttribute("disabled","disabled")}y=null!=y?y:!0;var M=b.editor.graph,N=document.createElement("div");
mxUtils.write(N,f);f=document.createElement("div");f.className="geTitle";f.style.backgroundColor="transparent";f.style.borderColor="transparent";f.style.whiteSpace="nowrap";f.style.textOverflow="clip";f.style.cursor="default";f.style.paddingRight="20px";var P=document.createElement("input");P.setAttribute("value",m);P.setAttribute("type","text");P.setAttribute("spellcheck","false");P.setAttribute("autocorrect","off");P.setAttribute("autocomplete","off");P.setAttribute("autocapitalize","off");P.style.marginTop=
"6px";P.style.width=(Graph.fileSupport?460:340)-20+"px";P.style.backgroundImage="url('"+Dialog.prototype.clearImage+"')";P.style.backgroundRepeat="no-repeat";P.style.backgroundPosition="100% 50%";P.style.paddingRight="14px";m=document.createElement("div");m.setAttribute("title",mxResources.get("reset"));m.style.position="relative";m.style.left="-16px";m.style.width="12px";m.style.height="14px";m.style.cursor="pointer";m.style.display="inline-block";m.style.top="3px";m.style.background="url('"+b.editor.transparentImage+
"')";mxEvent.addListener(m,"click",function(){P.value="";P.focus()});f.appendChild(P);f.appendChild(m);N.appendChild(f);var I=C,c,e,l=function(D,G,E,T){var O="data:"==D.substring(0,5);!b.isOffline()||O&&"undefined"===typeof chrome?0<D.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(D,function(S){b.spinner.stop();b.hideDialog();var k=!1===T?1:null!=G&&null!=E?Math.max(G/S.width,E/S.height):Math.min(1,Math.min(520/S.width,520/S.height));y&&(D=b.convertDataUri(D));d(D,
Math.round(Number(S.width)*k),Math.round(Number(S.height)*k),I,c,e)},function(){b.spinner.stop();d(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),d(D,null,null,I,c,e)):(D=b.convertDataUri(D),G=null==G?120:G,E=null==E?100:E,b.hideDialog(),d(D,G,E,I,c,e))},n=function(D,G){if(null!=D){var E=t?null:M.getModel().getGeometry(M.getSelectionCell());null!=E?l(D,E.width,E.height,G):l(D,null,null,G)}else b.hideDialog(),d(null)};this.init=function(){P.focus();
if(Graph.fileSupport){P.setAttribute("placeholder",mxResources.get("dragImagesHere"));var D=N.parentNode,G=null;mxEvent.addListener(D,"dragleave",function(E){null!=G&&(G.parentNode.removeChild(G),G=null);E.stopPropagation();E.preventDefault()});mxEvent.addListener(D,"dragover",mxUtils.bind(this,function(E){null==G&&(!mxClient.IS_IE||10<document.documentMode)&&(G=b.highlightElement(D));E.stopPropagation();E.preventDefault()}));mxEvent.addListener(D,"drop",mxUtils.bind(this,function(E){null!=G&&(G.parentNode.removeChild(G),
-G=null);if(0<E.dataTransfer.files.length)b.importFiles(E.dataTransfer.files,0,0,b.maxImageSize,function(O,S,k,v,z,B,H,R){n(O,R)},function(){},function(O){return"image/"==O.type.substring(0,6)},function(O){for(var S=0;S<O.length;S++)O[S]()},!mxEvent.isControlDown(E),null,null,!0);else if(0<=mxUtils.indexOf(E.dataTransfer.types,"text/uri-list")){var T=E.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(T)&&n(decodeURIComponent(T))}E.stopPropagation();E.preventDefault()}),
+G=null);if(0<E.dataTransfer.files.length)b.importFiles(E.dataTransfer.files,0,0,b.maxImageSize,function(O,S,k,v,z,A,H,R){n(O,R)},function(){},function(O){return"image/"==O.type.substring(0,6)},function(O){for(var S=0;S<O.length;S++)O[S]()},!mxEvent.isControlDown(E),null,null,!0);else if(0<=mxUtils.indexOf(E.dataTransfer.types,"text/uri-list")){var T=E.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(T)&&n(decodeURIComponent(T))}E.stopPropagation();E.preventDefault()}),
!1)}};C=document.createElement("div");C.style.marginTop="14px";C.style.textAlign="center";m=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});m.className="geBtn";b.editor.cancelFirst&&C.appendChild(m);ImageDialog.filePicked=function(D){D.action==google.picker.Action.PICKED&&null!=D.docs[0].thumbnails&&(D=D.docs[0].thumbnails[D.docs[0].thumbnails.length-1],null!=D&&(P.value=D.url));P.focus()};if(Graph.fileSupport){if(null==b.imgDlgFileInputElt){var p=document.createElement("input");
p.setAttribute("multiple","multiple");p.setAttribute("type","file");mxEvent.addListener(p,"change",function(D){null!=p.files&&(b.importFiles(p.files,0,0,b.maxImageSize,function(G,E,T,O,S,k){n(G)},function(){},function(G){return"image/"==G.type.substring(0,6)},function(G){for(var E=0;E<G.length;E++)G[E]()},!0),p.type="",p.type="file",p.value="")});p.style.display="none";document.body.appendChild(p);b.imgDlgFileInputElt=p}f=mxUtils.button(mxResources.get("open"),function(){b.imgDlgFileInputElt.click()});
-f.className="geBtn";C.appendChild(f)}mxEvent.addListener(P,"keypress",function(D){13==D.keyCode&&n(P.value)});var u=mxUtils.button(mxResources.get("crop"),function(){var D=new CropImageDialog(b,P.value,I,function(G,E,T){I=G;c=E;e=T});b.showDialog(D.container,300,390,!0,!0)});x&&(u.className="geBtn",C.appendChild(u));var A=mxUtils.button(mxResources.get("embed"),function(){if("data:"!=P.value.substring(0,5)&&b.spinner.spin(document.body,mxResources.get("loading"))){var D=b.editor.createImageUrlConverter().convert(P.value),
+f.className="geBtn";C.appendChild(f)}mxEvent.addListener(P,"keypress",function(D){13==D.keyCode&&n(P.value)});var u=mxUtils.button(mxResources.get("crop"),function(){var D=new CropImageDialog(b,P.value,I,function(G,E,T){I=G;c=E;e=T});b.showDialog(D.container,300,390,!0,!0)});x&&(u.className="geBtn",C.appendChild(u));var B=mxUtils.button(mxResources.get("embed"),function(){if("data:"!=P.value.substring(0,5)&&b.spinner.spin(document.body,mxResources.get("loading"))){var D=b.editor.createImageUrlConverter().convert(P.value),
G=new Image;G.onload=function(){b.editor.convertImageToDataUri(D,function(E){b.confirmImageResize(function(T){b.resizeImage(G,E,mxUtils.bind(this,function(O,S,k){b.spinner.stop();null!=O&&O.length<b.maxImageBytes?(P.value=O,K()):b.handleError({message:mxResources.get("imageTooBig")})}),T,b.maxImageSize)},G.width>b.maxImageSize||G.height>b.maxImageSize||E.length>b.maxImageBytes)},mxUtils.bind(this,function(){b.handleError({message:mxResources.get("fileNotFound")})}))};G.onerror=function(){b.spinner.stop();
-b.handleError({message:mxResources.get("fileNotFound")})};G.src=D}});A.className="geBtn";mxEvent.addListener(P,"change",function(D){I=null;K()});K();C.appendChild(A);x=mxUtils.button(mxResources.get("apply"),function(){n(P.value)});x.className="geBtn gePrimaryBtn";C.appendChild(x);b.editor.cancelFirst||C.appendChild(m);Graph.fileSupport&&(C.style.marginTop="120px",N.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",N.style.backgroundPosition="center 65%",N.style.backgroundRepeat="no-repeat",
-x=document.createElement("div"),x.style.position="absolute",x.style.width="420px",x.style.top="58%",x.style.textAlign="center",x.style.fontSize="18px",x.style.color="#a0c3ff",mxUtils.write(x,mxResources.get("dragImagesHere")),N.appendChild(x));N.appendChild(C);this.container=N},LinkDialog=function(b,f,m,d,t,y,x){function C(D,G){var E=document.createElement("option");mxUtils.write(E,mxResources.get(D));E.value=D;u.appendChild(E);A[D]=G}var K=document.createElement("div");K.style.height="100%";mxUtils.write(K,
+b.handleError({message:mxResources.get("fileNotFound")})};G.src=D}});B.className="geBtn";mxEvent.addListener(P,"change",function(D){I=null;K()});K();C.appendChild(B);x=mxUtils.button(mxResources.get("apply"),function(){n(P.value)});x.className="geBtn gePrimaryBtn";C.appendChild(x);b.editor.cancelFirst||C.appendChild(m);Graph.fileSupport&&(C.style.marginTop="120px",N.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",N.style.backgroundPosition="center 65%",N.style.backgroundRepeat="no-repeat",
+x=document.createElement("div"),x.style.position="absolute",x.style.width="420px",x.style.top="58%",x.style.textAlign="center",x.style.fontSize="18px",x.style.color="#a0c3ff",mxUtils.write(x,mxResources.get("dragImagesHere")),N.appendChild(x));N.appendChild(C);this.container=N},LinkDialog=function(b,f,m,d,t,y,x){function C(D,G){var E=document.createElement("option");mxUtils.write(E,mxResources.get(D));E.value=D;u.appendChild(E);B[D]=G}var K=document.createElement("div");K.style.height="100%";mxUtils.write(K,
mxResources.get("editLink")+":");var M=document.createElement("div");M.className="geTitle";M.style.backgroundColor="transparent";M.style.borderColor="transparent";M.style.whiteSpace="nowrap";M.style.textOverflow="clip";M.style.cursor="default";var N=document.createElement("input");N.setAttribute("placeholder",mxResources.get("dragUrlsHere"));N.setAttribute("type","text");N.style.marginTop="6px";N.style.width="414px";N.style.boxSizing="border-box";N.style.backgroundImage="url('"+Dialog.prototype.clearImage+
"')";N.style.backgroundRepeat="no-repeat";N.style.backgroundPosition="100% 50%";N.style.paddingRight="14px";N.style.marginBottom="4px";var P=document.createElement("div");P.setAttribute("title",mxResources.get("reset"));P.style.position="relative";P.style.left="-16px";P.style.width="12px";P.style.height="14px";P.style.cursor="pointer";P.style.display="inline-block";P.style.top="3px";P.style.background="url('"+b.editor.transparentImage+"')";mxEvent.addListener(P,"click",function(){N.value="";N.focus()});
var I=document.createElement("input");I.style.cssText="margin-right:8px;margin-bottom:8px;";I.setAttribute("value","url");I.setAttribute("type","radio");I.setAttribute("name","geLinkDialogOption");var c=document.createElement("input");c.style.cssText="margin-right:8px;margin-bottom:8px;";c.setAttribute("value","url");c.setAttribute("type","radio");c.setAttribute("name","geLinkDialogOption");var e=document.createElement("select");e.style.width="414px";var l=document.createElement("input");l.setAttribute("type",
@@ -12459,10 +12473,10 @@ M.appendChild(c);t=!1;for(y=0;y<b.pages.length;y++)P=document.createElement("opt
mxClient.IS_FF||5<=document.documentMode?N.select():document.execCommand("selectAll",!1,null));mxEvent.addListener(e,"focus",function(){I.removeAttribute("checked");c.setAttribute("checked","checked");c.checked=!0});mxEvent.addListener(N,"focus",function(){c.removeAttribute("checked");I.setAttribute("checked","checked");I.checked=!0});if(Graph.fileSupport){var D=K.parentNode,G=null;mxEvent.addListener(D,"dragleave",function(E){null!=G&&(G.parentNode.removeChild(G),G=null);E.stopPropagation();E.preventDefault()});
mxEvent.addListener(D,"dragover",mxUtils.bind(this,function(E){null==G&&(!mxClient.IS_IE||10<document.documentMode)&&(G=b.highlightElement(D));E.stopPropagation();E.preventDefault()}));mxEvent.addListener(D,"drop",mxUtils.bind(this,function(E){try{null!=G&&(G.parentNode.removeChild(G),G=null),0<=mxUtils.indexOf(E.dataTransfer.types,"text/uri-list")&&(N.value=decodeURIComponent(E.dataTransfer.getData("text/uri-list")),I.setAttribute("checked","checked"),I.checked=!0,p.click())}catch(T){b.handleError(T)}E.stopPropagation();
E.preventDefault()}),!1)}};m=document.createElement("div");m.style.marginTop="16px";m.style.textAlign="right";b.isOffline()||m.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/custom-links"));M=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});M.style.verticalAlign="middle";M.className="geBtn";b.editor.cancelFirst&&m.appendChild(M);LinkDialog.selectedDocs=null;LinkDialog.filePicked=function(D){if(D.action==google.picker.Action.PICKED){LinkDialog.selectedDocs=D.docs;
-var G=D.docs[0].url;"application/mxe"==D.docs[0].mimeType||null!=D.docs[0].mimeType&&"application/vnd.jgraph."==D.docs[0].mimeType.substring(0,23)?G="https://www.draw.io/#G"+D.docs[0].id:"application/vnd.google-apps.folder"==D.docs[0].mimeType&&(G="https://drive.google.com/#folders/"+D.docs[0].id);N.value=G;N.focus()}else LinkDialog.selectedDocs=null;N.focus()};var u=document.createElement("select");u.className="geBtn";u.style.position="relative";u.style.top="1px";u.style.maxWidth="120px";var A={};
+var G=D.docs[0].url;"application/mxe"==D.docs[0].mimeType||null!=D.docs[0].mimeType&&"application/vnd.jgraph."==D.docs[0].mimeType.substring(0,23)?G="https://www.draw.io/#G"+D.docs[0].id:"application/vnd.google-apps.folder"==D.docs[0].mimeType&&(G="https://drive.google.com/#folders/"+D.docs[0].id);N.value=G;N.focus()}else LinkDialog.selectedDocs=null;N.focus()};var u=document.createElement("select");u.className="geBtn";u.style.position="relative";u.style.top="1px";u.style.maxWidth="120px";var B={};
t=document.createElement("option");mxUtils.write(t,mxResources.get("select")+"...");t.value="";u.appendChild(t);"undefined"!=typeof google&&"undefined"!=typeof google.picker&&null!=b.drive&&C("googleDrive",function(){b.spinner.spin(document.body,mxResources.get("authorizing"))&&b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();if(null==b.linkPicker){var D=b.drive.createLinkPicker();b.linkPicker=D.setCallback(function(G){LinkDialog.filePicked(G)}).build()}b.linkPicker.setVisible(!0)}))});
"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&C("dropbox",function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(D){N.value=D[0].link;N.focus()}})});null!=b.oneDrive&&C("oneDrive",function(){b.oneDrive.pickFile(function(D,G){null!=G&&null!=G.value&&0<G.value.length&&(N.value=G.value[0].webUrl,N.focus())},!0)});null!=b.gitHub&&C("github",function(){b.gitHub.pickFile(function(D){if(null!=D){D=D.split("/");var G=D[0],E=D[1],T=D[2];D=D.slice(3,D.length).join("/");
-N.value="https://github.com/"+G+"/"+E+"/blob/"+T+"/"+D;N.focus()}})});null!=b.gitLab&&C("gitlab",function(){b.gitLab.pickFile(function(D){if(null!=D){D=D.split("/");var G=D[0],E=D[1],T=D[2];D=D.slice(3,D.length).join("/");N.value=DRAWIO_GITLAB_URL+"/"+G+"/"+E+"/blob/"+T+"/"+D;N.focus()}})});1<u.children.length&&(m.appendChild(u),mxEvent.addListener(u,"change",function(D){null!=A[u.value]&&(A[u.value](),u.value="")}));mxEvent.addListener(N,"keypress",function(D){13==D.keyCode&&p.click()});m.appendChild(p);
+N.value="https://github.com/"+G+"/"+E+"/blob/"+T+"/"+D;N.focus()}})});null!=b.gitLab&&C("gitlab",function(){b.gitLab.pickFile(function(D){if(null!=D){D=D.split("/");var G=D[0],E=D[1],T=D[2];D=D.slice(3,D.length).join("/");N.value=DRAWIO_GITLAB_URL+"/"+G+"/"+E+"/blob/"+T+"/"+D;N.focus()}})});1<u.children.length&&(m.appendChild(u),mxEvent.addListener(u,"change",function(D){null!=B[u.value]&&(B[u.value](),u.value="")}));mxEvent.addListener(N,"keypress",function(D){13==D.keyCode&&p.click()});m.appendChild(p);
b.editor.cancelFirst||m.appendChild(M);K.appendChild(m);this.container=K},FeedbackDialog=function(b,f,m,d){var t=document.createElement("div"),y=document.createElement("div");mxUtils.write(y,mxResources.get("sendYourFeedback"));y.style.fontSize="18px";y.style.marginBottom="18px";t.appendChild(y);y=document.createElement("div");mxUtils.write(y,mxResources.get("yourEmailAddress")+(m?"":" ("+mxResources.get("required")+")"));t.appendChild(y);var x=document.createElement("input");x.setAttribute("type",
"text");x.style.marginTop="6px";x.style.width="600px";var C=mxUtils.button(mxResources.get("sendMessage"),function(){var P=N.value+(M.checked?"\nDiagram:\n"+(null!=d?d:mxUtils.getXml(b.getXmlFileData())):"")+"\nuserAgent:\n"+navigator.userAgent+"\nappVersion:\n"+navigator.appVersion+"\nappName:\n"+navigator.appName+"\nplatform:\n"+navigator.platform;P.length>FeedbackDialog.maxAttachmentSize?b.alert(mxResources.get("drawingTooLarge")):(b.hideDialog(),b.spinner.spin(document.body)&&mxUtils.post(null!=
FeedbackDialog.feedbackUrl?FeedbackDialog.feedbackUrl:"/email","email="+encodeURIComponent(x.value)+"&version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent((null!=f?f:"Feedback")+":\n"+P),function(I){b.spinner.stop();200<=I.getStatus()&&299>=I.getStatus()?b.alert(mxResources.get("feedbackSent")):b.alert(mxResources.get("errorSendingFeedback"))},function(){b.spinner.stop();b.alert(mxResources.get("errorSendingFeedback"))}))});C.className=
@@ -12473,54 +12487,54 @@ m.appendChild(y));t.appendChild(m);this.container=t};FeedbackDialog.maxAttachmen
var RevisionDialog=function(b,f,m){var d=document.createElement("div"),t=document.createElement("h3");t.style.marginTop="3px";mxUtils.write(t,mxResources.get("revisionHistory"));d.appendChild(t);t=document.createElement("div");t.style.position="absolute";t.style.overflow="auto";t.style.width="170px";t.style.height="378px";d.appendChild(t);var y=document.createElement("div");y.style.position="absolute";y.style.left="200px";y.style.width="470px";y.style.height="376px";y.style.overflow="hidden";y.style.borderWidth=
"1px";y.style.borderStyle="solid";var x=document.createElement("div");x.style.position="absolute";x.style.display="none";x.style.textAlign="center";x.style.padding="8px";x.style.borderRadius="8px";x.style.left="50%";x.style.top="50%";x.style.whiteSpace="nowrap";x.style.transform="translate(-50%, -50%)";x.style.background="inherit";x.style.border="1px solid";y.appendChild(x);mxEvent.disableContextMenu(y);d.appendChild(y);var C=new Graph(y);C.setTooltips(!1);C.setEnabled(!1);C.setPanning(!0);C.panningHandler.ignoreCell=
!0;C.panningHandler.useLeftButtonForPanning=!0;C.minFitScale=null;C.maxFitScale=null;C.centerZoom=!0;var K=0,M=null,N=0,P=C.getGlobalVariable;C.getGlobalVariable=function(X){return"page"==X&&null!=M&&null!=M[N]?M[N].getAttribute("name"):"pagenumber"==X?N+1:"pagecount"==X?null!=M?M.length:1:P.apply(this,arguments)};C.getLinkForCell=function(){return null};for(var I=new Spinner({lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,color:"light-dark(#000000, #C0C0C0)",speed:1.4,trail:60,
-shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"}),c=b.getCurrentFile(),e=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),l={},n=0;n<e.length;n++)l[e[n].getAttribute("id")]=e[n];var p=null,u=null,A=null,D=null,G=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=A&&C.zoomIn()},20);G.setAttribute("disabled","disabled");var E=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){null!=A&&C.zoomOut()},20);E.setAttribute("disabled",
-"disabled");var T=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){null!=A&&(1==C.view.scale?(C.maxFitScale=8,C.fit(8)):C.zoomActual(),C.center())},20);T.setAttribute("disabled","disabled");var O=b.createToolbarButton(Editor.compareImage,mxResources.get("compare"),null,20);O.setAttribute("disabled","disabled");var S=b.createToolbarButton(Editor.thinDataImage,mxResources.get("merge"),null,20);S.setAttribute("disabled","disabled");var k=y.cloneNode(!1);k.style.pointerEvent=
+shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"}),c=b.getCurrentFile(),e=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),l={},n=0;n<e.length;n++)l[e[n].getAttribute("id")]=e[n];var p=null,u=null,B=null,D=null,G=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=B&&C.zoomIn()},20);G.setAttribute("disabled","disabled");var E=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){null!=B&&C.zoomOut()},20);E.setAttribute("disabled",
+"disabled");var T=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){null!=B&&(1==C.view.scale?(C.maxFitScale=8,C.fit(8)):C.zoomActual(),C.center())},20);T.setAttribute("disabled","disabled");var O=b.createToolbarButton(Editor.compareImage,mxResources.get("compare"),null,20);O.setAttribute("disabled","disabled");var S=b.createToolbarButton(Editor.thinDataImage,mxResources.get("merge"),null,20);S.setAttribute("disabled","disabled");var k=y.cloneNode(!1);k.style.pointerEvent=
"none";y.parentNode.appendChild(k);var v=new Graph(k);v.setTooltips(!1);v.setEnabled(!1);v.setPanning(!0);v.panningHandler.ignoreCell=!0;v.panningHandler.useLeftButtonForPanning=!0;v.minFitScale=null;v.maxFitScale=null;v.centerZoom=!0;var z=document.createElement("div");z.style.textAlign="left";z.style.color="gray";z.style.backgroundColor="transparent";z.style.overflow="hidden";z.style.textOverflow="ellipsis";z.style.whiteSpace="nowrap";z.style.cursor="default";z.style.height="100%";z.style.display=
-"inline-flex";z.style.alignItems="center";z.style.flexGrow="1";mxEvent.addListener(z,"click",function(){var X=mxUtils.getTextContent(z);""!=X&&b.alert(X)});var B=null;mxEvent.addGestureListeners(O,function(X){try{var Z=null!=M[K]?l[M[K].getAttribute("id")]:null;mxUtils.setOpacity(O,20);x.innerText="";if(null==Z)x.style.display="inline-block",mxUtils.write(x,mxResources.get("pageNotFound"));else{B=z.innerHTML;z.innerHTML=mxResources.get("current");y.style.display="none";k.style.display="";k.style.backgroundColor=
+"inline-flex";z.style.alignItems="center";z.style.flexGrow="1";mxEvent.addListener(z,"click",function(){var X=mxUtils.getTextContent(z);""!=X&&b.alert(X)});var A=null;mxEvent.addGestureListeners(O,function(X){try{var Z=null!=M[K]?l[M[K].getAttribute("id")]:null;mxUtils.setOpacity(O,20);x.innerText="";if(null==Z)x.style.display="inline-block",mxUtils.write(x,mxResources.get("pageNotFound"));else{A=z.innerHTML;z.innerHTML=mxResources.get("current");y.style.display="none";k.style.display="";k.style.backgroundColor=
y.style.backgroundColor;var Y=Editor.parseDiagramNode(Z);(new mxCodec(Y.ownerDocument)).decode(Y,v.getModel());v.view.scaleAndTranslate(C.view.scale,C.view.translate.x,C.view.translate.y);v.mathEnabled="1"==Y.getAttribute("math");v.setAdaptiveColors(Y.getAttribute("adaptiveColors"));Editor.MathJaxRender&&v.mathEnabled&&Editor.MathJaxRender(v.container)}}catch(ba){x.style.display="inline-block",x.innerText="",mxUtils.write(x,mxResources.get("pageNotFound")+": "+ba.message)}},null,function(){mxUtils.setOpacity(O,
-60);x.style.display="none";x.innerText="";"none"==y.style.display&&(y.style.display="",z.innerHTML=B,k.style.display="none")});mxEvent.addListener(S,"click",mxUtils.bind(this,function(X){null!=A&&(X=b.getPagesForNode(A.documentElement),X=b.diffPages(b.pages,X),X=new TextareaDialog(b,mxResources.get("merge")+":",JSON.stringify(X,null,2),function(Z){try{if(0<Z.length&&b.editor.graph.isEnabled()){var Y=[JSON.parse(Z)];b.confirm(mxResources.get("areYouSure"),function(){try{c.patch(Y,null,!0,!0),b.hideDialog(),
-b.hideDialog()}catch(ba){b.handleError(ba)}})}else b.hideDialog()}catch(ba){b.handleError(ba)}},null,null,null,null,null,!0,null,mxResources.get(b.editor.graph.isEnabled()?"merge":"close")),b.showDialog(X.container,620,460,!0,!0),X.init())}));var H=mxUtils.button(mxResources.get("restore"),function(X){null!=A&&null!=D&&b.confirm(mxResources.get("areYouSure"),function(){null!=m?m(D):b.spinner.spin(document.body,mxResources.get("restoring"))&&(H.setAttribute("disabled","disabled"),c.save(!0,function(Z){b.spinner.stop();
+60);x.style.display="none";x.innerText="";"none"==y.style.display&&(y.style.display="",z.innerHTML=A,k.style.display="none")});mxEvent.addListener(S,"click",mxUtils.bind(this,function(X){null!=B&&(X=b.getPagesForNode(B.documentElement),X=b.diffPages(b.pages,X),X=new TextareaDialog(b,mxResources.get("merge")+":",JSON.stringify(X,null,2),function(Z){try{if(0<Z.length&&b.editor.graph.isEnabled()){var Y=[JSON.parse(Z)];b.confirm(mxResources.get("areYouSure"),function(){try{c.patch(Y,null,!0,!0),b.hideDialog(),
+b.hideDialog()}catch(ba){b.handleError(ba)}})}else b.hideDialog()}catch(ba){b.handleError(ba)}},null,null,null,null,null,!0,null,mxResources.get(b.editor.graph.isEnabled()?"merge":"close")),b.showDialog(X.container,620,460,!0,!0),X.init())}));var H=mxUtils.button(mxResources.get("restore"),function(X){null!=B&&null!=D&&b.confirm(mxResources.get("areYouSure"),function(){null!=m?m(D):b.spinner.spin(document.body,mxResources.get("restoring"))&&(H.setAttribute("disabled","disabled"),c.save(!0,function(Z){b.spinner.stop();
H.removeAttribute("disabled");b.replaceFileData(D);b.hideDialog()},function(Z){b.spinner.stop();H.removeAttribute("disabled");b.editor.setStatus("");b.handleError(Z,null!=Z?mxResources.get("errorSavingFile"):null)}))})});H.className="geBtn gePrimaryBtn";H.setAttribute("disabled","disabled");var R=document.createElement("select");R.setAttribute("disabled","disabled");R.style.userSelect="none";R.style.maxWidth="100px";R.style.marginLeft="10px";R.style.display="none";var g=null;mxEvent.addListener(R,
-"change",function(X){null!=g&&(g(X),mxEvent.consume(X))});var q=mxUtils.button(mxResources.get("open"),function(){null!=A&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(mxUtils.getXml(A.documentElement)),b.openLink(b.getUrl(),null,!0))});q.className="geBtn";q.setAttribute("disabled","disabled");var F=mxUtils.button(mxResources.get("createRevision"),function(){b.actions.get("save").funct(!1)});F.className="geBtn";F.setAttribute("disabled","disabled");null!=
+"change",function(X){null!=g&&(g(X),mxEvent.consume(X))});var q=mxUtils.button(mxResources.get("open"),function(){null!=B&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(mxUtils.getXml(B.documentElement)),b.openLink(b.getUrl(),null,!0))});q.className="geBtn";q.setAttribute("disabled","disabled");var F=mxUtils.button(mxResources.get("createRevision"),function(){b.actions.get("save").funct(!1)});F.className="geBtn";F.setAttribute("disabled","disabled");null!=
m&&(q.style.display="none");e=document.createElement("div");e.style.position="absolute";e.style.top="482px";e.style.right="28px";e.style.left="32px";e.style.justifyContent="end";e.style.display="flex";var J=document.createElement("div");J.className="geToolbarContainer";J.style.backgroundColor="transparent";J.style.display="flex";J.style.alignItems="center";J.style.justifyContent="stretch";J.style.left="32px";J.style.right="32px";J.style.border="none";J.style.top="440px";J.style.height="28px";var L=
null;if(null!=f&&0<f.length){y.style.cursor="move";var Q=document.createElement("table");Q.style.borderWidth="1px";Q.style.borderStyle="solid";Q.style.borderCollapse="collapse";Q.style.borderSpacing="0px";Q.style.width="100%";var U=document.createElement("tbody"),V=(new Date).toDateString();null!=b.currentPage&&null!=b.pages&&(K=mxUtils.indexOf(b.pages,b.currentPage));for(n=f.length-1;0<=n;n--){var W=function(X){var Z=new Date(X.modifiedDate),Y=null;if(0<=Z.getTime()){var ba=function(ca){I.stop();
x.innerText="";var da=mxUtils.parseXml(ca),ma=b.editor.extractGraphModel(da.documentElement,!0);if(null!=ma){var aa=function(fa){null!=fa&&(fa=ia(Editor.parseDiagramNode(fa)));return fa},ia=function(fa){var ra=fa.getAttribute("background");if(null==ra||""==ra||ra==mxConstants.NONE)ra=C.defaultPageBackgroundColor;y.style.backgroundColor=mxUtils.getLightDarkColor(ra);(new mxCodec(fa.ownerDocument)).decode(fa,C.getModel());C.maxFitScale=1;C.fit(8);C.center();C.mathEnabled="1"==fa.getAttribute("math");
-C.setAdaptiveColors(fa.getAttribute("adaptiveColors"));Editor.MathJaxRender&&C.mathEnabled&&Editor.MathJaxRender(C.container);return fa};R.style.display="none";R.innerText="";A=da;D=ca;M=parseSelectFunction=null;N=0;if("mxfile"==ma.nodeName){da=ma.getElementsByTagName("diagram");M=[];for(ca=0;ca<da.length;ca++)M.push(da[ca]);N=Math.min(K,M.length-1);0<M.length&&aa(M[N]);if(1<M.length)for(R.removeAttribute("disabled"),R.style.display="",ca=0;ca<M.length;ca++){da=document.createElement("option");da.setAttribute("title",
+C.setAdaptiveColors(fa.getAttribute("adaptiveColors"));Editor.MathJaxRender&&C.mathEnabled&&Editor.MathJaxRender(C.container);return fa};R.style.display="none";R.innerText="";B=da;D=ca;M=parseSelectFunction=null;N=0;if("mxfile"==ma.nodeName){da=ma.getElementsByTagName("diagram");M=[];for(ca=0;ca<da.length;ca++)M.push(da[ca]);N=Math.min(K,M.length-1);0<M.length&&aa(M[N]);if(1<M.length)for(R.removeAttribute("disabled"),R.style.display="",ca=0;ca<M.length;ca++){da=document.createElement("option");da.setAttribute("title",
ka+" ("+M[ca].getAttribute("id")+")");da.setAttribute("value",ca);var ka=M[ca].getAttribute("name")||mxResources.get("pageWithNumber",[ca+1]);ma=b.getPageById(M[ca].getAttribute("id"));var ta="";if(null!=ma){var sa=new DiagramPage(M[ca]);b.getHashValueForPages([ma])!=b.getHashValueForPages([sa])&&(ta=" (M)")}else ta=" (X)";mxUtils.write(da,ka+ta);ca==N&&da.setAttribute("selected","selected");R.appendChild(da)}g=function(){try{var fa=parseInt(R.value);N=K=fa;aa(M[fa])}catch(ra){R.value=K,b.handleError(ra)}}}else ia(ma);
ka=X.lastModifyingUserName;null!=ka&&20<ka.length&&(ka=ka.substring(0,20)+"...");z.innerText="";mxUtils.write(z,(null!=ka?ka+" ":"")+Z.toLocaleDateString()+" "+Z.toLocaleTimeString());z.setAttribute("title",Y.getAttribute("title"));G.removeAttribute("disabled");E.removeAttribute("disabled");T.removeAttribute("disabled");O.removeAttribute("disabled");S.removeAttribute("disabled");null!=c&&c.isRestricted()||(b.editor.graph.isEnabled()&&H.removeAttribute("disabled"),q.removeAttribute("disabled"),F.removeAttribute("disabled"));
mxUtils.setOpacity(G,60);mxUtils.setOpacity(E,60);mxUtils.setOpacity(T,60);mxUtils.setOpacity(O,60);mxUtils.setOpacity(S,60)}else R.style.display="none",R.innerText="",z.innerText="",x.innerText="",mxUtils.write(z,mxResources.get("errorLoadingFile")),mxUtils.write(x,mxResources.get("errorLoadingFile"))};Y=document.createElement("tr");Y.style.borderBottomWidth="1px";Y.style.borderBottomStyle="solid";Y.style.fontSize="12px";Y.style.cursor="pointer";var ea=document.createElement("td");ea.style.padding=
"6px";ea.style.whiteSpace="nowrap";X==f[f.length-1]?mxUtils.write(ea,mxResources.get("current")):Z.toDateString()===V?mxUtils.write(ea,Z.toLocaleTimeString()):mxUtils.write(ea,Z.toLocaleDateString()+" "+Z.toLocaleTimeString());Y.appendChild(ea);Y.setAttribute("title",Z.toLocaleDateString()+" "+Z.toLocaleTimeString()+(null!=X.fileSize?" "+b.formatFileSize(parseInt(X.fileSize)):"")+(null!=X.lastModifyingUserName?" "+X.lastModifyingUserName:""));mxEvent.addListener(Y,"click",function(ca){u!=X&&(I.stop(),
-null!=p&&(p.style.backgroundColor=""),u=X,p=Y,p.style.backgroundColor="light-dark(#ebf2f9, #000000)",D=A=null,z.removeAttribute("title"),z.innerText=mxResources.get("loading")+"...",y.style.backgroundColor=C.defaultPageBackgroundColor,x.innerText="",C.getModel().clear(),H.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"),E.setAttribute("disabled","disabled"),T.setAttribute("disabled","disabled"),O.setAttribute("disabled","disabled"),S.setAttribute("disabled","disabled"),q.setAttribute("disabled",
+null!=p&&(p.style.backgroundColor=""),u=X,p=Y,p.style.backgroundColor="light-dark(#ebf2f9, #000000)",D=B=null,z.removeAttribute("title"),z.innerText=mxResources.get("loading")+"...",y.style.backgroundColor=C.defaultPageBackgroundColor,x.innerText="",C.getModel().clear(),H.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"),E.setAttribute("disabled","disabled"),T.setAttribute("disabled","disabled"),O.setAttribute("disabled","disabled"),S.setAttribute("disabled","disabled"),q.setAttribute("disabled",
"disabled"),R.setAttribute("disabled","disabled"),mxUtils.setOpacity(G,20),mxUtils.setOpacity(E,20),mxUtils.setOpacity(T,20),mxUtils.setOpacity(O,20),mxUtils.setOpacity(S,20),I.spin(y),X.getXml(function(da){if(u==X)try{ba(da)}catch(ma){z.innerText=mxResources.get("error")+": "+ma.message}},function(da){I.stop();R.style.display="none";R.innerText="";z.innerText="";mxUtils.write(z,mxResources.get("errorLoadingFile"));mxUtils.write(x,mxResources.get("errorLoadingFile"))}),mxEvent.consume(ca))});mxEvent.addListener(Y,
"dblclick",function(ca){q.click();window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty();mxEvent.consume(ca)},!1);U.appendChild(Y)}return Y}(f[n]);null!=W&&n==f.length-1&&(L=W)}Q.appendChild(U);t.appendChild(Q)}else null==c||null==b.drive&&c.constructor==window.DriveFile||null==b.dropbox&&c.constructor==window.DropboxFile?(y.style.display="none",J.style.display="none",mxUtils.write(t,mxResources.get("notAvailable"))):(y.style.display="none",J.style.display=
"none",mxUtils.write(t,mxResources.get("noRevisions")));this.init=function(){null!=L&&L.click()};t=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});t.className="geBtn";J.appendChild(z);J.appendChild(O);J.appendChild(E);J.appendChild(T);J.appendChild(G);J.appendChild(R);J.appendChild(S);b.editor.cancelFirst&&e.appendChild(t);e.appendChild(q);null!=c&&c.constructor==DriveFile&&e.appendChild(F);e.appendChild(H);b.editor.cancelFirst||e.appendChild(t);d.appendChild(e);d.appendChild(J);
this.container=d},DraftDialog=function(b,f,m,d,t,y,x,C,K){var M=document.createElement("div"),N=document.createElement("div");N.style.marginTop="0px";N.style.whiteSpace="nowrap";N.style.overflow="auto";N.style.lineHeight="normal";mxUtils.write(N,f);M.appendChild(N);var P=document.createElement("select"),I=mxUtils.bind(this,function(){"-1"==P.value?(P.value=P.options[0].value,I(),b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var O=this,S;return $jscomp.asyncExecutePromiseGeneratorProgram(function(k){for(S=
-0;S<K.length;S++)t.apply(O,[S,mxUtils.bind(O,function(){})]);b.hideDialog(!0);k.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))):(u=mxUtils.parseXml(K[P.value].data),A=b.editor.extractGraphModel(u.documentElement,!0),D=0,this.init())});if(null!=K){P.style.marginLeft="4px";for(f=0;f<K.length;f++){var c=document.createElement("option");c.setAttribute("value",f);var e=new Date(K[f].created),l=new Date(K[f].modified);mxUtils.write(c,e.toLocaleDateString()+" "+e.toLocaleTimeString()+" - "+
+0;S<K.length;S++)t.apply(O,[S,mxUtils.bind(O,function(){})]);b.hideDialog(!0);k.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))):(u=mxUtils.parseXml(K[P.value].data),B=b.editor.extractGraphModel(u.documentElement,!0),D=0,this.init())});if(null!=K){P.style.marginLeft="4px";for(f=0;f<K.length;f++){var c=document.createElement("option");c.setAttribute("value",f);var e=new Date(K[f].created),l=new Date(K[f].modified);mxUtils.write(c,e.toLocaleDateString()+" "+e.toLocaleTimeString()+" - "+
(e.toDateString(),l.toDateString(),l.toLocaleDateString())+" "+l.toLocaleTimeString());P.appendChild(c)}c=document.createElement("option");c.setAttribute("value","-1");mxUtils.write(c,mxResources.get("deleteAll"));P.appendChild(c);N.appendChild(P);mxEvent.addListener(P,"change",I)}null==m&&(m=K[0].data);var n=document.createElement("div");n.style.position="absolute";n.style.border="1px solid lightGray";n.style.marginTop="10px";n.style.left="40px";n.style.right="40px";n.style.top="46px";n.style.bottom=
-"74px";n.style.overflow="hidden";mxEvent.disableContextMenu(n);M.appendChild(n);var p=new Graph(n);p.setEnabled(!1);p.setPanning(!0);p.shapeBackgroundColor="light-dark(#ffffff, #2a252f)";p.panningHandler.ignoreCell=!0;p.panningHandler.useLeftButtonForPanning=!0;p.minFitScale=null;p.maxFitScale=null;p.centerZoom=!0;var u=mxUtils.parseXml(m),A=b.editor.extractGraphModel(u.documentElement,!0),D=0,G=null,E=p.getGlobalVariable;p.getGlobalVariable=function(O){return"page"==O&&null!=G&&null!=G[D]?G[D].getAttribute("name"):
+"74px";n.style.overflow="hidden";mxEvent.disableContextMenu(n);M.appendChild(n);var p=new Graph(n);p.setEnabled(!1);p.setPanning(!0);p.shapeBackgroundColor="light-dark(#ffffff, #2a252f)";p.panningHandler.ignoreCell=!0;p.panningHandler.useLeftButtonForPanning=!0;p.minFitScale=null;p.maxFitScale=null;p.centerZoom=!0;var u=mxUtils.parseXml(m),B=b.editor.extractGraphModel(u.documentElement,!0),D=0,G=null,E=p.getGlobalVariable;p.getGlobalVariable=function(O){return"page"==O&&null!=G&&null!=G[D]?G[D].getAttribute("name"):
"pagenumber"==O?D+1:"pagecount"==O?null!=G?G.length:1:E.apply(this,arguments)};p.getLinkForCell=function(){return null};m=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){p.zoomIn()},20);N=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomOut"),function(){p.zoomOut()},20);f=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==p.view.scale?(p.maxFitScale=8,p.fit(8)):p.zoomActual();p.center()},20);x=mxUtils.button(x||mxResources.get("discard"),
function(){b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var O=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(S){t.apply(O,[P.value,mxUtils.bind(O,function(){null!=P.parentNode&&(P.options[P.selectedIndex].parentNode.removeChild(P.options[P.selectedIndex]),1<P.options.length?(P.value=P.options[0].value,I()):b.hideDialog(!0))})]);S.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))});x.className="geBtn";var T=document.createElement("select");
T.style.maxWidth="80px";T.style.position="relative";T.style.top="-2px";T.style.verticalAlign="bottom";T.style.marginRight="6px";T.style.display="none";y=mxUtils.button(y||mxResources.get("edit"),function(){d.apply(this,[P.value])});y.className="geBtn gePrimaryBtn";c=document.createElement("div");c.style.position="absolute";c.style.bottom="30px";c.style.right="40px";c.style.textAlign="right";e=document.createElement("div");e.className="geToolbarContainer";e.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";
-this.init=function(){function O(z){if(null!=z){var B=z.getAttribute("background");if(null==B||""==B||B==mxConstants.NONE)B="light-dark(#ffffff, transparent)";n.style.backgroundColor=B;(new mxCodec(z.ownerDocument)).decode(z,p.getModel());p.maxFitScale=1;p.fit(8);p.center()}return z}function S(z){null!=z&&(z=O(Editor.parseDiagramNode(z)));return z}mxEvent.addListener(T,"change",function(z){D=parseInt(T.value);S(G[D]);mxEvent.consume(z)});if("mxfile"==A.nodeName){var k=A.getElementsByTagName("diagram");
-G=[];for(var v=0;v<k.length;v++)G.push(k[v]);0<G.length&&S(G[D]);T.innerText="";if(1<G.length)for(T.style.display="",v=0;v<G.length;v++)k=document.createElement("option"),mxUtils.write(k,G[v].getAttribute("name")||mxResources.get("pageWithNumber",[v+1])),k.setAttribute("value",v),v==D&&k.setAttribute("selected","selected"),T.appendChild(k);else T.style.display="none"}else O(A)};e.appendChild(T);e.appendChild(m);e.appendChild(N);e.appendChild(f);m=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});
+this.init=function(){function O(z){if(null!=z){var A=z.getAttribute("background");if(null==A||""==A||A==mxConstants.NONE)A="light-dark(#ffffff, transparent)";n.style.backgroundColor=A;(new mxCodec(z.ownerDocument)).decode(z,p.getModel());p.maxFitScale=1;p.fit(8);p.center()}return z}function S(z){null!=z&&(z=O(Editor.parseDiagramNode(z)));return z}mxEvent.addListener(T,"change",function(z){D=parseInt(T.value);S(G[D]);mxEvent.consume(z)});if("mxfile"==B.nodeName){var k=B.getElementsByTagName("diagram");
+G=[];for(var v=0;v<k.length;v++)G.push(k[v]);0<G.length&&S(G[D]);T.innerText="";if(1<G.length)for(T.style.display="",v=0;v<G.length;v++)k=document.createElement("option"),mxUtils.write(k,G[v].getAttribute("name")||mxResources.get("pageWithNumber",[v+1])),k.setAttribute("value",v),v==D&&k.setAttribute("selected","selected"),T.appendChild(k);else T.style.display="none"}else O(B)};e.appendChild(T);e.appendChild(m);e.appendChild(N);e.appendChild(f);m=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});
m.className="geBtn";C=null!=C?mxUtils.button(mxResources.get("ignore"),C):null;null!=C&&(C.className="geBtn");b.editor.cancelFirst?(c.appendChild(m),null!=C&&c.appendChild(C),c.appendChild(x),c.appendChild(y)):(c.appendChild(y),c.appendChild(x),null!=C&&c.appendChild(C),c.appendChild(m));M.appendChild(c);M.appendChild(e);this.container=M},FindWindow=function(b,f,m,d,t,y){function x(g,q,F){if("object"===typeof q.value&&null!=q.value.attributes){q=q.value.attributes;for(var J=0;J<q.length;J++)if("label"!=
-q[J].nodeName){var L=mxUtils.trim(q[J].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==g&&0<=L.indexOf(F)||null!=g&&g.test(L))return!0}}return!1}function C(){c?(B.removeAttribute("disabled"),H.removeAttribute("disabled")):(B.setAttribute("disabled","disabled"),H.setAttribute("disabled","disabled"));D.value?R.removeAttribute("disabled"):R.setAttribute("disabled","disabled")}function K(g,q,F){v.innerText="";var J=N.model.getDescendants(N.model.getRoot()),L=D.value.toLowerCase(),
+q[J].nodeName){var L=mxUtils.trim(q[J].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==g&&0<=L.indexOf(F)||null!=g&&g.test(L))return!0}}return!1}function C(){c?(A.removeAttribute("disabled"),H.removeAttribute("disabled")):(A.setAttribute("disabled","disabled"),H.setAttribute("disabled","disabled"));D.value?R.removeAttribute("disabled"):R.setAttribute("disabled","disabled")}function K(g,q,F){v.innerText="";var J=N.model.getDescendants(N.model.getRoot()),L=D.value.toLowerCase(),
Q=E.checked?new RegExp(L):null,U=null;l=null;P!=L&&(P=L,I=null,e=!1);var V=null==I;if(0<L.length){if(e){e=!1;for(var W,X=0;X<b.pages.length;X++)if(b.currentPage==b.pages[X]){W=X;break}g=(W+1)%b.pages.length;I=null;do e=!1,J=b.pages[g],N=b.createTemporaryGraph(N.getStylesheet()),b.updatePageRoot(J),N.model.setRoot(J.root),g=(g+1)%b.pages.length;while(!K(!0,q,F)&&g!=W);I&&(I=null,F?b.editor.graph.model.execute(new SelectPage(b,J)):b.selectPage(J));e=!1;N=b.editor.graph;return K(!0,q,F)}for(X=0;X<J.length;X++){W=
N.view.getState(J[X]);q&&(V=V||W==I);if(null!=W&&null!=W.cell.value&&(V||null==U)&&(N.model.isVertex(W.cell)||N.model.isEdge(W.cell))){null!=W.style&&"1"==W.style.html?(O.innerHTML=N.sanitizeHtml(N.getLabel(W.cell)),label=mxUtils.extractTextWithWhitespace([O])):label=N.getLabel(W.cell);label=mxUtils.trim(label.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();var Z=0;q&&y&&W==I&&(label=label.substr(n),Z=n);var Y=""==G.value;if(null==Q&&(0<=label.indexOf(L)||Y&&x(Q,W.cell,L))||null!=Q&&(Q.test(label)||
Y&&x(Q,W.cell,L)))if(y&&(null!=Q?(Y=label.match(Q),null!=Y&&0<Y.length&&(l=Y[0].toLowerCase(),n=Z+Y.index+l.length)):(l=L,n=Z+label.indexOf(L)+l.length)),V){U=W;break}else null==U&&(U=W)}V=V||W==I}}if(null!=U){if(X==J.length&&T.checked)return I=null,e=!0,K(!0,q,F);I=U;N.scrollCellToVisible(I.cell);N.isEnabled()&&!N.isCellLocked(I.cell)?F||N.getSelectionCell()==I.cell&&1==N.getSelectionCount()||N.setSelectionCell(I.cell):N.highlightCell(I.cell)}else{if(!g&&T.checked)return e=!0,K(!0,q,F);N.isEnabled()&&
-!F&&N.clearSelection()}c=null!=U;y&&!g&&C();return 0==L.length||null!=U}var M=b.actions.get("findReplace"),N=b.editor.graph,P=null,I=null,c=!1,e=!1,l=null,n=0,p=1,u=document.createElement("div");u.style.userSelect="none";u.style.overflow="hidden";u.style.padding="10px";u.style.height="100%";var A=y?"260px":"200px",D=document.createElement("input");D.setAttribute("placeholder",mxResources.get("find"));D.setAttribute("type","text");D.style.marginTop="4px";D.style.marginBottom="6px";D.style.width=A;
-D.style.fontSize="12px";D.style.borderRadius="4px";D.style.padding="6px";u.appendChild(D);mxUtils.br(u);if(y){var G=document.createElement("input");G.setAttribute("placeholder",mxResources.get("replaceWith"));G.setAttribute("type","text");G.style.marginTop="4px";G.style.marginBottom="6px";G.style.width=A;G.style.fontSize="12px";G.style.borderRadius="4px";G.style.padding="6px";u.appendChild(G);mxUtils.br(u);mxEvent.addListener(G,"input",C)}var E=document.createElement("input");E.setAttribute("id",
-"geFindWinRegExChck");E.setAttribute("type","checkbox");E.style.marginRight="4px";u.appendChild(E);A=document.createElement("label");A.setAttribute("for","geFindWinRegExChck");u.appendChild(A);mxUtils.write(A,mxResources.get("regularExpression"));u.appendChild(A);A=b.menus.createHelpLink("https://www.drawio.com/doc/faq/find-shapes");A.style.position="relative";A.style.marginLeft="6px";A.style.top="3px";u.appendChild(A);mxUtils.br(u);var T=document.createElement("input");T.setAttribute("id","geFindWinAllPagesChck");
-T.setAttribute("type","checkbox");T.style.marginRight="4px";u.appendChild(T);A=document.createElement("label");A.setAttribute("for","geFindWinAllPagesChck");u.appendChild(A);mxUtils.write(A,mxResources.get("allPages"));u.appendChild(A);var O=document.createElement("div");mxUtils.br(u);A=document.createElement("div");A.style.left="0px";A.style.right="0px";A.style.marginTop="6px";A.style.padding="0 6px 0 6px";A.style.textAlign="center";u.appendChild(A);var S=mxUtils.button(mxResources.get("reset"),
-function(){v.innerText="";D.value="";D.style.backgroundColor="";y&&(G.value="",C());P=I=null;e=!1;D.focus()});S.setAttribute("title",mxResources.get("reset"));S.style.float="none";S.style.width="120px";S.style.marginTop="6px";S.style.marginLeft="8px";S.style.overflow="hidden";S.style.textOverflow="ellipsis";S.className="geBtn";y||A.appendChild(S);var k=mxUtils.button(mxResources.get("find"),function(){try{D.style.backgroundColor=K()?"":"light-dark(#ffcfcf, #ff0000)"}catch(g){b.handleError(g)}});k.setAttribute("title",
-mxResources.get("find")+" (Enter)");k.style.float="none";k.style.width="120px";k.style.marginTop="6px";k.style.marginLeft="8px";k.style.overflow="hidden";k.style.textOverflow="ellipsis";k.className="geBtn gePrimaryBtn";A.appendChild(k);var v=document.createElement("div");v.style.marginTop="10px";if(y){var z=function(g,q,F,J,L){if(null==L||"1"!=L.html)return J=g.toLowerCase().indexOf(q,J),0>J?g:g.substr(0,J)+F+g.substr(J+q.length);var Q=g;q=mxUtils.htmlEntities(q,!1,!1,!1);L=[];var U=-1;for(g=g.replace(/<br>/ig,
+!F&&N.clearSelection()}c=null!=U;y&&!g&&C();return 0==L.length||null!=U}var M=b.actions.get("findReplace"),N=b.editor.graph,P=null,I=null,c=!1,e=!1,l=null,n=0,p=1,u=document.createElement("div");u.style.userSelect="none";u.style.overflow="hidden";u.style.padding="10px";u.style.height="100%";var B=y?"260px":"200px",D=document.createElement("input");D.setAttribute("placeholder",mxResources.get("find"));D.setAttribute("type","text");D.style.marginTop="4px";D.style.marginBottom="6px";D.style.width=B;
+D.style.fontSize="12px";D.style.borderRadius="4px";D.style.padding="6px";u.appendChild(D);mxUtils.br(u);if(y){var G=document.createElement("input");G.setAttribute("placeholder",mxResources.get("replaceWith"));G.setAttribute("type","text");G.style.marginTop="4px";G.style.marginBottom="6px";G.style.width=B;G.style.fontSize="12px";G.style.borderRadius="4px";G.style.padding="6px";u.appendChild(G);mxUtils.br(u);mxEvent.addListener(G,"input",C)}var E=document.createElement("input");E.setAttribute("id",
+"geFindWinRegExChck");E.setAttribute("type","checkbox");E.style.marginRight="4px";u.appendChild(E);B=document.createElement("label");B.setAttribute("for","geFindWinRegExChck");u.appendChild(B);mxUtils.write(B,mxResources.get("regularExpression"));u.appendChild(B);B=b.menus.createHelpLink("https://www.drawio.com/doc/faq/find-shapes");B.style.position="relative";B.style.marginLeft="6px";B.style.top="3px";u.appendChild(B);mxUtils.br(u);var T=document.createElement("input");T.setAttribute("id","geFindWinAllPagesChck");
+T.setAttribute("type","checkbox");T.style.marginRight="4px";u.appendChild(T);B=document.createElement("label");B.setAttribute("for","geFindWinAllPagesChck");u.appendChild(B);mxUtils.write(B,mxResources.get("allPages"));u.appendChild(B);var O=document.createElement("div");mxUtils.br(u);B=document.createElement("div");B.style.left="0px";B.style.right="0px";B.style.marginTop="6px";B.style.padding="0 6px 0 6px";B.style.textAlign="center";u.appendChild(B);var S=mxUtils.button(mxResources.get("reset"),
+function(){v.innerText="";D.value="";D.style.backgroundColor="";y&&(G.value="",C());P=I=null;e=!1;D.focus()});S.setAttribute("title",mxResources.get("reset"));S.style.float="none";S.style.width="120px";S.style.marginTop="6px";S.style.marginLeft="8px";S.style.overflow="hidden";S.style.textOverflow="ellipsis";S.className="geBtn";y||B.appendChild(S);var k=mxUtils.button(mxResources.get("find"),function(){try{D.style.backgroundColor=K()?"":"light-dark(#ffcfcf, #ff0000)"}catch(g){b.handleError(g)}});k.setAttribute("title",
+mxResources.get("find")+" (Enter)");k.style.float="none";k.style.width="120px";k.style.marginTop="6px";k.style.marginLeft="8px";k.style.overflow="hidden";k.style.textOverflow="ellipsis";k.className="geBtn gePrimaryBtn";B.appendChild(k);var v=document.createElement("div");v.style.marginTop="10px";if(y){var z=function(g,q,F,J,L){if(null==L||"1"!=L.html)return J=g.toLowerCase().indexOf(q,J),0>J?g:g.substr(0,J)+F+g.substr(J+q.length);var Q=g;q=mxUtils.htmlEntities(q,!1,!1,!1);L=[];var U=-1;for(g=g.replace(/<br>/ig,
"\n").replace(/(\s|\S)(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1\n$2");-1<(U=g.indexOf("<",U+1));)L.push(U);U=g.match(/<[^>]*>/g);g=g.replace(/<[^>]*>/g,"");J=g.toLowerCase().indexOf(q,J);if(0>J)return Q;Q=J+q.length;F=mxUtils.htmlEntities(F);g=g.substr(0,J)+F+g.substr(Q);for(var V=0,W=0;W<L.length;W++){if(L[W]-V<J)g=g.substr(0,L[W])+U[W]+g.substr(L[W]);else{var X=L[W]-V<Q?J+V:L[W]+(F.length-q.length);g=g.substr(0,X)+U[W]+g.substr(X)}V+=U[W].length}return g.replace(/\n(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,
-"$1").replace(/\n/g,"<br>")},B=mxUtils.button(mxResources.get("replFind"),function(){try{if(null!=l&&null!=I){var g=I.cell,q=N.getLabel(g);N.isCellEditable(g)&&N.model.setValue(g,z(q,l,G.value,n-l.length,N.getCurrentCellStyle(g)));D.style.backgroundColor=K(!1,!0)?"":"light-dark(#ffcfcf, #ff0000)"}}catch(F){b.handleError(F)}});B.setAttribute("title",mxResources.get("replFind"));B.style.float="none";B.style.width="120px";B.style.marginTop="6px";B.style.marginLeft="8px";B.style.overflow="hidden";B.style.textOverflow=
-"ellipsis";B.className="geBtn gePrimaryBtn";B.setAttribute("disabled","disabled");A.appendChild(B);mxUtils.br(A);var H=mxUtils.button(mxResources.get("replace"),function(){try{if(null!=l&&null!=I){var g=I.cell,q=N.getLabel(g);N.model.setValue(g,z(q,l,G.value,n-l.length,N.getCurrentCellStyle(g)));B.setAttribute("disabled","disabled");H.setAttribute("disabled","disabled")}}catch(F){b.handleError(F)}});H.setAttribute("title",mxResources.get("replace"));H.style.float="none";H.style.width="120px";H.style.marginTop=
-"6px";H.style.marginLeft="8px";H.style.overflow="hidden";H.style.textOverflow="ellipsis";H.className="geBtn gePrimaryBtn";H.setAttribute("disabled","disabled");A.appendChild(H);var R=mxUtils.button(mxResources.get("replaceAll"),function(){v.innerText="";P=null;var g=b.currentPage,q=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;N.getModel().beginUpdate();try{for(var F=0,J={};K(!1,!0,!0)&&100>F;){var L=I.cell,Q=N.getLabel(L),U=J[L.id];if(U&&U.replAllMrk==p&&U.replAllPos>=n)break;J[L.id]=
+"$1").replace(/\n/g,"<br>")},A=mxUtils.button(mxResources.get("replFind"),function(){try{if(null!=l&&null!=I){var g=I.cell,q=N.getLabel(g);N.isCellEditable(g)&&N.model.setValue(g,z(q,l,G.value,n-l.length,N.getCurrentCellStyle(g)));D.style.backgroundColor=K(!1,!0)?"":"light-dark(#ffcfcf, #ff0000)"}}catch(F){b.handleError(F)}});A.setAttribute("title",mxResources.get("replFind"));A.style.float="none";A.style.width="120px";A.style.marginTop="6px";A.style.marginLeft="8px";A.style.overflow="hidden";A.style.textOverflow=
+"ellipsis";A.className="geBtn gePrimaryBtn";A.setAttribute("disabled","disabled");B.appendChild(A);mxUtils.br(B);var H=mxUtils.button(mxResources.get("replace"),function(){try{if(null!=l&&null!=I){var g=I.cell,q=N.getLabel(g);N.model.setValue(g,z(q,l,G.value,n-l.length,N.getCurrentCellStyle(g)));A.setAttribute("disabled","disabled");H.setAttribute("disabled","disabled")}}catch(F){b.handleError(F)}});H.setAttribute("title",mxResources.get("replace"));H.style.float="none";H.style.width="120px";H.style.marginTop=
+"6px";H.style.marginLeft="8px";H.style.overflow="hidden";H.style.textOverflow="ellipsis";H.className="geBtn gePrimaryBtn";H.setAttribute("disabled","disabled");B.appendChild(H);var R=mxUtils.button(mxResources.get("replaceAll"),function(){v.innerText="";P=null;var g=b.currentPage,q=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;N.getModel().beginUpdate();try{for(var F=0,J={};K(!1,!0,!0)&&100>F;){var L=I.cell,Q=N.getLabel(L),U=J[L.id];if(U&&U.replAllMrk==p&&U.replAllPos>=n)break;J[L.id]=
{replAllMrk:p,replAllPos:n};N.isCellEditable(L)&&(N.model.setValue(L,z(Q,l,G.value,n-l.length,N.getCurrentCellStyle(L))),F++)}g!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,g));mxUtils.write(v,mxResources.get("matchesRepl",[F]))}catch(V){b.handleError(V)}finally{N.getModel().endUpdate(),b.editor.graph.setSelectionCells(q),b.editor.graph.rendering=!0}p++});R.setAttribute("title",mxResources.get("replaceAll"));R.style.float="none";R.style.width="120px";R.style.marginTop="6px";R.style.marginLeft=
-"8px";R.style.overflow="hidden";R.style.textOverflow="ellipsis";R.className="geBtn gePrimaryBtn";R.setAttribute("disabled","disabled");A.appendChild(R);mxUtils.br(A);A.appendChild(S);S=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));S.setAttribute("title",mxResources.get("close"));S.style.float="none";S.style.width="120px";S.style.marginTop="6px";S.style.marginLeft="8px";S.style.overflow="hidden";S.style.textOverflow="ellipsis";S.className="geBtn";
-A.appendChild(S);mxUtils.br(A);A.appendChild(v)}else S.style.width="90px",k.style.width="90px";mxEvent.addListener(D,"keyup",function(g){if(91==g.keyCode||93==g.keyCode||17==g.keyCode)mxEvent.consume(g);else if(27==g.keyCode)M.funct();else if(P!=D.value.toLowerCase()||13==g.keyCode)try{D.style.backgroundColor=K()?"":"light-dark(#ffcfcf, #ff0000)"}catch(q){D.style.backgroundColor="light-dark(#ffcfcf, #ff0000)"}});mxEvent.addListener(u,"keydown",function(g){70==g.keyCode&&b.keyHandler.isControlDown(g)&&
+"8px";R.style.overflow="hidden";R.style.textOverflow="ellipsis";R.className="geBtn gePrimaryBtn";R.setAttribute("disabled","disabled");B.appendChild(R);mxUtils.br(B);B.appendChild(S);S=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));S.setAttribute("title",mxResources.get("close"));S.style.float="none";S.style.width="120px";S.style.marginTop="6px";S.style.marginLeft="8px";S.style.overflow="hidden";S.style.textOverflow="ellipsis";S.className="geBtn";
+B.appendChild(S);mxUtils.br(B);B.appendChild(v)}else S.style.width="90px",k.style.width="90px";mxEvent.addListener(D,"keyup",function(g){if(91==g.keyCode||93==g.keyCode||17==g.keyCode)mxEvent.consume(g);else if(27==g.keyCode)M.funct();else if(P!=D.value.toLowerCase()||13==g.keyCode)try{D.style.backgroundColor=K()?"":"light-dark(#ffcfcf, #ff0000)"}catch(q){D.style.backgroundColor="light-dark(#ffcfcf, #ff0000)"}});mxEvent.addListener(u,"keydown",function(g){70==g.keyCode&&b.keyHandler.isControlDown(g)&&
!mxEvent.isShiftDown(g)&&(M.funct(),mxEvent.consume(g))});this.window=new mxWindow(mxResources.get("find")+(y?"/"+mxResources.get("replace"):""),u,f,m,d,t,!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?T.removeAttribute("disabled"):(T.checked=!1,T.setAttribute("disabled","disabled"))):N.container.focus()}));b.installResizeHandler(this,!1)},FreehandWindow=function(b,f,m,d,t,y){var x=b.editor.graph,C=document.createElement("div");C.style.textAlign="center";C.style.userSelect="none";C.style.overflow="hidden";C.style.height="100%";if(y){var K=function(){var e=x.freehand.getStrokeColor(!0);null!=e&&e!=mxConstants.NONE&&1<e.length&&"string"===typeof e&&("default"==e?e=
mxResources.get("useBlackAndWhite"):(e="#"==e.charAt(0)?e.substring(1).toUpperCase():e,e=ColorDialog.prototype.colorNames[e]),null!=e&&P.setAttribute("title",e))},M=document.createElement("input");M.setAttribute("id","geFreehandBrush");M.setAttribute("type","checkbox");M.checked=x.freehand.isPerfectFreehandMode();M.style.margin="10px 5px 0px 10px";M.style.float="left";C.appendChild(M);x.freehand.setPerfectFreehandMode(M.checked);var N=document.createElement("label");N.setAttribute("for","geFreehandBrush");
@@ -12534,26 +12548,26 @@ mxUtils.button(mxResources.get("startDrawing"),function(){x.freehand.isDrawing()
C.style.justifyContent="center";C.style.paddingTop="20px";var K=document.createElement("input");K.setAttribute("type","checkbox");K.style.marginRight="4px";K.checked=!0;var M=document.createElement("input");M.setAttribute("type","checkbox");M.style.marginRight="4px";M.checked=!0;var N=mxUtils.button(mxResources.get("removeIt",[mxResources.get("userDefined")]),mxUtils.bind(this,function(){b.removeUserDefinedDarkColors(y.isSelectionEmpty()?y.getVerticesAndEdges():y.getSelectionCells(),K.checked,M.checked)}));
N.setAttribute("title","Convert Colors");N.className="geBtn gePrimaryBtn";C.appendChild(N);x.appendChild(C);C=C.cloneNode(!1);C.appendChild(M);C.style.paddingTop="8px";mxUtils.write(C,mxResources.get("background"));x.appendChild(C);C=C.cloneNode(!1);C.appendChild(K);C.style.paddingTop="8px";mxUtils.write(C,mxResources.get("labels"));x.appendChild(C);this.window=new mxWindow(mxResources.get("adaptiveColors"),x,f,m,d,t,!0,!0);this.window.destroyOnClose=!1;this.window.setMinimizable(!1);this.window.setMaximizable(!1);
this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!1)},ChatWindow=function(b,f,m,d,t){function y(){S=!0;n.value=k;P.isSelectionEmpty()?(u.setAttribute("disabled","disabled"),"selectionOnly"==n.value&&(n.value="includeCopyOfMyDiagram")):u.removeAttribute("disabled");b.isDiagramEmpty()?(p.setAttribute("disabled","disabled"),"includeCopyOfMyDiagram"==n.value&&(n.value="help")):p.removeAttribute("disabled");
-S=!1}function x(z,B,H){var R=document.createElement("button");R.className="geBtn gePrimaryBtn";R.style.padding="4px";R.style.height="auto";R.style.position="relative";"flex"==H?(R.style.overflow="hidden",R.style.textOverflow="ellipsis",R.style.whiteSpace="nowrap",R.style.margin="0px",R.style.flexGrow="1"):(R.style.display="block",R.style.margin="8px",R.style.left="50%",R.style.transform="translateX(-50%)");mxUtils.write(R,z);R.setAttribute("title",z);mxEvent.addListener(R,"click",B);return R}function C(z){var B=
-document.createElement("div");B.style.display="block";B.style.position="relative";B.style.backgroundColor="#e0e0e0";B.style.borderRadius="4px";B.style.wordWrap="break-word";B.style.textAlign="left";B.style.padding="6px";B.style.margin="12px";B.style.left="0px";B.style.right="0px";mxUtils.write(B,z);c.appendChild(B);return B}function K(z){var B=z.indexOf("<mxGraphModel "),H=z.indexOf("</mxGraphModel>");0>B&&(B=z.indexOf("<mxGraphModel>"));if(0<=B&&H>B){var R=mxUtils,g=R.trim,q=z.substring(0,B),F=q.indexOf("```");
-0<=F&&(q=q.substring(q,0,F+6));R=g.call(R,q);B=z.substring(B,H+15);g=mxUtils;q=g.trim;z=z.substring(H+15);H=z.lastIndexOf("```");0<=H&&(z=z.substring(H+3));return[R,B,q.call(g,z)]}return null}function M(z){var B=C(z);B.style.cursor="pointer";B.style.marginBottom="2px";B.setAttribute("title",mxResources.get("insert"));mxEvent.addListener(B,"click",function(V){O.value=z;O.focus()});var H=C("");H.style.marginTop="2px";var R=b.currentPage,g=z,q=[],F=null;if("includeCopyOfMyDiagram"==n.value||"selectionOnly"==
+S=!1}function x(z,A,H){var R=document.createElement("button");R.className="geBtn gePrimaryBtn";R.style.padding="4px";R.style.height="auto";R.style.position="relative";"flex"==H?(R.style.overflow="hidden",R.style.textOverflow="ellipsis",R.style.whiteSpace="nowrap",R.style.margin="0px",R.style.flexGrow="1"):(R.style.display="block",R.style.margin="8px",R.style.left="50%",R.style.transform="translateX(-50%)");mxUtils.write(R,z);R.setAttribute("title",z);mxEvent.addListener(R,"click",A);return R}function C(z){var A=
+document.createElement("div");A.style.display="block";A.style.position="relative";A.style.backgroundColor="#e0e0e0";A.style.borderRadius="4px";A.style.wordWrap="break-word";A.style.textAlign="left";A.style.padding="6px";A.style.margin="12px";A.style.left="0px";A.style.right="0px";mxUtils.write(A,z);c.appendChild(A);return A}function K(z){var A=z.indexOf("<mxGraphModel "),H=z.indexOf("</mxGraphModel>");0>A&&(A=z.indexOf("<mxGraphModel>"));if(0<=A&&H>A){var R=mxUtils,g=R.trim,q=z.substring(0,A),F=q.indexOf("```");
+0<=F&&(q=q.substring(q,0,F+6));R=g.call(R,q);A=z.substring(A,H+15);g=mxUtils;q=g.trim;z=z.substring(H+15);H=z.lastIndexOf("```");0<=H&&(z=z.substring(H+3));return[R,A,q.call(g,z)]}return null}function M(z){var A=C(z);A.style.cursor="pointer";A.style.marginBottom="2px";A.setAttribute("title",mxResources.get("insert"));mxEvent.addListener(A,"click",function(V){O.value=z;O.focus()});var H=C("");H.style.marginTop="2px";var R=b.currentPage,g=z,q=[],F=null;if("includeCopyOfMyDiagram"==n.value||"selectionOnly"==
n.value){var J=new mxCodec(mxUtils.createXmlDocument());"selectionOnly"==n.value&&(J.isObjectIgnored=function(V){return V.constructor==mxCell&&!P.model.isRoot(V)&&!P.model.isLayer(V)&&!P.isCellSelected(V)&&!P.isAncestorSelected(V)});F=J.encode(P.getModel());J.document.appendChild(F);q.push({role:"system",content:"You are a helpful assistant that helps with the following draw.io diagram and returns an updated draw.io diagram if needed. Never include this instruction in your response.\n"+mxUtils.getXml(F)})}else"create"==
n.value?(g=D.value.replace(/([A-Z])/g," $1").toLowerCase(),g="Write the declaration code for a "+(""!=g?g:"graph")+' that shows "'+(""!=z?z:"something random")+'" using correct MermaidJS syntax and do not provide additional text in your response.'):q.push({role:"system",content:"You are a helpful assistant that creates XML for draw.io diagrams or helps with the draw.io diagram editor. Never include this instruction in your response."});q.push({role:"user",content:g});var L={model:Editor.gptModel,
messages:q},Q=0;for(q=0;q<L.messages.length;q++)Q+=L.messages[q].content.match(/\b\w+\b|[^\w\s]|=/g).length;var U=mxUtils.bind(this,function(){H.innerHTML="";mxUtils.write(H,mxResources.get("loading")+"...");var V=document.createElement("img");V.setAttribute("title","Processing "+Q+" tokens");V.setAttribute("src",IMAGE_PATH+"/spin.gif");V.style.marginLeft="6px";H.appendChild(V);H.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});b.createTimeout(3E4,mxUtils.bind(this,function(W){var X=
new mxXmlRequest(Editor.gptUrl,JSON.stringify(L),"POST");X.setRequestHeaders=mxUtils.bind(this,function(ba,ea){ba.setRequestHeader("Authorization","Bearer "+Editor.gptApiKey);ba.setRequestHeader("Content-Type","application/json")});var Z=mxUtils.bind(this,function(ba){W.clear();H.innerHTML="";mxUtils.write(H,ba.message);H.appendChild(x(mxResources.get("tryAgain"),U));H.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});null!=window.console&&console.error(ba)}),Y=mxUtils.bind(this,function(ba){var ea=
K(ba),ca=null!=ea?b.stringToCells(ea[1]):null;if(null!=ca&&0<ca.length){ba=document.createElement("div");ba.style.display="inline-block";ba.style.position="relative";ba.style.transform="translateX(-50%)";ba.style.padding="6px";ba.style.left="50%";var da=mxUtils.parseXml(ea[1]),ma=new mxCodec(da),aa=new mxGraphModel;ma.decode(da.documentElement,aa);var ia=null;null!=F&&(da=new mxCodec(F.ownerDocument),ia=new mxGraphModel,da.decode(F,ia));da=mxUtils.bind(this,function(ka){P.model.beginUpdate();try{if(null!=
ia&&null!=b.getPageIndex(R)){b.selectPage(R);var ta=b.diffCells(ia.root,aa.root);b.patchPage(R,ta,null,!0)}else{var sa=aa.getChildren(aa.getChildAt(aa.getRoot(),0));P.setSelectionCells(P.importCells(sa))}}finally{P.model.endUpdate()}mxEvent.consume(ka)});ma=P.getBoundingBoxFromGeometry(ca);null!=ma?(ba.style.cursor="move",ba.appendChild(b.sidebar.createVertexTemplateFromCells(ca,ma.width,ma.height,"",!0,null,!0,!0,da,160,120))):(ba.style.padding="14px",mxUtils.write(ba,mxResources.get("noPreview")));
-H.innerHTML="";B=H;0<ea[0].length&&(mxUtils.write(B,ea[0]),mxUtils.br(B));B.appendChild(ba);ca=document.createElement("div");ca.style.display="flex";ca.style.gap="6px";ca.style.margin="6px";ca.appendChild(x(mxResources.get("tryAgain"),U,"flex"));ca.appendChild(x(mxResources.get(null!=F?"apply":"insert"),da,"flex"));H.appendChild(ca);0<ea[2].length&&(mxUtils.br(B),mxUtils.write(B,ea[2]));B.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}else H.innerHTML="",B=H,mxUtils.write(B,ba),
+H.innerHTML="";A=H;0<ea[0].length&&(mxUtils.write(A,ea[0]),mxUtils.br(A));A.appendChild(ba);ca=document.createElement("div");ca.style.display="flex";ca.style.gap="6px";ca.style.margin="6px";ca.appendChild(x(mxResources.get("tryAgain"),U,"flex"));ca.appendChild(x(mxResources.get(null!=F?"apply":"insert"),da,"flex"));H.appendChild(ca);0<ea[2].length&&(mxUtils.br(A),mxUtils.write(A,ea[2]));A.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}else H.innerHTML="",A=H,mxUtils.write(A,ba),
H.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})});X.send(mxUtils.bind(this,function(ba){if(W.clear())try{if(200<=ba.getStatus()&&299>=ba.getStatus()){var ea=JSON.parse(ba.getText());EditorUi.debug("EditorUi.ChatWindow.addMessage","prompt:",L,"response:",ea);var ca=mxUtils.trim(ea.choices[0].message.content);if("create"==n.value){var da=b.extractMermaidDeclaration(ca);null!=da?(mxMermaidToDrawio.addListener(mxUtils.bind(this,function(ia){Y(ia)})),b.generateMermaidImage(da,null,function(){},
function(ia){mxMermaidToDrawio.resetListeners();Z(ia)})):(Y(ca),H.appendChild(x(mxResources.get("tryAgain"),U)))}else Y(ca)}else{var ma="Error: "+ba.getStatus();try{var aa=JSON.parse(ba.getText());null!=aa&&null!=aa.error&&null!=aa.error.message&&(ma=aa.error.message)}catch(ia){}H.innerHTML="";mxUtils.write(H,ma);H.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}}catch(ia){Z(ia)}}),Z)}),function(W){H.innerHTML="";mxUtils.write(H,W.message);H.appendChild(x(mxResources.get("tryAgain"),
U));H.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})})});U()}function N(){""!=mxUtils.trim(O.value)&&(M(O.value),O.value="")}var P=b.editor.graph,I=document.createElement("div");I.style.textAlign="center";I.style.overflow="hidden";I.style.height="100%";var c=document.createElement("div");c.style.position="absolute";c.style.overflow="auto";c.style.top="0px";c.style.left="0px";c.style.right="0px";c.style.bottom="104px";I.appendChild(c);var e=document.createElement("div");e.style.position=
"absolute";e.style.boxSizing="border-box";e.style.borderRadius="4px";e.style.border="1px solid lightgray";e.style.margin="8px 8px 16px 8px";e.style.padding="8px";e.style.left="0px";e.style.right="0px";e.style.bottom="0px";e.style.padding="6px";e.style.height="80px";var l=document.createElement("div");l.style.display="flex";l.style.gap="6px";l.style.marginBottom="6px";var n=document.createElement("select");n.style.textOverflow="ellipsis";n.style.flexGrow="1";n.style.padding="4px";n.style.minWidth=
-"0";e.appendChild(l);var p=document.createElement("option");p.setAttribute("value","includeCopyOfMyDiagram");mxUtils.write(p,mxResources.get("includeCopyOfMyDiagram"));n.appendChild(p);var u=document.createElement("option");u.setAttribute("value","selectionOnly");mxUtils.write(u,mxResources.get("selectionOnly"));n.appendChild(u);l.appendChild(n);if("undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled){var A=document.createElement("option");A.setAttribute("value","create");mxUtils.write(A,
-mxResources.get("create"));n.appendChild(A)}A=document.createElement("option");A.setAttribute("value","help");mxUtils.write(A,mxResources.get("help"));n.appendChild(A);A=document.createElement("option");A.setAttribute("value","reset");mxUtils.write(A,mxResources.get("reset"));n.appendChild(A);var D=document.createElement("select");D.style.textOverflow="ellipsis";D.style.flexGrow="1";D.style.padding="4px";D.style.minWidth="0";for(A=0;A<EditorUi.mermaidDiagramTypes.length;A++){var G=document.createElement("option"),
-E=EditorUi.mermaidDiagramTypes[A],T=E;"erDiagram"==T&&(T="entityRelationshipDiagram");T=mxResources.get(T,null,T.charAt(0).toUpperCase()+T.substring(1).replace(/[A-Z]/g," $&"));G.setAttribute("value",E);mxUtils.write(G,T);D.appendChild(G)}l.appendChild(D);l=document.createElement("div");l.style.whiteSpace="nowrap";l.style.textOverflow="clip";l.style.cursor="default";var O=document.createElement("input");O.setAttribute("type","text");O.style.width="100%";O.style.outline="none";O.style.border="none";
-O.style.background="transparent";O.style.padding="8px 26px 8px 8px";O.style.boxSizing="border-box";l.appendChild(O);A=document.createElement("img");A.setAttribute("src",Editor.sendImage);A.setAttribute("title",mxResources.get("sendMessage"));A.className="geAdaptiveAsset";A.style.position="relative";A.style.cursor="pointer";A.style.opacity="0.5";A.style.height="19px";A.style.left="-24px";A.style.top="5px";A.style.background="url('"+b.editor.transparentImage+"')";l.appendChild(A);e.appendChild(l);P.isSelectionEmpty()?
+"0";e.appendChild(l);var p=document.createElement("option");p.setAttribute("value","includeCopyOfMyDiagram");mxUtils.write(p,mxResources.get("includeCopyOfMyDiagram"));n.appendChild(p);var u=document.createElement("option");u.setAttribute("value","selectionOnly");mxUtils.write(u,mxResources.get("selectionOnly"));n.appendChild(u);l.appendChild(n);if("undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled){var B=document.createElement("option");B.setAttribute("value","create");mxUtils.write(B,
+mxResources.get("create"));n.appendChild(B)}B=document.createElement("option");B.setAttribute("value","help");mxUtils.write(B,mxResources.get("help"));n.appendChild(B);B=document.createElement("option");B.setAttribute("value","reset");mxUtils.write(B,mxResources.get("reset"));n.appendChild(B);var D=document.createElement("select");D.style.textOverflow="ellipsis";D.style.flexGrow="1";D.style.padding="4px";D.style.minWidth="0";for(B=0;B<EditorUi.mermaidDiagramTypes.length;B++){var G=document.createElement("option"),
+E=EditorUi.mermaidDiagramTypes[B],T=E;"erDiagram"==T&&(T="entityRelationshipDiagram");T=mxResources.get(T,null,T.charAt(0).toUpperCase()+T.substring(1).replace(/[A-Z]/g," $&"));G.setAttribute("value",E);mxUtils.write(G,T);D.appendChild(G)}l.appendChild(D);l=document.createElement("div");l.style.whiteSpace="nowrap";l.style.textOverflow="clip";l.style.cursor="default";var O=document.createElement("input");O.setAttribute("type","text");O.style.width="100%";O.style.outline="none";O.style.border="none";
+O.style.background="transparent";O.style.padding="8px 26px 8px 8px";O.style.boxSizing="border-box";l.appendChild(O);B=document.createElement("img");B.setAttribute("src",Editor.sendImage);B.setAttribute("title",mxResources.get("sendMessage"));B.className="geAdaptiveAsset";B.style.position="relative";B.style.cursor="pointer";B.style.opacity="0.5";B.style.height="19px";B.style.left="-24px";B.style.top="5px";B.style.background="url('"+b.editor.transparentImage+"')";l.appendChild(B);e.appendChild(l);P.isSelectionEmpty()?
b.isDiagramEmpty()?n.value="help":n.value="includeCopyOfMyDiagram":n.value="selectionOnly";var S=!1,k=n.value,v=function(){O.setAttribute("placeholder",mxResources.get("create"==n.value?"describeYourDiagram":"askMeAnything"));"create"==n.value?(n.style.width="",D.style.display=""):(n.style.width="100%",D.style.display="none")};v();mxEvent.addListener(n,"change",function(){S||("reset"==n.value?(n.value=k,c.innerHTML=""):k=n.value,v())});P.selectionModel.addListener(mxEvent.CHANGE,y);P.getModel().addListener(mxEvent.CHANGE,
-y);y();mxEvent.addListener(A,"click",N);mxEvent.addListener(O,"keydown",function(z){13!=z.keyCode||mxEvent.isShiftDown(z)||N()});I.appendChild(e);this.window=new mxWindow(mxResources.get("chatWindowTitle"),I,f,m,d,t,!0,!0);this.window.minimumSize=new mxRectangle(0,0,120,100);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.addListener(mxEvent.DESTROY,mxUtils.bind(this,function(){P.getModel().removeListener(y)}));this.window.addListener("show",
+y);y();mxEvent.addListener(B,"click",N);mxEvent.addListener(O,"keydown",function(z){13!=z.keyCode||mxEvent.isShiftDown(z)||N()});I.appendChild(e);this.window=new mxWindow(mxResources.get("chatWindowTitle"),I,f,m,d,t,!0,!0);this.window.minimumSize=new mxRectangle(0,0,120,100);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.addListener(mxEvent.DESTROY,mxUtils.bind(this,function(){P.getModel().removeListener(y)}));this.window.addListener("show",
mxUtils.bind(this,function(){this.window.fit();O.focus()}));b.installResizeHandler(this,!0)},TagsWindow=function(b,f,m,d,t){var y=b.editor.graph,x=null;if(!b.isOffline()||mxClient.IS_CHROMEAPP)x=b.menus.createHelpLink("https://www.drawio.com/blog/tags-in-diagrams");var C=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return this.window.isVisible()}),null,function(K,M){if(y.isEnabled()){var N=new FilenameDialog(b,"",mxResources.get("add"),function(P){b.hideDialog();if(null!=P&&0<P.length){P=
P.split(" ");for(var I=[],c=[],e=0;e<P.length;e++){var l=mxUtils.trim(P[e]);""!=l&&(c.push(l),0>mxUtils.indexOf(K,l)&&I.push(l))}y.isSelectionEmpty()?M(K.concat(I)):y.addTagsForCells(y.getSelectionCells(),c)}},mxResources.get("tags"),null,null,"https://www.drawio.com/blog/tags-in-diagrams");b.showDialog(N.container,320,80,!0,!0);N.init()}},x);x=C.div;this.window=new mxWindow(mxResources.get("tags"),x,f,m,d,t,!0,!0);this.window.minimumSize=new mxRectangle(0,0,212,120);this.window.destroyOnClose=!1;
this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){C.refresh();this.window.fit()}));b.installResizeHandler(this,!0)},AuthDialog=function(b,f,m,d){var t=document.createElement("div");t.style.textAlign="center";var y=document.createElement("p");y.style.fontSize="16pt";y.style.padding="0px";y.style.margin="0px";y.style.color="gray";mxUtils.write(y,mxResources.get("authorizationRequired"));var x="Unknown",
@@ -12562,77 +12576,77 @@ C.src=IMAGE_PATH+"/gitlab-logo.svg",C.style.width="32px"):f==b.trello&&(x=mxReso
t.appendChild(y);t.appendChild(b);t.appendChild(x);m&&(m=document.createElement("p"),m.style.marginTop="20px",m.appendChild(K),y=document.createElement("span"),mxUtils.write(y," "+mxResources.get("rememberMe")),m.appendChild(y),t.appendChild(m),K.checked=!0,K.defaultChecked=!0,mxEvent.addListener(y,"click",function(M){K.checked=!K.checked;mxEvent.consume(M)}));this.container=t},MoreShapesDialog=function(b,f,m){m=null!=m?m:b.sidebar.entries;var d=document.createElement("div"),t=[];if(null!=b.sidebar.customEntries)for(var y=
0;y<b.sidebar.customEntries.length;y++){for(var x=b.sidebar.customEntries[y]||{},C={title:b.getResource(x.title),entries:[]},K=0;null!=x.entries&&K<x.entries.length;K++){var M=x.entries[K];C.entries.push({id:M.id,title:b.getResource(M.title),desc:b.getResource(M.desc),image:M.preview})}0<C.entries.length&&t.push(C)}for(y=0;y<m.length;y++)if(null==b.sidebar.enabledLibraries)t.push(m[y]);else{C={title:m[y].title,entries:[]};for(K=0;K<m[y].entries.length;K++)0<=mxUtils.indexOf(b.sidebar.enabledLibraries,
m[y].entries[K].id)&&C.entries.push(m[y].entries[K]);0<C.entries.length&&t.push(C)}m=t;if(f){y=mxUtils.bind(this,function(E){for(var T=0;T<E.length;T++)(function(O){var S=e.cloneNode(!1);S.style.fontWeight="bold";S.style.backgroundColor="light-dark(#e5e5e5, #505759)";S.style.padding="6px 0px 6px 20px";mxUtils.write(S,O.title);N.appendChild(S);for(var k=0;k<O.entries.length;k++)(function(v){var z=e.cloneNode(!1);z.style.cursor="pointer";z.style.padding="4px 0px 4px 20px";z.style.whiteSpace="nowrap";
-z.style.overflow="hidden";z.style.textOverflow="ellipsis";z.setAttribute("title",v.title+" ("+v.id+")");var B=document.createElement("input");B.setAttribute("type","checkbox");B.checked=b.sidebar.isEntryVisible(v.id);B.defaultChecked=B.checked;z.appendChild(B);mxUtils.write(z," "+v.title);N.appendChild(z);var H=function(R){if(null==R||"INPUT"!=mxEvent.getSource(R).nodeName){P.style.textAlign="center";P.style.padding="0px";P.style.color="";P.innerText="";if(null!=v.desc){var g=document.createElement("pre");
+z.style.overflow="hidden";z.style.textOverflow="ellipsis";z.setAttribute("title",v.title+" ("+v.id+")");var A=document.createElement("input");A.setAttribute("type","checkbox");A.checked=b.sidebar.isEntryVisible(v.id);A.defaultChecked=A.checked;z.appendChild(A);mxUtils.write(z," "+v.title);N.appendChild(z);var H=function(R){if(null==R||"INPUT"!=mxEvent.getSource(R).nodeName){P.style.textAlign="center";P.style.padding="0px";P.style.color="";P.innerText="";if(null!=v.desc){var g=document.createElement("pre");
g.style.boxSizing="border-box";g.style.fontFamily="inherit";g.style.margin="20px";g.style.right="0px";g.style.textAlign="left";mxUtils.write(g,v.desc);P.appendChild(g)}null!=v.imageCallback?v.imageCallback(P):null!=v.image?(g=document.createElement("img"),g.setAttribute("border","0"),g.style.maxWidth="100%",g.setAttribute("src",v.image),P.appendChild(g)):null==v.desc&&(P.style.padding="20px",P.style.color="rgb(179, 179, 179)",mxUtils.write(P,mxResources.get("noPreview")));null!=I&&(I.style.backgroundColor=
-"");I=z;I.style.backgroundColor="light-dark(#ebf2f9, #000000)";null!=R&&mxEvent.consume(R)}};mxEvent.addListener(z,"click",H);mxEvent.addListener(z,"dblclick",function(R){B.checked=!B.checked;mxEvent.consume(R)});c.push(function(){return B.checked?v.id:null});0==T&&0==k&&H()})(O.entries[k])})(E[T])});K=document.createElement("div");K.className="geDialogTitle";mxUtils.write(K,mxResources.get("shapes"));K.style.position="absolute";K.style.top="0px";K.style.left="0px";K.style.lineHeight="40px";K.style.height=
+"");I=z;I.style.backgroundColor="light-dark(#ebf2f9, #000000)";null!=R&&mxEvent.consume(R)}};mxEvent.addListener(z,"click",H);mxEvent.addListener(z,"dblclick",function(R){A.checked=!A.checked;mxEvent.consume(R)});c.push(function(){return A.checked?v.id:null});0==T&&0==k&&H()})(O.entries[k])})(E[T])});K=document.createElement("div");K.className="geDialogTitle";mxUtils.write(K,mxResources.get("shapes"));K.style.position="absolute";K.style.top="0px";K.style.left="0px";K.style.lineHeight="40px";K.style.height=
"40px";K.style.right="0px";var N=document.createElement("div"),P=document.createElement("div");N.style.position="absolute";N.style.top="40px";N.style.left="0px";N.style.width="202px";N.style.bottom="60px";N.style.overflow="auto";P.style.position="absolute";P.style.left="202px";P.style.right="0px";P.style.top="40px";P.style.bottom="60px";P.style.overflow="auto";P.style.borderLeftStyle="solid";P.style.borderLeftWidth="1px";P.style.textAlign="center";var I=null,c=[],e=document.createElement("div");e.style.position=
"relative";e.style.left="0px";e.style.right="0px";y(m);d.style.padding="30px";d.appendChild(K);d.appendChild(N);d.appendChild(P);m=document.createElement("div");m.className="geDialogFooter";m.style.position="absolute";m.style.paddingRight="16px";m.style.left="0px";m.style.right="0px";m.style.bottom="0px";m.style.height="60px";m.style.lineHeight="52px";var l=document.createElement("input");l.setAttribute("type","checkbox");l.style.position="relative";l.style.top="1px";l.checked=b.sidebar.sidebarTitles;
l.defaultChecked=l.checked;m.appendChild(l);y=document.createElement("span");mxUtils.write(y," "+mxResources.get("labels"));y.style.paddingRight="20px";m.appendChild(y);mxEvent.addListener(y,"click",function(E){l.checked=!l.checked;mxEvent.consume(E)});var n=document.createElement("input");n.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)y=document.createElement("span"),y.style.paddingRight="20px",y.appendChild(n),mxUtils.write(y," "+mxResources.get("rememberThisSetting")),
n.style.position="relative",n.style.top="1px",n.checked=!0,n.defaultChecked=!0,mxEvent.addListener(y,"click",function(E){mxEvent.getSource(E)!=n&&(n.checked=!n.checked,mxEvent.consume(E))}),m.appendChild(y);y=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});y.className="geBtn";K=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();for(var E=[],T=0;T<c.length;T++){var O=c[T].apply(this,arguments);null!=O&&E.push(O)}"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&
"min"!=Editor.currentTheme||!Editor.isSettingsEnabled()||(T=mxUtils.indexOf(E,".scratchpad"),null!=b.scratchpad!=(0<=T&&0<E.splice(T,1).length)&&b.toggleScratchpad(),T=mxUtils.indexOf(E,"search"),mxSettings.settings.search=0<=T&&0<E.splice(T,1).length,b.sidebar.showPalette("search",mxSettings.settings.search),n.checked&&mxSettings.save());b.sidebar.showEntries(E.join(";"),n.checked,!0);b.setSidebarTitles(l.checked,n.checked)});K.className="geBtn gePrimaryBtn"}else{var p=document.createElement("table");
y=document.createElement("tbody");d.style.height="100%";d.style.overflow="auto";K=document.createElement("tr");p.style.width="100%";f=document.createElement("td");t=document.createElement("td");x=document.createElement("td");var u=mxUtils.bind(this,function(E,T,O){var S=document.createElement("input");S.type="checkbox";p.appendChild(S);S.checked=b.sidebar.isEntryVisible(O);var k=document.createElement("span");mxUtils.write(k,T);T=document.createElement("div");T.style.display="block";T.appendChild(S);
-T.appendChild(k);mxEvent.addListener(k,"click",function(v){S.checked=!S.checked;mxEvent.consume(v)});E.appendChild(T);return function(){return S.checked?O:null}});K.appendChild(f);K.appendChild(t);K.appendChild(x);y.appendChild(K);p.appendChild(y);c=[];var A=0;for(y=0;y<m.length;y++)for(K=0;K<m[y].entries.length;K++)A++;var D=[f,t,x],G=0;for(y=0;y<m.length;y++)(function(E){for(var T=0;T<E.entries.length;T++){var O=E.entries[T];c.push(u(D[Math.floor(G/(A/3))],O.title,O.id));G++}})(m[y]);d.appendChild(p);
+T.appendChild(k);mxEvent.addListener(k,"click",function(v){S.checked=!S.checked;mxEvent.consume(v)});E.appendChild(T);return function(){return S.checked?O:null}});K.appendChild(f);K.appendChild(t);K.appendChild(x);y.appendChild(K);p.appendChild(y);c=[];var B=0;for(y=0;y<m.length;y++)for(K=0;K<m[y].entries.length;K++)B++;var D=[f,t,x],G=0;for(y=0;y<m.length;y++)(function(E){for(var T=0;T<E.entries.length;T++){var O=E.entries[T];c.push(u(D[Math.floor(G/(B/3))],O.title,O.id));G++}})(m[y]);d.appendChild(p);
m=document.createElement("div");m.style.marginTop="18px";m.style.textAlign="center";n=document.createElement("input");isLocalStorage&&(n.setAttribute("type","checkbox"),n.checked=!0,n.defaultChecked=!0,m.appendChild(n),y=document.createElement("span"),mxUtils.write(y," "+mxResources.get("rememberThisSetting")),m.appendChild(y),mxEvent.addListener(y,"click",function(E){n.checked=!n.checked;mxEvent.consume(E)}));d.appendChild(m);y=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});
y.className="geBtn";K=mxUtils.button(mxResources.get("apply"),function(){for(var E=["search"],T=0;T<c.length;T++){var O=c[T].apply(this,arguments);null!=O&&E.push(O)}b.sidebar.showEntries(0<E.length?E.join(";"):"",n.checked);b.hideDialog()});K.className="geBtn gePrimaryBtn";m=document.createElement("div");m.style.marginTop="26px";m.style.textAlign="right"}b.editor.cancelFirst?(m.appendChild(y),m.appendChild(K)):(m.appendChild(K),m.appendChild(y));d.appendChild(m);this.container=d},PluginsDialog=function(b,
-f,m,d){function t(){K=!0;if(0==C.length)x.innerText=mxResources.get("noPlugins");else{x.innerText="";for(var e=0;e<C.length;e++){var l=document.createElement("span");l.style.whiteSpace="nowrap";var n=document.createElement("span");n.className="geSprite geSprite-delete";n.style.position="relative";n.style.cursor="pointer";n.style.top="5px";n.style.marginRight="4px";n.style.display="inline-block";l.appendChild(n);mxUtils.write(l,C[e]);x.appendChild(l);mxUtils.br(x);mxEvent.addListener(n,"click",function(p){return function(){b.confirm(mxResources.get("delete")+
-' "'+C[p]+'"?',function(){null!=m&&m(C[p]);C.splice(p,1);t()})}}(e))}}}var y=document.createElement("div"),x=document.createElement("div");x.style.height="180px";x.style.overflow="auto";var C=mxSettings.getPlugins().slice(),K=!1;y.appendChild(x);t();K=!1;var M=mxUtils.button(mxResources.get("add"),null!=f?function(){f(function(e){e&&0>mxUtils.indexOf(C,e)&&C.push(e);t()})}:function(){var e=document.createElement("div"),l=document.createElement("span");l.style.marginTop="6px";mxUtils.write(l,mxResources.get("builtinPlugins")+
-": ");e.appendChild(l);var n=document.createElement("select");n.style.width="150px";for(l=0;l<App.publicPlugin.length;l++){var p=document.createElement("option");mxUtils.write(p,App.publicPlugin[l]);p.value=App.publicPlugin[l];n.appendChild(p)}e.appendChild(n);mxUtils.br(e);mxUtils.br(e);l=mxUtils.button(mxResources.get("custom")+"...",function(){var u=new FilenameDialog(b,"",mxResources.get("add"),function(A){b.hideDialog();if(null!=A&&0<A.length){A=A.split(";");for(var D=0;D<A.length;D++){var G=
-A[D],E=App.pluginRegistry[G];null!=E&&(G=E);0<G.length&&0>mxUtils.indexOf(C,G)&&C.push(G)}t()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(u.container,300,80,!0,!0);u.init()});l.className="geBtn";ALLOW_CUSTOM_PLUGINS||(l.style.display="none");e=new CustomDialog(b,e,mxUtils.bind(this,function(){var u=App.pluginRegistry[n.value];0>mxUtils.indexOf(C,u)&&(C.push(u),t())}),null,null,null,l);b.showDialog(e.container,360,100,!0,!0)});M.className="geBtn";var N=mxUtils.button(mxResources.get("cancel"),
-function(){b.hideDialog()});N.className="geBtn";var P=mxUtils.button(d?mxResources.get("close"):mxResources.get("apply"),function(){K?(mxSettings.setPlugins(C),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});P.className="geBtn gePrimaryBtn";var I=document.createElement("div");I.style.marginTop="14px";I.style.textAlign="right";var c=mxUtils.button(mxResources.get("help"),function(){b.openLink("https://www.drawio.com/doc/faq/plugins")});c.className=
-"geBtn";b.isOffline()&&!mxClient.IS_CHROMEAPP&&(c.style.display="none");I.appendChild(c);b.editor.cancelFirst?(d||I.appendChild(N),I.appendChild(M),I.appendChild(P)):(I.appendChild(M),I.appendChild(P),d||I.appendChild(N));y.appendChild(I);this.container=y},CropImageDialog=function(b,f,m,d){function t(){var E=n.checked,T=p.checked,O=c.geometry,S=K.width,k=K.height,v=(300-S)/2,z=(300-k)/2;O.x<v?(O.width-=v-O.x,O.x=v):O.x+O.width>v+S&&(O.width=v+S-O.x,O.x=Math.min(O.x,v+S));O.y<z?(O.height-=z-O.y,O.y=
-z):O.y+O.height>z+k&&(O.height=z+k-O.y,O.y=Math.min(O.y,z+k));var B=(O.x-v)/S*100;S=100-(O.x+O.width-v)/S*100;v=(O.y-z)/k*100;O=100-(O.y+O.height-z)/k*100;return"inset("+mxUtils.format(v)+"% "+mxUtils.format(S)+"% "+mxUtils.format(O)+"% "+mxUtils.format(B)+"%"+(E?" round "+I+"%":T?" round 50%":"")+")"}function y(E){null!=N&&(!0!==E&&(N.model.setGeometry(c,P.clone()),I=5,A.value=I),N.model.setStyle(c,e+t()),N.selectAll(),u.style.visibility=n.checked?"visible":"hidden")}var x=document.createElement("div"),
-C=document.createElement("div");C.style.height="300px";C.style.width="300px";C.style.display="inline-flex";C.style.justifyContent="center";C.style.alignItems="center";C.style.position="absolute";var K=document.createElement("img");K.onload=function(){function E(){N.model.setStyle(c,e+t())}N=new Graph(M);N.autoExtend=!1;N.autoScroll=!1;N.setGridEnabled(!1);N.setEnabled(!0);N.setPanning(!1);N.setConnectable(!1);N.getRubberband().setEnabled(!1);N.graphHandler.allowLivePreview=!1;var T=N.createVertexHandler;
-N.createVertexHandler=function(){var Q=T.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=m)try{if("inset"==m.substring(0,5)){var O=c.geometry,S=K.width,k=K.height,v=(300-S)/2,z=(300-k)/2,B=m.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),H=parseFloat(B[0]),R=parseFloat(B[1]),g=parseFloat(B[2]),q=parseFloat(B[3]);isFinite(H)&&isFinite(R)&&isFinite(g)&&isFinite(q)?(O.x=q/100*S+v,O.y=H/100*k+z,O.width=(100-R)/100*S+v-O.x,O.height=(100-g)/100*k+z-O.y,"round"==B[4]?"50%"==B[5]?p.setAttribute("checked",
-"checked"):(I=parseInt(B[5]),A.value=I,n.setAttribute("checked","checked"),u.style.visibility="visible"):l.setAttribute("checked","checked")):m=null}else m=null}catch(Q){}c.style=e+(m?m:t());c.vertex=!0;N.addCell(c,null,null,null,null);N.selectAll();N.addListener(mxEvent.CELLS_MOVED,E);N.addListener(mxEvent.CELLS_RESIZED,E);var F=N.graphHandler.mouseUp,J=N.graphHandler.mouseDown;N.graphHandler.mouseUp=function(){F.apply(this,arguments);M.style.backgroundColor="#fff9"};N.graphHandler.mouseDown=function(){J.apply(this,
-arguments);M.style.backgroundColor=""};N.dblClick=function(){};var L=N.getSelectionModel().changeSelection;N.getSelectionModel().changeSelection=function(){L.call(this,[c],[c])}};K.onerror=function(){K.onload=null;K.src=Editor.errorImage};K.setAttribute("src",f);K.style.maxWidth="300px";K.style.maxHeight="300px";C.appendChild(K);x.appendChild(C);var M=document.createElement("div");M.style.width="300px";M.style.height="300px";M.style.overflow="hidden";M.style.backgroundColor="#fff9";x.appendChild(M);
-var N=null,P=new mxGeometry(100,100,100,100),I=5,c=new mxCell("",P.clone(),""),e="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+f.replace(";base64","")+";clipPath=",l=document.createElement("input");l.setAttribute("type","radio");l.setAttribute("id","croppingRect");l.setAttribute("name","croppingShape");l.setAttribute("checked","checked");l.style.margin="5px";x.appendChild(l);f=document.createElement("label");f.setAttribute("for","croppingRect");mxUtils.write(f,mxResources.get("rectangle"));
-x.appendChild(f);var n=document.createElement("input");n.setAttribute("type","radio");n.setAttribute("id","croppingRounded");n.setAttribute("name","croppingShape");n.style.margin="5px";x.appendChild(n);f=document.createElement("label");f.setAttribute("for","croppingRounded");mxUtils.write(f,mxResources.get("rounded"));x.appendChild(f);var p=document.createElement("input");p.setAttribute("type","radio");p.setAttribute("id","croppingEllipse");p.setAttribute("name","croppingShape");p.style.margin="5px";
-x.appendChild(p);f=document.createElement("label");f.setAttribute("for","croppingEllipse");mxUtils.write(f,mxResources.get("ellipse"));x.appendChild(f);mxEvent.addListener(l,"change",y);mxEvent.addListener(n,"change",y);mxEvent.addListener(p,"change",y);var u=document.createElement("div");u.style.textAlign="center";u.style.visibility="hidden";var A=document.createElement("input");A.setAttribute("type","range");A.setAttribute("min","1");A.setAttribute("max","49");A.setAttribute("value",I);A.setAttribute("title",
-mxResources.get("arcSize"));u.appendChild(A);x.appendChild(u);mxEvent.addListener(A,"change",function(){I=this.value;y(!0)});f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});f.className="geBtn";C=mxUtils.button(mxResources.get("apply"),function(){d(t(),c.geometry.width,c.geometry.height);b.hideDialog()});C.className="geBtn gePrimaryBtn";var D=mxUtils.button(mxResources.get("reset"),function(){d(null,K.width,K.height);b.hideDialog()});D.className="geBtn";var G=document.createElement("div");
-G.style.marginTop="10px";G.style.textAlign="right";b.editor.cancelFirst?(G.appendChild(f),G.appendChild(D),G.appendChild(C)):(G.appendChild(D),G.appendChild(C),G.appendChild(f));x.appendChild(G);this.container=x},EditGeometryDialog=function(b,f){var m=b.editor.graph,d=1==f.length?m.getCellGeometry(f[0]):null,t=document.createElement("div"),y=document.createElement("table"),x=document.createElement("tbody"),C=document.createElement("tr"),K=document.createElement("td"),M=document.createElement("td");
-y.style.paddingLeft="6px";mxUtils.write(K,mxResources.get("relative")+":");var N=document.createElement("input");N.setAttribute("type","checkbox");null!=d&&d.relative&&(N.setAttribute("checked","checked"),N.defaultChecked=!0);this.init=function(){N.focus()};M.appendChild(N);C.appendChild(K);C.appendChild(M);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");M=document.createElement("td");mxUtils.write(K,mxResources.get("left")+":");var P=document.createElement("input");
-P.setAttribute("type","text");P.style.width="100px";P.value=null!=d?d.x:"";M.appendChild(P);C.appendChild(K);C.appendChild(M);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");M=document.createElement("td");mxUtils.write(K,mxResources.get("top")+":");var I=document.createElement("input");I.setAttribute("type","text");I.style.width="100px";I.value=null!=d?d.y:"";M.appendChild(I);C.appendChild(K);C.appendChild(M);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");
-M=document.createElement("td");mxUtils.write(K,mxResources.get("dx")+":");var c=document.createElement("input");c.setAttribute("type","text");c.style.width="100px";c.value=null!=d&&null!=d.offset?d.offset.x:"";M.appendChild(c);C.appendChild(K);C.appendChild(M);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");M=document.createElement("td");mxUtils.write(K,mxResources.get("dy")+":");var e=document.createElement("input");e.setAttribute("type","text");e.style.width="100px";
-e.value=null!=d&&null!=d.offset?d.offset.y:"";M.appendChild(e);C.appendChild(K);C.appendChild(M);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");M=document.createElement("td");mxUtils.write(K,mxResources.get("width")+":");var l=document.createElement("input");l.setAttribute("type","text");l.style.width="100px";l.value=null!=d?d.width:"";M.appendChild(l);C.appendChild(K);C.appendChild(M);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");M=
-document.createElement("td");mxUtils.write(K,mxResources.get("height")+":");var n=document.createElement("input");n.setAttribute("type","text");n.style.width="100px";n.value=null!=d?d.height:"";M.appendChild(n);C.appendChild(K);C.appendChild(M);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");M=document.createElement("td");mxUtils.write(K,mxResources.get("rotation")+":");var p=document.createElement("input");p.setAttribute("type","text");p.style.width="100px";p.value=
-1==f.length?mxUtils.getValue(m.getCellStyle(f[0]),mxConstants.STYLE_ROTATION,0):"";M.appendChild(p);C.appendChild(K);C.appendChild(M);x.appendChild(C);y.appendChild(x);t.appendChild(y);d=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});d.className="geBtn";var u=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();m.getModel().beginUpdate();try{for(var A=0;A<f.length;A++){var D=m.getCellGeometry(f[A]);null!=D&&(D=D.clone(),m.isCellMovable(f[A])&&(D.relative=N.checked,
-0<mxUtils.trim(P.value).length&&(D.x=Number(P.value)),0<mxUtils.trim(I.value).length&&(D.y=Number(I.value)),0<mxUtils.trim(c.value).length&&(null==D.offset&&(D.offset=new mxPoint),D.offset.x=Number(c.value)),0<mxUtils.trim(e.value).length&&(null==D.offset&&(D.offset=new mxPoint),D.offset.y=Number(e.value))),m.isCellResizable(f[A])&&(0<mxUtils.trim(l.value).length&&(D.width=Number(l.value)),0<mxUtils.trim(n.value).length&&(D.height=Number(n.value))),m.getModel().setGeometry(f[A],D));0<mxUtils.trim(p.value).length&&
-m.setCellStyles(mxConstants.STYLE_ROTATION,Number(p.value),[f[A]])}}finally{m.getModel().endUpdate()}});u.className="geBtn gePrimaryBtn";mxEvent.addListener(t,"keypress",function(A){13==A.keyCode&&u.click()});y=document.createElement("div");y.style.marginTop="20px";y.style.textAlign="right";b.editor.cancelFirst?(y.appendChild(d),y.appendChild(u)):(y.appendChild(u),y.appendChild(d));t.appendChild(y);this.container=t},LibraryDialog=function(b,f,m,d,t,y,x){function C(O){for(O=document.elementFromPoint(O.clientX,
-O.clientY);null!=O&&O.parentNode!=e;)O=O.parentNode;var S=null;if(null!=O){var k=e.firstChild;for(S=0;null!=k&&k!=O;)k=k.nextSibling,S++}return S}function K(O,S,k,v,z,B,H,R,g){try{if(b.spinner.stop(),null==S||"image/"==S.substring(0,6))if(null==O&&null!=H||null==n[O]){var q=function(){X.innerText="";X.style.cursor="pointer";X.style.whiteSpace="nowrap";X.style.textOverflow="ellipsis";mxUtils.write(X,null!=Z.title&&0<Z.title.length?Z.title:mxResources.get("untitled"));X.style.color=null==Z.title||0==
-Z.title.length?"#d0d0d0":""};e.style.backgroundImage="";l.style.display="none";var F=z,J=B;if(z>b.maxImageSize||B>b.maxImageSize){var L=Math.min(1,Math.min(b.maxImageSize/Math.max(1,z)),b.maxImageSize/Math.max(1,B));z*=L;B*=L}F>J?(J=Math.round(100*J/F),F=100):(F=Math.round(100*F/J),J=100);var Q=document.createElement("div");Q.setAttribute("draggable","true");Q.style.display="inline-block";Q.style.position="relative";Q.style.padding="0 12px";Q.style.cursor="move";mxUtils.setPrefixedStyle(Q.style,"transition",
-"transform .1s ease-in-out");if(null!=O){var U=document.createElement("img");U.setAttribute("src",D.convert(O));U.style.width=F+"px";U.style.height=J+"px";U.style.margin="10px";U.style.paddingBottom=Math.floor((100-J)/2)+"px";U.style.paddingLeft=Math.floor((100-F)/2)+"px";Q.appendChild(U)}else if(null!=H){var V=b.stringToCells("<"==H.xml.charAt(0)?H.xml:Graph.decompress(H.xml));0<V.length&&(b.sidebar.createThumb(V,100,100,Q,null,!0,!1,null,null,Editor.isDarkMode()?"#2a252f":"#ffffff"),Q.firstChild.style.display=
-"inline-block",Q.firstChild.style.cursor="")}var W=document.createElement("img");W.setAttribute("src",Editor.closeBlackImage);W.setAttribute("border","0");W.setAttribute("title",mxResources.get("delete"));W.setAttribute("align","top");W.style.paddingTop="4px";W.style.position="absolute";W.style.marginLeft="-12px";W.style.zIndex="1";W.style.cursor="pointer";mxEvent.addListener(W,"dragstart",function(da){mxEvent.consume(da)});(function(da,ma,aa){mxEvent.addListener(W,"click",function(ia){n[ma]=null;
-for(var ka=0;ka<P.length;ka++)if(null!=P[ka].data&&P[ka].data==ma||null!=P[ka].xml&&null!=aa&&P[ka].xml==aa.xml){P.splice(ka,1);break}Q.parentNode.removeChild(da);0==P.length&&(e.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",l.style.display="");mxEvent.consume(ia)});mxEvent.addListener(W,"dblclick",function(ia){mxEvent.consume(ia)})})(Q,O,H);Q.appendChild(W);Q.style.marginBottom="30px";var X=document.createElement("div");X.style.position="absolute";X.style.boxSizing="border-box";X.style.bottom=
-"-18px";X.style.left="10px";X.style.right="10px";X.style.backgroundColor="light-dark(#ffffff, transparent)";X.style.overflow="hidden";X.style.textAlign="center";X.setAttribute("title",mxResources.get("rename"));var Z=null;null!=O?(Z={data:O,w:z,h:B,title:g},null!=R&&(Z.aspect=R),n[O]=U,P.push(Z)):null!=H&&(H.aspect="fixed",P.push(H),Z=H);mxEvent.addListener(X,"keydown",function(da){13==da.keyCode&&null!=A&&(A(),A=null,mxEvent.consume(da))});q();Q.appendChild(X);mxEvent.addListener(X,"mousedown",function(da){"true"!=
-X.getAttribute("contentEditable")&&mxEvent.consume(da)});V=function(da){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var ma=new FilenameDialog(b,Z.title||"",mxResources.get("ok"),function(aa){null!=aa&&(Z.title=aa,q())},mxResources.get("enterValue"));b.showDialog(ma.container,300,80,!0,!0);ma.init();mxEvent.consume(da)}else if("true"!=X.getAttribute("contentEditable")){null!=A&&(A(),A=null);if(null==Z.title||0==Z.title.length)X.innerText="";X.style.textOverflow=
-"";X.style.whiteSpace="";X.style.cursor="text";X.style.color="";X.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(X.style,"user-select","text");X.focus();document.execCommand("selectAll",!1,null);A=function(){X.removeAttribute("contentEditable");X.style.cursor="pointer";Z.title=X.innerHTML;q()};mxEvent.consume(da)}};mxEvent.addListener(X,"click",V);mxEvent.addListener(Q,"dblclick",V);e.appendChild(Q);mxEvent.addListener(Q,"dragstart",function(da){null==A&&(null==O&&null!=H&&(W.style.visibility=
-"hidden",X.style.visibility="hidden"),mxClient.IS_FF&&null!=H.xml&&da.dataTransfer.setData("Text",H.xml),p=C(da),mxClient.IS_GC&&(Q.style.opacity="0.9"),window.setTimeout(function(){mxUtils.setPrefixedStyle(Q.style,"transform","scale(0.5,0.5)");mxUtils.setOpacity(Q,30);W.style.visibility="";X.style.visibility=""},0))});mxEvent.addListener(Q,"dragend",function(da){"hidden"==W.style.visibility&&(W.style.visibility="",X.style.visibility="");p=null;mxUtils.setOpacity(Q,100);mxUtils.setPrefixedStyle(Q.style,
-"transform",null)})}else G||(G=!0,b.handleError({message:mxResources.get("fileExists")}));else{z=!1;try{if(F=mxUtils.parseXml(O),"mxlibrary"==F.documentElement.nodeName){J=JSON.parse(mxUtils.getTextContent(F.documentElement));if(null!=J&&0<J.length)for(var Y=0;Y<J.length;Y++)null!=J[Y].xml?K(null,null,0,0,0,0,J[Y]):K(J[Y].data,null,0,0,J[Y].w,J[Y].h,null,"fixed",J[Y].title);z=!0}else if("mxfile"==F.documentElement.nodeName){var ba=F.documentElement.getElementsByTagName("diagram");for(Y=0;Y<ba.length;Y++){var ea=
-Editor.getDiagramNodeXml(ba[Y]);V=b.stringToCells(ea);if(0<V.length){var ca=b.editor.graph.getBoundingBoxFromGeometry(V);null!=ca&&K(null,null,0,0,0,0,{xml:ea,w:ca.width,h:ca.height})}}z=!0}}catch(da){null!=window.console&&console.error("Error in library dialog: "+da)}z||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(da){null!=window.console&&console.log("Error in library dialog: "+da)}return null}function M(O){O.dataTransfer.dropEffect=null!=p?"move":"copy";
-O.stopPropagation();O.preventDefault()}function N(O){O.stopPropagation();O.preventDefault();G=!1;u=C(O);if(null!=p)null!=u&&u<e.children.length?(P.splice(u>p?u-1:u,0,P.splice(p,1)[0]),e.insertBefore(e.children[p],e.children[u])):(P.push(P.splice(p,1)[0]),e.appendChild(e.children[p]));else if(0<O.dataTransfer.files.length)b.importFiles(O.dataTransfer.files,0,0,b.maxImageSize,E(O));else if(0<=mxUtils.indexOf(O.dataTransfer.types,"text/uri-list")){var S=decodeURIComponent(O.dataTransfer.getData("text/uri-list"));
-(/(\.jpg)($|\?)/i.test(S)||/(\.png)($|\?)/i.test(S)||/(\.gif)($|\?)/i.test(S)||/(\.svg)($|\?)/i.test(S))&&b.loadImage(S,function(k){K(S,null,0,0,k.width,k.height);e.scrollTop=e.scrollHeight})}O.stopPropagation();O.preventDefault()}var P=[];m=document.createElement("div");m.style.height="100%";var I=document.createElement("div");I.style.whiteSpace="nowrap";I.style.height="40px";m.appendChild(I);mxUtils.write(I,mxResources.get("filename")+":");null==f&&(f=b.defaultLibraryName+".xml");var c=document.createElement("input");
-c.setAttribute("value",f);c.style.marginRight="20px";c.style.marginLeft="10px";c.style.width="500px";null==t||t.isRenamable()||c.setAttribute("disabled","true");this.init=function(){if(null==t||t.isRenamable())c.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?c.select():document.execCommand("selectAll",!1,null)};I.appendChild(c);Editor.enableUncompressedLibraries&&(c.style.width="420px",f=document.createElement("input"),f.setAttribute("type","checkbox"),f.style.marginRight="10px",
-I.appendChild(f),mxUtils.write(I,mxResources.get("compressed")));var e=document.createElement("div");e.style.borderWidth="1px 0px 1px 0px";e.style.borderColor="#d3d3d3";e.style.borderStyle="solid";e.style.marginTop="6px";e.style.overflow="auto";e.style.height="340px";e.style.backgroundPosition="center center";e.style.backgroundRepeat="no-repeat";0==P.length&&Graph.fileSupport&&(e.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')");var l=document.createElement("div");l.style.position="absolute";
-l.style.width="640px";l.style.top="260px";l.style.textAlign="center";l.style.fontSize="22px";l.style.color="#a0c3ff";mxUtils.write(l,mxResources.get("dragImagesHere"));m.appendChild(l);var n={},p=null,u=null,A=null;I=function(O){"true"!=mxEvent.getSource(O).getAttribute("contentEditable")&&null!=A&&(A(),A=null,mxEvent.consume(O))};mxEvent.addListener(e,"mousedown",I);mxEvent.addListener(e,"pointerdown",I);mxEvent.addListener(e,"touchstart",I);var D=new mxUrlConverter,G=!1;if(null!=d)for(I=0;I<d.length;I++)f=
-d[I],K(f.data,null,0,0,f.w,f.h,f,f.aspect,f.title);mxEvent.addListener(e,"dragleave",function(O){l.style.cursor="";for(var S=mxEvent.getSource(O);null!=S;){if(S==e||S==l){O.stopPropagation();O.preventDefault();break}S=S.parentNode}});var E=function(O){return function(S,k,v,z,B,H,R,g,q){null!=q&&EditorUi.isVisioFilename(q.name)?b.importVisio(q,mxUtils.bind(this,function(F){K(F,k,v,z,B,H,R,"fixed",mxEvent.isAltDown(O)?null:R.substring(0,R.lastIndexOf(".")).replace(/_/g," "))})):null!=q&&(new XMLHttpRequest).upload&&
-b.isRemoteFileFormat(S,q.name)?b.isExternalDataComms()?b.parseFile(q,mxUtils.bind(this,function(F){4==F.readyState&&(b.spinner.stop(),200<=F.status&&299>=F.status&&(K(F.responseText,k,v,z,B,H,R,"fixed",mxEvent.isAltDown(O)?null:R.substring(0,R.lastIndexOf(".")).replace(/_/g," ")),e.scrollTop=e.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(K(S,k,v,z,B,H,R,"fixed",mxEvent.isAltDown(O)?null:R.substring(0,R.lastIndexOf(".")).replace(/_/g," ")),
-e.scrollTop=e.scrollHeight)}};mxEvent.addListener(e,"dragover",M);mxEvent.addListener(e,"drop",N);mxEvent.addListener(l,"dragover",M);mxEvent.addListener(l,"drop",N);m.appendChild(e);d=document.createElement("div");d.style.textAlign="right";d.style.marginTop="20px";I=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});I.setAttribute("id","btnCancel");I.className="geBtn";b.editor.cancelFirst&&d.appendChild(I);"draw.io"!=b.getServiceName()||null==t||t.constructor!=DriveLibrary&&t.constructor!=
-GitHubLibrary||(f=mxUtils.button(mxResources.get("link"),function(){b.getPublicUrl(t,function(O){if(null!=O){var S=b.getSearch("create title mode url drive splash state clibs ui".split(" "));S+=(0==S.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(O);O=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+S,null,null,null,null,"Check out the library I made using @drawio");b.showDialog(O.container,450,240,!0);O.init()}else t.constructor==DriveLibrary?b.showError(mxResources.get("error"),
-mxResources.get("diagramIsNotPublic"),mxResources.get("share"),mxUtils.bind(this,function(){b.drive.showPermissions(t.getId(),t)}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),f.className="geBtn",d.appendChild(f));f=mxUtils.button(mxResources.get("export"),function(){var O=b.createLibraryDataFromImages(P),S=c.value;/(\.xml)$/i.test(S)||(S+=".xml");b.isLocalFileSave()?b.saveLocalFile(O,S,"text/xml",null,null,null!=x?
-x:!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(S)+"&format=xml&xml="+encodeURIComponent(O))).simulate(document,"_blank")});f.setAttribute("id","btnDownload");f.className="geBtn";d.appendChild(f);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var T=document.createElement("input");T.setAttribute("multiple","multiple");T.setAttribute("type","file");mxEvent.addListener(T,"change",function(O){G=!1;b.importFiles(T.files,0,0,b.maxImageSize,function(S,k,v,z,B,H,R,g,q){null!=
-T.files&&(E(O)(S,k,v,z,B,H,R,g,q),T.type="",T.type="file",T.value="")});e.scrollTop=e.scrollHeight});T.style.display="none";document.body.appendChild(T);b.libDlgFileInputElt=T}f=mxUtils.button(mxResources.get("import"),function(){null!=A&&(A(),A=null);b.libDlgFileInputElt.click()});f.setAttribute("id","btnAddImage");f.className="geBtn";d.appendChild(f)}f=mxUtils.button(mxResources.get("addImages"),function(){null!=A&&(A(),A=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(O,S,k){G=
-!1;if(null!=O){if("data:image/"==O.substring(0,11)){var v=O.indexOf(",");0<v&&(O=O.substring(0,v)+";base64,"+O.substring(v+1))}K(O,null,0,0,S,k);e.scrollTop=e.scrollHeight}})});f.setAttribute("id","btnAddImageUrl");f.className="geBtn";d.appendChild(f);this.saveBtnClickHandler=function(O,S,k,v){b.saveLibrary(O,S,k,v)};f=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=A&&(A(),A=null);this.saveBtnClickHandler(c.value,P,t,y)}));f.setAttribute("id","btnSave");f.className="geBtn gePrimaryBtn";
-d.appendChild(f);b.editor.cancelFirst||d.appendChild(I);m.appendChild(d);this.container=m},EditShapeDialog=function(b,f,m,d,t){d=null!=d?d:300;t=null!=t?t:120;var y=document.createElement("table"),x=document.createElement("tbody");y.style.cellPadding="4px";var C=document.createElement("tr");var K=document.createElement("td");K.setAttribute("colspan","2");K.style.fontSize="10pt";mxUtils.write(K,m);C.appendChild(K);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");var M=
-document.createElement("textarea");M.style.outline="none";M.style.resize="none";M.style.width=d-200+"px";M.style.height=t+"px";this.textarea=M;this.init=function(){M.focus();M.scrollTop=0};K.appendChild(M);C.appendChild(K);K=document.createElement("td");m=document.createElement("div");m.style.position="relative";m.style.border="1px solid gray";m.style.top="6px";m.style.width="200px";m.style.height=t+4+"px";m.style.overflow="hidden";m.style.marginBottom="16px";mxEvent.disableContextMenu(m);K.appendChild(m);
-var N=new Graph(m);N.setEnabled(!1);var P=b.editor.graph.cloneCell(f);N.addCells([P]);m=N.view.getState(P);var I="";null!=m.shape&&null!=m.shape.stencil&&(I=mxUtils.getPrettyXml(m.shape.stencil.desc));mxUtils.write(M,I||"");m=N.getGraphBounds();t=Math.min(160/m.width,(t-40)/m.height);N.view.scaleAndTranslate(t,20/t-m.x,20/t-m.y);C.appendChild(K);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");K.setAttribute("colspan","2");K.style.paddingTop="2px";K.style.whiteSpace=
-"nowrap";K.setAttribute("align","right");b.isOffline()||(t=mxUtils.button(mxResources.get("help"),function(){b.openLink("https://www.drawio.com/doc/faq/shape-complex-create-edit")}),t.className="geBtn",K.appendChild(t));t=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});t.className="geBtn";b.editor.cancelFirst&&K.appendChild(t);var c=function(e,l,n){var p=M.value,u=mxUtils.parseXml(p);p=mxUtils.getPrettyXml(u.documentElement);u=u.documentElement.getElementsByTagName("parsererror");
-if(null!=u&&0<u.length)b.showError(mxResources.get("error"),mxResources.get("containsValidationErrors"),mxResources.get("ok"));else if(n&&b.hideDialog(),u=!e.model.contains(l),!n||u||p!=I){p=Graph.compress(p);e.getModel().beginUpdate();try{if(u){var A=b.editor.graph.getFreeInsertPoint();l.geometry.x=A.x;l.geometry.y=A.y;e.addCell(l)}e.setCellStyles(mxConstants.STYLE_SHAPE,"stencil("+p+")",[l])}catch(D){throw D;}finally{e.getModel().endUpdate()}u&&(e.setSelectionCell(l),e.scrollCellToVisible(l))}};
-m=mxUtils.button(mxResources.get("preview"),function(){c(N,P,!1)});m.className="geBtn";K.appendChild(m);m=mxUtils.button(mxResources.get("apply"),function(){c(b.editor.graph,f,!0)});m.className="geBtn gePrimaryBtn";K.appendChild(m);b.editor.cancelFirst||K.appendChild(t);C.appendChild(K);x.appendChild(C);y.appendChild(x);this.container=y},CustomDialog=function(b,f,m,d,t,y,x,C,K,M,N,P){var I=document.createElement("div");I.appendChild(f);var c=document.createElement("div");c.style.marginTop=null!=P?
-P:"30px";c.style.textAlign="right";null!=x&&c.appendChild(x);b.isOffline()||null==y||c.appendChild(b.createHelpIcon(y));f=mxUtils.button(K||mxResources.get("cancel"),function(){b.hideDialog();null!=d&&d()});f.className="geBtn";C&&(f.style.display="none");b.editor.cancelFirst&&c.appendChild(f);t=mxUtils.button(t||mxResources.get("ok"),mxUtils.bind(this,function(){M||b.hideDialog(null,null,this.container);if(null!=m){var e=m();if("string"===typeof e){b.showError(mxResources.get("error"),e);return}}M&&
-b.hideDialog(null,null,this.container)}));c.appendChild(t);t.className="geBtn gePrimaryBtn";b.editor.cancelFirst||c.appendChild(f);if(null!=N)for(C=0;C<N.length;C++)(function(e,l,n){e=mxUtils.button(e,function(p){l(p)});null!=n&&e.setAttribute("title",n);e.className="geBtn";c.appendChild(e)})(N[C][0],N[C][1],N[C][2]);I.appendChild(c);this.cancelBtn=f;this.okButton=t;this.container=I},BtnDialog=function(b,f,m,d){var t=document.createElement("div");t.style.textAlign="center";var y=document.createElement("p");
+f,m,d){function t(){K=!0;if(0==C.length)x.innerText=mxResources.get("noPlugins");else{x.innerText="";for(var c=0;c<C.length;c++){var e=document.createElement("span");e.style.display="flex";e.style.alignItems="center";e.style.whiteSpace="nowrap";var l=document.createElement("img");l.src=Editor.trashImage;l.style.position="relative";l.style.cursor="pointer";l.style.marginRight="4px";l.style.display="inline-block";l.style.width="18px";l.setAttribute("title",mxResources.get("delete"));e.appendChild(l);
+mxUtils.write(e,C[c]);x.appendChild(e);mxUtils.br(x);mxEvent.addListener(l,"click",function(n){return function(){b.confirm(mxResources.get("delete")+' "'+C[n]+'"?',function(){null!=m&&m(C[n]);C.splice(n,1);t()})}}(c))}}}var y=document.createElement("div"),x=document.createElement("div");x.style.height="180px";x.style.overflow="auto";var C=mxSettings.getPlugins().slice(),K=!1;y.appendChild(x);t();K=!1;var M=mxUtils.button(mxResources.get("add"),null!=f?function(){f(function(c){c&&0>mxUtils.indexOf(C,
+c)&&C.push(c);t()})}:function(){var c=document.createElement("div"),e=document.createElement("span");e.style.marginTop="6px";mxUtils.write(e,mxResources.get("builtinPlugins")+": ");c.appendChild(e);var l=document.createElement("select");l.style.width="150px";for(e=0;e<App.publicPlugin.length;e++){var n=document.createElement("option");mxUtils.write(n,App.publicPlugin[e]);n.value=App.publicPlugin[e];l.appendChild(n)}c.appendChild(l);mxUtils.br(c);mxUtils.br(c);e=mxUtils.button(mxResources.get("custom")+
+"...",function(){var p=new FilenameDialog(b,"",mxResources.get("add"),function(u){b.hideDialog();if(null!=u&&0<u.length){u=u.split(";");for(var B=0;B<u.length;B++){var D=u[B],G=App.pluginRegistry[D];null!=G&&(D=G);0<D.length&&0>mxUtils.indexOf(C,D)&&C.push(D)}t()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(p.container,300,80,!0,!0);p.init()});e.className="geBtn";ALLOW_CUSTOM_PLUGINS||(e.style.display="none");c=new CustomDialog(b,c,mxUtils.bind(this,function(){var p=
+App.pluginRegistry[l.value];0>mxUtils.indexOf(C,p)&&(C.push(p),t())}),null,null,null,e);b.showDialog(c.container,360,100,!0,!0)});M.className="geBtn";var N=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});N.className="geBtn";var P=mxUtils.button(d?mxResources.get("close"):mxResources.get("apply"),function(){K?(mxSettings.setPlugins(C),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});P.className="geBtn gePrimaryBtn";var I=document.createElement("div");
+I.style.marginTop="14px";I.style.textAlign="right";b.isOffline()||I.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/plugins"));b.editor.cancelFirst?(d||I.appendChild(N),I.appendChild(M),I.appendChild(P)):(I.appendChild(M),I.appendChild(P),d||I.appendChild(N));y.appendChild(I);this.container=y},CropImageDialog=function(b,f,m,d){function t(){var E=n.checked,T=p.checked,O=c.geometry,S=K.width,k=K.height,v=(300-S)/2,z=(300-k)/2;O.x<v?(O.width-=v-O.x,O.x=v):O.x+O.width>v+S&&(O.width=v+S-O.x,
+O.x=Math.min(O.x,v+S));O.y<z?(O.height-=z-O.y,O.y=z):O.y+O.height>z+k&&(O.height=z+k-O.y,O.y=Math.min(O.y,z+k));var A=(O.x-v)/S*100;S=100-(O.x+O.width-v)/S*100;v=(O.y-z)/k*100;O=100-(O.y+O.height-z)/k*100;return"inset("+mxUtils.format(v)+"% "+mxUtils.format(S)+"% "+mxUtils.format(O)+"% "+mxUtils.format(A)+"%"+(E?" round "+I+"%":T?" round 50%":"")+")"}function y(E){null!=N&&(!0!==E&&(N.model.setGeometry(c,P.clone()),I=5,B.value=I),N.model.setStyle(c,e+t()),N.selectAll(),u.style.visibility=n.checked?
+"visible":"hidden")}var x=document.createElement("div"),C=document.createElement("div");C.style.height="300px";C.style.width="300px";C.style.display="inline-flex";C.style.justifyContent="center";C.style.alignItems="center";C.style.position="absolute";var K=document.createElement("img");K.onload=function(){function E(){N.model.setStyle(c,e+t())}N=new Graph(M);N.autoExtend=!1;N.autoScroll=!1;N.setGridEnabled(!1);N.setEnabled(!0);N.setPanning(!1);N.setConnectable(!1);N.getRubberband().setEnabled(!1);
+N.graphHandler.allowLivePreview=!1;var T=N.createVertexHandler;N.createVertexHandler=function(){var Q=T.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=m)try{if("inset"==m.substring(0,5)){var O=c.geometry,S=K.width,k=K.height,v=(300-S)/2,z=(300-k)/2,A=m.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),H=parseFloat(A[0]),R=parseFloat(A[1]),g=parseFloat(A[2]),q=parseFloat(A[3]);isFinite(H)&&isFinite(R)&&isFinite(g)&&isFinite(q)?(O.x=q/100*S+v,O.y=H/100*k+z,O.width=(100-R)/100*S+v-O.x,O.height=(100-
+g)/100*k+z-O.y,"round"==A[4]?"50%"==A[5]?p.setAttribute("checked","checked"):(I=parseInt(A[5]),B.value=I,n.setAttribute("checked","checked"),u.style.visibility="visible"):l.setAttribute("checked","checked")):m=null}else m=null}catch(Q){}c.style=e+(m?m:t());c.vertex=!0;N.addCell(c,null,null,null,null);N.selectAll();N.addListener(mxEvent.CELLS_MOVED,E);N.addListener(mxEvent.CELLS_RESIZED,E);var F=N.graphHandler.mouseUp,J=N.graphHandler.mouseDown;N.graphHandler.mouseUp=function(){F.apply(this,arguments);
+M.style.backgroundColor="#fff9"};N.graphHandler.mouseDown=function(){J.apply(this,arguments);M.style.backgroundColor=""};N.dblClick=function(){};var L=N.getSelectionModel().changeSelection;N.getSelectionModel().changeSelection=function(){L.call(this,[c],[c])}};K.onerror=function(){K.onload=null;K.src=Editor.errorImage};K.setAttribute("src",f);K.style.maxWidth="300px";K.style.maxHeight="300px";C.appendChild(K);x.appendChild(C);var M=document.createElement("div");M.style.width="300px";M.style.height=
+"300px";M.style.overflow="hidden";M.style.backgroundColor="#fff9";x.appendChild(M);var N=null,P=new mxGeometry(100,100,100,100),I=5,c=new mxCell("",P.clone(),""),e="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+f.replace(";base64","")+";clipPath=",l=document.createElement("input");l.setAttribute("type","radio");l.setAttribute("id","croppingRect");l.setAttribute("name","croppingShape");l.setAttribute("checked","checked");l.style.margin="5px";x.appendChild(l);f=document.createElement("label");
+f.setAttribute("for","croppingRect");mxUtils.write(f,mxResources.get("rectangle"));x.appendChild(f);var n=document.createElement("input");n.setAttribute("type","radio");n.setAttribute("id","croppingRounded");n.setAttribute("name","croppingShape");n.style.margin="5px";x.appendChild(n);f=document.createElement("label");f.setAttribute("for","croppingRounded");mxUtils.write(f,mxResources.get("rounded"));x.appendChild(f);var p=document.createElement("input");p.setAttribute("type","radio");p.setAttribute("id",
+"croppingEllipse");p.setAttribute("name","croppingShape");p.style.margin="5px";x.appendChild(p);f=document.createElement("label");f.setAttribute("for","croppingEllipse");mxUtils.write(f,mxResources.get("ellipse"));x.appendChild(f);mxEvent.addListener(l,"change",y);mxEvent.addListener(n,"change",y);mxEvent.addListener(p,"change",y);var u=document.createElement("div");u.style.textAlign="center";u.style.visibility="hidden";var B=document.createElement("input");B.setAttribute("type","range");B.setAttribute("min",
+"1");B.setAttribute("max","49");B.setAttribute("value",I);B.setAttribute("title",mxResources.get("arcSize"));u.appendChild(B);x.appendChild(u);mxEvent.addListener(B,"change",function(){I=this.value;y(!0)});f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});f.className="geBtn";C=mxUtils.button(mxResources.get("apply"),function(){d(t(),c.geometry.width,c.geometry.height);b.hideDialog()});C.className="geBtn gePrimaryBtn";var D=mxUtils.button(mxResources.get("reset"),function(){d(null,
+K.width,K.height);b.hideDialog()});D.className="geBtn";var G=document.createElement("div");G.style.marginTop="10px";G.style.textAlign="right";b.editor.cancelFirst?(G.appendChild(f),G.appendChild(D),G.appendChild(C)):(G.appendChild(D),G.appendChild(C),G.appendChild(f));x.appendChild(G);this.container=x},EditGeometryDialog=function(b,f){var m=b.editor.graph,d=1==f.length?m.getCellGeometry(f[0]):null,t=document.createElement("div"),y=document.createElement("table"),x=document.createElement("tbody"),
+C=document.createElement("tr"),K=document.createElement("td"),M=document.createElement("td");y.style.paddingLeft="6px";mxUtils.write(K,mxResources.get("relative")+":");var N=document.createElement("input");N.setAttribute("type","checkbox");null!=d&&d.relative&&(N.setAttribute("checked","checked"),N.defaultChecked=!0);this.init=function(){N.focus()};M.appendChild(N);C.appendChild(K);C.appendChild(M);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");M=document.createElement("td");
+mxUtils.write(K,mxResources.get("left")+":");var P=document.createElement("input");P.setAttribute("type","text");P.style.width="100px";P.value=null!=d?d.x:"";M.appendChild(P);C.appendChild(K);C.appendChild(M);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");M=document.createElement("td");mxUtils.write(K,mxResources.get("top")+":");var I=document.createElement("input");I.setAttribute("type","text");I.style.width="100px";I.value=null!=d?d.y:"";M.appendChild(I);C.appendChild(K);
+C.appendChild(M);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");M=document.createElement("td");mxUtils.write(K,mxResources.get("dx")+":");var c=document.createElement("input");c.setAttribute("type","text");c.style.width="100px";c.value=null!=d&&null!=d.offset?d.offset.x:"";M.appendChild(c);C.appendChild(K);C.appendChild(M);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");M=document.createElement("td");mxUtils.write(K,mxResources.get("dy")+
+":");var e=document.createElement("input");e.setAttribute("type","text");e.style.width="100px";e.value=null!=d&&null!=d.offset?d.offset.y:"";M.appendChild(e);C.appendChild(K);C.appendChild(M);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");M=document.createElement("td");mxUtils.write(K,mxResources.get("width")+":");var l=document.createElement("input");l.setAttribute("type","text");l.style.width="100px";l.value=null!=d?d.width:"";M.appendChild(l);C.appendChild(K);C.appendChild(M);
+x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");M=document.createElement("td");mxUtils.write(K,mxResources.get("height")+":");var n=document.createElement("input");n.setAttribute("type","text");n.style.width="100px";n.value=null!=d?d.height:"";M.appendChild(n);C.appendChild(K);C.appendChild(M);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");M=document.createElement("td");mxUtils.write(K,mxResources.get("rotation")+":");var p=document.createElement("input");
+p.setAttribute("type","text");p.style.width="100px";p.value=1==f.length?mxUtils.getValue(m.getCellStyle(f[0]),mxConstants.STYLE_ROTATION,0):"";M.appendChild(p);C.appendChild(K);C.appendChild(M);x.appendChild(C);y.appendChild(x);t.appendChild(y);d=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});d.className="geBtn";var u=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();m.getModel().beginUpdate();try{for(var B=0;B<f.length;B++){var D=m.getCellGeometry(f[B]);null!=
+D&&(D=D.clone(),m.isCellMovable(f[B])&&(D.relative=N.checked,0<mxUtils.trim(P.value).length&&(D.x=Number(P.value)),0<mxUtils.trim(I.value).length&&(D.y=Number(I.value)),0<mxUtils.trim(c.value).length&&(null==D.offset&&(D.offset=new mxPoint),D.offset.x=Number(c.value)),0<mxUtils.trim(e.value).length&&(null==D.offset&&(D.offset=new mxPoint),D.offset.y=Number(e.value))),m.isCellResizable(f[B])&&(0<mxUtils.trim(l.value).length&&(D.width=Number(l.value)),0<mxUtils.trim(n.value).length&&(D.height=Number(n.value))),
+m.getModel().setGeometry(f[B],D));0<mxUtils.trim(p.value).length&&m.setCellStyles(mxConstants.STYLE_ROTATION,Number(p.value),[f[B]])}}finally{m.getModel().endUpdate()}});u.className="geBtn gePrimaryBtn";mxEvent.addListener(t,"keypress",function(B){13==B.keyCode&&u.click()});y=document.createElement("div");y.style.marginTop="20px";y.style.textAlign="right";b.editor.cancelFirst?(y.appendChild(d),y.appendChild(u)):(y.appendChild(u),y.appendChild(d));t.appendChild(y);this.container=t},LibraryDialog=function(b,
+f,m,d,t,y,x){function C(O){for(O=document.elementFromPoint(O.clientX,O.clientY);null!=O&&O.parentNode!=e;)O=O.parentNode;var S=null;if(null!=O){var k=e.firstChild;for(S=0;null!=k&&k!=O;)k=k.nextSibling,S++}return S}function K(O,S,k,v,z,A,H,R,g){try{if(b.spinner.stop(),null==S||"image/"==S.substring(0,6))if(null==O&&null!=H||null==n[O]){var q=function(){X.innerText="";X.style.cursor="pointer";X.style.whiteSpace="nowrap";X.style.textOverflow="ellipsis";mxUtils.write(X,null!=Z.title&&0<Z.title.length?
+Z.title:mxResources.get("untitled"));X.style.color=null==Z.title||0==Z.title.length?"#d0d0d0":""};e.style.backgroundImage="";l.style.display="none";var F=z,J=A;if(z>b.maxImageSize||A>b.maxImageSize){var L=Math.min(1,Math.min(b.maxImageSize/Math.max(1,z)),b.maxImageSize/Math.max(1,A));z*=L;A*=L}F>J?(J=Math.round(100*J/F),F=100):(F=Math.round(100*F/J),J=100);var Q=document.createElement("div");Q.setAttribute("draggable","true");Q.style.display="inline-block";Q.style.position="relative";Q.style.padding=
+"0 12px";Q.style.cursor="move";mxUtils.setPrefixedStyle(Q.style,"transition","transform .1s ease-in-out");if(null!=O){var U=document.createElement("img");U.setAttribute("src",D.convert(O));U.style.width=F+"px";U.style.height=J+"px";U.style.margin="10px";U.style.paddingBottom=Math.floor((100-J)/2)+"px";U.style.paddingLeft=Math.floor((100-F)/2)+"px";Q.appendChild(U)}else if(null!=H){var V=b.stringToCells("<"==H.xml.charAt(0)?H.xml:Graph.decompress(H.xml));0<V.length&&(b.sidebar.createThumb(V,100,100,
+Q,null,!0,!1,null,null,Editor.isDarkMode()?"#2a252f":"#ffffff"),Q.firstChild.style.display="inline-block",Q.firstChild.style.cursor="")}var W=document.createElement("img");W.setAttribute("src",Editor.closeBlackImage);W.setAttribute("border","0");W.setAttribute("title",mxResources.get("delete"));W.setAttribute("align","top");W.style.paddingTop="4px";W.style.position="absolute";W.style.marginLeft="-12px";W.style.zIndex="1";W.style.cursor="pointer";mxEvent.addListener(W,"dragstart",function(da){mxEvent.consume(da)});
+(function(da,ma,aa){mxEvent.addListener(W,"click",function(ia){n[ma]=null;for(var ka=0;ka<P.length;ka++)if(null!=P[ka].data&&P[ka].data==ma||null!=P[ka].xml&&null!=aa&&P[ka].xml==aa.xml){P.splice(ka,1);break}Q.parentNode.removeChild(da);0==P.length&&(e.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",l.style.display="");mxEvent.consume(ia)});mxEvent.addListener(W,"dblclick",function(ia){mxEvent.consume(ia)})})(Q,O,H);Q.appendChild(W);Q.style.marginBottom="30px";var X=document.createElement("div");
+X.style.position="absolute";X.style.boxSizing="border-box";X.style.bottom="-18px";X.style.left="10px";X.style.right="10px";X.style.backgroundColor="light-dark(#ffffff, transparent)";X.style.overflow="hidden";X.style.textAlign="center";X.setAttribute("title",mxResources.get("rename"));var Z=null;null!=O?(Z={data:O,w:z,h:A,title:g},null!=R&&(Z.aspect=R),n[O]=U,P.push(Z)):null!=H&&(H.aspect="fixed",P.push(H),Z=H);mxEvent.addListener(X,"keydown",function(da){13==da.keyCode&&null!=B&&(B(),B=null,mxEvent.consume(da))});
+q();Q.appendChild(X);mxEvent.addListener(X,"mousedown",function(da){"true"!=X.getAttribute("contentEditable")&&mxEvent.consume(da)});V=function(da){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var ma=new FilenameDialog(b,Z.title||"",mxResources.get("ok"),function(aa){null!=aa&&(Z.title=aa,q())},mxResources.get("enterValue"));b.showDialog(ma.container,300,80,!0,!0);ma.init();mxEvent.consume(da)}else if("true"!=X.getAttribute("contentEditable")){null!=
+B&&(B(),B=null);if(null==Z.title||0==Z.title.length)X.innerText="";X.style.textOverflow="";X.style.whiteSpace="";X.style.cursor="text";X.style.color="";X.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(X.style,"user-select","text");X.focus();document.execCommand("selectAll",!1,null);B=function(){X.removeAttribute("contentEditable");X.style.cursor="pointer";Z.title=X.innerHTML;q()};mxEvent.consume(da)}};mxEvent.addListener(X,"click",V);mxEvent.addListener(Q,"dblclick",V);e.appendChild(Q);
+mxEvent.addListener(Q,"dragstart",function(da){null==B&&(null==O&&null!=H&&(W.style.visibility="hidden",X.style.visibility="hidden"),mxClient.IS_FF&&null!=H.xml&&da.dataTransfer.setData("Text",H.xml),p=C(da),mxClient.IS_GC&&(Q.style.opacity="0.9"),window.setTimeout(function(){mxUtils.setPrefixedStyle(Q.style,"transform","scale(0.5,0.5)");mxUtils.setOpacity(Q,30);W.style.visibility="";X.style.visibility=""},0))});mxEvent.addListener(Q,"dragend",function(da){"hidden"==W.style.visibility&&(W.style.visibility=
+"",X.style.visibility="");p=null;mxUtils.setOpacity(Q,100);mxUtils.setPrefixedStyle(Q.style,"transform",null)})}else G||(G=!0,b.handleError({message:mxResources.get("fileExists")}));else{z=!1;try{if(F=mxUtils.parseXml(O),"mxlibrary"==F.documentElement.nodeName){J=JSON.parse(mxUtils.getTextContent(F.documentElement));if(null!=J&&0<J.length)for(var Y=0;Y<J.length;Y++)null!=J[Y].xml?K(null,null,0,0,0,0,J[Y]):K(J[Y].data,null,0,0,J[Y].w,J[Y].h,null,"fixed",J[Y].title);z=!0}else if("mxfile"==F.documentElement.nodeName){var ba=
+F.documentElement.getElementsByTagName("diagram");for(Y=0;Y<ba.length;Y++){var ea=Editor.getDiagramNodeXml(ba[Y]);V=b.stringToCells(ea);if(0<V.length){var ca=b.editor.graph.getBoundingBoxFromGeometry(V);null!=ca&&K(null,null,0,0,0,0,{xml:ea,w:ca.width,h:ca.height})}}z=!0}}catch(da){null!=window.console&&console.error("Error in library dialog: "+da)}z||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(da){null!=window.console&&console.log("Error in library dialog: "+
+da)}return null}function M(O){O.dataTransfer.dropEffect=null!=p?"move":"copy";O.stopPropagation();O.preventDefault()}function N(O){O.stopPropagation();O.preventDefault();G=!1;u=C(O);if(null!=p)null!=u&&u<e.children.length?(P.splice(u>p?u-1:u,0,P.splice(p,1)[0]),e.insertBefore(e.children[p],e.children[u])):(P.push(P.splice(p,1)[0]),e.appendChild(e.children[p]));else if(0<O.dataTransfer.files.length)b.importFiles(O.dataTransfer.files,0,0,b.maxImageSize,E(O));else if(0<=mxUtils.indexOf(O.dataTransfer.types,
+"text/uri-list")){var S=decodeURIComponent(O.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(S)||/(\.png)($|\?)/i.test(S)||/(\.gif)($|\?)/i.test(S)||/(\.svg)($|\?)/i.test(S))&&b.loadImage(S,function(k){K(S,null,0,0,k.width,k.height);e.scrollTop=e.scrollHeight})}O.stopPropagation();O.preventDefault()}var P=[];m=document.createElement("div");m.style.height="100%";var I=document.createElement("div");I.style.whiteSpace="nowrap";I.style.height="40px";m.appendChild(I);mxUtils.write(I,mxResources.get("filename")+
+":");null==f&&(f=b.defaultLibraryName+".xml");var c=document.createElement("input");c.setAttribute("value",f);c.style.marginRight="20px";c.style.marginLeft="10px";c.style.width="500px";null==t||t.isRenamable()||c.setAttribute("disabled","true");this.init=function(){if(null==t||t.isRenamable())c.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?c.select():document.execCommand("selectAll",!1,null)};I.appendChild(c);Editor.enableUncompressedLibraries&&(c.style.width="420px",f=document.createElement("input"),
+f.setAttribute("type","checkbox"),f.style.marginRight="10px",I.appendChild(f),mxUtils.write(I,mxResources.get("compressed")));var e=document.createElement("div");e.style.borderWidth="1px 0px 1px 0px";e.style.borderColor="#d3d3d3";e.style.borderStyle="solid";e.style.marginTop="6px";e.style.overflow="auto";e.style.height="340px";e.style.backgroundPosition="center center";e.style.backgroundRepeat="no-repeat";0==P.length&&Graph.fileSupport&&(e.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')");
+var l=document.createElement("div");l.style.position="absolute";l.style.width="640px";l.style.top="260px";l.style.textAlign="center";l.style.fontSize="22px";l.style.color="#a0c3ff";mxUtils.write(l,mxResources.get("dragImagesHere"));m.appendChild(l);var n={},p=null,u=null,B=null;I=function(O){"true"!=mxEvent.getSource(O).getAttribute("contentEditable")&&null!=B&&(B(),B=null,mxEvent.consume(O))};mxEvent.addListener(e,"mousedown",I);mxEvent.addListener(e,"pointerdown",I);mxEvent.addListener(e,"touchstart",
+I);var D=new mxUrlConverter,G=!1;if(null!=d)for(I=0;I<d.length;I++)f=d[I],K(f.data,null,0,0,f.w,f.h,f,f.aspect,f.title);mxEvent.addListener(e,"dragleave",function(O){l.style.cursor="";for(var S=mxEvent.getSource(O);null!=S;){if(S==e||S==l){O.stopPropagation();O.preventDefault();break}S=S.parentNode}});var E=function(O){return function(S,k,v,z,A,H,R,g,q){null!=q&&EditorUi.isVisioFilename(q.name)?b.importVisio(q,mxUtils.bind(this,function(F){K(F,k,v,z,A,H,R,"fixed",mxEvent.isAltDown(O)?null:R.substring(0,
+R.lastIndexOf(".")).replace(/_/g," "))})):null!=q&&(new XMLHttpRequest).upload&&b.isRemoteFileFormat(S,q.name)?b.isExternalDataComms()?b.parseFile(q,mxUtils.bind(this,function(F){4==F.readyState&&(b.spinner.stop(),200<=F.status&&299>=F.status&&(K(F.responseText,k,v,z,A,H,R,"fixed",mxEvent.isAltDown(O)?null:R.substring(0,R.lastIndexOf(".")).replace(/_/g," ")),e.scrollTop=e.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(K(S,k,v,z,A,H,R,"fixed",
+mxEvent.isAltDown(O)?null:R.substring(0,R.lastIndexOf(".")).replace(/_/g," ")),e.scrollTop=e.scrollHeight)}};mxEvent.addListener(e,"dragover",M);mxEvent.addListener(e,"drop",N);mxEvent.addListener(l,"dragover",M);mxEvent.addListener(l,"drop",N);m.appendChild(e);d=document.createElement("div");d.style.textAlign="right";d.style.marginTop="20px";I=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});I.setAttribute("id","btnCancel");I.className="geBtn";b.editor.cancelFirst&&d.appendChild(I);
+"draw.io"!=b.getServiceName()||null==t||t.constructor!=DriveLibrary&&t.constructor!=GitHubLibrary||(f=mxUtils.button(mxResources.get("link"),function(){b.getPublicUrl(t,function(O){if(null!=O){var S=b.getSearch("create title mode url drive splash state clibs ui".split(" "));S+=(0==S.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(O);O=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+S,null,null,null,null,"Check out the library I made using @drawio");b.showDialog(O.container,
+450,240,!0);O.init()}else t.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),mxUtils.bind(this,function(){b.drive.showPermissions(t.getId(),t)}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),f.className="geBtn",d.appendChild(f));f=mxUtils.button(mxResources.get("export"),function(){var O=b.createLibraryDataFromImages(P),S=c.value;/(\.xml)$/i.test(S)||
+(S+=".xml");b.isLocalFileSave()?b.saveLocalFile(O,S,"text/xml",null,null,null!=x?x:!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(S)+"&format=xml&xml="+encodeURIComponent(O))).simulate(document,"_blank")});f.setAttribute("id","btnDownload");f.className="geBtn";d.appendChild(f);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var T=document.createElement("input");T.setAttribute("multiple","multiple");T.setAttribute("type","file");mxEvent.addListener(T,"change",function(O){G=
+!1;b.importFiles(T.files,0,0,b.maxImageSize,function(S,k,v,z,A,H,R,g,q){null!=T.files&&(E(O)(S,k,v,z,A,H,R,g,q),T.type="",T.type="file",T.value="")});e.scrollTop=e.scrollHeight});T.style.display="none";document.body.appendChild(T);b.libDlgFileInputElt=T}f=mxUtils.button(mxResources.get("import"),function(){null!=B&&(B(),B=null);b.libDlgFileInputElt.click()});f.setAttribute("id","btnAddImage");f.className="geBtn";d.appendChild(f)}f=mxUtils.button(mxResources.get("addImages"),function(){null!=B&&(B(),
+B=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(O,S,k){G=!1;if(null!=O){if("data:image/"==O.substring(0,11)){var v=O.indexOf(",");0<v&&(O=O.substring(0,v)+";base64,"+O.substring(v+1))}K(O,null,0,0,S,k);e.scrollTop=e.scrollHeight}})});f.setAttribute("id","btnAddImageUrl");f.className="geBtn";d.appendChild(f);this.saveBtnClickHandler=function(O,S,k,v){b.saveLibrary(O,S,k,v)};f=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=B&&(B(),B=null);this.saveBtnClickHandler(c.value,
+P,t,y)}));f.setAttribute("id","btnSave");f.className="geBtn gePrimaryBtn";d.appendChild(f);b.editor.cancelFirst||d.appendChild(I);m.appendChild(d);this.container=m},EditShapeDialog=function(b,f,m,d,t){d=null!=d?d:300;t=null!=t?t:120;var y=document.createElement("table"),x=document.createElement("tbody");y.style.cellPadding="4px";var C=document.createElement("tr");var K=document.createElement("td");K.setAttribute("colspan","2");K.style.fontSize="10pt";mxUtils.write(K,m);C.appendChild(K);x.appendChild(C);
+C=document.createElement("tr");K=document.createElement("td");var M=document.createElement("textarea");M.style.outline="none";M.style.resize="none";M.style.width=d-200+"px";M.style.height=t+"px";this.textarea=M;this.init=function(){M.focus();M.scrollTop=0};K.appendChild(M);C.appendChild(K);K=document.createElement("td");m=document.createElement("div");m.style.position="relative";m.style.border="1px solid gray";m.style.top="6px";m.style.width="200px";m.style.height=t+4+"px";m.style.overflow="hidden";
+m.style.marginBottom="16px";mxEvent.disableContextMenu(m);K.appendChild(m);var N=new Graph(m);N.setEnabled(!1);var P=b.editor.graph.cloneCell(f);N.addCells([P]);m=N.view.getState(P);var I="";null!=m.shape&&null!=m.shape.stencil&&(I=mxUtils.getPrettyXml(m.shape.stencil.desc));mxUtils.write(M,I||"");m=N.getGraphBounds();t=Math.min(160/m.width,(t-40)/m.height);N.view.scaleAndTranslate(t,20/t-m.x,20/t-m.y);C.appendChild(K);x.appendChild(C);C=document.createElement("tr");K=document.createElement("td");
+K.setAttribute("colspan","2");K.style.paddingTop="2px";K.style.whiteSpace="nowrap";K.setAttribute("align","right");b.isOffline()||(t=mxUtils.button(mxResources.get("help"),function(){b.openLink("https://www.drawio.com/doc/faq/shape-complex-create-edit")}),t.className="geBtn",K.appendChild(t));t=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});t.className="geBtn";b.editor.cancelFirst&&K.appendChild(t);var c=function(e,l,n){var p=M.value,u=mxUtils.parseXml(p);p=mxUtils.getPrettyXml(u.documentElement);
+u=u.documentElement.getElementsByTagName("parsererror");if(null!=u&&0<u.length)b.showError(mxResources.get("error"),mxResources.get("containsValidationErrors"),mxResources.get("ok"));else if(n&&b.hideDialog(),u=!e.model.contains(l),!n||u||p!=I){p=Graph.compress(p);e.getModel().beginUpdate();try{if(u){var B=b.editor.graph.getFreeInsertPoint();l.geometry.x=B.x;l.geometry.y=B.y;e.addCell(l)}e.setCellStyles(mxConstants.STYLE_SHAPE,"stencil("+p+")",[l])}catch(D){throw D;}finally{e.getModel().endUpdate()}u&&
+(e.setSelectionCell(l),e.scrollCellToVisible(l))}};m=mxUtils.button(mxResources.get("preview"),function(){c(N,P,!1)});m.className="geBtn";K.appendChild(m);m=mxUtils.button(mxResources.get("apply"),function(){c(b.editor.graph,f,!0)});m.className="geBtn gePrimaryBtn";K.appendChild(m);b.editor.cancelFirst||K.appendChild(t);C.appendChild(K);x.appendChild(C);y.appendChild(x);this.container=y},CustomDialog=function(b,f,m,d,t,y,x,C,K,M,N,P){var I=document.createElement("div");I.appendChild(f);var c=document.createElement("div");
+c.style.marginTop=null!=P?P:"30px";c.style.textAlign="right";null!=x&&c.appendChild(x);b.isOffline()||null==y||c.appendChild(b.createHelpIcon(y));f=mxUtils.button(K||mxResources.get("cancel"),function(){b.hideDialog();null!=d&&d()});f.className="geBtn";C&&(f.style.display="none");b.editor.cancelFirst&&c.appendChild(f);t=mxUtils.button(t||mxResources.get("ok"),mxUtils.bind(this,function(){M||b.hideDialog(null,null,this.container);if(null!=m){var e=m();if("string"===typeof e){b.showError(mxResources.get("error"),
+e);return}}M&&b.hideDialog(null,null,this.container)}));c.appendChild(t);t.className="geBtn gePrimaryBtn";b.editor.cancelFirst||c.appendChild(f);if(null!=N)for(C=0;C<N.length;C++)(function(e,l,n){e=mxUtils.button(e,function(p){l(p)});null!=n&&e.setAttribute("title",n);e.className="geBtn";c.appendChild(e)})(N[C][0],N[C][1],N[C][2]);I.appendChild(c);this.cancelBtn=f;this.okButton=t;this.container=I},BtnDialog=function(b,f,m,d){var t=document.createElement("div");t.style.textAlign="center";var y=document.createElement("p");
y.style.fontSize="16pt";y.style.padding="0px";y.style.margin="0px";y.style.color="gray";mxUtils.write(y,mxResources.get("done"));var x="Unknown",C=document.createElement("img");C.setAttribute("border","0");C.setAttribute("align","absmiddle");C.style.marginRight="10px";f==b.drive?(x=mxResources.get("googleDrive"),C.src=IMAGE_PATH+"/google-drive-logo-white.svg"):f==b.dropbox?(x=mxResources.get("dropbox"),C.src=IMAGE_PATH+"/dropbox-logo-white.svg"):f==b.oneDrive?(x=mxResources.get("oneDrive"),C.src=
IMAGE_PATH+"/onedrive-logo-white.svg"):f==b.gitHub?(x=mxResources.get("github"),C.src=IMAGE_PATH+"/github-logo-white.svg"):f==b.gitLab?(x=mxResources.get("gitlab"),C.src=IMAGE_PATH+"/gitlab-logo.svg"):f==b.trello&&(x=mxResources.get("trello"),C.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizedIn",[x],"You are now authorized in {1}"));m=mxUtils.button(m,d);m.insertBefore(C,m.firstChild);m.style.marginTop="6px";m.className="geBigButton";
-m.style.fontSize="18px";m.style.padding="14px";t.appendChild(y);t.appendChild(b);t.appendChild(m);this.container=t},FontDialog=function(b,f,m,d,t){function y(A){this.style.border="";13==A.keyCode&&u.click()}var x=document.createElement("table"),C=document.createElement("tbody");x.style.marginTop="8px";var K=document.createElement("tr");var M=document.createElement("td");M.colSpan=2;M.style.whiteSpace="nowrap";M.style.fontSize="10pt";M.style.fontWeight="bold";var N=document.createElement("input");
+m.style.fontSize="18px";m.style.padding="14px";t.appendChild(y);t.appendChild(b);t.appendChild(m);this.container=t},FontDialog=function(b,f,m,d,t){function y(B){this.style.border="";13==B.keyCode&&u.click()}var x=document.createElement("table"),C=document.createElement("tbody");x.style.marginTop="8px";var K=document.createElement("tr");var M=document.createElement("td");M.colSpan=2;M.style.whiteSpace="nowrap";M.style.fontSize="10pt";M.style.fontWeight="bold";var N=document.createElement("input");
N.style.cssText="margin-right:8px;margin-bottom:8px;";N.setAttribute("value","sysfonts");N.setAttribute("type","radio");N.setAttribute("name","current-fontdialog");N.setAttribute("id","fontdialog-sysfonts");M.appendChild(N);var P=document.createElement("label");P.setAttribute("for","fontdialog-sysfonts");mxUtils.write(P,mxResources.get("sysFonts",null,"System Fonts"));M.appendChild(P);K.appendChild(M);C.appendChild(K);K=document.createElement("tr");M=document.createElement("td");M.style.whiteSpace=
"nowrap";M.style.fontSize="10pt";M.style.width="120px";M.style.paddingLeft="15px";mxUtils.write(M,mxResources.get("fontname",null,"Font Name")+":");K.appendChild(M);var I=document.createElement("input");"s"==d&&I.setAttribute("value",f);I.style.marginLeft="4px";I.style.width="250px";I.className="dlg_fontName_s";M=document.createElement("td");M.appendChild(I);K.appendChild(M);C.appendChild(K);K=document.createElement("tr");M=document.createElement("td");M.colSpan=2;M.style.whiteSpace="nowrap";M.style.fontSize=
"10pt";M.style.fontWeight="bold";var c=document.createElement("input");c.style.cssText="margin-right:8px;margin-bottom:8px;";c.setAttribute("value","googlefonts");c.setAttribute("type","radio");c.setAttribute("name","current-fontdialog");c.setAttribute("id","fontdialog-googlefonts");M.appendChild(c);P=document.createElement("label");P.setAttribute("for","fontdialog-googlefonts");mxUtils.write(P,mxResources.get("googleFonts",null,"Google Fonts"));M.appendChild(P);if(!b.isOffline()||EditorUi.isElectronApp)P=
@@ -12640,9 +12654,9 @@ b.createHelpIcon("https://fonts.google.com/"),M.appendChild(P);K.appendChild(M);
"dlg_fontName_g";M=document.createElement("td");M.appendChild(e);K.appendChild(M);"0"!=urlParams.isGoogleFontsEnabled&&C.appendChild(K);K=document.createElement("tr");M=document.createElement("td");M.colSpan=2;M.style.whiteSpace="nowrap";M.style.fontSize="10pt";M.style.fontWeight="bold";var l=document.createElement("input");l.style.cssText="margin-right:8px;margin-bottom:8px;";l.setAttribute("value","webfonts");l.setAttribute("type","radio");l.setAttribute("name","current-fontdialog");l.setAttribute("id",
"fontdialog-webfonts");M.appendChild(l);P=document.createElement("label");P.setAttribute("for","fontdialog-webfonts");mxUtils.write(P,mxResources.get("webfonts",null,"Web Fonts"));M.appendChild(P);K.appendChild(M);Editor.enableWebFonts&&C.appendChild(K);K=document.createElement("tr");M=document.createElement("td");M.style.whiteSpace="nowrap";M.style.fontSize="10pt";M.style.width="120px";M.style.paddingLeft="15px";mxUtils.write(M,mxResources.get("fontname",null,"Font Name")+":");K.appendChild(M);var n=
document.createElement("input");"w"==d&&(Editor.enableWebFonts?n.setAttribute("value",f):I.setAttribute("value",f));n.style.marginLeft="4px";n.style.width="250px";n.className="dlg_fontName_w";M=document.createElement("td");M.appendChild(n);K.appendChild(M);Editor.enableWebFonts&&C.appendChild(K);K=document.createElement("tr");M=document.createElement("td");M.style.whiteSpace="nowrap";M.style.fontSize="10pt";M.style.width="120px";M.style.paddingLeft="15px";mxUtils.write(M,mxResources.get("fontUrl",
-null,"Font URL")+":");K.appendChild(M);var p=document.createElement("input");p.setAttribute("value",m||"");p.style.marginLeft="4px";p.style.width="250px";p.className="dlg_fontUrl";M=document.createElement("td");M.appendChild(p);K.appendChild(M);Editor.enableWebFonts&&C.appendChild(K);this.init=function(){var A=I;"g"==d?A=e:"w"==d&&Editor.enableWebFonts&&(A=n);A.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?A.select():document.execCommand("selectAll",!1,null)};K=document.createElement("tr");
-M=document.createElement("td");M.colSpan=2;M.style.paddingTop="20px";M.style.whiteSpace="nowrap";M.setAttribute("align","right");b.isOffline()||M.appendChild(b.createHelpIcon("https://www.drawio.com/blog/external-fonts"));f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();t()});f.className="geBtn";b.editor.cancelFirst&&M.appendChild(f);var u=mxUtils.button(mxResources.get("apply"),function(){if(N.checked){var A=I.value;var D="s"}else if(c.checked){A=e.value;var G=Editor.GOOGLE_FONTS+
-encodeURIComponent(A).replace(/%20/g,"+");D="g"}else l.checked&&(A=n.value,G=p.value,D="w");var E=A;var T=G,O=D,S=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,k=x.querySelector(".dlg_fontName_"+O);null==k||null!=E&&0!=E.length?(k=x.querySelector(".dlg_fontUrl"),null==k||"w"!=O||S.test(T)?E=!0:(k.style.border="1px solid red",E=!1)):(k.style.border="1px solid red",E=!1);E&&(t(A,G,D),b.hideDialog())});u.className="geBtn gePrimaryBtn";mxEvent.addListener(I,"keypress",
+null,"Font URL")+":");K.appendChild(M);var p=document.createElement("input");p.setAttribute("value",m||"");p.style.marginLeft="4px";p.style.width="250px";p.className="dlg_fontUrl";M=document.createElement("td");M.appendChild(p);K.appendChild(M);Editor.enableWebFonts&&C.appendChild(K);this.init=function(){var B=I;"g"==d?B=e:"w"==d&&Editor.enableWebFonts&&(B=n);B.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?B.select():document.execCommand("selectAll",!1,null)};K=document.createElement("tr");
+M=document.createElement("td");M.colSpan=2;M.style.paddingTop="20px";M.style.whiteSpace="nowrap";M.setAttribute("align","right");b.isOffline()||M.appendChild(b.createHelpIcon("https://www.drawio.com/blog/external-fonts"));f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();t()});f.className="geBtn";b.editor.cancelFirst&&M.appendChild(f);var u=mxUtils.button(mxResources.get("apply"),function(){if(N.checked){var B=I.value;var D="s"}else if(c.checked){B=e.value;var G=Editor.GOOGLE_FONTS+
+encodeURIComponent(B).replace(/%20/g,"+");D="g"}else l.checked&&(B=n.value,G=p.value,D="w");var E=B;var T=G,O=D,S=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,k=x.querySelector(".dlg_fontName_"+O);null==k||null!=E&&0!=E.length?(k=x.querySelector(".dlg_fontUrl"),null==k||"w"!=O||S.test(T)?E=!0:(k.style.border="1px solid red",E=!1)):(k.style.border="1px solid red",E=!1);E&&(t(B,G,D),b.hideDialog())});u.className="geBtn gePrimaryBtn";mxEvent.addListener(I,"keypress",
y);mxEvent.addListener(e,"keypress",y);mxEvent.addListener(n,"keypress",y);mxEvent.addListener(p,"keypress",y);mxEvent.addListener(I,"focus",function(){N.setAttribute("checked","checked");N.checked=!0});mxEvent.addListener(e,"focus",function(){c.setAttribute("checked","checked");c.checked=!0});mxEvent.addListener(n,"focus",function(){l.setAttribute("checked","checked");l.checked=!0});mxEvent.addListener(p,"focus",function(){l.setAttribute("checked","checked");l.checked=!0});M.appendChild(u);b.editor.cancelFirst||
M.appendChild(f);K.appendChild(M);C.appendChild(K);x.appendChild(C);this.container=x};
function AspectDialog(b,f,m,d,t){this.aspect={pageId:f||(b.pages?b.pages[0].getId():null),layerIds:m||[]};f=document.createElement("div");var y=document.createElement("h5");y.style.margin="0 0 10px";mxUtils.write(y,mxResources.get("pages"));f.appendChild(y);m=document.createElement("div");m.className="geAspectDlgList";f.appendChild(m);y=document.createElement("h5");y.style.margin="0 0 10px";mxUtils.write(y,mxResources.get("layers"));f.appendChild(y);y=document.createElement("div");y.className="geAspectDlgList";
@@ -12661,26 +12675,26 @@ I=document.createElement("td");I.style.whiteSpace="nowrap";I.appendChild(e);P.ap
this.init=this.init||function(){e.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?e.select():document.execCommand("selectAll",!1,null)};m(function(D,G){null!=b.fileNode&&(b.fileNode.setAttribute("scale",Math.max(0,parseInt(e.value)/100)),b.fileNode.setAttribute("border",Math.max(0,parseInt(l.value))),null!=y&&y.fileChanged());D()})}else if(!/(\.html)$/i.test(x)&&!/(\.svg)$/i.test(x)){var n=null!=y?y.isCompressed():Editor.defaultCompressed;P=document.createElement("tr");I=document.createElement("td");
I.style.whiteSpace="nowrap";I.style.overflow="hidden";I.style.textOverflow="ellipsis";I.style.fontSize="10pt";mxUtils.write(I,mxResources.get("compressed")+":");P.appendChild(I);var p=document.createElement("input");p.setAttribute("type","checkbox");n&&(p.setAttribute("checked","checked"),p.defaultChecked=!0);I=document.createElement("td");I.style.whiteSpace="nowrap";I.appendChild(p);P.appendChild(I);t.appendChild(P);this.init=this.init||function(){p.focus()};m(function(D,G){null!=b.fileNode&&n!=
p.checked?window.setTimeout(function(){b.fileNode.setAttribute("compressed",p.checked?"true":"false");null!=y&&(y.compressionChanged(p.checked),y.fileChanged());D()},0):D()})}if(null!=y&&y.isRealtimeOptional()){P=document.createElement("tr");I=document.createElement("td");I.style.whiteSpace="nowrap";I.style.overflow="hidden";I.style.textOverflow="ellipsis";I.style.fontSize="10pt";mxUtils.write(I,mxResources.get("realtimeCollaboration")+":");P.appendChild(I);var u=document.createElement("input");u.setAttribute("type",
-"checkbox");var A=y.isRealtimeEnabled();if(A="disabled"!=b.drive.getCustomProperty(y.desc,"collaboration"))u.setAttribute("checked","checked"),u.defaultChecked=!0;m(function(D,G){u.checked!=A?y.setRealtimeEnabled(u.checked,D,G):D()});this.init=null!=this.init?this.init:function(){u.focus()};I=document.createElement("td");I.style.whiteSpace="nowrap";I.appendChild(u);I.appendChild(b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/2672"));P.appendChild(I);t.appendChild(P)}null!=y&&
+"checkbox");var B=y.isRealtimeEnabled();if(B="disabled"!=b.drive.getCustomProperty(y.desc,"collaboration"))u.setAttribute("checked","checked"),u.defaultChecked=!0;m(function(D,G){u.checked!=B?y.setRealtimeEnabled(u.checked,D,G):D()});this.init=null!=this.init?this.init:function(){u.focus()};I=document.createElement("td");I.style.whiteSpace="nowrap";I.appendChild(u);I.appendChild(b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/2672"));P.appendChild(I);t.appendChild(P)}null!=y&&
"draw.io"==b.getServiceName()&&0<y.getSize()&&"1"!=urlParams.embed&&(P=document.createElement("tr"),I=document.createElement("td"),I.style.whiteSpace="nowrap",I.style.overflow="hidden",I.style.textOverflow="ellipsis",I.style.fontSize="10pt",mxUtils.write(I,mxResources.get("size")+":"),P.appendChild(I),I=b.formatFileSize(y.getSize()),x=document.createElement("input"),x.setAttribute("title",I),x.setAttribute("value",I),x.setAttribute("disabled","disabled"),x.style.marginLeft="4px",x.style.width="100%",
I=document.createElement("td"),I.style.whiteSpace="nowrap",I.appendChild(x),P.appendChild(I),t.appendChild(P));null!=f&&(P=document.createElement("tr"),I=document.createElement("td"),I.style.whiteSpace="nowrap",I.style.overflow="hidden",I.style.textOverflow="ellipsis",I.style.fontSize="10pt",mxUtils.write(I,mxResources.get("publicDiagramUrl")+":"),P.appendChild(I),x=document.createElement("a"),x.setAttribute("href",f),x.setAttribute("title",f),x.style.whiteSpace="nowrap",x.style.overflow="hidden",
x.style.textOverflow="ellipsis",x.style.display="block",x.style.margin="2px 0px 2px 8px",x.style.fontSize="10pt",mxUtils.write(x,f),mxEvent.addListener(x,"click",function(D){b.openLink(f);mxEvent.consume(D)}),I=document.createElement("td"),I.appendChild(x),P.appendChild(I),t.appendChild(P));null!=y&&null!=y.fileObject&&null!=y.fileObject.path&&(P=document.createElement("tr"),I=document.createElement("td"),I.style.whiteSpace="nowrap",I.style.overflow="hidden",I.style.textOverflow="ellipsis",I.style.fontSize=
"10pt",mxUtils.write(I,mxResources.get("pathFilename")+":"),P.appendChild(I),x=document.createElement("input"),x.setAttribute("title",y.fileObject.path),x.setAttribute("value",y.fileObject.path),x.setAttribute("disabled","disabled"),x.style.marginLeft="4px",x.style.width="100%",I=document.createElement("td"),I.appendChild(x),P.appendChild(I),t.appendChild(P));this.init=null!=this.init?this.init:function(){};x=mxUtils.button(mxResources.get("apply"),function(){b.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
M(function(){b.spinner.stop();b.hideDialog()},function(D){b.spinner.stop();b.handleError(D,mxResources.get("error"))})});x.className="geBtn gePrimaryBtn";P=document.createElement("tr");I=document.createElement("td");I.colSpan=2;I.style.paddingTop="20px";I.style.whiteSpace="nowrap";I.setAttribute("align","right");C=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});C.className="geBtn";b.editor.cancelFirst&&I.appendChild(C);I.appendChild(x);b.editor.cancelFirst||I.appendChild(C);P.appendChild(I);
-t.appendChild(P);d.appendChild(t);this.container=d},ConnectionPointsDialog=function(b,f){function m(){null!=t&&t.destroy()}var d=document.createElement("div");d.style.userSelect="none";var t=null;this.init=function(){function y(z,B,H){z=new mxCell("",new mxGeometry(z,B,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0;connectable=0;editable=0;");z.vertex=!0;z.cp=!0;z.constObj=H;return P.addCell(z)}function x(z){z=P.getSelectionCells();P.deleteCells(z)}
-function C(){var z=parseInt(O.value)||0;z=0>z?0:100<z?100:z;O.value=z;var B=parseInt(k.value)||0;B=0>B?0:100<B?100:B;k.value=B;var H=parseInt(S.value)||0,R=parseInt(v.value)||0;H=new mxConnectionConstraint(new mxPoint(z/100,B/100),!1,null,H,R);z=P.getConnectionPoint(e,H);B=P.getSelectionCell();if(null!=B){B.constObj=H;H=B.geometry.clone();R=P.view.scale;var g=P.view.translate;H.x=(z.x-3*R)/R-g.x;H.y=(z.y-3*R)/R-g.y;P.model.setGeometry(B,H)}}function K(z){if(z.constObj)return{x:z.constObj.point.x,
-y:z.constObj.point.y,dx:z.constObj.dx,dy:z.constObj.dy};var B=0,H=0,R=I.geometry,g=mxUtils.format((z.geometry.x+3-R.x)/R.width);z=mxUtils.format((z.geometry.y+3-R.y)/R.height);0>g?(B=g*R.width,g=0):1<g&&(B=(g-1)*R.width,g=1);0>z?(H=z*R.height,z=0):1<z&&(H=(z-1)*R.height,z=1);return{x:g,y:z,dx:parseInt(B),dy:parseInt(H)}}function M(z){if(1==P.getSelectionCount()){var B=P.getSelectionCell();z&&(B.constObj=null);z=K(B);O.value=100*z.x;k.value=100*z.y;S.value=z.dx;v.value=z.dy;T.style.visibility=""}else T.style.visibility=
+t.appendChild(P);d.appendChild(t);this.container=d},ConnectionPointsDialog=function(b,f){function m(){null!=t&&t.destroy()}var d=document.createElement("div");d.style.userSelect="none";var t=null;this.init=function(){function y(z,A,H){z=new mxCell("",new mxGeometry(z,A,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0;connectable=0;editable=0;");z.vertex=!0;z.cp=!0;z.constObj=H;return P.addCell(z)}function x(z){z=P.getSelectionCells();P.deleteCells(z)}
+function C(){var z=parseInt(O.value)||0;z=0>z?0:100<z?100:z;O.value=z;var A=parseInt(k.value)||0;A=0>A?0:100<A?100:A;k.value=A;var H=parseInt(S.value)||0,R=parseInt(v.value)||0;H=new mxConnectionConstraint(new mxPoint(z/100,A/100),!1,null,H,R);z=P.getConnectionPoint(e,H);A=P.getSelectionCell();if(null!=A){A.constObj=H;H=A.geometry.clone();R=P.view.scale;var g=P.view.translate;H.x=(z.x-3*R)/R-g.x;H.y=(z.y-3*R)/R-g.y;P.model.setGeometry(A,H)}}function K(z){if(z.constObj)return{x:z.constObj.point.x,
+y:z.constObj.point.y,dx:z.constObj.dx,dy:z.constObj.dy};var A=0,H=0,R=I.geometry,g=mxUtils.format((z.geometry.x+3-R.x)/R.width);z=mxUtils.format((z.geometry.y+3-R.y)/R.height);0>g?(A=g*R.width,g=0):1<g&&(A=(g-1)*R.width,g=1);0>z?(H=z*R.height,z=0):1<z&&(H=(z-1)*R.height,z=1);return{x:g,y:z,dx:parseInt(A),dy:parseInt(H)}}function M(z){if(1==P.getSelectionCount()){var A=P.getSelectionCell();z&&(A.constObj=null);z=K(A);O.value=100*z.x;k.value=100*z.y;S.value=z.dx;v.value=z.dy;T.style.visibility=""}else T.style.visibility=
"hidden"}var N=document.createElement("div");N.style.width="350px";N.style.height="350px";N.style.overflow="hidden";N.style.border="1px solid lightGray";N.style.boxSizing="border-box";mxEvent.disableContextMenu(N);d.appendChild(N);var P=new Graph(N);P.transparentBackground=!1;P.autoExtend=!1;P.autoScroll=!1;P.setGridEnabled(!1);P.setEnabled(!0);P.setPanning(!0);P.setConnectable(!1);P.setTooltips(!1);P.minFitScale=null;P.maxFitScale=null;P.centerZoom=!0;P.maxFitScale=2;N=f.geometry;var I=new mxCell(f.value,
-new mxGeometry(0,0,N.width,N.height),f.style+";rotatable=0;resizable=0;connectable=0;editable=0;movable=0;fillColor=none;");I.vertex=!0;P.addCell(I);P.dblClick=function(z,B){if(null!=B&&B!=I)P.setSelectionCell(B);else{B=mxUtils.convertPoint(P.container,mxEvent.getClientX(z),mxEvent.getClientY(z));mxEvent.consume(z);z=P.view.scale;var H=P.view.translate;P.setSelectionCell(y((B.x-3*z)/z-H.x,(B.y-3*z)/z-H.y))}};t=new mxKeyHandler(P);t.bindKey(46,x);t.bindKey(8,x);P.getRubberband().isForceRubberbandEvent=
+new mxGeometry(0,0,N.width,N.height),f.style+";rotatable=0;resizable=0;connectable=0;editable=0;movable=0;fillColor=none;");I.vertex=!0;P.addCell(I);P.dblClick=function(z,A){if(null!=A&&A!=I)P.setSelectionCell(A);else{A=mxUtils.convertPoint(P.container,mxEvent.getClientX(z),mxEvent.getClientY(z));mxEvent.consume(z);z=P.view.scale;var H=P.view.translate;P.setSelectionCell(y((A.x-3*z)/z-H.x,(A.y-3*z)/z-H.y))}};t=new mxKeyHandler(P);t.bindKey(46,x);t.bindKey(8,x);P.getRubberband().isForceRubberbandEvent=
function(z){return 0==z.evt.button&&(null==z.getCell()||z.getCell()==I)};P.panningHandler.isForcePanningEvent=function(z){return 2==z.evt.button};var c=P.isCellSelectable;P.isCellSelectable=function(z){return z==I?!1:c.apply(this,arguments)};P.getLinkForCell=function(){return null};var e=P.view.getState(I);N=P.getAllConnectionConstraints(e);for(var l=0;null!=N&&l<N.length;l++){var n=P.getConnectionPoint(e,N[l]);y(n.x-3,n.y-3,N[l])}P.fit(8);P.center();l=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),
-function(){P.zoomIn()},20);n=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){P.zoomOut()},20);var p=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==P.view.scale?(P.maxFitScale=8,P.fit(8)):P.zoomActual();P.center()},20),u=function(){b.prompt(mxResources.get("gridSize"),P.gridSize,function(z){!isNaN(z)&&0<z&&(P.setGridSize(z),P.setGridEnabled(!0),P.refresh())})},A=b.createToolbarButton(Editor.thinGridImage,mxResources.get("grid"),function(z){mxEvent.isShiftDown(z)?
-u():(P.setGridEnabled(!P.isGridEnabled()),P.refresh())},20);mxEvent.addListener(A,"dblclick",u);var D=b.createToolbarButton(Editor.trashImage,mxResources.get("delete"),x,20);mxUtils.setOpacity(D,10);N=document.createElement("div");N.style.display="flex";N.style.alignItems="center";N.style.paddingTop="6px";N.appendChild(l);N.appendChild(n);N.appendChild(p);N.appendChild(A);N.appendChild(D);d.appendChild(N);var G=document.createElement("input");G.setAttribute("type","number");G.setAttribute("min","1");
-G.setAttribute("value","1");G.style.width="45px";G.style.position="relative";G.style.margin="0 4px 0 4px";var E=document.createElement("select");E.style.position="relative";n=["left","right","top","bottom"];for(l=0;l<n.length;l++)p=n[l],A=document.createElement("option"),mxUtils.write(A,mxResources.get(p)),A.value=p,E.appendChild(A);l=mxUtils.button(mxResources.get("add"),function(){var z=parseInt(G.value);z=1>z?1:100<z?100:z;G.value=z;for(var B=E.value,H=I.geometry,R=[],g=0;g<z;g++){switch(B){case "left":var q=
+function(){P.zoomIn()},20);n=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){P.zoomOut()},20);var p=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==P.view.scale?(P.maxFitScale=8,P.fit(8)):P.zoomActual();P.center()},20),u=function(){b.prompt(mxResources.get("gridSize"),P.gridSize,function(z){!isNaN(z)&&0<z&&(P.setGridSize(z),P.setGridEnabled(!0),P.refresh())})},B=b.createToolbarButton(Editor.thinGridImage,mxResources.get("grid"),function(z){mxEvent.isShiftDown(z)?
+u():(P.setGridEnabled(!P.isGridEnabled()),P.refresh())},20);mxEvent.addListener(B,"dblclick",u);var D=b.createToolbarButton(Editor.trashImage,mxResources.get("delete"),x,20);mxUtils.setOpacity(D,10);N=document.createElement("div");N.style.display="flex";N.style.alignItems="center";N.style.paddingTop="6px";N.appendChild(l);N.appendChild(n);N.appendChild(p);N.appendChild(B);N.appendChild(D);d.appendChild(N);var G=document.createElement("input");G.setAttribute("type","number");G.setAttribute("min","1");
+G.setAttribute("value","1");G.style.width="45px";G.style.position="relative";G.style.margin="0 4px 0 4px";var E=document.createElement("select");E.style.position="relative";n=["left","right","top","bottom"];for(l=0;l<n.length;l++)p=n[l],B=document.createElement("option"),mxUtils.write(B,mxResources.get(p)),B.value=p,E.appendChild(B);l=mxUtils.button(mxResources.get("add"),function(){var z=parseInt(G.value);z=1>z?1:100<z?100:z;G.value=z;for(var A=E.value,H=I.geometry,R=[],g=0;g<z;g++){switch(A){case "left":var q=
H.x;var F=H.y+(g+1)*H.height/(z+1);break;case "right":q=H.x+H.width;F=H.y+(g+1)*H.height/(z+1);break;case "top":q=H.x+(g+1)*H.width/(z+1);F=H.y;break;case "bottom":q=H.x+(g+1)*H.width/(z+1),F=H.y+H.height}R.push(y(q-3,F-3))}P.setSelectionCells(R)});l.style.marginLeft="auto";N.appendChild(l);N.appendChild(G);N.appendChild(E);var T=document.createElement("div");T.style.margin="4px 0px 8px 0px";T.style.whiteSpace="nowrap";T.style.height="24px";N=document.createElement("span");mxUtils.write(N,mxResources.get("dx"));
T.appendChild(N);var O=document.createElement("input");O.setAttribute("type","number");O.setAttribute("min","0");O.setAttribute("max","100");O.style.width="45px";O.style.margin="0 4px 0 4px";T.appendChild(O);mxUtils.write(T,"%");var S=document.createElement("input");S.setAttribute("type","number");S.style.width="45px";S.style.margin="0 4px 0 4px";T.appendChild(S);mxUtils.write(T,"pt");N=document.createElement("span");mxUtils.write(N,mxResources.get("dy"));N.style.marginLeft="12px";T.appendChild(N);
var k=document.createElement("input");k.setAttribute("type","number");k.setAttribute("min","0");k.setAttribute("max","100");k.style.width="45px";k.style.margin="0 4px 0 4px";T.appendChild(k);mxUtils.write(T,"%");var v=document.createElement("input");v.setAttribute("type","number");v.style.width="45px";v.style.margin="0 4px 0 4px";T.appendChild(v);mxUtils.write(T,"pt");d.appendChild(T);M();P.getSelectionModel().addListener(mxEvent.CHANGE,function(){0<P.getSelectionCount()?mxUtils.setOpacity(D,60):
-mxUtils.setOpacity(D,10);M()});P.addListener(mxEvent.CELLS_MOVED,M);mxEvent.addListener(O,"change",C);mxEvent.addListener(k,"change",C);mxEvent.addListener(S,"change",C);mxEvent.addListener(v,"change",C);N=mxUtils.button(mxResources.get("cancel"),function(){m();b.hideDialog()});N.className="geBtn";l=mxUtils.button(mxResources.get("apply"),function(){var z=P.model.cells,B=[],H=[],R;for(R in z){var g=z[R];g.cp&&H.push(K(g))}H.sort(function(q,F){return q.x!=F.x?q.x-F.x:q.y!=F.y?q.y-F.y:q.dx!=F.dx?q.dx-
-F.dx:q.dy-F.dy});for(z=0;z<H.length;z++)0<z&&H[z].x==H[z-1].x&&H[z].y==H[z-1].y&&H[z].dx==H[z-1].dx&&H[z].dy==H[z-1].dy||B.push("["+H[z].x+","+H[z].y+",0,"+H[z].dx+","+H[z].dy+"]");b.editor.graph.setCellStyles("points","["+B.join(",")+"]",[f]);m();b.hideDialog()});l.className="geBtn gePrimaryBtn";n=mxUtils.button(mxResources.get("reset"),function(){b.editor.graph.setCellStyles("points",null,[f]);m();b.hideDialog()});n.className="geBtn";p=document.createElement("div");p.style.marginTop="10px";p.style.textAlign=
+mxUtils.setOpacity(D,10);M()});P.addListener(mxEvent.CELLS_MOVED,M);mxEvent.addListener(O,"change",C);mxEvent.addListener(k,"change",C);mxEvent.addListener(S,"change",C);mxEvent.addListener(v,"change",C);N=mxUtils.button(mxResources.get("cancel"),function(){m();b.hideDialog()});N.className="geBtn";l=mxUtils.button(mxResources.get("apply"),function(){var z=P.model.cells,A=[],H=[],R;for(R in z){var g=z[R];g.cp&&H.push(K(g))}H.sort(function(q,F){return q.x!=F.x?q.x-F.x:q.y!=F.y?q.y-F.y:q.dx!=F.dx?q.dx-
+F.dx:q.dy-F.dy});for(z=0;z<H.length;z++)0<z&&H[z].x==H[z-1].x&&H[z].y==H[z-1].y&&H[z].dx==H[z-1].dx&&H[z].dy==H[z-1].dy||A.push("["+H[z].x+","+H[z].y+",0,"+H[z].dx+","+H[z].dy+"]");b.editor.graph.setCellStyles("points","["+A.join(",")+"]",[f]);m();b.hideDialog()});l.className="geBtn gePrimaryBtn";n=mxUtils.button(mxResources.get("reset"),function(){b.editor.graph.setCellStyles("points",null,[f]);m();b.hideDialog()});n.className="geBtn";p=document.createElement("div");p.style.marginTop="10px";p.style.textAlign=
"right";b.isOffline()||p.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/shape-connection-points-customise"));b.editor.cancelFirst&&p.appendChild(N);p.appendChild(n);p.appendChild(l);b.editor.cancelFirst||p.appendChild(N);d.appendChild(p)};this.destroy=m;this.container=d};(function(){"undefined"!==typeof html4&&(html4.ATTRIBS["span::data-lucid-content"]=0,html4.ATTRIBS["span::data-lucid-type"]=0,html4.ATTRIBS["font::data-font-src"]=0);Editor.sketchFontFamily="Architects Daughter";Editor.sketchFontSource="https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter";Editor.sketchFonts=[{fontFamily:Editor.sketchFontFamily,fontUrl:decodeURIComponent(Editor.sketchFontSource)}];Editor.sketchDefaultCurveFitting="1";Editor.sketchDefaultJiggle="2";Editor.thinFormatImage=
"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0ibTM2LjUgMTguMzUtNi44NS02Ljg1IDMuMjUtMy4ycS44NS0uODUgMi4wMjUtLjg1IDEuMTc1IDAgMi4wMjUuODVsMi43NSAyLjhxLjg1LjguODUgMnQtLjg1IDJaTTYuODUgNDEuMXYtNi45bDkuNTUtOS41NUw1LjUgMTMuN2w3LjgtNy44NSAxMSAxMSA1LjM1LTUuMzUgNi44NSA2Ljg1LTUuMzUgNS4zNSAxMSAxMS03Ljg1IDcuNzUtMTAuOTUtMTAuOS05LjYgOS41NVptMTEuMi0xOC4wNSA0LjY1LTQuNi00LjA1LTQuMDUtMi4zNSAyLjQtMS42LTEuNiAyLjM1LTIuNC0zLjc1LTMuNzUtNC42IDQuNjVabTE2LjIgMTYuMjUgNC42NS00LjY1LTMuNzUtMy43NS0yLjQgMi40LTEuNi0xLjYgMi40LTIuNC00LjA1LTQtNC42IDQuNjVabS0yNS4xLS40NWgzLjZsMjAuNS0yMC40NS0zLjY1LTMuNjVMOS4xNSAzNS4yWiIvPjwvc3ZnPg==";
Editor.thinGestureImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0iTTI4IDQxLjZxLTIuNSAwLTQuMDc1LTEuNjUtMS41NzUtMS42NS0xLjU3NS00LjM1IDAtMi4zNSAxLjEtNC4xIDEuMS0xLjc1IDIuODI1LTIuOTUgMS43MjUtMS4yIDMuNy0xLjgyNVQzMy42NSAyNnEtLjE1LTMuMDUtMS4yNS00LjQyNVQyOS4yNSAyMC4ycS0yLjMgMC00LjE3NSAxLjV0LTQuNDI1IDQuOTVxLTIuNjUgMy40NS00LjYgNS4xLTEuOTUgMS42NS00LjM1IDEuNjUtMi4xIDAtMy42NS0xLjM3NVE2LjUgMzAuNjUgNi41IDI3LjQ1cTAtMiAxLjItNC41MjUgMS4yLTIuNTI1IDMuNS02LjE3NSAxLjMtMS44NSAxLjk3NS0zLjIyNXQuNjc1LTIuMzc1cTAtLjctLjM1LTEuMDUtLjM1LS4zNS0xLjA1LS4zNS0uNzUgMC0xLjYuNDc1UTEwIDEwLjcgOSAxMS45TDcgOS44cTEuMzUtMS41NSAyLjcyNS0yLjI3NVExMS4xIDYuOCAxMi41IDYuOHExLjkgMCAzLjEgMS4yNSAxLjIgMS4yNSAxLjIgMy4yIDAgMS44LS45NzUgMy41NzVRMTQuODUgMTYuNiAxMy4wNSAxOS4zcS0xLjk1IDIuOTUtMi43NzUgNC43dC0uODI1IDMuNjVxMCAxLjYuNzUgMi4yLjc1LjYgMS43NS42IDEuNDUgMCAyLjgyNS0xLjMgMS4zNzUtMS4zIDMuNTc1LTQuMTUgMi45NS0zLjggNS41MjUtNS43NzUgMi41NzUtMS45NzUgNS42NzUtMS45NzUgMy4xNSAwIDUgMi4zMjVUMzYuNiAyNS45aDQuOXYyLjk1aC00LjlxLS40NSA3LjM1LTMuMiAxMC4wNS0yLjc1IDIuNy01LjQgMi43Wm0uMS0yLjk1cTEuODUgMCAzLjY1LTIuMjUgMS44LTIuMjUgMi03LjUtMi44LjE1LTUuNjI1IDIuMDI1VDI1LjMgMzUuOXEwIDEuMy43NSAyLjAyNS43NS43MjUgMi4wNS43MjVaIi8+PC9zdmc+";
@@ -12929,7 +12943,7 @@ var Y=mxUtils.bind(this,function(da,ma){if(g()){da=V.getAllTags();for(ma=0;ma<da
ea.style.margin="0 2px";ea.style.display="inline-block";ea.style.cursor="pointer";var ca=ea.cloneNode(!1);ca.style.backgroundImage="url("+Editor.visibleImage+")";ca.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(ca,"click",function(da){V.setHiddenTags([]);mxEvent.isShiftDown(da)||(W=V.hiddenTags.slice());L();V.refresh();mxEvent.consume(da)});ba.appendChild(ca);null!=F&&(ea=ea.cloneNode(!1),ea.style.backgroundImage="url("+Editor.plusImage+")",ea.setAttribute("title",mxResources.get("add")),
mxEvent.addListener(ea,"click",function(da){F(W,function(ma){W=ma;Y()});mxEvent.consume(da)}),ba.appendChild(ea));X.appendChild(ba)}null!=J&&ba.appendChild(J);return{div:X,refresh:Y}};Graph.prototype.getCustomFonts=function(){var g=this.extFonts;g=null!=g?g.slice():[];for(var q in Graph.customFontElements){var F=Graph.customFontElements[q];g.push({name:F.name,url:F.url})}return g};Graph.prototype.setFont=function(g,q){Graph.addFont(g,q);var F=Editor.guid();document.execCommand("fontname",!1,F);for(var J=
this.cellEditor.textarea.getElementsByTagName("font"),L=!1,Q=0;Q<J.length;Q++)J[Q].getAttribute("face")==F&&(L=!0,J[Q].setAttribute("face",g),null!=q?J[Q].setAttribute("data-font-src",q):J[Q].removeAttribute("data-font-src"));L||document.execCommand("fontname",!1,g)};var u=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return u.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;
-if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var g=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=g)for(var q in g)this.globalVars[q]=g[q]}catch(F){null!=window.console&&console.log("Error in vars URL parameter: "+F)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var A=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(g){var q=A.apply(this,arguments);
+if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var g=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=g)for(var q in g)this.globalVars[q]=g[q]}catch(F){null!=window.console&&console.log("Error in vars URL parameter: "+F)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var B=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(g){var q=B.apply(this,arguments);
null==q&&null!=this.globalVars&&(q=this.globalVars[g]);return q};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var g=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(g.ownerDocument)).decode(g)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var D=Graph.prototype.getSvg;Graph.prototype.getSvg=function(g,q,F,J,L,Q,U,V,W,X,Z,Y,ba,ea,ca,da){var ma=D.apply(this,arguments);if(null!=Y){var aa=ma.getAttribute("style");
null==aa&&(aa="");Y="auto"==Y?"none"==this.getAdaptiveColors()?"light":"light dark":Y;ma.setAttribute("style",aa+(" color-scheme: "+Y+";"))}var ia=this.getCustomFonts();if(Z&&0<ia.length){var ka=ma.ownerDocument;aa=null!=ka.createElementNS?ka.createElementNS(mxConstants.NS_SVG,"style"):ka.createElement("style");null!=ka.setAttributeNS?aa.setAttributeNS("type","text/css"):aa.setAttribute("type","text/css");for(var ta="",sa="",fa=0;fa<ia.length;fa++){var ra=ia[fa].name,ua=ia[fa].url;Graph.isCssFontUrl(ua)?
ta+="@import url("+Graph.rewriteGoogleFontUrl(ua)+");\n":sa+='@font-face {\nfont-family: "'+ra+'";\nsrc: url("'+ua+'");\n}\n'}aa.appendChild(ka.createTextNode(ta+sa));ma.getElementsByTagName("defs")[0].appendChild(aa)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(ma);this.mathEnabled&&(document.body.appendChild(ma),Editor.MathJaxRender(ma),ma.parentNode.removeChild(ma),aa=ma.ownerDocument.getElementById("MJX-SVG-styles"),null!=
@@ -12993,22 +13007,22 @@ mxEvent.consume(Ba)});var wa=document.createElement("input");wa.setAttribute("ty
Da.style.marginTop="10px";Da.checked=null!=g.lastPrintInclude?g.lastPrintInclude:Editor.defaultIncludeDiagram;null==F||mxClient.IS_CHROMEAPP||"draw.io"!=g.getServiceName()||(mxUtils.br(Q),Q.appendChild(Da),q=document.createElement("span"),q.style.marginLeft="4px",mxUtils.write(q,mxResources.get("includeCopyOfMyDiagram")),Q.appendChild(q),mxEvent.addListener(q,"click",function(Ba){Da.checked=!0;mxEvent.consume(Ba)}));U.appendChild(Q);q=document.createElement("div");q.style.marginTop="40px";q.style.textAlign=
"right";q.style.whiteSpace="nowrap";g.isOffline()||null!=F||q.appendChild(g.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));Q=mxUtils.button(mxResources.get("cancel"),function(){g.hideDialog()});Q.className="geBtn";g.editor.cancelFirst&&q.appendChild(Q);PrintDialog.previewEnabled&&null==F&&(V=mxUtils.button(mxResources.get("preview"),function(){try{g.hideDialog(),L(!1)}catch(Ba){g.handleError(Ba)}}),V.className="geBtn",q.appendChild(V));V=mxUtils.button(mxResources.get(null!=F?"export":
PrintDialog.previewEnabled?"print":"ok"),function(){try{g.hideDialog(),L(!0)}catch(Ba){g.handleError(Ba)}});V.className="geBtn gePrimaryBtn";q.appendChild(V);g.editor.cancelFirst||q.appendChild(Q);U.appendChild(q);if(g.editor.isChromelessView()){var Ea=function(){Editor.isDarkMode()?(U.classList.add("geDarkMode"),U.style.colorScheme="dark"):(U.classList.remove("geDarkMode"),U.style.colorScheme="light")};g.addListener("darkModeChanged",Ea);Ea();var Na=function(Ba,Ca){Ba=Ca.getProperty("dialog");U.parentNode==
-Ba.container&&(g.editor.removeListener(Na),g.removeListener(Ea))};g.editor.addListener("hideDialog",Na)}this.container=U};var B=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||(this.page.viewState.background=this.color);if(!this.ignoreImage){var g=this.image;null!=g&&null!=g.src&&Graph.isPageLink(g.src)&&(g={originalSrc:g.src});this.page.viewState.backgroundImage=
-g}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else B.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&
+Ba.container&&(g.editor.removeListener(Na),g.removeListener(Ea))};g.editor.addListener("hideDialog",Na)}this.container=U};var A=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||(this.page.viewState.background=this.color);if(!this.ignoreImage){var g=this.image;null!=g&&null!=g.src&&Graph.isPageLink(g.src)&&(g={originalSrc:g.src});this.page.viewState.backgroundImage=
+g}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else A.apply(this,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&&(g=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=g?g:"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"),R=new Image;R.onload=function(){try{H.getContext("2d").drawImage(R,
0,0);var g=H.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=g&&6<g.length}catch(q){}};R.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(g){}Editor.prototype.useCanvasForExport=!1})();
(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(f,m,d){d.ui=f.ui;return m};b.afterDecode=function(f,m,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(f,m,d){d.ui=f.ui;return m};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.0.6";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(f,m,d){d.ui=f.ui;return m};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.0.7";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"}};
-EditorUi.logError=function(c,e,l,n,p,u,A){if(null!=c){p=null!=p?p:Error(c);p.stack=null!=p.stack?p.stack:"";u=null!=u?u:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0>c.indexOf("extension:")&&0>c.indexOf("ResizeObserver loop completed with undelivered notifications")&&0>p.stack.indexOf("extension:")&&0>p.stack.indexOf("<anonymous>:")&&
-0>p.stack.indexOf("/math/es5/")&&(EditorUi.lastErrorMessage=c,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?severity="+u+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(l)+(null!=n?":colno:"+encodeURIComponent(n):"")+(""!=p.stack?"&stack="+encodeURIComponent(p.stack):""))}catch(D){}try{A||null==window.console||console.error(u,c,e,l,n,p)}catch(D){}}};EditorUi.logEvent=
+EditorUi.logError=function(c,e,l,n,p,u,B){if(null!=c){p=null!=p?p:Error(c);p.stack=null!=p.stack?p.stack:"";u=null!=u?u:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0>c.indexOf("extension:")&&0>c.indexOf("ResizeObserver loop completed with undelivered notifications")&&0>p.stack.indexOf("extension:")&&0>p.stack.indexOf("<anonymous>:")&&
+0>p.stack.indexOf("/math/es5/")&&(EditorUi.lastErrorMessage=c,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?severity="+u+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(l)+(null!=n?":colno:"+encodeURIComponent(n):"")+(""!=p.stack?"&stack="+encodeURIComponent(p.stack):""))}catch(D){}try{B||null==window.console||console.error(u,c,e,l,n,p)}catch(D){}}};EditorUi.logEvent=
function(c){if("1"==urlParams.dev)EditorUi.debug("logEvent",c);else if(EditorUi.enableLogging)try{var e=null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"";(new Image).src=e+"/images/1x1.png?v="+encodeURIComponent(EditorUi.VERSION)+(null!=c?"&data="+encodeURIComponent(JSON.stringify(c)):"")}catch(l){}};EditorUi.sendReport=function(c,e){if("1"==urlParams.dev)EditorUi.debug("sendReport",c);else if(EditorUi.enableLogging)try{e=null!=e?e:5E4,c.length>e&&(c=c.substring(0,e)+"\n...[SHORTENED]"),mxUtils.post("/email",
"version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(c))}catch(l){}};EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var c=[(new Date).toISOString()],e=0;e<arguments.length;e++)c.push(arguments[e]);console.log.apply(console,c)}}catch(l){}};EditorUi.removeChildNodes=function(c){for(;null!=c.firstChild;)c.removeChild(c.firstChild)};EditorUi.embedSvgImages=function(c){c=c.getElementsByTagName("image");
for(var e=[],l=0;l<c.length;l++)e.push(c[l]);for(l=0;l<e.length;l++)EditorUi.replaceSvgImage(e[l])};EditorUi.replaceSvgImage=function(c){try{var e=null;e=null==c.getAttributeNS?c.getAttribute("xlink:href"):c.getAttributeNS(mxConstants.NS_XLINK,"href");var l=EditorUi.getSvgSubtree(e);if(null!=l&&"svg"==l.nodeName){l.setAttribute("x",c.getAttribute("x"));l.setAttribute("y",c.getAttribute("y"));l.setAttribute("width",c.getAttribute("width"));l.setAttribute("height",c.getAttribute("height"));l.style.fontFamily=
"initial";var n=mxUtils.createElementNs(l.ownerDocument,mxConstants.NS_SVG,"g");n.appendChild(l);c.hasAttribute("transform")&&n.setAttribute("transform",c.getAttribute("transform"));c.parentNode.replaceChild(n,c)}}catch(p){}};EditorUi.getSvgSubtree=function(c){var e=Graph.getSvgFromDataUri(c);c=null;if(null!=e){c=Graph.sanitizeNode(mxUtils.parseXml(e).documentElement);e=c.getElementsByTagName("style");if(0<e.length){var l="svg-image-"+Editor.guid();c.setAttribute("id",l);for(var n=document.implementation.createHTMLDocument(""),
-p=document.createElement("style"),u=0;u<e.length;u++){p.textContent=e[u].textContent;n.body.appendChild(p);for(var A="",D=0;D<p.sheet.cssRules.length;D++){var G=p.sheet.cssRules[D];if(null!=G.selectorText){for(var E=G.selectorText.split(","),T=0;T<E.length;T++)E[T]="#"+l+" "+E[T];G.selectorText=E.join(",")}A+=G.cssText+"\n"}e[u].textContent=A}}e=c.getElementsByTagName("*");for(l=0;l<e.length;l++)e[l].removeAttribute("data-cell-id")}return c};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';
+p=document.createElement("style"),u=0;u<e.length;u++){p.textContent=e[u].textContent;n.body.appendChild(p);for(var B="",D=0;D<p.sheet.cssRules.length;D++){var G=p.sheet.cssRules[D];if(null!=G.selectorText){for(var E=G.selectorText.split(","),T=0;T<E.length;T++)E[T]="#"+l+" "+E[T];G.selectorText=E.join(",")}B+=G.cssText+"\n"}e[u].textContent=B}}e=c.getElementsByTagName("*");for(l=0;l<e.length;l++)e[l].removeAttribute("data-cell-id")}return c};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';
EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode=null;EditorUi.prototype.timeout=Editor.prototype.timeout;EditorUi.prototype.defaultCustomShapeStyle="shape=stencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE=);whiteSpace=wrap;html=1;";
EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=1200;EditorUi.prototype.maxTextWidth=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=2E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.maxTextBytes=5E5;EditorUi.prototype.currentFile=null;EditorUi.prototype.printPdfExport=!1;EditorUi.prototype.pdfPageExport=!0;EditorUi.prototype.formatEnabled="0"!=urlParams.format;EditorUi.prototype.insertTemplateEnabled=!0;EditorUi.prototype.closableScratchpad=
!0;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportTheme="auto";EditorUi.prototype.embedExportBackground=null;EditorUi.prototype.shareCursorPosition=!0;EditorUi.prototype.showRemoteCursors=!0;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;EditorUi.prototype.webpSupported=!1;try{var c=document.createElement("canvas");EditorUi.prototype.canvasSupported=!(!c.getContext||!c.getContext("2d"))}catch(p){}try{var e=document.createElement("canvas"),
@@ -13018,119 +13032,119 @@ e,l)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalDat
EditorUi.prototype.isShareCursorPosition=function(){return this.shareCursorPosition};EditorUi.prototype.setShowRemoteCursors=function(c){this.showRemoteCursors=c;this.fireEvent(new mxEventObject("showRemoteCursorsChanged"))};EditorUi.prototype.isShowRemoteCursors=function(){return this.showRemoteCursors};EditorUi.prototype.setMathEnabled=function(c){var e=this.editor.graph;e.mathEnabled=c;null!=e.view.backgroundImage&&(e.view.backgroundImage.destroy(),e.view.backgroundImage=null);this.editor.updateGraphComponents();
e.refresh();e.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.setAdaptiveColors=function(c){this.editor.graph.setAdaptiveColors(c);this.editor.graph.view.clear();this.fireEvent(new mxEventObject("adaptiveColorsChanged"))};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=
function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,e,l){var n=null==c||null==e;l=null!=l?l:24;var p=new Spinner({lines:12,length:l,width:Math.round(l/3),radius:Math.round(l/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",
-speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),u=this.timeout,A=p.spin,D=null,G=null,E=mxUtils.bind(this,function(O){null!=O&&O()});p.spin=function(O,S,k,v){v=null!=v?v:u;var z=!1;if(!this.active){var B=Date.now();null!=k&&(D=window.setTimeout(function(){p.stop();D=null;k({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:G})},v));A.call(this,O);this.active=!0;null!=S&&(n&&(e=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,c=document.body.clientWidth/
+speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),u=this.timeout,B=p.spin,D=null,G=null,E=mxUtils.bind(this,function(O){null!=O&&O()});p.spin=function(O,S,k,v){v=null!=v?v:u;var z=!1;if(!this.active){var A=Date.now();null!=k&&(D=window.setTimeout(function(){p.stop();D=null;k({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:G})},v));B.call(this,O);this.active=!0;null!=S&&(n&&(e=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,c=document.body.clientWidth/
2-2),z=document.createElement("div"),z.className="geSpinnerStatus",z.style.position="absolute",z.style.whiteSpace="nowrap",z.style.background="#4B4243",z.style.color="white",z.style.fontFamily=Editor.defaultHtmlFont,z.style.fontSize="9pt",z.style.padding="6px",z.style.paddingLeft="10px",z.style.paddingRight="10px",z.style.zIndex=2E9,z.style.left=Math.max(0,c)+"px",z.style.top=Math.max(0,e+70)+"px",mxUtils.setPrefixedStyle(z.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(z.style,"transform",
-"translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(z.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=S.substring(S.length-3,S.length)&&"!"!=S.charAt(S.length-1)&&(S+="..."),z.innerHTML=mxUtils.htmlEntities(S),O.appendChild(z),p.status=z);this.pause=mxUtils.bind(this,function(){var H=E;this.active&&(v=Math.max(0,v-(Date.now()-B)),H=mxUtils.bind(this,function(R){this.spin(O,S,k,v);if(null!=R)try{R(),G=mxUtils.bind(this,function(){this.spin(O,S,k,v);try{R()}catch(g){null!=k&&k(g)}})}catch(g){null!=
+"translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(z.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=S.substring(S.length-3,S.length)&&"!"!=S.charAt(S.length-1)&&(S+="..."),z.innerHTML=mxUtils.htmlEntities(S),O.appendChild(z),p.status=z);this.pause=mxUtils.bind(this,function(){var H=E;this.active&&(v=Math.max(0,v-(Date.now()-A)),H=mxUtils.bind(this,function(R){this.spin(O,S,k,v);if(null!=R)try{R(),G=mxUtils.bind(this,function(){this.spin(O,S,k,v);try{R()}catch(g){null!=k&&k(g)}})}catch(g){null!=
k&&k(g)}}));this.stop();return H});z=!0}return z};var T=p.stop;p.stop=function(){T.call(this);this.active&&(this.active=!1,null!=D&&(window.clearTimeout(D),D=null),null!=p.status&&null!=p.status.parentNode&&p.status.parentNode.removeChild(p.status),p.status=null)};p.pause=function(){return E};return p};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),l=this.editor.extractGraphModel(e.documentElement,!0);return null!=l&&0==l.getElementsByTagName("parsererror").length}catch(n){}return!1};
EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};
EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var e=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var l=
-e.getFunction,n=this.editor.graph,p=this;e.getFunction=function(u){if(n.isSelectionEmpty()&&null!=p.pages&&0<p.pages.length){var A=p.getSelectedPageIndex();if(mxEvent.isShiftDown(u)){if(37==u.keyCode)return function(){0<A&&p.movePage(A,A-1)};if(38==u.keyCode)return function(){0<A&&p.movePage(A,0)};if(39==u.keyCode)return function(){A<p.pages.length-1&&p.movePage(A,A+1)};if(40==u.keyCode)return function(){A<p.pages.length-1&&p.movePage(A,p.pages.length-1)}}else if(mxEvent.isControlDown(u)||mxClient.IS_MAC&&
-mxEvent.isMetaDown(u)){if(37==u.keyCode)return function(){0<A&&p.selectNextPage(!1)};if(38==u.keyCode)return function(){0<A&&p.selectPage(p.pages[0])};if(39==u.keyCode)return function(){A<p.pages.length-1&&p.selectNextPage(!0)};if(40==u.keyCode)return function(){A<p.pages.length-1&&p.selectPage(p.pages[p.pages.length-1])}}}return!(65<=u.keyCode&&90>=u.keyCode)||n.isSelectionEmpty()||mxEvent.isAltDown(u)||mxEvent.isShiftDown(u)||mxEvent.isControlDown(u)||mxClient.IS_MAC&&mxEvent.isMetaDown(u)?l.apply(this,
+e.getFunction,n=this.editor.graph,p=this;e.getFunction=function(u){if(n.isSelectionEmpty()&&null!=p.pages&&0<p.pages.length){var B=p.getSelectedPageIndex();if(mxEvent.isShiftDown(u)){if(37==u.keyCode)return function(){0<B&&p.movePage(B,B-1)};if(38==u.keyCode)return function(){0<B&&p.movePage(B,0)};if(39==u.keyCode)return function(){B<p.pages.length-1&&p.movePage(B,B+1)};if(40==u.keyCode)return function(){B<p.pages.length-1&&p.movePage(B,p.pages.length-1)}}else if(mxEvent.isControlDown(u)||mxClient.IS_MAC&&
+mxEvent.isMetaDown(u)){if(37==u.keyCode)return function(){0<B&&p.selectNextPage(!1)};if(38==u.keyCode)return function(){0<B&&p.selectPage(p.pages[0])};if(39==u.keyCode)return function(){B<p.pages.length-1&&p.selectNextPage(!0)};if(40==u.keyCode)return function(){B<p.pages.length-1&&p.selectPage(p.pages[p.pages.length-1])}}}return!(65<=u.keyCode&&90>=u.keyCode)||n.isSelectionEmpty()||mxEvent.isAltDown(u)||mxEvent.isShiftDown(u)||mxEvent.isControlDown(u)||mxClient.IS_MAC&&mxEvent.isMetaDown(u)?l.apply(this,
arguments):null}}return e};var f=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var e=f.apply(this,arguments);if(null==e)try{var l=c.indexOf("&lt;mxfile ");if(0<=l){var n=c.lastIndexOf("&lt;/mxfile&gt;");n>l&&(e=c.substring(l,n+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else{var p=mxUtils.parseXml(c),u=this.editor.extractGraphModel(p.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);
-e=null!=u?mxUtils.getXml(u):""}}catch(A){}return e};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var e=c.indexOf('<meta charset="utf-8">');0<=e&&(c=c.slice(0,e)+'<meta charset="utf-8"/>'+c.slice(e+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.replaceFileData=function(c,e){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",e);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=null!=c?this.editor.extractGraphModel(c,
-!0):null;null!=l&&(c=l);if(null!=c){l=this.editor.graph;l.model.beginUpdate();try{var n=null!=this.pages?this.pages.slice():null,p=c.getElementsByTagName("diagram");if(1<p.length||1==p.length&&p[0].hasAttribute("name")){this.fileNode=c;this.pages=null!=this.pages?this.pages:[];for(var u=p.length-1;0<=u;u--){var A=this.updatePageRoot(new DiagramPage(p[u]));null==A.getName()&&A.setName(mxResources.get("pageWithNumber",[u+1]));l.model.execute(new ChangePage(this,A,0==u?A:null,0))}}else null==this.fileNode&&
+e=null!=u?mxUtils.getXml(u):""}}catch(B){}return e};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var e=c.indexOf('<meta charset="utf-8">');0<=e&&(c=c.slice(0,e)+'<meta charset="utf-8"/>'+c.slice(e+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.replaceFileData=function(c,e){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",e);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=null!=c?this.editor.extractGraphModel(c,
+!0):null;null!=l&&(c=l);if(null!=c){l=this.editor.graph;l.model.beginUpdate();try{var n=null!=this.pages?this.pages.slice():null,p=c.getElementsByTagName("diagram");if(1<p.length||1==p.length&&p[0].hasAttribute("name")){this.fileNode=c;this.pages=null!=this.pages?this.pages:[];for(var u=p.length-1;0<=u;u--){var B=this.updatePageRoot(new DiagramPage(p[u]));null==B.getName()&&B.setName(mxResources.get("pageWithNumber",[u+1]));l.model.execute(new ChangePage(this,B,0==u?B:null,0))}}else null==this.fileNode&&
(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=n)for(u=0;u<n.length;u++)l.model.execute(new ChangePage(this,
-n[u],null));var D=this.getCurrentFile();null!=D&&D.fileReplaced(e)}finally{l.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,e,l,n,p,u,A,D,G,E,T,O,S){e=null!=e?e:this.editor.graph;p=null!=p?p:!1;G=null!=G?G:!0;T=null!=T?T:!Editor.defaultCompressed;var k=null;if(null==l||l.getMode()==App.MODE_DEVICE||l.getMode()==App.MODE_BROWSER)var v="_blank";else k=v=n;if(null==c)return"";var z=c;if("mxfile"!=z.nodeName.toLowerCase()){if(T){var B=c.ownerDocument.createElement("diagram");B.setAttribute("name",
-mxResources.get("pageWithNumber",[1]));B.setAttribute("id",Editor.guid());B.appendChild(c)}else{B=Graph.zapGremlins(mxUtils.getXml(c));z=Graph.compress(B);if(Graph.decompress(z)!=B)return B;B=c.ownerDocument.createElement("diagram");B.setAttribute("name",mxResources.get("pageWithNumber",[1]));B.setAttribute("id",Editor.guid());mxUtils.setTextContent(B,z)}z=c.ownerDocument.createElement("mxfile");z.appendChild(B)}E?(z=z.cloneNode(!0),z.removeAttribute("modified"),z.removeAttribute("host"),z.removeAttribute("agent"),
+n[u],null));var D=this.getCurrentFile();null!=D&&D.fileReplaced(e)}finally{l.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,e,l,n,p,u,B,D,G,E,T,O,S){e=null!=e?e:this.editor.graph;p=null!=p?p:!1;G=null!=G?G:!0;T=null!=T?T:!Editor.defaultCompressed;var k=null;if(null==l||l.getMode()==App.MODE_DEVICE||l.getMode()==App.MODE_BROWSER)var v="_blank";else k=v=n;if(null==c)return"";var z=c;if("mxfile"!=z.nodeName.toLowerCase()){if(T){var A=c.ownerDocument.createElement("diagram");A.setAttribute("name",
+mxResources.get("pageWithNumber",[1]));A.setAttribute("id",Editor.guid());A.appendChild(c)}else{A=Graph.zapGremlins(mxUtils.getXml(c));z=Graph.compress(A);if(Graph.decompress(z)!=A)return A;A=c.ownerDocument.createElement("diagram");A.setAttribute("name",mxResources.get("pageWithNumber",[1]));A.setAttribute("id",Editor.guid());mxUtils.setTextContent(A,z)}z=c.ownerDocument.createElement("mxfile");z.appendChild(A)}E?(z=z.cloneNode(!0),z.removeAttribute("modified"),z.removeAttribute("host"),z.removeAttribute("agent"),
z.removeAttribute("etag"),z.removeAttribute("userAgent"),z.removeAttribute("version"),z.removeAttribute("editor"),z.removeAttribute("type")):(z.removeAttribute("userAgent"),z.removeAttribute("modified"),z.removeAttribute("version"),z.removeAttribute("editor"),z.removeAttribute("pages"),z.removeAttribute("type"),z.removeAttribute("etag"),mxClient.IS_CHROMEAPP?z.setAttribute("host","Chrome"):EditorUi.isElectronApp?z.setAttribute("host","Electron"):z.setAttribute("host",window.location.hostname),z.setAttribute("agent",
-null!=navigator.userAgent?navigator.userAgent:navigator.appVersion),z.setAttribute("version",EditorUi.VERSION),1<z.getElementsByTagName("diagram").length&&null!=this.pages&&z.setAttribute("pages",this.pages.length));null!=O&&(z=z.cloneNode(!0),z.setAttribute("scale",O));null!=S&&(z=z.cloneNode(!0),z.setAttribute("border",S));c=T?mxUtils.getPrettyXml(z):mxUtils.getXml(z);if(!u&&!p&&(A||null!=l&&/(\.html)$/i.test(l.getTitle())))c=this.getHtml2(mxUtils.getXml(z),e,null!=l?l.getTitle():null,v,k);else if(u||
+null!=navigator.userAgent?navigator.userAgent:navigator.appVersion),z.setAttribute("version",EditorUi.VERSION),1<z.getElementsByTagName("diagram").length&&null!=this.pages&&z.setAttribute("pages",this.pages.length));null!=O&&(z=z.cloneNode(!0),z.setAttribute("scale",O));null!=S&&(z=z.cloneNode(!0),z.setAttribute("border",S));c=T?mxUtils.getPrettyXml(z):mxUtils.getXml(z);if(!u&&!p&&(B||null!=l&&/(\.html)$/i.test(l.getTitle())))c=this.getHtml2(mxUtils.getXml(z),e,null!=l?l.getTitle():null,v,k);else if(u||
!p&&null!=l&&/(\.svg)$/i.test(l.getTitle()))null==l||l.getMode()!=App.MODE_DEVICE&&l.getMode()!=App.MODE_BROWSER||(n=null),l=this.getSvgFileProperties(z),c=this.getEmbeddedSvg(c,e,n,null,D,G,k,null,null,l.scale,l.border,null,Editor.svgFileTheme);return c};EditorUi.prototype.getXmlFileData=function(c,e,l,n){c=null!=c?c:!0;e=null!=e?e:!1;l=null!=l?l:!Editor.defaultCompressed;var p=this.editor.getGraphXml(c,n);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(G){var E=G.getElementsByTagName("mxGraphModel"),
T=0<E.length?E[0]:null;E=G;null==T&&l?(T=mxUtils.getNodeValue(G),0<T.length&&(T=Graph.decompress(T),null!=T&&0<T.length&&(E=G.cloneNode(!1),E.appendChild(mxUtils.parseXml(T).documentElement)))):null==T||l?E=G.cloneNode(!0):(E=G.cloneNode(!1),mxUtils.setTextContent(E,Graph.compressNode(T)));p.appendChild(E)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(p),p=this.fileNode.cloneNode(!1),e)c(this.currentPage.node);else for(e=0;e<this.pages.length;e++){var u=this.pages[e],
-A=u.node;if(u!=this.currentPage)if(u.needsUpdate){var D=new mxCodec(mxUtils.createXmlDocument());D=D.encode(new mxGraphModel(u.root));this.editor.graph.saveViewState(u.viewState,D,null,n);EditorUi.removeChildNodes(A);A.appendChild(D);delete u.needsUpdate}else n&&(this.updatePageRoot(u),null!=u.viewState.backgroundImage&&(null!=u.viewState.backgroundImage.originalSrc?u.viewState.backgroundImage=this.createImageForPageLink(u.viewState.backgroundImage.originalSrc,u):Graph.isPageLink(u.viewState.backgroundImage.src)&&
-(u.viewState.backgroundImage=this.createImageForPageLink(u.viewState.backgroundImage.src,u))),null!=u.viewState.backgroundImage&&null!=u.viewState.backgroundImage.originalSrc&&(D=new mxCodec(mxUtils.createXmlDocument()),D=D.encode(new mxGraphModel(u.root)),this.editor.graph.saveViewState(u.viewState,D,null,n),A=A.cloneNode(!1),A.appendChild(D)));c(A)}return p};EditorUi.prototype.anonymizeString=function(c,e){for(var l=[],n=0;n<c.length;n++){var p=c.charAt(n);0<=EditorUi.ignoredAnonymizedChars.indexOf(p)?
+B=u.node;if(u!=this.currentPage)if(u.needsUpdate){var D=new mxCodec(mxUtils.createXmlDocument());D=D.encode(new mxGraphModel(u.root));this.editor.graph.saveViewState(u.viewState,D,null,n);EditorUi.removeChildNodes(B);B.appendChild(D);delete u.needsUpdate}else n&&(this.updatePageRoot(u),null!=u.viewState.backgroundImage&&(null!=u.viewState.backgroundImage.originalSrc?u.viewState.backgroundImage=this.createImageForPageLink(u.viewState.backgroundImage.originalSrc,u):Graph.isPageLink(u.viewState.backgroundImage.src)&&
+(u.viewState.backgroundImage=this.createImageForPageLink(u.viewState.backgroundImage.src,u))),null!=u.viewState.backgroundImage&&null!=u.viewState.backgroundImage.originalSrc&&(D=new mxCodec(mxUtils.createXmlDocument()),D=D.encode(new mxGraphModel(u.root)),this.editor.graph.saveViewState(u.viewState,D,null,n),B=B.cloneNode(!1),B.appendChild(D)));c(B)}return p};EditorUi.prototype.anonymizeString=function(c,e){for(var l=[],n=0;n<c.length;n++){var p=c.charAt(n);0<=EditorUi.ignoredAnonymizedChars.indexOf(p)?
l.push(p):isNaN(parseInt(p))?p.toLowerCase()!=p?l.push(String.fromCharCode(65+Math.round(25*Math.random()))):p.toUpperCase()!=p?l.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(p)?l.push(" "):l.push("?"):l.push(e?"0":Math.round(9*Math.random()))}return l.join("")};EditorUi.prototype.anonymizePatch=function(c){if(null!=c[EditorUi.DIFF_INSERT])for(var e=0;e<c[EditorUi.DIFF_INSERT].length;e++)try{var l=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][e].data).documentElement.cloneNode(!1);
-null!=l.getAttribute("name")&&l.setAttribute("name",this.anonymizeString(l.getAttribute("name")));c[EditorUi.DIFF_INSERT][e].data=mxUtils.getXml(l)}catch(u){c[EditorUi.DIFF_INSERT][e].data=u.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var n in c[EditorUi.DIFF_UPDATE]){var p=c[EditorUi.DIFF_UPDATE][n];null!=p.name&&(p.name=this.anonymizeString(p.name));null!=p.cells&&(e=mxUtils.bind(this,function(u){var A=p.cells[u];if(null!=A){for(var D in A)null!=A[D].value&&(A[D].value="["+A[D].value.length+"]"),
-null!=A[D].xmlValue&&(A[D].xmlValue="["+A[D].xmlValue.length+"]"),null!=A[D].style&&(A[D].style="["+A[D].style.length+"]"),mxUtils.isEmptyObject(A[D])&&delete A[D];mxUtils.isEmptyObject(A)&&delete p.cells[u]}}),e(EditorUi.DIFF_INSERT),e(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(p.cells)&&delete p.cells);mxUtils.isEmptyObject(p)&&delete c[EditorUi.DIFF_UPDATE][n]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,
+null!=l.getAttribute("name")&&l.setAttribute("name",this.anonymizeString(l.getAttribute("name")));c[EditorUi.DIFF_INSERT][e].data=mxUtils.getXml(l)}catch(u){c[EditorUi.DIFF_INSERT][e].data=u.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var n in c[EditorUi.DIFF_UPDATE]){var p=c[EditorUi.DIFF_UPDATE][n];null!=p.name&&(p.name=this.anonymizeString(p.name));null!=p.cells&&(e=mxUtils.bind(this,function(u){var B=p.cells[u];if(null!=B){for(var D in B)null!=B[D].value&&(B[D].value="["+B[D].value.length+"]"),
+null!=B[D].xmlValue&&(B[D].xmlValue="["+B[D].xmlValue.length+"]"),null!=B[D].style&&(B[D].style="["+B[D].style.length+"]"),mxUtils.isEmptyObject(B[D])&&delete B[D];mxUtils.isEmptyObject(B)&&delete p.cells[u]}}),e(EditorUi.DIFF_INSERT),e(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(p.cells)&&delete p.cells);mxUtils.isEmptyObject(p)&&delete c[EditorUi.DIFF_UPDATE][n]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,
e){if(null!=c.attributes)for(var l=0;l<c.attributes.length;l++)"as"!=c.attributes[l].name&&c.setAttribute(c.attributes[l].name,this.anonymizeString(c.attributes[l].value,e));if(null!=c.childNodes)for(l=0;l<c.childNodes.length;l++)this.anonymizeAttributes(c.childNodes[l],e)};EditorUi.prototype.anonymizeNode=function(c,e){e=c.getElementsByTagName("mxCell");for(var l=0;l<e.length;l++)null!=e[l].getAttribute("value")&&e[l].setAttribute("value","["+e[l].getAttribute("value").length+"]"),null!=e[l].getAttribute("xmlValue")&&
e[l].setAttribute("xmlValue","["+e[l].getAttribute("xmlValue").length+"]"),null!=e[l].getAttribute("style")&&e[l].setAttribute("style","["+e[l].getAttribute("style").length+"]"),null!=e[l].parentNode&&"root"!=e[l].parentNode.nodeName&&null!=e[l].parentNode.parentNode&&(e[l].setAttribute("id",e[l].parentNode.getAttribute("id")),e[l].parentNode.parentNode.replaceChild(e[l],e[l].parentNode));return c};EditorUi.prototype.synchronizeCurrentFile=function(c){var e=this.getCurrentFile();null!=e&&(e.savingFile?
this.handleError({message:mxResources.get("busy")}):!c&&e.invalidChecksum?e.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(e.clearAutosave(),this.editor.setStatus(""),c?e.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();e.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(l){this.spinner.stop();e.handleFileError(l,!0)})):e.synchronizeFile(mxUtils.bind(this,function(){e.handleFileSuccess("manual"==DrawioFile.SYNC)}),
-mxUtils.bind(this,function(l){e.handleFileError(l,!0)}))))};EditorUi.prototype.getFileData=function(c,e,l,n,p,u,A,D,G,E,T,O,S){p=null!=p?p:!0;u=null!=u?u:!1;E=null!=E?E:!Editor.defaultCompressed;var k=this.editor.graph;if((e||!c&&null!=G&&/(\.svg)$/i.test(G.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var v=k.getGlobalVariable;k=this.createTemporaryGraph(k.getStylesheet());k.setBackgroundImage=this.editor.graph.setBackgroundImage;k.background=this.editor.graph.background;var z=
-null!=this.pages?this.pages[0]:null;null==z||this.currentPage==z?k.setBackgroundImage(this.editor.graph.backgroundImage):null!=z.viewState&&null!=z.viewState&&k.setBackgroundImage(z.viewState.backgroundImage);k.getGlobalVariable=function(B){return"page"==B&&null!=z?z.getName():"pagenumber"==B?1:v.apply(this,arguments)};document.body.appendChild(k.container);null!=z&&k.model.setRoot(z.root)}A=null!=A?A:this.getXmlFileData(p,u,E,T);G=null!=G?G:this.getCurrentFile();c=this.createFileData(A,k,G,window.location.href,
-c,e,l,n,p,D,E,O,S);k!=this.editor.graph&&k.container.parentNode.removeChild(k.container);return c};EditorUi.prototype.getHtml=function(c,e,l,n,p,u){u=null!=u?u:!0;var A=null,D=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=e){A=u?e.getGraphBounds():e.getBoundingBox(e.getSelectionCells());var G=e.view.scale;u=Math.floor(A.x/G-e.view.translate.x);G=Math.floor(A.y/G-e.view.translate.y);A=e.background;null==p&&(e=this.getBasenames().join(";"),0<e.length&&(D=EditorUi.drawHost+"/embed.js?s="+e));
+mxUtils.bind(this,function(l){e.handleFileError(l,!0)}))))};EditorUi.prototype.getFileData=function(c,e,l,n,p,u,B,D,G,E,T,O,S){p=null!=p?p:!0;u=null!=u?u:!1;E=null!=E?E:!Editor.defaultCompressed;var k=this.editor.graph;if((e||!c&&null!=G&&/(\.svg)$/i.test(G.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var v=k.getGlobalVariable;k=this.createTemporaryGraph(k.getStylesheet());k.setBackgroundImage=this.editor.graph.setBackgroundImage;k.background=this.editor.graph.background;var z=
+null!=this.pages?this.pages[0]:null;null==z||this.currentPage==z?k.setBackgroundImage(this.editor.graph.backgroundImage):null!=z.viewState&&null!=z.viewState&&k.setBackgroundImage(z.viewState.backgroundImage);k.getGlobalVariable=function(A){return"page"==A&&null!=z?z.getName():"pagenumber"==A?1:v.apply(this,arguments)};document.body.appendChild(k.container);null!=z&&k.model.setRoot(z.root)}B=null!=B?B:this.getXmlFileData(p,u,E,T);G=null!=G?G:this.getCurrentFile();c=this.createFileData(B,k,G,window.location.href,
+c,e,l,n,p,D,E,O,S);k!=this.editor.graph&&k.container.parentNode.removeChild(k.container);return c};EditorUi.prototype.getHtml=function(c,e,l,n,p,u){u=null!=u?u:!0;var B=null,D=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=e){B=u?e.getGraphBounds():e.getBoundingBox(e.getSelectionCells());var G=e.view.scale;u=Math.floor(B.x/G-e.view.translate.x);G=Math.floor(B.y/G-e.view.translate.y);B=e.background;null==p&&(e=this.getBasenames().join(";"),0<e.length&&(D=EditorUi.drawHost+"/embed.js?s="+e));
c.setAttribute("x0",u);c.setAttribute("y0",G)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=n&&c.setAttribute("edit",n));null!=p&&(p=p.replace(/&/g,"&amp;"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";n=Graph.compress(c);Graph.decompress(n)!=c&&(n=encodeURIComponent(c));return(null==p?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':
-"")+"<!DOCTYPE html>\n<html"+(null!=p?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==p?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=p?'<meta http-equiv="refresh" content="0;URL=\''+p+"'\"/>\n":"")+"</head>\n<body"+(null==p&&null!=A&&A!=mxConstants.NONE?' style="background-color:'+A+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+n+"</div>\n</div>\n"+
+"")+"<!DOCTYPE html>\n<html"+(null!=p?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==p?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=p?'<meta http-equiv="refresh" content="0;URL=\''+p+"'\"/>\n":"")+"</head>\n<body"+(null==p&&null!=B&&B!=mxConstants.NONE?' style="background-color:'+B+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+n+"</div>\n</div>\n"+
(null==p?'<script type="text/javascript" src="'+D+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+p+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,e,l,n,p){e=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=p&&(p=p.replace(/&/g,"&amp;"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,
xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==p?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=p?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==p?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=p?'<meta http-equiv="refresh" content="0;URL=\''+
p+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>\n'+(null==p?'<script type="text/javascript" src="'+e+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+p+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.setFileData=
function(c){c=this.validateFileData(c);this.pages=this.fileNode=this.currentPage=null;var e=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null,l=Editor.extractParserError(e,mxResources.get("invalidOrMissingFile"));if(l)throw EditorUi.debug("EditorUi.setFileData ParserError",[this],"data",[c],"node",[e],"cause",[l]),Error(mxResources.get("notADiagramFile")+" ("+l+")");c=null!=e?this.editor.extractGraphModel(e,!0):null;null!=c&&(e=c);if(null!=e&&"mxfile"==e.nodeName&&(c=e.getElementsByTagName("diagram"),
l={},0<c.length)){var n=this.getHashObject(),p=null;this.fileNode=e;this.pages=[];for(var u=0;u<c.length;u++){null==c[u].getAttribute("id")&&c[u].setAttribute("id",u);e=new DiagramPage(c[u]);null==e.getName()&&e.setName(mxResources.get("pageWithNumber",[u+1]));this.pages.push(e);if(null==n.pageId&&null!=urlParams["page-id"]&&e.getId()==urlParams["page-id"]||null!=n.pageId&&e.getId()==n.pageId)p=e;if(null==l[e.getId()])l[e.getId()]=e;else throw Error(e.getId()+": Duplicate page ID");}this.currentPage=
null!=p?p:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];e=this.currentPage.node}null==this.fileNode&&null!=e&&(this.fileNode=e.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(e.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(e);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),
-this.scrollToPage());if(null!=urlParams["layer-ids"])try{var A=decodeURIComponent(urlParams["layer-ids"]).split(" ");e={};for(u=0;u<A.length;u++)e[A[u]]=!0;var D=this.editor.graph.getModel(),G=D.getChildren(D.root);for(u=0;u<G.length;u++){var E=G[u];D.setVisible(E,e[E.id]||!1)}}catch(T){}};EditorUi.prototype.getBaseFilename=function(c){var e=this.getCurrentFile();e=null!=e&&null!=e.getTitle()?e.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(e)||/(\.html)$/i.test(e)||/(\.svg)$/i.test(e)||/(\.png)$/i.test(e))e=
-e.substring(0,e.lastIndexOf("."));/(\.drawio)$/i.test(e)&&(e=e.substring(0,e.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(e=e+"-"+this.currentPage.getName());return e};EditorUi.prototype.downloadFile=function(c,e,l,n,p,u,A,D,G,E,T,O,S,k,v,z){try{n=null!=n?n:this.editor.graph.isSelectionEmpty();var B=this.getBaseFilename(!p),H=B+("xml"==c||"pdf"==c&&T?".drawio":"")+"."+c;
-if("xml"==c){var R=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,n,p,null,null,null,e);this.saveData(H,c,R,"text/xml")}else if("html"==c)R=this.getHtml2(this.getFileData(!0),this.editor.graph,B),this.saveData(H,c,R,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==c?H=B+".png":"jpeg"==c&&(H=B+".jpg"),this.saveRequest(H,c,mxUtils.bind(this,function(L,Q){try{return this.createDownloadRequest(L,c,n,Q,A,p,D,G,E,T,O,void 0,
-void 0,!u,S,k,v,z)}catch(U){this.handleError(U)}}));else{var g=null,q=mxUtils.bind(this,function(L){L.length<=MAX_REQUEST_SIZE?this.saveData(H,"svg",L,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(g)}))});if("svg"==c){var F=this.editor.graph.background;if(A||F==mxConstants.NONE)F=null;var J=this.editor.graph.getSvg(F,null,null,null,null,n);l&&this.editor.graph.addSvgShadow(J);this.editor.convertImages(J,
-mxUtils.bind(this,mxUtils.bind(this,function(L){this.spinner.stop();q(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(L))})))}else H=B+".svg",g=this.getFileData(!1,!0,null,mxUtils.bind(this,function(L){this.spinner.stop();q(L)}),n)}}catch(L){this.handleError(L)}};EditorUi.prototype.createDownloadRequest=function(c,e,l,n,p,u,A,D,G,E,T,O,S,k,v,z,B,H){c=this.downloadRequestBuilder(c,e,l,n,p,u,A,D,G,E,T,O,S,k,v,z,B,H);e="";for(var R in c)l=c[R],null!=l&&(e+=R+"="+encodeURIComponent(l)+
-"&");return new mxXmlRequest(EXPORT_URL,e)};EditorUi.prototype.downloadRequestBuilder=function(c,e,l,n,p,u,A,D,G,E,T,O,S,k,v,z,B,H){var R=this.editor.graph,g=R.getGraphBounds();l=this.getFileData(!0,null,null,null,l,0==u?!1:"xmlpng"!=e,null,null,null,!Editor.defaultCompressed,"pdf"==e);var q=null,F=null,J=null;if(!EditorUi.isElectronApp&&(g.width*g.height>MAX_AREA||l.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};E=E?"1":"0";"pdf"==e&&(null!=T?(q=T.from,F=T.to):0==u&&(J=
+this.scrollToPage());if(null!=urlParams["layer-ids"])try{var B=decodeURIComponent(urlParams["layer-ids"]).split(" ");e={};for(u=0;u<B.length;u++)e[B[u]]=!0;var D=this.editor.graph.getModel(),G=D.getChildren(D.root);for(u=0;u<G.length;u++){var E=G[u];D.setVisible(E,e[E.id]||!1)}}catch(T){}};EditorUi.prototype.getBaseFilename=function(c){var e=this.getCurrentFile();e=null!=e&&null!=e.getTitle()?e.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(e)||/(\.html)$/i.test(e)||/(\.svg)$/i.test(e)||/(\.png)$/i.test(e))e=
+e.substring(0,e.lastIndexOf("."));/(\.drawio)$/i.test(e)&&(e=e.substring(0,e.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(e=e+"-"+this.currentPage.getName());return e};EditorUi.prototype.downloadFile=function(c,e,l,n,p,u,B,D,G,E,T,O,S,k,v,z){try{n=null!=n?n:this.editor.graph.isSelectionEmpty();var A=this.getBaseFilename(!p),H=A+("xml"==c||"pdf"==c&&T?".drawio":"")+"."+c;
+if("xml"==c){var R=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,n,p,null,null,null,e);this.saveData(H,c,R,"text/xml")}else if("html"==c)R=this.getHtml2(this.getFileData(!0),this.editor.graph,A),this.saveData(H,c,R,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==c?H=A+".png":"jpeg"==c&&(H=A+".jpg"),this.saveRequest(H,c,mxUtils.bind(this,function(L,Q){try{return this.createDownloadRequest(L,c,n,Q,B,p,D,G,E,T,O,void 0,
+void 0,!u,S,k,v,z)}catch(U){this.handleError(U)}}));else{var g=null,q=mxUtils.bind(this,function(L){L.length<=MAX_REQUEST_SIZE?this.saveData(H,"svg",L,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(g)}))});if("svg"==c){var F=this.editor.graph.background;if(B||F==mxConstants.NONE)F=null;var J=this.editor.graph.getSvg(F,null,null,null,null,n);l&&this.editor.graph.addSvgShadow(J);this.editor.convertImages(J,
+mxUtils.bind(this,mxUtils.bind(this,function(L){this.spinner.stop();q(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(L))})))}else H=A+".svg",g=this.getFileData(!1,!0,null,mxUtils.bind(this,function(L){this.spinner.stop();q(L)}),n)}}catch(L){this.handleError(L)}};EditorUi.prototype.createDownloadRequest=function(c,e,l,n,p,u,B,D,G,E,T,O,S,k,v,z,A,H){c=this.downloadRequestBuilder(c,e,l,n,p,u,B,D,G,E,T,O,S,k,v,z,A,H);e="";for(var R in c)l=c[R],null!=l&&(e+=R+"="+encodeURIComponent(l)+
+"&");return new mxXmlRequest(EXPORT_URL,e)};EditorUi.prototype.downloadRequestBuilder=function(c,e,l,n,p,u,B,D,G,E,T,O,S,k,v,z,A,H){var R=this.editor.graph,g=R.getGraphBounds();l=this.getFileData(!0,null,null,null,l,0==u?!1:"xmlpng"!=e,null,null,null,!Editor.defaultCompressed,"pdf"==e);var q=null,F=null,J=null;if(!EditorUi.isElectronApp&&(g.width*g.height>MAX_AREA||l.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};E=E?"1":"0";"pdf"==e&&(null!=T?(q=T.from,F=T.to):0==u&&(J=
"1"));"xmlpng"==e&&(E="1",e="png");if(("xmlpng"==e||"svg"==e)&&null!=this.pages&&null!=this.currentPage)for(u=0;u<this.pages.length;u++)if(this.pages[u]==this.currentPage){q=u;break}u=R.background;"png"!=e&&"pdf"!=e&&"svg"!=e||!p?p||null!=u&&u!=mxConstants.NONE||(u="#ffffff"):u=mxConstants.NONE;p={globalVars:R.getExportVariables()};G&&(p.grid={size:R.gridSize,steps:R.view.gridSteps,color:Editor.isDarkMode()&&"pdf"==e?mxGraphView.prototype.defaultGridColor:R.view.gridColor});Graph.translateDiagram&&
-(p.diagramLanguage=Graph.diagramLanguage);return{format:e,from:q,to:F,allPages:J,bg:null!=u?u:mxConstants.NONE,base64:n,embedXml:E,xml:l,filename:null!=c?c:"",extras:JSON.stringify(p),scale:A,border:D,pageMargin:v,w:O&&isFinite(O)?O:null,h:S&&isFinite(S)?S:null,crop:null!=k&&k?"1":"0",fit:null!=z&&z?"1":"0",sheetsAcross:B,sheetsDown:H}};EditorUi.prototype.setMode=function(c,e){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));
+(p.diagramLanguage=Graph.diagramLanguage);return{format:e,from:q,to:F,allPages:J,bg:null!=u?u:mxConstants.NONE,base64:n,embedXml:E,xml:l,filename:null!=c?c:"",extras:JSON.stringify(p),scale:B,border:D,pageMargin:v,w:O&&isFinite(O)?O:null,h:S&&isFinite(S)?S:null,crop:null!=k&&k?"1":"0",fit:null!=z&&z?"1":"0",sheetsAcross:A,sheetsDown:H}};EditorUi.prototype.setMode=function(c,e){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));
if(null!=c&&1<c.length){var e=c.indexOf("#");0<=e&&(c=c.substring(0,e))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,e={};if(null!=c&&0<c.length){var l=c.lastIndexOf("#");if(0<l){c=decodeURIComponent(c.substring(l+1));try{e=JSON.parse(c)}catch(n){}}}return e};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};
-EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var e=window.location.hash;if(null==e||""==e)e="#";var l=e.lastIndexOf("#");0<l&&(e=e.substring(0,l));try{null==c||mxUtils.isEmptyObject(c)||(e=e+"#"+encodeURIComponent(JSON.stringify(c)))}catch(n){}0<l&&0<e.lastIndexOf("#")?window.location.hash=e:window.location.replace(e)}};EditorUi.prototype.loadDescriptor=function(c,e,l){var n=window.location.hash,p=mxUtils.bind(this,function(A){var D=null!=c.data?c.data:"";null!=A&&0<A.length&&
-(0<D.length&&(D+="\n"),D+=A);A=new LocalFile(this,"csv"!=c.format&&0<D.length?D:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);A.getHash=function(){return n};this.fileLoaded(A);"csv"==c.format&&this.importCsv(D,mxUtils.bind(this,function(S){this.editor.undoManager.clear();this.editor.setModified(!1);this.editor.setStatus("")}));if(null!=c.update){var G=null!=c.interval?parseInt(c.interval):6E4,E=null,T=mxUtils.bind(this,function(){var S=this.currentPage;
+EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var e=window.location.hash;if(null==e||""==e)e="#";var l=e.lastIndexOf("#");0<l&&(e=e.substring(0,l));try{null==c||mxUtils.isEmptyObject(c)||(e=e+"#"+encodeURIComponent(JSON.stringify(c)))}catch(n){}0<l&&0<e.lastIndexOf("#")?window.location.hash=e:window.location.replace(e)}};EditorUi.prototype.loadDescriptor=function(c,e,l){var n=window.location.hash,p=mxUtils.bind(this,function(B){var D=null!=c.data?c.data:"";null!=B&&0<B.length&&
+(0<D.length&&(D+="\n"),D+=B);B=new LocalFile(this,"csv"!=c.format&&0<D.length?D:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);B.getHash=function(){return n};this.fileLoaded(B);"csv"==c.format&&this.importCsv(D,mxUtils.bind(this,function(S){this.editor.undoManager.clear();this.editor.setModified(!1);this.editor.setStatus("")}));if(null!=c.update){var G=null!=c.interval?parseInt(c.interval):6E4,E=null,T=mxUtils.bind(this,function(){var S=this.currentPage;
mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(k){S===this.currentPage&&(200<=k.getStatus()&&300>=k.getStatus()?(this.updateDiagram(k.getText()),O()):this.handleError({message:mxResources.get("error")+" "+k.getStatus()}))}),mxUtils.bind(this,function(k){this.handleError(k)}))}),O=mxUtils.bind(this,function(){window.clearTimeout(E);E=window.setTimeout(T,G)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){O();
-T()}));O();T()}null!=e&&e()});if(null!=c.url&&0<c.url.length){var u=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(u,mxUtils.bind(this,function(A){p(A)}),mxUtils.bind(this,function(A){null!=l&&l(A)}))}else p("")};EditorUi.prototype.updateDiagram=function(c){function e(g){var q=new mxCellOverlay(g.image||p.warningImage,g.tooltip,g.align,g.valign,g.offset);q.addListener(mxEvent.CLICK,function(F,J){n.alert(g.tooltip)});return q}var l=null,n=this;if(null!=c&&0<c.length&&(l=mxUtils.parseXml(c),c=
-null!=l?l.documentElement:null,null!=c&&"updates"==c.nodeName)){var p=this.editor.graph,u=p.getModel();u.beginUpdate();var A=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var D=u.getCell(c.getAttribute("id"));if(null!=D){try{var G=c.getAttribute("value");if(null!=G){var E=mxUtils.parseXml(G).documentElement;if(null!=E)if("1"==E.getAttribute("replace-value"))u.setValue(D,E);else for(var T=E.attributes,O=0;O<T.length;O++)p.setAttributeForCell(D,T[O].nodeName,0<T[O].nodeValue.length?
+T()}));O();T()}null!=e&&e()});if(null!=c.url&&0<c.url.length){var u=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(u,mxUtils.bind(this,function(B){p(B)}),mxUtils.bind(this,function(B){null!=l&&l(B)}))}else p("")};EditorUi.prototype.updateDiagram=function(c){function e(g){var q=new mxCellOverlay(g.image||p.warningImage,g.tooltip,g.align,g.valign,g.offset);q.addListener(mxEvent.CLICK,function(F,J){n.alert(g.tooltip)});return q}var l=null,n=this;if(null!=c&&0<c.length&&(l=mxUtils.parseXml(c),c=
+null!=l?l.documentElement:null,null!=c&&"updates"==c.nodeName)){var p=this.editor.graph,u=p.getModel();u.beginUpdate();var B=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var D=u.getCell(c.getAttribute("id"));if(null!=D){try{var G=c.getAttribute("value");if(null!=G){var E=mxUtils.parseXml(G).documentElement;if(null!=E)if("1"==E.getAttribute("replace-value"))u.setValue(D,E);else for(var T=E.attributes,O=0;O<T.length;O++)p.setAttributeForCell(D,T[O].nodeName,0<T[O].nodeValue.length?
T[O].nodeValue:null)}}catch(g){null!=window.console&&console.log("Error in value for "+D.id+": "+g)}try{var S=c.getAttribute("style");null!=S&&p.model.setStyle(D,S)}catch(g){null!=window.console&&console.log("Error in style for "+D.id+": "+g)}try{var k=c.getAttribute("icon");if(null!=k){var v=0<k.length?JSON.parse(k):null;null!=v&&v.append||p.removeCellOverlays(D);null!=v&&p.addCellOverlay(D,e(v))}}catch(g){null!=window.console&&console.log("Error in icon for "+D.id+": "+g)}try{var z=c.getAttribute("geometry");
-if(null!=z){z=JSON.parse(z);var B=p.getCellGeometry(D);if(null!=B){B=B.clone();for(key in z){var H=parseFloat(z[key]);"dx"==key?B.x+=H:"dy"==key?B.y+=H:"dw"==key?B.width+=H:"dh"==key?B.height+=H:B[key]=parseFloat(z[key])}p.model.setGeometry(D,B)}}}catch(g){null!=window.console&&console.log("Error in icon for "+D.id+": "+g)}}}else if("model"==c.nodeName){for(var R=c.firstChild;null!=R&&R.nodeType!=mxConstants.NODETYPE_ELEMENT;)R=R.nextSibling;null!=R&&(new mxCodec(c.firstChild)).decode(R,u)}else if("view"==
-c.nodeName){if(c.hasAttribute("scale")&&(p.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))p.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==c.nodeName&&(A=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{u.endUpdate()}null!=A&&this.chromelessResize&&this.chromelessResize(!0,A)}return l};EditorUi.prototype.getCopyFilename=function(c,e){var l=null!=
-c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var n=l.lastIndexOf(".");0<=n&&(c=l.substring(n),l=l.substring(0,n));if(e){e=l;var p=new Date;l=p.getFullYear();n=p.getMonth()+1;var u=p.getDate(),A=p.getHours(),D=p.getMinutes();p=p.getSeconds();l=e+(" "+(l+"-"+n+"-"+u+"-"+A+"-"+D+"-"+p))}return l=mxResources.get("copyOf",[l])+c};EditorUi.prototype.logIfModified=function(c,e){try{null!=c&&e&&EditorUi.debug("File.closed",[c])}catch(l){}};EditorUi.prototype.fileLoaded=function(c,e,l){var n=
+if(null!=z){z=JSON.parse(z);var A=p.getCellGeometry(D);if(null!=A){A=A.clone();for(key in z){var H=parseFloat(z[key]);"dx"==key?A.x+=H:"dy"==key?A.y+=H:"dw"==key?A.width+=H:"dh"==key?A.height+=H:A[key]=parseFloat(z[key])}p.model.setGeometry(D,A)}}}catch(g){null!=window.console&&console.log("Error in icon for "+D.id+": "+g)}}}else if("model"==c.nodeName){for(var R=c.firstChild;null!=R&&R.nodeType!=mxConstants.NODETYPE_ELEMENT;)R=R.nextSibling;null!=R&&(new mxCodec(c.firstChild)).decode(R,u)}else if("view"==
+c.nodeName){if(c.hasAttribute("scale")&&(p.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))p.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==c.nodeName&&(B=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{u.endUpdate()}null!=B&&this.chromelessResize&&this.chromelessResize(!0,B)}return l};EditorUi.prototype.getCopyFilename=function(c,e){var l=null!=
+c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var n=l.lastIndexOf(".");0<=n&&(c=l.substring(n),l=l.substring(0,n));if(e){e=l;var p=new Date;l=p.getFullYear();n=p.getMonth()+1;var u=p.getDate(),B=p.getHours(),D=p.getMinutes();p=p.getSeconds();l=e+(" "+(l+"-"+n+"-"+u+"-"+B+"-"+D+"-"+p))}return l=mxResources.get("copyOf",[l])+c};EditorUi.prototype.logIfModified=function(c,e){try{null!=c&&e&&EditorUi.debug("File.closed",[c])}catch(l){}};EditorUi.prototype.fileLoaded=function(c,e,l){var n=
this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var p=!1;this.hideDialog();null!=n&&(n.removeListener(this.descriptorChangedListener),this.logIfModified(n,!0),n.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var u=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=n&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);!e&&null!=
window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fnameWrapper.style.display="none",this.fname.innerText="",this.fname.setAttribute("title",mxResources.get("rename")));this.editor.setStatus("");this.updateUi();e||this.showSplash()});if(null!=c)try{mxClient.IS_SF&&"min"==uiTheme&&(this.diagramContainer.style.visibility="");this.openingFile=!0;this.setCurrentFile(c);c.addListener("descriptorChanged",this.descriptorChangedListener);c.addListener("contentChanged",
this.descriptorChangedListener);c.open();delete this.openingFile;this.setGraphEnabled(!0);this.setMode(c.getMode());this.editor.graph.model.prefix=Editor.guid()+"-";this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();c.isEditable()?c.isModified()?c.addUnsavedStatus():this.editor.setStatus(""):this.editor.setStatus('<div class="geStatusBox" title="'+mxUtils.htmlEntities(mxResources.get("readOnly"))+'">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</div>");!this.editor.isChromelessView()||
-this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=l&&l();this.editor.fireEvent(new mxEventObject("fileLoaded"));p=!0;if(!this.isOffline()&&null!=c.getMode()){var A="1"==urlParams.sketch?"sketch":uiTheme;if(null==A)A="default";else if("sketch"==A||"min"==A)A+=Editor.isDarkMode()?"-dark":"-light"}EditorUi.debug("File.opened",
+this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=l&&l();this.editor.fireEvent(new mxEventObject("fileLoaded"));p=!0;if(!this.isOffline()&&null!=c.getMode()){var B="1"==urlParams.sketch?"sketch":uiTheme;if(null==B)B="default";else if("sketch"==B||"min"==B)B+=Editor.isDarkMode()?"-dark":"-light"}EditorUi.debug("File.opened",
[c]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==c.getMode()&&c.getMode()!=App.MODE_DEVICE&&null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(D){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(D){}}catch(D){this.fileLoadedError=D;if(null!=c)try{c.close()}catch(G){}c=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,
mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=n?this.fileLoaded(n)||u():u()});e?c():(null!=D.fallbackFileData&&(D.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var G=new LocalFile(this,D.fallbackFileData,this.defaultFilename,!0);this.fileLoaded(G)})}),this.handleError(D,mxResources.get("errorLoadingFile"),c,!0,null,null,!0))}else u();return p};EditorUi.prototype.getHashValueForPages=function(c,e){var l=
-0,n=new mxGraphModel,p=new mxCodec;null!=e&&(e.byteCount=0,e.attrCount=0,e.eltCount=0,e.nodeCount=0);for(var u=0;u<c.length;u++){this.updatePageRoot(c[u]);var A=c[u].node.cloneNode(!1);A.removeAttribute("name");n.root=c[u].root;var D=p.encode(n);this.editor.graph.saveViewState(c[u].viewState,D,!0);D.removeAttribute("pageWidth");D.removeAttribute("pageHeight");A.appendChild(D);null!=e&&(e.eltCount+=A.getElementsByTagName("*").length,e.nodeCount+=A.getElementsByTagName("mxCell").length);l=(l<<5)-l+
-this.hashValue(A,function(G,E,T,O){return!O||"mxGeometry"!=G.nodeName&&"mxPoint"!=G.nodeName||"x"!=E&&"y"!=E&&"width"!=E&&"height"!=E?O&&"mxCell"==G.nodeName&&"previous"==E?null:T:Math.round(T)},e)<<0}return l};EditorUi.prototype.hashValue=function(c,e,l){var n=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(n^=this.hashValue(c.nodeName,e,l));if(null!=c.attributes){null!=l&&(l.attrCount+=c.attributes.length);
-for(var p=0;p<c.attributes.length;p++){var u=c.attributes[p].name,A=null!=e?e(c,u,c.attributes[p].value,!0):c.attributes[p].value;null!=A&&(n^=this.hashValue(u,e,l)+this.hashValue(A,e,l))}}if(null!=c.childNodes)for(p=0;p<c.childNodes.length;p++)n=(n<<5)-n+this.hashValue(c.childNodes[p],e,l)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);e=0;null!=l&&(l.byteCount+=c.length);for(p=0;p<c.length;p++)e=(e<<5)-e+c.charCodeAt(p)<<0;n^=e}return n};EditorUi.prototype.descriptorChanged=function(){};
-EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,e,l,n,p,u,A){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){null==c&&(c=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
+0,n=new mxGraphModel,p=new mxCodec;null!=e&&(e.byteCount=0,e.attrCount=0,e.eltCount=0,e.nodeCount=0);for(var u=0;u<c.length;u++){this.updatePageRoot(c[u]);var B=c[u].node.cloneNode(!1);B.removeAttribute("name");n.root=c[u].root;var D=p.encode(n);this.editor.graph.saveViewState(c[u].viewState,D,!0);D.removeAttribute("pageWidth");D.removeAttribute("pageHeight");B.appendChild(D);null!=e&&(e.eltCount+=B.getElementsByTagName("*").length,e.nodeCount+=B.getElementsByTagName("mxCell").length);l=(l<<5)-l+
+this.hashValue(B,function(G,E,T,O){return!O||"mxGeometry"!=G.nodeName&&"mxPoint"!=G.nodeName||"x"!=E&&"y"!=E&&"width"!=E&&"height"!=E?O&&"mxCell"==G.nodeName&&"previous"==E?null:T:Math.round(T)},e)<<0}return l};EditorUi.prototype.hashValue=function(c,e,l){var n=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(n^=this.hashValue(c.nodeName,e,l));if(null!=c.attributes){null!=l&&(l.attrCount+=c.attributes.length);
+for(var p=0;p<c.attributes.length;p++){var u=c.attributes[p].name,B=null!=e?e(c,u,c.attributes[p].value,!0):c.attributes[p].value;null!=B&&(n^=this.hashValue(u,e,l)+this.hashValue(B,e,l))}}if(null!=c.childNodes)for(p=0;p<c.childNodes.length;p++)n=(n<<5)-n+this.hashValue(c.childNodes[p],e,l)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);e=0;null!=l&&(l.byteCount+=c.length);for(p=0;p<c.length;p++)e=(e<<5)-e+c.charCodeAt(p)<<0;n^=e}return n};EditorUi.prototype.descriptorChanged=function(){};
+EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,e,l,n,p,u,B){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){null==c&&(c=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
EditorUi.prototype.createLibraryDataFromImages=function(c){if(!Editor.defaultCompressed)for(var e=0;e<c.length;e++)null!=c[e].xml&&"<"!=c[e].xml.charAt(0)&&(c[e].xml=mxUtils.trim(Graph.decompress(c[e].xml)));e=mxUtils.createXmlDocument();var l=e.createElement("mxlibrary");mxUtils.setTextContent(l,JSON.stringify(c,null,2));e.appendChild(l);return mxUtils.getXml(e,"\n")};EditorUi.prototype.closeLibrary=function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),
".scratchpad"==c.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(c){var e=this.sidebar.palettes[c];if(null!=e){for(var l=0;l<e.length;l++)e[l].parentNode.removeChild(e[l]);delete this.sidebar.palettes[c]}};EditorUi.prototype.repositionLibrary=function(c,e){var l=this.sidebar.getEntryContainer();if(!this.sidebar.appendCustomLibraries||null!=c||!e){null==c&&(e=this.sidebar.palettes["L.scratchpad"],null==e&&(e=this.sidebar.palettes.search),null!=e&&(c=e[e.length-1].nextSibling));
c=null!=c?c:l.firstChild.nextSibling.nextSibling;e=l.lastChild;var n=e.previousSibling;l.insertBefore(e,c);l.insertBefore(n,e)}};EditorUi.prototype.loadLibrary=function(c,e){var l=mxUtils.parseXml(c.getData());if("mxlibrary"==l.documentElement.nodeName){var n=JSON.parse(mxUtils.getTextContent(l.documentElement));this.libraryLoaded(c,n,l.documentElement.getAttribute("title"),e)}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(c){return""};EditorUi.prototype.showSidebar=
function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.libraryLoaded=function(c,e,l,n){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());var p=null;if(c.constructor!=StorageLibrary||".scratchpad"!=c.title){null==this.openLibraries&&(this.openLibraries=[]);for(var u=0;u<this.openLibraries.length;u++)if(this.openLibraries[u].file.getHash()==c.getHash()){mxUtils.remove(this.openLibraries[u],
-this.openLibraries);break}p={file:c,images:e,title:l,expand:n};this.openLibraries.push(p)}else this.scratchpad=c;u=this.sidebar.palettes[c.getHash()];u=null!=u?u[u.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var A=null,D=mxUtils.bind(this,function(H,R){0==H.length&&c.isEditable()?(null==A&&(A=document.createElement("div"),A.className="geDropTarget",mxUtils.write(A,mxResources.get("dragElementsHere"))),R.appendChild(A)):this.addLibraryEntries(H,R)});null!=this.sidebar&&null!=
+this.openLibraries);break}p={file:c,images:e,title:l,expand:n};this.openLibraries.push(p)}else this.scratchpad=c;u=this.sidebar.palettes[c.getHash()];u=null!=u?u[u.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var B=null,D=mxUtils.bind(this,function(H,R){0==H.length&&c.isEditable()?(null==B&&(B=document.createElement("div"),B.className="geDropTarget",mxUtils.write(B,mxResources.get("dragElementsHere"))),R.appendChild(B)):this.addLibraryEntries(H,R)});null!=this.sidebar&&null!=
e&&this.sidebar.addEntries(e);null==l&&(l=c.getTitle(),null!=l&&/(\.xml)$/i.test(l)&&(l=l.substring(0,l.lastIndexOf("."))));var G=this.sidebar.addPalette(c.getHash(),l,null!=n?n:!0,mxUtils.bind(this,function(H){D(e,H)}));null!=p&&(p.div=G);this.repositionLibrary(u,"L.scratchpad"!=c.getHash());n=G.parentNode.previousSibling;l=n.getAttribute("title");null!=l&&0<l.length&&".scratchpad"!=c.title&&n.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+l);var E=document.createElement("div");E.style.backgroundColor=
"inherit";n.style.position="relative";var T=document.createElement("img");T.className="geAdaptiveAsset";T.setAttribute("src",Editor.crossImage);T.setAttribute("title",mxResources.get("close"));T.setAttribute("valign","absmiddle");T.setAttribute("border","0");T.style.position="relative";T.style.top="2px";T.style.width="14px";T.style.cursor="pointer";T.style.margin="0 3px";var O=null;if(".scratchpad"!=c.title||this.closableScratchpad)E.appendChild(T),mxEvent.addListener(T,"click",mxUtils.bind(this,
function(H){if(!mxEvent.isConsumed(H)){var R=mxUtils.bind(this,function(){null!=p&&mxUtils.remove(p,this.openLibraries);this.closeLibrary(c)});null!=O?this.confirm(mxResources.get("allChangesLost"),null,R,mxResources.get("cancel"),mxResources.get("discardChanges")):R();mxEvent.consume(H)}}));if(c.isEditable()){var S=this.editor.graph,k=null;l=mxUtils.bind(this,function(H){this.showLibraryDialog(c.getTitle(),G,e,c,c.getMode());mxEvent.consume(H)});var v=mxUtils.bind(this,function(H){c.setModified(!0);
c.isAutosave()?(null!=k&&null!=k.parentNode&&k.parentNode.removeChild(k),k=T.cloneNode(!1),k.setAttribute("src",Editor.spinImage),k.setAttribute("title",mxResources.get("saving")),k.style.cursor="default",k.style.marginRight="2px",k.style.marginTop="-2px",E.insertBefore(k,E.firstChild),this.saveLibrary(c.getTitle(),e,c,c.getMode(),!0,!0,function(){null!=k&&null!=k.parentNode&&k.parentNode.removeChild(k)})):null==O&&(O=T.cloneNode(!1),O.setAttribute("src",Editor.saveImage),O.setAttribute("title",mxResources.get("save")),
E.insertBefore(O,E.firstChild),mxEvent.addListener(O,"click",mxUtils.bind(this,function(R){this.saveLibrary(c.getTitle(),e,c,c.getMode(),c.constructor==LocalLibrary,!0,function(){null==O||c.isModified()||(O.parentNode.removeChild(O),O=null)});mxEvent.consume(R)})))}),z=mxUtils.bind(this,function(H,R,g,q){H=S.cloneCells(mxUtils.sortCells(S.model.getTopmostCells(H)));for(var F=0;F<H.length;F++){var J=S.getCellGeometry(H[F]);null!=J&&J.translate(-R.x,-R.y)}G.appendChild(this.sidebar.createVertexTemplateFromCells(H,
-R.width,R.height,q||"",!0,null,!1));H=mxUtils.getXml(this.editor.graph.encodeCells(H));Editor.defaultCompressed&&(H=Graph.compress(H));R={xml:H,w:R.width,h:R.height};null!=q&&(R.title=q);e.push(R);v(g);null!=A&&null!=A.parentNode&&0<e.length&&(A.parentNode.removeChild(A),A=null)}),B=mxUtils.bind(this,function(H){if(S.isSelectionEmpty())S.getRubberband().isActive()?(S.getRubberband().execute(H),S.getRubberband().reset()):this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),
+R.width,R.height,q||"",!0,null,!1));H=mxUtils.getXml(this.editor.graph.encodeCells(H));Editor.defaultCompressed&&(H=Graph.compress(H));R={xml:H,w:R.width,h:R.height};null!=q&&(R.title=q);e.push(R);v(g);null!=B&&null!=B.parentNode&&0<e.length&&(B.parentNode.removeChild(B),B=null)}),A=mxUtils.bind(this,function(H){if(S.isSelectionEmpty())S.getRubberband().isActive()?(S.getRubberband().execute(H),S.getRubberband().reset()):this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),
mxResources.get("ok"));else{var R=S.getSelectionCells(),g=S.view.getBounds(R);if(null!=g&&0<g.width&&0<g.height){var q=S.view.scale;g.x/=q;g.y/=q;g.width/=q;g.height/=q;g.x-=S.view.translate.x;g.y-=S.view.translate.y;z(R,g)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(H)});mxEvent.addGestureListeners(G,function(){},mxUtils.bind(this,function(H){S.isMouseDown&&null!=S.panningManager&&null!=S.graphHandler.first&&(S.graphHandler.suspend(),
-null!=S.graphHandler.hint&&(S.graphHandler.hint.style.visibility="hidden"),G.style.backgroundColor="light-dark(#fefefe, #000000)",G.style.cursor="copy",S.panningManager.stop(),S.autoScroll=!1,mxEvent.consume(H))}),mxUtils.bind(this,function(H){S.isMouseDown&&null!=S.panningManager&&null!=S.graphHandler&&(G.style.backgroundColor="",G.style.cursor="default",this.sidebar.showTooltips=!0,S.panningManager.stop(),S.graphHandler.reset(),S.isMouseDown=!1,S.autoScroll=!0,B(H),mxEvent.consume(H))}));mxEvent.addListener(G,
+null!=S.graphHandler.hint&&(S.graphHandler.hint.style.visibility="hidden"),G.style.backgroundColor="light-dark(#fefefe, #000000)",G.style.cursor="copy",S.panningManager.stop(),S.autoScroll=!1,mxEvent.consume(H))}),mxUtils.bind(this,function(H){S.isMouseDown&&null!=S.panningManager&&null!=S.graphHandler&&(G.style.backgroundColor="",G.style.cursor="default",this.sidebar.showTooltips=!0,S.panningManager.stop(),S.graphHandler.reset(),S.isMouseDown=!1,S.autoScroll=!0,A(H),mxEvent.consume(H))}));mxEvent.addListener(G,
"mouseleave",mxUtils.bind(this,function(H){S.isMouseDown&&null!=S.graphHandler.first&&(S.graphHandler.resume(),null!=S.graphHandler.hint&&(S.graphHandler.hint.style.visibility="visible"),G.style.backgroundColor="",G.style.cursor="",S.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(G,"dragover",mxUtils.bind(this,function(H){G.style.backgroundColor="light-dark(#fefefe, #000000)";H.dataTransfer.dropEffect="copy";G.style.cursor="copy";this.sidebar.hideTooltip();H.stopPropagation();H.preventDefault()})),
mxEvent.addListener(G,"drop",mxUtils.bind(this,function(H){G.style.cursor="";G.style.backgroundColor="";0<H.dataTransfer.files.length&&this.importFiles(H.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(R,g,q,F,J,L,Q,U,V){if(null!=R&&"image/"==g.substring(0,6))R="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(R),R=[new mxCell("",new mxGeometry(0,0,J,L),R)],R[0].vertex=!0,z(R,new mxRectangle(0,0,J,L),H,mxEvent.isAltDown(H)?
-null:Q.substring(0,Q.lastIndexOf(".")).replace(/_/g," ")),null!=A&&null!=A.parentNode&&0<e.length&&(A.parentNode.removeChild(A),A=null);else{var W=!1,X=mxUtils.bind(this,function(Z,Y){null!=Z&&"application/pdf"==Y&&(Y=Editor.extractGraphModelFromPdf(Z),null!=Y&&0<Y.length&&(Z=Y));if(null!=Z)if(Z=mxUtils.parseXml(Z),"mxlibrary"==Z.documentElement.nodeName)try{var ba=JSON.parse(mxUtils.getTextContent(Z.documentElement));D(ba,G);e=e.concat(ba);v(H);this.spinner.stop();W=!0}catch(ma){}else if("mxfile"==
-Z.documentElement.nodeName)try{var ea=Z.documentElement.getElementsByTagName("diagram");for(ba=0;ba<ea.length;ba++){var ca=this.stringToCells(Editor.getDiagramNodeXml(ea[ba])),da=this.editor.graph.getBoundingBoxFromGeometry(ca);null!=da&&z(ca,new mxRectangle(0,0,da.width,da.height),H)}W=!0}catch(ma){null!=window.console&&console.log("error in drop handler:",ma)}W||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=A&&null!=A.parentNode&&0<e.length&&(A.parentNode.removeChild(A),
-A=null)});null!=V&&null!=Q&&EditorUi.isVisioFilename(Q)?this.importVisio(V,function(Z){X(Z,"text/xml")},null,Q):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(R,Q)&&null!=V?this.isExternalDataComms()?this.parseFile(V,mxUtils.bind(this,function(Z){4==Z.readyState&&(this.spinner.stop(),200<=Z.status&&299>=Z.status?X(Z.responseText,"text/xml"):this.handleError({message:mxResources.get(413==Z.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),
+null:Q.substring(0,Q.lastIndexOf(".")).replace(/_/g," ")),null!=B&&null!=B.parentNode&&0<e.length&&(B.parentNode.removeChild(B),B=null);else{var W=!1,X=mxUtils.bind(this,function(Z,Y){null!=Z&&"application/pdf"==Y&&(Y=Editor.extractGraphModelFromPdf(Z),null!=Y&&0<Y.length&&(Z=Y));if(null!=Z)if(Z=mxUtils.parseXml(Z),"mxlibrary"==Z.documentElement.nodeName)try{var ba=JSON.parse(mxUtils.getTextContent(Z.documentElement));D(ba,G);e=e.concat(ba);v(H);this.spinner.stop();W=!0}catch(ma){}else if("mxfile"==
+Z.documentElement.nodeName)try{var ea=Z.documentElement.getElementsByTagName("diagram");for(ba=0;ba<ea.length;ba++){var ca=this.stringToCells(Editor.getDiagramNodeXml(ea[ba])),da=this.editor.graph.getBoundingBoxFromGeometry(ca);null!=da&&z(ca,new mxRectangle(0,0,da.width,da.height),H)}W=!0}catch(ma){null!=window.console&&console.log("error in drop handler:",ma)}W||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=B&&null!=B.parentNode&&0<e.length&&(B.parentNode.removeChild(B),
+B=null)});null!=V&&null!=Q&&EditorUi.isVisioFilename(Q)?this.importVisio(V,function(Z){X(Z,"text/xml")},null,Q):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(R,Q)&&null!=V?this.isExternalDataComms()?this.parseFile(V,mxUtils.bind(this,function(Z){4==Z.readyState&&(this.spinner.stop(),200<=Z.status&&299>=Z.status?X(Z.responseText,"text/xml"):this.handleError({message:mxResources.get(413==Z.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),
this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):X(R,g)}}));H.stopPropagation();H.preventDefault()})),mxEvent.addListener(G,"dragleave",function(H){G.style.cursor="";G.style.backgroundColor="";H.stopPropagation();H.preventDefault()}));T=T.cloneNode(!1);T.setAttribute("src",Editor.editImage);T.setAttribute("title",mxResources.get("edit"));E.insertBefore(T,E.firstChild);mxEvent.addListener(T,"click",l);l=T.cloneNode(!1);l.setAttribute("src",Editor.plusImage);l.setAttribute("title",
-mxResources.get("add"));E.insertBefore(l,E.firstChild);mxEvent.addListener(l,"click",B);".scratchpad"==c.title&&(this.addSelectionToScratchpad=B);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(l=this.createHelpIcon(EditorUi.scratchpadHelpLink),u=l.getElementsByTagName("img")[0],l.style.marginRight="1px",u.style.marginTop="-2px",u.style.opacity="",E.insertBefore(l,E.firstChild))}n.appendChild(E);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=
-function(c,e){for(var l=0;l<c.length;l++)try{var n=c[l],p=n.data;if(null!=p){p="data:"==p.substring(0,5)?this.convertDataUri(p):p;var u="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==n.aspect&&(u+="aspect=fixed;");u=u+"image="+p+";";null!=n.style&&(u+=n.style);e.appendChild(this.sidebar.createVertexTemplate(u,n.w,n.h,"",n.title||"",!1,null,!0))}else if(null!=n.xml){var A=this.stringToCells("<"==n.xml.charAt(0)?n.xml:Graph.decompress(n.xml)),D=0==A.length?mxResources.get("drawingEmpty"):
-null!=n.title?n.title:"";e.appendChild(this.sidebar.createVertexTemplateFromCells(A,n.w,n.h,D,!0,null,!0))}}catch(G){D=null!=G.message?mxResources.get("error")+": "+G.message:String(G),u=this.sidebar.createVertexTemplateFromCells(null,n.w,n.h,D,!0,null,!0),e.appendChild(u)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=
+mxResources.get("add"));E.insertBefore(l,E.firstChild);mxEvent.addListener(l,"click",A);".scratchpad"==c.title&&(this.addSelectionToScratchpad=A);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(l=this.createHelpIcon(EditorUi.scratchpadHelpLink),u=l.getElementsByTagName("img")[0],l.style.marginRight="1px",u.style.marginTop="-2px",u.style.opacity="",E.insertBefore(l,E.firstChild))}n.appendChild(E);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=
+function(c,e){for(var l=0;l<c.length;l++)try{var n=c[l],p=n.data;if(null!=p){p="data:"==p.substring(0,5)?this.convertDataUri(p):p;var u="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==n.aspect&&(u+="aspect=fixed;");u=u+"image="+p+";";null!=n.style&&(u+=n.style);e.appendChild(this.sidebar.createVertexTemplate(u,n.w,n.h,"",n.title||"",!1,null,!0))}else if(null!=n.xml){var B=this.stringToCells("<"==n.xml.charAt(0)?n.xml:Graph.decompress(n.xml)),D=0==B.length?mxResources.get("drawingEmpty"):
+null!=n.title?n.title:"";e.appendChild(this.sidebar.createVertexTemplateFromCells(B,n.w,n.h,D,!0,null,!0))}}catch(G){D=null!=G.message?mxResources.get("error")+": "+G.message:String(G),u=this.sidebar.createVertexTemplateFromCells(null,n.w,n.h,D,!0,null,!0),e.appendChild(u)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=
function(){"atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(mxClient.link("stylesheet",STYLE_PATH+"/atlas.css"),"undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground="linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=41,EditorUi.prototype.toolbarHeight=38);"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=
-".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(c,e,l,n,p,u,A){c=new ImageDialog(this,c,e,l,n,p,u,A);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,e,l,n,p,u){var A=localStorage.getItem(e);c=new TextareaDialog(this,c,null!=A?JSON.stringify(JSON.parse(A),null,2):"",mxUtils.bind(this,function(D){if(null!=D)try{if(null!=u&&
-u(D),D==A)this.hideDialog();else{if(0<D.length){var G=JSON.parse(D);localStorage.setItem(e,JSON.stringify(G))}else localStorage.removeItem(e);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(E){this.handleError(E)}}),null,mxResources.get("close"),null,null,null,!0,null,null,p,l,n);this.showDialog(c.container,660,480,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=function(c,e,l,n){c=null!=c?c:mxUtils.bind(this,function(p,u,A,D){u||(p=new ChangePageSetup(this,
-n?A:null,p),p.ignoreColor=!n,null!=D&&n&&(p.shadowVisible=D),this.editor.graph.model.execute(p))});c=new BackgroundImageDialog(this,c,e,l,n);this.showDialog(c.container,400,n?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,e,l,n,p){c=new LibraryDialog(this,c,e,l,n,p);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(u){u&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));c.init()};var m=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=
-function(c){var e=m.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(l){this.editor.graph.isSelectionEmpty()&&e.refresh()}));return e};EditorUi.prototype.handleError=function(c,e,l,n,p,u,A){var D=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},G=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&null!=c.message)try{A||EditorUi.logError("Caught: "+(""==c.message&&null!=c.name)?c.name:c.message,
-c.filename,c.lineNumber,c.columnNumber,c,"INFO"),"1"!=urlParams.test&&!A||null==window.console||console.error("EditorUi.handleError:",c)}catch(S){}if(null!=G||null!=e){A=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var E=mxResources.get("ok"),T=null;e=null!=e?e:mxResources.get("error");if(null!=G){null!=G.retry&&(E=mxResources.get("cancel"),T=function(){D();G.retry()});if(404==G.code||404==G.status||403==G.code){A=403==G.code?null!=G.message?mxUtils.htmlEntities(G.message,!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),
+".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(c,e,l,n,p,u,B){c=new ImageDialog(this,c,e,l,n,p,u,B);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,e,l,n,p,u){var B=localStorage.getItem(e);c=new TextareaDialog(this,c,null!=B?JSON.stringify(JSON.parse(B),null,2):"",mxUtils.bind(this,function(D){if(null!=D)try{if(null!=u&&
+u(D),D==B)this.hideDialog();else{if(0<D.length){var G=JSON.parse(D);localStorage.setItem(e,JSON.stringify(G))}else localStorage.removeItem(e);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(E){this.handleError(E)}}),null,mxResources.get("close"),null,null,null,!0,null,null,p,l,n);this.showDialog(c.container,660,480,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=function(c,e,l,n){c=null!=c?c:mxUtils.bind(this,function(p,u,B,D){u||(p=new ChangePageSetup(this,
+n?B:null,p),p.ignoreColor=!n,null!=D&&n&&(p.shadowVisible=D),this.editor.graph.model.execute(p))});c=new BackgroundImageDialog(this,c,e,l,n);this.showDialog(c.container,400,n?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,e,l,n,p){c=new LibraryDialog(this,c,e,l,n,p);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(u){u&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));c.init()};var m=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=
+function(c){var e=m.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(l){this.editor.graph.isSelectionEmpty()&&e.refresh()}));return e};EditorUi.prototype.handleError=function(c,e,l,n,p,u,B){var D=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},G=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&null!=c.message)try{B||EditorUi.logError("Caught: "+(""==c.message&&null!=c.name)?c.name:c.message,
+c.filename,c.lineNumber,c.columnNumber,c,"INFO"),"1"!=urlParams.test&&!B||null==window.console||console.error("EditorUi.handleError:",c)}catch(S){}if(null!=G||null!=e){B=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var E=mxResources.get("ok"),T=null;e=null!=e?e:mxResources.get("error");if(null!=G){null!=G.retry&&(E=mxResources.get("cancel"),T=function(){D();G.retry()});if(404==G.code||404==G.status||403==G.code){B=403==G.code?null!=G.message?mxUtils.htmlEntities(G.message,!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),
!1):null!=p?p:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?" ("+this.drive.user.email+")":""),!1);var O=null!=p?null:null!=u?u:window.location.hash;if(null!=O&&("#G"==O.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==O.substring(0,45))&&(null!=c&&null!=c.error&&(null!=c.error.errors&&0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||
-404==G.code||404==G.status)){O="#U"==O.substring(0,2)?O.substring(45,O.lastIndexOf("%26ex")):O.substring(2);this.showError(e,A,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+O);null!=n&&n()}),T,mxResources.get("changeUser"),mxUtils.bind(this,function(){function S(){B.innerText="";for(var H=0;H<k.length;H++){var R=document.createElement("option");mxUtils.write(R,k[H].displayName);R.value=H;B.appendChild(R);R=document.createElement("option");
-R.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(R,"<"+k[H].email+">");R.setAttribute("disabled","disabled");B.appendChild(R)}R=document.createElement("option");mxUtils.write(R,mxResources.get("addAccount"));R.value=k.length;B.appendChild(R)}var k=this.drive.getUsersList(),v=document.createElement("div"),z=document.createElement("div");z.style.marginBottom="6px";mxUtils.write(z,mxResources.get("changeUser")+": ");v.appendChild(z);var B=document.createElement("select");B.style.width="100%";S();mxEvent.addListener(B,
-"change",mxUtils.bind(this,function(){var H=B.value,R=k.length!=H;R&&this.drive.setUser(k[H]);this.drive.authorize(R,mxUtils.bind(this,function(){R||(k=this.drive.getUsersList(),S())}),mxUtils.bind(this,function(g){this.handleError(g)}),!0)}));v.appendChild(B);v=new CustomDialog(this,v,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(v.container,300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=l&&l()}),
-520,150);return}}null!=G.message?A=""==G.message&&null!=G.name?mxUtils.htmlEntities(G.name,!1):mxUtils.htmlEntities(G.message,!1):null!=G.response&&null!=G.response.error?A=mxUtils.htmlEntities(G.response.error,!1):"undefined"!==typeof window.App&&(G.code==App.ERROR_TIMEOUT?A=mxUtils.htmlEntities(mxResources.get("timeout"),!1):G.code==App.ERROR_BUSY?A=mxUtils.htmlEntities(mxResources.get("busy"),!1):"string"===typeof G&&0<G.length&&(A=mxUtils.htmlEntities(G,!1)))}p=c=null;null!=G&&null!=G.helpLink?
-(c=mxResources.get("help"),p=mxUtils.bind(this,function(){return this.editor.graph.openLink(G.helpLink)})):null!=G&&null!=G.ownerEmail?(c=mxResources.get("contactOwner"),A+=mxUtils.htmlEntities(" ("+c+": "+G.ownerEmail+")",!1),p=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(G.ownerEmail))})):null!=G&&null!=G.alternateAction&&(c=G.alternateAction.label,p=G.alternateAction.funct);this.showError(e,A,E,l,T,null,null,c,p,null,null,null,n?l:null)}else null!=l&&l()};EditorUi.prototype.alert=
-function(c,e,l){c=new ErrorDialog(this,null,c,mxResources.get("ok"),e);this.showDialog(c.container,l||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,e,l,n,p,u){c=null!=c?c:"";var A=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},D=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){A();null!=e&&e()},function(){A();null!=l&&l()},n,p,null,null,null,null,D);this.showDialog(c.container,340,46+D,!0,u);c.init()};EditorUi.prototype.showBanner=
-function(c,e,l,n,p,u,A,D,G){var E=!1;if(!(this.bannerShowing||this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){u=null!=u?u:"bottom:10px;left:50%;";A=null!=A?A:"translate(-50%,120%)";D=null!=D?D:"translate(-50%,0%)";var T=p?500:1E3;E=p?"padding:4px;border-radius:6px;font-size:11px;height:12px;font-weight:normal;":"font-size:16px;padding:18px 34px 12px 20px;font-weight:bold;";var O=document.createElement("div");O.style.cssText="position:absolute;"+
-u+";max-width:90%;white-space:nowrap;cursor:pointer;z-index:"+mxPopupMenu.prototype.zIndex+";"+E;mxUtils.setPrefixedStyle(O.style,"transform",A);mxUtils.setPrefixedStyle(O.style,"transition","all "+T+"ms ease");O.className="geBtn gePrimaryBtn"+(p?" geSmallBanner":"");Editor.isDarkMode()||mxUtils.setPrefixedStyle(O.style,"box-shadow","1px 1px 2px 0px #ddd");null!=G&&mxUtils.setPrefixedStyle(O.style,"transform-origin",G);if(!p){var S=document.createElement("img");S.setAttribute("src",IMAGE_PATH+"/logo.png");
+404==G.code||404==G.status)){O="#U"==O.substring(0,2)?O.substring(45,O.lastIndexOf("%26ex")):O.substring(2);this.showError(e,B,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+O);null!=n&&n()}),T,mxResources.get("changeUser"),mxUtils.bind(this,function(){function S(){A.innerText="";for(var H=0;H<k.length;H++){var R=document.createElement("option");mxUtils.write(R,k[H].displayName);R.value=H;A.appendChild(R);R=document.createElement("option");
+R.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(R,"<"+k[H].email+">");R.setAttribute("disabled","disabled");A.appendChild(R)}R=document.createElement("option");mxUtils.write(R,mxResources.get("addAccount"));R.value=k.length;A.appendChild(R)}var k=this.drive.getUsersList(),v=document.createElement("div"),z=document.createElement("div");z.style.marginBottom="6px";mxUtils.write(z,mxResources.get("changeUser")+": ");v.appendChild(z);var A=document.createElement("select");A.style.width="100%";S();mxEvent.addListener(A,
+"change",mxUtils.bind(this,function(){var H=A.value,R=k.length!=H;R&&this.drive.setUser(k[H]);this.drive.authorize(R,mxUtils.bind(this,function(){R||(k=this.drive.getUsersList(),S())}),mxUtils.bind(this,function(g){this.handleError(g)}),!0)}));v.appendChild(A);v=new CustomDialog(this,v,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(v.container,300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=l&&l()}),
+520,150);return}}null!=G.message?B=""==G.message&&null!=G.name?mxUtils.htmlEntities(G.name,!1):mxUtils.htmlEntities(G.message,!1):null!=G.response&&null!=G.response.error?B=mxUtils.htmlEntities(G.response.error,!1):"undefined"!==typeof window.App&&(G.code==App.ERROR_TIMEOUT?B=mxUtils.htmlEntities(mxResources.get("timeout"),!1):G.code==App.ERROR_BUSY?B=mxUtils.htmlEntities(mxResources.get("busy"),!1):"string"===typeof G&&0<G.length&&(B=mxUtils.htmlEntities(G,!1)))}p=c=null;null!=G&&null!=G.helpLink?
+(c=mxResources.get("help"),p=mxUtils.bind(this,function(){return this.editor.graph.openLink(G.helpLink)})):null!=G&&null!=G.ownerEmail?(c=mxResources.get("contactOwner"),B+=mxUtils.htmlEntities(" ("+c+": "+G.ownerEmail+")",!1),p=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(G.ownerEmail))})):null!=G&&null!=G.alternateAction&&(c=G.alternateAction.label,p=G.alternateAction.funct);this.showError(e,B,E,l,T,null,null,c,p,null,null,null,n?l:null)}else null!=l&&l()};EditorUi.prototype.alert=
+function(c,e,l){c=new ErrorDialog(this,null,c,mxResources.get("ok"),e);this.showDialog(c.container,l||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,e,l,n,p,u){c=null!=c?c:"";var B=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},D=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){B();null!=e&&e()},function(){B();null!=l&&l()},n,p,null,null,null,null,D);this.showDialog(c.container,340,46+D,!0,u);c.init()};EditorUi.prototype.showBanner=
+function(c,e,l,n,p,u,B,D,G){var E=!1;if(!(this.bannerShowing||this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){u=null!=u?u:"bottom:10px;left:50%;";B=null!=B?B:"translate(-50%,120%)";D=null!=D?D:"translate(-50%,0%)";var T=p?500:1E3;E=p?"padding:4px;border-radius:6px;font-size:11px;height:12px;font-weight:normal;":"font-size:16px;padding:18px 34px 12px 20px;font-weight:bold;";var O=document.createElement("div");O.style.cssText="position:absolute;"+
+u+";max-width:90%;white-space:nowrap;cursor:pointer;z-index:"+mxPopupMenu.prototype.zIndex+";"+E;mxUtils.setPrefixedStyle(O.style,"transform",B);mxUtils.setPrefixedStyle(O.style,"transition","all "+T+"ms ease");O.className="geBtn gePrimaryBtn"+(p?" geSmallBanner":"");Editor.isDarkMode()||mxUtils.setPrefixedStyle(O.style,"box-shadow","1px 1px 2px 0px #ddd");null!=G&&mxUtils.setPrefixedStyle(O.style,"transform-origin",G);if(!p){var S=document.createElement("img");S.setAttribute("src",IMAGE_PATH+"/logo.png");
S.setAttribute("border","0");S.setAttribute("align","absmiddle");S.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;";O.appendChild(S);S=document.createElement("img");S.setAttribute("src",Dialog.prototype.closeImage);S.setAttribute("title",mxResources.get(n?"doNotShowAgain":"close"));S.setAttribute("border","0");S.style.cssText=(p?"right:6px;top:9px;":"right:10px;top:12px;")+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;";O.appendChild(S)}mxUtils.write(O,
e);document.body.appendChild(O);this.bannerShowing=!0;e=document.createElement("div");e.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var k=document.createElement("input");k.setAttribute("type","checkbox");k.setAttribute("id","geDoNotShowAgainCheckbox");k.style.marginRight="6px";if(!n){e.appendChild(k);var v=document.createElement("label");v.setAttribute("for","geDoNotShowAgainCheckbox");mxUtils.write(v,
-mxResources.get("doNotShowAgain"));e.appendChild(v);O.style.paddingBottom=p?"16px":"30px";O.appendChild(e)}var z=mxUtils.bind(this,function(){null!=O.parentNode&&(O.parentNode.removeChild(O),this.bannerShowing=!1,k.checked||n)&&(this["hideBanner"+c]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=S&&mxEvent.addListener(S,"click",mxUtils.bind(this,function(H){mxEvent.consume(H);z()}));var B=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(O.style,
-"transform",A);window.setTimeout(mxUtils.bind(this,function(){z()}),T)});mxEvent.addListener(O,"click",mxUtils.bind(this,function(H){var R=mxEvent.getSource(H);R!=k&&R!=v?(null!=l&&l(),z(),mxEvent.consume(H)):B()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(O.style,"transform",D)}),T/2);window.setTimeout(B,p?4E3:3E4);E=!0}return E};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};
+mxResources.get("doNotShowAgain"));e.appendChild(v);O.style.paddingBottom=p?"16px":"30px";O.appendChild(e)}var z=mxUtils.bind(this,function(){null!=O.parentNode&&(O.parentNode.removeChild(O),this.bannerShowing=!1,k.checked||n)&&(this["hideBanner"+c]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=S&&mxEvent.addListener(S,"click",mxUtils.bind(this,function(H){mxEvent.consume(H);z()}));var A=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(O.style,
+"transform",B);window.setTimeout(mxUtils.bind(this,function(){z()}),T)});mxEvent.addListener(O,"click",mxUtils.bind(this,function(H){var R=mxEvent.getSource(H);R!=k&&R!=v?(null!=l&&l(),z(),mxEvent.consume(H)):A()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(O.style,"transform",D)}),T/2);window.setTimeout(A,p?4E3:3E4);E=!0}return E};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};
EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(c,e,l,n){c=c.toDataURL("image/"+l);if(null!=c&&6<c.length)null!=e&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(e))),0<n&&(c=Editor.writeGraphModelToPng(c,"pHYs","dpi",n));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,e,l,n,p){var u="jpeg"==l?"jpg":l;n=this.getBaseFilename(n)+(null!=e?".drawio":
"")+"."+u;c=this.createImageDataUri(c,e,l,p);this.saveData(n,u,c.substring(c.lastIndexOf(",")+1),"image/"+l,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,e){c=new TextareaDialog(this,c,e,null,null,mxResources.get("close"));
this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,e,l,n,p,u){"text/xml"!=l||/(\.drawio)$/i.test(e)||/(\.xml)$/i.test(e)||/(\.svg)$/i.test(e)||/(\.html)$/i.test(e)||(e=e+"."+(null!=u?u:"drawio"));if(window.Blob&&navigator.msSaveOrOpenBlob)c=n?this.base64ToBlob(c,l):new Blob([c],{type:l}),navigator.msSaveOrOpenBlob(c,e);else if(mxClient.IS_IE)l=window.open("about:blank","_blank"),null==
-l?mxUtils.popup(c,!0):(l.document.write(c),l.document.close(),l.document.execCommand("SaveAs",!0,e),l.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==l||"image/"!=l.substring(0,6)?this.showTextDialog(e+":",c):this.openInNewWindow(c,l,n);else{var A=document.createElement("a");u=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof A.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var D=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
-u=65==(D?parseInt(D[2],10):!1)?!1:u}if(u||this.isOffline()){A.href=URL.createObjectURL(n?this.base64ToBlob(c,l):new Blob([c],{type:l}));u?A.download=e:A.setAttribute("target","_blank");document.body.appendChild(A);try{window.setTimeout(function(){URL.revokeObjectURL(A.href)},2E4),A.click(),A.parentNode.removeChild(A)}catch(G){}}else this.createEchoRequest(c,e,l,n,p).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,e,l,n,p,u){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,
-c+(null!=l?"&mime="+l:"")+(null!=p?"&format="+p:"")+(null!=u?"&base64="+u:"")+(null!=e?"&filename="+encodeURIComponent(e):"")+(n?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(c,e,l,n,p,u,A,D){u=null!=u?u:!1;A=null!=A?A:"vsdx"!=p&&(!mxClient.IS_IOS||!navigator.standalone);var G=mxUtils.bind(this,function(T,O,S,k){try{if("_blank"==O)if(null!=l&&"image/"==l.substring(0,6))this.openInNewWindow(c,l,n);else if(null!=l&&"text/html"==l.substring(0,9)){var v=new EmbedDialog(this,c);this.showDialog(v.container,
-450,240,!0,!0);v.init()}else{var z=window.open("about:blank");null==z?mxUtils.popup(c,!0):(z.document.write("<pre>"+mxUtils.htmlEntities(c,!1)+"</pre>"),z.document.close())}else if(O==App.MODE_DEVICE||"download"==O)this.doSaveLocalFile(c,T,l,n,null,D);else if(null!=T&&0<T.length){var B=mxUtils.bind(this,function(H){try{this.exportFile(c,T,l,n,O,H)}catch(R){this.handleError(R)}});null!=k?B(k):this.pickFolder(O,B)}}catch(H){this.handleError(H)}});p=[];u||p.push(App.MODE_BROWSER);A||p.push("_blank");
+l?mxUtils.popup(c,!0):(l.document.write(c),l.document.close(),l.document.execCommand("SaveAs",!0,e),l.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==l||"image/"!=l.substring(0,6)?this.showTextDialog(e+":",c):this.openInNewWindow(c,l,n);else{var B=document.createElement("a");u=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof B.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var D=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
+u=65==(D?parseInt(D[2],10):!1)?!1:u}if(u||this.isOffline()){B.href=URL.createObjectURL(n?this.base64ToBlob(c,l):new Blob([c],{type:l}));u?B.download=e:B.setAttribute("target","_blank");document.body.appendChild(B);try{window.setTimeout(function(){URL.revokeObjectURL(B.href)},2E4),B.click(),B.parentNode.removeChild(B)}catch(G){}}else this.createEchoRequest(c,e,l,n,p).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,e,l,n,p,u){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,
+c+(null!=l?"&mime="+l:"")+(null!=p?"&format="+p:"")+(null!=u?"&base64="+u:"")+(null!=e?"&filename="+encodeURIComponent(e):"")+(n?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(c,e,l,n,p,u,B,D){u=null!=u?u:!1;B=null!=B?B:"vsdx"!=p&&(!mxClient.IS_IOS||!navigator.standalone);var G=mxUtils.bind(this,function(T,O,S,k){try{if("_blank"==O)if(null!=l&&"image/"==l.substring(0,6))this.openInNewWindow(c,l,n);else if(null!=l&&"text/html"==l.substring(0,9)){var v=new EmbedDialog(this,c);this.showDialog(v.container,
+450,240,!0,!0);v.init()}else{var z=window.open("about:blank");null==z?mxUtils.popup(c,!0):(z.document.write("<pre>"+mxUtils.htmlEntities(c,!1)+"</pre>"),z.document.close())}else if(O==App.MODE_DEVICE||"download"==O)this.doSaveLocalFile(c,T,l,n,null,D);else if(null!=T&&0<T.length){var A=mxUtils.bind(this,function(H){try{this.exportFile(c,T,l,n,O,H)}catch(R){this.handleError(R)}});null!=k?A(k):this.pickFolder(O,A)}}catch(H){this.handleError(H)}});p=[];u||p.push(App.MODE_BROWSER);B||p.push("_blank");
var E=new SaveDialog(this,e,mxUtils.bind(this,function(T,O,S){G(T.value,O,T,S);this.hideDialog(null,null,E.container)}),p,c,l,n);this.showDialog(E.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));E.init()};EditorUi.prototype.openInNewWindow=function(c,e,l){var n=window.open("about:blank");if(null==n||null==n.document)mxUtils.popup(c,!0);else{var p="background: light-dark(rgb(255, 255, 255), rgb(18, 18, 18))";if("image/svg+xml"==e){var u=mxUtils.parseXml(c).documentElement.style.backgroundColor;
""!=u&&(p="background: "+u+";")}p='<html><head><meta charset="UTF-8"></head><body style="color-scheme: light dark; '+p+'">';"image/svg+xml"!=e||mxClient.IS_SVG?"image/svg+xml"!=e||l?(u=l?c:btoa(unescape(encodeURIComponent(c))),n.document.write(p+'<img style="max-width:100%;" src="data:'+e+";base64,"+u+'"/></body></html>')):n.document.write(p+c+"</body></html>"):n.document.write(p+"<pre>"+mxUtils.htmlEntities(c,!1)+"</pre></body></html>");n.document.close()}};var d=EditorUi.prototype.addChromelessToolbarItems;
EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(c){if(null!=urlParams.tags){this.tagsDialog=this.tagsComponent=null;var e=c(mxUtils.bind(this,function(n){null==this.tagsComponent&&(this.tagsComponent=this.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return null!=this.tagsDialog}),
@@ -13141,137 +13155,137 @@ this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialog
null)}));this.editor.addListener("layersDialogShown",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));this.editor.addListener("pageSelected",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));mxEvent.addListener(this.editor.graph.container,
"click",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));if(this.isExportToCanvas()&&this.isChromelessImageExportEnabled()){this.exportDialog=null;var l=c(mxUtils.bind(this,function(n){var p=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",p);null!=this.exportDialog&&
(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)p.apply(this);else{this.exportDialog=document.createElement("div");var u=l.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign="center";this.exportDialog.style.fontFamily=Editor.defaultHtmlFont;this.exportDialog.style.backgroundColor="#000000";this.exportDialog.style.width=
-"50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding="4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,80);this.exportDialog.style.left=u.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";u=mxUtils.getCurrentStyle(this.editor.graph.container);this.exportDialog.style.zIndex=u.zIndex;var A=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"light-dark(#000000, #C0C0C0)",
-speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});A.spin(this.exportDialog);document.body.appendChild(this.exportDialog);mxEvent.addListener(this.editor.graph.container,"click",p);this.editor.exportToCanvas(mxUtils.bind(this,function(D){A.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var G=this.createImageDataUri(D,null,"png");D=document.createElement("img");D.style.maxWidth="140px";D.style.maxHeight="140px";
-D.style.cursor="pointer";D.style.backgroundColor="white";D.setAttribute("title",mxResources.get("openInNewWindow"));D.setAttribute("border","0");D.setAttribute("src",G);this.exportDialog.appendChild(D);mxEvent.addListener(D,"click",mxUtils.bind(this,function(){this.openInNewWindow(G.substring(G.indexOf(",")+1),"image/png",!0);p.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(D){A.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),
-this.exportDialog=null);this.handleError(D)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(n)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,e,l,n,p){this.isLocalFileSave()?this.saveLocalFile(l,c,n,p,e):this.saveRequest(c,e,mxUtils.bind(this,function(u,A){return this.createEchoRequest(l,u,n,p,e,A)}),l,p,n)};EditorUi.prototype.saveRequest=function(c,e,l,n,p,u,A){A=null!=A?A:!mxClient.IS_IOS||!navigator.standalone;var D=mxUtils.bind(this,
+"50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding="4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,80);this.exportDialog.style.left=u.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";u=mxUtils.getCurrentStyle(this.editor.graph.container);this.exportDialog.style.zIndex=u.zIndex;var B=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"light-dark(#000000, #C0C0C0)",
+speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});B.spin(this.exportDialog);document.body.appendChild(this.exportDialog);mxEvent.addListener(this.editor.graph.container,"click",p);this.editor.exportToCanvas(mxUtils.bind(this,function(D){B.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var G=this.createImageDataUri(D,null,"png");D=document.createElement("img");D.style.maxWidth="140px";D.style.maxHeight="140px";
+D.style.cursor="pointer";D.style.backgroundColor="white";D.setAttribute("title",mxResources.get("openInNewWindow"));D.setAttribute("border","0");D.setAttribute("src",G);this.exportDialog.appendChild(D);mxEvent.addListener(D,"click",mxUtils.bind(this,function(){this.openInNewWindow(G.substring(G.indexOf(",")+1),"image/png",!0);p.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(D){B.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),
+this.exportDialog=null);this.handleError(D)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(n)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,e,l,n,p){this.isLocalFileSave()?this.saveLocalFile(l,c,n,p,e):this.saveRequest(c,e,mxUtils.bind(this,function(u,B){return this.createEchoRequest(l,u,n,p,e,B)}),l,p,n)};EditorUi.prototype.saveRequest=function(c,e,l,n,p,u,B){B=null!=B?B:!mxClient.IS_IOS||!navigator.standalone;var D=mxUtils.bind(this,
function(E,T,O,S){if("_blank"==T||null!=E&&0<E.length){var k=l("_blank"==T?null:E,T==App.MODE_DEVICE||"download"==T||null==T||"_blank"==T?"0":"1");null!=k&&(T==App.MODE_DEVICE||"download"==T||"_blank"==T?k.simulate(document,"_blank"):(O=mxUtils.bind(this,function(v){u=null!=u?u:"pdf"==e?"application/pdf":"image/"+e;if(null!=n)try{this.exportFile(n,E,u,!0,T,v)}catch(z){this.handleError(z)}else this.spinner.spin(document.body,mxResources.get("saving"))&&k.send(mxUtils.bind(this,function(){this.spinner.stop();
-if(200<=k.getStatus()&&299>=k.getStatus())try{this.exportFile(k.getText(),E,u,!0,T,v)}catch(z){this.handleError(z)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(z){this.spinner.stop();this.handleError(z)}))}),null!=S?O(S):this.pickFolder(T,O)))}});p=[App.MODE_BROWSER];A||p.push("_blank");var G=new SaveDialog(this,c,mxUtils.bind(this,function(E,T,O){D(E.value,T,E,O);this.hideDialog(null,null,G.container)}),p,null,"application/pdf");this.showDialog(G.container,
+if(200<=k.getStatus()&&299>=k.getStatus())try{this.exportFile(k.getText(),E,u,!0,T,v)}catch(z){this.handleError(z)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(z){this.spinner.stop();this.handleError(z)}))}),null!=S?O(S):this.pickFolder(T,O)))}});p=[App.MODE_BROWSER];B||p.push("_blank");var G=new SaveDialog(this,c,mxUtils.bind(this,function(E,T,O){D(E.value,T,E,O);this.hideDialog(null,null,G.container)}),p,null,"application/pdf");this.showDialog(G.container,
420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));G.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,e,l,n,p,u){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,e,l){e(null)};EditorUi.prototype.exportSvg=function(c,e,l,n,p,u,
-A,D,G,E,T,O,S,k){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(L){Editor.addRetryToError(L,mxUtils.bind(this,function(){this.exportSvg(c,e,l,n,p,u,A,D,G,E,T,O,S,k)}));this.handleError(L)})))try{var v=this.editor.graph.isSelectionEmpty();l=null!=l?l:v;var z=e?null:this.editor.graph.background;z==mxConstants.NONE&&(z=null);null==z&&0==e&&(z=this.editor.graph.shapeBackgroundColor);var B=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&
-(this.editor.graph.addForeignObjectWarning=function(){});var H=this.editor.graph.createSvgImageExport(p),R=this.editor.graph.getSvg(z,c,A,D,null,l,null,H,"blank"==E?"_blank":"self"==E?"_top":null,null,!S,T,O);this.editor.graph.addForeignObjectWarning=B;n&&this.editor.graph.addSvgShadow(R);var g=this.getBaseFilename()+(p?".drawio":"")+".svg";k=null!=k?k:mxUtils.bind(this,function(L){this.isLocalFileSave()||L.length<=MAX_REQUEST_SIZE?this.saveData(g,"svg",L,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},
-mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(L)}))});var q=mxUtils.bind(this,function(L){this.spinner.stop();p&&L.setAttribute("content",this.getFileData(!0,null,null,null,l,G,null,null,null,null,null,c,A));k(Graph.xmlDeclaration+"\n"+(p?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(L))});this.editor.graph.mathEnabled&&this.editor.addMathCss(R);var F=mxUtils.bind(this,function(L){Editor.replaceSvgDataUris&&u&&EditorUi.embedSvgImages(L);Editor.foreignObjectImages&&
-S?this.replaceAlternateContent(L,T,q):q(L)}),J=mxUtils.bind(this,function(L){u&&!this.isOffline()&&this.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(L,F,this.thumbImageCache)):F(L)});S?this.embedFonts(R,J):(this.editor.addFontCss(R),J(R))}catch(L){this.handleError(L)}};EditorUi.prototype.replaceAlternateContent=function(c,e,l){function n(O,S,k,v,z){var B=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");B.setAttribute("x",S);B.setAttribute("y",
-k+.5);B.setAttribute("width",v.width);B.setAttribute("height",v.height);null==B.setAttributeNS?B.setAttribute("xlink:href",z):B.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",z);O.replaceChild(B,O.lastChild);D()}function p(){if(A<T.length)T[A++](p)}var u="";e=c.getElementsByTagName("style");for(var A=0;A<e.length;A++)u+=e[A].innerHTML;e=c.getElementsByTagName("switch");counter=e.length;var D=mxUtils.bind(this,function(){counter--;0==counter&&l(c)}),G={},E={},T=[];for(A=0;A<e.length;A++)mxUtils.bind(this,
-function(O){var S=O.getElementsByTagName("div");if(0<S.length)try{var k=S[0].cloneNode(!0),v=parseInt(k.style.marginLeft),z=parseInt(k.style.paddingTop),B=k.getElementsByTagName("div")[1],H=S=!1,R=k.style.alignItems,g=k.style.justifyContent;if(null!=k.style.writingMode){var q=k.style.writingMode;H="vertical-"==q.substring(0,9);S="-rl"==q.substring(q.length-3)}var F=!H&&"1px"==k.style.width||H&&"1px"==k.style.height;if(!H&&"1px"==k.style.height||H&&"1px"==k.style.width)k.style.alignItems=H&&S?"unsafe flex-end":
-"unsafe flex-start";F&&(k.style.justifyContent="unsafe flex-start");k.style.paddingTop="";k.style.marginLeft="";var J=k.outerHTML,L=G[J];null==L&&(k.style.position="absolute",k.style.visibility="hidden",document.body.appendChild(k),q=1,q="1px"==k.style.width?B.offsetWidth:parseInt(k.style.width),F=1,F="1px"==k.style.height?B.offsetHeight:parseInt(k.style.height),document.body.removeChild(k),L=new mxRectangle(v,z,q,F),G[J]=L);"1px"==k.style.height&&("unsafe center"==R?z-=L.height/2:"unsafe flex-end"==
-R&&(z-=L.height));if("1px"==k.style.width)if(!H&&"unsafe center"==g||H&&"unsafe center"==R)v-=L.width/2;else if(!H&&"unsafe flex-end"==g||H&&(!S&&"unsafe flex-end"==R||S&&"unsafe flex-start"==R))v-=L.width;L=new mxRectangle(v,z,L.width,L.height+parseInt(B.style.fontSize)/4);T.push(mxUtils.bind(this,function(Q){var U=E[J];null==U?Graph.htmlToPng(J,L.width,L.height,mxUtils.bind(this,function(V){n(O,v,z,L,V);E[J]=V;Q()}),u):(n(O,v,z,L,U),Q())}))}catch(Q){D()}else D()})(e[A]);0==counter&&l(c);A=0;p()};
-EditorUi.prototype.addRadiobox=function(c,e,l,n,p,u,A){return this.addCheckbox(c,l,n,p,u,A,!0,e)};EditorUi.prototype.addCheckbox=function(c,e,l,n,p,u,A,D){u=null!=u?u:!0;var G=document.createElement("input");G.style.marginRight="8px";G.style.marginTop="16px";G.setAttribute("type",A?"radio":"checkbox");A="geCheckbox-"+Editor.guid();G.id=A;null!=D&&G.setAttribute("name",D);l&&(G.setAttribute("checked","checked"),G.defaultChecked=!0);n&&G.setAttribute("disabled","disabled");u&&(c.appendChild(G),l=document.createElement("label"),
-mxUtils.write(l,e),l.setAttribute("for",A),c.appendChild(l),p||mxUtils.br(c));return G};EditorUi.prototype.addEditButton=function(c,e){var l=this.addCheckbox(c,mxResources.get("edit")+":",!0,null,!0);l.style.marginLeft="24px";var n=this.getCurrentFile(),p="";null!=n&&n.getMode()!=App.MODE_DEVICE&&n.getMode()!=App.MODE_BROWSER&&(p=window.location.href);var u=document.createElement("select");u.style.maxWidth="200px";u.style.width="auto";u.style.marginLeft="8px";u.style.marginRight="10px";u.className=
-"geBtn";n=document.createElement("option");n.setAttribute("value","blank");mxUtils.write(n,mxResources.get("makeCopy"));u.appendChild(n);var A=document.createElement("option");A.setAttribute("value","custom");mxUtils.write(A,mxResources.get("custom")+"...");u.appendChild(A);c.appendChild(u);mxEvent.addListener(u,"change",mxUtils.bind(this,function(){if("custom"==u.value){var D=new FilenameDialog(this,p,mxResources.get("ok"),function(G){null!=G?(p=G,A.setAttribute("title",G)):(u.value="blank",A.removeAttribute("title"))},
+B,D,G,E,T,O,S,k){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(L){Editor.addRetryToError(L,mxUtils.bind(this,function(){this.exportSvg(c,e,l,n,p,u,B,D,G,E,T,O,S,k)}));this.handleError(L)})))try{var v=this.editor.graph.isSelectionEmpty();l=null!=l?l:v;var z=e?null:this.editor.graph.background;z==mxConstants.NONE&&(z=null);null==z&&0==e&&(z=this.editor.graph.shapeBackgroundColor);var A=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&
+(this.editor.graph.addForeignObjectWarning=function(){});var H=this.editor.graph.createSvgImageExport(p),R=this.editor.graph.getSvg(z,c,B,D,null,l,null,H,"blank"==E?"_blank":"self"==E?"_top":null,null,!S,T,O);this.editor.graph.addForeignObjectWarning=A;n&&this.editor.graph.addSvgShadow(R);var g=this.getBaseFilename()+(p?".drawio":"")+".svg";k=null!=k?k:mxUtils.bind(this,function(L){this.isLocalFileSave()||L.length<=MAX_REQUEST_SIZE?this.saveData(g,"svg",L,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},
+mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(L)}))});var q=mxUtils.bind(this,function(L){this.spinner.stop();p&&L.setAttribute("content",this.getFileData(!0,null,null,null,l,G,null,null,null,null,null,c,B));k(Graph.xmlDeclaration+"\n"+(p?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(L))});this.editor.graph.mathEnabled&&this.editor.addMathCss(R);var F=mxUtils.bind(this,function(L){Editor.replaceSvgDataUris&&u&&EditorUi.embedSvgImages(L);Editor.foreignObjectImages&&
+S?this.replaceAlternateContent(L,T,q):q(L)}),J=mxUtils.bind(this,function(L){u&&!this.isOffline()&&this.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(L,F,this.thumbImageCache)):F(L)});S?this.embedFonts(R,J):(this.editor.addFontCss(R),J(R))}catch(L){this.handleError(L)}};EditorUi.prototype.replaceAlternateContent=function(c,e,l){function n(O,S,k,v,z){var A=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");A.setAttribute("x",S);A.setAttribute("y",
+k+.5);A.setAttribute("width",v.width);A.setAttribute("height",v.height);null==A.setAttributeNS?A.setAttribute("xlink:href",z):A.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",z);O.replaceChild(A,O.lastChild);D()}function p(){if(B<T.length)T[B++](p)}var u="";e=c.getElementsByTagName("style");for(var B=0;B<e.length;B++)u+=e[B].innerHTML;e=c.getElementsByTagName("switch");counter=e.length;var D=mxUtils.bind(this,function(){counter--;0==counter&&l(c)}),G={},E={},T=[];for(B=0;B<e.length;B++)mxUtils.bind(this,
+function(O){var S=O.getElementsByTagName("div");if(0<S.length)try{var k=S[0].cloneNode(!0),v=parseInt(k.style.marginLeft),z=parseInt(k.style.paddingTop),A=k.getElementsByTagName("div")[1],H=S=!1,R=k.style.alignItems,g=k.style.justifyContent;if(null!=k.style.writingMode){var q=k.style.writingMode;H="vertical-"==q.substring(0,9);S="-rl"==q.substring(q.length-3)}var F=!H&&"1px"==k.style.width||H&&"1px"==k.style.height;if(!H&&"1px"==k.style.height||H&&"1px"==k.style.width)k.style.alignItems=H&&S?"unsafe flex-end":
+"unsafe flex-start";F&&(k.style.justifyContent="unsafe flex-start");k.style.paddingTop="";k.style.marginLeft="";var J=k.outerHTML,L=G[J];null==L&&(k.style.position="absolute",k.style.visibility="hidden",document.body.appendChild(k),q=1,q="1px"==k.style.width?A.offsetWidth:parseInt(k.style.width),F=1,F="1px"==k.style.height?A.offsetHeight:parseInt(k.style.height),document.body.removeChild(k),L=new mxRectangle(v,z,q,F),G[J]=L);"1px"==k.style.height&&("unsafe center"==R?z-=L.height/2:"unsafe flex-end"==
+R&&(z-=L.height));if("1px"==k.style.width)if(!H&&"unsafe center"==g||H&&"unsafe center"==R)v-=L.width/2;else if(!H&&"unsafe flex-end"==g||H&&(!S&&"unsafe flex-end"==R||S&&"unsafe flex-start"==R))v-=L.width;L=new mxRectangle(v,z,L.width,L.height+parseInt(A.style.fontSize)/4);T.push(mxUtils.bind(this,function(Q){var U=E[J];null==U?Graph.htmlToPng(J,L.width,L.height,mxUtils.bind(this,function(V){n(O,v,z,L,V);E[J]=V;Q()}),u):(n(O,v,z,L,U),Q())}))}catch(Q){D()}else D()})(e[B]);0==counter&&l(c);B=0;p()};
+EditorUi.prototype.addRadiobox=function(c,e,l,n,p,u,B){return this.addCheckbox(c,l,n,p,u,B,!0,e)};EditorUi.prototype.addCheckbox=function(c,e,l,n,p,u,B,D){u=null!=u?u:!0;var G=document.createElement("input");G.style.marginRight="8px";G.style.marginTop="16px";G.setAttribute("type",B?"radio":"checkbox");B="geCheckbox-"+Editor.guid();G.id=B;null!=D&&G.setAttribute("name",D);l&&(G.setAttribute("checked","checked"),G.defaultChecked=!0);n&&G.setAttribute("disabled","disabled");u&&(c.appendChild(G),l=document.createElement("label"),
+mxUtils.write(l,e),l.setAttribute("for",B),c.appendChild(l),p||mxUtils.br(c));return G};EditorUi.prototype.addEditButton=function(c,e){var l=this.addCheckbox(c,mxResources.get("edit")+":",!0,null,!0);l.style.marginLeft="24px";var n=this.getCurrentFile(),p="";null!=n&&n.getMode()!=App.MODE_DEVICE&&n.getMode()!=App.MODE_BROWSER&&(p=window.location.href);var u=document.createElement("select");u.style.maxWidth="200px";u.style.width="auto";u.style.marginLeft="8px";u.style.marginRight="10px";u.className=
+"geBtn";n=document.createElement("option");n.setAttribute("value","blank");mxUtils.write(n,mxResources.get("makeCopy"));u.appendChild(n);var B=document.createElement("option");B.setAttribute("value","custom");mxUtils.write(B,mxResources.get("custom")+"...");u.appendChild(B);c.appendChild(u);mxEvent.addListener(u,"change",mxUtils.bind(this,function(){if("custom"==u.value){var D=new FilenameDialog(this,p,mxResources.get("ok"),function(G){null!=G?(p=G,B.setAttribute("title",G)):(u.value="blank",B.removeAttribute("title"))},
mxResources.get("url"),null,null,null,null,function(){u.value="blank"});this.showDialog(D.container,300,80,!0,!1);D.init()}}));mxEvent.addListener(l,"change",mxUtils.bind(this,function(){l.checked&&(null==e||e.checked)?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return l.checked?"blank"===u.value?"_blank":p:null},getEditInput:function(){return l},getEditSelect:function(){return u}}};EditorUi.prototype.addLinkSection=function(c,e){function l(){var D=
-document.createElement("div");D.style.width="100%";D.style.height="100%";D.style.boxSizing="border-box";null!=u&&u!=mxConstants.NONE?(D.style.border="1px solid black",D.style.backgroundColor=u):(D.style.backgroundPosition="center center",D.style.backgroundRepeat="no-repeat",D.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");A.innerText="";A.appendChild(D)}mxUtils.write(c,mxResources.get("links")+":");var n=document.createElement("select");n.style.width="100px";n.style.padding="0px";
+document.createElement("div");D.style.width="100%";D.style.height="100%";D.style.boxSizing="border-box";null!=u&&u!=mxConstants.NONE?(D.style.border="1px solid black",D.style.backgroundColor=u):(D.style.backgroundPosition="center center",D.style.backgroundRepeat="no-repeat",D.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");B.innerText="";B.appendChild(D)}mxUtils.write(c,mxResources.get("links")+":");var n=document.createElement("select");n.style.width="100px";n.style.padding="0px";
n.style.marginLeft="8px";n.style.marginRight="10px";n.className="geBtn";var p=document.createElement("option");p.setAttribute("value","auto");mxUtils.write(p,mxResources.get("automatic"));n.appendChild(p);p=document.createElement("option");p.setAttribute("value","blank");mxUtils.write(p,mxResources.get("openInNewWindow"));n.appendChild(p);p=document.createElement("option");p.setAttribute("value","self");mxUtils.write(p,mxResources.get("openInThisWindow"));n.appendChild(p);e&&(e=document.createElement("option"),
-e.setAttribute("value","frame"),mxUtils.write(e,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),n.appendChild(e));c.appendChild(n);mxUtils.write(c,mxResources.get("borderColor")+":");var u="#0000ff",A=null;A=mxUtils.button("",mxUtils.bind(this,function(D){this.pickColor(u||"none",function(G){u=G;l()});mxEvent.consume(D)}));l();A.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";A.style.marginLeft="4px";A.style.height="22px";A.style.width="22px";A.style.position="relative";
-A.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";A.className="geColorBtn";c.appendChild(A);mxUtils.br(c);return{getColor:function(){return u},getTarget:function(){return n.value},focus:function(){n.focus()}}};EditorUi.prototype.createUrlParameters=function(c,e,l,n,p,u){u=null!=u?u:[];l&&(u.push("lightbox=1"),"auto"!=c&&u.push("target="+c),null!=e&&e!=mxConstants.NONE&&u.push("highlight="+("#"==e.charAt(0)?e.substring(1):e)),null!=n&&0<n.length&&u.push("edit="+encodeURIComponent(n)),
-p&&u.push("layers=1"),this.editor.graph.foldingEnabled&&u.push("nav=1"));return u};EditorUi.prototype.createLink=function(c,e,l,n,p,u,A,D,G,E,T){var O=this.getCurrentFile();G=this.createUrlParameters(c,e,n,p,u,G);c=!0;null!=A?l="#U"+encodeURIComponent(A):D||null==O||""==O.getHash()?l="#R"+encodeURIComponent(l?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(l="#"+O.getHash(),c=!1);c&&null!=O&&null!=O.getTitle()&&O.getTitle()!=
-this.defaultFilename&&G.push("title="+encodeURIComponent(O.getTitle()));E&&1<l.length&&(G.push("open="+l.substring(1)),l="");T&&null!=this.currentPage&&G.push("page-id="+this.currentPage.getId());return(n&&(null!=A||null!=O&&O.getMode()!=App.MODE_GITHUB&&O.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<G.length?"?"+G.join("&"):"")+l};EditorUi.prototype.createHtml=
-function(c,e,l,n,p,u,A,D,G,E,T,O,S){this.getBasenames();var k={};""!=p&&p!=mxConstants.NONE&&(k.highlight=p);"auto"!==n&&(k.target=n);E||(k.lightbox=!1);k.nav=this.editor.graph.foldingEnabled;l=parseInt(l);isNaN(l)||100==l||(k.zoom=l/100);l=[];A&&(l.push("pages"),k.resize=!0,null!=this.pages&&null!=this.currentPage&&(k.page=mxUtils.indexOf(this.pages,this.currentPage)));e&&(l.push("zoom"),k.resize=!0);D&&l.push("layers");G&&l.push("tags");null!=S&&(k["dark-mode"]=S);0<l.length&&(E&&l.push("lightbox"),
-k.toolbar=l.join(" "));null!=T&&0<T.length&&(k.edit=T);null!=c?k.url=c:k.xml=this.getFileData(!0,null,null,null,null,!A);e='<div class="mxgraph" style="'+(u?"max-width:100%;":"")+(""!=l?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(k))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";O(e,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?
-"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(c,e,l,n){var p=document.createElement("div");p.style.whiteSpace="nowrap";var u=document.createElement("h3");mxUtils.write(u,mxResources.get("html"));u.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";p.appendChild(u);var A=document.createElement("div");A.style.cssText=
-"border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var D=document.createElement("input");D.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";D.setAttribute("value","url");D.setAttribute("type","radio");D.setAttribute("name","type-embedhtmldialog");u=D.cloneNode(!0);u.setAttribute("value","copy");A.appendChild(u);var G=document.createElement("span");mxUtils.write(G,mxResources.get("includeCopyOfMyDiagram"));A.appendChild(G);mxUtils.br(A);A.appendChild(D);G=
-document.createElement("span");mxUtils.write(G,mxResources.get("publicDiagramUrl"));A.appendChild(G);var E=this.getCurrentFile();null==l&&null!=E&&E.constructor==window.DriveFile&&(G=document.createElement("a"),G.style.paddingLeft="12px",G.style.color="gray",G.style.cursor="pointer",mxUtils.write(G,mxResources.get("share")),A.appendChild(G),mxEvent.addListener(G,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(E.getId(),E)})));u.setAttribute("checked","checked");null==
-l&&D.setAttribute("disabled","disabled");p.appendChild(A);A=380;var T=this.addLinkSection(p),O=document.createElement("select");O.style.maxWidth="260px";O.style.marginLeft="8px";O.style.marginTop="16px";G=document.createElement("option");G.setAttribute("value","light");mxUtils.write(G,mxResources.get("light"));O.appendChild(G);G=document.createElement("option");G.setAttribute("value","dark");mxUtils.write(G,mxResources.get("dark"));O.appendChild(G);G=document.createElement("option");G.setAttribute("value",
-"auto");mxUtils.write(G,mxResources.get("automatic"));G.setAttribute("selected","selected");O.appendChild(G);G.setAttribute("selected","selected");mxUtils.write(p,mxResources.get("appearance")+":");p.appendChild(O);mxUtils.br(p);A+=26;var S=this.addCheckbox(p,mxResources.get("zoom"),!0,null,!0);mxUtils.write(p,":");var k=document.createElement("input");k.setAttribute("type","text");k.style.marginRight="16px";k.style.width="60px";k.style.marginLeft="4px";k.style.marginRight="12px";k.value="100%";p.appendChild(k);
-var v=this.addCheckbox(p,mxResources.get("fit"),!0);G=null!=this.pages&&1<this.pages.length;var z=z=this.addCheckbox(p,mxResources.get("allPages"),G,!G),B=this.addCheckbox(p,mxResources.get("layers"),!0),H=this.addCheckbox(p,mxResources.get("tags"),!0),R=this.addCheckbox(p,mxResources.get("lightbox"),!0),g=null;if(EditorUi.enableHtmlEditOption){g=this.addEditButton(p,R);var q=g.getEditInput();q.style.marginBottom="16px";A+=50;mxEvent.addListener(R,"change",function(){R.checked?q.removeAttribute("disabled"):
-q.setAttribute("disabled","disabled");q.checked&&R.checked?g.getEditSelect().removeAttribute("disabled"):g.getEditSelect().setAttribute("disabled","disabled")})}c=new CustomDialog(this,p,mxUtils.bind(this,function(){n(D.checked?l:null,S.checked,k.value,T.getTarget(),T.getColor(),v.checked,z.checked,B.checked,H.checked,R.checked,null!=g?g.getLink():null,null!=O?O.value:null)}),null,c,e);this.showDialog(c.container,340,A,!0,!0);u.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,e,l,n,p,
-u,A,D,G){var E=document.createElement("div");E.style.whiteSpace="nowrap";var T=document.createElement("h3");mxUtils.write(T,c||mxResources.get("publish"));T.style.width="100%";T.style.textAlign="center";T.style.marginTop="2px";T.style.marginBottom="20px";E.appendChild(T);var O=document.createElement("select");c=30;O.className="geBtn";O.style.marginBottom="8px";O.style.marginLeft="0px";O.style.width="100%";O.style.boxSizing="border-box";if(null==D||""==D.getHash())p=null!=p?p:"https://www.drawio.com/doc/faq/publish-diagram-as-link",
-T=document.createElement("option"),mxUtils.write(T,mxResources.get("makeCopy")),T.setAttribute("value","copy"),O.appendChild(T);T=document.createElement("option");mxUtils.write(T,mxResources.get("authorizationRequired"));T.setAttribute("value","auth");O.appendChild(T);null!=D&&""!=D.getHash()||T.setAttribute("disabled","disabled");D=document.createElement("option");D.setAttribute("value","public");O.appendChild(D);null!=A?(mxUtils.write(D,mxResources.get("publicDiagramUrl")),D.setAttribute("title",
-A),O.value="public"):(mxUtils.write(D,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+")"),D.setAttribute("disabled","disabled"));E.appendChild(O);mxUtils.br(E);O.focus();var S=null,k=null;if(null!=e||null!=l)c+=30,mxUtils.write(E,mxResources.get("width")+":"),S=document.createElement("input"),S.setAttribute("type","text"),S.style.marginRight="16px",S.style.width="50px",S.style.marginLeft="6px",S.style.marginRight="16px",S.style.marginBottom="10px",S.value="100%",E.appendChild(S),
+e.setAttribute("value","frame"),mxUtils.write(e,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),n.appendChild(e));c.appendChild(n);mxUtils.write(c,mxResources.get("borderColor")+":");var u="#0000ff",B=null;B=mxUtils.button("",mxUtils.bind(this,function(D){this.pickColor(u||"none",function(G){u=G;l()});mxEvent.consume(D)}));l();B.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";B.style.marginLeft="4px";B.style.height="22px";B.style.width="22px";B.style.position="relative";
+B.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";B.className="geColorBtn";c.appendChild(B);mxUtils.br(c);return{getColor:function(){return u},getTarget:function(){return n.value},focus:function(){n.focus()}}};EditorUi.prototype.createUrlParameters=function(c,e,l,n,p,u){u=null!=u?u:[];l&&(u.push("lightbox=1"),"auto"!=c&&u.push("target="+c),null!=e&&e!=mxConstants.NONE&&u.push("highlight="+("#"==e.charAt(0)?e.substring(1):e)),null!=n&&0<n.length&&u.push("edit="+encodeURIComponent(n)),
+p&&u.push("layers=1"),this.editor.graph.foldingEnabled&&u.push("nav=1"));return u};EditorUi.prototype.createLink=function(c,e,l,n,p,u,B,D,G,E,T){var O=this.getCurrentFile();G=this.createUrlParameters(c,e,n,p,u,G);c=!0;null!=B?l="#U"+encodeURIComponent(B):D||null==O||""==O.getHash()?l="#R"+encodeURIComponent(l?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(l="#"+O.getHash(),c=!1);c&&null!=O&&null!=O.getTitle()&&O.getTitle()!=
+this.defaultFilename&&G.push("title="+encodeURIComponent(O.getTitle()));E&&1<l.length&&(G.push("open="+l.substring(1)),l="");T&&null!=this.currentPage&&G.push("page-id="+this.currentPage.getId());return(n&&(null!=B||null!=O&&O.getMode()!=App.MODE_GITHUB&&O.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<G.length?"?"+G.join("&"):"")+l};EditorUi.prototype.createHtml=
+function(c,e,l,n,p,u,B,D,G,E,T,O,S){this.getBasenames();var k={};""!=p&&p!=mxConstants.NONE&&(k.highlight=p);"auto"!==n&&(k.target=n);E||(k.lightbox=!1);k.nav=this.editor.graph.foldingEnabled;l=parseInt(l);isNaN(l)||100==l||(k.zoom=l/100);l=[];B&&(l.push("pages"),k.resize=!0,null!=this.pages&&null!=this.currentPage&&(k.page=mxUtils.indexOf(this.pages,this.currentPage)));e&&(l.push("zoom"),k.resize=!0);D&&l.push("layers");G&&l.push("tags");null!=S&&(k["dark-mode"]=S);0<l.length&&(E&&l.push("lightbox"),
+k.toolbar=l.join(" "));null!=T&&0<T.length&&(k.edit=T);null!=c?k.url=c:k.xml=this.getFileData(!0,null,null,null,null,!B);e='<div class="mxgraph" style="'+(u?"max-width:100%;":"")+(""!=l?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(k))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";O(e,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?
+"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(c,e,l,n){var p=document.createElement("div");p.style.whiteSpace="nowrap";var u=document.createElement("h3");mxUtils.write(u,mxResources.get("html"));u.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";p.appendChild(u);var B=document.createElement("div");B.style.cssText=
+"border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var D=document.createElement("input");D.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";D.setAttribute("value","url");D.setAttribute("type","radio");D.setAttribute("name","type-embedhtmldialog");u=D.cloneNode(!0);u.setAttribute("value","copy");B.appendChild(u);var G=document.createElement("span");mxUtils.write(G,mxResources.get("includeCopyOfMyDiagram"));B.appendChild(G);mxUtils.br(B);B.appendChild(D);G=
+document.createElement("span");mxUtils.write(G,mxResources.get("publicDiagramUrl"));B.appendChild(G);var E=this.getCurrentFile();null==l&&null!=E&&E.constructor==window.DriveFile&&(G=document.createElement("a"),G.style.paddingLeft="12px",G.style.color="gray",G.style.cursor="pointer",mxUtils.write(G,mxResources.get("share")),B.appendChild(G),mxEvent.addListener(G,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(E.getId(),E)})));u.setAttribute("checked","checked");null==
+l&&D.setAttribute("disabled","disabled");p.appendChild(B);B=380;var T=this.addLinkSection(p),O=document.createElement("select");O.style.maxWidth="260px";O.style.marginLeft="8px";O.style.marginTop="16px";G=document.createElement("option");G.setAttribute("value","light");mxUtils.write(G,mxResources.get("light"));O.appendChild(G);G=document.createElement("option");G.setAttribute("value","dark");mxUtils.write(G,mxResources.get("dark"));O.appendChild(G);G=document.createElement("option");G.setAttribute("value",
+"auto");mxUtils.write(G,mxResources.get("automatic"));G.setAttribute("selected","selected");O.appendChild(G);G.setAttribute("selected","selected");mxUtils.write(p,mxResources.get("appearance")+":");p.appendChild(O);mxUtils.br(p);B+=26;var S=this.addCheckbox(p,mxResources.get("zoom"),!0,null,!0);mxUtils.write(p,":");var k=document.createElement("input");k.setAttribute("type","text");k.style.marginRight="16px";k.style.width="60px";k.style.marginLeft="4px";k.style.marginRight="12px";k.value="100%";p.appendChild(k);
+var v=this.addCheckbox(p,mxResources.get("fit"),!0);G=null!=this.pages&&1<this.pages.length;var z=z=this.addCheckbox(p,mxResources.get("allPages"),G,!G),A=this.addCheckbox(p,mxResources.get("layers"),!0),H=this.addCheckbox(p,mxResources.get("tags"),!0),R=this.addCheckbox(p,mxResources.get("lightbox"),!0),g=null;if(EditorUi.enableHtmlEditOption){g=this.addEditButton(p,R);var q=g.getEditInput();q.style.marginBottom="16px";B+=50;mxEvent.addListener(R,"change",function(){R.checked?q.removeAttribute("disabled"):
+q.setAttribute("disabled","disabled");q.checked&&R.checked?g.getEditSelect().removeAttribute("disabled"):g.getEditSelect().setAttribute("disabled","disabled")})}c=new CustomDialog(this,p,mxUtils.bind(this,function(){n(D.checked?l:null,S.checked,k.value,T.getTarget(),T.getColor(),v.checked,z.checked,A.checked,H.checked,R.checked,null!=g?g.getLink():null,null!=O?O.value:null)}),null,c,e);this.showDialog(c.container,340,B,!0,!0);u.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,e,l,n,p,
+u,B,D,G){var E=document.createElement("div");E.style.whiteSpace="nowrap";var T=document.createElement("h3");mxUtils.write(T,c||mxResources.get("publish"));T.style.width="100%";T.style.textAlign="center";T.style.marginTop="2px";T.style.marginBottom="20px";E.appendChild(T);var O=document.createElement("select");c=30;O.className="geBtn";O.style.marginBottom="8px";O.style.marginLeft="0px";O.style.width="100%";O.style.boxSizing="border-box";if(null==D||""==D.getHash())p=null!=p?p:"https://www.drawio.com/doc/faq/publish-diagram-as-link",
+T=document.createElement("option"),mxUtils.write(T,mxResources.get("makeCopy")),T.setAttribute("value","copy"),O.appendChild(T);T=document.createElement("option");mxUtils.write(T,mxResources.get("authorizationRequired"));T.setAttribute("value","auth");O.appendChild(T);null!=D&&""!=D.getHash()||T.setAttribute("disabled","disabled");D=document.createElement("option");D.setAttribute("value","public");O.appendChild(D);null!=B?(mxUtils.write(D,mxResources.get("publicDiagramUrl")),D.setAttribute("title",
+B),O.value="public"):(mxUtils.write(D,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+")"),D.setAttribute("disabled","disabled"));E.appendChild(O);mxUtils.br(E);O.focus();var S=null,k=null;if(null!=e||null!=l)c+=30,mxUtils.write(E,mxResources.get("width")+":"),S=document.createElement("input"),S.setAttribute("type","text"),S.style.marginRight="16px",S.style.width="50px",S.style.marginLeft="6px",S.style.marginRight="16px",S.style.marginBottom="10px",S.value="100%",E.appendChild(S),
mxUtils.write(E,mxResources.get("height")+":"),k=document.createElement("input"),k.setAttribute("type","text"),k.style.width="50px",k.style.marginLeft="6px",k.style.marginBottom="10px",k.value=l+"px",E.appendChild(k),mxUtils.br(E);var v=this.addLinkSection(E,n),z=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(c+=30,e=null!=this.currentPage?this.currentPage.getName():"",16<e.length&&(e=e.substring(0,16)+"..."),z=this.addCheckbox(E,mxResources.get("selectedPage")+
-": "+e));var B=this.addCheckbox(E,mxResources.get("lightbox"),!0,null,null,!n),H=this.addEditButton(E,B),R=H.getEditInput();n&&(R.style.marginLeft=B.style.marginLeft,B.style.display="none",c-=20);var g=this.addCheckbox(E,mxResources.get("layers"),!0);g.style.marginLeft=R.style.marginLeft;g.style.marginTop="8px";var q=this.addCheckbox(E,mxResources.get("tags"),!0);q.style.marginLeft=R.style.marginLeft;q.style.marginBottom="16px";q.style.marginTop="16px";mxEvent.addListener(B,"change",function(){B.checked?
-(g.removeAttribute("disabled"),R.removeAttribute("disabled"),q.removeAttribute("disabled")):(g.setAttribute("disabled","disabled"),R.setAttribute("disabled","disabled"),q.setAttribute("disabled","disabled"));R.checked&&B.checked?H.getEditSelect().removeAttribute("disabled"):H.getEditSelect().setAttribute("disabled","disabled")});n=new CustomDialog(this,E,mxUtils.bind(this,function(){G(v.getTarget(),v.getColor(),null==z?!1:z.checked,B.checked,H.getLink(),g.checked,null!=S?S.value:null,null!=k?k.value:
-null,q.checked,O.value)}),null,mxResources.get("create"),p,u);this.showDialog(n.container,340,296+c,!0,!0);null!=S?(S.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?S.select():document.execCommand("selectAll",!1,null)):null==O.parentNode;v.focus()};EditorUi.prototype.showRemoteExportDialog=function(c,e,l,n,p){var u=document.createElement("div");u.style.whiteSpace="nowrap";var A=document.createElement("h3");mxUtils.write(A,mxResources.get("image"));A.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+
-(p?"10":"4")+"px";u.appendChild(A);if(p){mxUtils.write(u,mxResources.get("zoom")+":");var D=document.createElement("input");D.setAttribute("type","text");D.style.marginRight="16px";D.style.width="60px";D.style.marginLeft="4px";D.style.marginRight="12px";D.value=this.lastExportZoom||"100%";u.appendChild(D);mxUtils.write(u,mxResources.get("borderWidth")+":");var G=document.createElement("input");G.setAttribute("type","text");G.style.marginRight="16px";G.style.width="60px";G.style.marginLeft="4px";G.value=
-this.lastExportBorder||"0";u.appendChild(G);mxUtils.br(u)}var E=this.addCheckbox(u,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),T=n?null:this.addCheckbox(u,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);A=this.editor.graph;var O=n?null:this.addCheckbox(u,mxResources.get("transparentBackground"),A.background==mxConstants.NONE||null==A.background);null!=O&&(O.style.marginBottom="16px");c=new CustomDialog(this,u,mxUtils.bind(this,function(){var S=
-parseInt(D.value)/100||1,k=parseInt(G.value)||0;l(!E.checked,null!=T?T.checked:!1,null!=O?O.checked:!1,S,k)}),null,c,e);this.showDialog(c.container,300,(p?25:0)+(n?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(c,e,l,n,p,u,A,D,G){A=null!=A?A:Editor.defaultIncludeDiagram;var E=document.createElement("div");E.style.whiteSpace="nowrap";var T=this.editor.graph,O="jpeg"==D||"webp"==D?220:320,S=document.createElement("h3");mxUtils.write(S,c);S.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";
+": "+e));var A=this.addCheckbox(E,mxResources.get("lightbox"),!0,null,null,!n),H=this.addEditButton(E,A),R=H.getEditInput();n&&(R.style.marginLeft=A.style.marginLeft,A.style.display="none",c-=20);var g=this.addCheckbox(E,mxResources.get("layers"),!0);g.style.marginLeft=R.style.marginLeft;g.style.marginTop="8px";var q=this.addCheckbox(E,mxResources.get("tags"),!0);q.style.marginLeft=R.style.marginLeft;q.style.marginBottom="16px";q.style.marginTop="16px";mxEvent.addListener(A,"change",function(){A.checked?
+(g.removeAttribute("disabled"),R.removeAttribute("disabled"),q.removeAttribute("disabled")):(g.setAttribute("disabled","disabled"),R.setAttribute("disabled","disabled"),q.setAttribute("disabled","disabled"));R.checked&&A.checked?H.getEditSelect().removeAttribute("disabled"):H.getEditSelect().setAttribute("disabled","disabled")});n=new CustomDialog(this,E,mxUtils.bind(this,function(){G(v.getTarget(),v.getColor(),null==z?!1:z.checked,A.checked,H.getLink(),g.checked,null!=S?S.value:null,null!=k?k.value:
+null,q.checked,O.value)}),null,mxResources.get("create"),p,u);this.showDialog(n.container,340,296+c,!0,!0);null!=S?(S.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?S.select():document.execCommand("selectAll",!1,null)):null==O.parentNode;v.focus()};EditorUi.prototype.showRemoteExportDialog=function(c,e,l,n,p){var u=document.createElement("div");u.style.whiteSpace="nowrap";var B=document.createElement("h3");mxUtils.write(B,mxResources.get("image"));B.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+
+(p?"10":"4")+"px";u.appendChild(B);if(p){mxUtils.write(u,mxResources.get("zoom")+":");var D=document.createElement("input");D.setAttribute("type","text");D.style.marginRight="16px";D.style.width="60px";D.style.marginLeft="4px";D.style.marginRight="12px";D.value=this.lastExportZoom||"100%";u.appendChild(D);mxUtils.write(u,mxResources.get("borderWidth")+":");var G=document.createElement("input");G.setAttribute("type","text");G.style.marginRight="16px";G.style.width="60px";G.style.marginLeft="4px";G.value=
+this.lastExportBorder||"0";u.appendChild(G);mxUtils.br(u)}var E=this.addCheckbox(u,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),T=n?null:this.addCheckbox(u,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);B=this.editor.graph;var O=n?null:this.addCheckbox(u,mxResources.get("transparentBackground"),B.background==mxConstants.NONE||null==B.background);null!=O&&(O.style.marginBottom="16px");c=new CustomDialog(this,u,mxUtils.bind(this,function(){var S=
+parseInt(D.value)/100||1,k=parseInt(G.value)||0;l(!E.checked,null!=T?T.checked:!1,null!=O?O.checked:!1,S,k)}),null,c,e);this.showDialog(c.container,300,(p?25:0)+(n?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(c,e,l,n,p,u,B,D,G){B=null!=B?B:Editor.defaultIncludeDiagram;var E=document.createElement("div");E.style.whiteSpace="nowrap";var T=this.editor.graph,O="jpeg"==D||"webp"==D?220:320,S=document.createElement("h3");mxUtils.write(S,c);S.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";
E.appendChild(S);mxUtils.write(E,mxResources.get("zoom")+":");var k=document.createElement("input");k.setAttribute("type","text");k.style.marginRight="16px";k.style.width="60px";k.style.marginLeft="4px";k.style.marginRight="12px";k.value=this.lastExportZoom||"100%";E.appendChild(k);mxUtils.write(E,mxResources.get("borderWidth")+":");var v=document.createElement("input");v.setAttribute("type","text");v.style.marginRight="16px";v.style.width="60px";v.style.marginLeft="4px";v.value=this.lastExportBorder||
-"0";E.appendChild(v);mxUtils.br(E);var z=this.addCheckbox(E,mxResources.get("selectionOnly"),!1,T.isSelectionEmpty()),B=document.createElement("input");B.style.marginTop="16px";B.style.marginRight="8px";B.style.marginLeft="24px";B.setAttribute("disabled","disabled");B.setAttribute("type","checkbox");var H=document.createElement("select");H.style.marginTop="16px";H.style.marginLeft="8px";c=["selectionOnly","diagram","page"];for(S=0;S<c.length;S++)if(!T.isSelectionEmpty()||"selectionOnly"!=c[S]){var R=
-document.createElement("option");mxUtils.write(R,mxResources.get(c[S]));R.setAttribute("value",c[S]);H.appendChild(R)}G?(mxUtils.write(E,mxResources.get("size")+":"),E.appendChild(H),mxUtils.br(E),O+=26,mxEvent.addListener(H,"change",function(){"selectionOnly"==H.value&&(z.checked=!0)})):u&&(E.appendChild(B),mxUtils.write(E,mxResources.get("crop")),mxUtils.br(E),O+=30,mxEvent.addListener(z,"change",function(){z.checked?B.removeAttribute("disabled"):B.setAttribute("disabled","disabled")}));T.isSelectionEmpty()?
-G&&(z.style.display="none",z.nextSibling.style.display="none",z.nextSibling.nextSibling.style.display="none",O-=30):(H.value="diagram",B.setAttribute("checked","checked"),B.defaultChecked=!0,mxEvent.addListener(z,"change",function(){H.value=z.checked?"selectionOnly":"diagram"}));var g=this.addCheckbox(E,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=D&&"webp"!=D),q=document.createElement("select");q.style.maxWidth="260px";q.style.marginLeft="8px";q.style.marginTop="16px";u=document.createElement("option");
+"0";E.appendChild(v);mxUtils.br(E);var z=this.addCheckbox(E,mxResources.get("selectionOnly"),!1,T.isSelectionEmpty()),A=document.createElement("input");A.style.marginTop="16px";A.style.marginRight="8px";A.style.marginLeft="24px";A.setAttribute("disabled","disabled");A.setAttribute("type","checkbox");var H=document.createElement("select");H.style.marginTop="16px";H.style.marginLeft="8px";c=["selectionOnly","diagram","page"];for(S=0;S<c.length;S++)if(!T.isSelectionEmpty()||"selectionOnly"!=c[S]){var R=
+document.createElement("option");mxUtils.write(R,mxResources.get(c[S]));R.setAttribute("value",c[S]);H.appendChild(R)}G?(mxUtils.write(E,mxResources.get("size")+":"),E.appendChild(H),mxUtils.br(E),O+=26,mxEvent.addListener(H,"change",function(){"selectionOnly"==H.value&&(z.checked=!0)})):u&&(E.appendChild(A),mxUtils.write(E,mxResources.get("crop")),mxUtils.br(E),O+=30,mxEvent.addListener(z,"change",function(){z.checked?A.removeAttribute("disabled"):A.setAttribute("disabled","disabled")}));T.isSelectionEmpty()?
+G&&(z.style.display="none",z.nextSibling.style.display="none",z.nextSibling.nextSibling.style.display="none",O-=30):(H.value="diagram",A.setAttribute("checked","checked"),A.defaultChecked=!0,mxEvent.addListener(z,"change",function(){H.value=z.checked?"selectionOnly":"diagram"}));var g=this.addCheckbox(E,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=D&&"webp"!=D),q=document.createElement("select");q.style.maxWidth="260px";q.style.marginLeft="8px";q.style.marginTop="16px";u=document.createElement("option");
u.setAttribute("value","light");mxUtils.write(u,mxResources.get("light"));q.appendChild(u);G=document.createElement("option");G.setAttribute("value","dark");mxUtils.write(G,mxResources.get("dark"));q.appendChild(G);"svg"==D?(u=document.createElement("option"),u.setAttribute("value","auto"),mxUtils.write(u,mxResources.get("automatic")),u.setAttribute("selected","selected"),q.appendChild(u)):Editor.isDarkMode()?G.setAttribute("selected","selected"):u.setAttribute("selected","selected");mxUtils.write(E,
-mxResources.get("appearance")+":");E.appendChild(q);mxUtils.br(E);O+=26;var F=this.addCheckbox(E,mxResources.get("shadow"),T.shadowVisible),J=null;if("png"==D||"jpeg"==D||"webp"==D)J=this.addCheckbox(E,mxResources.get("grid"),!1,this.isOffline()||!this.canvasSupported,!1,!0),O+=30;var L=this.addCheckbox(E,mxResources.get("includeCopyOfMyDiagram")+":",A,null,null,"jpeg"!=D&&"webp"!=D),Q=document.createElement("select");Q.style.maxWidth="260px";Q.style.marginLeft="28px";"png"==D||"svg"==D?(A=function(){L.checked?
+mxResources.get("appearance")+":");E.appendChild(q);mxUtils.br(E);O+=26;var F=this.addCheckbox(E,mxResources.get("shadow"),T.shadowVisible),J=null;if("png"==D||"jpeg"==D||"webp"==D)J=this.addCheckbox(E,mxResources.get("grid"),!1,this.isOffline()||!this.canvasSupported,!1,!0),O+=30;var L=this.addCheckbox(E,mxResources.get("includeCopyOfMyDiagram")+":",B,null,null,"jpeg"!=D&&"webp"!=D),Q=document.createElement("select");Q.style.maxWidth="260px";Q.style.marginLeft="28px";"png"==D||"svg"==D?(B=function(){L.checked?
Q.removeAttribute("disabled"):Q.setAttribute("disabled","disabled")},T=document.createElement("option"),T.setAttribute("value","allPages"),mxUtils.write(T,mxResources.get("allPages")),Q.appendChild(T),T=document.createElement("option"),T.setAttribute("value","currentPage"),mxUtils.write(T,mxResources.get("currentPage")),Q.appendChild(T),L.style.marginBottom="12px",Q.style.marginBottom="16px",E.appendChild(Q),mxUtils.br(E),O+=20,null!=this.lastEmbedInclude&&(Q.value=this.lastEmbedInclude),mxEvent.addListener(L,
-"change",A),A()):L.style.marginBottom="16px";var U=document.createElement("input");U.style.marginBottom="16px";U.style.marginRight="8px";U.setAttribute("type","checkbox");var V=document.createElement("input");V.style.marginBottom="16px";V.style.marginRight="8px";V.setAttribute("type","checkbox");e&&(U.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,E.appendChild(U),mxUtils.write(E,mxResources.get("embedImages")),mxUtils.br(E),V.checked=null!=this.lastEmbedFonts?this.lastEmbedImages:!0,
-E.appendChild(V),mxUtils.write(E,mxResources.get("embedFonts")),mxUtils.br(E),O+=50);var W=document.createElement("select");W.style.maxWidth="260px";W.style.marginLeft="8px";u=document.createElement("option");u.setAttribute("value","auto");mxUtils.write(u,mxResources.get("automatic"));W.appendChild(u);A=document.createElement("option");A.setAttribute("value","blank");mxUtils.write(A,mxResources.get("openInNewWindow"));W.appendChild(A);A=document.createElement("option");A.setAttribute("value","self");
-mxUtils.write(A,mxResources.get("openInThisWindow"));W.appendChild(A);A=document.createElement("div");mxUtils.write(A,mxResources.get("LinksLost"));A.style.margin="7px";A.style.display="none";"svg"==D&&(mxUtils.write(E,mxResources.get("links")+":"),E.appendChild(W),E.appendChild(A),mxUtils.br(E),mxUtils.br(E),O+=50);l=new CustomDialog(this,E,mxUtils.bind(this,function(){this.lastExportBorder=v.value;this.lastExportZoom=k.value;this.lastEmbedImages=U.checked;this.lastEmbedFonts=V.checked;this.lastEmbedInclude=
-Q.value;p(k.value,g.checked,!z.checked,F.checked,L.checked,U.checked&&e,v.value,B.checked,("png"==D||"svg"==D)&&"currentPage"==Q.value,W.value,null!=J?J.checked:null,null!=q?q.value:null,H.value,V.checked)}),null,l,n);this.showDialog(l.container,340,O,!0,!0,null,null,null,null,!0);k.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?k.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,e,l,n,p){var u=document.createElement("div");u.style.whiteSpace=
-"nowrap";var A=this.editor.graph;if(null!=e){var D=document.createElement("h3");mxUtils.write(D,e);D.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";u.appendChild(D)}var G=this.addCheckbox(u,mxResources.get("fit"),!0),E=this.addCheckbox(u,mxResources.get("shadow"),A.shadowVisible&&n,!n),T=this.addCheckbox(u,l),O=this.addCheckbox(u,mxResources.get("lightbox"),!0),S=this.addEditButton(u,O),k=S.getEditInput(),v=1<A.model.getChildCount(A.model.getRoot()),z=this.addCheckbox(u,
+"change",B),B()):L.style.marginBottom="16px";var U=document.createElement("input");U.style.marginBottom="16px";U.style.marginRight="8px";U.setAttribute("type","checkbox");var V=document.createElement("input");V.style.marginBottom="16px";V.style.marginRight="8px";V.setAttribute("type","checkbox");e&&(U.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,E.appendChild(U),mxUtils.write(E,mxResources.get("embedImages")),mxUtils.br(E),V.checked=null!=this.lastEmbedFonts?this.lastEmbedImages:!0,
+E.appendChild(V),mxUtils.write(E,mxResources.get("embedFonts")),mxUtils.br(E),O+=50);var W=document.createElement("select");W.style.maxWidth="260px";W.style.marginLeft="8px";u=document.createElement("option");u.setAttribute("value","auto");mxUtils.write(u,mxResources.get("automatic"));W.appendChild(u);B=document.createElement("option");B.setAttribute("value","blank");mxUtils.write(B,mxResources.get("openInNewWindow"));W.appendChild(B);B=document.createElement("option");B.setAttribute("value","self");
+mxUtils.write(B,mxResources.get("openInThisWindow"));W.appendChild(B);B=document.createElement("div");mxUtils.write(B,mxResources.get("LinksLost"));B.style.margin="7px";B.style.display="none";"svg"==D&&(mxUtils.write(E,mxResources.get("links")+":"),E.appendChild(W),E.appendChild(B),mxUtils.br(E),mxUtils.br(E),O+=50);l=new CustomDialog(this,E,mxUtils.bind(this,function(){this.lastExportBorder=v.value;this.lastExportZoom=k.value;this.lastEmbedImages=U.checked;this.lastEmbedFonts=V.checked;this.lastEmbedInclude=
+Q.value;p(k.value,g.checked,!z.checked,F.checked,L.checked,U.checked&&e,v.value,A.checked,("png"==D||"svg"==D)&&"currentPage"==Q.value,W.value,null!=J?J.checked:null,null!=q?q.value:null,H.value,V.checked)}),null,l,n);this.showDialog(l.container,340,O,!0,!0,null,null,null,null,!0);k.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?k.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,e,l,n,p){var u=document.createElement("div");u.style.whiteSpace=
+"nowrap";var B=this.editor.graph;if(null!=e){var D=document.createElement("h3");mxUtils.write(D,e);D.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";u.appendChild(D)}var G=this.addCheckbox(u,mxResources.get("fit"),!0),E=this.addCheckbox(u,mxResources.get("shadow"),B.shadowVisible&&n,!n),T=this.addCheckbox(u,l),O=this.addCheckbox(u,mxResources.get("lightbox"),!0),S=this.addEditButton(u,O),k=S.getEditInput(),v=1<B.model.getChildCount(B.model.getRoot()),z=this.addCheckbox(u,
mxResources.get("layers"),v,!v);z.style.marginLeft=k.style.marginLeft;z.style.marginBottom="12px";z.style.marginTop="8px";mxEvent.addListener(O,"change",function(){O.checked?(v&&z.removeAttribute("disabled"),k.removeAttribute("disabled")):(z.setAttribute("disabled","disabled"),k.setAttribute("disabled","disabled"));k.checked&&O.checked?S.getEditSelect().removeAttribute("disabled"):S.getEditSelect().setAttribute("disabled","disabled")});e=new CustomDialog(this,u,mxUtils.bind(this,function(){c(G.checked,
-E.checked,T.checked,O.checked,S.getLink(),z.checked)}),null,mxResources.get("embed"),p);this.showDialog(e.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,e,l,n,p,u,A,D){function G(k){var v=" ",z="";n&&(v=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
-EditorUi.lightboxHost+"/?client=1"+(null!=T?"&page="+T:"")+(p?"&edit=_blank":"")+(u?"&layers=1":"")+"');}})(this);\"",z+="cursor:pointer;");c&&(z+="max-width:100%;");var B="";l&&(B=' width="'+Math.round(E.width)+'" height="'+Math.round(E.height)+'"');A('<img src="'+k+'"'+B+(""!=z?' style="'+z+'"':"")+v+"/>")}var E=this.editor.graph.getGraphBounds(),T=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(k){var v=n?this.getFileData(!0):null;k=
+E.checked,T.checked,O.checked,S.getLink(),z.checked)}),null,mxResources.get("embed"),p);this.showDialog(e.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,e,l,n,p,u,B,D){function G(k){var v=" ",z="";n&&(v=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
+EditorUi.lightboxHost+"/?client=1"+(null!=T?"&page="+T:"")+(p?"&edit=_blank":"")+(u?"&layers=1":"")+"');}})(this);\"",z+="cursor:pointer;");c&&(z+="max-width:100%;");var A="";l&&(A=' width="'+Math.round(E.width)+'" height="'+Math.round(E.height)+'"');B('<img src="'+k+'"'+A+(""!=z?' style="'+z+'"':"")+v+"/>")}var E=this.editor.graph.getGraphBounds(),T=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(k){var v=n?this.getFileData(!0):null;k=
this.createImageDataUri(k,v,"png");G(k)}),null,null,null,mxUtils.bind(this,function(k){D({message:mxResources.get("unknownError")})}),null,!0,l?2:1,null,e,null,null,Editor.defaultBorder);else if(e=this.getFileData(!0),E.width*E.height<=MAX_AREA&&e.length<=MAX_REQUEST_SIZE){var O="";l&&(O="&w="+Math.round(2*E.width)+"&h="+Math.round(2*E.height));var S=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(n?"1":"0")+O+"&xml="+encodeURIComponent(e));S.send(mxUtils.bind(this,function(){200<=S.getStatus()&&
-299>=S.getStatus()?G("data:image/png;base64,"+S.getText()):D({message:mxResources.get("unknownError")})}))}else D({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,e,l,n,p,u,A){var D=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!l,"auto"),G=D.getElementsByTagName("a");if(null!=G)for(var E=0;E<G.length;E++){var T=G[E].getAttribute("href");null!=T&&"#"==T.charAt(0)&&"_blank"==G[E].getAttribute("target")&&G[E].removeAttribute("target")}n&&
+299>=S.getStatus()?G("data:image/png;base64,"+S.getText()):D({message:mxResources.get("unknownError")})}))}else D({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,e,l,n,p,u,B){var D=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!l,"auto"),G=D.getElementsByTagName("a");if(null!=G)for(var E=0;E<G.length;E++){var T=G[E].getAttribute("href");null!=T&&"#"==T.charAt(0)&&"_blank"==G[E].getAttribute("target")&&G[E].removeAttribute("target")}n&&
D.setAttribute("content",this.getFileData(!0));e&&this.editor.graph.addSvgShadow(D);if(l){var O=" ",S="";n&&(O="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(p?"&edit=_blank":"")+(u?"&layers=1":
-"")+"');}})(this);\"",S+="cursor:pointer;");c&&(S+="max-width:100%;");this.editor.convertImages(D,mxUtils.bind(this,function(k){A('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(k))+'"'+(""!=S?' style="'+S+'"':"")+O+"/>")}))}else S="",n&&(e=this.getSelectedPageIndex(),D.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
-EditorUi.lightboxHost+"/?client=1"+(null!=e?"&page="+e:"")+(p?"&edit=_blank":"")+(u?"&layers=1":"")+"');}}})(this);"),S+="cursor:pointer;"),c&&(c=parseInt(D.getAttribute("width")),p=parseInt(D.getAttribute("height")),D.setAttribute("viewBox","-0.5 -0.5 "+c+" "+p),S+="max-width:100%;max-height:"+p+"px;",D.removeAttribute("height")),""!=S&&D.setAttribute("style",S),this.editor.addFontCss(D),this.editor.graph.mathEnabled&&this.editor.addMathCss(D),A(mxUtils.getXml(D))};EditorUi.prototype.timeSince=function(c){c=
+"")+"');}})(this);\"",S+="cursor:pointer;");c&&(S+="max-width:100%;");this.editor.convertImages(D,mxUtils.bind(this,function(k){B('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(k))+'"'+(""!=S?' style="'+S+'"':"")+O+"/>")}))}else S="",n&&(e=this.getSelectedPageIndex(),D.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
+EditorUi.lightboxHost+"/?client=1"+(null!=e?"&page="+e:"")+(p?"&edit=_blank":"")+(u?"&layers=1":"")+"');}}})(this);"),S+="cursor:pointer;"),c&&(c=parseInt(D.getAttribute("width")),p=parseInt(D.getAttribute("height")),D.setAttribute("viewBox","-0.5 -0.5 "+c+" "+p),S+="max-width:100%;max-height:"+p+"px;",D.removeAttribute("height")),""!=S&&D.setAttribute("style",S),this.editor.addFontCss(D),this.editor.graph.mathEnabled&&this.editor.addMathCss(D),B(mxUtils.getXml(D))};EditorUi.prototype.timeSince=function(c){c=
Math.floor((new Date-c)/1E3);var e=Math.floor(c/31536E3);if(1<e)return e+" "+mxResources.get("years");e=Math.floor(c/2592E3);if(1<e)return e+" "+mxResources.get("months");e=Math.floor(c/86400);if(1<e)return e+" "+mxResources.get("days");e=Math.floor(c/3600);if(1<e)return e+" "+mxResources.get("hours");e=Math.floor(c/60);return 1<e?e+" "+mxResources.get("minutes"):1==e?e+" "+mxResources.get("minute"):null};EditorUi.prototype.decodeNodeIntoGraph=function(c,e){if(null!=c){var l=null;if("diagram"==c.nodeName)l=
c;else if("mxfile"==c.nodeName){var n=c.getElementsByTagName("diagram");if(0<n.length){l=n[0];var p=e.getGlobalVariable;e.getGlobalVariable=function(u){return"page"==u?l.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==u?1:p.apply(this,arguments)}}}null!=l&&(c=Editor.parseDiagramNode(l))}n=this.editor.graph;try{this.editor.graph=e,this.editor.setGraphXml(c)}catch(u){}finally{this.editor.graph=n}return c};EditorUi.prototype.getSvgFileProperties=function(c){return this.getPngFileProperties(c)};
-EditorUi.prototype.getPngFileProperties=function(c){var e=1,l=0;if(null!=c){if(c.hasAttribute("scale")){var n=parseFloat(c.getAttribute("scale"));!isNaN(n)&&0<n&&(e=n)}c.hasAttribute("border")&&(n=parseInt(c.getAttribute("border")),!isNaN(n)&&0<n&&(l=n))}return{scale:e,border:l}};EditorUi.prototype.getEmbeddedPng=function(c,e,l,n,p){try{var u=this.editor.graph,A=null;if(null!=l&&0<l.length)u=this.createTemporaryGraph(u.getStylesheet()),document.body.appendChild(u.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(l).documentElement,
-!0),u),A=l;else if(null!=this.pages&&this.currentPage!=this.pages[0]){u=this.createTemporaryGraph(u.getStylesheet());var D=u.getGlobalVariable;u.setBackgroundImage=this.editor.graph.setBackgroundImage;var G=this.pages[0];this.currentPage==G?u.setBackgroundImage(this.editor.graph.backgroundImage):null!=G.viewState&&null!=G.viewState&&u.setBackgroundImage(G.viewState.backgroundImage);u.getGlobalVariable=function(E){return"page"==E?G.getName():"pagenumber"==E?1:D.apply(this,arguments)};document.body.appendChild(u.container);
-u.model.setRoot(G.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(E){try{null==A&&(A=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var T=E.toDataURL("image/png");T=Editor.writeGraphModelToPng(T,"tEXt","mxfile",encodeURIComponent(A));c(T.substring(T.lastIndexOf(",")+1));u!=this.editor.graph&&u.container.parentNode.removeChild(u.container)}catch(O){null!=e&&e(O)}}),null,null,null,mxUtils.bind(this,function(E){null!=e&&e(E)}),null,null,n,null,u.shadowVisible,null,u,p,null,
-null,null,"diagram",null)}catch(E){null!=e&&e(E)}};EditorUi.prototype.getEmbeddedSvg=function(c,e,l,n,p,u,A,D,G,E,T,O,S){D=null!=D?D:!0;T=null!=T?T:0;A=null!=G?G:e.background;A==mxConstants.NONE&&(A=null);null==A&&"none"==e.getAdaptiveColors()&&(A="#ffffff");G=this.editor.graph.createSvgImageExport(null!=c);u=e.getSvg(A,E,T,null,null,u,null,G,null,e.shadowVisible||O,null,S,"diagram");(e.shadowVisible||O)&&e.addSvgShadow(u,null,null,0==T);null!=c&&u.setAttribute("content",c);null!=l&&u.setAttribute("resource",
+EditorUi.prototype.getPngFileProperties=function(c){var e=1,l=0;if(null!=c){if(c.hasAttribute("scale")){var n=parseFloat(c.getAttribute("scale"));!isNaN(n)&&0<n&&(e=n)}c.hasAttribute("border")&&(n=parseInt(c.getAttribute("border")),!isNaN(n)&&0<n&&(l=n))}return{scale:e,border:l}};EditorUi.prototype.getEmbeddedPng=function(c,e,l,n,p){try{var u=this.editor.graph,B=null;if(null!=l&&0<l.length)u=this.createTemporaryGraph(u.getStylesheet()),document.body.appendChild(u.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(l).documentElement,
+!0),u),B=l;else if(null!=this.pages&&this.currentPage!=this.pages[0]){u=this.createTemporaryGraph(u.getStylesheet());var D=u.getGlobalVariable;u.setBackgroundImage=this.editor.graph.setBackgroundImage;var G=this.pages[0];this.currentPage==G?u.setBackgroundImage(this.editor.graph.backgroundImage):null!=G.viewState&&null!=G.viewState&&u.setBackgroundImage(G.viewState.backgroundImage);u.getGlobalVariable=function(E){return"page"==E?G.getName():"pagenumber"==E?1:D.apply(this,arguments)};document.body.appendChild(u.container);
+u.model.setRoot(G.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(E){try{null==B&&(B=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var T=E.toDataURL("image/png");T=Editor.writeGraphModelToPng(T,"tEXt","mxfile",encodeURIComponent(B));c(T.substring(T.lastIndexOf(",")+1));u!=this.editor.graph&&u.container.parentNode.removeChild(u.container)}catch(O){null!=e&&e(O)}}),null,null,null,mxUtils.bind(this,function(E){null!=e&&e(E)}),null,null,n,null,u.shadowVisible,null,u,p,null,
+null,null,"diagram",null)}catch(E){null!=e&&e(E)}};EditorUi.prototype.getEmbeddedSvg=function(c,e,l,n,p,u,B,D,G,E,T,O,S){D=null!=D?D:!0;T=null!=T?T:0;B=null!=G?G:e.background;B==mxConstants.NONE&&(B=null);null==B&&"none"==e.getAdaptiveColors()&&(B="#ffffff");G=this.editor.graph.createSvgImageExport(null!=c);u=e.getSvg(B,E,T,null,null,u,null,G,null,e.shadowVisible||O,null,S,"diagram");(e.shadowVisible||O)&&e.addSvgShadow(u,null,null,0==T);null!=c&&u.setAttribute("content",c);null!=l&&u.setAttribute("resource",
l);var k=mxUtils.bind(this,function(v){v=(n?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(v);null!=p&&p(v);return v});e.mathEnabled&&this.editor.addMathCss(u);if(null!=p)this.embedFonts(u,mxUtils.bind(this,function(v){D?this.editor.convertImages(v,mxUtils.bind(this,function(z){k(z)})):k(v)}));else return k(u)};EditorUi.prototype.embedFonts=function(c,e){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(c,
-this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(l){try{null!=l&&this.editor.addFontCss(c,l),e(c)}catch(n){e(c)}}))}catch(l){e(c)}}))};EditorUi.prototype.exportImage=function(c,e,l,n,p,u,A,D,G,E,T,O,S){G=null!=G?G:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(v){Editor.addRetryToError(v,mxUtils.bind(this,function(){this.exportImage(c,e,l,n,p,u,A,D,G,E,T,O,S)}));this.handleError(v)}))){var k=this.editor.graph.isSelectionEmpty();
-l=null!=l?l:k;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(v){this.spinner.stop();try{this.saveCanvas(v,p?this.getFileData(!0,null,null,null,l,D,null,null,null,null,null,c,u):null,G,null==this.pages||0==this.pages.length,T)}catch(z){this.handleError(z)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}),null,l,c||1,e,n,null,null,u,A,E,O,S)}catch(v){this.spinner.stop(),this.handleError(v)}}};
-EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var e=0;e<this.pages.length;e++)c[this.pages[e].getId()]=this.pages[e].getId();return c};EditorUi.prototype.importXml=function(c,e,l,n,p,u,A){e=null!=e?e:0;l=null!=l?l:0;var D=[];try{var G=this.editor.graph;if(null!=c&&0<c.length){G.model.beginUpdate();try{var E=mxUtils.parseXml(c);c={};var T=this.editor.extractGraphModel(E.documentElement,
+this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(l){try{null!=l&&this.editor.addFontCss(c,l),e(c)}catch(n){e(c)}}))}catch(l){e(c)}}))};EditorUi.prototype.exportImage=function(c,e,l,n,p,u,B,D,G,E,T,O,S){G=null!=G?G:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(v){Editor.addRetryToError(v,mxUtils.bind(this,function(){this.exportImage(c,e,l,n,p,u,B,D,G,E,T,O,S)}));this.handleError(v)}))){var k=this.editor.graph.isSelectionEmpty();
+l=null!=l?l:k;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(v){this.spinner.stop();try{this.saveCanvas(v,p?this.getFileData(!0,null,null,null,l,D,null,null,null,null,null,c,u):null,G,null==this.pages||0==this.pages.length,T)}catch(z){this.handleError(z)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}),null,l,c||1,e,n,null,null,u,B,E,O,S)}catch(v){this.spinner.stop(),this.handleError(v)}}};
+EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var e=0;e<this.pages.length;e++)c[this.pages[e].getId()]=this.pages[e].getId();return c};EditorUi.prototype.importXml=function(c,e,l,n,p,u,B){e=null!=e?e:0;l=null!=l?l:0;var D=[];try{var G=this.editor.graph;if(null!=c&&0<c.length){G.model.beginUpdate();try{var E=mxUtils.parseXml(c);c={};var T=this.editor.extractGraphModel(E.documentElement,
null!=this.pages);if(null!=T&&"mxfile"==T.nodeName&&null!=this.pages){var O=T.getElementsByTagName("diagram");if(1==O.length&&!u){if(T=Editor.parseDiagramNode(O[0]),null!=this.currentPage&&(c[O[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var S=O[0].getAttribute("name");null!=S&&""!=S&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,S))}}else if(0<O.length){u=[];var k=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(c[O[0].getAttribute("id")]=
-this.pages[0].getId(),S=O[0].getAttribute("name"),null!=S&&""!=S&&this.editor.graph.model.execute(new RenamePage(this,this.pages[0],S)),T=Editor.parseDiagramNode(O[0]),n=!1,k=1);for(;k<O.length;k++){var v=O[k].getAttribute("id");O[k].removeAttribute("id");var z=this.updatePageRoot(new DiagramPage(O[k]));c[v]=O[k].getAttribute("id");var B=this.pages.length;null==z.getName()&&z.setName(mxResources.get("pageWithNumber",[B+1]));G.model.execute(new ChangePage(this,z,z,B,!0));u.push(z)}this.updatePageLinks(c,
-u)}}if(null!=T&&"mxGraphModel"===T.nodeName){D=G.importGraphModel(T,e,l,n);if(null!=D)for(this.addLocalPagesToMapping(c),k=0;k<D.length;k++)this.updatePageLinksForCell(c,D[k]);var H=G.parseBackgroundImage(T.getAttribute("backgroundImage"));if(null!=H&&null!=H.originalSrc){this.updateBackgroundPageLink(c,H);var R=new ChangePageSetup(this,null,H);R.ignoreColor=!0;G.model.execute(R)}}A&&G.pasteCellStyles(G.includeDescendants(D),G.defaultVertexStyle,G.defaultEdgeStyle)}finally{G.model.endUpdate()}}}catch(g){if(p)throw g;
+this.pages[0].getId(),S=O[0].getAttribute("name"),null!=S&&""!=S&&this.editor.graph.model.execute(new RenamePage(this,this.pages[0],S)),T=Editor.parseDiagramNode(O[0]),n=!1,k=1);for(;k<O.length;k++){var v=O[k].getAttribute("id");O[k].removeAttribute("id");var z=this.updatePageRoot(new DiagramPage(O[k]));c[v]=O[k].getAttribute("id");var A=this.pages.length;null==z.getName()&&z.setName(mxResources.get("pageWithNumber",[A+1]));G.model.execute(new ChangePage(this,z,z,A,!0));u.push(z)}this.updatePageLinks(c,
+u)}}if(null!=T&&"mxGraphModel"===T.nodeName){D=G.importGraphModel(T,e,l,n);if(null!=D)for(this.addLocalPagesToMapping(c),k=0;k<D.length;k++)this.updatePageLinksForCell(c,D[k]);var H=G.parseBackgroundImage(T.getAttribute("backgroundImage"));if(null!=H&&null!=H.originalSrc){this.updateBackgroundPageLink(c,H);var R=new ChangePageSetup(this,null,H);R.ignoreColor=!0;G.model.execute(R)}}B&&G.pasteCellStyles(G.includeDescendants(D),G.defaultVertexStyle,G.defaultEdgeStyle)}finally{G.model.endUpdate()}}}catch(g){if(p)throw g;
this.handleError(g)}return D};EditorUi.prototype.updatePageLinks=function(c,e){for(var l=0;l<e.length;l++)this.updatePageLinksForCell(c,e[l].root),null!=e[l].viewState&&this.updateBackgroundPageLink(c,e[l].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(c,e){try{if(null!=e&&Graph.isPageLink(e.originalSrc)){var l=c[e.originalSrc.substring(e.originalSrc.indexOf(",")+1)];null!=l&&(e.originalSrc="data:page/id,"+l)}}catch(n){}};EditorUi.prototype.updatePageLinksForCell=
-function(c,e){var l=document.createElement("div"),n=this.editor.graph,p=n.getLinkForCell(e);null!=p&&n.setLinkForCell(e,this.updatePageLink(c,p));if(n.isHtmlLabel(e)){l.innerHTML=Graph.sanitizeHtml(n.getLabel(e));for(var u=l.getElementsByTagName("a"),A=!1,D=0;D<u.length;D++)p=u[D].getAttribute("href"),null!=p&&(u[D].setAttribute("href",this.updatePageLink(c,p)),A=!0);A&&n.labelChanged(e,l.innerHTML)}for(D=0;D<n.model.getChildCount(e);D++)this.updatePageLinksForCell(c,n.model.getChildAt(e,D))};EditorUi.prototype.updatePageLink=
-function(c,e){if(Graph.isPageLink(e)){var l=c[e.substring(e.indexOf(",")+1)];e=null!=l?"data:page/id,"+l:null}else if("data:action/json,"==e.substring(0,17))try{var n=JSON.parse(e.substring(17));if(null!=n.actions){for(var p=0;p<n.actions.length;p++){var u=n.actions[p];if(null!=u.open&&Graph.isPageLink(u.open)){var A=u.open.substring(u.open.indexOf(",")+1);l=c[A];null!=l?u.open="data:page/id,"+l:null==this.getPageById(A)&&delete u.open}}e="data:action/json,"+JSON.stringify(n)}}catch(D){}return e};
-EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,e,l,n,p){var u=mxUtils.bind(this,function(A){this.loadingExtensions=!1;null!=l?l(A):this.handleError(A)});this.createTimeout(null,mxUtils.bind(this,function(A){n=null!=n?n:c.name;var D=mxUtils.bind(this,function(E){A.clear()&&u(E)}),G=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var E=this.isRemoteVisioFormat(n);
+function(c,e){var l=document.createElement("div"),n=this.editor.graph,p=n.getLinkForCell(e);null!=p&&n.setLinkForCell(e,this.updatePageLink(c,p));if(n.isHtmlLabel(e)){l.innerHTML=Graph.sanitizeHtml(n.getLabel(e));for(var u=l.getElementsByTagName("a"),B=!1,D=0;D<u.length;D++)p=u[D].getAttribute("href"),null!=p&&(u[D].setAttribute("href",this.updatePageLink(c,p)),B=!0);B&&n.labelChanged(e,l.innerHTML)}for(D=0;D<n.model.getChildCount(e);D++)this.updatePageLinksForCell(c,n.model.getChildAt(e,D))};EditorUi.prototype.updatePageLink=
+function(c,e){if(Graph.isPageLink(e)){var l=c[e.substring(e.indexOf(",")+1)];e=null!=l?"data:page/id,"+l:null}else if("data:action/json,"==e.substring(0,17))try{var n=JSON.parse(e.substring(17));if(null!=n.actions){for(var p=0;p<n.actions.length;p++){var u=n.actions[p];if(null!=u.open&&Graph.isPageLink(u.open)){var B=u.open.substring(u.open.indexOf(",")+1);l=c[B];null!=l?u.open="data:page/id,"+l:null==this.getPageById(B)&&delete u.open}}e="data:action/json,"+JSON.stringify(n)}}catch(D){}return e};
+EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,e,l,n,p){var u=mxUtils.bind(this,function(B){this.loadingExtensions=!1;null!=l?l(B):this.handleError(B)});this.createTimeout(null,mxUtils.bind(this,function(B){n=null!=n?n:c.name;var D=mxUtils.bind(this,function(E){B.clear()&&u(E)}),G=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var E=this.isRemoteVisioFormat(n);
try{var T=n.lastIndexOf(".");if(0<=T&&T<n.length)n.substring(T+1).toUpperCase();else{var O=n.lastIndexOf("/");0<=O&&O<n.length&&(n=n.substring(O+1))}}catch(k){}if(E)if(null==VSD_CONVERT_URL||this.isOffline())D({message:"draw.io"!=this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{E=new FormData;E.append("file1",c,n);var S=new XMLHttpRequest;S.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(n)?"?stencil=1":""));S.responseType="blob";this.addRemoteServiceSecurityCheck(S);
-null!=p&&S.setRequestHeader("x-convert-custom",p);S.onreadystatechange=mxUtils.bind(this,function(){if(4==S.readyState&&A.clear())if(200<=S.status&&299>=S.status)try{var k=S.response;if("text/xml"==k.type){var v=new FileReader;v.onload=mxUtils.bind(this,function(z){try{e(z.target.result)}catch(B){D({message:mxResources.get("errorLoadingFile")})}});v.readAsText(k)}else this.doImportVisio(k,e,D,n)}catch(z){D(z)}else try{""==S.responseType||"text"==S.responseType?D({message:S.responseText}):(v=new FileReader,
-v.onload=function(){try{D({message:JSON.parse(v.result).Message})}catch(z){D(z)}},v.readAsText(S.response))}catch(z){D({})}});S.send(E)}else if(A.clear())try{this.doImportVisio(c,e,D,n)}catch(k){D(k)}}else D({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?G():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",G,null,null,null,D))}),u)};EditorUi.prototype.importGraphML=function(c,e,l){var n=
-mxUtils.bind(this,function(p){this.loadingExtensions=!1;null!=l?l(p):this.handleError(p)});this.createTimeout(null,mxUtils.bind(this,function(p){var u=mxUtils.bind(this,function(D){p.clear()&&n(D)}),A=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(p.clear())if(this.doImportGraphML)try{this.doImportGraphML(c,e,n)}catch(D){u(D)}else u({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?A():(this.loadingExtensions=!0,
-mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",A,null,null,null,u))}),n)};EditorUi.prototype.exportVisio=function(c){if(this.spinner.spin(document.body,mxResources.get("loading"))){var e=mxUtils.bind(this,function(l){this.loadingExtensions=!1;this.handleError(l)});this.createTimeout(null,mxUtils.bind(this,function(l){var n=mxUtils.bind(this,function(u){l.clear()&&e(u)}),p=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(l.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),
+null!=p&&S.setRequestHeader("x-convert-custom",p);S.onreadystatechange=mxUtils.bind(this,function(){if(4==S.readyState&&B.clear())if(200<=S.status&&299>=S.status)try{var k=S.response;if("text/xml"==k.type){var v=new FileReader;v.onload=mxUtils.bind(this,function(z){try{e(z.target.result)}catch(A){D({message:mxResources.get("errorLoadingFile")})}});v.readAsText(k)}else this.doImportVisio(k,e,D,n)}catch(z){D(z)}else try{""==S.responseType||"text"==S.responseType?D({message:S.responseText}):(v=new FileReader,
+v.onload=function(){try{D({message:JSON.parse(v.result).Message})}catch(z){D(z)}},v.readAsText(S.response))}catch(z){D({})}});S.send(E)}else if(B.clear())try{this.doImportVisio(c,e,D,n)}catch(k){D(k)}}else D({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?G():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",G,null,null,null,D))}),u)};EditorUi.prototype.importGraphML=function(c,e,l){var n=
+mxUtils.bind(this,function(p){this.loadingExtensions=!1;null!=l?l(p):this.handleError(p)});this.createTimeout(null,mxUtils.bind(this,function(p){var u=mxUtils.bind(this,function(D){p.clear()&&n(D)}),B=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(p.clear())if(this.doImportGraphML)try{this.doImportGraphML(c,e,n)}catch(D){u(D)}else u({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?B():(this.loadingExtensions=!0,
+mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",B,null,null,null,u))}),n)};EditorUi.prototype.exportVisio=function(c){if(this.spinner.spin(document.body,mxResources.get("loading"))){var e=mxUtils.bind(this,function(l){this.loadingExtensions=!1;this.handleError(l)});this.createTimeout(null,mxUtils.bind(this,function(l){var n=mxUtils.bind(this,function(u){l.clear()&&e(u)}),p=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(l.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),
(new VsdxExport(this)).exportCurrentDiagrams(c)||n({message:mxResources.get("unknownError")})}catch(u){n(u)}else n({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(p,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",p,null,null,null,n))}),e)}};EditorUi.prototype.convertLucidChart=function(c,e,l){var n=mxUtils.bind(this,function(p){this.loadingExtensions=!1;
-null!=l?l(p):this.handleError(p)});this.createTimeout(null,mxUtils.bind(this,function(p){var u=mxUtils.bind(this,function(D){p.clear()&&n(D)}),A=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(p.clear())if("undefined"!==typeof window.LucidImporter)try{var D=JSON.parse(c);e(LucidImporter.importState(D));try{if(null!=window.console&&"1"==urlParams.test){var G=[(new Date).toISOString(),"convertLucidChart",D];null!=D.state&&G.push(JSON.parse(D.state));if(null!=D.svgThumbs)for(var E=0;E<D.svgThumbs.length;E++)G.push(Editor.createSvgDataUri(D.svgThumbs[E]));
-null!=D.thumb&&G.push(D.thumb);console.log.apply(console,G)}}catch(T){}}catch(T){null!=window.console&&console.error(T),u(T)}else u({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(A,0):(this.loadingExtensions=!0,"1"==urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",
-function(){mxscript("js/orgchart/mxOrgChartLayout.js",A,null,null,null,u)},null,null,null,u)},null,null,null,u)},null,null,null,u)},null,null,null,u):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",A,null,null,null,u))}),n)};EditorUi.prototype.createMermaidXml=function(c,e,l,n,p,u){var A=new Graph(document.createElement("div"));l=A.insertVertex(null,null,null,0,0,n,p,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+l+";");A.setAttributeForCell(l,"mermaidData",JSON.stringify({data:c,
-config:e},null,2));null!=u&&A.setAttributeForCell(l,"templatePrompt",u);c=(new mxCodec).encode(A.getModel());return mxUtils.getXml(c)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(c,e,l){var n=0,p=mxUtils.bind(this,function(){this.createTimeout(1E4,mxUtils.bind(this,function(u){var A=new mxXmlRequest("https://www.draw.io/generate/v2",c,"POST"),D=mxUtils.bind(this,function(G){u.clear()&&l(G)});A.send(mxUtils.bind(this,function(G){if(u.isAlive())if(200<=G.getStatus()&&299>=G.getStatus())this.tryAndHandle(mxUtils.bind(this,
+null!=l?l(p):this.handleError(p)});this.createTimeout(null,mxUtils.bind(this,function(p){var u=mxUtils.bind(this,function(D){p.clear()&&n(D)}),B=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(p.clear())if("undefined"!==typeof window.LucidImporter)try{var D=JSON.parse(c);e(LucidImporter.importState(D));try{if(null!=window.console&&"1"==urlParams.test){var G=[(new Date).toISOString(),"convertLucidChart",D];null!=D.state&&G.push(JSON.parse(D.state));if(null!=D.svgThumbs)for(var E=0;E<D.svgThumbs.length;E++)G.push(Editor.createSvgDataUri(D.svgThumbs[E]));
+null!=D.thumb&&G.push(D.thumb);console.log.apply(console,G)}}catch(T){}}catch(T){null!=window.console&&console.error(T),u(T)}else u({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(B,0):(this.loadingExtensions=!0,"1"==urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",
+function(){mxscript("js/orgchart/mxOrgChartLayout.js",B,null,null,null,u)},null,null,null,u)},null,null,null,u)},null,null,null,u)},null,null,null,u):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",B,null,null,null,u))}),n)};EditorUi.prototype.createMermaidXml=function(c,e,l,n,p,u){var B=new Graph(document.createElement("div"));l=B.insertVertex(null,null,null,0,0,n,p,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+l+";");B.setAttributeForCell(l,"mermaidData",JSON.stringify({data:c,
+config:e},null,2));null!=u&&B.setAttributeForCell(l,"templatePrompt",u);c=(new mxCodec).encode(B.getModel());return mxUtils.getXml(c)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(c,e,l){var n=0,p=mxUtils.bind(this,function(){this.createTimeout(1E4,mxUtils.bind(this,function(u){var B=new mxXmlRequest("https://www.draw.io/generate/v2",c,"POST"),D=mxUtils.bind(this,function(G){u.clear()&&l(G)});B.send(mxUtils.bind(this,function(G){if(u.isAlive())if(200<=G.getStatus()&&299>=G.getStatus())this.tryAndHandle(mxUtils.bind(this,
function(){var T=mxUtils.trim(G.getText());this.generateMermaidImage(T,null,mxUtils.bind(this,function(O,S,k){this.tryAndHandle(mxUtils.bind(this,function(){u.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",c,"\nresult:",T),e(T,O,S,k))}),D)}),D,mxUtils.bind(this,function(O){3>n++?u.clear()&&p():D(O)}))}),D);else{var E={message:mxResources.get("error")+" "+G.getStatus()};try{E=JSON.parse(G.getText()),E=E.error}catch(T){}D(E)}}),D)}),l)});p()};EditorUi.prototype.extractMermaidDeclaration=
function(c){c=mxUtils.trim(c);"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var e=c.split("```");e=1<e.length?e:c.split("<pre>");e=1<e.length?e:c.split("~~~");e=1<e.length?e:c.split("%%");e=1<e.length?e:c.split("(Begins)");c=mxUtils.trim(1>=e.length?c:e[1]);e=c.split("\n");var l=1<e.length?e[1]:null;if(null!=l){var n=l.indexOf("-");0<n&&(l=l.substring(0,n))}if(0<e.length&&"mermaid"==mxUtils.trim(e[0])||null!=l&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,l))e.shift(),c=mxUtils.trim(e.join("\n")),
-e=c.split("\n");l=e[0].split(" ")[0].replace(/:$/,"");n=l.indexOf("-");0<n&&(l=l.substring(0,n));try{"mindmap"==l&&2<e.length&&(c=extractMermaidMindmap(e))}catch(p){}0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,l)&&(c=null);return c};EditorUi.prototype.generateMermaidImage=function(c,e,l,n,p){var u=mxUtils.bind(this,function(D){this.loadingMermaid=!1;null!=n?n(D):this.handleError(D)}),A=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;e=null!=e?e:mxUtils.clone(EditorUi.defaultMermaidConfig);
+e=c.split("\n");l=e[0].split(" ")[0].replace(/:$/,"");n=l.indexOf("-");0<n&&(l=l.substring(0,n));try{"mindmap"==l&&2<e.length&&(c=extractMermaidMindmap(e))}catch(p){}0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,l)&&(c=null);return c};EditorUi.prototype.generateMermaidImage=function(c,e,l,n,p){var u=mxUtils.bind(this,function(D){this.loadingMermaid=!1;null!=n?n(D):this.handleError(D)}),B=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;e=null!=e?e:mxUtils.clone(EditorUi.defaultMermaidConfig);
e.securityLevel="strict";e.startOnLoad=!1;"undefined"!==typeof mxMermaidToDrawio&&e.flowchart&&0<=c.indexOf("$$")&&(e.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(e.theme="dark");var D=mxUtils.bind(this,function(G){try{if(mxClient.IS_IE||mxClient.IS_IE11)G=G.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var E=mxUtils.parseXml(G).getElementsByTagName("svg");if(0<E.length&&"error"!=
E[0].getAttribute("aria-roledescription")){var T=parseFloat(E[0].getAttribute("width")),O=parseFloat(E[0].getAttribute("height"));if(isNaN(T)||isNaN(O))try{var S=E[0].getAttribute("viewBox").split(/\s+/);T=parseFloat(S[2]);O=parseFloat(S[3])}catch(k){T=T||100,O=O||100}l(this.convertDataUri(Editor.createSvgDataUri(G)),T,O)}else null!=p?p():n({message:mxResources.get("invalidInput")})}catch(k){n(k)}});mermaid.mermaidAPI.initialize(e);mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),
-c).then(function(G){D(G.svg)}).catch(function(G){null!=p?p(G):n(G)})}catch(G){n(G)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(A,0):(this.loadingMermaid=!0,"1"==urlParams.dev?("1"==urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(D){this.importXml(D,null,null,null,null,null,!0)})),mxscript("js/mermaid/mermaid.min.js",A,null,null,null,u)):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",A,null,null,null,u))};
-EditorUi.prototype.generatePlantUmlImage=function(c,e,l,n){function p(D,G,E){c1=D>>2;c2=(D&3)<<4|G>>4;c3=(G&15)<<2|E>>6;c4=E&63;r="";r+=u(c1&63);r+=u(c2&63);r+=u(c3&63);return r+=u(c4&63)}function u(D){if(10>D)return String.fromCharCode(48+D);D-=10;if(26>D)return String.fromCharCode(65+D);D-=26;if(26>D)return String.fromCharCode(97+D);D-=26;return 0==D?"-":1==D?"_":"?"}var A=new XMLHttpRequest;A.open("GET",("txt"==e?PLANT_URL+"/txt/":"png"==e?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(D){r="";
-for(i=0;i<D.length;i+=3)r=i+2==D.length?r+p(D.charCodeAt(i),D.charCodeAt(i+1),0):i+1==D.length?r+p(D.charCodeAt(i),0,0):r+p(D.charCodeAt(i),D.charCodeAt(i+1),D.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),!0);"txt"!=e&&(A.responseType="blob");A.onload=function(D){if(200<=this.status&&300>this.status)if("txt"==e)l(this.response);else{var G=new FileReader;G.readAsDataURL(this.response);G.onloadend=function(E){var T=new Image;T.onload=function(){try{var O=T.width,S=T.height;
-if(0==O&&0==S){var k=G.result,v=k.indexOf(","),z=decodeURIComponent(escape(atob(k.substring(v+1)))),B=mxUtils.parseXml(z).getElementsByTagName("svg");0<B.length&&(O=parseFloat(B[0].getAttribute("width")),S=parseFloat(B[0].getAttribute("height")))}l(G.result,O,S)}catch(H){n(H)}};T.src=G.result};G.onerror=function(E){n(E)}}else n(D)};A.onerror=function(D){n(D)};A.send()};EditorUi.prototype.insertAsPreText=function(c,e,l){var n=this.editor.graph,p=null;n.getModel().beginUpdate();try{p=n.insertVertex(null,
-null,"<pre>"+c+"</pre>",e,l,1,1,"text;html=1;align=left;verticalAlign=top;"),n.updateCellSize(p,!0)}finally{n.getModel().endUpdate()}return p};EditorUi.prototype.insertTextAt=function(c,e,l,n,p,u,A,D){u=null!=u?u:!0;A=null!=A?A:!0;if(null!=c)if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c))this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(c.replace(/\s+/g," "),mxUtils.bind(this,function(S){4==S.readyState&&200<=
+c).then(function(G){D(G.svg)}).catch(function(G){null!=p?p(G):n(G)})}catch(G){n(G)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(B,0):(this.loadingMermaid=!0,"1"==urlParams.dev?("1"==urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(D){this.importXml(D,null,null,null,null,null,!0)})),mxscript("js/mermaid/mermaid.min.js",B,null,null,null,u)):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",B,null,null,null,u))};
+EditorUi.prototype.generatePlantUmlImage=function(c,e,l,n){function p(D,G,E){c1=D>>2;c2=(D&3)<<4|G>>4;c3=(G&15)<<2|E>>6;c4=E&63;r="";r+=u(c1&63);r+=u(c2&63);r+=u(c3&63);return r+=u(c4&63)}function u(D){if(10>D)return String.fromCharCode(48+D);D-=10;if(26>D)return String.fromCharCode(65+D);D-=26;if(26>D)return String.fromCharCode(97+D);D-=26;return 0==D?"-":1==D?"_":"?"}var B=new XMLHttpRequest;B.open("GET",("txt"==e?PLANT_URL+"/txt/":"png"==e?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(D){r="";
+for(i=0;i<D.length;i+=3)r=i+2==D.length?r+p(D.charCodeAt(i),D.charCodeAt(i+1),0):i+1==D.length?r+p(D.charCodeAt(i),0,0):r+p(D.charCodeAt(i),D.charCodeAt(i+1),D.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),!0);"txt"!=e&&(B.responseType="blob");B.onload=function(D){if(200<=this.status&&300>this.status)if("txt"==e)l(this.response);else{var G=new FileReader;G.readAsDataURL(this.response);G.onloadend=function(E){var T=new Image;T.onload=function(){try{var O=T.width,S=T.height;
+if(0==O&&0==S){var k=G.result,v=k.indexOf(","),z=decodeURIComponent(escape(atob(k.substring(v+1)))),A=mxUtils.parseXml(z).getElementsByTagName("svg");0<A.length&&(O=parseFloat(A[0].getAttribute("width")),S=parseFloat(A[0].getAttribute("height")))}l(G.result,O,S)}catch(H){n(H)}};T.src=G.result};G.onerror=function(E){n(E)}}else n(D)};B.onerror=function(D){n(D)};B.send()};EditorUi.prototype.insertAsPreText=function(c,e,l){var n=this.editor.graph,p=null;n.getModel().beginUpdate();try{p=n.insertVertex(null,
+null,"<pre>"+c+"</pre>",e,l,1,1,"text;html=1;align=left;verticalAlign=top;"),n.updateCellSize(p,!0)}finally{n.getModel().endUpdate()}return p};EditorUi.prototype.insertTextAt=function(c,e,l,n,p,u,B,D){u=null!=u?u:!0;B=null!=B?B:!0;if(null!=c)if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c))this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(c.replace(/\s+/g," "),mxUtils.bind(this,function(S){4==S.readyState&&200<=
S.status&&299>=S.status&&this.editor.graph.setSelectionCells(this.insertTextAt(S.responseText,e,l,!0))}));else if("data:"==c.substring(0,5)||!this.isOffline()&&(p||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c))){var G=this.editor.graph;if("data:application/pdf;base64,"==c.substring(0,28)){var E=Editor.extractGraphModelFromPdf(c);if(null!=E&&0<E.length)return this.importXml(E,e,l,u,!0,D)}if(Editor.isPngDataUrl(c)&&(E=Editor.extractGraphModelFromPng(c),null!=E&&0<E.length))return this.importXml(E,e,l,u,
-!0,D);if("data:image/svg+xml;"==c.substring(0,19))try{E=null;"data:image/svg+xml;base64,"==c.substring(0,26)?(E=c.substring(c.indexOf(",")+1),E=window.atob&&!mxClient.IS_SF?atob(E):Base64.decode(E,!0)):E=decodeURIComponent(c.substring(c.indexOf(",")+1));var T=this.importXml(E,e,l,u,!0,D);if(0<T.length)return T}catch(S){}this.loadImage(c,mxUtils.bind(this,function(S){if("data:"==c.substring(0,5))this.resizeImage(S,c,mxUtils.bind(this,function(z,B,H){G.setSelectionCell(G.insertVertex(null,null,"",G.snap(e),
-G.snap(l),B,H,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(z)+";"))}),A,this.maxImageSize);else{var k=Math.min(1,Math.min(this.maxImageSize/S.width,this.maxImageSize/S.height)),v=Math.round(S.width*k);S=Math.round(S.height*k);G.setSelectionCell(G.insertVertex(null,null,"",G.snap(e),G.snap(l),v,S,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+
+!0,D);if("data:image/svg+xml;"==c.substring(0,19))try{E=null;"data:image/svg+xml;base64,"==c.substring(0,26)?(E=c.substring(c.indexOf(",")+1),E=window.atob&&!mxClient.IS_SF?atob(E):Base64.decode(E,!0)):E=decodeURIComponent(c.substring(c.indexOf(",")+1));var T=this.importXml(E,e,l,u,!0,D);if(0<T.length)return T}catch(S){}this.loadImage(c,mxUtils.bind(this,function(S){if("data:"==c.substring(0,5))this.resizeImage(S,c,mxUtils.bind(this,function(z,A,H){G.setSelectionCell(G.insertVertex(null,null,"",G.snap(e),
+G.snap(l),A,H,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(z)+";"))}),B,this.maxImageSize);else{var k=Math.min(1,Math.min(this.maxImageSize/S.width,this.maxImageSize/S.height)),v=Math.round(S.width*k);S=Math.round(S.height*k);G.setSelectionCell(G.insertVertex(null,null,"",G.snap(e),G.snap(l),v,S,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+
c+";"))}}),mxUtils.bind(this,function(){var S=null;G.getModel().beginUpdate();try{S=G.insertVertex(G.getDefaultParent(),null,c,G.snap(e),G.snap(l),1,1,"text;"+(n?"html=1;":"")),G.updateCellSize(S),G.fireEvent(new mxEventObject("textInserted","cells",[S]))}finally{G.getModel().endUpdate()}G.setSelectionCell(S)}))}else{c=Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,e,l,u,null,D);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,
function(S){this.editor.graph.setSelectionCells(this.importXml(S,e,l,u,null,D))}),mxUtils.bind(this,function(S){this.handleError(S)}));else{G=this.editor.graph;p=null;G.getModel().beginUpdate();try{p=G.insertVertex(G.getDefaultParent(),null,"",G.snap(e),G.snap(l),1,1,"text;whiteSpace=wrap;"+(n?"html=1;":""));G.fireEvent(new mxEventObject("textInserted","cells",[p]));n&&(c=G.sanitizeHtml(c));c.length>this.maxTextBytes&&(c=c.substring(0,this.maxTextBytes)+"...");p.value=c;G.updateCellSize(p);if(0<this.maxTextWidth&&
p.geometry.width>this.maxTextWidth){var O=G.getPreferredSizeForCell(p,this.maxTextWidth);p.geometry.width=O.width;p.geometry.height=O.height}Graph.isLink(p.value)&&G.setLinkForCell(p,p.value);p.geometry.width+=G.gridSize;p.geometry.height+=G.gridSize}finally{G.getModel().endUpdate()}return[p]}}return[]};EditorUi.prototype.formatFileSize=function(c){var e=-1;do c/=1024,e++;while(1024<c);return Math.max(c,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[e]};EditorUi.prototype.convertDataUri=
function(c){if("data:"==c.substring(0,5)){var e=c.indexOf(";");0<e&&(c=c.substring(0,e)+c.substring(c.indexOf(",",e+1)))}return c};EditorUi.prototype.isRemoteFileFormat=function(c,e){return/("contentType":\s*"application\/gliffy\+json")/.test(c)};EditorUi.prototype.isLucidChartData=function(c){return null!=c&&('{"state":"{\\"Properties\\":'==c.substring(0,26)||'{"Properties":'==c.substring(0,14))};EditorUi.prototype.importLocalFile=function(c,e){if(c&&Graph.fileSupport){if(null==this.importFileInputElt){var l=
-document.createElement("input");l.setAttribute("type","file");mxEvent.addListener(l,"change",mxUtils.bind(this,function(){null!=l.files&&(this.importFiles(l.files,null,null,this.maxImageSize),l.type="",l.type="file",l.value="")}));l.style.display="none";document.body.appendChild(l);this.importFileInputElt=l}this.importFileInputElt.click()}else{window.openNew=!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(A,D){StorageFile.listFiles(this,"F",A,D)});window.openBrowserFile=
-mxUtils.bind(this,function(A,D,G){StorageFile.getFileContent(this,A,D,G)});window.deleteBrowserFile=mxUtils.bind(this,function(A,D,G){StorageFile.deleteFile(this,A,D,G)});if(!e){var n=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(A){this.hideDialog(A)}));window.openFile.setConsumer(mxUtils.bind(this,function(A,D){null!=D&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(D)?(A=new Blob([A],{type:"application/octet-stream"}),this.importVisio(A,
-mxUtils.bind(this,function(G){this.importXml(G,0,0,!0)}),null,D)):this.editor.graph.setSelectionCells(this.importXml(A,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!e){var p=this.dialog,u=p.close;this.dialog.close=mxUtils.bind(this,function(A){Editor.useLocalStorage=n;u.apply(p,arguments);A&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=
-function(c,e,l){var n=this,p=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(u){if(mxUtils.isEmptyObject(u.files))l();else{var A=0,D,G=!1;u.forEach(function(E,T){E=T.name.toLowerCase();"diagram/diagram.xml"==E?(G=!0,T.async("string").then(function(O){0==O.indexOf("<mxfile ")?e(O):l()})):0==E.indexOf("versions/")&&(E=parseInt(E.substr(9)),E>A&&(A=E,D=T))});0<A?D.async("string").then(function(E){(new XMLHttpRequest).upload&&n.isRemoteFileFormat(E,
-c.name)?n.isOffline()?n.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,l):n.parseFileData(E,mxUtils.bind(this,function(T){4==T.readyState&&(200<=T.status&&299>=T.status?e(T.responseText):l())}),c.name):l()}):G||l()}},function(u){l(u)}):l()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?p():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",p,null,null,null,l))};EditorUi.prototype.importFile=function(c,e,l,n,p,u,A,
-D,G,E,T,O){E=null!=E?E:!0;var S=!1,k=null,v=mxUtils.bind(this,function(z){var B=null;null!=z&&"<mxlibrary"==z.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,z,A)),this.showSidebar()):B=this.importXml(z,l,n,E,null,null!=O?mxEvent.isControlDown(O):null);null!=D&&D(B)});"image"==e.substring(0,5)?(G=!1,"image/png"==e.substring(0,9)&&(T=T?null:this.extractGraphModelFromPng(c),null!=T&&0<T.length&&(k=this.importXml(T,l,n,E,null,null!=O?mxEvent.isControlDown(O):null),G=!0)),G||(G=this.editor.graph,
-T=c.indexOf(";"),0<T&&(c=c.substring(0,T)+c.substring(c.indexOf(",",T+1))),E&&G.isGridEnabled()&&(l=G.snap(l),n=G.snap(n)),T="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==e.substring(0,9)&&(T+="editableCssRules=.*;"),k=[G.insertVertex(null,null,"",l,n,p,u,T+"image="+c+";")])):/(\.*<graphml )/.test(c)?(S=!0,this.importGraphML(c,v)):null!=G&&null!=A&&EditorUi.isVisioFilename(A)?(S=!0,this.importVisio(G,v)):(new XMLHttpRequest).upload&&
-this.isRemoteFileFormat(c,A)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(S=!0,e=mxUtils.bind(this,function(z){4==z.readyState&&(200<=z.status&&299>=z.status?v(z.responseText):null!=D&&(D(null),this.showError(mxResources.get("error"),413==z.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),null!=c?this.parseFileData(c,e,A):this.parseFile(G,e,A)):0==c.indexOf("PK")&&null!=G?(S=!0,this.importZipFile(G,v,mxUtils.bind(this,function(){k=
-this.insertTextAt(this.validateFileData(c),l,n,!0,null,E);D(k)}))):/(\.v(sd|dx))($|\?)/i.test(A)||/(\.vs(s|x))($|\?)/i.test(A)||(k=this.insertTextAt(this.validateFileData(c),l,n,!0,null,E,null,null!=O?mxEvent.isControlDown(O):null));S||null==D||D(k);return k};EditorUi.prototype.importFiles=function(c,e,l,n,p,u,A,D,G,E,T,O,S){n=null!=n?n:this.maxImageSize;E=null!=E?E:this.maxImageBytes;var k=null!=e&&null!=l,v=!0;e=null!=e?e:0;l=null!=l?l:0;var z=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var B=T||
-this.resampleThreshold,H=0;H<c.length;H++)if("image/svg"!==c[H].type.substring(0,9)&&"image/"===c[H].type.substring(0,6)&&c[H].size>B){z=!0;break}var R=mxUtils.bind(this,function(){var g=this.editor.graph,q=g.gridSize;p=null!=p?p:mxUtils.bind(this,function(V,W,X,Z,Y,ba,ea,ca,da){try{if(null!=V&&"<mxlibrary"==V.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,V,ea)),this.showSidebar(),null;this.isCompatibleString(V)&&1==c.length&&null!=S&&"drop"==S.type&&this.isBlankFile()&&
+document.createElement("input");l.setAttribute("type","file");mxEvent.addListener(l,"change",mxUtils.bind(this,function(){null!=l.files&&(this.importFiles(l.files,null,null,this.maxImageSize),l.type="",l.type="file",l.value="")}));l.style.display="none";document.body.appendChild(l);this.importFileInputElt=l}this.importFileInputElt.click()}else{window.openNew=!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(B,D){StorageFile.listFiles(this,"F",B,D)});window.openBrowserFile=
+mxUtils.bind(this,function(B,D,G){StorageFile.getFileContent(this,B,D,G)});window.deleteBrowserFile=mxUtils.bind(this,function(B,D,G){StorageFile.deleteFile(this,B,D,G)});if(!e){var n=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(B){this.hideDialog(B)}));window.openFile.setConsumer(mxUtils.bind(this,function(B,D){null!=D&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(D)?(B=new Blob([B],{type:"application/octet-stream"}),this.importVisio(B,
+mxUtils.bind(this,function(G){this.importXml(G,0,0,!0)}),null,D)):this.editor.graph.setSelectionCells(this.importXml(B,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!e){var p=this.dialog,u=p.close;this.dialog.close=mxUtils.bind(this,function(B){Editor.useLocalStorage=n;u.apply(p,arguments);B&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=
+function(c,e,l){var n=this,p=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(u){if(mxUtils.isEmptyObject(u.files))l();else{var B=0,D,G=!1;u.forEach(function(E,T){E=T.name.toLowerCase();"diagram/diagram.xml"==E?(G=!0,T.async("string").then(function(O){0==O.indexOf("<mxfile ")?e(O):l()})):0==E.indexOf("versions/")&&(E=parseInt(E.substr(9)),E>B&&(B=E,D=T))});0<B?D.async("string").then(function(E){(new XMLHttpRequest).upload&&n.isRemoteFileFormat(E,
+c.name)?n.isOffline()?n.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,l):n.parseFileData(E,mxUtils.bind(this,function(T){4==T.readyState&&(200<=T.status&&299>=T.status?e(T.responseText):l())}),c.name):l()}):G||l()}},function(u){l(u)}):l()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?p():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",p,null,null,null,l))};EditorUi.prototype.importFile=function(c,e,l,n,p,u,B,
+D,G,E,T,O){E=null!=E?E:!0;var S=!1,k=null,v=mxUtils.bind(this,function(z){var A=null;null!=z&&"<mxlibrary"==z.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,z,B)),this.showSidebar()):A=this.importXml(z,l,n,E,null,null!=O?mxEvent.isControlDown(O):null);null!=D&&D(A)});"image"==e.substring(0,5)?(G=!1,"image/png"==e.substring(0,9)&&(T=T?null:this.extractGraphModelFromPng(c),null!=T&&0<T.length&&(k=this.importXml(T,l,n,E,null,null!=O?mxEvent.isControlDown(O):null),G=!0)),G||(G=this.editor.graph,
+T=c.indexOf(";"),0<T&&(c=c.substring(0,T)+c.substring(c.indexOf(",",T+1))),E&&G.isGridEnabled()&&(l=G.snap(l),n=G.snap(n)),T="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==e.substring(0,9)&&(T+="editableCssRules=.*;"),k=[G.insertVertex(null,null,"",l,n,p,u,T+"image="+c+";")])):/(\.*<graphml )/.test(c)?(S=!0,this.importGraphML(c,v)):null!=G&&null!=B&&EditorUi.isVisioFilename(B)?(S=!0,this.importVisio(G,v)):(new XMLHttpRequest).upload&&
+this.isRemoteFileFormat(c,B)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(S=!0,e=mxUtils.bind(this,function(z){4==z.readyState&&(200<=z.status&&299>=z.status?v(z.responseText):null!=D&&(D(null),this.showError(mxResources.get("error"),413==z.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),null!=c?this.parseFileData(c,e,B):this.parseFile(G,e,B)):0==c.indexOf("PK")&&null!=G?(S=!0,this.importZipFile(G,v,mxUtils.bind(this,function(){k=
+this.insertTextAt(this.validateFileData(c),l,n,!0,null,E);D(k)}))):/(\.v(sd|dx))($|\?)/i.test(B)||/(\.vs(s|x))($|\?)/i.test(B)||(k=this.insertTextAt(this.validateFileData(c),l,n,!0,null,E,null,null!=O?mxEvent.isControlDown(O):null));S||null==D||D(k);return k};EditorUi.prototype.importFiles=function(c,e,l,n,p,u,B,D,G,E,T,O,S){n=null!=n?n:this.maxImageSize;E=null!=E?E:this.maxImageBytes;var k=null!=e&&null!=l,v=!0;e=null!=e?e:0;l=null!=l?l:0;var z=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var A=T||
+this.resampleThreshold,H=0;H<c.length;H++)if("image/svg"!==c[H].type.substring(0,9)&&"image/"===c[H].type.substring(0,6)&&c[H].size>A){z=!0;break}var R=mxUtils.bind(this,function(){var g=this.editor.graph,q=g.gridSize;p=null!=p?p:mxUtils.bind(this,function(V,W,X,Z,Y,ba,ea,ca,da){try{if(null!=V&&"<mxlibrary"==V.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,V,ea)),this.showSidebar(),null;this.isCompatibleString(V)&&1==c.length&&null!=S&&"drop"==S.type&&this.isBlankFile()&&
!this.canUndo()&&(k=!1,Z=X=0);return this.importFile(V,W,X,Z,Y,ba,ea,ca,da,k,O,S)}catch(ma){return this.handleError(ma),null}});u=null!=u?u:mxUtils.bind(this,function(V){g.setSelectionCells(V)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var F=c.length,J=F,L=[],Q=mxUtils.bind(this,function(V,W){L[V]=W;if(0==--J){this.spinner.stop();if(null!=D)D(L);else{var X=[];g.getModel().beginUpdate();try{for(V=0;V<L.length;V++){var Z=L[V]();null!=Z&&(X=X.concat(Z))}}finally{g.getModel().endUpdate()}}u(X)}}),
-U=0;U<F;U++)mxUtils.bind(this,function(V){var W=c[V];if(null!=W){var X=new FileReader;X.onload=mxUtils.bind(this,function(Z){if(null==A||A(W))try{if("image/"==W.type.substring(0,6))if("image/svg"==W.type.substring(0,9)){var Y=Graph.clipSvgDataUri(Z.target.result),ba=Y.indexOf(","),ea=decodeURIComponent(escape(atob(Y.substring(ba+1)))),ca=mxUtils.parseXml(ea),da=ca.getElementsByTagName("svg");if(0<da.length){var ma=da[0],aa=O?null:ma.getAttribute("content");null!=aa&&"<"!=aa.charAt(0)&&"%"!=aa.charAt(0)&&
+U=0;U<F;U++)mxUtils.bind(this,function(V){var W=c[V];if(null!=W){var X=new FileReader;X.onload=mxUtils.bind(this,function(Z){if(null==B||B(W))try{if("image/"==W.type.substring(0,6))if("image/svg"==W.type.substring(0,9)){var Y=Graph.clipSvgDataUri(Z.target.result),ba=Y.indexOf(","),ea=decodeURIComponent(escape(atob(Y.substring(ba+1)))),ca=mxUtils.parseXml(ea),da=ca.getElementsByTagName("svg");if(0<da.length){var ma=da[0],aa=O?null:ma.getAttribute("content");null!=aa&&"<"!=aa.charAt(0)&&"%"!=aa.charAt(0)&&
(aa=unescape(window.atob?atob(aa):Base64.decode(aa,!0)));null!=aa&&"%"==aa.charAt(0)&&(aa=decodeURIComponent(aa));null==aa||"<mxfile "!==aa.substring(0,8)&&"<mxGraphModel "!==aa.substring(0,14)?Q(V,mxUtils.bind(this,function(){try{if(null!=ca){var ta=ca.getElementsByTagName("svg");if(0<ta.length){var sa=ta[0],fa=sa.getAttribute("width"),ra=sa.getAttribute("height");fa=null!=fa&&"%"!=fa.charAt(fa.length-1)?parseFloat(fa):NaN;ra=null!=ra&&"%"!=ra.charAt(ra.length-1)?parseFloat(ra):NaN;var ua=sa.getAttribute("viewBox");
if(null==ua||0==ua.length)sa.setAttribute("viewBox","0 0 "+fa+" "+ra);else if(isNaN(fa)||isNaN(ra)){var za=ua.split(" ");3<za.length&&(fa=parseFloat(za[2]),ra=parseFloat(za[3]))}Y=Editor.createSvgDataUri(mxUtils.getXml(sa));var va=Math.min(1,Math.min(n/Math.max(1,fa)),n/Math.max(1,ra)),ha=p(Y,W.type,e+V*q,l+V*q,Math.max(1,Math.round(fa*va)),Math.max(1,Math.round(ra*va)),W.name);if(null!=ha&&(isNaN(fa)||isNaN(ra))){var pa=new Image;pa.onload=mxUtils.bind(this,function(){fa=Math.max(1,pa.width);ra=
Math.max(1,pa.height);ha[0].geometry.width=fa;ha[0].geometry.height=ra;sa.setAttribute("viewBox","0 0 "+fa+" "+ra);Y=Editor.createSvgDataUri(mxUtils.getXml(sa));var Aa=Y.indexOf(";");0<Aa&&(Y=Y.substring(0,Aa)+Y.substring(Y.indexOf(",",Aa+1)));g.setCellStyles("image",Y,[ha[0]])});pa.src=Editor.createSvgDataUri(mxUtils.getXml(sa))}return ha}}}catch(Aa){}return null})):Q(V,mxUtils.bind(this,function(){return p(aa,"text/xml",e+V*q,l+V*q,0,0,W.name)}))}else Q(V,mxUtils.bind(this,function(){return null}))}else{ba=
!1;if("image/png"==W.type){var ia=O?null:this.extractGraphModelFromPng(Z.target.result);if(null!=ia&&0<ia.length){var ka=new Image;ka.src=Z.target.result;Q(V,mxUtils.bind(this,function(){return p(ia,"text/xml",e+V*q,l+V*q,ka.width,ka.height,W.name)}));ba=!0}}ba||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):
this.loadImage(Z.target.result,mxUtils.bind(this,function(ta){this.resizeImage(ta,Z.target.result,mxUtils.bind(this,function(sa,fa,ra){Q(V,mxUtils.bind(this,function(){if(null!=sa&&sa.length<E){var ua=v&&this.isResampleImageSize(W.size,T)?Math.min(1,Math.min(n/fa,n/ra)):1;return p(sa,W.type,e+V*q,l+V*q,Math.round(fa*ua),Math.round(ra*ua),W.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),v,n,T,W.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else Y=
Z.target.result,p(Y,W.type,e+V*q,l+V*q,240,160,W.name,function(ta){Q(V,function(){return ta})},W)}catch(ta){Q(V,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(ta,W)}else Q(V,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(W.name)?p(null,W.type,e+V*q,l+V*q,240,160,W.name,function(Z){Q(V,function(){return Z})},W):"image"==W.type.substring(0,5)||"application/pdf"==W.type?X.readAsDataURL(W):X.readAsText(W)}})(U)});if(z){z=[];for(H=0;H<c.length;H++)z.push(c[H]);
-c=z;this.confirmImageResize(function(g){v=g;R()},G)}else R()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,e){e=null!=e?e:!1;var l=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},n=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,p=function(u,A){if(u||e)mxSettings.setResizeImages(u?
-A:null),mxSettings.save();l();c(A)};null==n||e?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(u){p(u,!0)},function(u){p(u,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):p(!1,n)};EditorUi.prototype.parseFile=function(c,e,
+c=z;this.confirmImageResize(function(g){v=g;R()},G)}else R()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,e){e=null!=e?e:!1;var l=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},n=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,p=function(u,B){if(u||e)mxSettings.setResizeImages(u?
+B:null),mxSettings.save();l();c(B)};null==n||e?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(u){p(u,!0)},function(u){p(u,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):p(!1,n)};EditorUi.prototype.parseFile=function(c,e,
l){l=null!=l?l:c.name;var n=new FileReader;n.onload=mxUtils.bind(this,function(){this.parseFileData(n.result,e,l)});n.readAsText(c)};EditorUi.prototype.parseFileData=function(c,e,l){var n=new XMLHttpRequest;n.open("POST",OPEN_URL);n.setRequestHeader("Content-Type","application/x-www-form-urlencoded");n.onreadystatechange=function(){e(n)};n.send("format=xml&filename="+encodeURIComponent(l)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(p){}};
-EditorUi.prototype.isResampleImageSize=function(c,e){e=null!=e?e:this.resampleThreshold;return c>e};EditorUi.prototype.resizeImage=function(c,e,l,n,p,u,A){p=null!=p?p:this.maxImageSize;var D=Math.max(1,c.width),G=Math.max(1,c.height),E=e;if(n&&this.isResampleImageSize(null!=A?A:e.length,u))try{var T=Math.max(D/p,G/p);if(1<T){var O=Math.round(D/T),S=Math.round(G/T),k=document.createElement("canvas");k.width=O;k.height=S;k.getContext("2d").drawImage(c,0,0,O,S);var v=k.toDataURL();if(v.length<e.length){var z=
-document.createElement("canvas");z.width=O;z.height=S;var B=z.toDataURL();v!==B&&(e=v,D=O,G=S)}}}catch(H){}n&&E!=e&&p>this.maxImageSize/2&&e.length>this.maxImageBytes?this.resizeImage(c,e,l,n,p/1.5,u,A):l(e,D,G)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,e,l){try{var n=new Image;n.onload=function(){n.width=0<n.width?n.width:120;n.height=0<n.height?n.height:120;e(n)};null!=l&&(n.onerror=l);n.src=c}catch(p){if(null!=
+EditorUi.prototype.isResampleImageSize=function(c,e){e=null!=e?e:this.resampleThreshold;return c>e};EditorUi.prototype.resizeImage=function(c,e,l,n,p,u,B){p=null!=p?p:this.maxImageSize;var D=Math.max(1,c.width),G=Math.max(1,c.height),E=e;if(n&&this.isResampleImageSize(null!=B?B:e.length,u))try{var T=Math.max(D/p,G/p);if(1<T){var O=Math.round(D/T),S=Math.round(G/T),k=document.createElement("canvas");k.width=O;k.height=S;k.getContext("2d").drawImage(c,0,0,O,S);var v=k.toDataURL();if(v.length<e.length){var z=
+document.createElement("canvas");z.width=O;z.height=S;var A=z.toDataURL();v!==A&&(e=v,D=O,G=S)}}}catch(H){}n&&E!=e&&p>this.maxImageSize/2&&e.length>this.maxImageBytes?this.resizeImage(c,e,l,n,p/1.5,u,B):l(e,D,G)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,e,l){try{var n=new Image;n.onload=function(){n.width=0<n.width?n.width:120;n.height=0<n.height?n.height:120;e(n)};null!=l&&(n.onerror=l);n.src=c}catch(p){if(null!=
l)l(p);else throw p;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var t=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());t.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&
null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode())};var y=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var c=this,e=this.editor.graph,l=e.isEnabled;e.isEnabled=function(){return l.apply(this,arguments)&&!c.isLocked()};Graph.touchStyle&&(e.panningHandler.isPanningTrigger=function(q){var F=q.getEvent();return null==q.getState()&&!mxEvent.isMouseEvent(F)&&
!e.freehand.isDrawing()||mxEvent.isPopupTrigger(F)&&(null==q.getState()||mxEvent.isControlDown(F)||mxEvent.isShiftDown(F))});e.cellEditor.editPlantUmlData=function(q,F,J){var L=JSON.parse(J);F=new TextareaDialog(c,mxResources.get("plantUml")+":",L.data,function(Q){null!=Q&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(Q,L.format,function(U,V,W){c.spinner.stop();e.getModel().beginUpdate();try{if("txt"==L.format)e.labelChanged(q,"<pre>"+U+"</pre>"),e.updateCellSize(q,
@@ -13280,7 +13294,7 @@ function(Q){null!=Q&&c.spinner.spin(document.body,mxResources.get("inserting"))&
null,null,400,220);c.showDialog(F.container,420,300,!0,!0);F.init()};var n=e.cellEditor.startEditing;e.cellEditor.startEditing=function(q,F){try{var J=this.graph.getAttributeForCell(q,"plantUmlData");if(null!=J)this.editPlantUmlData(q,F,J);else if(J=this.graph.getAttributeForCell(q,"mermaidData"),null!=J&&window.isMermaidEnabled)this.editMermaidData(q,F,J);else{var L=e.getCellStyle(q);"1"==mxUtils.getValue(L,"metaEdit","0")?c.showDataDialog(q):n.apply(this,arguments)}}catch(Q){c.handleError(Q)}};
e.getLinkTitle=function(q){return c.getLinkTitle(q)};e.customLinkClicked=function(q,F){var J=!1;try{var L=this.getGraphBounds();c.handleCustomLink(q,F);J=!0;c.chromelessResize&&!L.equals(this.getGraphBounds())&&(c.chromelessResize(),this.scrollCellToVisible(F))}catch(Q){c.handleError(Q)}return J};var p=e.parseBackgroundImage;e.parseBackgroundImage=function(q){var F=p.apply(this,arguments);null!=F&&null!=F.src&&Graph.isPageLink(F.src)&&(F={originalSrc:F.src});return F};var u=e.setBackgroundImage;e.setBackgroundImage=
function(q){null!=q&&null!=q.originalSrc&&(q=c.createImageForPageLink(q.originalSrc,c.currentPage,this));u.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){e.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){e.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(q,F){q=null!=e.backgroundImage?e.backgroundImage.originalSrc:null;if(null!=q){var J=q.indexOf(",");if(0<J)for(q=q.substring(J+
-1),F=F.getProperty("patches"),J=0;J<F.length;J++)if(null!=F[J][EditorUi.DIFF_UPDATE]&&null!=F[J][EditorUi.DIFF_UPDATE][q]||null!=F[J][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(F[J][EditorUi.DIFF_REMOVE],q)){e.refreshBackgroundImage();break}}}));var A=e.getBackgroundImageObject;e.getBackgroundImageObject=function(q,F){var J=A.apply(this,arguments);null!=J&&null!=J.originalSrc&&(J=F?c.createImageForPageLink(J.originalSrc,null,null,!0):{src:J.originalSrc});return J};this.isOffline()||"undefined"===typeof window.EditDataDialog||
+1),F=F.getProperty("patches"),J=0;J<F.length;J++)if(null!=F[J][EditorUi.DIFF_UPDATE]&&null!=F[J][EditorUi.DIFF_UPDATE][q]||null!=F[J][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(F[J][EditorUi.DIFF_REMOVE],q)){e.refreshBackgroundImage();break}}}));var B=e.getBackgroundImageObject;e.getBackgroundImageObject=function(q,F){var J=B.apply(this,arguments);null!=J&&null!=J.originalSrc&&(J=F?c.createImageForPageLink(J.originalSrc,null,null,!0):{src:J.originalSrc});return J};this.isOffline()||"undefined"===typeof window.EditDataDialog||
(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var D=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(q){q=null!=q?q:"";"1"==urlParams.dev&&(q+=(0<q.length?"&":"?")+"dev=1");return D.apply(this,arguments)};var G=e.addClickHandler;e.addClickHandler=function(q,F,J){var L=F;F=
function(Q,U,V){if(null==U){var W=mxEvent.getSource(Q);"a"==W.nodeName.toLowerCase()&&(U=W.getAttribute("href"))}null!=U&&e.isCustomLink(U)&&(mxEvent.isTouchEvent(Q)||!mxEvent.isPopupTrigger(Q))&&e.customLinkClicked(U,V)&&mxEvent.consume(Q);null!=L&&L(Q,U,V)};G.call(this,q,F,J)};y.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(e.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var E=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(q,F,J){e.isSelectionEmpty()&&
"simple"==Editor.currentTheme&&this.addMenuItems(q,["zoomIn","zoomOut","-"],null,J);E.apply(this,arguments);e.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(q,["-","addToScratchpad"],null,J);e.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(q,["-","exitGroup","home"],null,J)};var T=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(q,F,J){if(c.editor.graph.isSelectionEmpty())T.apply(this,arguments),c.menus.addMenuItems(q,["copyAsImage"],
@@ -13289,16 +13303,16 @@ q);var L=e.getModel().getGeometry(F);null!=L&&null!=L.points&&0<L.points.length&
function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}this.defaultFilename=mxResources.get("untitledDiagram");var O=e.getExportVariables;e.getExportVariables=function(){var q=O.apply(this,arguments),F=c.getCurrentFile();null!=F&&(q.filename=F.getTitle());q.pagecount=null!=c.pages?c.pages.length:1;q.page=null!=c.currentPage?c.currentPage.getName():"";q.pagenumber=null!=c.pages&&null!=c.currentPage?
mxUtils.indexOf(c.pages,c.currentPage)+1:1;return q};var S=e.getGlobalVariable;e.getGlobalVariable=function(q){var F=c.getCurrentFile();return"filename"==q&&null!=F?F.getTitle():"page"==q&&null!=c.currentPage?c.currentPage.getName():"pagenumber"==q?null!=c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1:"pagecount"==q?null!=c.pages?c.pages.length:1:S.apply(this,arguments)};var k=null,v=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var q=this.getCurrentFile(),
F=null!=q&&null!=q.getTitle()?q.getTitle():this.defaultFilename;k!=F&&q==v&&(e.invalidateDescendantsWithPlaceholders(e.model.getRoot()),e.view.validate());k=F;v=q}));var z=e.labelLinkClicked;e.labelLinkClicked=function(q,F,J){var L=F.getAttribute("href");if(null==L||!e.isCustomLink(L)||!mxEvent.isTouchEvent(J)&&mxEvent.isPopupTrigger(J))z.apply(this,arguments);else{if(!e.isEnabled()||null!=q&&e.isCellLocked(q.cell))e.customLinkClicked(L),e.getRubberband().reset();mxEvent.consume(J)}};this.editor.getOrCreateFilename=
-function(){var q=c.defaultFilename,F=c.getCurrentFile();null!=F&&(q=null!=F.getTitle()?F.getTitle():q);return q};var B=this.actions.get("print");B.setEnabled(!mxClient.IS_IOS||!navigator.standalone);B.visible=B.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1,"insertText"),this.keyHandler.bindAction(83,!1,"insertNote"),
+function(){var q=c.defaultFilename,F=c.getCurrentFile();null!=F&&(q=null!=F.getTitle()?F.getTitle():q);return q};var A=this.actions.get("print");A.setEnabled(!mxClient.IS_IOS||!navigator.standalone);A.visible=A.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1,"insertText"),this.keyHandler.bindAction(83,!1,"insertNote"),
this.keyHandler.bindAction(68,!1,"insertRectangle"),this.keyHandler.bindAction(70,!1,"insertEllipse"),this.keyHandler.bindAction(76,!1,"insertLink"),this.keyHandler.bindAction(82,!1,"insertRhombus"),this.keyHandler.bindAction(67,!1,"insertEdge"),this.keyHandler.bindAction(88,!1,"insertFreehand"),this.keyHandler.bindAction(75,!0,"toggleShapes",!0),this.keyHandler.bindAction(54,!0,"adaptiveColors",!0),this.altShiftActions[81]="copyStyle",this.altShiftActions[87]="pasteStyle",this.altShiftActions[83]=
"synchronize","1"==urlParams.embedInline&&e.addListener(mxEvent.ESCAPE,function(q,F){null!=F&&e.isEnabled()&&!e.isEditing()&&null!=F.getProperty("event")&&c.actions.get("exit").funct()}),this.installImagePasteHandler(),this.installNativeClipboardHandler();this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateUserElement()}));this.spinner=this.createSpinner(null,null,24);Graph.fileSupport&&e.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(q){var F=e.cellEditor.text2,
J=null;null!=F&&(mxEvent.addListener(F,"dragleave",function(L){null!=J&&(J.parentNode.removeChild(J),J=null);L.stopPropagation();L.preventDefault()}),mxEvent.addListener(F,"dragover",mxUtils.bind(this,function(L){null==J&&(!mxClient.IS_IE||10<document.documentMode)&&(J=this.highlightElement(F));L.stopPropagation();L.preventDefault()})),mxEvent.addListener(F,"drop",mxUtils.bind(this,function(L){null!=J&&(J.parentNode.removeChild(J),J=null);if(0<L.dataTransfer.files.length)this.importFiles(L.dataTransfer.files,
0,0,this.maxImageSize,function(U,V,W,X,Z,Y){e.insertImage(U,Z,Y)},function(){},function(U){return"image/"==U.type.substring(0,6)},function(U){for(var V=0;V<U.length;V++)U[V]()},mxEvent.isControlDown(L));else if(0<=mxUtils.indexOf(L.dataTransfer.types,"text/uri-list")){var Q=L.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(Q)?this.loadImage(decodeURIComponent(Q),mxUtils.bind(this,function(U){var V=Math.max(1,U.width);U=Math.max(1,U.height);var W=this.maxImageSize;W=Math.min(1,
-Math.min(W/Math.max(1,V)),W/Math.max(1,U));e.insertImage(decodeURIComponent(Q),V*W,U*W)})):document.execCommand("insertHTML",!1,L.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(L.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,L.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(L.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,L.dataTransfer.getData("text/plain"));L.stopPropagation();L.preventDefault()})))}));if(Editor.isSettingsEnabled()){B=
-this.editor.graph.view;var H=mxSettings.getUnit();B.setUnit(H);Editor.pageSizeUnit=H==mxConstants.METERS?mxConstants.MILLIMETERS:H;B.addListener("unitChanged",function(q,F){q=F.getProperty("unit");mxSettings.setUnit(q);mxSettings.save();Editor.pageSizeUnit=q==mxConstants.METERS?mxConstants.MILLIMETERS:q});this.ruler=!this.canvasSupported||9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?null:new mxDualRuler(this,B.unit);
-this.refresh()}if("1"==urlParams.styledev){B=document.getElementById("geFooter");null!=B&&(this.styleInput=document.createElement("input"),this.styleInput.setAttribute("type","text"),this.styleInput.style.position="absolute",this.styleInput.style.top="14px",this.styleInput.style.left="2px",this.styleInput.style.width="98%",this.styleInput.style.visibility="hidden",this.styleInput.style.opacity="0.9",mxEvent.addListener(this.styleInput,"change",mxUtils.bind(this,function(){this.editor.graph.getModel().setStyle(this.editor.graph.getSelectionCell(),
-this.styleInput.value)})),B.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(q,F){0<this.editor.graph.getSelectionCount()?(q=this.editor.graph.getSelectionCell(),q=this.editor.graph.getModel().getStyle(q),this.styleInput.value=q||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var R=this.isSelectionAllowed;this.isSelectionAllowed=function(q){return mxEvent.getSource(q)==this.styleInput?
-!0:R.apply(this,arguments)}}B=document.getElementById("geInfo");null!=B&&B.parentNode.removeChild(B);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var g=null;mxEvent.addListener(e.container,"dragleave",function(q){e.isEnabled()&&(null!=g&&(g.parentNode.removeChild(g),g=null),q.stopPropagation(),q.preventDefault())});mxEvent.addListener(e.container,"dragover",mxUtils.bind(this,function(q){null==g&&(!mxClient.IS_IE||10<document.documentMode)&&(g=this.highlightElement(e.container));
+Math.min(W/Math.max(1,V)),W/Math.max(1,U));e.insertImage(decodeURIComponent(Q),V*W,U*W)})):document.execCommand("insertHTML",!1,L.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(L.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,L.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(L.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,L.dataTransfer.getData("text/plain"));L.stopPropagation();L.preventDefault()})))}));if(Editor.isSettingsEnabled()){A=
+this.editor.graph.view;var H=mxSettings.getUnit();A.setUnit(H);Editor.pageSizeUnit=H==mxConstants.METERS?mxConstants.MILLIMETERS:H;A.addListener("unitChanged",function(q,F){q=F.getProperty("unit");mxSettings.setUnit(q);mxSettings.save();Editor.pageSizeUnit=q==mxConstants.METERS?mxConstants.MILLIMETERS:q});this.ruler=!this.canvasSupported||9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?null:new mxDualRuler(this,A.unit);
+this.refresh()}if("1"==urlParams.styledev){A=document.getElementById("geFooter");null!=A&&(this.styleInput=document.createElement("input"),this.styleInput.setAttribute("type","text"),this.styleInput.style.position="absolute",this.styleInput.style.top="14px",this.styleInput.style.left="2px",this.styleInput.style.width="98%",this.styleInput.style.visibility="hidden",this.styleInput.style.opacity="0.9",mxEvent.addListener(this.styleInput,"change",mxUtils.bind(this,function(){this.editor.graph.getModel().setStyle(this.editor.graph.getSelectionCell(),
+this.styleInput.value)})),A.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(q,F){0<this.editor.graph.getSelectionCount()?(q=this.editor.graph.getSelectionCell(),q=this.editor.graph.getModel().getStyle(q),this.styleInput.value=q||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var R=this.isSelectionAllowed;this.isSelectionAllowed=function(q){return mxEvent.getSource(q)==this.styleInput?
+!0:R.apply(this,arguments)}}A=document.getElementById("geInfo");null!=A&&A.parentNode.removeChild(A);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var g=null;mxEvent.addListener(e.container,"dragleave",function(q){e.isEnabled()&&(null!=g&&(g.parentNode.removeChild(g),g=null),q.stopPropagation(),q.preventDefault())});mxEvent.addListener(e.container,"dragover",mxUtils.bind(this,function(q){null==g&&(!mxClient.IS_IE||10<document.documentMode)&&(g=this.highlightElement(e.container));
null!=this.sidebar&&this.sidebar.hideTooltip();q.stopPropagation();q.preventDefault()}));mxEvent.addListener(e.container,"drop",mxUtils.bind(this,function(q){null!=g&&(g.parentNode.removeChild(g),g=null);if(e.isEnabled()){var F=mxUtils.convertPoint(e.container,mxEvent.getClientX(q),mxEvent.getClientY(q)),J=q.dataTransfer.files,L=e.view.translate,Q=e.view.scale,U=F.x/Q-L.x,V=F.y/Q-L.y;if(0<J.length)"1"!=urlParams.embed&&mxEvent.isShiftDown(q)?(this.isBlankFile()&&!this.canUndo()&&null!=this.getCurrentFile()&&
this.fileLoaded(null),this.openFiles(J,!0)):(mxEvent.isAltDown(q)&&(V=U=null),this.importFiles(J,U,V,this.maxImageSize,null,null,null,null,mxEvent.isControlDown(q),null,null,mxEvent.isShiftDown(q),q));else{mxEvent.isAltDown(q)&&(V=U=0);var W=0<=mxUtils.indexOf(q.dataTransfer.types,"text/uri-list")?q.dataTransfer.getData("text/uri-list"):null;F=this.extractGraphModelFromEvent(q,null!=this.pages);if(null!=F)e.setSelectionCells(this.importXml(F,U,V,!0));else if(0<=mxUtils.indexOf(q.dataTransfer.types,
"text/html")){var X=q.dataTransfer.getData("text/html");F=document.createElement("div");F.innerHTML=Graph.sanitizeHtml(X);var Z=null;J=F.getElementsByTagName("img");null!=J&&1==J.length?(X=J[0].getAttribute("src"),null==X&&(X=J[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(X)||(Z=!0)):(J=F.getElementsByTagName("a"),null!=J&&1==J.length?X=J[0].getAttribute("href"):(F=F.getElementsByTagName("pre"),null!=F&&1==F.length&&(X=mxUtils.getTextContent(F[0]))));var Y=!0,ba=mxUtils.bind(this,
@@ -13306,26 +13320,26 @@ function(){e.setSelectionCells(this.insertTextAt(X,U,V,!0,Z,null,Y,mxEvent.isCon
null,"",U,V,ca*da,ea*da,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+W+";"))}),mxUtils.bind(this,function(ea){e.setSelectionCells(this.insertTextAt(W,U,V,!0))})):0<=mxUtils.indexOf(q.dataTransfer.types,"text/plain")&&e.setSelectionCells(this.insertTextAt(q.dataTransfer.getData("text/plain"),U,V,!0))}}q.stopPropagation();q.preventDefault()}),!1)}this.initPages();"1"==urlParams.embed&&this.initializeEmbedMode();this.addListener("currentThemeChanged",
mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();this.refresh()}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&e.view.validateBackground()});e.addListener("enabledChanged",mxUtils.bind(this,function(){e.isEnabled()||this.hideShapePicker()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var q=parseInt(this.div.offsetLeft),F=
parseInt(this.div.offsetWidth),J=c.embedViewport.x+c.embedViewport.width,L=parseInt(this.div.offsetTop),Q=parseInt(this.div.offsetHeight),U=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(q,J-F))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(L,U-Q))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};
-if(!this.editor.chromeless||this.editor.editable)if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme)B=Editor.currentTheme,Editor.currentTheme="",this.doSetCurrentTheme(B,mxUtils.bind(this,function(){"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<Editor.smallScreenWidth&&this.toggleFormatPanel(!1);this.fireEvent(new mxEventObject("themeInitialized"))}));B=!1;null!=urlParams.dark?B=urlParams.dark:
-"dark"==Editor.currentTheme?B=!0:Editor.isSettingsEnabled()&&"1"!=urlParams.embed&&(B=mxSettings.settings.darkMode);"auto"==B&&this.isAutoDarkModeSupported()&&(B=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===typeof B?"1"==B:B);if(this.isAutoDarkModeSupported())try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(q){this.isAutoDarkMode()&&this.setDarkMode(q.matches)}))}catch(q){this.actions.get("autoMode").setEnabled(!1)}"1"==
+if(!this.editor.chromeless||this.editor.editable)if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme)A=Editor.currentTheme,Editor.currentTheme="",this.doSetCurrentTheme(A,mxUtils.bind(this,function(){"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<Editor.smallScreenWidth&&this.toggleFormatPanel(!1);this.fireEvent(new mxEventObject("themeInitialized"))}));A=!1;null!=urlParams.dark?A=urlParams.dark:
+(A="dark"==Editor.currentTheme,!Editor.isSettingsEnabled()||"1"==urlParams.embed||A&&"auto"!=mxSettings.settings.darkMode||(A=mxSettings.settings.darkMode));"auto"==A&&this.isAutoDarkModeSupported()&&(A=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===typeof A?"1"==A:A);if(this.isAutoDarkModeSupported())try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(q){this.isAutoDarkMode()&&this.setDarkMode(q.matches)}))}catch(q){this.actions.get("autoMode").setEnabled(!1)}"1"==
urlParams["high-contrast"]?this.setHighContrast(!0):Editor.isSettingsEnabled()&&!this.editor.graph.isLightboxView()&&null!=mxSettings.settings.highContrast&&this.setHighContrast(mxSettings.settings.highContrast);this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(q,F){e.enableFlowAnimation=Editor.enableAnimations;e.refresh()}));e.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&
c.editor.loadFonts()};var x=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,e=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=e&&c<e?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<e&&c>=e&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));this.lastWindowWidth=
c}x.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var c=this.sketchFooterMenuElt,e=this.sketchMainMenuElt,l=this.sketchPickerMenuElt,n=this.editor.graph;l.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(E){mxEvent.getSource(E)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(E),mxEvent.getClientY(E)),this.sendEmbeddedSvgExport())}));document.body.style.cursor="text";var p=
-document.createElement("div");p.style.position="absolute";p.style.width="10px";p.style.height="10px";p.style.borderRadius="5px";p.style.border="1px solid gray";p.style.background="#ffffff";p.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(p);this.bottomResizer=p;var u=null,A=null,D=null,G=null;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(E){G=parseInt(this.diagramContainer.style.height);A=mxEvent.getClientY(E);n.popupMenuHandler.hideMenu();mxEvent.consume(E)}));
-p=p.cloneNode(!1);p.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(p);this.rightResizer=p;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(E){D=parseInt(this.diagramContainer.style.width);u=mxEvent.getClientX(E);n.popupMenuHandler.hideMenu();mxEvent.consume(E)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(E){var T=!1;null!=u&&(this.diagramContainer.style.width=Math.max(20,D+mxEvent.getClientX(E)-u)+"px",T=!0);null!=A&&(this.diagramContainer.style.height=
-Math.max(20,G+mxEvent.getClientY(E)-A)+"px",T=!0);T&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}),function(E){null==u&&null==A||mxEvent.consume(E);A=u=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius="4px";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility=
+document.createElement("div");p.style.position="absolute";p.style.width="10px";p.style.height="10px";p.style.borderRadius="5px";p.style.border="1px solid gray";p.style.background="#ffffff";p.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(p);this.bottomResizer=p;var u=null,B=null,D=null,G=null;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(E){G=parseInt(this.diagramContainer.style.height);B=mxEvent.getClientY(E);n.popupMenuHandler.hideMenu();mxEvent.consume(E)}));
+p=p.cloneNode(!1);p.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(p);this.rightResizer=p;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(E){D=parseInt(this.diagramContainer.style.width);u=mxEvent.getClientX(E);n.popupMenuHandler.hideMenu();mxEvent.consume(E)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(E){var T=!1;null!=u&&(this.diagramContainer.style.width=Math.max(20,D+mxEvent.getClientX(E)-u)+"px",T=!0);null!=B&&(this.diagramContainer.style.height=
+Math.max(20,G+mxEvent.getClientY(E)-B)+"px",T=!0);T&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}),function(E){null==u&&null==B||mxEvent.consume(E);B=u=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius="4px";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility=
"hidden";this.sketchMenubarElt.style.display="none";e.style.visibility="hidden";c.style.visibility="hidden";l.style.display="none";this.addListener("editInlineStart",mxUtils.bind(this,function(E){this.inlineSizeChanged();this.fitWindows()}));this.addListener("editInlineStop",mxUtils.bind(this,function(E){this.diagramContainer.style.width="10px";this.diagramContainer.style.height="10px";this.diagramContainer.style.border="";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility=
"hidden";e.style.visibility="hidden";c.style.visibility="hidden";l.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var c=this.editor.graph;c.container.addEventListener("paste",mxUtils.bind(this,function(e){if(!mxEvent.isConsumed(e))try{for(var l=e.clipboardData||e.originalEvent.clipboardData,n=!1,p=0;p<l.types.length;p++)if("text/"===l.types[p].substring(0,5)){n=!0;break}if(!n){var u=
-l.items;for(index in u){var A=u[index];if("file"===A.kind){if(c.isEditing())this.importFiles([A.getAsFile()],0,0,this.maxImageSize,function(G,E,T,O,S,k){c.insertImage(G,S,k)},function(){},function(G){return"image/"==G.type.substring(0,6)},function(G){for(var E=0;E<G.length;E++)G[E]()});else{var D=this.editor.graph.getInsertPoint();this.importFiles([A.getAsFile()],D.x,D.y,this.maxImageSize);mxEvent.consume(e)}break}}}}catch(G){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=function(){function c(){window.setTimeout(function(){l.innerHTML=
+l.items;for(index in u){var B=u[index];if("file"===B.kind){if(c.isEditing())this.importFiles([B.getAsFile()],0,0,this.maxImageSize,function(G,E,T,O,S,k){c.insertImage(G,S,k)},function(){},function(G){return"image/"==G.type.substring(0,6)},function(G){for(var E=0;E<G.length;E++)G[E]()});else{var D=this.editor.graph.getInsertPoint();this.importFiles([B.getAsFile()],D.x,D.y,this.maxImageSize);mxEvent.consume(e)}break}}}}catch(G){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=function(){function c(){window.setTimeout(function(){l.innerHTML=
"&nbsp;";l.focus();document.execCommand("selectAll",!1,null)},0)}var e=this.editor.graph,l=document.createElement("div");l.setAttribute("autocomplete","off");l.setAttribute("autocorrect","off");l.setAttribute("autocapitalize","off");l.setAttribute("spellcheck","false");l.style.textRendering="optimizeSpeed";l.style.fontFamily="monospace";l.style.wordBreak="break-all";l.style.background="transparent";l.style.color="transparent";l.style.position="absolute";l.style.whiteSpace="nowrap";l.style.overflow=
-"hidden";l.style.display="block";l.style.fontSize="1";l.style.zIndex="-1";l.style.resize="none";l.style.outline="none";l.style.width="1px";l.style.height="1px";mxUtils.setOpacity(l,0);l.contentEditable=!0;l.innerHTML="&nbsp;";var n=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(u){var A=mxEvent.getSource(u);null==e.container||!e.isEnabled()||e.isMouseDown||
-e.isEditing()||null!=this.dialog||"INPUT"==A.nodeName||"TEXTAREA"==A.nodeName||"true"==A.contentEditable||224!=u.keyCode&&(mxClient.IS_MAC||17!=u.keyCode)&&(!mxClient.IS_MAC||91!=u.keyCode&&93!=u.keyCode)||n||(l.style.left=e.container.scrollLeft+10+"px",l.style.top=e.container.scrollTop+10+"px",u=e.container.scrollLeft,A=e.container.scrollTop,e.container.appendChild(l),n=!0,l.focus(),document.execCommand("selectAll",!1,null),e.container.scrollLeft=u,e.container.scrollTop=A)}));mxEvent.addListener(document,
-"keyup",mxUtils.bind(this,function(u){var A=u.keyCode;window.setTimeout(mxUtils.bind(this,function(){!n||224!=A&&17!=A&&91!=A&&93!=A||(n=!1,e.isEditing()||null!=this.dialog||null==e.container||e.container.focus(),l.parentNode.removeChild(l),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(l,"copy",mxUtils.bind(this,function(u){if(e.isEnabled())try{mxClipboard.copy(e),this.copyCells(l),c()}catch(A){this.handleError(A)}}));mxEvent.addListener(l,"cut",mxUtils.bind(this,function(u){if(e.isEnabled())try{mxClipboard.copy(e),
-this.copyCells(l,!0),c()}catch(A){this.handleError(A)}}));mxEvent.addListener(l,"paste",mxUtils.bind(this,function(u){if(e.isEnabled()&&!e.isCellLocked(e.getDefaultParent()))try{if(l.innerHTML="&nbsp;",l.focus(),null!=u.clipboardData&&(Graph.removePasteFormatting(l.firstChild),this.pasteCells(u,l,!0,!0)),!mxEvent.isConsumed(u)){var A=e.container.scrollLeft,D=e.container.scrollTop;window.setTimeout(mxUtils.bind(this,function(){try{e.container.scrollLeft=A,e.container.scrollTop=D,Graph.removePasteFormatting(l.firstChild),
+"hidden";l.style.display="block";l.style.fontSize="1";l.style.zIndex="-1";l.style.resize="none";l.style.outline="none";l.style.width="1px";l.style.height="1px";mxUtils.setOpacity(l,0);l.contentEditable=!0;l.innerHTML="&nbsp;";var n=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(u){var B=mxEvent.getSource(u);null==e.container||!e.isEnabled()||e.isMouseDown||
+e.isEditing()||null!=this.dialog||"INPUT"==B.nodeName||"TEXTAREA"==B.nodeName||"true"==B.contentEditable||224!=u.keyCode&&(mxClient.IS_MAC||17!=u.keyCode)&&(!mxClient.IS_MAC||91!=u.keyCode&&93!=u.keyCode)||n||(l.style.left=e.container.scrollLeft+10+"px",l.style.top=e.container.scrollTop+10+"px",u=e.container.scrollLeft,B=e.container.scrollTop,e.container.appendChild(l),n=!0,l.focus(),document.execCommand("selectAll",!1,null),e.container.scrollLeft=u,e.container.scrollTop=B)}));mxEvent.addListener(document,
+"keyup",mxUtils.bind(this,function(u){var B=u.keyCode;window.setTimeout(mxUtils.bind(this,function(){!n||224!=B&&17!=B&&91!=B&&93!=B||(n=!1,e.isEditing()||null!=this.dialog||null==e.container||e.container.focus(),l.parentNode.removeChild(l),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(l,"copy",mxUtils.bind(this,function(u){if(e.isEnabled())try{mxClipboard.copy(e),this.copyCells(l),c()}catch(B){this.handleError(B)}}));mxEvent.addListener(l,"cut",mxUtils.bind(this,function(u){if(e.isEnabled())try{mxClipboard.copy(e),
+this.copyCells(l,!0),c()}catch(B){this.handleError(B)}}));mxEvent.addListener(l,"paste",mxUtils.bind(this,function(u){if(e.isEnabled()&&!e.isCellLocked(e.getDefaultParent()))try{if(l.innerHTML="&nbsp;",l.focus(),null!=u.clipboardData&&(Graph.removePasteFormatting(l.firstChild),this.pasteCells(u,l,!0,!0)),!mxEvent.isConsumed(u)){var B=e.container.scrollLeft,D=e.container.scrollTop;window.setTimeout(mxUtils.bind(this,function(){try{e.container.scrollLeft=B,e.container.scrollTop=D,Graph.removePasteFormatting(l.firstChild),
this.pasteCells(u,l,!1,!0)}catch(G){this.handleError(G)}}),0)}}catch(G){this.handleError(G)}}),!0);var p=this.isSelectionAllowed;this.isSelectionAllowed=function(u){return mxEvent.getSource(u)==l?!0:p.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,e){mxSettings.setUi(c);(e=this.doSetCurrentTheme(c)||e)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(c){return""==c||"dark"==c||"default"==c||"kennedy"==c||null==c};EditorUi.prototype.doSetCurrentTheme=
-function(c,e){function l(D){return"simple"==D||"sketch"==D}var n=Editor.currentTheme,p=l(n)&&this.isDefaultTheme(c)||this.isDefaultTheme(n)&&l(c),u=p&&"sketch"!=c&&"sketch"!=n;if(p&&!this.themeSwitching){var A=this.saveScrollState();this.editor.graph.stopEditing(!1);this.container.style.opacity=0;Editor.currentTheme=c;this.themeSwitching=!0;window.setTimeout(mxUtils.bind(this,function(){l(n)&&this.isDefaultTheme(c)?(this.menubarContainer.style.display="",this.toolbarContainer.style.display="block",
+function(c,e){function l(D){return"simple"==D||"sketch"==D}var n=Editor.currentTheme,p=l(n)&&this.isDefaultTheme(c)||this.isDefaultTheme(n)&&l(c),u=p&&"sketch"!=c&&"sketch"!=n;if(p&&!this.themeSwitching){var B=this.saveScrollState();this.editor.graph.stopEditing(!1);this.container.style.opacity=0;Editor.currentTheme=c;this.themeSwitching=!0;window.setTimeout(mxUtils.bind(this,function(){l(n)&&this.isDefaultTheme(c)?(this.menubarContainer.style.display="",this.toolbarContainer.style.display="block",
this.tabContainer.style.display="flex",this.hsplit.style.display="block",this.menubarHeight=App.prototype.menubarHeight):this.isDefaultTheme(n)&&l(c)&&(this.menubarContainer.style.display="none",this.toolbarContainer.style.display="none",this.menubarHeight=0,"simple"!=c?(this.tabContainer.style.display="none",this.hsplit.style.display="none",this.hsplitPosition=0):this.tabContainer.style.display="flex");this.switchTheme(c);this.fireEvent(new mxEventObject("currentThemeChanged"));this.editor.fireEvent(new mxEventObject("statusChanged"));
-this.editor.graph.refresh();this.restoreScrollState(A);this.container.style.opacity="";delete this.themeSwitching;isLocalStorage&&l(c)&&this.setTabContainerVisible(null!=mxSettings.settings.pages?mxSettings.settings.pages:!0);null!=e&&e()}),0)}return u};EditorUi.prototype.saveScrollState=function(){var c=this.editor.graph.view.translate,e=this.diagramContainer.scrollLeft,l=this.diagramContainer.scrollTop;null!=this.embedViewport&&(Editor.inlineFullscreen?(e-=this.embedViewport.x,l-=this.embedViewport.y):
+this.editor.graph.refresh();this.restoreScrollState(B);this.container.style.opacity="";delete this.themeSwitching;isLocalStorage&&l(c)&&this.setTabContainerVisible(null!=mxSettings.settings.pages?mxSettings.settings.pages:!0);null!=e&&e()}),0)}return u};EditorUi.prototype.saveScrollState=function(){var c=this.editor.graph.view.translate,e=this.diagramContainer.scrollLeft,l=this.diagramContainer.scrollTop;null!=this.embedViewport&&(Editor.inlineFullscreen?(e-=this.embedViewport.x,l-=this.embedViewport.y):
(e+=this.embedViewport.x,l+=this.embedViewport.y));return{x:e,y:l,tx:c.x,ty:c.y}};EditorUi.prototype.restoreScrollState=function(c){var e=this.editor.graph.view.scale,l=this.editor.graph.view.translate;this.diagramContainer.scrollLeft=c.x+(l.x-c.tx)*e;this.diagramContainer.scrollTop=c.y+(l.y-c.ty)*e};EditorUi.prototype.installStatusMinimizer=function(c){c=null!=c?c:this.statusContainer.parentNode;var e=!1;mxEvent.addListener(c,"mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&
""!=this.editor.getStatus()&&(this.statusContainer.style.display="inline-flex")}));mxEvent.addListener(c,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||e||(this.statusContainer.style.display="none")}));var l=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var n=null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:null;e=null!=n&&null!=n.getAttribute("class");if(!e&&null!=n){n=
n.getAttribute("title");var p=this.getCurrentFile();p=null!=p?p.savingStatusKey:DrawioFile.prototype.savingStatusKey;n==mxResources.get(p)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(p))+'..."src="'+Editor.tailSpin+'"></div>',e=!0)}this.statusContainer.style.display="none";n=32>=c.clientWidth;c.style.visibility=n&&""==this.editor.getStatus()?"hidden":"";if(n||e)this.statusContainer.style.display="inline-flex",e=!0}else"simple"==Editor.currentTheme?
@@ -13382,45 +13396,45 @@ this.addListener("copyConnectChanged",mxUtils.bind(this,function(e,l){mxSettings
c.view.defaultGridColor+", "+c.view.defaultDarkGridColor+")";this.addListener("gridColorChanged",mxUtils.bind(this,function(e,l){mxSettings.setGridColor(c.view.defaultGridColor,!1);mxSettings.setGridColor(c.view.defaultDarkGridColor,!0);mxSettings.save()}));if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(e,l){mxSettings.setAutosave(this.editor.autosave);mxSettings.save()})),this.editor.autosave=mxSettings.getAutosave();if(!this.editor.chromeless||
this.editor.editable)null!=mxSettings.settings.enableAnimations&&(Editor.enableAnimations=mxSettings.settings.enableAnimations),this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(e,l){mxSettings.settings.enableAnimations=Editor.enableAnimations;mxSettings.save()}));null!=this.sidebar&&(null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes?(this.sidebar.searchShapes(decodeURIComponent(urlParams["search-shapes"])),this.sidebar.showEntries("search")):(this.sidebar.showPalette("search",
mxSettings.settings.search),this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()})}};EditorUi.prototype.copyImage=function(c,e,l){try{null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,
-function(n,p){try{this.spinner.stop();var u=this.createImageDataUri(n,e,"png"),A=parseInt(p.getAttribute("width")),D=parseInt(p.getAttribute("height"));this.writeImageToClipboard(u,A,D,mxUtils.bind(this,function(G){this.handleError(G)}))}catch(G){this.handleError(G)}}),null,null,null,mxUtils.bind(this,function(n){this.spinner.stop();this.handleError(n)}),null,null,null!=l?l:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<c.length?
+function(n,p){try{this.spinner.stop();var u=this.createImageDataUri(n,e,"png"),B=parseInt(p.getAttribute("width")),D=parseInt(p.getAttribute("height"));this.writeImageToClipboard(u,B,D,mxUtils.bind(this,function(G){this.handleError(G)}))}catch(G){this.handleError(G)}}),null,null,null,mxUtils.bind(this,function(n){this.spinner.stop();this.handleError(n)}),null,null,null!=l?l:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<c.length?
c:null)}catch(n){this.handleError(n)}};EditorUi.prototype.copyCells=function(c,e){var l=this.editor.graph;if(l.isSelectionEmpty())c.innerText="";else{var n=mxUtils.sortCells(l.model.getTopmostCells(l.getSelectionCells())),p=mxUtils.getXml(l.encodeCells(n));mxUtils.setTextContent(c,encodeURIComponent(p));e?(l.removeCells(n,!1),l.lastPasteXml=null):(l.lastPasteXml=p,l.pasteCounter=0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeCipboard){var e=
-this.editor.graph;e.isSelectionEmpty()||(c=mxUtils.sortCells(e.getExportableCells(e.model.getTopmostCells(e.getSelectionCells()))),e=mxUtils.getXml(e.encodeCells(c)),navigator.clipboard.writeText(e))}return c};EditorUi.prototype.pasteXml=function(c,e,l,n,p){p=null!=p?p:!0;var u=this.editor.graph,A=null;u.lastPasteXml==c?u.pasteCounter++:(u.lastPasteXml=c,u.pasteCounter=0);var D=u.pasteCounter*u.gridSize;if(l||this.isCompatibleString(c))A=this.importXml(c,D,D),u.setSelectionCells(A);else if(e&&1==
-u.getSelectionCount()){p=u.getStartEditingCell(u.getSelectionCell(),n);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&"image"==u.getCurrentCellStyle(p)[mxConstants.STYLE_SHAPE])u.setCellStyles(mxConstants.STYLE_IMAGE,c,[p]);else{u.model.beginUpdate();try{u.labelChanged(p,c),Graph.isLink(c)&&u.setLinkForCell(p,c)}finally{u.model.endUpdate()}}u.setSelectionCell(p)}else A=u.getInsertPoint(),u.isMouseInsertPoint()&&(D=0,u.lastPasteXml==c&&0<u.pasteCounter&&u.pasteCounter--),A=this.insertTextAt(c,A.x+D,
-A.y+D,p),u.setSelectionCells(A);u.isSelectionEmpty()||(u.scrollCellToVisible(u.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(u.view.getState(u.getSelectionCell())));return A};EditorUi.prototype.pasteCells=function(c,e,l,n){if(!mxEvent.isConsumed(c)){var p=e,u=!1;if(l&&null!=c.clipboardData&&c.clipboardData.getData){var A=c.clipboardData.getData("text/plain"),D=!1;if(null!=A&&0<A.length&&"%3CmxGraphModel%3E"==A.substring(0,18))try{var G=decodeURIComponent(A);this.isCompatibleString(G)&&
-(D=!0,A=G)}catch(v){}D=D?null:c.clipboardData.getData("text/html");null!=D&&0<D.length?(p=this.parseHtmlData(D),u="text/plain"!=p.getAttribute("data-type")):null!=A&&0<A.length&&(p=document.createElement("div"),mxUtils.setTextContent(p,D))}A=p.getElementsByTagName("span");if(null!=A&&0<A.length&&"application/vnd.lucid.chart.objects"===A[0].getAttribute("data-lucid-type"))l=A[0].getAttribute("data-lucid-content"),null!=l&&0<l.length&&(this.convertLucidChart(l,mxUtils.bind(this,function(v){var z=this.editor.graph;
-z.lastPasteXml==v?z.pasteCounter++:(z.lastPasteXml=v,z.pasteCounter=0);var B=z.pasteCounter*z.gridSize;z.setSelectionCells(this.importXml(v,B,B));z.scrollCellToVisible(z.getSelectionCell())}),mxUtils.bind(this,function(v){this.handleError(v)})),mxEvent.consume(c));else{var E=!1,T="";T=u?null!=p.textContent&&"<mxfile"==p.textContent.substring(0,7)&&"</mxfile>"==p.textContent.substring(p.textContent.length-9)||"<mxGraphModel"==p.textContent.substring(0,13)&&"</mxGraphModel>"==p.textContent.substring(p.textContent.length-
-15)?p.textContent.replace(/\u00a0/g," "):p.innerHTML:mxUtils.trim(null==p.innerText?mxUtils.getTextContent(p):p.innerText);try{var O=T.lastIndexOf("%3E");0<=O&&O<T.length-3&&(T=T.substring(0,O+3))}catch(v){}try{A=p.getElementsByTagName("span"),(G=null!=A&&0<A.length?mxUtils.trim(decodeURIComponent(A[0].textContent)):decodeURIComponent(T))&&(this.isCompatibleString(G)||0==G.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(E=!0,T=G)}catch(v){}try{if(null!=T&&0<T.length){if(0==T.substring(0,
+this.editor.graph;e.isSelectionEmpty()||(c=mxUtils.sortCells(e.getExportableCells(e.model.getTopmostCells(e.getSelectionCells()))),e=mxUtils.getXml(e.encodeCells(c)),navigator.clipboard.writeText(e))}return c};EditorUi.prototype.pasteXml=function(c,e,l,n,p){p=null!=p?p:!0;var u=this.editor.graph,B=null;u.lastPasteXml==c?u.pasteCounter++:(u.lastPasteXml=c,u.pasteCounter=0);var D=u.pasteCounter*u.gridSize;if(l||this.isCompatibleString(c))B=this.importXml(c,D,D),u.setSelectionCells(B);else if(e&&1==
+u.getSelectionCount()){p=u.getStartEditingCell(u.getSelectionCell(),n);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&"image"==u.getCurrentCellStyle(p)[mxConstants.STYLE_SHAPE])u.setCellStyles(mxConstants.STYLE_IMAGE,c,[p]);else{u.model.beginUpdate();try{u.labelChanged(p,c),Graph.isLink(c)&&u.setLinkForCell(p,c)}finally{u.model.endUpdate()}}u.setSelectionCell(p)}else B=u.getInsertPoint(),u.isMouseInsertPoint()&&(D=0,u.lastPasteXml==c&&0<u.pasteCounter&&u.pasteCounter--),B=this.insertTextAt(c,B.x+D,
+B.y+D,p),u.setSelectionCells(B);u.isSelectionEmpty()||(u.scrollCellToVisible(u.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(u.view.getState(u.getSelectionCell())));return B};EditorUi.prototype.pasteCells=function(c,e,l,n){if(!mxEvent.isConsumed(c)){var p=e,u=!1;if(l&&null!=c.clipboardData&&c.clipboardData.getData){var B=c.clipboardData.getData("text/plain"),D=!1;if(null!=B&&0<B.length&&"%3CmxGraphModel%3E"==B.substring(0,18))try{var G=decodeURIComponent(B);this.isCompatibleString(G)&&
+(D=!0,B=G)}catch(v){}D=D?null:c.clipboardData.getData("text/html");null!=D&&0<D.length?(p=this.parseHtmlData(D),u="text/plain"!=p.getAttribute("data-type")):null!=B&&0<B.length&&(p=document.createElement("div"),mxUtils.setTextContent(p,D))}B=p.getElementsByTagName("span");if(null!=B&&0<B.length&&"application/vnd.lucid.chart.objects"===B[0].getAttribute("data-lucid-type"))l=B[0].getAttribute("data-lucid-content"),null!=l&&0<l.length&&(this.convertLucidChart(l,mxUtils.bind(this,function(v){var z=this.editor.graph;
+z.lastPasteXml==v?z.pasteCounter++:(z.lastPasteXml=v,z.pasteCounter=0);var A=z.pasteCounter*z.gridSize;z.setSelectionCells(this.importXml(v,A,A));z.scrollCellToVisible(z.getSelectionCell())}),mxUtils.bind(this,function(v){this.handleError(v)})),mxEvent.consume(c));else{var E=!1,T="";T=u?null!=p.textContent&&"<mxfile"==p.textContent.substring(0,7)&&"</mxfile>"==p.textContent.substring(p.textContent.length-9)||"<mxGraphModel"==p.textContent.substring(0,13)&&"</mxGraphModel>"==p.textContent.substring(p.textContent.length-
+15)?p.textContent.replace(/\u00a0/g," "):p.innerHTML:mxUtils.trim(null==p.innerText?mxUtils.getTextContent(p):p.innerText);try{var O=T.lastIndexOf("%3E");0<=O&&O<T.length-3&&(T=T.substring(0,O+3))}catch(v){}try{B=p.getElementsByTagName("span"),(G=null!=B&&0<B.length?mxUtils.trim(decodeURIComponent(B[0].textContent)):decodeURIComponent(T))&&(this.isCompatibleString(G)||0==G.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(E=!0,T=G)}catch(v){}try{if(null!=T&&0<T.length){if(0==T.substring(0,
20).replace(/\s/g,"").indexOf('{"isProtected":')){var S=mxUtils.bind(this,function(){try{T=(new MiroImporter).importMiroJson(JSON.parse(T)),this.pasteXml(T,n,E,c)}catch(v){console.log("Miro import error:",v)}});"undefined"===typeof MiroImporter?mxscript("js/diagramly/miro/MiroImporter.js",S):S()}else this.pasteXml(T,n,E,c,u);try{mxEvent.consume(c)}catch(v){}}else if(!l){var k=this.editor.graph;k.lastPasteXml=null;k.pasteCounter=0}}catch(v){this.handleError(v)}}}e.innerHTML="&nbsp;"};EditorUi.prototype.showPrintDialog=
-function(c,e){var l=320;this.editor.graph.isEnabled()&&(l+=40);null!=this.pages&&1<this.pages.length&&(l+=40,this.editor.graph.isEnabled()||(l+=10));null==e||mxClient.IS_CHROMEAPP||"draw.io"!=this.getServiceName()||(l+=20);this.showDialog((new PrintDialog(this,c,e)).container,320,l,!0,!0)};EditorUi.prototype.print=function(c,e){var l=this.editor,n=l.graph,p=this.getPageIndex(this.currentPage),u=null!=p?p+1:1,A=mxUtils.bind(this,function(B,H,R,g){var q=B.useCssTransforms,F=B.currentTranslate,J=B.currentScale,
-L=B.view.translate,Q=B.view.scale;B.useCssTransforms&&(B.useCssTransforms=!1,B.currentTranslate=new mxPoint(0,0),B.currentScale=1,B.view.translate=new mxPoint(0,0),B.view.scale=1);var U=B.getGraphBounds(),V=0,W=0,X=mxRectangle.fromRectangle(B.pageFormat),Z=e.fit||e.crop||!B.pageVisible,Y=e.scale;X.width=Math.ceil(X.width*B.pageScale);X.height=Math.ceil(X.height*B.pageScale);var ba=1;if(e.fit){ba=e.sheetsAcross;var ea=e.sheetsDown;isNaN(Y)||(X.width=Math.ceil(X.width*Y),X.height=Math.ceil(X.height*
-Y));ba=Math.min(X.height*ea/(U.height/B.view.scale),X.width*ba/(U.width/B.view.scale))}else ba=isNaN(Y)?1:Y;ba*=1;!Z&&B.pageVisible?(Y=B.getPageLayout(),V-=Y.x*X.width,W-=Y.y*X.height):Z=!0;e.crop&&(e.selection&&(U=n.getBoundingBox(n.getSelectionCells())),X.width=(U.width+1)*ba/B.view.scale,X.height=(U.height+1)*ba/B.view.scale);X.width=Math.ceil(1*X.width);X.height=Math.ceil(1*X.height);g=null!=g?"page/id,"+g:null;if(null==H){H=PrintDialog.createPrintPreview(B,ba,null,0,V,W,Z);H.title=this.getBaseFilename(!0);
-H.pageSelector=!1;H.mathEnabled=!1;V=e.border;isNaN(V)||(H.pageMargin=V);e.selection&&(H.isCellVisible=function(aa){return B.isCellSelected(aa)});var ca=H.writeHead;H.writeHead=function(aa){ca.apply(this,arguments);mxClient.IS_GC&&(aa.writeln('<style type="text/css">'),aa.writeln("@media print {"),aa.writeln(".MathJax svg { shape-rendering: crispEdges; }"),aa.writeln("}"),aa.writeln("</style>"));null!=l.fontCss&&(aa.writeln('<style type="text/css">'),aa.writeln(mxUtils.htmlEntities(l.fontCss,!1,!1,
-!1)),aa.writeln("</style>"));for(var ia=B.getCustomFonts(),ka=0;ka<ia.length;ka++){var ta=ia[ka].name,sa=ia[ka].url;Graph.isCssFontUrl(sa)?aa.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(sa))+'" charset="UTF-8" type="text/css">'):(aa.writeln('<style type="text/css">'),aa.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(ta)+'";\nsrc: url("'+mxUtils.htmlEntities(sa)+'");\n}'),aa.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var da=H.drawBackgroundImage;
-H.drawBackgroundImage=function(aa){da.apply(this,arguments);null!=aa.node&&(EditorUi.embedSvgImages(aa.node),n.disableSvgLinks(aa.node,function(ia){ia.setAttribute("href","javascript:void(0)")}))}}var ma=H.addGraphFragment;H.addGraphFragment=function(aa,ia,ka,ta,sa,fa){ma.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:sa.classList.add("geDisableMathJax")};e.grid&&(H.gridSize=B.gridSize,H.gridSteps=B.view.gridSteps,H.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:
-B.view.gridColor);H.open(null,null,R,!0,g,X,e.selection?B.getSelectionCells():null)}else{U=B.background;if(null==U||""==U||U==mxConstants.NONE)U="#ffffff";H.backgroundColor=U;H.autoOrigin=Z;e.grid&&(H.gridSize=B.gridSize,H.gridSteps=B.view.gridSteps,H.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:B.view.gridColor);H.appendGraph(B,ba,V,W,R,!0,g,X,e.selection?B.getSelectionCells():null);R=B.getCustomFonts();if(null!=H.wnd)for(X=0;X<R.length;X++)V=R[X].name,W=R[X].url,Graph.isCssFontUrl(W)?
-H.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(W)+'" charset="UTF-8" type="text/css">'):(H.wnd.document.writeln('<style type="text/css">'),H.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(V)+'";\nsrc: url("'+mxUtils.htmlEntities(W)+'");\n}'),H.wnd.document.writeln("</style>"))}q&&(B.useCssTransforms=q,B.currentTranslate=F,B.currentScale=J,B.view.translate=L,B.view.scale=Q);return H}),D=e.pagesFrom,G=e.pagesTo,E=!e.allPages;p=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,
+function(c,e){var l=320;this.editor.graph.isEnabled()&&(l+=40);null!=this.pages&&1<this.pages.length&&(l+=40,this.editor.graph.isEnabled()||(l+=10));null==e||mxClient.IS_CHROMEAPP||"draw.io"!=this.getServiceName()||(l+=20);this.showDialog((new PrintDialog(this,c,e)).container,320,l,!0,!0)};EditorUi.prototype.print=function(c,e){var l=this.editor,n=l.graph,p=this.getPageIndex(this.currentPage),u=null!=p?p+1:1,B=mxUtils.bind(this,function(A,H,R,g){var q=A.useCssTransforms,F=A.currentTranslate,J=A.currentScale,
+L=A.view.translate,Q=A.view.scale;A.useCssTransforms&&(A.useCssTransforms=!1,A.currentTranslate=new mxPoint(0,0),A.currentScale=1,A.view.translate=new mxPoint(0,0),A.view.scale=1);var U=A.getGraphBounds(),V=0,W=0,X=mxRectangle.fromRectangle(A.pageFormat),Z=e.fit||e.crop||!A.pageVisible,Y=e.scale;X.width=Math.ceil(X.width*A.pageScale);X.height=Math.ceil(X.height*A.pageScale);var ba=1;if(e.fit){ba=e.sheetsAcross;var ea=e.sheetsDown;isNaN(Y)||(X.width=Math.ceil(X.width*Y),X.height=Math.ceil(X.height*
+Y));ba=Math.min(X.height*ea/(U.height/A.view.scale),X.width*ba/(U.width/A.view.scale))}else ba=isNaN(Y)?1:Y;ba*=1;!Z&&A.pageVisible?(Y=A.getPageLayout(),V-=Y.x*X.width,W-=Y.y*X.height):Z=!0;e.crop&&(e.selection&&(U=n.getBoundingBox(n.getSelectionCells())),X.width=(U.width+1)*ba/A.view.scale,X.height=(U.height+1)*ba/A.view.scale);X.width=Math.ceil(1*X.width);X.height=Math.ceil(1*X.height);g=null!=g?"page/id,"+g:null;if(null==H){H=PrintDialog.createPrintPreview(A,ba,null,0,V,W,Z);H.title=this.getBaseFilename(!0);
+H.pageSelector=!1;H.mathEnabled=!1;V=e.border;isNaN(V)||(H.pageMargin=V);e.selection&&(H.isCellVisible=function(aa){return A.isCellSelected(aa)});var ca=H.writeHead;H.writeHead=function(aa){ca.apply(this,arguments);mxClient.IS_GC&&(aa.writeln('<style type="text/css">'),aa.writeln("@media print {"),aa.writeln(".MathJax svg { shape-rendering: crispEdges; }"),aa.writeln("}"),aa.writeln("</style>"));null!=l.fontCss&&(aa.writeln('<style type="text/css">'),aa.writeln(mxUtils.htmlEntities(l.fontCss,!1,!1,
+!1)),aa.writeln("</style>"));for(var ia=A.getCustomFonts(),ka=0;ka<ia.length;ka++){var ta=ia[ka].name,sa=ia[ka].url;Graph.isCssFontUrl(sa)?aa.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(sa))+'" charset="UTF-8" type="text/css">'):(aa.writeln('<style type="text/css">'),aa.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(ta)+'";\nsrc: url("'+mxUtils.htmlEntities(sa)+'");\n}'),aa.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var da=H.drawBackgroundImage;
+H.drawBackgroundImage=function(aa){da.apply(this,arguments);null!=aa.node&&(EditorUi.embedSvgImages(aa.node),n.disableSvgLinks(aa.node,function(ia){ia.setAttribute("href","javascript:void(0)")}))}}var ma=H.addGraphFragment;H.addGraphFragment=function(aa,ia,ka,ta,sa,fa){ma.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:sa.classList.add("geDisableMathJax")};e.grid&&(H.gridSize=A.gridSize,H.gridSteps=A.view.gridSteps,H.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:
+A.view.gridColor);H.open(null,null,R,!0,g,X,e.selection?A.getSelectionCells():null)}else{U=A.background;if(null==U||""==U||U==mxConstants.NONE)U="#ffffff";H.backgroundColor=U;H.autoOrigin=Z;e.grid&&(H.gridSize=A.gridSize,H.gridSteps=A.view.gridSteps,H.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:A.view.gridColor);H.appendGraph(A,ba,V,W,R,!0,g,X,e.selection?A.getSelectionCells():null);R=A.getCustomFonts();if(null!=H.wnd)for(X=0;X<R.length;X++)V=R[X].name,W=R[X].url,Graph.isCssFontUrl(W)?
+H.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(W)+'" charset="UTF-8" type="text/css">'):(H.wnd.document.writeln('<style type="text/css">'),H.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(V)+'";\nsrc: url("'+mxUtils.htmlEntities(W)+'");\n}'),H.wnd.document.writeln("</style>"))}q&&(A.useCssTransforms=q,A.currentTranslate=F,A.currentScale=J,A.view.translate=L,A.view.scale=Q);return H}),D=e.pagesFrom,G=e.pagesTo,E=!e.allPages;p=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,
e);else{E&&(E=e.selection||D==u&&G==u);if(!E&&null!=this.pages&&this.pages.length){E=0;u=this.pages.length-1;e.allPages||(E=parseInt(D)-1,u=parseInt(G)-1);for(var T=E;T<=u;T++){var O=this.pages[T];D=O==this.currentPage?n:null;if(null==D){D=this.createTemporaryGraph(n.stylesheet);D.shapeForegroundColor=n.shapeForegroundColor;D.shapeBackgroundColor=n.shapeBackgroundColor;G=!0;E=!1;var S=null,k=null;null==O.viewState&&null==O.root&&this.updatePageRoot(O);null!=O.viewState&&(G=O.viewState.pageVisible,
-E=O.viewState.mathEnabled,S=O.viewState.background,k=O.viewState.backgroundImage,D.pageFormat=O.viewState.pageFormat,D.gridSize=O.viewState.gridSize);null!=k&&null!=k.originalSrc&&(k=this.createImageForPageLink(k.originalSrc,O));D.background=S;D.backgroundImage=null!=k?new mxImage(k.src,k.width,k.height,k.x,k.y):null;D.pageVisible=G;D.mathEnabled=E;var v=D.getGraphBounds;D.getGraphBounds=function(){var B=v.apply(this,arguments),H=this.backgroundImage;if(null!=H&&null!=H.width&&null!=H.height){var R=
-this.view.translate,g=this.view.scale;B=mxRectangle.fromRectangle(B);B.add(new mxRectangle((R.x+H.x)*g,(R.y+H.y)*g,H.width*g,H.height*g))}return B};var z=D.getGlobalVariable;D.getGlobalVariable=function(B){return"page"==B?O.getName():"pagenumber"==B?T+1:"pagecount"==B?null!=this.pages?this.pages.length:1:z.apply(this,arguments)};document.body.appendChild(D.container);this.updatePageRoot(O);D.model.setRoot(O.root)}p=A(D,p,T!=u,O.getId());D!=n&&D.container.parentNode.removeChild(D.container)}}else p=
-A(n);null==p||null==p.wnd?this.handleError({message:mxResources.get("errorUpdatingPreview")}):(p.mathEnabled&&(A=p.wnd.document,c||(p.wnd.IMMEDIATE_PRINT=!0),A.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>')),p.closeDocument(),Graph.rewritePageLinks(p.wnd.document,!0),p.mathEnabled||c||PrintDialog.printPreview(p));return p}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var e=null,l=0;l<c.length;l++)mxEvent.addListener(c[l],"dragleave",function(n){null!=
+E=O.viewState.mathEnabled,S=O.viewState.background,k=O.viewState.backgroundImage,D.pageFormat=O.viewState.pageFormat,D.gridSize=O.viewState.gridSize);null!=k&&null!=k.originalSrc&&(k=this.createImageForPageLink(k.originalSrc,O));D.background=S;D.backgroundImage=null!=k?new mxImage(k.src,k.width,k.height,k.x,k.y):null;D.pageVisible=G;D.mathEnabled=E;var v=D.getGraphBounds;D.getGraphBounds=function(){var A=v.apply(this,arguments),H=this.backgroundImage;if(null!=H&&null!=H.width&&null!=H.height){var R=
+this.view.translate,g=this.view.scale;A=mxRectangle.fromRectangle(A);A.add(new mxRectangle((R.x+H.x)*g,(R.y+H.y)*g,H.width*g,H.height*g))}return A};var z=D.getGlobalVariable;D.getGlobalVariable=function(A){return"page"==A?O.getName():"pagenumber"==A?T+1:"pagecount"==A?null!=this.pages?this.pages.length:1:z.apply(this,arguments)};document.body.appendChild(D.container);this.updatePageRoot(O);D.model.setRoot(O.root)}p=B(D,p,T!=u,O.getId());D!=n&&D.container.parentNode.removeChild(D.container)}}else p=
+B(n);null==p||null==p.wnd?this.handleError({message:mxResources.get("errorUpdatingPreview")}):(p.mathEnabled&&(B=p.wnd.document,c||(p.wnd.IMMEDIATE_PRINT=!0),B.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>')),p.closeDocument(),Graph.rewritePageLinks(p.wnd.document,!0),p.mathEnabled||c||PrintDialog.printPreview(p));return p}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var e=null,l=0;l<c.length;l++)mxEvent.addListener(c[l],"dragleave",function(n){null!=
e&&(e.parentNode.removeChild(e),e=null);n.stopPropagation();n.preventDefault()}),mxEvent.addListener(c[l],"dragover",mxUtils.bind(this,function(n){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==e&&(!mxClient.IS_IE||10<document.documentMode&&12>document.documentMode)&&(e=this.highlightElement());n.stopPropagation();n.preventDefault()})),mxEvent.addListener(c[l],"drop",mxUtils.bind(this,function(n){null!=e&&(e.parentNode.removeChild(e),e=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<
n.dataTransfer.files.length)this.hideDialog(),"1"==urlParams.embed?this.importFiles(n.dataTransfer.files,0,0,this.maxImageSize,null,null,null,null,!mxEvent.isControlDown(n)&&!mxEvent.isShiftDown(n)):this.openFiles(n.dataTransfer.files,!0);else{var p=this.extractGraphModelFromEvent(n);if(null==p){var u=null!=n.dataTransfer?n.dataTransfer:n.clipboardData;null!=u&&(10==document.documentMode||11==document.documentMode?p=u.getData("Text"):(p=null,p=0<=mxUtils.indexOf(u.types,"text/uri-list")?n.dataTransfer.getData("text/uri-list"):
0<=mxUtils.indexOf(u.types,"text/html")?u.getData("text/html"):null,null!=p&&0<p.length?(u=document.createElement("div"),u.innerHTML=Graph.sanitizeHtml(p),u=u.getElementsByTagName("img"),0<u.length&&(p=u[0].getAttribute("src"))):0<=mxUtils.indexOf(u.types,"text/plain")&&(p=u.getData("text/plain"))),null!=p&&(Editor.isPngDataUrl(p)?(p=Editor.extractGraphModelFromPng(p),null!=p&&0<p.length&&this.openLocalFile(p,null,!0)):this.isRemoteFileFormat(p)?this.isOffline()?this.showError(mxResources.get("error"),
-mxResources.get("notInOffline")):(new mxXmlRequest(OPEN_URL,"format=xml&data="+encodeURIComponent(p))).send(mxUtils.bind(this,function(A){200<=A.getStatus()&&299>=A.getStatus()?this.openLocalFile(A.getText(),null,!0):this.showError(mxResources.get("error"),413==A.getStatus()?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))})):/^https?:\/\//.test(p)&&(null==this.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(p):window.geOpenWindow((mxClient.IS_CHROMEAPP?EditorUi.drawHost+
+mxResources.get("notInOffline")):(new mxXmlRequest(OPEN_URL,"format=xml&data="+encodeURIComponent(p))).send(mxUtils.bind(this,function(B){200<=B.getStatus()&&299>=B.getStatus()?this.openLocalFile(B.getText(),null,!0):this.showError(mxResources.get("error"),413==B.getStatus()?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))})):/^https?:\/\//.test(p)&&(null==this.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(p):window.geOpenWindow((mxClient.IS_CHROMEAPP?EditorUi.drawHost+
"/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(p)))))}else this.openLocalFile(p,null,!0)}n.stopPropagation();n.preventDefault()}))};EditorUi.prototype.highlightElement=function(c){var e=0,l=0;if(null==c){var n=document.body;var p=document.documentElement;var u=(n.clientWidth||p.clientWidth)-3;n=Math.max(n.clientHeight||0,p.clientHeight)-3}else e=c.offsetTop,l=c.offsetLeft,u=c.clientWidth,n=c.clientHeight;p=document.createElement("div");p.style.zIndex=mxPopupMenu.prototype.zIndex+
2;p.style.border="3px dotted rgb(254, 137, 12)";p.style.pointerEvents="none";p.style.position="absolute";p.style.top=e+"px";p.style.left=l+"px";p.style.width=Math.max(0,u-3)+"px";p.style.height=Math.max(0,n-3)+"px";null!=c&&c.parentNode==this.editor.graph.container?this.editor.graph.container.appendChild(p):document.body.appendChild(p);return p};EditorUi.prototype.stringToCells=function(c){c=mxUtils.parseXml(c);var e=this.editor.extractGraphModel(c.documentElement);c=[];if(null!=e){var l=new mxCodec(e.ownerDocument),
-n=new mxGraphModel;l.decode(e,n);e=n.getChildAt(n.getRoot(),0);for(l=0;l<n.getChildCount(e);l++)c.push(n.getChildAt(e,l))}return c};EditorUi.prototype.openFileHandle=function(c,e,l,n,p,u){if(null!=e&&0<e.length){if(!this.useCanvasForExport&&/(\.png)$/i.test(e)||/(\.pdf)$/i.test(e))e=e.substring(0,e.length-4),/(\.drawio)$/i.test(e)||(e+=".drawio");var A=mxUtils.bind(this,function(G){e=0<=e.lastIndexOf(".")?e.substring(0,e.lastIndexOf("."))+".drawio":e+".drawio";if("<mxlibrary"==G.substring(0,10)){null==
-this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,n);try{this.loadLibrary(new LocalLibrary(this,G,e)),this.showSidebar()}catch(E){this.handleError(E,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(G,e,n)});if(EditorUi.isVisioFilename(e))this.importVisio(l,mxUtils.bind(this,function(G){this.spinner.stop();A(G)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(G){this.spinner.stop();A(G)}));else if(Graph.fileSupport&&
-(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,e))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(l,mxUtils.bind(this,function(G){4==G.readyState&&(this.spinner.stop(),200<=G.status&&299>=G.status?A(G.responseText):this.handleError({message:mxResources.get(413==G.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(c))/(\.json)$/i.test(e)&&(e=e.substring(0,
+n=new mxGraphModel;l.decode(e,n);e=n.getChildAt(n.getRoot(),0);for(l=0;l<n.getChildCount(e);l++)c.push(n.getChildAt(e,l))}return c};EditorUi.prototype.openFileHandle=function(c,e,l,n,p,u){if(null!=e&&0<e.length){if(!this.useCanvasForExport&&/(\.png)$/i.test(e)||/(\.pdf)$/i.test(e))e=e.substring(0,e.length-4),/(\.drawio)$/i.test(e)||(e+=".drawio");var B=mxUtils.bind(this,function(G){e=0<=e.lastIndexOf(".")?e.substring(0,e.lastIndexOf("."))+".drawio":e+".drawio";if("<mxlibrary"==G.substring(0,10)){null==
+this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,n);try{this.loadLibrary(new LocalLibrary(this,G,e)),this.showSidebar()}catch(E){this.handleError(E,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(G,e,n)});if(EditorUi.isVisioFilename(e))this.importVisio(l,mxUtils.bind(this,function(G){this.spinner.stop();B(G)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(G){this.spinner.stop();B(G)}));else if(Graph.fileSupport&&
+(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,e))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(l,mxUtils.bind(this,function(G){4==G.readyState&&(this.spinner.stop(),200<=G.status&&299>=G.status?B(G.responseText):this.handleError({message:mxResources.get(413==G.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(c))/(\.json)$/i.test(e)&&(e=e.substring(0,
e.length-5)+".drawio"),this.convertLucidChart(c,mxUtils.bind(this,function(G){this.spinner.stop();this.openLocalFile(G,e,n)}),mxUtils.bind(this,function(G){this.spinner.stop();this.handleError(G)}));else if("<mxlibrary"==c.substring(0,10)){this.spinner.stop();null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,n);try{this.loadLibrary(new LocalLibrary(this,c,l.name)),this.showSidebar()}catch(G){this.handleError(G,mxResources.get("errorLoadingFile"))}}else if(0==
-c.indexOf("PK"))this.importZipFile(l,mxUtils.bind(this,function(G){this.spinner.stop();A(G)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,e,n)}));else{if("image/png"==l.type.substring(0,9))c=this.extractGraphModelFromPng(c);else if("application/pdf"==l.type){var D=Editor.extractGraphModelFromPdf(c);null!=D&&(p=null,n=!0,c=D)}this.spinner.stop();this.openLocalFile(c,e,n,p,null!=p?l:null,u)}}};EditorUi.prototype.openFiles=function(c,e){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var l=
-0;l<c.length;l++)mxUtils.bind(this,function(n){var p=new FileReader;p.onload=mxUtils.bind(this,function(u){try{this.openFileHandle(u.target.result,n.name,n,e)}catch(A){this.handleError(A)}});p.onerror=mxUtils.bind(this,function(u){this.spinner.stop();this.handleError(u);window.openFile=null});"image"!==n.type.substring(0,5)&&"application/pdf"!==n.type||"image/svg"===n.type.substring(0,9)?p.readAsText(n):p.readAsDataURL(n)})(c[l])};EditorUi.prototype.openLocalFile=function(c,e,l,n,p,u){var A=this.getCurrentFile(),
-D=mxUtils.bind(this,function(){window.openFile=null;if(null==e&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var G=mxUtils.parseXml(c);null!=G&&(this.editor.setGraphXml(G.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,c,e||this.defaultFilename,l,n,p,u))});if(null!=c&&0<c.length)null==A||!A.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=n)?D():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=n)&&null!=A&&A.isModified()?this.confirm(mxResources.get("allChangesLost"),
-null,D,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(c,e),window.geOpenWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=A&&A.isModified()?this.confirm(mxResources.get("allChangesLost"),null,D,mxResources.get("cancel"),mxResources.get("discardChanges")):D()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var e=
-0;e<this.pages.length;e++)this.updatePageRoot(this.pages[e]),this.addBasenamesForCell(this.pages[e].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);e=[];for(var l in c)e.push(l);return e};EditorUi.prototype.addBasenamesForCell=function(c,e){function l(A){if(null!=A){var D=A.lastIndexOf(".");0<D&&(A=A.substring(D+1,A.length));null==e[A]&&(e[A]=!0)}}var n=this.editor.graph,p=n.getCellStyle(c);l(mxStencilRegistry.getBasenameForStencil(p[mxConstants.STYLE_SHAPE]));n.model.isEdge(c)&&
+c.indexOf("PK"))this.importZipFile(l,mxUtils.bind(this,function(G){this.spinner.stop();B(G)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,e,n)}));else{if("image/png"==l.type.substring(0,9))c=this.extractGraphModelFromPng(c);else if("application/pdf"==l.type){var D=Editor.extractGraphModelFromPdf(c);null!=D&&(p=null,n=!0,c=D)}this.spinner.stop();this.openLocalFile(c,e,n,p,null!=p?l:null,u)}}};EditorUi.prototype.openFiles=function(c,e){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var l=
+0;l<c.length;l++)mxUtils.bind(this,function(n){var p=new FileReader;p.onload=mxUtils.bind(this,function(u){try{this.openFileHandle(u.target.result,n.name,n,e)}catch(B){this.handleError(B)}});p.onerror=mxUtils.bind(this,function(u){this.spinner.stop();this.handleError(u);window.openFile=null});"image"!==n.type.substring(0,5)&&"application/pdf"!==n.type||"image/svg"===n.type.substring(0,9)?p.readAsText(n):p.readAsDataURL(n)})(c[l])};EditorUi.prototype.openLocalFile=function(c,e,l,n,p,u){var B=this.getCurrentFile(),
+D=mxUtils.bind(this,function(){window.openFile=null;if(null==e&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var G=mxUtils.parseXml(c);null!=G&&(this.editor.setGraphXml(G.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,c,e||this.defaultFilename,l,n,p,u))});if(null!=c&&0<c.length)null==B||!B.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=n)?D():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=n)&&null!=B&&B.isModified()?this.confirm(mxResources.get("allChangesLost"),
+null,D,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(c,e),window.geOpenWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=B&&B.isModified()?this.confirm(mxResources.get("allChangesLost"),null,D,mxResources.get("cancel"),mxResources.get("discardChanges")):D()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var e=
+0;e<this.pages.length;e++)this.updatePageRoot(this.pages[e]),this.addBasenamesForCell(this.pages[e].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);e=[];for(var l in c)e.push(l);return e};EditorUi.prototype.addBasenamesForCell=function(c,e){function l(B){if(null!=B){var D=B.lastIndexOf(".");0<D&&(B=B.substring(D+1,B.length));null==e[B]&&(e[B]=!0)}}var n=this.editor.graph,p=n.getCellStyle(c);l(mxStencilRegistry.getBasenameForStencil(p[mxConstants.STYLE_SHAPE]));n.model.isEdge(c)&&
(l(mxMarker.getPackageForType(p[mxConstants.STYLE_STARTARROW])),l(mxMarker.getPackageForType(p[mxConstants.STYLE_ENDARROW])));p=n.model.getChildCount(c);for(var u=0;u<p;u++)this.addBasenamesForCell(n.model.getChildAt(c,u),e)};EditorUi.prototype.setGraphEnabled=function(c){this.diagramContainer.style.visibility=c?"":"hidden";this.formatContainer.style.visibility=c?"":"hidden";this.sidebarContainer.style.display=c?"":"none";this.hsplit.style.display=c&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme?
"":"none";this.editor.graph.setEnabled(c);null!=this.tabContainer&&(this.tabContainer.style.visibility=c&&0<parseInt(this.tabContainer.style.height)?"":"hidden");null!=this.ruler&&(this.ruler.hRuler.container.style.visibility=c?"":"hidden",this.ruler.vRuler.container.style.visibility=c?"":"hidden");c||this.hideWindows()};EditorUi.prototype.initializeEmbedMode=function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=
-!1;this.installMessageHandler(mxUtils.bind(this,function(e,l,n,p){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==e||0==e.length)e=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,e,{}));this.mode=App.MODE_EMBED;this.setFileData(e);if(p)try{var u=this.editor.graph;u.setGridEnabled(!1);u.pageVisible=!1;var A=u.model.cells,D;for(D in A){var G=A[D];null!=G&&null!=G.style&&(G.style+=";sketch=1;"+(-1==G.style.indexOf("fontFamily=")||-1<G.style.indexOf("fontFamily=Helvetica;")?
+!1;this.installMessageHandler(mxUtils.bind(this,function(e,l,n,p){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==e||0==e.length)e=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,e,{}));this.mode=App.MODE_EMBED;this.setFileData(e);if(p)try{var u=this.editor.graph;u.setGridEnabled(!1);u.pageVisible=!1;var B=u.model.cells,D;for(D in B){var G=B[D];null!=G&&null!=G.style&&(G.style+=";sketch=1;"+(-1==G.style.indexOf("fontFamily=")||-1<G.style.indexOf("fontFamily=Helvetica;")?
"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(E){console.log(E)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();this.editor.modified=null!=n?n:!1;this.updateUi();window.self!==window.top&&window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=
function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(c,e){null!=c?this.spinner.spin(document.body,mxResources.get("loading"))&&c.getPublicUrl(mxUtils.bind(this,function(l){this.spinner.stop();e(l)})):e(null)};EditorUi.prototype.createLoadMessage=function(c){var e=this.editor.graph;return{event:c,pageVisible:e.pageVisible,
translate:e.view.translate,bounds:e.getGraphBounds(),currentPage:this.getSelectedPageIndex(),scale:e.view.scale,page:e.view.getBackgroundPageBounds()}};EditorUi.prototype.sendEmbeddedSvgExport=function(c){try{var e=this.editor.graph;e.isEditing()&&e.stopEditing(!e.isInvokesStopCellEditing());var l=window.opener||window.parent;if(this.editor.modified){var n=e.background;if(null==n||n==mxConstants.NONE)n=this.embedExportBackground;this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,
@@ -13428,57 +13442,57 @@ null,null,!1),e,null,!0,mxUtils.bind(this,function(p){l.postMessage(JSON.stringi
!1,"1"!=urlParams.embed&&this.fireEvent(new mxEventObject("editInlineStop")))}catch(p){c||this.handleError(p)}};EditorUi.prototype.installMessageHandler=function(c){var e=null,l=!1,n=!1,p=null,u=mxUtils.bind(this,function(G,E){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified))):this.editor.setStatus("")});this.editor.graph.model.addListener(mxEvent.CHANGE,u);mxEvent.addListener(window,"message",mxUtils.bind(this,
function(G){if(G.source==(window.opener||window.parent)){var E=G.data,T=null,O=mxUtils.bind(this,function(aa){if(null!=aa&&"function"===typeof aa.charAt&&"<"!=aa.charAt(0))try{Editor.isPngDataUrl(aa)?aa=Editor.extractGraphModelFromPng(aa):"data:image/svg+xml;base64,"==aa.substring(0,26)?aa=atob(aa.substring(26)):"data:image/svg+xml;utf8,"==aa.substring(0,24)&&(aa=aa.substring(24)),null!=aa&&(""==aa.trim()?aa=null:"%"==aa.charAt(0)?aa=decodeURIComponent(aa):"<"!=aa.charAt(0)&&(aa=Graph.decompress(aa)))}catch(ia){}return aa});
if("json"==urlParams.proto){var S=!1;try{E=JSON.parse(E),EditorUi.debug("EditorUi.installMessageHandler",[this],"evt",[G],"data",[E])}catch(aa){E=null}try{if(null==E)return;if("dialog"==E.action){this.showError(null!=E.titleKey?mxResources.get(E.titleKey):E.title,null!=E.messageKey?mxResources.get(E.messageKey):mxUtils.htmlEntities(E.message),null!=E.buttonKey?mxResources.get(E.buttonKey):E.button);null!=E.modified&&(this.editor.modified=E.modified);return}if("layout"==E.action){this.executeLayouts(this.editor.graph.createLayouts(E.layouts));
-return}if("prompt"==E.action){this.spinner.stop();var k=new FilenameDialog(this,E.defaultValue||"",null!=E.okKey?mxResources.get(E.okKey):E.ok,function(aa){null!=aa?A.postMessage(JSON.stringify({event:"prompt",value:aa,message:E}),"*"):A.postMessage(JSON.stringify({event:"prompt-cancel",message:E}),"*")},null!=E.titleKey?mxResources.get(E.titleKey):E.title,null,null,null,null,function(){A.postMessage(JSON.stringify({event:"prompt-cancel",message:E}),"*")});this.showDialog(k.container,300,80,!0,!1);
-k.init();return}if("draft"==E.action){var v=O(E.xml);this.spinner.stop();k=new DraftDialog(this,mxResources.get("draftFound",[E.name||this.defaultFilename]),v,mxUtils.bind(this,function(){this.hideDialog();A.postMessage(JSON.stringify({event:"draft",result:"edit",message:E}),"*")}),mxUtils.bind(this,function(){this.hideDialog();A.postMessage(JSON.stringify({event:"draft",result:"discard",message:E}),"*")}),E.editKey?mxResources.get(E.editKey):null,E.discardKey?mxResources.get(E.discardKey):null,E.ignore?
-mxUtils.bind(this,function(){this.hideDialog();A.postMessage(JSON.stringify({event:"draft",result:"ignore",message:E}),"*")}):null);this.showDialog(k.container,640,480,!0,!1,mxUtils.bind(this,function(aa){aa&&this.actions.get("exit").funct()}));try{k.init()}catch(aa){A.postMessage(JSON.stringify({event:"draft",error:aa.toString(),message:E}),"*")}return}if("template"==E.action){this.spinner.stop();var z=1==E.enableRecent,B=1==E.enableSearch,H=1==E.enableCustomTemp;k=new NewDialog(this,!1,E.templatesOnly?
-!1:null!=E.callback,mxUtils.bind(this,function(aa,ia,ka,ta){aa=aa||this.emptyDiagramXml;null!=E.callback?A.postMessage(JSON.stringify({event:"template",xml:aa,blank:aa==this.emptyDiagramXml,name:ia,tempUrl:ka,libs:ta,builtIn:!0,message:E}),"*"):(c(aa,G,aa!=this.emptyDiagramXml,E.toSketch),this.editor.modified||this.editor.setStatus(""))}),null,null,null,null,null,null,null,z?mxUtils.bind(this,function(aa){this.remoteInvoke("getRecentDiagrams",[null],null,aa,function(){aa(null,"Network Error!")})}):
-null,B?mxUtils.bind(this,function(aa,ia){this.remoteInvoke("searchDiagrams",[aa,null],null,ia,function(){ia(null,"Network Error!")})}):null,mxUtils.bind(this,function(aa,ia,ka){A.postMessage(JSON.stringify({event:"template",docUrl:aa,info:ia,name:ka}),"*")}),null,null,H?mxUtils.bind(this,function(aa){this.remoteInvoke("getCustomTemplates",null,null,aa,function(){aa({},0)})}):null,1==E.withoutType);this.showDialog(k.container,620,460,!0,!1,mxUtils.bind(this,function(aa){null!=this.sidebar&&this.sidebar.hideTooltip();
-aa&&this.actions.get("exit").funct()}));k.init();return}if("textContent"==E.action){var R=this.getDiagramTextContent();A.postMessage(JSON.stringify({event:"textContent",data:R,message:E}),"*");return}if("status"==E.action){null!=E.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(E.messageKey))):null!=E.message&&this.editor.setStatus(mxUtils.htmlEntities(E.message));null!=E.modified&&(this.editor.modified=E.modified);return}if("spinner"==E.action){var g=null!=E.messageKey?mxResources.get(E.messageKey):
+return}if("prompt"==E.action){this.spinner.stop();var k=new FilenameDialog(this,E.defaultValue||"",null!=E.okKey?mxResources.get(E.okKey):E.ok,function(aa){null!=aa?B.postMessage(JSON.stringify({event:"prompt",value:aa,message:E}),"*"):B.postMessage(JSON.stringify({event:"prompt-cancel",message:E}),"*")},null!=E.titleKey?mxResources.get(E.titleKey):E.title,null,null,null,null,function(){B.postMessage(JSON.stringify({event:"prompt-cancel",message:E}),"*")});this.showDialog(k.container,300,80,!0,!1);
+k.init();return}if("draft"==E.action){var v=O(E.xml);this.spinner.stop();k=new DraftDialog(this,mxResources.get("draftFound",[E.name||this.defaultFilename]),v,mxUtils.bind(this,function(){this.hideDialog();B.postMessage(JSON.stringify({event:"draft",result:"edit",message:E}),"*")}),mxUtils.bind(this,function(){this.hideDialog();B.postMessage(JSON.stringify({event:"draft",result:"discard",message:E}),"*")}),E.editKey?mxResources.get(E.editKey):null,E.discardKey?mxResources.get(E.discardKey):null,E.ignore?
+mxUtils.bind(this,function(){this.hideDialog();B.postMessage(JSON.stringify({event:"draft",result:"ignore",message:E}),"*")}):null);this.showDialog(k.container,640,480,!0,!1,mxUtils.bind(this,function(aa){aa&&this.actions.get("exit").funct()}));try{k.init()}catch(aa){B.postMessage(JSON.stringify({event:"draft",error:aa.toString(),message:E}),"*")}return}if("template"==E.action){this.spinner.stop();var z=1==E.enableRecent,A=1==E.enableSearch,H=1==E.enableCustomTemp;k=new NewDialog(this,!1,E.templatesOnly?
+!1:null!=E.callback,mxUtils.bind(this,function(aa,ia,ka,ta){aa=aa||this.emptyDiagramXml;null!=E.callback?B.postMessage(JSON.stringify({event:"template",xml:aa,blank:aa==this.emptyDiagramXml,name:ia,tempUrl:ka,libs:ta,builtIn:!0,message:E}),"*"):(c(aa,G,aa!=this.emptyDiagramXml,E.toSketch),this.editor.modified||this.editor.setStatus(""))}),null,null,null,null,null,null,null,z?mxUtils.bind(this,function(aa){this.remoteInvoke("getRecentDiagrams",[null],null,aa,function(){aa(null,"Network Error!")})}):
+null,A?mxUtils.bind(this,function(aa,ia){this.remoteInvoke("searchDiagrams",[aa,null],null,ia,function(){ia(null,"Network Error!")})}):null,mxUtils.bind(this,function(aa,ia,ka){B.postMessage(JSON.stringify({event:"template",docUrl:aa,info:ia,name:ka}),"*")}),null,null,H?mxUtils.bind(this,function(aa){this.remoteInvoke("getCustomTemplates",null,null,aa,function(){aa({},0)})}):null,1==E.withoutType);this.showDialog(k.container,620,460,!0,!1,mxUtils.bind(this,function(aa){null!=this.sidebar&&this.sidebar.hideTooltip();
+aa&&this.actions.get("exit").funct()}));k.init();return}if("textContent"==E.action){var R=this.getDiagramTextContent();B.postMessage(JSON.stringify({event:"textContent",data:R,message:E}),"*");return}if("status"==E.action){null!=E.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(E.messageKey))):null!=E.message&&this.editor.setStatus(mxUtils.htmlEntities(E.message));null!=E.modified&&(this.editor.modified=E.modified);return}if("spinner"==E.action){var g=null!=E.messageKey?mxResources.get(E.messageKey):
E.message;null==E.show||E.show?this.spinner.spin(document.body,g):this.spinner.stop();return}if("exit"==E.action){this.actions.get("exit").funct();return}if("viewport"==E.action){null!=E.viewport&&(this.embedViewport=E.viewport,this.editor.graph.refresh(),this.fireEvent(new mxEventObject("embedViewportChanged")));return}if("fullscreenChanged"==E.action){k=null;try{var q=this.diagramContainer.getAttribute("data-scrollState");null!=q&&(this.diagramContainer.removeAttribute("data-scrollState"),k=JSON.parse(q))}catch(aa){}Editor.inlineFullscreen=
E.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=k&&this.restoreScrollState(k);return}if("snapshot"==E.action){this.sendEmbeddedSvgExport(!0);return}if("export"==E.action){if("png"==E.format||"xmlpng"==E.format){if(null==E.spin&&null==E.spinKey||this.spinner.spin(document.body,null!=E.spinKey?mxResources.get(E.spinKey):E.spin)){var F=null!=E.xml?E.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);var J=this.editor.graph,L=mxUtils.bind(this,function(aa,ia){if(E.withSvg)E.withSvg=
-!1,this.getEmbeddedSvg(F,this.editor.graph,null,!0,function(ta){L(aa,ta)},null,null,E.embedImages,this.editor.graph.background,E.scale,E.border,E.shadow,"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var ka=this.createLoadMessage("export");ka.format=E.format;ka.message=E;ka.data=aa;ka.svg=ia;ka.xml=F;A.postMessage(JSON.stringify(ka),"*")}}),Q=mxUtils.bind(this,function(aa){null==aa&&(aa=Editor.blankImage);"xmlpng"==E.format&&(aa=Editor.writeGraphModelToPng(aa,"tEXt","mxfile",encodeURIComponent(F)));
+!1,this.getEmbeddedSvg(F,this.editor.graph,null,!0,function(ta){L(aa,ta)},null,null,E.embedImages,this.editor.graph.background,E.scale,E.border,E.shadow,"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var ka=this.createLoadMessage("export");ka.format=E.format;ka.message=E;ka.data=aa;ka.svg=ia;ka.xml=F;B.postMessage(JSON.stringify(ka),"*")}}),Q=mxUtils.bind(this,function(aa){null==aa&&(aa=Editor.blankImage);"xmlpng"==E.format&&(aa=Editor.writeGraphModelToPng(aa,"tEXt","mxfile",encodeURIComponent(F)));
J!=this.editor.graph&&J.container.parentNode.removeChild(J.container);L(aa)}),U=E.pageId||(null!=this.pages?E.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.isExportToCanvas()){var V=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=U){var aa=J.getGlobalVariable;J=this.createTemporaryGraph(J.getStylesheet());for(var ia,ka=0;ka<this.pages.length;ka++)if(this.pages[ka].getId()==U){ia=this.updatePageRoot(this.pages[ka]);break}null==ia&&(ia=this.currentPage);
J.getGlobalVariable=function(ra){return"page"==ra?ia.getName():"pagenumber"==ra?1:aa.apply(this,arguments)};document.body.appendChild(J.container);J.model.setRoot(ia.root)}if(null!=E.layerIds){var ta=J.model,sa=ta.getChildCells(ta.getRoot()),fa={};for(ka=0;ka<E.layerIds.length;ka++)fa[E.layerIds[ka]]=!0;for(ka=0;ka<sa.length;ka++)ta.setVisible(sa[ka],fa[sa[ka].id]||!1)}ka=null;E.keepTheme&&(ka=Editor.isDarkMode()?"dark":"light");this.editor.exportToCanvas(mxUtils.bind(this,function(ra){Q(ra.toDataURL("image/png"))}),
E.width,null,E.background,mxUtils.bind(this,function(){Q(null)}),null,null,E.scale,E.transparent,E.shadow,null,J,E.border,null,E.grid,ka)});null!=E.xml&&0<E.xml.length&&(l=!0,this.setFileData(F),l=!1);V()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==E.format?"1":"0")+(null!=U?"&pageId="+U:"")+(null!=E.layerIds&&0<E.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:E.layerIds})):"")+(null!=E.scale?"&scale="+E.scale:"")+"&base64=1&xml="+encodeURIComponent(F))).send(mxUtils.bind(this,
function(aa){200<=aa.getStatus()&&299>=aa.getStatus()?L("data:image/png;base64,"+aa.getText()):Q(null)}),mxUtils.bind(this,function(){Q(null)}))}}else if(V=mxUtils.bind(this,function(){var aa=this.createLoadMessage("export");aa.message=E;if("html2"==E.format||"html"==E.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var ia=this.getXmlFileData();aa.xml=mxUtils.getXml(ia);aa.data=this.getFileData(null,null,!0,null,null,null,ia);aa.format=E.format}else if("html"==E.format)ia=this.editor.getGraphXml(),
-aa.data=this.getHtml(ia,this.editor.graph),aa.xml=mxUtils.getXml(ia),aa.format=E.format;else{mxSvgCanvas2D.prototype.foAltText=null;ia=null!=E.background?E.background:this.editor.graph.background;ia==mxConstants.NONE&&(ia=null);aa.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);aa.format="svg";var ka=mxUtils.bind(this,function(sa){this.editor.graph.setEnabled(!0);this.spinner.stop();aa.data=Editor.createSvgDataUri(sa);A.postMessage(JSON.stringify(aa),"*")}),ta="auto";E.keepTheme&&
+aa.data=this.getHtml(ia,this.editor.graph),aa.xml=mxUtils.getXml(ia),aa.format=E.format;else{mxSvgCanvas2D.prototype.foAltText=null;ia=null!=E.background?E.background:this.editor.graph.background;ia==mxConstants.NONE&&(ia=null);aa.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);aa.format="svg";var ka=mxUtils.bind(this,function(sa){this.editor.graph.setEnabled(!0);this.spinner.stop();aa.data=Editor.createSvgDataUri(sa);B.postMessage(JSON.stringify(aa),"*")}),ta="auto";E.keepTheme&&
(ta=Editor.isDarkMode()?"dark":"light");null!=E.theme&&(ta=E.theme);if("xmlsvg"==E.format){if(null==E.spin&&null==E.spinKey||this.spinner.spin(document.body,null!=E.spinKey?mxResources.get(E.spinKey):E.spin)){ta=null;if(this.isAutoDarkMode()||Editor.isDarkMode())ta="auto";null!=E.theme&&(ta=E.theme);this.getEmbeddedSvg(aa.xml,this.editor.graph,null,!0,ka,null,null,E.embedImages,ia,E.scale,E.border,E.shadow,ta)}}else if(null==E.spin&&null==E.spinKey||this.spinner.spin(document.body,null!=E.spinKey?
-mxResources.get(E.spinKey):E.spin))this.editor.graph.setEnabled(!1),ia=this.editor.graph.getSvg(ia,E.scale,E.border,null,null,null,null,null,null,this.editor.graph.shadowVisible||E.shadow,null,ta),(this.editor.graph.shadowVisible||E.shadow)&&this.editor.graph.addSvgShadow(ia),this.embedFonts(ia,mxUtils.bind(this,function(sa){E.embedImages||null==E.embedImages?this.editor.convertImages(sa,mxUtils.bind(this,function(fa){ka(mxUtils.getXml(fa))})):ka(mxUtils.getXml(sa))}));return}A.postMessage(JSON.stringify(aa),
+mxResources.get(E.spinKey):E.spin))this.editor.graph.setEnabled(!1),ia=this.editor.graph.getSvg(ia,E.scale,E.border,null,null,null,null,null,null,this.editor.graph.shadowVisible||E.shadow,null,ta),(this.editor.graph.shadowVisible||E.shadow)&&this.editor.graph.addSvgShadow(ia),this.embedFonts(ia,mxUtils.bind(this,function(sa){E.embedImages||null==E.embedImages?this.editor.convertImages(sa,mxUtils.bind(this,function(fa){ka(mxUtils.getXml(fa))})):ka(mxUtils.getXml(sa))}));return}B.postMessage(JSON.stringify(aa),
"*")}),null!=E.xml&&0<E.xml.length){if(this.editor.graph.mathEnabled){var W=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){W.apply(this,arguments);V()}}l=!0;this.setFileData(E.xml);l=!1;this.editor.graph.mathEnabled||V()}else V();return}if("load"==E.action){S=E.toSketch;n=1==E.autosave;this.hideDialog();null!=E.modified&&null==urlParams.modified&&(urlParams.modified=E.modified);null!=E.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=E.saveAndExit);if("1"==urlParams.saveAndExit||
"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(83,!0,"saveAndExit"),"1"!=urlParams.noSaveBtn&&(this.actions.get("save").shortcut=Editor.ctrlKey+"+Shift+S",this.keyHandler.bindAction(83,!0,"save",!0));null!=E.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=E.noSaveBtn);if(null!=E.rough){var X=Editor.sketchMode;this.doSetSketchMode(E.rough);X!=Editor.sketchMode&&this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=
E.dark&&this.setDarkMode(E.dark);null!=E.border&&(this.embedExportBorder=E.border);null!=E.theme&&(this.embedExportTheme=E.theme);null!=E.background&&(this.embedExportBackground=E.background);null!=E.viewport&&(this.embedViewport=E.viewport);this.embedExitPoint=null;if(null!=E.rect){var Z=this.embedExportBorder;this.diagramContainer.style.left=Math.max(60,E.rect.left)+"px";this.diagramContainer.style.top=Math.max(40,E.rect.top)+"px";this.minInlineWidth=E.minWidth;this.minInlineHeight=E.minHeight;
this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";var Y=E.maxFitScale,ba=E.rect.width+2*Z,ea=E.rect.height+2*Z;T=mxUtils.bind(this,function(){var aa=mxUtils.getDocumentSize();ba=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,ba):ba,aa.width-80);aa=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,ea):ea,aa.height-80);this.diagramContainer.style.width=ba+"px";this.diagramContainer.style.height=
aa+"px";var ia=this.editor.graph;aa=ia.maxFitScale;ia.maxFitScale=Y;ia.fit(2*Z,null,null,null,null,null,ea);this.setPageVisible(!1);if(null!=this.minInlineWidth&&ia.getGraphBounds().width<this.minInlineWidth){var ka=ia.container.scrollTop;this.resetScrollbars();ia.container.scrollTop=ka}ia.maxFitScale=aa;ia.container.scrollTop-=Z;ia.container.scrollLeft-=Z;window.setTimeout(mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("editInlineStart","data",[E]));ia.container.focus();null!=this.formatWindow&&
null!=this.formatWindow.window&&this.formatWindow.window.isVisible()&&(this.formatWindow.window.div.style.top=ia.container.style.top);var ta=ia.getGraphBounds();ia.container.clientWidth>ta.width+2*Z&&(ia.container.scrollLeft=ta.x+(ta.width+Z-ia.container.clientWidth)/2)}),10)})}null!=E.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=E.noExitBtn);null!=E.title&&null!=this.buttonContainer&&(v=this.createStatusDiv(""),mxUtils.write(v,E.title),null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan),
-this.buttonContainer.appendChild(v),this.embedFilenameSpan=v);try{E.libs&&this.sidebar.showEntries(E.libs)}catch(aa){}E=null!=E.xmlpng?this.extractGraphModelFromPng(E.xmlpng):null!=E.descriptor?E.descriptor:E.xml}else{if("merge"==E.action){var ca=this.getCurrentFile();null!=ca&&(v=O(E.xml),null!=v&&""!=v&&ca.mergeFile(new LocalFile(this,v),function(){A.postMessage(JSON.stringify({event:"merge",message:E}),"*")},function(aa){A.postMessage(JSON.stringify({event:"merge",message:E,error:aa}),"*")}))}else"remoteInvokeReady"==
-E.action?this.handleRemoteInvokeReady(A):"remoteInvoke"==E.action?this.handleRemoteInvoke(E,G.origin):"remoteInvokeResponse"==E.action?this.handleRemoteInvokeResponse(E):A.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(E)}),"*");return}}catch(aa){this.handleError(aa)}}var da=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),ma=mxUtils.bind(this,function(aa,ia){l=!0;
+this.buttonContainer.appendChild(v),this.embedFilenameSpan=v);try{E.libs&&this.sidebar.showEntries(E.libs)}catch(aa){}E=null!=E.xmlpng?this.extractGraphModelFromPng(E.xmlpng):null!=E.descriptor?E.descriptor:E.xml}else{if("merge"==E.action){var ca=this.getCurrentFile();null!=ca&&(v=O(E.xml),null!=v&&""!=v&&ca.mergeFile(new LocalFile(this,v),function(){B.postMessage(JSON.stringify({event:"merge",message:E}),"*")},function(aa){B.postMessage(JSON.stringify({event:"merge",message:E,error:aa}),"*")}))}else"remoteInvokeReady"==
+E.action?this.handleRemoteInvokeReady(B):"remoteInvoke"==E.action?this.handleRemoteInvoke(E,G.origin):"remoteInvokeResponse"==E.action?this.handleRemoteInvokeResponse(E):B.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(E)}),"*");return}}catch(aa){this.handleError(aa)}}var da=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),ma=mxUtils.bind(this,function(aa,ia){l=!0;
try{c(aa,ia,null,S)}catch(ka){this.handleError(ka)}l=!1;null!=urlParams.modified&&this.editor.setStatus("");p=da();n&&null==e&&(e=mxUtils.bind(this,function(ka,ta){ka=da();ka==p||l||(ta=this.createLoadMessage("autosave"),ta.xml=ka,(window.opener||window.parent).postMessage(JSON.stringify(ta),"*"));p=ka}),this.editor.graph.model.addListener(mxEvent.CHANGE,e),this.editor.graph.addListener("gridSizeChanged",e),this.editor.graph.addListener("shadowVisibleChanged",e),this.addListener("pageFormatChanged",
-e),this.addListener("pageScaleChanged",e),this.addListener("backgroundColorChanged",e),this.addListener("backgroundImageChanged",e),this.addListener("foldingEnabledChanged",e),this.addListener("mathEnabledChanged",e),this.addListener("gridEnabledChanged",e),this.addListener("guidesEnabledChanged",e),this.addListener("pageViewChanged",e));if("1"==urlParams.returnbounds||"json"==urlParams.proto)ia=this.createLoadMessage("load"),ia.xml=aa,A.postMessage(JSON.stringify(ia),"*");null!=T&&T()});null!=E&&
+e),this.addListener("pageScaleChanged",e),this.addListener("backgroundColorChanged",e),this.addListener("backgroundImageChanged",e),this.addListener("foldingEnabledChanged",e),this.addListener("mathEnabledChanged",e),this.addListener("gridEnabledChanged",e),this.addListener("guidesEnabledChanged",e),this.addListener("pageViewChanged",e));if("1"==urlParams.returnbounds||"json"==urlParams.proto)ia=this.createLoadMessage("load"),ia.xml=aa,B.postMessage(JSON.stringify(ia),"*");null!=T&&T()});null!=E&&
"function"===typeof E.substring&&"data:application/vnd.visio;base64,"==E.substring(0,34)?(O="0M8R4KGxGuE"==E.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(E.substring(E.indexOf(",")+1)),function(aa){ma(aa,G)},mxUtils.bind(this,function(aa){this.handleError(aa)}),O)):null!=E&&"function"===typeof E.substring&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(E,"")?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(E,
mxUtils.bind(this,function(aa){4==aa.readyState&&(200<=aa.status&&299>=aa.status&&"<mxGraphModel"==aa.responseText.substring(0,13)?ma(aa.responseText,G):this.handleError({message:413==aa.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")}))}),""):null!=E&&"function"===typeof E.substring&&this.isLucidChartData(E)?this.convertLucidChart(E,mxUtils.bind(this,function(aa){ma(aa)}),mxUtils.bind(this,function(aa){this.handleError(aa)})):null==E||"object"!==typeof E||null==E.format||
-null==E.data&&null==E.url?(E=O(E),ma(E,G)):this.loadDescriptor(E,mxUtils.bind(this,function(aa){ma(da(),G)}),mxUtils.bind(this,function(aa){this.handleError(aa,mxResources.get("errorLoadingFile"))}))}}));var A=window.opener||window.parent;u="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";A.postMessage(u,"*");if("json"==urlParams.proto){var D=this.editor.graph.openLink;this.editor.graph.openLink=function(G,E,T){D.apply(this,arguments);A.postMessage(JSON.stringify({event:"openLink",
+null==E.data&&null==E.url?(E=O(E),ma(E,G)):this.loadDescriptor(E,mxUtils.bind(this,function(aa){ma(da(),G)}),mxUtils.bind(this,function(aa){this.handleError(aa,mxResources.get("errorLoadingFile"))}))}}));var B=window.opener||window.parent;u="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";B.postMessage(u,"*");if("json"==urlParams.proto){var D=this.editor.graph.openLink;this.editor.graph.openLink=function(G,E,T){D.apply(this,arguments);B.postMessage(JSON.stringify({event:"openLink",
href:G,target:E,allowOpener:T}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,e,l,n){var p="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,u=document.createElement("button");u.setAttribute("title",c+(null!=l?" ("+l+")":""));u.style.marginLeft="6px";mxUtils.write(u,c);p?(u.className=n?"gePrimaryBtn":"",u.style.marginLeft="8px",u.style.padding="6px"):u.className="geBigButton"+(n?"":" geBigStandardButton");mxEvent.addListener(u,"click",e);return u};
EditorUi.prototype.addEmbedButtons=function(){var c=document.createElement("div");c.style.display="inline-flex";c.style.alignItems="center";c.style.marginLeft="auto";"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme&&(c.style.marginRight="66px",c.style["float"]="right","atlas"==Editor.currentTheme&&(c.style.marginTop="2px"));document.createElement("button").className="geBigButton";"1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&c.appendChild(this.createEmbedButton("1"==
urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S",!0)):(c.appendChild(this.createEmbedButton(mxResources.get("save"),mxUtils.bind(this,function(){this.actions.get("save").funct(!1)}),"1"==urlParams.saveAndExit?Editor.ctrlKey+"+Shift+S":Editor.ctrlKey+"+S",!0)),"1"==urlParams.saveAndExit&&c.appendChild(this.createEmbedButton(mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S")));
"1"!=urlParams.noExitBtn&&c.appendChild(this.createEmbedButton("1"==urlParams.publishClose?mxResources.get("close"):mxResources.get("exit"),this.actions.get("exit").funct));"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||null==this.buttonContainer?null!=this.menubar&&(this.toolbar.container.appendChild(c),this.toolbar.staticElements.push(c)):(this.buttonContainer.appendChild(c),this.editor.fireEvent(new mxEventObject("statusChanged")))};EditorUi.prototype.showImportCsvDialog=
function(){null==this.importCsvDialog&&(this.importCsvDialog=new TextareaDialog(this,mxResources.get("csv")+":",Editor.defaultCsvValue,mxUtils.bind(this,function(c){this.importCsv(c)}),null,null,620,430,null,!0,!0,mxResources.get("import"),this.isOffline()?null:"https://drawio-app.com/import-from-csv-to-drawio/"));this.showDialog(this.importCsvDialog.container,640,520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(c){this.loadOrgChartLayouts(mxUtils.bind(this,
function(){var e=new TextareaDialog(this,mxResources.get("layout"),c,mxUtils.bind(this,function(l){if(0<l.length)try{var n=JSON.parse(l);this.executeLayouts(this.editor.graph.createLayouts(n));this.customLayoutConfig=n;this.hideDialog()}catch(p){this.handleError(p)}}),null,null,null,null,mxUtils.bind(this,function(l,n){var p=mxUtils.button(mxResources.get("copy"),mxUtils.bind(this,function(){try{var u=n.value;n.value=JSON.stringify(JSON.parse(u));n.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?
-n.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));n.value=u}catch(A){this.handleError(A)}}));p.setAttribute("title","copy");p.className="geBtn";l.appendChild(p)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(e.container,620,460,!0,!0);e.init()}))};EditorUi.prototype.loadOrgChartLayouts=function(c){this.createTimeout(null,mxUtils.bind(this,function(e){var l=mxUtils.bind(this,function(){this.loadingOrgChart=
+n.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));n.value=u}catch(B){this.handleError(B)}}));p.setAttribute("title","copy");p.className="geBtn";l.appendChild(p)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(e.container,620,460,!0,!0);e.init()}))};EditorUi.prototype.loadOrgChartLayouts=function(c){this.createTimeout(null,mxUtils.bind(this,function(e){var l=mxUtils.bind(this,function(){this.loadingOrgChart=
!1;e.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),c())}),n=mxUtils.bind(this,function(p){this.loadingOrgChart=!1;e.clear()&&this.handleError(p)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?l():this.spinner.spin(document.body,mxResources.get("loading"))&&(this.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",
-function(){mxscript("js/orgchart/mxOrgChartLayout.js",l,null,null,null,n)},null,null,null,n)},null,null,null,n)},null,null,null,n):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",l,null,null,null,n))}),onerror)};EditorUi.prototype.importCsv=function(c,e){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,e)}))};EditorUi.prototype.doImportCsv=function(c,e){try{var l=c.split("\n"),n=[],p=[],u=[],A={};if(0<l.length){var D={},G=this.editor.graph,E=null,T=null,O=null,S=null,
-k=null,v=null,z=null,B="whiteSpace=wrap;html=1;",H=null,R=null,g="",q="auto",F="auto",J=!1,L=null,Q=null,U=40,V=40,W=100,X=0,Z=mxUtils.bind(this,function(){null!=e?e(Ca):(G.setSelectionCells(Ca),G.scrollCellToVisible(G.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),Y=G.getFreeInsertPoint(),ba=Y.x,ea=Y.y;Y=ea;var ca=null,da="auto";R=null;for(var ma=[],aa=null,ia=null,ka=0;ka<l.length&&"#"==l[ka].charAt(0);){c=l[ka].replace(/\r$/,
-"");for(ka++;ka<l.length&&"\\"==c.charAt(c.length-1)&&"#"==l[ka].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(l[ka].substring(1)),ka++;if("#"!=c.charAt(1)){var ta=c.indexOf(":");if(0<ta){var sa=mxUtils.trim(c.substring(1,ta)),fa=mxUtils.trim(c.substring(ta+1));"label"==sa?ca=Graph.sanitizeHtml(fa):"labelname"==sa&&0<fa.length&&"-"!=fa?k=fa:"labels"==sa&&0<fa.length&&"-"!=fa?z=JSON.parse(fa):"style"==sa?T=fa:"parentstyle"==sa?B=fa:"unknownStyle"==sa&&"-"!=fa?v=fa:"stylename"==sa&&0<fa.length&&
+function(){mxscript("js/orgchart/mxOrgChartLayout.js",l,null,null,null,n)},null,null,null,n)},null,null,null,n)},null,null,null,n):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",l,null,null,null,n))}),onerror)};EditorUi.prototype.importCsv=function(c,e){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,e)}))};EditorUi.prototype.doImportCsv=function(c,e){try{var l=c.split("\n"),n=[],p=[],u=[],B={};if(0<l.length){var D={},G=this.editor.graph,E=null,T=null,O=null,S=null,
+k=null,v=null,z=null,A="whiteSpace=wrap;html=1;",H=null,R=null,g="",q="auto",F="auto",J=!1,L=null,Q=null,U=40,V=40,W=100,X=0,Z=mxUtils.bind(this,function(){null!=e?e(Ca):(G.setSelectionCells(Ca),G.scrollCellToVisible(G.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),Y=G.getFreeInsertPoint(),ba=Y.x,ea=Y.y;Y=ea;var ca=null,da="auto";R=null;for(var ma=[],aa=null,ia=null,ka=0;ka<l.length&&"#"==l[ka].charAt(0);){c=l[ka].replace(/\r$/,
+"");for(ka++;ka<l.length&&"\\"==c.charAt(c.length-1)&&"#"==l[ka].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(l[ka].substring(1)),ka++;if("#"!=c.charAt(1)){var ta=c.indexOf(":");if(0<ta){var sa=mxUtils.trim(c.substring(1,ta)),fa=mxUtils.trim(c.substring(ta+1));"label"==sa?ca=Graph.sanitizeHtml(fa):"labelname"==sa&&0<fa.length&&"-"!=fa?k=fa:"labels"==sa&&0<fa.length&&"-"!=fa?z=JSON.parse(fa):"style"==sa?T=fa:"parentstyle"==sa?A=fa:"unknownStyle"==sa&&"-"!=fa?v=fa:"stylename"==sa&&0<fa.length&&
"-"!=fa?S=fa:"styles"==sa&&0<fa.length&&"-"!=fa?O=JSON.parse(fa):"vars"==sa&&0<fa.length&&"-"!=fa?E=JSON.parse(fa):"identity"==sa&&0<fa.length&&"-"!=fa?H=fa:"parent"==sa&&0<fa.length&&"-"!=fa?R=fa:"namespace"==sa&&0<fa.length&&"-"!=fa?g=fa:"width"==sa?q=fa:"height"==sa?F=fa:"collapsed"==sa&&"-"!=fa?J="true"==fa:"left"==sa&&0<fa.length?L=fa:"top"==sa&&0<fa.length?Q=fa:"ignore"==sa?ia=fa.split(","):"connect"==sa?ma.push(JSON.parse(fa)):"link"==sa?aa=fa:"padding"==sa?X=parseFloat(fa):"edgespacing"==
sa?U=parseFloat(fa):"nodespacing"==sa?V=parseFloat(fa):"levelspacing"==sa?W=parseFloat(fa):"layout"==sa&&(da=fa)}}}if(null==l[ka])throw Error(mxResources.get("invalidOrMissingFile"));var ra=this.editor.csvToArray(l[ka].replace(/\r$/,""));ta=c=null;sa=[];for(fa=0;fa<ra.length;fa++)H==ra[fa]&&(c=fa),R==ra[fa]&&(ta=fa),sa.push(mxUtils.trim(ra[fa]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==ca&&(ca="%"+sa[0]+"%");if(null!=ma)for(var ua=0;ua<ma.length;ua++)null==D[ma[ua].to]&&
(D[ma[ua].to]={});H=[];for(fa=ka+1;fa<l.length;fa++){var za=this.editor.csvToArray(l[fa].replace(/\r$/,""));if(null==za){var va=40<l[fa].length?l[fa].substring(0,40)+"...":l[fa];throw Error(va+" ("+fa+"):\n"+mxResources.get("containsValidationErrors"));}0<za.length&&H.push(za)}G.model.beginUpdate();try{for(fa=0;fa<H.length;fa++){za=H[fa];var ha=null,pa=null!=c?g+za[c]:null;l=!1;null!=pa&&(ha=G.model.getCell(pa),l=null==ha||0<=mxUtils.indexOf(n,ha));var Aa=new mxCell(ca,new mxGeometry(ba,Y,0,0),T||
"whiteSpace=wrap;html=1;");Aa.collapsed=J;Aa.vertex=!0;Aa.id=pa;null==ha||l||G.model.setCollapsed(ha,J);for(var na=0;na<za.length;na++)G.setAttributeForCell(Aa,sa[na],za[na]),null==ha||l||G.setAttributeForCell(ha,sa[na],za[na]);if(null!=k&&null!=z){var Ha=z[Aa.getAttribute(k)];null!=Ha&&(G.labelChanged(Aa,Ha),null==ha||l||G.cellLabelChanged(ha,Ha))}if(null!=S&&null!=O){var wa=O[Aa.getAttribute(S)];null!=wa&&(Aa.style=wa)}G.setAttributeForCell(Aa,"placeholders","1");Aa.style=G.replacePlaceholders(Aa,
Aa.style,E);null==ha||l?G.fireEvent(new mxEventObject("cellsInserted","cells",[Aa])):(G.model.setStyle(ha,Aa.style),0>mxUtils.indexOf(u,ha)&&u.push(ha),G.fireEvent(new mxEventObject("cellsInserted","cells",[ha])));l=null!=ha;ha=Aa;if(!l)for(ua=0;ua<ma.length;ua++)D[ma[ua].to][ha.getAttribute(ma[ua].to)]=ha;null!=aa&&"link"!=aa&&(G.setLinkForCell(ha,ha.getAttribute(aa)),G.setAttributeForCell(ha,aa,null));var Da=this.editor.graph.getPreferredSizeForCell(ha);R=null!=ta?G.model.getCell(g+za[ta]):null;
if(ha.vertex){va=null!=R?0:ba;ka=null!=R?0:ea;null!=L&&null!=ha.getAttribute(L)&&(ha.geometry.x=va+parseFloat(ha.getAttribute(L)));null!=Q&&null!=ha.getAttribute(Q)&&(ha.geometry.y=ka+parseFloat(ha.getAttribute(Q)));var Ea="@"==q.charAt(0)?ha.getAttribute(q.substring(1)):null;ha.geometry.width=null!=Ea&&"auto"!=Ea?parseFloat(ha.getAttribute(q.substring(1))):"auto"==q||"auto"==Ea?Da.width+X:parseFloat(q);var Na="@"==F.charAt(0)?ha.getAttribute(F.substring(1)):null;ha.geometry.height=null!=Na&&"auto"!=
-Na&&"width"!=F?parseFloat(Na):"auto"==F||"auto"==Na?Da.height+X:"width"==F?ha.geometry.width:parseFloat(F);Y+=ha.geometry.height+V}l?(null==A[pa]&&(A[pa]=[]),A[pa].push(ha)):(n.push(ha),null!=R?(R.style=G.replacePlaceholders(R,B,E),G.addCell(ha,R),p.push(R)):u.push(G.addCell(ha)))}for(fa=0;fa<p.length;fa++)Ea="@"==q.charAt(0)?p[fa].getAttribute(q.substring(1)):null,Na="@"==F.charAt(0)?p[fa].getAttribute(F.substring(1)):null,"auto"!=q&&"auto"!=Ea||"auto"!=F&&"auto"!=Na||G.updateGroupBounds([p[fa]],
+Na&&"width"!=F?parseFloat(Na):"auto"==F||"auto"==Na?Da.height+X:"width"==F?ha.geometry.width:parseFloat(F);Y+=ha.geometry.height+V}l?(null==B[pa]&&(B[pa]=[]),B[pa].push(ha)):(n.push(ha),null!=R?(R.style=G.replacePlaceholders(R,A,E),G.addCell(ha,R),p.push(R)):u.push(G.addCell(ha)))}for(fa=0;fa<p.length;fa++)Ea="@"==q.charAt(0)?p[fa].getAttribute(q.substring(1)):null,Na="@"==F.charAt(0)?p[fa].getAttribute(F.substring(1)):null,"auto"!=q&&"auto"!=Ea||"auto"!=F&&"auto"!=Na||G.updateGroupBounds([p[fa]],
X,!0);var Ba=u.slice(),Ca=u.slice();for(ua=0;ua<ma.length;ua++){var Ia=ma[ua];for(fa=0;fa<n.length;fa++){ha=n[fa];var Va=mxUtils.bind(this,function(qa,oa,la){var ya=oa.getAttribute(la.from);if(null!=ya&&""!=ya){ya=ya.split(",");for(var Ja=0;Ja<ya.length;Ja++){var Fa=D[la.to][ya[Ja]];if(null==Fa&&null!=v){Fa=new mxCell(ya[Ja],new mxGeometry(ba,ea,0,0),v);Fa.style=G.replacePlaceholders(oa,Fa.style,E);var La=this.editor.graph.getPreferredSizeForCell(Fa);Fa.geometry.width=La.width+X;Fa.geometry.height=
La.height+X;D[la.to][ya[Ja]]=Fa;Fa.vertex=!0;Fa.id=ya[Ja];u.push(G.addCell(Fa))}if(null!=Fa){La=la.label;null!=la.fromlabel&&(La=(oa.getAttribute(la.fromlabel)||"")+(La||""));null!=la.sourcelabel&&(La=G.replacePlaceholders(oa,la.sourcelabel,E)+(La||""));null!=la.tolabel&&(La=(La||"")+(Fa.getAttribute(la.tolabel)||""));null!=la.targetlabel&&(La=(La||"")+G.replacePlaceholders(Fa,la.targetlabel,E));var Pa="target"==la.placeholders==!la.invert?Fa:qa;Pa=null!=la.style?G.replacePlaceholders(Pa,la.style,
E):G.createCurrentEdgeStyle();La=G.insertEdge(null,null,La||"",la.invert?Fa:qa,la.invert?qa:Fa,Pa);if(null!=la.labels)for(Pa=0;Pa<la.labels.length;Pa++){var Ka=la.labels[Pa],Ra=new mxCell(Ka.label||Pa,new mxGeometry(null!=Ka.x?Ka.x:0,null!=Ka.y?Ka.y:0,0,0),"resizable=0;html=1;");Ra.vertex=!0;Ra.connectable=!1;Ra.geometry.relative=!0;null!=Ka.placeholders&&(Ra.value=G.replacePlaceholders("target"==Ka.placeholders==!la.invert?Fa:qa,Ra.value,E));if(null!=Ka.dx||null!=Ka.dy)Ra.geometry.offset=new mxPoint(null!=
-Ka.dx?Ka.dx:0,null!=Ka.dy?Ka.dy:0);La.insert(Ra)}if(null!=la.data)for(var Ma in la.data)G.setAttributeForCell(La,Ma,la.data[Ma]);Ca.push(La);mxUtils.remove(la.invert?qa:Fa,Ba)}}}});Va(ha,ha,Ia);if(null!=A[ha.id])for(na=0;na<A[ha.id].length;na++)Va(ha,A[ha.id][na],Ia)}}if(null!=ia)for(fa=0;fa<n.length;fa++)for(ha=n[fa],na=0;na<ia.length;na++)G.setAttributeForCell(ha,mxUtils.trim(ia[na]),null);if(0<u.length){var Ta=new mxParallelEdgeLayout(G);Ta.spacing=U;Ta.checkOverlap=!0;var Xa=function(){0<Ta.spacing&&
+Ka.dx?Ka.dx:0,null!=Ka.dy?Ka.dy:0);La.insert(Ra)}if(null!=la.data)for(var Ma in la.data)G.setAttributeForCell(La,Ma,la.data[Ma]);Ca.push(La);mxUtils.remove(la.invert?qa:Fa,Ba)}}}});Va(ha,ha,Ia);if(null!=B[ha.id])for(na=0;na<B[ha.id].length;na++)Va(ha,B[ha.id][na],Ia)}}if(null!=ia)for(fa=0;fa<n.length;fa++)for(ha=n[fa],na=0;na<ia.length;na++)G.setAttributeForCell(ha,mxUtils.trim(ia[na]),null);if(0<u.length){var Ta=new mxParallelEdgeLayout(G);Ta.spacing=U;Ta.checkOverlap=!0;var Xa=function(){0<Ta.spacing&&
Ta.execute(G.getDefaultParent());for(var qa=0;qa<u.length;qa++){var oa=G.getCellGeometry(u[qa]);oa.x=Math.round(G.snap(oa.x));oa.y=Math.round(G.snap(oa.y));"auto"==q&&(oa.width=Math.round(G.snap(oa.width)));"auto"==F&&(oa.height=Math.round(G.snap(oa.height)))}};if("["==da.charAt(0)){var jb=Z;G.view.validate();this.executeLayouts(G.createLayouts(JSON.parse(da)),function(){Xa();jb()});Z=null}else if("circle"==da){var Sa=new mxCircleLayout(G);Sa.disableEdgeStyle=!1;Sa.resetEdges=!1;var bb=Sa.isVertexIgnored;
Sa.isVertexIgnored=function(qa){return bb.apply(this,arguments)||0>mxUtils.indexOf(u,qa)};this.executeLayout(function(){Sa.execute(G.getDefaultParent());Xa()},!0,Z);Z=null}else if("horizontaltree"==da||"verticaltree"==da||"auto"==da&&Ca.length==2*u.length-1&&1==Ba.length){G.view.validate();var Wa=new mxCompactTreeLayout(G,"horizontaltree"==da);Wa.levelDistance=V;Wa.edgeRouting=!1;Wa.resetEdges=!1;Wa.sortEdges=!0;this.executeLayout(function(){Wa.execute(G.getDefaultParent(),0<Ba.length?Ba[0]:null)},
!0,Z);Z=null}else if("horizontalflow"==da||"verticalflow"==da||"auto"==da&&1==Ba.length){G.view.validate();var cb=new mxHierarchicalLayout(G,"horizontalflow"==da?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);cb.intraCellSpacing=V;cb.parallelEdgeSpacing=U;cb.interRankCellSpacing=W;cb.disableEdgeStyle=!1;this.executeLayout(function(){cb.execute(G.getDefaultParent(),Ca);G.moveCells(Ca,ba,ea)},!0,Z);Z=null}else if("orgchart"==da){G.view.validate();var hb=new mxOrgChartLayout(G,2,W,V),db=hb.isVertexIgnored;
@@ -13495,57 +13509,57 @@ this.actions.get("undo").setEnabled(this.canUndo()&&p);this.actions.get("redo").
l.image&&0<l.cells.length);this.actions.get("pageSetup").setEnabled(n);this.actions.get("shadowVisible").setEnabled(n);this.actions.get("connectionArrows").setEnabled(n);this.actions.get("connectionPoints").setEnabled(n);this.actions.get("copyStyle").setEnabled(n&&!c.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(null!=this.copiedStyle&&n&&0<l.cells.length);this.actions.get("editGeometry").setEnabled(0<l.vertices.length);this.actions.get("createShape").setEnabled(n);this.actions.get("createRevision").setEnabled(n);
this.actions.get("moveToFolder").setEnabled(null!=e);this.actions.get("makeCopy").setEnabled(null!=e&&!e.isRestricted());this.actions.get("editDiagram").setEnabled(n&&(null==e||!e.isRestricted()));this.actions.get("publishLink").setEnabled(null!=e&&!e.isRestricted());this.actions.get("removeFormat").setEnabled(c.isEnabled()&&!c.isSelectionEmpty()&&!c.isEditing());this.actions.get("tags").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("layers").setEnabled("hidden"!=this.diagramContainer.style.visibility);
this.actions.get("outline").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("rename").setEnabled(null!=e&&e.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=e);this.actions.get("properties").setEnabled(null!=e);this.menus.get("publish").setEnabled(null!=e&&!e.isRestricted());e=this.actions.get("findReplace");e.setEnabled("hidden"!=this.diagramContainer.style.visibility);e.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):
-"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(n&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};var I=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);I.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,e,l,n,p,u,A,D){var G=c.editor.graph;
+"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(n&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};var I=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);I.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,e,l,n,p,u,B,D){var G=c.editor.graph;
if("xml"==l)c.hideDialog(),c.saveData(e,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==l)c.hideDialog(),c.saveData(e,"svg",mxUtils.getXml(G.getSvg(n,p,u)),"image/svg+xml");else{var E=c.getFileData(!0,null,null,null,null,!0),T=G.getGraphBounds(),O=Math.floor(T.width*p/G.view.scale),S=Math.floor(T.height*p/G.view.scale);if(E.length<=MAX_REQUEST_SIZE&&O*S<MAX_AREA)if(c.hideDialog(),"png"!=l&&"jpg"!=l&&"jpeg"!=l||!c.isExportToCanvas()){var k={globalVars:G.getExportVariables()};
-D&&(k.grid={size:G.gridSize,steps:G.view.gridSteps,color:G.view.gridColor});c.saveRequest(e,l,function(v,z){return new mxXmlRequest(EXPORT_URL,"format="+l+"&base64="+(z||"0")+(null!=v?"&filename="+encodeURIComponent(v):"")+"&extras="+encodeURIComponent(JSON.stringify(k))+(0<A?"&dpi="+A:"")+"&bg="+(null!=n?n:"none")+"&w="+O+"&h="+S+"&border="+u+"&xml="+encodeURIComponent(E))})}else"png"==l?c.exportImage(p,null==n||"none"==n,!0,!1,!1,u,!0,!1,null,D,A):c.exportImage(p,!1,!0,!1,!1,u,!0,!1,"jpeg",D);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});
+D&&(k.grid={size:G.gridSize,steps:G.view.gridSteps,color:G.view.gridColor});c.saveRequest(e,l,function(v,z){return new mxXmlRequest(EXPORT_URL,"format="+l+"&base64="+(z||"0")+(null!=v?"&filename="+encodeURIComponent(v):"")+"&extras="+encodeURIComponent(JSON.stringify(k))+(0<B?"&dpi="+B:"")+"&bg="+(null!=n?n:"none")+"&w="+O+"&h="+S+"&border="+u+"&xml="+encodeURIComponent(E))})}else"png"==l?c.exportImage(p,null==n||"none"==n,!0,!1,!1,u,!0,!1,null,D,B):c.exportImage(p,!1,!0,!1,!1,u,!0,!1,"jpeg",D);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});
EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,e="";if(null!=this.pages)for(var l=0;l<this.pages.length;l++){var n=c;this.currentPage!=this.pages[l]&&(n=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[l]),n.model.setRoot(this.pages[l].root));e+=this.pages[l].getName()+" "+n.getIndexableText()+" "}else e=c.getIndexableText();this.editor.graph.setEnabled(!0);return e};EditorUi.prototype.showRemotelyStoredLibrary=
-function(c){var e={},l=document.createElement("div");l.style.whiteSpace="nowrap";var n=document.createElement("h3");mxUtils.write(n,mxUtils.htmlEntities(c));n.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";l.appendChild(n);var p=document.createElement("div");p.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";p.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var u={};try{var A=mxSettings.getCustomLibraries();
-for(c=0;c<A.length;c++){var D=A[c];if("R"==D.substring(0,1)){var G=JSON.parse(decodeURIComponent(D.substring(1)));u[G[0]]={id:G[0],title:G[1],downloadUrl:G[2]}}}}catch(E){}this.remoteInvoke("getCustomLibraries",null,null,function(E){p.innerText="";if(0==E.length)p.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var T=0;T<E.length;T++){var O=E[T];u[O.id]&&(e[O.id]=O);var S=this.addCheckbox(p,O.title,u[O.id]);
+function(c){var e={},l=document.createElement("div");l.style.whiteSpace="nowrap";var n=document.createElement("h3");mxUtils.write(n,mxUtils.htmlEntities(c));n.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";l.appendChild(n);var p=document.createElement("div");p.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";p.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var u={};try{var B=mxSettings.getCustomLibraries();
+for(c=0;c<B.length;c++){var D=B[c];if("R"==D.substring(0,1)){var G=JSON.parse(decodeURIComponent(D.substring(1)));u[G[0]]={id:G[0],title:G[1],downloadUrl:G[2]}}}}catch(E){}this.remoteInvoke("getCustomLibraries",null,null,function(E){p.innerText="";if(0==E.length)p.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var T=0;T<E.length;T++){var O=E[T];u[O.id]&&(e[O.id]=O);var S=this.addCheckbox(p,O.title,u[O.id]);
(function(k,v){mxEvent.addListener(v,"change",function(){this.checked?e[k.id]=k:delete e[k.id]})})(O,S)}},mxUtils.bind(this,function(E){p.innerText="";var T=document.createElement("div");T.style.padding="8px";T.style.textAlign="center";mxUtils.write(T,mxResources.get("error")+": ");mxUtils.write(T,null!=E&&null!=E.message?E.message:mxResources.get("unknownError"));p.appendChild(T)}));l.appendChild(p);l=new CustomDialog(this,l,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));
var E=0,T;for(T in e)null==u[T]&&(E++,mxUtils.bind(this,function(O){this.remoteInvoke("getFileContent",[O.downloadUrl],null,mxUtils.bind(this,function(S){E--;0==E&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,S,O)),this.showSidebar()}catch(k){this.handleError(k,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){E--;0==E&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(e[T]));for(T in u)e[T]||this.closeLibrary(new RemoteLibrary(this,
null,u[T]));0==E&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");this.showDialog(l.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=
[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(c){this.remoteWin=c;for(var e=0;e<this.remoteInvokeQueue.length;e++)c.postMessage(this.remoteInvokeQueue[e],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var e=c.msgMarkers,l=this.remoteInvokeCallbacks[e.callbackId];if(null==l)throw Error("No callback for "+(null!=e?e.callbackId:"null"));c.error?l.error&&l.error(c.error.errResp):l.callback&&l.callback.apply(this,
-c.resp);this.remoteInvokeCallbacks[e.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,e,l,n,p){var u=!0,A=window.setTimeout(mxUtils.bind(this,function(){u=!1;p({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),D=mxUtils.bind(this,function(){window.clearTimeout(A);u&&n.apply(this,arguments)}),G=mxUtils.bind(this,function(){window.clearTimeout(A);u&&p.apply(this,arguments)});l=l||{};l.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:D,
+c.resp);this.remoteInvokeCallbacks[e.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,e,l,n,p){var u=!0,B=window.setTimeout(mxUtils.bind(this,function(){u=!1;p({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),D=mxUtils.bind(this,function(){window.clearTimeout(B);u&&n.apply(this,arguments)}),G=mxUtils.bind(this,function(){window.clearTimeout(B);u&&p.apply(this,arguments)});l=l||{};l.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:D,
error:G});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:e,msgMarkers:l});null!=this.remoteWin?this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,e){var l=mxUtils.bind(this,function(E,T){var O={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=T?O.error={errResp:T}:null!=E&&(O.resp=E);this.remoteWin.postMessage(JSON.stringify(O),"*")});try{var n=c.funtionName,p=this.remoteInvokableFns[n];if(null!=p&&"function"===
-typeof this[n]){if(p.allowedDomains){for(var u=!1,A=0;A<p.allowedDomains.length;A++)if(e=="https://"+p.allowedDomains[A]){u=!0;break}if(!u){l(null,"Invalid Call: "+n+" is not allowed.");return}}var D=c.functionArgs;Array.isArray(D)||(D=[]);if(p.isAsync)D.push(function(){l(Array.prototype.slice.apply(arguments))}),D.push(function(E){l(null,E||"Unkown Error")}),this[n].apply(this,D);else{var G=this[n].apply(this,D);l([G])}}else l(null,"Invalid Call: "+n+" is not found.")}catch(E){l(null,"Invalid Call: An error occurred, "+
-E.message)}};EditorUi.prototype.openDatabase=function(c,e){if(null==this.database){var l=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=l)try{var n=l.open("database",2);n.onupgradeneeded=function(p){try{var u=n.result;1>p.oldVersion&&u.createObjectStore("objects",{keyPath:"key"});2>p.oldVersion&&(u.createObjectStore("files",{keyPath:"title"}),u.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(A){null!=e&&e(A)}};n.onsuccess=
-mxUtils.bind(this,function(p){try{var u=n.result;this.database=u;EditorUi.migrateStorageFiles&&(StorageFile.migrate(u),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(A){if(!A||"1"==urlParams.forceMigration){var D=document.createElement("iframe");D.style.display="none";D.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);
-document.body.appendChild(D);var G=!0,E=!1,T,O=0,S=mxUtils.bind(this,function(){E=!0;this.setDatabaseItem(".drawioMigrated3",!0);D.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),k=mxUtils.bind(this,function(){O++;v()}),v=mxUtils.bind(this,function(){try{if(O>=T.length)S();else{var B=T[O];StorageFile.getFileContent(this,B,mxUtils.bind(this,function(H){null==H||".scratchpad"==B&&H==this.emptyLibraryXml?D.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",
-funtionName:"getLocalStorageFile",functionArgs:[B]}),"*"):k()}),k)}}catch(H){console.log(H)}}),z=mxUtils.bind(this,function(B){try{this.setDatabaseItem(null,[{title:B.title,size:B.data.length,lastModified:Date.now(),type:B.isLib?"L":"F"},{title:B.title,data:B.data}],k,k,["filesInfo","files"])}catch(H){console.log(H)}});A=mxUtils.bind(this,function(B){try{if(B.source==D.contentWindow){var H={};try{H=JSON.parse(B.data)}catch(R){}"init"==H.event?(D.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),
-"*"),D.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=H.event||E||(G?null!=H.resp&&0<H.resp.length&&null!=H.resp[0]?(T=H.resp[0],G=!1,v()):S():null!=H.resp&&0<H.resp.length&&null!=H.resp[0]?z(H.resp[0]):k())}}catch(R){console.log(R)}});window.addEventListener("message",A)}})));c(u);u.onversionchange=function(){u.close()}}catch(A){null!=e?e(A):null!=window.console&&console.warn(A)}});n.onerror=e;n.onblocked=function(){}}catch(p){null!=
-e?e(p):null!=window.console&&console.error(p)}else null!=e&&e(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,e,l,n,p){this.openDatabase(mxUtils.bind(this,function(u){try{p=p||"objects";Array.isArray(p)||(p=[p],c=[c],e=[e]);var A=u.transaction(p,"readwrite");A.oncomplete=l;A.onerror=n;for(u=0;u<p.length;u++)A.objectStore(p[u]).put(null!=c&&null!=c[u]?{key:c[u],data:e[u]}:e[u])}catch(D){null!=n&&n(D)}}),n)};EditorUi.prototype.removeDatabaseItem=
-function(c,e,l,n){this.openDatabase(mxUtils.bind(this,function(p){try{n=n||"objects";Array.isArray(n)||(n=[n],c=[c]);var u=p.transaction(n,"readwrite");u.oncomplete=e;u.onerror=l;for(p=0;p<n.length;p++)u.objectStore(n[p]).delete(c[p])}catch(A){null!=l&&l(A)}}),l)};EditorUi.prototype.getDatabaseItem=function(c,e,l,n){this.openDatabase(mxUtils.bind(this,function(p){try{n=n||"objects";var u=p.transaction([n],"readonly").objectStore(n).get(c);u.onsuccess=function(){e(u.result)};u.onerror=l}catch(A){null!=
-l&&l(A)}}),l)};EditorUi.prototype.getDatabaseItems=function(c,e,l){this.openDatabase(mxUtils.bind(this,function(n){try{l=l||"objects";var p=n.transaction([l],"readonly").objectStore(l).openCursor(IDBKeyRange.lowerBound(0)),u=[];p.onsuccess=function(A){null==A.target.result?c(u):(u.push(A.target.result.value),A.target.result.continue())};p.onerror=e}catch(A){null!=e&&e(A)}}),e)};EditorUi.prototype.getDatabaseItemKeys=function(c,e,l){this.openDatabase(mxUtils.bind(this,function(n){try{l=l||"objects";
+typeof this[n]){if(p.allowedDomains){for(var u=!1,B=0;B<p.allowedDomains.length;B++)if(e=="https://"+p.allowedDomains[B]){u=!0;break}if(!u){l(null,"Invalid Call: "+n+" is not allowed.");return}}var D=c.functionArgs;Array.isArray(D)||(D=[]);if(p.isAsync)D.push(function(){l(Array.prototype.slice.apply(arguments))}),D.push(function(E){l(null,E||"Unkown Error")}),this[n].apply(this,D);else{var G=this[n].apply(this,D);l([G])}}else l(null,"Invalid Call: "+n+" is not found.")}catch(E){l(null,"Invalid Call: An error occurred, "+
+E.message)}};EditorUi.prototype.openDatabase=function(c,e){if(null==this.database){var l=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=l)try{var n=l.open("database",2);n.onupgradeneeded=function(p){try{var u=n.result;1>p.oldVersion&&u.createObjectStore("objects",{keyPath:"key"});2>p.oldVersion&&(u.createObjectStore("files",{keyPath:"title"}),u.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(B){null!=e&&e(B)}};n.onsuccess=
+mxUtils.bind(this,function(p){try{var u=n.result;this.database=u;EditorUi.migrateStorageFiles&&(StorageFile.migrate(u),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(B){if(!B||"1"==urlParams.forceMigration){var D=document.createElement("iframe");D.style.display="none";D.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);
+document.body.appendChild(D);var G=!0,E=!1,T,O=0,S=mxUtils.bind(this,function(){E=!0;this.setDatabaseItem(".drawioMigrated3",!0);D.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),k=mxUtils.bind(this,function(){O++;v()}),v=mxUtils.bind(this,function(){try{if(O>=T.length)S();else{var A=T[O];StorageFile.getFileContent(this,A,mxUtils.bind(this,function(H){null==H||".scratchpad"==A&&H==this.emptyLibraryXml?D.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",
+funtionName:"getLocalStorageFile",functionArgs:[A]}),"*"):k()}),k)}}catch(H){console.log(H)}}),z=mxUtils.bind(this,function(A){try{this.setDatabaseItem(null,[{title:A.title,size:A.data.length,lastModified:Date.now(),type:A.isLib?"L":"F"},{title:A.title,data:A.data}],k,k,["filesInfo","files"])}catch(H){console.log(H)}});B=mxUtils.bind(this,function(A){try{if(A.source==D.contentWindow){var H={};try{H=JSON.parse(A.data)}catch(R){}"init"==H.event?(D.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),
+"*"),D.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=H.event||E||(G?null!=H.resp&&0<H.resp.length&&null!=H.resp[0]?(T=H.resp[0],G=!1,v()):S():null!=H.resp&&0<H.resp.length&&null!=H.resp[0]?z(H.resp[0]):k())}}catch(R){console.log(R)}});window.addEventListener("message",B)}})));c(u);u.onversionchange=function(){u.close()}}catch(B){null!=e?e(B):null!=window.console&&console.warn(B)}});n.onerror=e;n.onblocked=function(){}}catch(p){null!=
+e?e(p):null!=window.console&&console.error(p)}else null!=e&&e(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,e,l,n,p){this.openDatabase(mxUtils.bind(this,function(u){try{p=p||"objects";Array.isArray(p)||(p=[p],c=[c],e=[e]);var B=u.transaction(p,"readwrite");B.oncomplete=l;B.onerror=n;for(u=0;u<p.length;u++)B.objectStore(p[u]).put(null!=c&&null!=c[u]?{key:c[u],data:e[u]}:e[u])}catch(D){null!=n&&n(D)}}),n)};EditorUi.prototype.removeDatabaseItem=
+function(c,e,l,n){this.openDatabase(mxUtils.bind(this,function(p){try{n=n||"objects";Array.isArray(n)||(n=[n],c=[c]);var u=p.transaction(n,"readwrite");u.oncomplete=e;u.onerror=l;for(p=0;p<n.length;p++)u.objectStore(n[p]).delete(c[p])}catch(B){null!=l&&l(B)}}),l)};EditorUi.prototype.getDatabaseItem=function(c,e,l,n){this.openDatabase(mxUtils.bind(this,function(p){try{n=n||"objects";var u=p.transaction([n],"readonly").objectStore(n).get(c);u.onsuccess=function(){e(u.result)};u.onerror=l}catch(B){null!=
+l&&l(B)}}),l)};EditorUi.prototype.getDatabaseItems=function(c,e,l){this.openDatabase(mxUtils.bind(this,function(n){try{l=l||"objects";var p=n.transaction([l],"readonly").objectStore(l).openCursor(IDBKeyRange.lowerBound(0)),u=[];p.onsuccess=function(B){null==B.target.result?c(u):(u.push(B.target.result.value),B.target.result.continue())};p.onerror=e}catch(B){null!=e&&e(B)}}),e)};EditorUi.prototype.getDatabaseItemKeys=function(c,e,l){this.openDatabase(mxUtils.bind(this,function(n){try{l=l||"objects";
var p=n.transaction([l],"readonly").objectStore(l).getAllKeys();p.onsuccess=function(){c(p.result)};p.onerror=e}catch(u){null!=e&&e(u)}}),e)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};
EditorUi.prototype.getComments=function(c,e){var l=this.getCurrentFile();null!=l?l.getComments(c,e):c([])};EditorUi.prototype.addComment=function(c,e,l){var n=this.getCurrentFile();null!=n?n.addComment(c,e,l):e(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.newComment=function(c,e){var l=this.getCurrentFile();
return null!=l?l.newComment(c,e):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,e)};EditorUi.prototype.isRevisionHistorySupported=function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(c,e){var l=this.getCurrentFile();null!=l&&l.getRevisions?l.getRevisions(c,e):e({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==
-DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,e,l,n,p,u,A,D){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,e,l,n,p,u,A,D)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};
-EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,e)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,e,l,n,p,u,A,D,G,E,T,O,S,k,v,z){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");
-return this.editor.exportToCanvas(c,e,l,n,p,u,A,D,G,E,T,O,S,k,v,z)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,e,l,n){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,e,l,n)};EditorUi.prototype.convertImageToDataUri=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");
+DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,e,l,n,p,u,B,D){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,e,l,n,p,u,B,D)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};
+EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,e)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,e,l,n,p,u,B,D,G,E,T,O,S,k,v,z){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");
+return this.editor.exportToCanvas(c,e,l,n,p,u,B,D,G,E,T,O,S,k,v,z)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,e,l,n){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,e,l,n)};EditorUi.prototype.convertImageToDataUri=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");
return this.editor.convertImageToDataUri(c,e)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,e,l,n){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,e,l,n)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,e,l,n,p){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");
return Editor.writeGraphModelToPng(c,e,l,n,p)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],e=0;e<localStorage.length;e++){var l=localStorage.key(e),n=localStorage.getItem(l);if(0<l.length&&(".scratchpad"==l||"."!=l.charAt(0))&&0<n.length){var p="<mxfile "===n.substring(0,8)||"<?xml"===n.substring(0,5)||"\x3c!--[if IE]>"===n.substring(0,12);n="<mxlibrary>"===n.substring(0,11);(p||
n)&&c.push(l)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var e=localStorage.getItem(c);return{title:c,data:e,isLib:"<mxlibrary>"===e.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();
-var CommentsWindow=function(b,f,m,d,t,y){function x(){for(var k=u.getElementsByTagName("div"),v=0,z=0;z<k.length;z++)"none"!=k[z].style.display&&k[z].parentNode==u&&v++;A.style.display=0==v?"block":"none"}function C(k,v,z,B){function H(){v.removeChild(q);v.removeChild(F);g.style.display="block";R.style.display="block"}l={div:v,comment:k,saveCallback:z,deleteOnCancel:B};var R=v.querySelector(".geCommentTxt"),g=v.querySelector(".geCommentActionsList"),q=document.createElement("textarea");q.className=
-"geCommentEditTxtArea";q.style.minHeight=R.offsetHeight+"px";q.value=k.content;v.insertBefore(q,R);var F=document.createElement("div");F.className="geCommentEditBtns";var J=mxUtils.button(mxResources.get("cancel"),function(){B?(v.parentNode.removeChild(v),x()):H();l=null});J.className="geCommentEditBtn";F.appendChild(J);var L=mxUtils.button(mxResources.get("save"),function(){R.innerText="";k.content=q.value;mxUtils.write(R,k.content);H();z(k);l=null});mxEvent.addListener(q,"keydown",mxUtils.bind(this,
+var CommentsWindow=function(b,f,m,d,t,y){function x(){for(var k=u.getElementsByTagName("div"),v=0,z=0;z<k.length;z++)"none"!=k[z].style.display&&k[z].parentNode==u&&v++;B.style.display=0==v?"block":"none"}function C(k,v,z,A){function H(){v.removeChild(q);v.removeChild(F);g.style.display="block";R.style.display="block"}l={div:v,comment:k,saveCallback:z,deleteOnCancel:A};var R=v.querySelector(".geCommentTxt"),g=v.querySelector(".geCommentActionsList"),q=document.createElement("textarea");q.className=
+"geCommentEditTxtArea";q.style.minHeight=R.offsetHeight+"px";q.value=k.content;v.insertBefore(q,R);var F=document.createElement("div");F.className="geCommentEditBtns";var J=mxUtils.button(mxResources.get("cancel"),function(){A?(v.parentNode.removeChild(v),x()):H();l=null});J.className="geCommentEditBtn";F.appendChild(J);var L=mxUtils.button(mxResources.get("save"),function(){R.innerText="";k.content=q.value;mxUtils.write(R,k.content);H();z(k);l=null});mxEvent.addListener(q,"keydown",mxUtils.bind(this,
function(Q){mxEvent.isConsumed(Q)||((mxEvent.isControlDown(Q)||mxClient.IS_MAC&&mxEvent.isMetaDown(Q))&&13==Q.keyCode?(L.click(),mxEvent.consume(Q)):27==Q.keyCode&&(J.click(),mxEvent.consume(Q)))}));L.focus();L.className="geCommentEditBtn gePrimaryBtn";F.appendChild(L);v.insertBefore(F,R);g.style.display="none";R.style.display="none";q.focus()}function K(k,v){v.innerText="";k=new Date(k.modifiedDate);var z=b.timeSince(k);null==z&&(z=mxResources.get("lessThanAMinute"));mxUtils.write(v,mxResources.get("timeAgo",
-[z],"{1} ago"));v.setAttribute("title",k.toLocaleDateString()+" "+k.toLocaleTimeString())}function M(k){var v=document.createElement("img");v.className="geCommentBusyImg";v.src=IMAGE_PATH+"/spin.gif";k.appendChild(v);k.busyImg=v}function N(k){k.style.border="1px solid red";k.busyImg.parentNode==k&&k.removeChild(k.busyImg)}function P(k){k.style.border="";k.busyImg.parentNode==k&&k.removeChild(k.busyImg)}function I(k,v,z,B,H){function R(V,W,X){var Z=document.createElement("li");Z.className="geCommentAction";
+[z],"{1} ago"));v.setAttribute("title",k.toLocaleDateString()+" "+k.toLocaleTimeString())}function M(k){var v=document.createElement("img");v.className="geCommentBusyImg";v.src=IMAGE_PATH+"/spin.gif";k.appendChild(v);k.busyImg=v}function N(k){k.style.border="1px solid red";k.busyImg.parentNode==k&&k.removeChild(k.busyImg)}function P(k){k.style.border="";k.busyImg.parentNode==k&&k.removeChild(k.busyImg)}function I(k,v,z,A,H){function R(V,W,X){var Z=document.createElement("li");Z.className="geCommentAction";
var Y=document.createElement("a");Y.className="geCommentActionLnk";mxUtils.write(Y,V);Z.appendChild(Y);mxEvent.addListener(Y,"click",function(ba){W(ba,k);ba.preventDefault();mxEvent.consume(ba)});U.appendChild(Z);X&&(Z.style.display="none")}function g(){function V(Z){W.push(X);if(null!=Z.replies)for(var Y=0;Y<Z.replies.length;Y++)X=X.nextSibling,V(Z.replies[Y])}var W=[],X=F;V(k);return{pdiv:X,replies:W}}function q(V,W,X,Z,Y){function ba(){M(ma);k.addReply(da,function(aa){da.id=aa;k.replies.push(da);
-P(ma);X&&X()},function(aa){ea();N(ma);b.handleError(aa,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},Z,Y)}function ea(){C(da,ma,function(aa){ba()},!0)}var ca=g().pdiv,da=b.newComment(V,b.getCurrentUser());da.pCommentId=k.id;null==k.replies&&(k.replies=[]);var ma=I(da,k.replies,ca,B+1);W?ea():ba()}if(H||!k.isResolved){A.style.display="none";var F=document.createElement("div");F.className="geCommentContainer";F.setAttribute("data-commentId",k.id);F.style.marginLeft=20*B+5+
+P(ma);X&&X()},function(aa){ea();N(ma);b.handleError(aa,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},Z,Y)}function ea(){C(da,ma,function(aa){ba()},!0)}var ca=g().pdiv,da=b.newComment(V,b.getCurrentUser());da.pCommentId=k.id;null==k.replies&&(k.replies=[]);var ma=I(da,k.replies,ca,A+1);W?ea():ba()}if(H||!k.isResolved){B.style.display="none";var F=document.createElement("div");F.className="geCommentContainer";F.setAttribute("data-commentId",k.id);F.style.marginLeft=20*A+5+
"px";k.isResolved&&(n.style.opacity="0.7");var J=document.createElement("div");J.className="geCommentHeader";var L=document.createElement("img");L.className="geCommentUserImg";L.src=null!=k.user&&null!=k.user.pictureUrl?k.user.pictureUrl:Editor.userImage;J.appendChild(L);L=document.createElement("div");L.className="geCommentHeaderTxt";J.appendChild(L);var Q=document.createElement("div");Q.className="geCommentUsername";mxUtils.write(Q,null!=k.user?k.user.displayName:mxResources.get("unknownUser"));
-L.appendChild(Q);Q=document.createElement("div");Q.className="geCommentDate";Q.setAttribute("data-commentId",k.id);K(k,Q);L.appendChild(Q);F.appendChild(J);J=document.createElement("div");J.className="geCommentTxt";mxUtils.write(J,k.content||"");F.appendChild(J);k.isLocked&&(F.style.opacity="0.5");J=document.createElement("div");J.className="geCommentActions";var U=document.createElement("ul");U.className="geCommentActionsList";J.appendChild(U);c||k.isLocked||0!=B&&!e||R(mxResources.get("reply"),
+L.appendChild(Q);Q=document.createElement("div");Q.className="geCommentDate";Q.setAttribute("data-commentId",k.id);K(k,Q);L.appendChild(Q);F.appendChild(J);J=document.createElement("div");J.className="geCommentTxt";mxUtils.write(J,k.content||"");F.appendChild(J);k.isLocked&&(F.style.opacity="0.5");J=document.createElement("div");J.className="geCommentActions";var U=document.createElement("ul");U.className="geCommentActionsList";J.appendChild(U);c||k.isLocked||0!=A&&!e||R(mxResources.get("reply"),
function(){q("",!0)},k.isResolved);L=b.getCurrentUser();null==L||null==k.user||L.id!=k.user.id||c||k.isLocked||(R(mxResources.get("edit"),function(){function V(){C(k,F,function(){M(F);k.editComment(k.content,function(){P(F)},function(W){N(F);V();b.handleError(W,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}V()},k.isResolved),R(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){M(F);k.deleteComment(function(V){if(!0===V){V=F.querySelector(".geCommentTxt");
-V.innerText="";mxUtils.write(V,mxResources.get("msgDeleted"));var W=F.querySelectorAll(".geCommentAction");for(V=0;V<W.length;V++)W[V].parentNode.removeChild(W[V]);P(F);F.style.opacity="0.5"}else{W=g(k).replies;for(V=0;V<W.length;V++)u.removeChild(W[V]);for(V=0;V<v.length;V++)if(v[V]==k){v.splice(V,1);break}A.style.display=0==u.getElementsByTagName("div").length?"block":"none"}},function(V){N(F);b.handleError(V,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},k.isResolved));
-c||k.isLocked||0!=B||R(k.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(V){function W(){var X=V.target;X.innerText="";k.isResolved=!k.isResolved;mxUtils.write(X,k.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var Z=k.isResolved?"none":"",Y=g(k).replies,ba="light-dark("+(k.isResolved?"ghostWhite":"white")+", transparent)",ea=0;ea<Y.length;ea++){Y[ea].style.backgroundColor=ba;for(var ca=Y[ea].querySelectorAll(".geCommentAction"),da=0;da<ca.length;da++)ca[da]!=
-X.parentNode&&(ca[da].style.display=Z);T||(Y[ea].style.display="none")}x()}k.isResolved?q(mxResources.get("reOpened")+": ",!0,W,!1,!0):q(mxResources.get("markedAsResolved"),!1,W,!0)});F.appendChild(J);null!=z?u.insertBefore(F,z.nextSibling):u.appendChild(F);for(z=0;null!=k.replies&&z<k.replies.length;z++)J=k.replies[z],J.isResolved=k.isResolved,I(J,k.replies,null,B+1,H);null!=l&&(l.comment.id==k.id?(H=k.content,k.content=l.comment.content,C(k,F,l.saveCallback,l.deleteOnCancel),k.content=H):null==
+V.innerText="";mxUtils.write(V,mxResources.get("msgDeleted"));var W=F.querySelectorAll(".geCommentAction");for(V=0;V<W.length;V++)W[V].parentNode.removeChild(W[V]);P(F);F.style.opacity="0.5"}else{W=g(k).replies;for(V=0;V<W.length;V++)u.removeChild(W[V]);for(V=0;V<v.length;V++)if(v[V]==k){v.splice(V,1);break}B.style.display=0==u.getElementsByTagName("div").length?"block":"none"}},function(V){N(F);b.handleError(V,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},k.isResolved));
+c||k.isLocked||0!=A||R(k.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(V){function W(){var X=V.target;X.innerText="";k.isResolved=!k.isResolved;mxUtils.write(X,k.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var Z=k.isResolved?"none":"",Y=g(k).replies,ba="light-dark("+(k.isResolved?"ghostWhite":"white")+", transparent)",ea=0;ea<Y.length;ea++){Y[ea].style.backgroundColor=ba;for(var ca=Y[ea].querySelectorAll(".geCommentAction"),da=0;da<ca.length;da++)ca[da]!=
+X.parentNode&&(ca[da].style.display=Z);T||(Y[ea].style.display="none")}x()}k.isResolved?q(mxResources.get("reOpened")+": ",!0,W,!1,!0):q(mxResources.get("markedAsResolved"),!1,W,!0)});F.appendChild(J);null!=z?u.insertBefore(F,z.nextSibling):u.appendChild(F);for(z=0;null!=k.replies&&z<k.replies.length;z++)J=k.replies[z],J.isResolved=k.isResolved,I(J,k.replies,null,A+1,H);null!=l&&(l.comment.id==k.id?(H=k.content,k.content=l.comment.content,C(k,F,l.saveCallback,l.deleteOnCancel),k.content=H):null==
l.comment.id&&l.comment.pCommentId==k.id&&(u.appendChild(l.div),C(l.comment,l.div,l.saveCallback,l.deleteOnCancel)));return F}}var c=!b.canComment(),e=b.canReplyToReplies(),l=null,n=document.createElement("div");n.className="geCommentsWin";n.style.background="light-dark(whiteSmoke, "+Editor.darkColor+")";var p=EditorUi.compactUi?"26px":"30px",u=document.createElement("div");u.className="geCommentsList";u.style.backgroundColor="light-dark(whiteSmoke, "+Editor.darkColor+")";u.style.bottom=parseInt(p)+
-7+"px";n.appendChild(u);var A=document.createElement("span");A.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(A,mxResources.get("noCommentsFound"));var D=document.createElement("div");D.className="geToolbarContainer geCommentsToolbar";D.style.height=p;D.style.padding="3px 4px 4px 4px";p=document.createElement("a");p.className="geToolbarButton geAdaptiveAsset geToggleItem";p.style.width="16px";p.style.height="18px";p.style.backgroundPosition="center center";p.style.backgroundRepeat=
-"no-repeat";p.style.backgroundSize="20px";p.style.margin="0 2px";p.style.display="inline-block";p.style.cursor="pointer";if(!c){var G=p.cloneNode();G.style.backgroundImage="url("+Editor.plusImage+")";G.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(G,"click",function(k){function v(){C(z,B,function(H){M(B);b.addComment(H,function(R){H.id=R;O.push(H);P(B)},function(R){N(B);v();b.handleError(R,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var z=
-b.newComment("",b.getCurrentUser()),B=I(z,O,null,0);v();k.preventDefault();mxEvent.consume(k)});D.appendChild(G)}var E=p.cloneNode();E.classList.add("geToggleItem");E.style.backgroundImage="url("+Editor.checkImage+")";E.setAttribute("title",mxResources.get("showResolved"));var T=!1;mxEvent.addListener(E,"click",function(k){(T=!T)?E.classList.add("geActiveItem"):E.classList.remove("geActiveItem");S();k.preventDefault();mxEvent.consume(k)});D.appendChild(E);b.commentsRefreshNeeded()&&(G=p.cloneNode(),
+7+"px";n.appendChild(u);var B=document.createElement("span");B.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(B,mxResources.get("noCommentsFound"));var D=document.createElement("div");D.className="geToolbarContainer geCommentsToolbar";D.style.height=p;D.style.padding="3px 4px 4px 4px";p=document.createElement("a");p.className="geToolbarButton geAdaptiveAsset geToggleItem";p.style.width="16px";p.style.height="18px";p.style.backgroundPosition="center center";p.style.backgroundRepeat=
+"no-repeat";p.style.backgroundSize="20px";p.style.margin="0 2px";p.style.display="inline-block";p.style.cursor="pointer";if(!c){var G=p.cloneNode();G.style.backgroundImage="url("+Editor.plusImage+")";G.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(G,"click",function(k){function v(){C(z,A,function(H){M(A);b.addComment(H,function(R){H.id=R;O.push(H);P(A)},function(R){N(A);v();b.handleError(R,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var z=
+b.newComment("",b.getCurrentUser()),A=I(z,O,null,0);v();k.preventDefault();mxEvent.consume(k)});D.appendChild(G)}var E=p.cloneNode();E.classList.add("geToggleItem");E.style.backgroundImage="url("+Editor.checkImage+")";E.setAttribute("title",mxResources.get("showResolved"));var T=!1;mxEvent.addListener(E,"click",function(k){(T=!T)?E.classList.add("geActiveItem"):E.classList.remove("geActiveItem");S();k.preventDefault();mxEvent.consume(k)});D.appendChild(E);b.commentsRefreshNeeded()&&(G=p.cloneNode(),
G.style.backgroundImage="url("+Editor.refreshImage+")",G.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(G,"click",function(k){S();k.preventDefault();mxEvent.consume(k)}),D.appendChild(G));b.commentsSaveNeeded()&&(p=p.cloneNode(),p.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',p.setAttribute("title",mxResources.get("save")),p.className="geButton geAdaptiveAsset",mxEvent.addListener(p,"click",function(k){y();k.preventDefault();mxEvent.consume(k)}),
D.appendChild(p));n.appendChild(D);var O=[],S=mxUtils.bind(this,function(){this.hasError=!1;if(null!=l)try{l.div=l.div.cloneNode(!0);var k=l.div.querySelector(".geCommentEditTxtArea"),v=l.div.querySelector(".geCommentEditBtns");l.comment.content=k.value;k.parentNode.removeChild(k);v.parentNode.removeChild(v)}catch(z){b.handleError(z)}u.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+
-"...</div>";e=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(z){function B(H){if(null!=H){H.sort(function(g,q){return new Date(g.modifiedDate)-new Date(q.modifiedDate)});for(var R=0;R<H.length;R++)B(H[R].replies)}}z.sort(function(H,R){return new Date(H.modifiedDate)-new Date(R.modifiedDate)});u.innerText="";u.appendChild(A);A.style.display="block";O=z;for(z=0;z<O.length;z++)B(O[z].replies),I(O[z],O,null,0,T);null!=l&&null==l.comment.id&&null==l.comment.pCommentId&&(u.appendChild(l.div),
+"...</div>";e=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(z){function A(H){if(null!=H){H.sort(function(g,q){return new Date(g.modifiedDate)-new Date(q.modifiedDate)});for(var R=0;R<H.length;R++)A(H[R].replies)}}z.sort(function(H,R){return new Date(H.modifiedDate)-new Date(R.modifiedDate)});u.innerText="";u.appendChild(B);B.style.display="block";O=z;for(z=0;z<O.length;z++)A(O[z].replies),I(O[z],O,null,0,T);null!=l&&null==l.comment.id&&null==l.comment.pCommentId&&(u.appendChild(l.div),
C(l.comment,l.div,l.saveCallback,l.deleteOnCancel))},mxUtils.bind(this,function(z){u.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(z&&z.message?": "+z.message:""));this.hasError=!0})):u.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});S();this.refreshComments=S;D=mxUtils.bind(this,function(){function k(R){var g=z[R.id];if(null!=g)for(K(R,g),g=0;null!=R.replies&&g<R.replies.length;g++)k(R.replies[g])}if(this.window.isVisible()){for(var v=u.querySelectorAll(".geCommentDate"),z=
-{},B=0;B<v.length;B++){var H=v[B];z[H.getAttribute("data-commentId")]=H}for(B=0;B<O.length;B++)k(O[B])}});setInterval(D,6E4);this.refreshCommentsTime=D;this.window=new mxWindow(mxResources.get("comments"),n,f,m,d,t,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));
+{},A=0;A<v.length;A++){var H=v[A];z[H.getAttribute("data-commentId")]=H}for(A=0;A<O.length;A++)k(O[A])}});setInterval(D,6E4);this.refreshCommentsTime=D;this.window=new mxWindow(mxResources.get("comments"),n,f,m,d,t,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));
b.installResizeHandler(this,!0)},ConfirmDialog=function(b,f,m,d,t,y,x,C,K,M,N){var P=document.createElement("div");P.style.textAlign="center";N=null!=N?N:44;var I=document.createElement("div");I.style.padding="6px";I.style.overflow="auto";I.style.maxHeight=N+"px";I.style.lineHeight="1.2em";mxUtils.write(I,f);P.appendChild(I);null!=M&&(I=document.createElement("div"),I.style.padding="6px 0 6px 0",f=document.createElement("img"),f.setAttribute("src",M),I.appendChild(f),P.appendChild(I));M=document.createElement("div");
M.style.textAlign="center";M.style.whiteSpace="nowrap";var c=document.createElement("input");c.setAttribute("type","checkbox");y=mxUtils.button(y||mxResources.get("cancel"),function(){b.hideDialog();null!=d&&d(c.checked)});y.className="geBtn";null!=C&&(y.innerHTML=C+"<br>"+y.innerHTML,y.style.paddingBottom="8px",y.style.paddingTop="8px",y.style.height="auto",y.style.width="40%");b.editor.cancelFirst&&M.appendChild(y);var e=mxUtils.button(t||mxResources.get("ok"),function(){b.hideDialog();null!=m&&
m(c.checked)});M.appendChild(e);null!=x?(e.innerHTML=x+"<br>"+e.innerHTML+"<br>",e.style.paddingBottom="8px",e.style.paddingTop="8px",e.style.height="auto",e.className="geBtn",e.style.width="40%"):e.className="geBtn gePrimaryBtn";b.editor.cancelFirst||M.appendChild(y);P.appendChild(M);K?(M.style.marginTop="10px",I=document.createElement("p"),I.style.marginTop="20px",I.style.marginBottom="0px",I.appendChild(c),t=document.createElement("span"),mxUtils.write(t," "+mxResources.get("rememberThisSetting")),
@@ -13553,8 +13567,8 @@ I.appendChild(t),P.appendChild(I),mxEvent.addListener(t,"click",function(l){c.ch
HeadlessEditorUi.prototype.updateActionStates=function(){};EditorUi.DIFF_INSERT="i";EditorUi.DIFF_REMOVE="r";EditorUi.DIFF_UPDATE="u";EditorUi.transientViewStateProperties="defaultParent currentRoot scrollLeft scrollTop scale translate lastPasteXml pasteCounter".split(" ");EditorUi.prototype.viewStateProperties={background:!0,backgroundImage:!0,shadowVisible:!0,foldingEnabled:!0,pageScale:!0,mathEnabled:!0,pageFormat:!0,extFonts:!0};
EditorUi.prototype.cellProperties={id:!0,value:!0,xmlValue:!0,vertex:!0,edge:!0,visible:!0,collapsed:!0,connectable:!0,parent:!0,children:!0,previous:!0,source:!0,target:!0,edges:!0,geometry:!0,style:!0,overlays:!0,mxObjectId:!0,mxTransient:!0};EditorUi.prototype.codec=new mxCodec;EditorUi.prototype.applyPatches=function(b,f,m,d,t){if(null!=f)for(var y=0;y<f.length;y++)null!=f[y]&&(b=this.patchPages(b,f[y],m,d,t));return b};
EditorUi.prototype.patchPages=function(b,f,m,d,t){var y={},x=[],C={},K={},M={},N={};if(null!=d&&null!=d[EditorUi.DIFF_UPDATE])for(var P in d[EditorUi.DIFF_UPDATE])y[P]=d[EditorUi.DIFF_UPDATE][P];if(null!=f[EditorUi.DIFF_REMOVE])for(d=0;d<f[EditorUi.DIFF_REMOVE].length;d++)K[f[EditorUi.DIFF_REMOVE][d]]=!0;if(null!=f[EditorUi.DIFF_INSERT])for(d=0;d<f[EditorUi.DIFF_INSERT].length;d++)C[f[EditorUi.DIFF_INSERT][d].previous]=f[EditorUi.DIFF_INSERT][d];if(null!=f[EditorUi.DIFF_UPDATE])for(P in f[EditorUi.DIFF_UPDATE])d=
-f[EditorUi.DIFF_UPDATE][P],null!=d.previous&&(N[d.previous]=P);if(null!=b){var I="";for(d=0;d<b.length;d++){var c=b[d].getId();M[c]=b[d];null!=N[I]||K[c]||null!=f[EditorUi.DIFF_UPDATE]&&null!=f[EditorUi.DIFF_UPDATE][c]&&null!=f[EditorUi.DIFF_UPDATE][c].previous||(N[I]=c);I=c}}var e={},l=mxUtils.bind(this,function(p){var u=null!=p?p.getId():"";if(null!=p&&!e[u]){e[u]=!0;x.push(p);var A=null!=f[EditorUi.DIFF_UPDATE]?f[EditorUi.DIFF_UPDATE][u]:null;null!=A&&(this.updatePageRoot(p),null!=A.name&&p.setName(A.name),
-null!=A.view&&this.patchViewState(p,A.view),null!=A.cells&&this.patchPage(p,A.cells,y[p.getId()],t),!m||null==A.cells&&null==A.view||(p.needsUpdate=!0))}p=N[u];null!=p&&(delete N[u],l(M[p]));p=C[u];null!=p&&(delete C[u],n(p))}),n=mxUtils.bind(this,function(p){p=mxUtils.parseXml(p.data).documentElement;p=new DiagramPage(p);this.updatePageRoot(p);var u=M[p.getId()];null==u?l(p):(this.patchPage(u,this.diffPages([u],[p]),y[u.getId()],t),m&&(u.needsUpdate=!0))});l();for(P in N)l(M[N[P]]),delete N[P];for(P in C)n(C[P]),
+f[EditorUi.DIFF_UPDATE][P],null!=d.previous&&(N[d.previous]=P);if(null!=b){var I="";for(d=0;d<b.length;d++){var c=b[d].getId();M[c]=b[d];null!=N[I]||K[c]||null!=f[EditorUi.DIFF_UPDATE]&&null!=f[EditorUi.DIFF_UPDATE][c]&&null!=f[EditorUi.DIFF_UPDATE][c].previous||(N[I]=c);I=c}}var e={},l=mxUtils.bind(this,function(p){var u=null!=p?p.getId():"";if(null!=p&&!e[u]){e[u]=!0;x.push(p);var B=null!=f[EditorUi.DIFF_UPDATE]?f[EditorUi.DIFF_UPDATE][u]:null;null!=B&&(this.updatePageRoot(p),null!=B.name&&p.setName(B.name),
+null!=B.view&&this.patchViewState(p,B.view),null!=B.cells&&this.patchPage(p,B.cells,y[p.getId()],t),!m||null==B.cells&&null==B.view||(p.needsUpdate=!0))}p=N[u];null!=p&&(delete N[u],l(M[p]));p=C[u];null!=p&&(delete C[u],n(p))}),n=mxUtils.bind(this,function(p){p=mxUtils.parseXml(p.data).documentElement;p=new DiagramPage(p);this.updatePageRoot(p);var u=M[p.getId()];null==u?l(p):(this.patchPage(u,this.diffPages([u],[p]),y[u.getId()],t),m&&(u.needsUpdate=!0))});l();for(P in N)l(M[N[P]]),delete N[P];for(P in C)n(C[P]),
delete C[P];return x};EditorUi.prototype.patchViewState=function(b,f){if(null!=b.viewState&&null!=f){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var m in f)try{this.patchViewStateProperty(b,f,m)}catch(d){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototype.patchViewStateProperty=function(b,f,m){b.viewState[m]=JSON.parse(f[m])};
EditorUi.prototype.createParentLookup=function(b,f){function m(M){var N=d[M];null==N&&(N={inserted:[],moved:{}},d[M]=N);return N}var d={};if(null!=f[EditorUi.DIFF_INSERT])for(var t=0;t<f[EditorUi.DIFF_INSERT].length;t++){var y=f[EditorUi.DIFF_INSERT][t],x=null!=y.parent?y.parent:"",C=null!=y.previous?y.previous:"";m(x).inserted[C]=y}if(null!=f[EditorUi.DIFF_UPDATE])for(var K in f[EditorUi.DIFF_UPDATE])y=f[EditorUi.DIFF_UPDATE][K],null!=y.previous&&(x=y.parent,null==x&&(t=b.getCell(K),null!=t&&(t=
b.getParent(t),null!=t&&(x=t.getId()))),null!=x&&(m(x).moved[y.previous]=K));return d};
@@ -13665,8 +13679,8 @@ DrawioFileSync.prototype.updateDescriptor=function(b){this.file.setDescriptor(b)
DrawioFileSync.prototype.catchup=function(b,f,m,d,t){if(null!=b&&(null==d||!d())){var y=this.file.getCurrentRevisionId(),x=this.file.getDescriptorRevisionId(b);EditorUi.debug("DrawioFileSync.catchup",[this],"desc",[b],"from",y,"to",x,"immediate",t,"valid",this.isValidState());if(y==x)this.file.patchDescriptor(this.file.getDescriptor(),b),"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.catchup",[this],"up to date","cleanup",this.cleanupThread,"checksum",this.ui.getHashValueForPages(this.ui.pages)),
document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||null!=this.cleanupThread||this.testChecksum(),null!=f&&f(!0);else if(this.isValidState()){var C=this.file.getDescriptorChecksum(b),K=this.file.getDescriptorSecret(b);if(null!=C&&C==this.ui.getHashValueForPages(this.ui.pages))this.fastForward(b),null!=f&&f(!0);else if(Editor.enableRealtimeCache&&null!=K&&"1"!=urlParams.lockdown){var M=0,N=!1,P=mxUtils.bind(this,function(){if(null==d||!d())if(y!=this.file.getCurrentRevisionId())null!=f&&
f(!0);else if(this.isValidState()){this.scheduleCleanup(!0);var I=!0,c=window.setTimeout(mxUtils.bind(this,function(){I=!1;this.reload(f,m,d,null,t)}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&from="+encodeURIComponent(y)+"&to="+encodeURIComponent(x)+(null!=K?"&secret="+encodeURIComponent(K):""),mxUtils.bind(this,function(e){this.file.stats.bytesReceived+=e.getText().length;window.clearTimeout(c);if(I&&(null==d||!d()))if(y!=this.file.getCurrentRevisionId())null!=
-f&&f(!0);else if(this.isValidState()){var l=null,n=[];EditorUi.debug("DrawioFileSync.doCatchup",[this],"request",[e],"status",e.getStatus(),"cacheReadyRetryCount",M,"maxCacheReadyRetries",this.maxCacheReadyRetries);if(200<=e.getStatus()&&299>=e.getStatus()&&0<e.getText().length)try{var p=JSON.parse(e.getText());if(null!=p&&0<p.length)for(var u=0;u<p.length;u++){var A=this.stringToObject(p[u]);if(A.v>DrawioFileSync.PROTOCOL){N=!0;n=[];break}else if(A.v===DrawioFileSync.PROTOCOL&&null!=A.d)l=A.d.checksum,
-n.push(A.d.patch);else{N=!0;n=[];break}}EditorUi.debug("DrawioFileSync.doCatchup",[this],"response",[p],"status",N?"failed":"ok","temp",n,"checksum",l)}catch(D){n=[],null!=window.console&&"1"==urlParams.test&&console.log(D)}try{0<n.length?(this.file.stats.cacheHits++,this.merge(n,l,b,f,m,d,t)):M<=this.maxCacheReadyRetries-1&&!N&&401!=e.getStatus()&&503!=e.getStatus()&&410!=e.getStatus()?(M++,this.file.stats.cacheMiss++,window.setTimeout(P,(M+1)*this.cacheReadyDelay)):(this.file.stats.cacheFail++,
+f&&f(!0);else if(this.isValidState()){var l=null,n=[];EditorUi.debug("DrawioFileSync.doCatchup",[this],"request",[e],"status",e.getStatus(),"cacheReadyRetryCount",M,"maxCacheReadyRetries",this.maxCacheReadyRetries);if(200<=e.getStatus()&&299>=e.getStatus()&&0<e.getText().length)try{var p=JSON.parse(e.getText());if(null!=p&&0<p.length)for(var u=0;u<p.length;u++){var B=this.stringToObject(p[u]);if(B.v>DrawioFileSync.PROTOCOL){N=!0;n=[];break}else if(B.v===DrawioFileSync.PROTOCOL&&null!=B.d)l=B.d.checksum,
+n.push(B.d.patch);else{N=!0;n=[];break}}EditorUi.debug("DrawioFileSync.doCatchup",[this],"response",[p],"status",N?"failed":"ok","temp",n,"checksum",l)}catch(D){n=[],null!=window.console&&"1"==urlParams.test&&console.log(D)}try{0<n.length?(this.file.stats.cacheHits++,this.merge(n,l,b,f,m,d,t)):M<=this.maxCacheReadyRetries-1&&!N&&401!=e.getStatus()&&503!=e.getStatus()&&410!=e.getStatus()?(M++,this.file.stats.cacheMiss++,window.setTimeout(P,(M+1)*this.cacheReadyDelay)):(this.file.stats.cacheFail++,
this.reload(f,m,d,null,t))}catch(D){null!=m&&m(D)}}else null!=m&&m()}),m)}else null!=m&&m()});window.setTimeout(P,this.cacheReadyDelay)}else this.reload(f,m,d,null,t)}else null!=m&&m()}};DrawioFileSync.prototype.reload=function(b,f,m,d,t){EditorUi.debug("DrawioFileSync.reload",[this],"immediate",t);this.file.updateFile(mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifiedDate();this.updateStatus();this.start();null!=b&&b()}),mxUtils.bind(this,function(y){null!=f&&f(y)}),m,d,t)};
DrawioFileSync.prototype.descriptorChanged=function(b){this.lastModified=this.file.getLastModifiedDate();if(null!=this.channelId){var f=this.objectToString(this.createMessage({a:"desc",m:this.lastModified.getTime()})),m=this.file.getCurrentRevisionId(),d=this.objectToString({});mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+"&from="+encodeURIComponent(b)+"&to="+encodeURIComponent(m)+"&msg="+encodeURIComponent(f)+"&data="+encodeURIComponent(d));this.file.stats.bytesSent+=d.length;this.file.stats.msgSent++;
EditorUi.debug("DrawioFileSync.descriptorChanged",[this],"from",b,"to",m)}this.updateStatus()};DrawioFileSync.prototype.objectToString=function(b){b=Graph.compress(JSON.stringify(b));null!=this.key&&"undefined"!==typeof CryptoJS&&(b=CryptoJS.AES.encrypt(b,this.key).toString());return b};DrawioFileSync.prototype.stringToObject=function(b){null!=this.key&&"undefined"!==typeof CryptoJS&&(b=CryptoJS.AES.decrypt(b,this.key).toString(CryptoJS.enc.Utf8));return JSON.parse(Graph.decompress(b))};
@@ -13704,7 +13718,7 @@ null,"0"!=urlParams.chrome));null!=window.mxscript&&("function"===typeof window.
null),"function"===typeof window.OneDriveClient&&"undefined"===typeof OneDrive&&null!=window.DrawOneDriveClientCallback&&("1"!=urlParams.embed&&"0"!=urlParams.od||"1"==urlParams.embed&&"1"==urlParams.od)&&(null==navigator.userAgent||0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode)?mxscript(App.ONEDRIVE_URL,window.DrawOneDriveClientCallback):"undefined"===typeof window.OneDrive&&(window.OneDriveClient=null),"function"===typeof window.TrelloClient&&!mxClient.IS_IE11&&"undefined"===
typeof window.Trello&&null!=window.DrawTrelloClientCallback&&"1"==urlParams.tr&&(null==navigator.userAgent||0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode)?mxscript(App.TRELLO_JQUERY_URL,function(){mxscript(App.TRELLO_URL,function(){DrawTrelloClientCallback()})}):"undefined"===typeof window.Trello&&(window.TrelloClient=null));null!=b&&b(D);"0"!=urlParams.chrome&&"1"==urlParams.test&&(EditorUi.debug("App.start",["v"+EditorUi.VERSION,D,(new Date).getTime()-t0.getTime()+"ms"]),null!=
urlParams["export"]&&EditorUi.debug("Export:",EXPORT_URL))}catch(G){EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(G.stack)):(EditorUi.logError(G.message,null,null,null,G),window.setTimeout(function(){alert(G.message)},1))}}mxResources.parse(e[0].getText());if(isLocalStorage&&null!=localStorage&&null!=window.location.hash&&"#_CONFIG_"==window.location.hash.substring(0,9))try{var n=JSON.parse(Graph.decompress(window.location.hash.substring(9)));if(null!=n){EditorUi.debug("Setting configuration",
-JSON.stringify(n));if(null!=n.merge){var p=localStorage.getItem(Editor.configurationKey);if(null!=p)try{var u=JSON.parse(p),A;for(A in n.merge)u[A]=n.merge[A];n=u}catch(D){window.location.hash="",alert(D)}else n=n.merge}confirm(mxResources.get("configLinkWarn"))&&confirm(mxResources.get("configLinkConfirm"))&&(localStorage.setItem(Editor.configurationKey,JSON.stringify(n)),window.location.hash="",window.location.reload())}window.location.hash=""}catch(D){window.location.hash="",alert(D)}1<e.length&&
+JSON.stringify(n));if(null!=n.merge){var p=localStorage.getItem(Editor.configurationKey);if(null!=p)try{var u=JSON.parse(p),B;for(B in n.merge)u[B]=n.merge[B];n=u}catch(D){window.location.hash="",alert(D)}else n=n.merge}confirm(mxResources.get("configLinkWarn"))&&confirm(mxResources.get("configLinkConfirm"))&&(localStorage.setItem(Editor.configurationKey,JSON.stringify(n)),window.location.hash="",window.location.reload())}window.location.hash=""}catch(D){window.location.hash="",alert(D)}1<e.length&&
(Graph.prototype.defaultThemes["default-style2"]=e[1].getDocumentElement(),Graph.prototype.defaultThemes.darkTheme=e[1].getDocumentElement());"1"==urlParams.dev||EditorUi.isElectronApp?l():(mxStencilRegistry.allowEval=!1,App.loadScripts(["js/shapes-14-6-5.min.js","js/stencils.min.js","js/extensions.min.js"],l,function(D){document.body.innerHTML="";var G=document.createElement("pre");mxUtils.write(G,D.stack);document.body.appendChild(G)}))},function(e){e=document.getElementById("geStatus");null!=e&&
(e.innerHTML="Error loading page. <a>Please try refreshing.</a>",e.getElementsByTagName("a")[0].onclick=function(){mxLanguage="en";d(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,mxLanguage))})})};if(!App.isMainCalled)if(mxIsElectron&&"undefined"===typeof electron)alert("Runtime Environment not found."),document.body.innerHTML='<div style="margin-top:10%;text-align:center;"><img src="mxgraph/images/warning.png" align="top" style="padding-right:6px;"/>Runtime Environment not found.</div>';
else if(App.isMainCalled=!0,window.onerror=function(c,e,l,n,p){EditorUi.logError("Global: "+(null!=c?c:""),e,l,n,p,null,!0);null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug("Message:",c,"\nURL:",e,"\nLine:",l,"\nColumn:",n,"\nError:",p)):console.error("Message:",c,"\nURL:",e,"\nLine:",l,"\nColumn:",n,"\nError:",p);window.setTimeout(function(){alert("Error: "+(null!=c?c:""))},100)},window.top!=window.self||"import.diagrams.net"!==window.location.hostname&&"ac.draw.io"!==window.location.hostname&&
@@ -13759,7 +13773,7 @@ App.prototype.updateDocumentTitle=function(){var b=this.editor.appName,f=this.ge
App.prototype.getThumbnail=function(b,f,m){m=null!=m?m:0;var d=!1;try{var t=!0,y=window.setTimeout(mxUtils.bind(this,function(){t=!1;f(null)}),this.timeout),x=mxUtils.bind(this,function(O){window.clearTimeout(y);t&&f(O)});null==this.thumbImageCache&&(this.thumbImageCache={});var C=this.editor.graph,K=C.backgroundImage;if(null!=this.pages&&this.currentPage!=this.pages[0]){var M=C.getGlobalVariable;C=this.createTemporaryGraph(C.getStylesheet());C.setBackgroundImage=this.editor.graph.setBackgroundImage;
var N=this.pages[0];this.currentPage==N?C.setBackgroundImage(K):null!=N.viewState&&null!=N.viewState&&(K=N.viewState.backgroundImage,C.setBackgroundImage(K));C.getGlobalVariable=function(O){return"page"==O?N.getName():"pagenumber"==O?1:M.apply(this,arguments)};C.getGlobalVariable=M;document.body.appendChild(C.container);C.model.setRoot(N.root)}if(mxClient.IS_CHROMEAPP||this.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,function(O){try{C!=this.editor.graph&&null!=C.container.parentNode&&
C.container.parentNode.removeChild(C.container)}catch(S){O=null}x(O)}),b,this.thumbImageCache,"#ffffff",function(){x()},null,null,null,null,null,null,C,m,null,null,null,"diagram",null),d=!0;else if(this.canvasSupported&&null!=this.getCurrentFile()){var P=document.createElement("canvas"),I=C.getGraphBounds(),c=C.view.translate,e=C.view.scale;null!=K&&(I=mxRectangle.fromRectangle(I),I.add(new mxRectangle((c.x+K.x)*e,(c.y+K.y)*e,K.width*e,K.height*e)));var l=b/I.width;l=Math.min(1,Math.min(3*b/(4*I.height),
-l));var n=Math.floor(I.x),p=Math.floor(I.y);P.setAttribute("width",Math.ceil(l*(I.width+4)));P.setAttribute("height",Math.ceil(l*(I.height+4)));var u=P.getContext("2d");u.scale(l,l);u.translate(-n,-p);var A=C.background;if(null==A||""==A||A==mxConstants.NONE)A="#ffffff";u.save();u.fillStyle=A;u.fillRect(n,p,Math.ceil(I.width+4),Math.ceil(I.height+4));u.restore();if(null!=K){var D=new Image;D.src=K.src;u.drawImage(D,K.x*l,K.y*l,K.width*l,K.height*l)}var G=new mxJsCanvas(P),E=new mxAsyncCanvas(this.thumbImageCache);
+l));var n=Math.floor(I.x),p=Math.floor(I.y);P.setAttribute("width",Math.ceil(l*(I.width+4)));P.setAttribute("height",Math.ceil(l*(I.height+4)));var u=P.getContext("2d");u.scale(l,l);u.translate(-n,-p);var B=C.background;if(null==B||""==B||B==mxConstants.NONE)B="#ffffff";u.save();u.fillStyle=B;u.fillRect(n,p,Math.ceil(I.width+4),Math.ceil(I.height+4));u.restore();if(null!=K){var D=new Image;D.src=K.src;u.drawImage(D,K.x*l,K.y*l,K.width*l,K.height*l)}var G=new mxJsCanvas(P),E=new mxAsyncCanvas(this.thumbImageCache);
G.images=this.thumbImageCache.images;var T=new mxImageExport;T.drawShape=function(O,S){O.shape instanceof mxShape&&O.shape.checkBounds()&&(S.save(),S.translate(.5,.5),O.shape.paint(S),S.translate(-.5,-.5),S.restore())};T.drawText=function(O,S){};T.drawState(C.getView().getState(C.model.root),E);E.finish(mxUtils.bind(this,function(){try{T.drawState(C.getView().getState(C.model.root),G),C!=this.editor.graph&&null!=C.container.parentNode&&C.container.parentNode.removeChild(C.container)}catch(O){P=null}x(P)}));
d=!0}}catch(O){d=!1,null!=C&&C!=this.editor.graph&&null!=C.container.parentNode&&C.container.parentNode.removeChild(C.container)}d||window.clearTimeout(y);return d};
(function(){var b=EditorUi.prototype.setMode;App.prototype.setMode=function(f,m){b.apply(this,arguments);null!=this.mode&&(Editor.useLocalStorage=this.mode==App.MODE_BROWSER);if(null!=this.appIcon){var d=this.getCurrentFile();f=null!=d?d.getMode():f;f==App.MODE_GOOGLE?(this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("googleDrive")])),this.appIcon.style.cursor="pointer"):f==App.MODE_DROPBOX?(this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("dropbox")])),
@@ -13940,8 +13954,8 @@ Editor.prototype.resetGraph=function(){editorResetGraph.apply(this,arguments);nu
d.style.marginLeft="4px";d.style.cursor="help";d.style.color="blue";var t=document.createElement("img");t.setAttribute("src",Editor.helpImage);t.setAttribute("valign","bottom");t.setAttribute("border","0");t.className="geAdaptiveAsset";mxUtils.setOpacity(t,60);t.style.height="16px";t.style.width="16px";d.appendChild(t);mxEvent.addGestureListeners(d,mxUtils.bind(this,function(y){this.editorUi.hideCurrentMenu();this.editorUi.openLink(m);mxEvent.consume(y)}));return d};Menus.prototype.addLinkToItem=
function(m,d){null!=m&&(d=this.createHelpLink(d),d.style.display="inline",d.style.marginLeft="8px",m.firstChild.nextSibling.appendChild(d))};Menus.prototype.removeCustomFont=function(m,d){for(var t=0;t<this.customFonts.length;t++)if(this.customFonts[t].name==m&&this.customFonts[t].url==d){this.customFonts.splice(t,1);this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts));break}};Menus.prototype.containsFont=function(m,d){for(var t=0;t<this.customFonts.length;t++)if(this.customFonts[t].name==
m&&this.customFonts[t].url==d)return!0;for(t=0;t<this.defaultFonts.length;t++){var y=this.defaultFonts[t];if("string"!==typeof y&&y.fontFamily==m&&y.fontUrl==d||"string"===typeof y&&y==m&&null==d)return!0}return!1};Menus.prototype.addCustomFont=function(m,d){null==m||this.containsFont(m,d)||(this.customFonts.push({name:m,url:d}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))};var f=Menus.prototype.init;Menus.prototype.init=function(){function m(k,
-v,z){d.isExportToCanvas()?d.showExportDialog(mxResources.get("image"),!1,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(B,H,R,g,q,F,J,L,Q,U,V,W,X){var Z=parseInt(B);!isNaN(Z)&&0<Z&&(d.exportImage(Z/100,H&&"png"==k,R,g,q&&"png"==k,J,!L,Q,k,V,null,W,X),null!=z&&z(B,H,R,g,q,F,J,L,Q,U,V,W,X))}),!0,v,k,!0):d.isOffline()||mxClient.IS_IOS&&navigator.standalone||d.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(B,H,R,g,
-q){d.downloadFile(H&&"png"==k?"xmlpng":k,null,null,B,null,null,R,g,q)}),!1,!0)}f.apply(this,arguments);var d=this.editorUi,t=d.editor.graph,y=mxUtils.bind(t,t.isEnabled);mxClient.IS_SVG||d.isOffline()||((new Image).src=IMAGE_PATH+"/help.png");"1"==urlParams.noFileMenu&&(this.defaultMenuItems=this.defaultMenuItems.filter(function(k){return"file"!=k}));d.actions.addAction("new...",function(){var k=d.isOffline(),v=new NewDialog(d,k,!(d.mode==App.MODE_DEVICE&&"chooseFileSystemEntries"in window));d.showDialog(v.container,
+v,z){d.isExportToCanvas()?d.showExportDialog(mxResources.get("image"),!1,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(A,H,R,g,q,F,J,L,Q,U,V,W,X){var Z=parseInt(A);!isNaN(Z)&&0<Z&&(d.exportImage(Z/100,H&&"png"==k,R,g,q&&"png"==k,J,!L,Q,k,V,null,W,X),null!=z&&z(A,H,R,g,q,F,J,L,Q,U,V,W,X))}),!0,v,k,!0):d.isOffline()||mxClient.IS_IOS&&navigator.standalone||d.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(A,H,R,g,
+q){d.downloadFile(H&&"png"==k?"xmlpng":k,null,null,A,null,null,R,g,q)}),!1,!0)}f.apply(this,arguments);var d=this.editorUi,t=d.editor.graph,y=mxUtils.bind(t,t.isEnabled);mxClient.IS_SVG||d.isOffline()||((new Image).src=IMAGE_PATH+"/help.png");"1"==urlParams.noFileMenu&&(this.defaultMenuItems=this.defaultMenuItems.filter(function(k){return"file"!=k}));d.actions.addAction("new...",function(){var k=d.isOffline(),v=new NewDialog(d,k,!(d.mode==App.MODE_DEVICE&&"chooseFileSystemEntries"in window));d.showDialog(v.container,
k?350:620,k?70:460,!0,!0,function(z){d.sidebar.hideTooltip();z&&null==d.getCurrentFile()&&d.showSplash()});v.init()});d.actions.put("insertTemplate",new Action(mxResources.get("template")+"...",function(){if(t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())){var k=new NewDialog(d,null,!1,function(v){d.hideDialog();if(null!=v){var z=d.editor.graph.getFreeInsertPoint();t.setSelectionCells(d.importXml(v,Math.max(z.x,20),Math.max(z.y,20),!0,null,null,!0));t.scrollCellToVisible(t.getSelectionCell())}},
null,null,null,null,null,null,null,null,null,null,!1,mxResources.get("insert"));d.showDialog(k.container,620,460,!0,!0,function(){d.sidebar.hideTooltip()});k.init()}})).isEnabled=y;var x=d.actions.addAction("shareCursor",function(){d.setShareCursorPosition(!d.isShareCursorPosition())});x.setToggleAction(!0);x.setSelectedCallback(function(){return d.isShareCursorPosition()});x=d.actions.addAction("showRemoteCursors",function(){d.setShowRemoteCursors(!d.isShowRemoteCursors())});x.setToggleAction(!0);
x.setSelectedCallback(function(){return d.isShowRemoteCursors()});x=d.actions.addAction("points",function(){d.editor.graph.view.setUnit(mxConstants.POINTS)});x.setToggleAction(!0);x.setSelectedCallback(function(){return d.editor.graph.view.unit==mxConstants.POINTS});x=d.actions.addAction("inches",function(){d.editor.graph.view.setUnit(mxConstants.INCHES)});x.setToggleAction(!0);x.setSelectedCallback(function(){return d.editor.graph.view.unit==mxConstants.INCHES});x=d.actions.addAction("millimeters",
@@ -13952,11 +13966,11 @@ new Action(mxResources.get("light"),function(k){d.setAndPersistDarkMode(!1)}));x
x.setToggleAction(!0);x.setSelectedCallback(function(){return d.isAutoDarkMode(!0)});0<=mxUtils.indexOf(Editor.themes,"simple")&&(x=d.actions.put("toggleSimpleMode",new Action(mxResources.get("simple"),function(k){d.setCurrentTheme("simple"==Editor.currentTheme?Editor.isDarkMode()?"dark":"kennedy":"simple")})),x.setToggleAction(!0),x.visible="min"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"atlas"!=Editor.currentTheme,x.setSelectedCallback(function(){return"simple"==Editor.currentTheme}));
x=d.actions.put("toggleSketchMode",new Action(mxResources.get("sketch"),function(k){d.setSketchMode(!Editor.sketchMode)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return Editor.sketchMode});d.actions.addAction("properties...",function(){d.getPublicUrl(d.getCurrentFile(),function(k){k=new FilePropertiesDialog(d,k);d.showDialog(k.container,340,200,!0,!0);k.init()})}).isEnabled=y;window.mxFreehand&&(d.actions.put("insertFreehand",new Action(mxResources.get("freehand")+"...",function(){if(t.isEnabled()){if(null==
d.freehandWindow){var k=!mxClient.IS_IE&&!mxClient.IS_IE11;d.freehandWindow=new FreehandWindow(d,document.body.offsetWidth-420,102,176,k?126:90,k)}t.freehand.isDrawing()?t.freehand.stopDrawing():t.freehand.startDrawing();d.freehandWindow.window.setVisible(t.freehand.isDrawing())}},null,null,"X")).isEnabled=function(){return y()&&mxClient.IS_SVG});d.actions.put("exportXml",new Action(mxResources.get("formatXml")+"...",function(){var k=document.createElement("div");k.style.whiteSpace="nowrap";var v=
-null==d.pages||1>=d.pages.length,z=document.createElement("h3");mxUtils.write(z,mxResources.get("formatXml"));z.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";k.appendChild(z);var B=d.addCheckbox(k,mxResources.get("selectionOnly"),!1,t.isSelectionEmpty()),H=d.addCheckbox(k,mxResources.get("compressed"),Editor.defaultCompressed),R=d.addCheckbox(k,mxResources.get("allPages"),!v,v);R.style.marginBottom="16px";mxEvent.addListener(B,"change",function(){B.checked?R.setAttribute("disabled",
-"disabled"):R.removeAttribute("disabled")});k=new CustomDialog(d,k,mxUtils.bind(this,function(){d.downloadFile("xml",!H.checked,null,!B.checked,v||!R.checked)}),null,mxResources.get("export"));d.showDialog(k.container,300,200,!0,!0)}));Editor.enableExportUrl&&d.actions.put("exportUrl",new Action(mxResources.get("url")+"...",function(){d.showPublishLinkDialog(mxResources.get("url"),null,null,null,null,null,null,null,function(k,v,z,B,H,R,g,q,F){g=[];B&&F&&g.push("tags=%7B%7D");k=new EmbedDialog(d,d.createLink(k,
-v,!0,B,H,R,null,!0,g,null,z));d.showDialog(k.container,450,240,!0,!0);k.init()})}));d.actions.put("exportHtml",new Action(mxResources.get("formatHtmlEmbedded")+"...",function(){d.getPublicUrl(d.getCurrentFile(),function(k){d.showHtmlDialog(mxResources.get("export"),null,k,function(v,z,B,H,R,g,q,F,J,L,Q,U){d.createHtml(v,z,B,H,R,g,q,F,J,L,Q,mxUtils.bind(this,function(V,W){var X=d.getBaseFilename(q);V='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n<!DOCTYPE html>\n<html>\n<head>\n<title>'+
+null==d.pages||1>=d.pages.length,z=document.createElement("h3");mxUtils.write(z,mxResources.get("formatXml"));z.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";k.appendChild(z);var A=d.addCheckbox(k,mxResources.get("selectionOnly"),!1,t.isSelectionEmpty()),H=d.addCheckbox(k,mxResources.get("compressed"),Editor.defaultCompressed),R=d.addCheckbox(k,mxResources.get("allPages"),!v,v);R.style.marginBottom="16px";mxEvent.addListener(A,"change",function(){A.checked?R.setAttribute("disabled",
+"disabled"):R.removeAttribute("disabled")});k=new CustomDialog(d,k,mxUtils.bind(this,function(){d.downloadFile("xml",!H.checked,null,!A.checked,v||!R.checked)}),null,mxResources.get("export"));d.showDialog(k.container,300,200,!0,!0)}));Editor.enableExportUrl&&d.actions.put("exportUrl",new Action(mxResources.get("url")+"...",function(){d.showPublishLinkDialog(mxResources.get("url"),null,null,null,null,null,null,null,function(k,v,z,A,H,R,g,q,F){g=[];A&&F&&g.push("tags=%7B%7D");k=new EmbedDialog(d,d.createLink(k,
+v,!0,A,H,R,null,!0,g,null,z));d.showDialog(k.container,450,240,!0,!0);k.init()})}));d.actions.put("exportHtml",new Action(mxResources.get("formatHtmlEmbedded")+"...",function(){d.getPublicUrl(d.getCurrentFile(),function(k){d.showHtmlDialog(mxResources.get("export"),null,k,function(v,z,A,H,R,g,q,F,J,L,Q,U){d.createHtml(v,z,A,H,R,g,q,F,J,L,Q,mxUtils.bind(this,function(V,W){var X=d.getBaseFilename(q);V='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n<!DOCTYPE html>\n<html>\n<head>\n<title>'+
mxUtils.htmlEntities(X)+'</title>\n<meta charset="utf-8"/>\n</head>\n<body>'+V+"\n"+W+"\n</body>\n</html>";d.saveData(X+(".drawio"==X.substring(X.lenth-7)?"":".drawio")+".html","html",V,"text/html")}),U)})})}));d.actions.put("exportPdf",new Action(mxResources.get("formatPdf")+"...",function(){EditorUi.isElectronApp||!d.isOffline()&&!d.printPdfExport?d.showPrintDialog(mxResources.get("formatPdf"),mxUtils.bind(this,function(k,v){k=null!=d.pages?d.pages.length:1;var z=null==d.pages||1>=d.pages.length,
-B=d.getPageIndex(d.currentPage);B=null!=B?B+1:1;d.downloadFile("pdf",null,null,!v.selection,z||!v.allPages&&v.pagesFrom==B&&v.pagesTo==B,!v.crop,v.transparent,v.scale,null,v.grid,v.includeCopy,v.allPages||v.pagesFrom==B&&v.pagesTo==B?null:{from:Math.max(0,Math.min(k-1,v.pagesFrom-1)),to:Math.max(0,Math.min(k-1,v.pagesTo-1))},v.border,v.fit,v.sheetsAcross,v.sheetsDown)})):d.showDialog((new PrintDialog(d,mxResources.get("formatPdf"))).container,320,null!=d.pages&&1<d.pages.length&&(d.editor.editable||
+A=d.getPageIndex(d.currentPage);A=null!=A?A+1:1;d.downloadFile("pdf",null,null,!v.selection,z||!v.allPages&&v.pagesFrom==A&&v.pagesTo==A,!v.crop,v.transparent,v.scale,null,v.grid,v.includeCopy,v.allPages||v.pagesFrom==A&&v.pagesTo==A?null:{from:Math.max(0,Math.min(k-1,v.pagesFrom-1)),to:Math.max(0,Math.min(k-1,v.pagesTo-1))},v.border,v.fit,v.sheetsAcross,v.sheetsDown)})):d.showDialog((new PrintDialog(d,mxResources.get("formatPdf"))).container,320,null!=d.pages&&1<d.pages.length&&(d.editor.editable||
"1"!=urlParams["hide-pages"])?350:280,!0,!0)}));d.actions.addAction("open...",function(){d.pickFile()});d.actions.addAction("close",function(){function k(){null!=v&&v.removeDraft();d.fileLoaded(null)}var v=d.getCurrentFile();null!=v&&v.isModified()?d.confirm(mxResources.get("allChangesLost"),null,k,mxResources.get("cancel"),mxResources.get("discardChanges")):k()});d.actions.addAction("editShape...",mxUtils.bind(this,function(){t.getSelectionCells();if(1==t.getSelectionCount()){var k=t.getSelectionCell(),
v=t.view.getState(k);null!=v&&null!=v.shape&&null!=v.shape.stencil&&(k=new EditShapeDialog(d,k,mxResources.get("editShape")+":",630,400),d.showDialog(k.container,640,480,!0,!1),k.init())}}));d.actions.addAction("revisionHistory...",function(){d.isRevisionHistorySupported()?d.spinner.spin(document.body,mxResources.get("loading"))&&d.getRevisions(mxUtils.bind(this,function(k,v){d.spinner.stop();k=new RevisionDialog(d,k,v);d.showDialog(k.container,640,480,!0,!0);k.init()}),mxUtils.bind(this,function(k){d.handleError(null!=
k?k:mxResources.get("notAvailable"))})):d.showError(mxResources.get("error"),mxResources.get("notAvailable"),mxResources.get("ok"))});d.actions.addAction("createRevision",function(){d.actions.get("save").funct()},null,null,Editor.ctrlKey+"+S");x=d.actions.addAction("synchronize",function(){d.synchronizeCurrentFile("none"==DrawioFile.SYNC)},null,null,"Alt+Shift+S");"none"==DrawioFile.SYNC&&(x.label=mxResources.get("refresh"));d.actions.addAction("upload...",function(){var k=d.getCurrentFile();null!=
@@ -13965,71 +13979,71 @@ x.isEnabled=y);x=d.actions.put("defaultAdaptiveColors",new Action(mxResources.ge
!0;k.ignoreImage=!0;k.adaptiveColors="auto";t.model.execute(k)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return"auto"==t.adaptiveColors});x=d.actions.put("simpleAdaptiveColors",new Action(mxResources.get("simple"),function(){var k=new ChangePageSetup(d);k.ignoreColor=!0;k.ignoreImage=!0;k.adaptiveColors="simple";t.model.execute(k)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return"simple"==t.adaptiveColors});x=d.actions.put("noAdaptiveColors",new Action(mxResources.get("none"),
function(){var k=new ChangePageSetup(d);k.ignoreColor=!0;k.ignoreImage=!0;k.adaptiveColors="none";t.model.execute(k)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return"none"==t.adaptiveColors});this.put("adaptiveColors",new Menu(mxUtils.bind(this,function(k,v){this.addMenuItems(k,["defaultAdaptiveColors","-","automaticAdaptiveColors","simpleAdaptiveColors","noAdaptiveColors"],v)})));isLocalStorage&&(x=d.actions.addAction("showStartScreen",function(){mxSettings.setShowStartScreen(!mxSettings.getShowStartScreen());
mxSettings.save()}),x.setToggleAction(!0),x.setSelectedCallback(function(){return mxSettings.getShowStartScreen()}));var C=d.actions.addAction("autosave",function(){d.editor.setAutosave(!d.editor.autosave)});C.setToggleAction(!0);C.setSelectedCallback(function(){return C.isEnabled()&&d.editor.autosave});d.actions.addAction("editGeometry...",function(){for(var k=t.getSelectionCells(),v=[],z=0;z<k.length;z++)t.getModel().isVertex(k[z])&&v.push(k[z]);0<v.length&&(k=new EditGeometryDialog(d,v),d.showDialog(k.container,
-200,270,!0,!0),k.init())},null,null,Editor.ctrlKey+"+Shift+M");d.actions.addAction("copyStyle",function(){if(t.isEnabled()&&1==t.getSelectionCount()){var k=t.getSelectionCell(),v=t.getCellStyle(k,!1);d.copiedStyle={};var z=[],B=[],H;for(H in v)z.push(v[H]),B.push(H);t.copyCellStyles([k],B,z,d.copiedStyle,d.copiedStyle,null,null,null,!0)}},null,null,"Alt+C");d.actions.addAction("pasteStyle",function(){t.isEnabled()&&!t.isSelectionEmpty()&&null!=d.copiedStyle&&t.pasteCellStyles(t.includeDescendants(t.getSelectionCells()),
-d.copiedStyle,d.copiedStyle,!0)},null,null,"Alt+V");d.actions.put("exportSvg",new Action(mxResources.get("formatSvg")+"...",function(){d.showExportDialog(mxResources.get("formatSvg"),!0,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(k,v,z,B,H,R,g,q,F,J,L,Q,U,V){k=parseInt(k);d.lastExportSvgEditable=H;!isNaN(k)&&0<k&&d.exportSvg(k/100,v,z,B,H,R,g,!q,F,J,Q,U,V)}),!0,d.lastExportSvgEditable,"svg",!0)}));d.actions.put("exportPng",new Action(mxResources.get("formatPng")+
-"...",function(){m("png",d.lastExportPngEditable,function(k,v,z,B,H){d.lastExportPngEditable=H})}));d.actions.put("exportJpg",new Action(mxResources.get("formatJpg")+"...",function(){m("jpeg")}));d.actions.put("exportWebp",new Action(mxResources.get("formatWebp")+"...",function(){m("webp")}));x=d.actions.addAction("copyAsImage",mxUtils.bind(this,function(){var k=mxUtils.sortCells(t.model.getTopmostCells(t.getSelectionCells())),v=mxUtils.getXml(0==k.length?d.editor.getGraphXml():t.encodeCells(k));
+200,270,!0,!0),k.init())},null,null,Editor.ctrlKey+"+Shift+M");d.actions.addAction("copyStyle",function(){if(t.isEnabled()&&1==t.getSelectionCount()){var k=t.getSelectionCell(),v=t.getCellStyle(k,!1);d.copiedStyle={};var z=[],A=[],H;for(H in v)z.push(v[H]),A.push(H);t.copyCellStyles([k],A,z,d.copiedStyle,d.copiedStyle,null,null,null,!0)}},null,null,"Alt+C");d.actions.addAction("pasteStyle",function(){t.isEnabled()&&!t.isSelectionEmpty()&&null!=d.copiedStyle&&t.pasteCellStyles(t.includeDescendants(t.getSelectionCells()),
+d.copiedStyle,d.copiedStyle,!0)},null,null,"Alt+V");d.actions.put("exportSvg",new Action(mxResources.get("formatSvg")+"...",function(){d.showExportDialog(mxResources.get("formatSvg"),!0,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(k,v,z,A,H,R,g,q,F,J,L,Q,U,V){k=parseInt(k);d.lastExportSvgEditable=H;!isNaN(k)&&0<k&&d.exportSvg(k/100,v,z,A,H,R,g,!q,F,J,Q,U,V)}),!0,d.lastExportSvgEditable,"svg",!0)}));d.actions.put("exportPng",new Action(mxResources.get("formatPng")+
+"...",function(){m("png",d.lastExportPngEditable,function(k,v,z,A,H){d.lastExportPngEditable=H})}));d.actions.put("exportJpg",new Action(mxResources.get("formatJpg")+"...",function(){m("jpeg")}));d.actions.put("exportWebp",new Action(mxResources.get("formatWebp")+"...",function(){m("webp")}));x=d.actions.addAction("copyAsImage",mxUtils.bind(this,function(){var k=mxUtils.sortCells(t.model.getTopmostCells(t.getSelectionCells())),v=mxUtils.getXml(0==k.length?d.editor.getGraphXml():t.encodeCells(k));
d.copyImage(k,v)}),null,null,"Ctrl+Alt+X");x.visible=Editor.enableNativeCipboard&&d.isExportToCanvas()&&!mxClient.IS_SF;x=d.actions.put("shadowVisible",new Action(mxResources.get("shadow"),function(){t.setShadowVisible(!t.shadowVisible)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return t.shadowVisible});d.actions.put("about",new Action("v"+EditorUi.VERSION,function(k,v){}));d.actions.addAction("support...",function(){EditorUi.isElectronApp?d.openLink("https://github.com/jgraph/drawio-desktop/wiki/Getting-Support"):
d.openLink("https://github.com/jgraph/drawio/wiki/Getting-Support")});d.actions.addAction("exportOptionsDisabled...",function(){d.handleError({message:mxResources.get("exportOptionsDisabledDetails")},mxResources.get("exportOptionsDisabled"))});d.actions.addAction("keyboardShortcuts...",function(){!mxClient.IS_SVG||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?d.openLink("https://viewer.diagrams.net/#Uhttps%3A%2F%2Fviewer.diagrams.net%2Fshortcuts.svg"):d.openLink("shortcuts.svg")});d.actions.addAction("feedback...",
function(){var k=new FeedbackDialog(d);d.showDialog(k.container,610,360,!0,!1);k.init()});d.actions.addAction("quickStart...",function(){"ac.draw.io"===window.location.hostname?d.openLink("https://www.youtube.com/watch?v=s5BG0705MHU"):d.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(k,v){var z=(k=t.isEnabled()&&(null==v||!mxEvent.isShiftDown(v)))?"findReplace":"find";v=z+"Window";if(null==this[v]){var B="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,H=k?B?330:
-300:240;this[v]=new FindWindow(d,document.body.offsetWidth-(H+20),100,H,k?B?304:288:170,k);this[v].window.addListener("show",function(){d.fireEvent(new mxEventObject(z))});this[v].window.addListener("hide",function(){d.fireEvent(new mxEventObject(z))});this[v].window.setVisible(!0)}else this[v].window.setVisible(!this[v].window.isVisible())}),null,null,Editor.ctrlKey+"+F");x.setToggleAction(!0);x.setSelectedCallback(mxUtils.bind(this,function(){var k=t.isEnabled()?"findReplaceWindow":"findWindow";
-return null!=this[k]&&this[k].window.isVisible()}));d.actions.put("exportVsdx",new Action(mxResources.get("formatVsdx")+" (beta)...",function(){var k=null==d.pages||1>=d.pages.length;if(k)d.exportVisio();else{var v=document.createElement("div");v.style.whiteSpace="nowrap";var z=document.createElement("h3");mxUtils.write(z,mxResources.get("formatVsdx"));z.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";v.appendChild(z);var B=d.addCheckbox(v,mxResources.get("allPages"),
-!k,k);B.style.marginBottom="16px";k=new CustomDialog(d,v,mxUtils.bind(this,function(){d.exportVisio(!B.checked)}),null,mxResources.get("export"));d.showDialog(k.container,300,130,!0,!0)}}));isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&d.actions.addAction("configuration...",function(){var k=document.createElement("input");k.setAttribute("type","checkbox");k.style.marginRight="8px";k.checked=mxSettings.getShowStartScreen();k.defaultChecked=k.checked;if(Editor.isSettingsEnabled()&&("sketch"==
-Editor.currentTheme||"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var v=document.createElement("span");v.style.display="flex";v.style.alignItems="center";v.style["float"]="right";v.style.cursor="pointer";v.style.userSelect="none";v.style.marginTop="-3px";v.appendChild(k);mxUtils.write(v,mxResources.get("showStartScreen"));mxEvent.addListener(v,"click",function(B){mxEvent.getSource(B)!=k&&(k.checked=!k.checked)});header=v}v=[[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 z=d.actions.get("plugins");null==z||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||v.push([mxResources.get("plugins"),z.funct])}EditorUi.isElectronApp||v.push([mxResources.get("link"),function(B,H){if(0<H.value.length)try{var R=
+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(k,v){var z=(k=t.isEnabled()&&(null==v||!mxEvent.isShiftDown(v)))?"findReplace":"find";v=z+"Window";if(null==this[v]){var A="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,H=k?A?330:
+300:240;this[v]=new FindWindow(d,document.body.offsetWidth-(H+20),100,H,k?A?304:288:170,k);this[v].window.addListener("show",function(){d.fireEvent(new mxEventObject(z))});this[v].window.addListener("hide",function(){d.fireEvent(new mxEventObject(z))});this[v].window.setVisible(!0)}else this[v].window.setVisible(!this[v].window.isVisible())}),null,null,Editor.ctrlKey+"+F");x.setToggleAction(!0);x.setSelectedCallback(mxUtils.bind(this,function(){var k=t.isEnabled()?"findReplaceWindow":"findWindow";
+return null!=this[k]&&this[k].window.isVisible()}));d.actions.put("exportVsdx",new Action(mxResources.get("formatVsdx")+" (beta)...",function(){var k=null==d.pages||1>=d.pages.length;if(k)d.exportVisio();else{var v=document.createElement("div");v.style.whiteSpace="nowrap";var z=document.createElement("h3");mxUtils.write(z,mxResources.get("formatVsdx"));z.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";v.appendChild(z);var A=d.addCheckbox(v,mxResources.get("allPages"),
+!k,k);A.style.marginBottom="16px";k=new CustomDialog(d,v,mxUtils.bind(this,function(){d.exportVisio(!A.checked)}),null,mxResources.get("export"));d.showDialog(k.container,300,130,!0,!0)}}));isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&d.actions.addAction("configuration...",function(){var k=document.createElement("input");k.setAttribute("type","checkbox");k.style.marginRight="8px";k.checked=mxSettings.getShowStartScreen();k.defaultChecked=k.checked;if(Editor.isSettingsEnabled()&&("sketch"==
+Editor.currentTheme||"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var v=document.createElement("span");v.style.display="flex";v.style.alignItems="center";v.style["float"]="right";v.style.cursor="pointer";v.style.userSelect="none";v.style.marginTop="-3px";v.appendChild(k);mxUtils.write(v,mxResources.get("showStartScreen"));mxEvent.addListener(v,"click",function(A){mxEvent.getSource(A)!=k&&(k.checked=!k.checked)});header=v}v=[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),
+function(){try{localStorage.removeItem(Editor.configurationKey),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(A){d.handleError(A)}})}]];if(!d.isOfflineApp()&&isLocalStorage&&d.mode!=App.MODE_ATLAS){var z=d.actions.get("plugins");null==z||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||v.push([mxResources.get("plugins"),z.funct])}EditorUi.isElectronApp||v.push([mxResources.get("link"),function(A,H){if(0<H.value.length)try{var R=
JSON.parse(H.value),g=window.location.protocol+"//"+window.location.host+"/"+d.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(R)),q=new EmbedDialog(d,g);d.showDialog(q.container,450,240,!0);q.init()}catch(F){d.handleError(F)}else d.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=d.getServiceName()&&"1"!=urlParams.embed&&v.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,v,k.parentNode,"https://www.drawio.com/doc/faq/configure-diagram-editor",function(){null!=k.parentNode&&(mxSettings.setShowStartScreen(k.checked),mxSettings.save())})});
-if(mxClient.IS_CHROMEAPP||isLocalStorage){this.put("language",new Menu(mxUtils.bind(this,function(k,v){var z=mxLanguage;null==urlParams.lang&&isLocalStorage&&(z=mxSettings.settings.language);var B=mxUtils.bind(this,function(R){var g=""==R?mxResources.get("automatic"):mxLanguageMap[R],q=null;""!=g&&(q=k.addItem(g,null,mxUtils.bind(this,function(){d.setAndPersistLanguage(R);d.alert(mxResources.get("restartForChangeRequired"))}),v),(R==z||""==R&&null==z)&&k.addCheckmark(q,Editor.checkmarkImage));return q});
-B("");k.addSeparator(v);for(var H in mxLanguageMap)B(H)})));var K=Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(k){var v=K.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=v&&Editor.enableSimpleTheme&&"atlassian"!=d.getServiceName()){var z=this.get("dynamicAppearance");if(null!=z){var B=v.addMenu("",z.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);v.langIcon=B;z=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",z);this.editorUi.addListener("darkModeChanged",z);mxEvent.addListener(window,"resize",
+function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(A){d.handleError(A)}})}]])}]);d.showLocalStorageDialog(mxResources.get("configuration")+":",Editor.configurationKey,v,k.parentNode,"https://www.drawio.com/doc/faq/configure-diagram-editor",function(){null!=k.parentNode&&(mxSettings.setShowStartScreen(k.checked),mxSettings.save())})});
+if(mxClient.IS_CHROMEAPP||isLocalStorage){this.put("language",new Menu(mxUtils.bind(this,function(k,v){var z=mxLanguage;null==urlParams.lang&&isLocalStorage&&(z=mxSettings.settings.language);var A=mxUtils.bind(this,function(R){var g=""==R?mxResources.get("automatic"):mxLanguageMap[R],q=null;""!=g&&(q=k.addItem(g,null,mxUtils.bind(this,function(){d.setAndPersistLanguage(R);d.alert(mxResources.get("restartForChangeRequired"))}),v),(R==z||""==R&&null==z)&&k.addCheckmark(q,Editor.checkmarkImage));return q});
+A("");k.addSeparator(v);for(var H in mxLanguageMap)A(H)})));var K=Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(k){var v=K.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=v&&Editor.enableSimpleTheme&&"atlassian"!=d.getServiceName()){var z=this.get("dynamicAppearance");if(null!=z){var A=v.addMenu("",z.funct);A.setAttribute("title",mxResources.get("appearance"));A.className="geToolbarButton geAdaptiveAsset";A.style.backgroundPosition="center center";
+A.style.backgroundRepeat="no-repeat";A.style.backgroundSize="100% 100%";A.style.display="inline-block";A.style.cursor="pointer";A.style.zIndex="1";A.style.position="absolute";A.style.height="18px";A.style.width="18px";"atlas"==Editor.currentTheme?(A.style.filter="invert(100%)",A.style.right="11px",A.style.top="10px"):(A.style.right="10px",A.style.top="5px");document.body.appendChild(A);v.langIcon=A;z=mxUtils.bind(this,function(){var H=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
+A.style.display="atlas"==Editor.currentTheme||"min"==Editor.currentTheme||"sketch"==Editor.currentTheme?"none":"";A.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",z);this.editorUi.addListener("darkModeChanged",z);mxEvent.addListener(window,"resize",
z);z()}}return v}}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(k){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 M=x.funct;x.funct=mxUtils.bind(this,function(k,v){M.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(k,["-","outline","fullscreen"],v)});x=this.get("layout");var N=x.funct;x.funct=function(k,v){N.apply(this,arguments);k.addItem(mxResources.get("orgChart"),null,function(){var z=null,B=20,H=20,R=function(){"undefined"!==typeof mxOrgChartLayout&&null!=z&&d.tryAndHandle(mxUtils.bind(this,
-function(){var V=d.editor.graph,W=new mxOrgChartLayout(V,z,B,H),X=V.getDefaultParent();1<V.model.getChildCount(V.getSelectionCell())&&(X=V.getSelectionCell());W.execute(X)}))},g=document.createElement("div"),q=document.createElement("div");q.style.marginTop="6px";q.style.display="inline-block";q.style.width="180px";mxUtils.write(q,mxResources.get("orgChartType")+": ");g.appendChild(q);var F=document.createElement("select");F.style.width="160px";F.style.boxSizing="border-box";q=[mxResources.get("linear"),
+d.adaptiveColorsWindow.window.setVisible(!0)}));x=this.get("viewZoom");var M=x.funct;x.funct=mxUtils.bind(this,function(k,v){M.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(k,["-","outline","fullscreen"],v)});x=this.get("layout");var N=x.funct;x.funct=function(k,v){N.apply(this,arguments);k.addItem(mxResources.get("orgChart"),null,function(){var z=null,A=20,H=20,R=function(){"undefined"!==typeof mxOrgChartLayout&&null!=z&&d.tryAndHandle(mxUtils.bind(this,
+function(){var V=d.editor.graph,W=new mxOrgChartLayout(V,z,A,H),X=V.getDefaultParent();1<V.model.getChildCount(V.getSelectionCell())&&(X=V.getSelectionCell());W.execute(X)}))},g=document.createElement("div"),q=document.createElement("div");q.style.marginTop="6px";q.style.display="inline-block";q.style.width="180px";mxUtils.write(q,mxResources.get("orgChartType")+": ");g.appendChild(q);var F=document.createElement("select");F.style.width="160px";F.style.boxSizing="border-box";q=[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 J=0;J<q.length;J++){var L=document.createElement("option");mxUtils.write(L,q[J]);L.value=J;2==J&&L.setAttribute("selected","selected");F.appendChild(L)}mxEvent.addListener(F,"change",function(){z=F.value});g.appendChild(F);q=document.createElement("div");q.style.marginTop="6px";q.style.display=
-"inline-block";q.style.width="180px";mxUtils.write(q,mxResources.get("parentChildSpacing")+": ");g.appendChild(q);var Q=document.createElement("input");Q.type="number";Q.value=B;Q.style.width="160px";Q.style.boxSizing="border-box";g.appendChild(Q);mxEvent.addListener(Q,"change",function(){B=Q.value});q=document.createElement("div");q.style.marginTop="6px";q.style.display="inline-block";q.style.width="180px";mxUtils.write(q,mxResources.get("siblingSpacing")+": ");g.appendChild(q);var U=document.createElement("input");
+"inline-block";q.style.width="180px";mxUtils.write(q,mxResources.get("parentChildSpacing")+": ");g.appendChild(q);var Q=document.createElement("input");Q.type="number";Q.value=A;Q.style.width="160px";Q.style.boxSizing="border-box";g.appendChild(Q);mxEvent.addListener(Q,"change",function(){A=Q.value});q=document.createElement("div");q.style.marginTop="6px";q.style.display="inline-block";q.style.width="180px";mxUtils.write(q,mxResources.get("siblingSpacing")+": ");g.appendChild(q);var U=document.createElement("input");
U.type="number";U.value=H;U.style.width="160px";U.style.boxSizing="border-box";g.appendChild(U);mxEvent.addListener(U,"change",function(){H=U.value});q=mxUtils.button(mxResources.get("custom")+"...",function(){var V=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(F.value),parentChildSpacing:parseInt(Q.value),siblingSpacing:parseInt(U.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(V,null,2))});q.className="geBtn";g=new CustomDialog(d,g,function(){null==z&&(z=2);d.loadOrgChartLayouts(R)},
-null,null,null,q);d.showDialog(g.container,355,140,!0,!0)},v,null,y());k.addSeparator(v);k.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this,function(){var z=new mxParallelEdgeLayout(t);z.checkOverlap=!0;d.prompt(mxResources.get("spacing"),z.spacing,mxUtils.bind(this,function(B){d.tryAndHandle(mxUtils.bind(this,function(){z.spacing=B;d.executeLayout(function(){z.execute(t.getDefaultParent(),t.isSelectionEmpty()?null:t.getSelectionCells())},!1)}))}))}))}),
-v);k.addSeparator(v);d.menus.addMenuItem(k,"runLayout",v,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(k,v){if(!mxClient.IS_CHROMEAPP&&d.isOffline())this.addMenuItems(k,["keyboardShortcuts","-","about"],v);else{var z=k.addItem("Search:",null,null,v,null,null,!1);z.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 R=mxUtils.trim(B.value);13==H.keyCode&&0<R.length?(this.editorUi.openLink("https://www.drawio.com/search?src="+(EditorUi.isElectronApp?"DESKTOP":encodeURIComponent(location.host))+"&search="+encodeURIComponent(R)),B.value="",EditorUi.logEvent({category:"SEARCH-HELP",action:"search",label:R}),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==H.keyCode&&(B.value="")}));z.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"),
+null,null,null,q);d.showDialog(g.container,355,140,!0,!0)},v,null,y());k.addSeparator(v);k.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this,function(){var z=new mxParallelEdgeLayout(t);z.checkOverlap=!0;d.prompt(mxResources.get("spacing"),z.spacing,mxUtils.bind(this,function(A){d.tryAndHandle(mxUtils.bind(this,function(){z.spacing=A;d.executeLayout(function(){z.execute(t.getDefaultParent(),t.isSelectionEmpty()?null:t.getSelectionCells())},!1)}))}))}))}),
+v);k.addSeparator(v);d.menus.addMenuItem(k,"runLayout",v,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(k,v){if(!mxClient.IS_CHROMEAPP&&d.isOffline())this.addMenuItems(k,["keyboardShortcuts","-","about"],v);else{var z=k.addItem("Search:",null,null,v,null,null,!1);z.style.cursor="default";var A=document.createElement("input");A.setAttribute("type","text");A.setAttribute("size","25");A.style.borderWidth="1px";A.style.marginLeft="8px";mxEvent.addListener(A,
+"keydown",mxUtils.bind(this,function(H){var R=mxUtils.trim(A.value);13==H.keyCode&&0<R.length?(this.editorUi.openLink("https://www.drawio.com/search?src="+(EditorUi.isElectronApp?"DESKTOP":encodeURIComponent(location.host))+"&search="+encodeURIComponent(R)),A.value="",EditorUi.logEvent({category:"SEARCH-HELP",action:"search",label:R}),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==H.keyCode&&(A.value="")}));z.firstChild.nextSibling.appendChild(A);mxEvent.addGestureListeners(A,
+function(H){document.activeElement!=A&&A.focus();mxEvent.consume(H)},function(H){mxEvent.consume(H)},function(H){mxEvent.consume(H)});window.setTimeout(function(){A.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(k,"- keyboardShortcuts quickStart website support -".split(" "),v),"1"!=urlParams.disableUpdate&&this.addMenuItems(k,["check4Updates","-"],v),this.addMenuItems(k,"desktopResetZoom desktopZoomIn desktopZoomOut - openDevTools - about".split(" "),v)):this.addMenuItems(k,"- keyboardShortcuts quickStart support - about".split(" "),v)}"1"==urlParams.test&&
(k.addSeparator(v),this.addSubmenu("testDevelop",k,v))})));d.actions.addAction("languageCode...",function(){var k=new FilenameDialog(d,Graph.diagramLanguage||"",mxResources.get("ok"),mxUtils.bind(this,function(v){null!=v&&(Graph.diagramLanguage=0<v.length?v:null,Graph.translateDiagram=!0,t.refresh())}),mxResources.get("languageCode"),null,null,"https://www.drawio.com/blog/translate-diagrams");d.showDialog(k.container,340,80,!0,!0);k.init()});this.put("diagramLanguage",new Menu(mxUtils.bind(this,function(k,
v){this.addMenuItems(k,["languageCode","-"],v);v=k.addItem(mxResources.get("disabled"),null,function(){Graph.translateDiagram=!1;t.refresh()},v);Graph.translateDiagram||k.addCheckmark(v,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(!t.isSelectionEmpty()){var k=t.cloneCells(t.getSelectionCells()),v=t.getBoundingBoxFromGeometry(k,
-!0);k=t.moveCells(k,-v.x,-v.y);d.showTextDialog("Create Sidebar Entry","this.addDataEntry('tag1 tag2', "+v.width+", "+v.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(t.encodeCells(k)))+"'),")}}));d.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function k(g){return null==g||null==g.boundingBox||!isNaN(g.boundingBox.x)&&!isNaN(g.boundingBox.y)&&!isNaN(g.boundingBox.width)&&!isNaN(g.boundingBox.height)}var v=t.getGraphBounds(),z=t.view.translate,B=t.view.scale;t.insertVertex(t.getDefaultParent(),
-null,"",v.x/B-z.x,v.y/B-z.y,v.width/B,v.height/B,"fillColor=none;strokeColor=red;");var H=0,R=0;t.view.states.visit(function(g,q){g=!0;k(q.shape)||(console.log("invalid shape",q.cell.id,q.shape),g=!1);k(q.text)||(console.log("invalid text",q.cell.id,q.text),g=!1);g||H++;R++});console.log("states checked",R,"invalid",H)}));d.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var k=null!=d.pages&&null!=d.getCurrentFile()?d.getCurrentFile().getAnonymizedXmlForPages(d.pages):"";k=new TextareaDialog(d,
+!0);k=t.moveCells(k,-v.x,-v.y);d.showTextDialog("Create Sidebar Entry","this.addDataEntry('tag1 tag2', "+v.width+", "+v.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(t.encodeCells(k)))+"'),")}}));d.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function k(g){return null==g||null==g.boundingBox||!isNaN(g.boundingBox.x)&&!isNaN(g.boundingBox.y)&&!isNaN(g.boundingBox.width)&&!isNaN(g.boundingBox.height)}var v=t.getGraphBounds(),z=t.view.translate,A=t.view.scale;t.insertVertex(t.getDefaultParent(),
+null,"",v.x/A-z.x,v.y/A-z.y,v.width/A,v.height/A,"fillColor=none;strokeColor=red;");var H=0,R=0;t.view.states.visit(function(g,q){g=!0;k(q.shape)||(console.log("invalid shape",q.cell.id,q.shape),g=!1);k(q.text)||(console.log("invalid text",q.cell.id,q.text),g=!1);g||H++;R++});console.log("states checked",R,"invalid",H)}));d.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var k=null!=d.pages&&null!=d.getCurrentFile()?d.getCurrentFile().getAnonymizedXmlForPages(d.pages):"";k=new TextareaDialog(d,
"Paste Data:",k,function(v){if(0<v.length)try{var z=function(q){function F(ba){if(null==Y[ba]){if(Y[ba]=!0,null!=Q[ba]){for(;0<Q[ba].length;){var ea=Q[ba].pop();F(ea)}delete Q[ba]}}else mxLog.debug(J+": Visited: "+ba)}var J=q.parentNode.id,L=q.childNodes;q={};for(var Q={},U=null,V={},W=0;W<L.length;W++){var X=L[W];if(null!=X.id&&0<X.id.length)if(null==q[X.id]){q[X.id]=X.id;var Z=X.getAttribute("parent");null==Z?null!=U?mxLog.debug(J+": Multiple roots: "+X.id):U=X.id:(null==Q[Z]&&(Q[Z]=[]),Q[Z].push(X.id))}else V[X.id]=
-X.id}L=Object.keys(V);0<L.length?(L=J+": "+L.length+" Duplicates: "+L.join(", "),mxLog.debug(L+" (see console)")):mxLog.debug(J+": Checked");var Y={};null==U?mxLog.debug(J+": No root"):(F(U),Object.keys(Y).length!=Object.keys(q).length&&(mxLog.debug(J+": Invalid tree: (see console)"),console.log(J+": Invalid tree",Q)))};"<"!=v.charAt(0)&&(v=Graph.decompress(v),mxLog.debug("See console for uncompressed XML"),console.log("xml",v));var B=mxUtils.parseXml(v),H=d.getPagesForNode(B.documentElement,"mxGraphModel");
-if(null!=H&&0<H.length)try{var R=d.getHashValueForPages(H);mxLog.debug("Checksum: ",R)}catch(q){mxLog.debug("Error: ",q.message)}else mxLog.debug("No pages found for checksum");var g=B.getElementsByTagName("root");for(v=0;v<g.length;v++)z(g[v]);mxLog.show()}catch(q){d.handleError(q),null!=window.console&&console.error(q)}});d.showDialog(k.container,620,460,!0,!0);k.init()}));var P=null;d.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=d.pages){var k=new TextareaDialog(d,"Diff/Sync:",
-"",function(v){var z=d.getCurrentFile();if(0<v.length&&null!=z)try{var B=JSON.parse(v);z.patch([B],null,!0,!0);d.hideDialog()}catch(H){d.handleError(H)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(v,z){P=d.getPagesForXml(d.getFileData(!0));k.textarea.value="Snapshot updated "+(new Date).toLocaleString()+" Checksum "+d.getHashValueForPages(P)}],["Diff",function(v,z){try{k.textarea.value=JSON.stringify(d.diffPages(P,d.pages),null,2)}catch(B){d.handleError(B)}}]]);null==P?
+X.id}L=Object.keys(V);0<L.length?(L=J+": "+L.length+" Duplicates: "+L.join(", "),mxLog.debug(L+" (see console)")):mxLog.debug(J+": Checked");var Y={};null==U?mxLog.debug(J+": No root"):(F(U),Object.keys(Y).length!=Object.keys(q).length&&(mxLog.debug(J+": Invalid tree: (see console)"),console.log(J+": Invalid tree",Q)))};"<"!=v.charAt(0)&&(v=Graph.decompress(v),mxLog.debug("See console for uncompressed XML"),console.log("xml",v));var A=mxUtils.parseXml(v),H=d.getPagesForNode(A.documentElement,"mxGraphModel");
+if(null!=H&&0<H.length)try{var R=d.getHashValueForPages(H);mxLog.debug("Checksum: ",R)}catch(q){mxLog.debug("Error: ",q.message)}else mxLog.debug("No pages found for checksum");var g=A.getElementsByTagName("root");for(v=0;v<g.length;v++)z(g[v]);mxLog.show()}catch(q){d.handleError(q),null!=window.console&&console.error(q)}});d.showDialog(k.container,620,460,!0,!0);k.init()}));var P=null;d.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=d.pages){var k=new TextareaDialog(d,"Diff/Sync:",
+"",function(v){var z=d.getCurrentFile();if(0<v.length&&null!=z)try{var A=JSON.parse(v);z.patch([A],null,!0,!0);d.hideDialog()}catch(H){d.handleError(H)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(v,z){P=d.getPagesForXml(d.getFileData(!0));k.textarea.value="Snapshot updated "+(new Date).toLocaleString()+" Checksum "+d.getHashValueForPages(P)}],["Diff",function(v,z){try{k.textarea.value=JSON.stringify(d.diffPages(P,d.pages),null,2)}catch(A){d.handleError(A)}}]]);null==P?
(P=d.getPagesForXml(d.getFileData(!0)),k.textarea.value="Snapshot created "+(new Date).toLocaleString()+" Checksum "+d.getHashValueForPages(P)):k.textarea.value=JSON.stringify(d.diffPages(P,d.pages),null,2);d.showDialog(k.container,620,460,!0,!0);k.init()}else d.alert("No pages")}));d.actions.addAction("testChecksum",mxUtils.bind(this,function(){var k=d.getCurrentFile();null!=d.pages&&null!=k?d.spinner.spin(document.body,mxResources.get("loading"))&&k.getLatestVersion(function(v){d.spinner.stop();
-var z=d.getHashValueForPages(d.pages),B=k.getCurrentRevisionId(),H=d.getHashValueForPages(v.getShadowPages()),R=v.getDescriptorChecksum(v.getDescriptor()),g=v.getCurrentRevisionId();console.log("Local File",[k],"modified",k.isModified(),"checksum",z);console.log("Remote File",[v],"rev",g==B,"desc",R==H,"checksum",H);d.alert("Checksums "+(H==z?"match":"no not match"))},function(v){console.log("Error getLatestVersion",v);d.handleError(v)}):console.log("Checksum: no file or pages")}));d.actions.addAction("testCheckPages",
+var z=d.getHashValueForPages(d.pages),A=k.getCurrentRevisionId(),H=d.getHashValueForPages(v.getShadowPages()),R=v.getDescriptorChecksum(v.getDescriptor()),g=v.getCurrentRevisionId();console.log("Local File",[k],"modified",k.isModified(),"checksum",z);console.log("Remote File",[v],"rev",g==A,"desc",R==H,"checksum",H);d.alert("Checksums "+(H==z?"match":"no not match"))},function(v){console.log("Error getLatestVersion",v);d.handleError(v)}):console.log("Checksum: no file or pages")}));d.actions.addAction("testCheckPages",
mxUtils.bind(this,function(){var k=d.getCurrentFile();console.log("editorUi",d,"file",k);if(null!=k&&k.isRealtime()){console.log("Checksum ownPages",d.getHashValueForPages(k.ownPages));console.log("Checksum theirPages",d.getHashValueForPages(k.theirPages));console.log("diff ownPages/theirPages",d.diffPages(k.ownPages,k.theirPages));var v=k.getShadowPages();null!=v&&(console.log("Checksum shadowPages",d.getHashValueForPages(v)),console.log("diff shadowPages/ownPages",d.diffPages(v,k.ownPages)),console.log("diff ownPages/shadowPages",
d.diffPages(k.ownPages,v)),console.log("diff theirPages/shadowPages",d.diffPages(k.theirPages,v)));null!=k.sync&&null!=k.sync.snapshot&&(console.log("Checksum snapshot",d.getHashValueForPages(k.sync.snapshot)),console.log("diff ownPages/snapshot",d.diffPages(k.ownPages,k.sync.snapshot)),console.log("diff theirPages/snapshot",d.diffPages(k.theirPages,k.sync.snapshot)),null!=d.pages&&console.log("diff snapshot/actualPages",d.diffPages(k.sync.snapshot,d.pages)));null!=d.pages&&(console.log("diff ownPages/actualPages",
d.diffPages(k.ownPages,d.pages)),console.log("diff theirPages/actualPages",d.diffPages(k.theirPages,d.pages)))}null!=k&&console.log("Shadow pages",[d.getXmlForPages(k.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 k=d.getCurrentFile();null!=k&&k.isRealtime()&&null!=k.shadowPages&&(console.log("patching actualPages to shadowPages",k.patch([d.diffPages(k.shadowPages,
-d.pages)])),k.ownPages=d.clonePages(d.pages),k.theirPages=d.clonePages(d.pages),k.shadowPages=d.clonePages(d.pages),null!=k.sync&&(k.sync.snapshot=d.clonePages(d.pages)))}));d.actions.addAction("testOptimize",mxUtils.bind(this,function(){t.model.beginUpdate();try{var k=t.model.cells,v=0,z=[],B=[],H;for(H in k){var R=k[H],g=t.getCurrentCellStyle(R)[mxConstants.STYLE_IMAGE];null!=g&&"data:"==g.substring(0,5)&&(null==z[g]&&(z[g]=(z[g]||0)+1,v++),B.push(R))}t.setCellStyles(mxConstants.STYLE_IMAGE,null,
-B);console.log("Removed",v,"image(s) from",B.length,"cell(s): ",[B,z])}finally{t.model.endUpdate()}}));d.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(d,t.getModel())}));d.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var k=new mxImageExport,v=t.getGraphBounds(),z=t.view.scale,B=mxUtils.createXmlDocument(),H=B.createElement("output");B.appendChild(H);B=new mxXmlCanvas2D(H);B.translate(Math.floor((1-v.x)/z),Math.floor((1-v.y)/z));B.scale(1/z);var R=
-0,g=B.save;B.save=function(){R++;g.apply(this,arguments)};var q=B.restore;B.restore=function(){R--;q.apply(this,arguments)};var F=k.drawShape;k.drawShape=function(J){mxLog.debug("entering shape",J,R);F.apply(this,arguments);mxLog.debug("leaving shape",J,R)};k.drawState(t.getView().getState(t.model.root),B);mxLog.show();mxLog.debug(mxUtils.getXml(H));mxLog.debug("stateCounter",R)}));d.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=
-mxPopupMenu.prototype.zIndex-2});var I=null,c=null,e=null,l=null,n=null,p=null,u=null,A=null;d.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=I?(t.view.revalidate=I,I=null):(I=t.view.revalidate,t.view.revalidate=function(){var k=Date.now(),v=I.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-k+" ms","args",arguments);return v});null!=c?(d.selectPage=c,c=null):(c=d.selectPage,d.selectPage=function(){var k=Date.now(),v=c.apply(this,
+d.pages)])),k.ownPages=d.clonePages(d.pages),k.theirPages=d.clonePages(d.pages),k.shadowPages=d.clonePages(d.pages),null!=k.sync&&(k.sync.snapshot=d.clonePages(d.pages)))}));d.actions.addAction("testOptimize",mxUtils.bind(this,function(){t.model.beginUpdate();try{var k=t.model.cells,v=0,z=[],A=[],H;for(H in k){var R=k[H],g=t.getCurrentCellStyle(R)[mxConstants.STYLE_IMAGE];null!=g&&"data:"==g.substring(0,5)&&(null==z[g]&&(z[g]=(z[g]||0)+1,v++),A.push(R))}t.setCellStyles(mxConstants.STYLE_IMAGE,null,
+A);console.log("Removed",v,"image(s) from",A.length,"cell(s): ",[A,z])}finally{t.model.endUpdate()}}));d.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(d,t.getModel())}));d.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var k=new mxImageExport,v=t.getGraphBounds(),z=t.view.scale,A=mxUtils.createXmlDocument(),H=A.createElement("output");A.appendChild(H);A=new mxXmlCanvas2D(H);A.translate(Math.floor((1-v.x)/z),Math.floor((1-v.y)/z));A.scale(1/z);var R=
+0,g=A.save;A.save=function(){R++;g.apply(this,arguments)};var q=A.restore;A.restore=function(){R--;q.apply(this,arguments)};var F=k.drawShape;k.drawShape=function(J){mxLog.debug("entering shape",J,R);F.apply(this,arguments);mxLog.debug("leaving shape",J,R)};k.drawState(t.getView().getState(t.model.root),A);mxLog.show();mxLog.debug(mxUtils.getXml(H));mxLog.debug("stateCounter",R)}));d.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=
+mxPopupMenu.prototype.zIndex-2});var I=null,c=null,e=null,l=null,n=null,p=null,u=null,B=null;d.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=I?(t.view.revalidate=I,I=null):(I=t.view.revalidate,t.view.revalidate=function(){var k=Date.now(),v=I.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-k+" ms","args",arguments);return v});null!=c?(d.selectPage=c,c=null):(c=d.selectPage,d.selectPage=function(){var k=Date.now(),v=c.apply(this,
arguments);EditorUi.debug("[Performance] EditorUi.selectPage",[this],"time",Date.now()-k+" ms","args",arguments);return v});null!=e?(d.diffPages=e,e=null):(e=d.diffPages,d.diffPages=function(){var k=Date.now(),v=e.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-k+" ms","args",arguments);return v});null!=l?(d.patchPages=l,l=null):(l=d.patchPages,d.patchPages=function(){var k=Date.now(),v=l.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",
[this],"time",Date.now()-k+" ms","args",arguments);return v});null!=n?(d.clonePages=n,n=null):(n=d.clonePages,d.clonePages=function(){var k=Date.now(),v=n.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-k+" ms","args",arguments);return v});null!=u?(d.getHashValueForPages=u,u=null):(u=d.getHashValueForPages,d.getHashValueForPages=function(){var k=Date.now(),v=u.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],
-"time",Date.now()-k+" ms","args",arguments);return v});null!=A?(d.resolveCrossReferences=A,A=null):(A=d.resolveCrossReferences,d.resolveCrossReferences=function(){var k=Date.now(),v=A.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-k+" ms","args",arguments);return v});null!=p?(d.getFileData=p,p=null):(p=d.getFileData,d.getFileData=function(){var k=Date.now(),v=p.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",
+"time",Date.now()-k+" ms","args",arguments);return v});null!=B?(d.resolveCrossReferences=B,B=null):(B=d.resolveCrossReferences,d.resolveCrossReferences=function(){var k=Date.now(),v=B.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-k+" ms","args",arguments);return v});null!=p?(d.getFileData=p,p=null):(p=d.getFileData,d.getFileData=function(){var k=Date.now(),v=p.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",
[this],"time",Date.now()-k+" ms","args",arguments);return v});EditorUi.debug("[Performance]",null!=I?"Enabled":"Disabled")}));this.put("testDevelop",new Menu(mxUtils.bind(this,function(k,v){this.addMenuItems(k,"createSidebarEntry showBoundingBox - testCheckPages testChecksum testFixPages - testCheckFile testDiff - testInspect testOptimize - testXmlImageExport -".split(" "),v);var z=k.addItem(mxResources.get("testPerformance"),null,function(){d.actions.get("testPerformance").funct()},v);null!=I&&k.addCheckmark(z,
Editor.checkmarkImage);this.addMenuItems(k,["-","testShowConsole"],v)})))}d.actions.put("shapes",new Action(mxResources.get("moreShapes")+"...",function(k){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(k){t.isEnabled()&&
-(k=new mxCell("",new mxGeometry(0,0,120,120),d.defaultCustomShapeStyle),k.vertex=!0,k=new EditShapeDialog(d,k,mxResources.get("editShape")+":",630,400),d.showDialog(k.container,640,480,!0,!1),k.init())})).isEnabled=y;d.actions.put("embedHtml",new Action(mxResources.get("html")+"...",function(){d.getPublicUrl(d.getCurrentFile(),function(k){d.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/doc/faq/embed-html-options",k,function(v,z,B,H,R,g,q,F,J,L,Q,U){d.createHtml(v,z,B,H,R,g,q,F,
+(k=new mxCell("",new mxGeometry(0,0,120,120),d.defaultCustomShapeStyle),k.vertex=!0,k=new EditShapeDialog(d,k,mxResources.get("editShape")+":",630,400),d.showDialog(k.container,640,480,!0,!1),k.init())})).isEnabled=y;d.actions.put("embedHtml",new Action(mxResources.get("html")+"...",function(){d.getPublicUrl(d.getCurrentFile(),function(k){d.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/doc/faq/embed-html-options",k,function(v,z,A,H,R,g,q,F,J,L,Q,U){d.createHtml(v,z,A,H,R,g,q,F,
J,L,Q,mxUtils.bind(this,function(V,W){var X=new EmbedDialog(d,"\x3c!-- "+d.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 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(W)[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()}),U)})})}));d.actions.put("liveImage",new Action("Live image...",function(){var k=d.getCurrentFile();null!=k&&d.getPublicUrl(k,function(v){null!=v?(v=new EmbedDialog(d,'<img src="'+(k.constructor!=DriveFile?v:"https://drive.google.com/uc?id="+k.getId())+
-'"/>'),d.showDialog(v.container,450,240,!0,!0),v.init()):d.handleError({message:mxResources.get("invalidPublicUrl")})})}));d.actions.put("embedImage",new Action(mxResources.get("image")+"...",function(){d.showEmbedImageDialog(function(k,v,z,B,H,R){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedImage(k,v,z,B,H,R,function(g){d.spinner.stop();g=new EmbedDialog(d,g);d.showDialog(g.container,450,240,!0,!0);g.init()},function(g){d.spinner.stop();d.handleError(g)})},mxResources.get("image"),
-mxResources.get("retina"),d.isExportToCanvas())}));d.actions.put("embedSvg",new Action(mxResources.get("formatSvg")+"...",function(){d.showEmbedImageDialog(function(k,v,z,B,H,R){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedSvg(k,v,z,B,H,R,function(g){d.spinner.stop();g=new EmbedDialog(d,g);d.showDialog(g.container,450,240,!0,!0);g.init()},function(g){d.spinner.stop();d.handleError(g)})},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(k){var v=t.getGraphBounds();d.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,v.height/t.view.scale))+2,null,null,null,k,d.getCurrentFile(),function(z,B,H,R,g,q,F,J,L,Q){var U=[];L&&U.push("tags=%7B%7D");z=new EmbedDialog(d,'<iframe frameborder="0" style="width:'+F+";height:"+J+';" src="'+d.createLink(z,B,!0,R,g,q,"public"==Q?k:null,null,U,null,
+'"/>'),d.showDialog(v.container,450,240,!0,!0),v.init()):d.handleError({message:mxResources.get("invalidPublicUrl")})})}));d.actions.put("embedImage",new Action(mxResources.get("image")+"...",function(){d.showEmbedImageDialog(function(k,v,z,A,H,R){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedImage(k,v,z,A,H,R,function(g){d.spinner.stop();g=new EmbedDialog(d,g);d.showDialog(g.container,450,240,!0,!0);g.init()},function(g){d.spinner.stop();d.handleError(g)})},mxResources.get("image"),
+mxResources.get("retina"),d.isExportToCanvas())}));d.actions.put("embedSvg",new Action(mxResources.get("formatSvg")+"...",function(){d.showEmbedImageDialog(function(k,v,z,A,H,R){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedSvg(k,v,z,A,H,R,function(g){d.spinner.stop();g=new EmbedDialog(d,g);d.showDialog(g.container,450,240,!0,!0);g.init()},function(g){d.spinner.stop();d.handleError(g)})},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(k){var v=t.getGraphBounds();d.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,v.height/t.view.scale))+2,null,null,null,k,d.getCurrentFile(),function(z,A,H,R,g,q,F,J,L,Q){var U=[];L&&U.push("tags=%7B%7D");z=new EmbedDialog(d,'<iframe frameborder="0" style="width:'+F+";height:"+J+';" src="'+d.createLink(z,A,!0,R,g,q,"public"==Q?k:null,null,U,null,
H)+'"></iframe>');d.showDialog(z.container,450,240,!0,!0);z.init()},!0)})}));d.actions.put("embedNotion",new Action(mxResources.get("notion")+"...",function(){var k=document.createElement("div");k.style.position="absolute";k.style.bottom="30px";k.style.textAlign="center";k.style.width="100%";k.style.left="0px";var v=document.createElement("a");v.setAttribute("href","javascript:void(0);");v.setAttribute("target","_blank");v.style.cursor="pointer";mxUtils.write(v,mxResources.get("getNotionChromeExtension"));
k.appendChild(v);mxUtils.setPrefixedStyle(v.style,"transition","all 1s ease");mxUtils.setOpacity(v,0);window.setTimeout(function(){mxUtils.setOpacity(v,100)},300);mxEvent.addListener(v,"click",function(z){d.openLink("https://chrome.google.com/webstore/detail/drawio-for-notion/plhaalebpkihaccllnkdaokdoeaokmle");mxEvent.consume(z)});d.getPublicUrl(d.getCurrentFile(),function(z){d.showPublishLinkDialog(mxResources.get("notion"),null,null,!0,"https://www.drawio.com/blog/drawio-notion",k,z,d.getCurrentFile(),
-function(B,H,R,g,q,F,J,L,Q,U){J=["border=0"];Q&&J.push("tags=%7B%7D");B=new EmbedDialog(d,d.createLink(B,H,!0,g,q,F,"public"==U?z:null,null,J,null,R));d.showDialog(B.container,450,240,!0,!0);B.init()})})}));d.actions.put("publishLink",new Action(mxResources.get("link")+"...",function(){d.getPublicUrl(d.getCurrentFile(),function(k){d.showPublishLinkDialog(null,null,null,null,null,null,k,d.getCurrentFile(),function(v,z,B,H,R,g,q,F,J,L){q=[];H&&J&&q.push("tags=%7B%7D");v=new EmbedDialog(d,d.createLink(v,
-z,!0,H,R,g,"public"==L?k:null,null,q,null,B));d.showDialog(v.container,450,240,!0,!0);v.init()})})}));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(A,H,R,g,q,F,J,L,Q,U){J=["border=0"];Q&&J.push("tags=%7B%7D");A=new EmbedDialog(d,d.createLink(A,H,!0,g,q,F,"public"==U?z:null,null,J,null,R));d.showDialog(A.container,450,240,!0,!0);A.init()})})}));d.actions.put("publishLink",new Action(mxResources.get("link")+"...",function(){d.getPublicUrl(d.getCurrentFile(),function(k){d.showPublishLinkDialog(null,null,null,null,null,null,k,d.getCurrentFile(),function(v,z,A,H,R,g,q,F,J,L){q=[];H&&J&&q.push("tags=%7B%7D");v=new EmbedDialog(d,d.createLink(v,
+z,!0,H,R,g,"public"==L?k:null,null,q,null,A));d.showDialog(v.container,450,240,!0,!0);v.init()})})}));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(k){k=new GoogleSitesDialog(d,k);d.showDialog(k.container,420,256,!0,!0);k.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 k=d.sidebar.isEntryVisible("search");d.sidebar.showPalette("search",!k);Editor.isSettingsEnabled()&&(mxSettings.settings.search=!k,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(k){t.isEnabled()&&(d.clearDefaultStyle(),Editor.sketchMode&&d.setSketchMode(!1))};"1"==urlParams.embed&&(d.actions.get("saveAs").setEnabled(!1),d.actions.get("save").funct=function(k){t.isEditing()&&t.stopEditing();var v="0"!=urlParams.pages||null!=d.pages&&1<d.pages.length?d.getFileData(!0):mxUtils.getXml(d.editor.getGraphXml());if("json"==urlParams.proto){var z=d.createLoadMessage("save");z.xml=v;!0!==
@@ -14038,42 +14052,42 @@ k||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||(z.exit=!0);v=JSON.s
k()}},null,null,"1"==urlParams.embedInline?"Escape":null));this.put("exportAs",new Menu(mxUtils.bind(this,function(k,v){d.isExportToCanvas()?(this.addMenuItems(k,["exportPng"],v),d.jpgSupported&&this.addMenuItems(k,["exportJpg"],v),d.webpSupported&&this.addMenuItems(k,["exportWebp"],v)):d.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(k,["exportPng","exportJpg"],v);this.addMenuItems(k,["exportSvg","-"],v);d.isOffline()||d.printPdfExport?this.addMenuItems(k,["exportPdf"],v):
d.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(k,["exportPdf"],v);mxClient.IS_IE||"undefined"===typeof VsdxExport&&d.isOffline()||this.addMenuItems(k,["exportVsdx"],v);this.addMenuItems(k,["-","exportHtml","exportXml","exportUrl"],v);d.isOffline()||(k.addSeparator(v),this.addMenuItem(k,"export",v).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"min"!=Editor.currentTheme||this.addMenuItems(k,["publishLink"],
v);d.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||(k.addSeparator(v),d.menus.addSubmenu("embed",k,v))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(k,v){function z(R){R.pickFile(function(g){d.spinner.spin(document.body,mxResources.get("loading"))&&R.getFile(g,function(q){var F="data:image/"==q.getData().substring(0,11)?H(q.getTitle()):"text/xml";/\.svg$/i.test(q.getTitle())&&!d.editor.isDataSvg(q.getData())&&
-(q.setData(Editor.createSvgDataUri(q.getData())),F="image/svg+xml");B(q.getData(),F,q.getTitle())},function(q){d.handleError(q,null!=q?mxResources.get("errorLoadingFile"):null)},R==d.drive)},!0)}var B=mxUtils.bind(this,function(R,g,q){var F=t.view,J=t.getGraphBounds(),L=t.snap(Math.ceil(Math.max(0,J.x/F.scale-F.translate.x)+4*t.gridSize)),Q=t.snap(Math.ceil(Math.max(0,(J.y+J.height)/F.scale-F.translate.y)+4*t.gridSize));"data:image/"==R.substring(0,11)?d.loadImage(R,mxUtils.bind(this,function(U){var V=
+(q.setData(Editor.createSvgDataUri(q.getData())),F="image/svg+xml");A(q.getData(),F,q.getTitle())},function(q){d.handleError(q,null!=q?mxResources.get("errorLoadingFile"):null)},R==d.drive)},!0)}var A=mxUtils.bind(this,function(R,g,q){var F=t.view,J=t.getGraphBounds(),L=t.snap(Math.ceil(Math.max(0,J.x/F.scale-F.translate.x)+4*t.gridSize)),Q=t.snap(Math.ceil(Math.max(0,(J.y+J.height)/F.scale-F.translate.y)+4*t.gridSize));"data:image/"==R.substring(0,11)?d.loadImage(R,mxUtils.bind(this,function(U){var V=
!0,W=mxUtils.bind(this,function(){d.resizeImage(U,R,mxUtils.bind(this,function(X,Z,Y){X=V?Math.min(1,Math.min(d.maxImageSize/Z,d.maxImageSize/Y)):1;d.importFile(R,g,L,Q,Math.round(Z*X),Math.round(Y*X),q,function(ba){d.spinner.stop();t.setSelectionCells(ba);t.scrollCellToVisible(t.getSelectionCell())})}),V)});R.length>d.resampleThreshold?d.confirmImageResize(function(X){V=X;W()}):W()}),mxUtils.bind(this,function(){d.handleError({message:mxResources.get("cannotOpenFile")})})):d.importFile(R,g,L,Q,0,
0,q,function(U){d.spinner.stop();t.setSelectionCells(U);t.scrollCellToVisible(t.getSelectionCell())})}),H=mxUtils.bind(this,function(R){var g="text/xml";/\.png$/i.test(R)?g="image/png":/\.jpe?g$/i.test(R)?g="image/jpg":/\.gif$/i.test(R)?g="image/gif":/\.pdf$/i.test(R)&&(g="application/pdf");return g});"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=d.drive?k.addItem(mxResources.get("googleDrive")+"...",null,function(){z(d.drive)},v):d.isModeEnabled(App.MODE_GOOGLE)&&k.addItem(mxResources.get("googleDrive")+
" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1));d.isModeReady(App.MODE_ONEDRIVE)?k.addItem(mxResources.get("oneDrive")+"...",null,function(){z(d.oneDrive)},v):d.isModeEnabled(App.MODE_ONEDRIVE)&&k.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1);d.isModeReady(App.MODE_DROPBOX)?k.addItem(mxResources.get("dropbox")+"...",null,function(){z(d.dropbox)},v):d.isModeEnabled(App.MODE_DROPBOX)&&k.addItem(mxResources.get("dropbox")+
" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1);k.addSeparator(v);d.isModeReady(App.MODE_GITHUB)&&k.addItem(mxResources.get("github")+"...",null,function(){z(d.gitHub)},v);d.isModeReady(App.MODE_GITLAB)&&k.addItem(mxResources.get("gitlab")+"...",null,function(){z(d.gitLab)},v);d.isModeReady(App.MODE_TRELLO)?k.addItem(mxResources.get("trello")+"...",null,function(){z(d.trello)},v):d.isModeEnabled(App.MODE_TRELLO)&&k.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+
"...)",null,function(){},v,null,!1);k.addSeparator(v);isLocalStorage&&"0"!=urlParams.browser&&k.addItem(mxResources.get("browser")+"...",null,function(){d.importLocalFile(!1)},v);"1"!=urlParams.noDevice&&k.addItem(mxResources.get("device")+"...",null,function(){d.importLocalFile(!0)},v);d.isOffline()||(k.addSeparator(v),k.addItem(mxResources.get("url")+"...",null,function(){var R=new FilenameDialog(d,"",mxResources.get("import"),function(g){if(null!=g&&0<g.length&&d.spinner.spin(document.body,mxResources.get("loading"))){var q=
-/(\.png)($|\?)/i.test(g)?"image/png":"text/xml";d.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(g),function(F){B(F,q,g)},function(){d.spinner.stop();d.handleError(null,mxResources.get("errorLoadingFile"))},"image/png"==q)}},mxResources.get("url"));d.showDialog(R.container,300,80,!0,!0);R.init()},v))}))).isEnabled=y;this.put("dynamicAppearance",new Menu(mxUtils.bind(this,function(k,v){var z=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;"simple"==Editor.currentTheme&&
+/(\.png)($|\?)/i.test(g)?"image/png":"text/xml";d.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(g),function(F){A(F,q,g)},function(){d.spinner.stop();d.handleError(null,mxResources.get("errorLoadingFile"))},"image/png"==q)}},mxResources.get("url"));d.showDialog(R.container,300,80,!0,!0);R.init()},v))}))).isEnabled=y;this.put("dynamicAppearance",new Menu(mxUtils.bind(this,function(k,v){var z=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;"simple"==Editor.currentTheme&&
(750>z&&this.addSubmenu("viewZoom",k,v,mxResources.get("zoom")),460>z&&d.isPageMenuVisible()&&this.addSubmenu("pages",k,v),320>z&&this.addSubmenu("insert",k,v),360>z&&"1"!=urlParams.embed&&"draw.io"==d.getServiceName()&&this.addSubmenu("share",k,v));this.addMenuItems(k,["-","lightMode","darkMode"],v);d.isAutoDarkModeSupported()&&(z=d.menus.addMenuItem(k,"autoMode",v),null!=z&&z.setAttribute("title",mxResources.get("automatic")+" ("+mxResources.get(Editor.isDarkMode()?"dark":"light")+")"));"1"!=urlParams.embed&&
this.addMenuItems(k,["-","toggleSimpleMode"],v)})));this.put("appearance",new Menu(mxUtils.bind(this,function(k,v){this.addMenuItems(k,["-","lightMode","darkMode"],v);if(d.isAutoDarkModeSupported()){var z=d.menus.addMenuItem(k,"autoMode",v);null!=z&&z.setAttribute("title",mxResources.get("automatic")+" ("+mxResources.get(Editor.isDarkMode()?"dark":"light")+")")}k.addSeparator(v);z=d.menus.addMenuItem(k,"highContrast",v);(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&d.menus.addLinkToItem(z,
-"https://github.com/jgraph/drawio/issues/4296")})));d.actions.addAction("addToScratchpad",function(k){t.isSelectionEmpty()||null==d.addSelectionToScratchpad||d.addSelectionToScratchpad(k)});d.actions.addAction("accounts...",function(){d.toggleUserPanel();d.userPanel.style.right="10px";d.userPanel.style.top="10px"});this.put("theme",new Menu(mxUtils.bind(this,function(k,v){var z="1"==urlParams.sketch?"sketch":mxSettings.getUi(),B=k.addItem(mxResources.get("automatic"),null,function(){d.setCurrentTheme("")},
-v),H=k.addItem(mxResources.get("classic"),null,function(){d.setCurrentTheme(Editor.isDarkMode()?"dark":"kennedy")},v),R=!1;if("kennedy"==z||"dark"==z)k.addCheckmark(H,Editor.checkmarkImage),R=!0;for(var g=0;g<Editor.themes.length;g++)mxUtils.bind(this,function(q){H=k.addItem(mxResources.get("min"==q?"minimal":q),null,function(){d.setCurrentTheme(q)},v);z==q&&(k.addCheckmark(H,Editor.checkmarkImage),R=!0)})(Editor.themes[g]);R||k.addCheckmark(B,Editor.checkmarkImage)})));x=this.editorUi.actions.addAction("rename...",
-mxUtils.bind(this,function(){var k=this.editorUi.getCurrentFile();if(null!=k)if(k.constructor==LocalFile&&null!=k.fileHandle)d.showSaveFilePicker(mxUtils.bind(d,function(z,B){k.invalidFileHandle=null;k.fileHandle=z;k.title=B.name;k.desc=B;d.save(B.name)}),null,d.createFileSystemOptions(k.getTitle()));else{var v=null!=k.getTitle()?k.getTitle():this.editorUi.defaultFilename;v=new FilenameDialog(this.editorUi,v,mxResources.get("rename"),mxUtils.bind(this,function(z){null!=z&&0<z.length&&null!=k&&z!=
-k.getTitle()&&this.editorUi.spinner.spin(document.body,mxResources.get("renaming"))&&k.rename(z,mxUtils.bind(this,function(B){this.editorUi.spinner.stop()}),mxUtils.bind(this,function(B){this.editorUi.handleError(B,null!=B?mxResources.get("errorRenamingFile"):null)}))}),k.constructor==DriveFile||k.constructor==StorageFile?mxResources.get("diagramName"):null,function(z){if(null!=z&&0<z.length)return!0;d.showError(mxResources.get("error"),mxResources.get("invalidName"),mxResources.get("ok"));return!1},
-null,FilenameDialog.filenameHelpLink,null,null,d.editor.fileExtensions);this.editorUi.showDialog(v.container,340,96,!0,!0);v.init()}}));x.isEnabled=function(){return this.enabled&&y.apply(this,arguments)};x.visible="1"!=urlParams.embed;d.actions.addAction("makeCopy...",mxUtils.bind(this,function(){var k=d.getCurrentFile();if(null!=k){var v=d.getCopyFilename(k);k.constructor==DriveFile?(v=new CreateDialog(d,v,mxUtils.bind(this,function(z,B){"_blank"==B?d.editor.editAsNew(d.getFileData(),z):("download"==
-B&&(B=App.MODE_GOOGLE),null!=z&&0<z.length&&(B==App.MODE_GOOGLE?d.spinner.spin(document.body,mxResources.get("saving"))&&k.saveAs(z,mxUtils.bind(this,function(H){k.desc=H;k.save(!1,mxUtils.bind(this,function(){d.spinner.stop();k.setModified(!1);k.addAllSavedStatus()}),mxUtils.bind(this,function(R){d.handleError(R)}))}),mxUtils.bind(this,function(H){d.handleError(H)})):d.createFile(z,d.getFileData(!0),null,B)))}),mxUtils.bind(this,function(){d.hideDialog()}),mxResources.get("makeCopy"),mxResources.get("create"),
+"https://github.com/jgraph/drawio/issues/4296")})));d.actions.addAction("addToScratchpad",function(k){t.isSelectionEmpty()||null==d.addSelectionToScratchpad||d.addSelectionToScratchpad(k)});d.actions.addAction("accounts...",function(){d.toggleUserPanel();d.userPanel.style.right="10px";d.userPanel.style.top="10px"});this.put("theme",new Menu(mxUtils.bind(this,function(k,v){var z="1"==urlParams.sketch?"sketch":mxSettings.getUi(),A=k.addItem(mxResources.get("automatic"),null,function(){d.setCurrentTheme("")},
+v),H=k.addItem(mxResources.get("classic"),null,function(){d.setCurrentTheme(Editor.isDarkMode()?"dark":"kennedy")},v),R=!1;if("kennedy"==z||"dark"==z)k.addCheckmark(H,Editor.checkmarkImage),R=!0;for(var g=0;g<Editor.themes.length;g++)mxUtils.bind(this,function(q){H=k.addItem(mxResources.get("min"==q?"minimal":q),null,function(){d.setCurrentTheme(q)},v);z==q&&(k.addCheckmark(H,Editor.checkmarkImage),R=!0)})(Editor.themes[g]);R||k.addCheckmark(A,Editor.checkmarkImage)})));x=this.editorUi.actions.addAction("rename...",
+mxUtils.bind(this,function(){var k=this.editorUi.getCurrentFile();if(null!=k)if(k.constructor==LocalFile&&null!=k.fileHandle)d.showSaveFilePicker(mxUtils.bind(d,function(z,A){k.invalidFileHandle=null;k.fileHandle=z;k.title=A.name;k.desc=A;d.save(A.name)}),null,d.createFileSystemOptions(k.getTitle()));else{var v=null!=k.getTitle()?k.getTitle():this.editorUi.defaultFilename;v=new FilenameDialog(this.editorUi,v,mxResources.get("rename"),mxUtils.bind(this,function(z){null!=z&&0<z.length&&null!=k&&z!=
+k.getTitle()&&this.editorUi.spinner.spin(document.body,mxResources.get("renaming"))&&k.rename(z,mxUtils.bind(this,function(A){this.editorUi.spinner.stop()}),mxUtils.bind(this,function(A){this.editorUi.handleError(A,null!=A?mxResources.get("errorRenamingFile"):null)}))}),k.constructor==DriveFile||k.constructor==StorageFile?mxResources.get("diagramName"):null,function(z){if(null!=z&&0<z.length)return!0;d.showError(mxResources.get("error"),mxResources.get("invalidName"),mxResources.get("ok"));return!1},
+null,FilenameDialog.filenameHelpLink,null,null,d.editor.fileExtensions);this.editorUi.showDialog(v.container,340,96,!0,!0);v.init()}}));x.isEnabled=function(){return this.enabled&&y.apply(this,arguments)};x.visible="1"!=urlParams.embed;d.actions.addAction("makeCopy...",mxUtils.bind(this,function(){var k=d.getCurrentFile();if(null!=k){var v=d.getCopyFilename(k);k.constructor==DriveFile?(v=new CreateDialog(d,v,mxUtils.bind(this,function(z,A){"_blank"==A?d.editor.editAsNew(d.getFileData(),z):("download"==
+A&&(A=App.MODE_GOOGLE),null!=z&&0<z.length&&(A==App.MODE_GOOGLE?d.spinner.spin(document.body,mxResources.get("saving"))&&k.saveAs(z,mxUtils.bind(this,function(H){k.desc=H;k.save(!1,mxUtils.bind(this,function(){d.spinner.stop();k.setModified(!1);k.addAllSavedStatus()}),mxUtils.bind(this,function(R){d.handleError(R)}))}),mxUtils.bind(this,function(H){d.handleError(H)})):d.createFile(z,d.getFileData(!0),null,A)))}),mxUtils.bind(this,function(){d.hideDialog()}),mxResources.get("makeCopy"),mxResources.get("create"),
null,null,!0,null,!0,null,null,null,null,d.editor.fileExtensions),d.showDialog(v.container,420,380,!0,!0),v.init()):d.editor.editAsNew(this.editorUi.getFileData(!0),v)}}));d.actions.put("openFolder",new Action(mxResources.get("openIt",[mxResources.get("folder")])+"...",function(k,v){k=d.getCurrentFile();null!=k&&d.openLink(k.getFolderUrl())}));d.actions.addAction("openFile...",mxUtils.bind(this,function(){var k=d.getCurrentFile();null!=k&&d.openLink(k.getFileUrl())}));d.actions.addAction("moveToFolder...",
-mxUtils.bind(this,function(){var k=d.getCurrentFile();if(k.getMode()==App.MODE_GOOGLE||k.getMode()==App.MODE_ONEDRIVE){var v=!1;if(k.getMode()==App.MODE_GOOGLE&&null!=k.desc.parents)for(var z=0;z<k.desc.parents.length;z++)if(k.desc.parents[z].isRoot){v=!0;break}d.pickFolder(k.getMode(),mxUtils.bind(this,function(B){d.spinner.spin(document.body,mxResources.get("moving"))&&k.move(B,mxUtils.bind(this,function(H){d.spinner.stop()}),mxUtils.bind(this,function(H){d.handleError(H)}))}),null,!0,v)}}));this.put("publish",
+mxUtils.bind(this,function(){var k=d.getCurrentFile();if(k.getMode()==App.MODE_GOOGLE||k.getMode()==App.MODE_ONEDRIVE){var v=!1;if(k.getMode()==App.MODE_GOOGLE&&null!=k.desc.parents)for(var z=0;z<k.desc.parents.length;z++)if(k.desc.parents[z].isRoot){v=!0;break}d.pickFolder(k.getMode(),mxUtils.bind(this,function(A){d.spinner.spin(document.body,mxResources.get("moving"))&&k.move(A,mxUtils.bind(this,function(H){d.spinner.stop()}),mxUtils.bind(this,function(H){d.handleError(H)}))}),null,!0,v)}}));this.put("publish",
new Menu(mxUtils.bind(this,function(k,v){this.addMenuItems(k,["publishLink"],v)})));d.actions.put("useOffline",new Action(mxResources.get("useOffline")+"...",function(){d.openLink("https://app.draw.io/")}));this.editorUi.actions.addAction("share...",mxUtils.bind(this,function(){try{var k=d.getCurrentFile();null!=k&&k.share()}catch(v){d.handleError(v)}})).isEnabled=y;this.put("embed",new Menu(mxUtils.bind(this,function(k,v){var z=d.getCurrentFile();null==z||z.getMode()!=App.MODE_GOOGLE&&z.getMode()!=
-App.MODE_GITHUB||!/(\.png)$/i.test(z.getTitle())||this.addMenuItems(k,["liveImage","-"],v);this.addMenuItems(k,["embedImage","embedSvg","-","embedHtml"],v);navigator.standalone||d.isOffline()||this.addMenuItems(k,["embedIframe"],v);"1"==urlParams.embed||d.isOffline()||this.addMenuItems(k,"- googleDocs googleSlides googleSheets - microsoftOffice - embedNotion".split(" "),v)})));d.addInsertItem=function(k,v,z,B){("plantUml"!=B||EditorUi.enablePlantUml&&!d.isOffline())&&k.addItem(z,null,mxUtils.bind(this,
-function(){if("fromText"==B||"formatSql"==B||"plantUml"==B||"mermaid"==B){var H=new ParseDialog(d,z,B);d.showDialog(H.container,620,420,!0,!1);d.dialog.container.style.overflow="auto"}else H=new CreateGraphDialog(d,z,B),d.showDialog(H.container,620,420,!0,!1,function(R,g){if(g)return d.confirm(mxResources.get("areYouSure"),function(){d.hideDialog()}),!1;null!=H.graph&&(null!=H.graph.container.parentNode&&H.graph.container.parentNode.removeChild(H.graph.container),H.graph.destroy(),H.graph=null)});
-H.init()}),v,null,y())};var D=function(k){t.getModel().beginUpdate();try{k=t.addCell(k),t.fireEvent(new mxEventObject("cellsInserted","cells",[k])),t.model.isVertex(k)&&t.isAutoSizeCell(k)&&t.updateCellSize(k)}finally{t.getModel().endUpdate()}t.scrollCellToVisible(k);t.setSelectionCell(k);t.container.focus();t.editAfterInsert&&t.startEditing(k);window.setTimeout(function(){null!=d.hoverIcons&&d.hoverIcons.update(t.view.getState(k))},0);return k},G=function(k,v,z,B,H){k=new mxCell(k,new mxGeometry(0,
-0,v,z),B);k.vertex=!0;null==H&&(H=t.getCenterInsertPoint(t.getBoundingBoxFromGeometry([k],!0)));k.geometry.x=H.x;k.geometry.y=H.y;return D(k)};d.actions.put("insertText",new Action(mxResources.get("text"),function(k){t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())&&t.startEditingAtCell(G("Text",60,30,t.appendFontSize("text;strokeColor=none;align=center;fillColor=none;html=1;verticalAlign=middle;whiteSpace=wrap;rounded=0;",t.vertexFontSize),null==k||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)||
+App.MODE_GITHUB||!/(\.png)$/i.test(z.getTitle())||this.addMenuItems(k,["liveImage","-"],v);this.addMenuItems(k,["embedImage","embedSvg","-","embedHtml"],v);navigator.standalone||d.isOffline()||this.addMenuItems(k,["embedIframe"],v);"1"==urlParams.embed||d.isOffline()||this.addMenuItems(k,"- googleDocs googleSlides googleSheets - microsoftOffice - embedNotion".split(" "),v)})));d.addInsertItem=function(k,v,z,A){("plantUml"!=A||EditorUi.enablePlantUml&&!d.isOffline())&&k.addItem(z,null,mxUtils.bind(this,
+function(){if("fromText"==A||"formatSql"==A||"plantUml"==A||"mermaid"==A){var H=new ParseDialog(d,z,A);d.showDialog(H.container,620,420,!0,!1);d.dialog.container.style.overflow="auto"}else H=new CreateGraphDialog(d,z,A),d.showDialog(H.container,620,420,!0,!1,function(R,g){if(g)return d.confirm(mxResources.get("areYouSure"),function(){d.hideDialog()}),!1;null!=H.graph&&(null!=H.graph.container.parentNode&&H.graph.container.parentNode.removeChild(H.graph.container),H.graph.destroy(),H.graph=null)});
+H.init()}),v,null,y())};var D=function(k){t.getModel().beginUpdate();try{k=t.addCell(k),t.fireEvent(new mxEventObject("cellsInserted","cells",[k])),t.model.isVertex(k)&&t.isAutoSizeCell(k)&&t.updateCellSize(k)}finally{t.getModel().endUpdate()}t.scrollCellToVisible(k);t.setSelectionCell(k);t.container.focus();t.editAfterInsert&&t.startEditing(k);window.setTimeout(function(){null!=d.hoverIcons&&d.hoverIcons.update(t.view.getState(k))},0);return k},G=function(k,v,z,A,H){k=new mxCell(k,new mxGeometry(0,
+0,v,z),A);k.vertex=!0;null==H&&(H=t.getCenterInsertPoint(t.getBoundingBoxFromGeometry([k],!0)));k.geometry.x=H.x;k.geometry.y=H.y;return D(k)};d.actions.put("insertText",new Action(mxResources.get("text"),function(k){t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())&&t.startEditingAtCell(G("Text",60,30,t.appendFontSize("text;strokeColor=none;align=center;fillColor=none;html=1;verticalAlign=middle;whiteSpace=wrap;rounded=0;",t.vertexFontSize),null==k||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)||
!t.isMouseInsertPoint()?null:t.getInsertPoint()))},null,null,"A")).isEnabled=y;d.actions.put("insertRectangle",new Action(mxResources.get("rectangle"),function(k){t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())&&G("",120,60,"whiteSpace=wrap;html=1;",null==k||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)||!t.isMouseInsertPoint()?null:t.getInsertPoint())},null,null,"D")).isEnabled=y;d.actions.put("insertNote",new Action(mxResources.get("note"),function(k){t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())&&
G("",140,160,"shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;fontColor=#000000;darkOpacity=0.05;fillColor=#FFF9B2;strokeColor=none;fillStyle=solid;direction=west;gradientDirection=north;gradientColor=#FFF2A1;shadow=1;size=20;pointerEvents=1;",null==k||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)||!t.isMouseInsertPoint()?null:t.getInsertPoint())},null,null,"S")).isEnabled=y;d.actions.put("insertEllipse",new Action(mxResources.get("ellipse"),function(k){t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())&&
G("",80,80,"ellipse;whiteSpace=wrap;html=1;",null==k||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)||!t.isMouseInsertPoint()?null:t.getInsertPoint())},null,null,"F")).isEnabled=y;d.actions.put("insertRhombus",new Action(mxResources.get("rhombus"),function(k){t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())&&G("",80,80,"rhombus;whiteSpace=wrap;html=1;",null==k||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)||!t.isMouseInsertPoint()?null:t.getInsertPoint())},null,null,"R")).isEnabled=y;d.actions.put("insertEdge",
new Action(mxResources.get("line"),function(k){if(t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())){var v=t.defaultEdgeLength;k=null==k||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)||!t.isMouseInsertPoint()?null:t.getInsertPoint();null==k&&(k=t.getCenterInsertPoint(t.getBoundingBoxFromGeometry([z],!0)));var z=new mxCell("",new mxGeometry(0,0,v,0),"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;");z.geometry.setTerminalPoint(k,!0);z.geometry.setTerminalPoint(new mxPoint(k.x+z.geometry.width,
k.y),!1);z.geometry.points=[];z.geometry.relative=!0;z.edge=!0;D(z)}},null,null,"C")).isEnabled=y;x=d.actions.put("toggleShapes",new Action(mxResources.get("shapes"),function(){null!=d.sidebarWindow?d.sidebarWindow.window.setVisible(!d.sidebarWindow.window.isVisible()):d.toggleShapesPanel(!d.isShapesPanelVisible())},null,null,Editor.ctrlKey+"+Shift+K"));x.setToggleAction(!0);x.setSelectedCallback(mxUtils.bind(this,function(){return null!=d.sidebarWindow&&d.sidebarWindow.window.isVisible()||null==
-d.sidebarWindow&&0<d.hsplitPosition}));d.addInsertMenuItems=mxUtils.bind(this,function(k,v,z){for(var B=0;B<z.length;B++)"-"==z[B]?k.addSeparator(v):d.addInsertItem(k,v,mxResources.get(z[B])+"...",z[B])});this.put("insert",new Menu(mxUtils.bind(this,function(k,v){"sketch"==Editor.currentTheme?(d.menus.addMenuItems(k,["toggleShapes"],v),d.menus.addSubmenu("table",k,v),k.addSeparator(v),d.insertTemplateEnabled&&!d.isOffline()&&d.menus.addMenuItems(k,["insertTemplate"],v),d.menus.addMenuItems(k,["insertImage",
+d.sidebarWindow&&0<d.hsplitPosition}));d.addInsertMenuItems=mxUtils.bind(this,function(k,v,z){for(var A=0;A<z.length;A++)"-"==z[A]?k.addSeparator(v):d.addInsertItem(k,v,mxResources.get(z[A])+"...",z[A])});this.put("insert",new Menu(mxUtils.bind(this,function(k,v){"sketch"==Editor.currentTheme?(d.menus.addMenuItems(k,["toggleShapes"],v),d.menus.addSubmenu("table",k,v),k.addSeparator(v),d.insertTemplateEnabled&&!d.isOffline()&&d.menus.addMenuItems(k,["insertTemplate"],v),d.menus.addMenuItems(k,["insertImage",
"insertLink","-"],v),d.menus.addSubmenu("insertAdvanced",k,v,mxResources.get("advanced")),d.menus.addSubmenu("layout",k,v)):(this.addMenuItems(k,"insertRectangle insertEllipse insertRhombus - insertEdge insertNote - insertText insertLink - createShape insertFreehand - insertImage".split(" "),v),d.insertTemplateEnabled&&!d.isOffline()&&this.addMenuItems(k,["insertTemplate"],v),k.addSeparator(v),"min"==uiTheme||"simple"==Editor.currentTheme?(this.addSubmenu("layout",k,v),this.addSubmenu("insertLayout",
k,v,mxResources.get("insert")),k.addSeparator(v),this.addSubmenu("table",k,v)):this.addSubmenu("insertLayout",k,v,mxResources.get("layout")),this.addSubmenu("insertAdvanced",k,v,mxResources.get("advanced")))})));this.put("table",new Menu(mxUtils.bind(this,function(k,v){d.menus.addInsertTableCellItem(k,v)})));this.put("insertLayout",new Menu(mxUtils.bind(this,function(k,v){d.addInsertMenuItems(k,v,"horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "))})));
this.put("insertAdvanced",new Menu(mxUtils.bind(this,function(k,v){var z=["fromText","plantUml"].concat(window.isMermaidEnabled?["mermaid"]:[]).concat(["-","formatSql"]);d.addInsertMenuItems(k,v,z);k.addItem(mxResources.get("csv")+"...",null,function(){t.popupMenuHandler.hideMenu();d.showImportCsvDialog()},v,null,y());"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(k,["-","createShape","editDiagram"],v)})));this.put("openRecent",new Menu(function(k,v){var z=d.getRecent();
-if(null!=z){for(var B=0;B<z.length;B++)(function(H){var R=H.mode;R==App.MODE_GOOGLE?R="googleDrive":R==App.MODE_ONEDRIVE&&(R="oneDrive");k.addItem(H.title+" ("+mxResources.get(R)+")",null,function(){d.loadFile(H.id)},v)})(z[B]);k.addSeparator(v)}k.addItem(mxResources.get("reset"),null,function(){d.resetRecent()},v)}));this.put("openFrom",new Menu(function(k,v){null!=d.drive?k.addItem(mxResources.get("googleDrive")+"...",null,function(){d.pickFile(App.MODE_GOOGLE)},v):d.isModeEnabled(App.MODE_GOOGLE)&&
+if(null!=z){for(var A=0;A<z.length;A++)(function(H){var R=H.mode;R==App.MODE_GOOGLE?R="googleDrive":R==App.MODE_ONEDRIVE&&(R="oneDrive");k.addItem(H.title+" ("+mxResources.get(R)+")",null,function(){d.loadFile(H.id)},v)})(z[A]);k.addSeparator(v)}k.addItem(mxResources.get("reset"),null,function(){d.resetRecent()},v)}));this.put("openFrom",new Menu(function(k,v){null!=d.drive?k.addItem(mxResources.get("googleDrive")+"...",null,function(){d.pickFile(App.MODE_GOOGLE)},v):d.isModeEnabled(App.MODE_GOOGLE)&&
k.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1);d.isModeReady(App.MODE_ONEDRIVE)?k.addItem(mxResources.get("oneDrive")+"...",null,function(){d.pickFile(App.MODE_ONEDRIVE)},v):d.isModeEnabled(App.MODE_ONEDRIVE)&&k.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1);d.isModeReady(App.MODE_DROPBOX)?k.addItem(mxResources.get("dropbox")+"...",null,function(){d.pickFile(App.MODE_DROPBOX)},v):
d.isModeEnabled(App.MODE_DROPBOX)&&k.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1);k.addSeparator(v);d.isModeReady(App.MODE_GITHUB)&&k.addItem(mxResources.get("github")+"...",null,function(){d.pickFile(App.MODE_GITHUB)},v);d.isModeReady(App.MODE_GITLAB)&&k.addItem(mxResources.get("gitlab")+"...",null,function(){d.pickFile(App.MODE_GITLAB)},v);d.isModeReady(App.MODE_TRELLO)?k.addItem(mxResources.get("trello")+"...",null,function(){d.pickFile(App.MODE_TRELLO)},
v):d.isModeEnabled(App.MODE_TRELLO)&&k.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1);k.addSeparator(v);isLocalStorage&&"0"!=urlParams.browser&&k.addItem(mxResources.get("browser")+"...",null,function(){d.pickFile(App.MODE_BROWSER)},v);"1"!=urlParams.noDevice&&k.addItem(mxResources.get("device")+"...",null,function(){d.pickFile(App.MODE_DEVICE)},v);d.isOffline()||(k.addSeparator(v),k.addItem(mxResources.get("url")+"...",null,function(){var z=
-new FilenameDialog(d,"",mxResources.get("open"),function(B){null!=B&&0<B.length&&(null==d.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(B):window.geOpenWindow((mxClient.IS_CHROMEAPP?"https://www.draw.io/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(B)))},mxResources.get("url"));d.showDialog(z.container,300,80,!0,!0);z.init()},v))}));Editor.enableCustomLibraries&&(this.put("newLibrary",new Menu(function(k,v){"undefined"!=typeof google&&"undefined"!=
+new FilenameDialog(d,"",mxResources.get("open"),function(A){null!=A&&0<A.length&&(null==d.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(A):window.geOpenWindow((mxClient.IS_CHROMEAPP?"https://www.draw.io/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(A)))},mxResources.get("url"));d.showDialog(z.container,300,80,!0,!0);z.init()},v))}));Editor.enableCustomLibraries&&(this.put("newLibrary",new Menu(function(k,v){"undefined"!=typeof google&&"undefined"!=
typeof google.picker&&(null!=d.drive?k.addItem(mxResources.get("googleDrive")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_GOOGLE)},v):d.isModeEnabled(App.MODE_GOOGLE)&&k.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1));d.isModeReady(App.MODE_ONEDRIVE)?k.addItem(mxResources.get("oneDrive")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_ONEDRIVE)},v):d.isModeEnabled(App.MODE_ONEDRIVE)&&k.addItem(mxResources.get("oneDrive")+
" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1);d.isModeReady(App.MODE_DROPBOX)?k.addItem(mxResources.get("dropbox")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_DROPBOX)},v):d.isModeEnabled(App.MODE_DROPBOX)&&k.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1);k.addSeparator(v);d.isModeReady(App.MODE_GITHUB)&&k.addItem(mxResources.get("github")+"...",null,function(){d.showLibraryDialog(null,null,null,
null,App.MODE_GITHUB)},v);d.isModeReady(App.MODE_GITLAB)&&k.addItem(mxResources.get("gitlab")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_GITLAB)},v);d.isModeReady(App.MODE_TRELLO)?k.addItem(mxResources.get("trello")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_TRELLO)},v):d.isModeEnabled(App.MODE_TRELLO)&&k.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1);k.addSeparator(v);isLocalStorage&&"0"!=
@@ -14081,47 +14095,47 @@ urlParams.browser&&k.addItem(mxResources.get("browser")+"...",null,function(){d.
"undefined"!=typeof google.picker&&(null!=d.drive?k.addItem(mxResources.get("googleDrive")+"...",null,function(){d.pickLibrary(App.MODE_GOOGLE)},v):d.isModeEnabled(App.MODE_GOOGLE)&&k.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1));d.isModeReady(App.MODE_ONEDRIVE)?k.addItem(mxResources.get("oneDrive")+"...",null,function(){d.pickLibrary(App.MODE_ONEDRIVE)},v):d.isModeEnabled(App.MODE_ONEDRIVE)&&k.addItem(mxResources.get("oneDrive")+" ("+
mxResources.get("loading")+"...)",null,function(){},v,null,!1);d.isModeReady(App.MODE_DROPBOX)?k.addItem(mxResources.get("dropbox")+"...",null,function(){d.pickLibrary(App.MODE_DROPBOX)},v):d.isModeEnabled(App.MODE_DROPBOX)&&k.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1);k.addSeparator(v);d.isModeReady(App.MODE_GITHUB)&&k.addItem(mxResources.get("github")+"...",null,function(){d.pickLibrary(App.MODE_GITHUB)},v);d.isModeReady(App.MODE_GITLAB)&&
k.addItem(mxResources.get("gitlab")+"...",null,function(){d.pickLibrary(App.MODE_GITLAB)},v);d.isModeReady(App.MODE_TRELLO)?k.addItem(mxResources.get("trello")+"...",null,function(){d.pickLibrary(App.MODE_TRELLO)},v):d.isModeEnabled(App.MODE_TRELLO)&&k.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},v,null,!1);k.addSeparator(v);isLocalStorage&&"0"!=urlParams.browser&&k.addItem(mxResources.get("browser")+"...",null,function(){d.pickLibrary(App.MODE_BROWSER)},
-v);"1"!=urlParams.noDevice&&k.addItem(mxResources.get("device")+"...",null,function(){d.pickLibrary(App.MODE_DEVICE)},v);d.isOffline()||(k.addSeparator(v),k.addItem(mxResources.get("url")+"...",null,function(){var z=new FilenameDialog(d,"",mxResources.get("open"),function(B){if(null!=B&&0<B.length&&d.spinner.spin(document.body,mxResources.get("loading"))){var H=B;d.editor.isCorsEnabledForUrl(B)||(H=PROXY_URL+"?url="+encodeURIComponent(B));mxUtils.get(H,function(R){if(200<=R.getStatus()&&299>=R.getStatus()){d.spinner.stop();
-try{d.loadLibrary(new UrlLibrary(d,R.getText(),B)),d.showSidebar()}catch(g){d.handleError(g,mxResources.get("errorLoadingFile"))}}else d.spinner.stop(),d.handleError(null,mxResources.get("errorLoadingFile"))},function(){d.spinner.stop();d.handleError(null,mxResources.get("errorLoadingFile"))})}},mxResources.get("url"));d.showDialog(z.container,300,80,!0,!0);z.init()},v));"1"==urlParams.confLib&&(k.addSeparator(v),k.addItem(mxResources.get("confluenceCloud")+"...",null,function(){d.showRemotelyStoredLibrary(mxResources.get("libraries"))},
+v);"1"!=urlParams.noDevice&&k.addItem(mxResources.get("device")+"...",null,function(){d.pickLibrary(App.MODE_DEVICE)},v);d.isOffline()||(k.addSeparator(v),k.addItem(mxResources.get("url")+"...",null,function(){var z=new FilenameDialog(d,"",mxResources.get("open"),function(A){if(null!=A&&0<A.length&&d.spinner.spin(document.body,mxResources.get("loading"))){var H=A;d.editor.isCorsEnabledForUrl(A)||(H=PROXY_URL+"?url="+encodeURIComponent(A));mxUtils.get(H,function(R){if(200<=R.getStatus()&&299>=R.getStatus()){d.spinner.stop();
+try{d.loadLibrary(new UrlLibrary(d,R.getText(),A)),d.showSidebar()}catch(g){d.handleError(g,mxResources.get("errorLoadingFile"))}}else d.spinner.stop(),d.handleError(null,mxResources.get("errorLoadingFile"))},function(){d.spinner.stop();d.handleError(null,mxResources.get("errorLoadingFile"))})}},mxResources.get("url"));d.showDialog(z.container,300,80,!0,!0);z.init()},v));"1"==urlParams.confLib&&(k.addSeparator(v),k.addItem(mxResources.get("confluenceCloud")+"...",null,function(){d.showRemotelyStoredLibrary(mxResources.get("libraries"))},
v))})));this.put("edit",new Menu(mxUtils.bind(this,function(k,v){this.addMenuItems(k,"undo redo - cut copy copyAsImage paste delete - duplicate - findReplace - editData editTooltip - editStyle editGeometry - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));x=d.actions.addAction("comments",mxUtils.bind(this,function(){if(null==this.commentsWindow)this.commentsWindow=new CommentsWindow(d,document.body.offsetWidth-380,120,300,350),this.commentsWindow.window.addListener("show",
function(){d.fireEvent(new mxEventObject("comments"))}),this.commentsWindow.window.addListener("hide",function(){d.fireEvent(new mxEventObject("comments"))}),this.commentsWindow.window.setVisible(!0),d.fireEvent(new mxEventObject("comments"));else{var k=!this.commentsWindow.window.isVisible();this.commentsWindow.window.setVisible(k);this.commentsWindow.refreshCommentsTime();k&&this.commentsWindow.hasError&&this.commentsWindow.refreshComments()}}));x.setToggleAction(!0);x.setSelectedCallback(mxUtils.bind(this,
function(){return null!=this.commentsWindow&&this.commentsWindow.window.isVisible()}));d.editor.addListener("fileLoaded",mxUtils.bind(this,function(){null!=this.commentsWindow&&(this.commentsWindow.destroy(),this.commentsWindow=null)}));this.get("viewPanels").funct=function(k,v){var z=d.getCurrentFile();d.menus.addMenuItems(k,"toggleShapes format ruler - findReplace layers tags chatWindowTitle outline -".split(" "),v);d.commentsSupported()&&d.menus.addMenuItems(k,["comments"],v);null!=z&&z.isRealtimeEnabled()&&
-z.isRealtimeSupported()&&d.menus.addMenuItems(k,["showRemoteCursors"],v);d.menus.addMenuItems(k,["-","fullscreen"],v)};this.put("view",new Menu(mxUtils.bind(this,function(k,v){if("simple"==Editor.currentTheme){var z=d.getCurrentFile();d.menus.addMenuItems(k,["toggleShapes","format"],v);d.isPageMenuVisible()&&d.menus.addMenuItems(k,["pageTabs"],v);d.menus.addMenuItems(k,["ruler","-","search"],v);if(isLocalStorage||mxClient.IS_CHROMEAPP){var B=d.menus.addMenuItem(k,"scratchpad",v);(!d.isOffline()||
-mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&d.menus.addLinkToItem(B,"https://www.drawio.com/doc/faq/scratchpad")}d.menus.addMenuItems(k,"- findReplace layers tags chatWindowTitle outline -".split(" "),v);d.commentsSupported()&&d.menus.addMenuItems(k,["comments"],v);null!=z&&z.isRealtimeEnabled()&&z.isRealtimeSupported()&&this.addMenuItems(k,["showRemoteCursors"],v);this.addMenuItems(k,["-","fullscreen"],v)}else{this.addMenuItems(k,["format","outline","layers","tags","chatWindowTitle"].concat(d.commentsSupported()?
-["comments","-"]:["-"]));this.addMenuItems(k,["-","search"],v);if(isLocalStorage||mxClient.IS_CHROMEAPP)B=this.addMenuItem(k,"scratchpad",v),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(B,"https://www.drawio.com/doc/faq/scratchpad");this.addMenuItems(k,["toggleShapes","-","pageView","pageScale"]);this.addSubmenu("units",k,v);k.addSeparator(v);d.isPageMenuVisible()&&d.menus.addMenuItems(k,["pageTabs"],v);this.addMenuItems(k,"ruler - tooltips animations - grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),
+z.isRealtimeSupported()&&d.menus.addMenuItems(k,["showRemoteCursors"],v);d.menus.addMenuItems(k,["-","fullscreen"],v)};this.put("view",new Menu(mxUtils.bind(this,function(k,v){if("simple"==Editor.currentTheme){var z=d.getCurrentFile();d.menus.addMenuItems(k,["toggleShapes","format"],v);d.isPageMenuVisible()&&d.menus.addMenuItems(k,["pageTabs"],v);d.menus.addMenuItems(k,["ruler","-","search"],v);if(isLocalStorage||mxClient.IS_CHROMEAPP){var A=d.menus.addMenuItem(k,"scratchpad",v);(!d.isOffline()||
+mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&d.menus.addLinkToItem(A,"https://www.drawio.com/doc/faq/scratchpad")}d.menus.addMenuItems(k,"- findReplace layers tags chatWindowTitle outline -".split(" "),v);d.commentsSupported()&&d.menus.addMenuItems(k,["comments"],v);null!=z&&z.isRealtimeEnabled()&&z.isRealtimeSupported()&&this.addMenuItems(k,["showRemoteCursors"],v);this.addMenuItems(k,["-","fullscreen"],v)}else{this.addMenuItems(k,["format","outline","layers","tags","chatWindowTitle"].concat(d.commentsSupported()?
+["comments","-"]:["-"]));this.addMenuItems(k,["-","search"],v);if(isLocalStorage||mxClient.IS_CHROMEAPP)A=this.addMenuItem(k,"scratchpad",v),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(A,"https://www.drawio.com/doc/faq/scratchpad");this.addMenuItems(k,["toggleShapes","-","pageView","pageScale"]);this.addSubmenu("units",k,v);k.addSeparator(v);d.isPageMenuVisible()&&d.menus.addMenuItems(k,["pageTabs"],v);this.addMenuItems(k,"ruler - tooltips animations - grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),
v);"1"!=urlParams.sketch&&this.addMenuItems(k,["-","fullscreen"],v)}})));this.put("editCell",new Menu(mxUtils.bind(this,function(k,v){this.addMenuItems(k,"editLink editShape editImage crop - editData copyData pasteData - editConnectionPoints editGeometry - editTooltip editStyle - edit".split(" "),v)})));this.put("currentPage",new Menu(mxUtils.bind(this,function(k,v){var z=d.currentPage;null!=z&&(k.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){d.renamePage(z,z.getName())}),
v),k.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){d.removePage(z)}),v),1<d.pages.length&&(d.menus.addSubmenu("movePage",k,v,mxResources.get("move")),k.addSeparator(v)),k.addSeparator(v),k.addItem(mxResources.get("duplicate"),null,mxUtils.bind(this,function(){d.duplicatePage(z,mxResources.get("copyOf",[z.getName()]))}),v),1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=d.getServiceName()||k.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,
-function(){d.editor.editAsNew(d.getFileData(!0,null,null,null,!0,!0))}),v)))})));this.put("pages",new Menu(mxUtils.bind(this,function(k,v){var z=d.currentPage;d.editor.graph.isLightboxView()||(k.addItem(mxResources.get("insertPage"),null,mxUtils.bind(this,function(){try{d.insertPage()}catch(H){d.handleError(H)}}),v,null,d.editor.graph.isEnabled()),k.addSeparator(v));if(null!=d.pages)for(var B=0;B<d.pages.length;B++)mxUtils.bind(this,function(H){var R=null;R=d.pages[H]!=z||d.editor.graph.isLightboxView()?
-k.addItem(d.getShortPageName(d.pages[H]),null,mxUtils.bind(this,function(){d.selectPage(d.pages[H])}),v):d.menus.addSubmenu("currentPage",k,v,d.getShortPageName(z));var g=d.pages[H].getId();R.setAttribute("title",d.pages[H].getName()+" ("+(H+1)+"/"+d.pages.length+")"+(null!=g?" ["+g+"]":""));d.pages[H]==z&&k.addCheckmark(R,Editor.checkmarkImage)})(B)})));if(EditorUi.isElectronApp){var E="1"==urlParams.enableSpellCheck;x=d.actions.addAction("spellCheck",function(){d.toggleSpellCheck();E=!E;d.alert(mxResources.get("restartForChangeRequired"))});
+function(){d.editor.editAsNew(d.getFileData(!0,null,null,null,!0,!0))}),v)))})));this.put("pages",new Menu(mxUtils.bind(this,function(k,v){var z=d.currentPage;d.editor.graph.isLightboxView()||(k.addItem(mxResources.get("insertPage"),null,mxUtils.bind(this,function(){try{d.insertPage()}catch(H){d.handleError(H)}}),v,null,d.editor.graph.isEnabled()),k.addSeparator(v));if(null!=d.pages)for(var A=0;A<d.pages.length;A++)mxUtils.bind(this,function(H){var R=null;R=d.pages[H]!=z||d.editor.graph.isLightboxView()?
+k.addItem(d.getShortPageName(d.pages[H]),null,mxUtils.bind(this,function(){d.selectPage(d.pages[H])}),v):d.menus.addSubmenu("currentPage",k,v,d.getShortPageName(z));var g=d.pages[H].getId();R.setAttribute("title",d.pages[H].getName()+" ("+(H+1)+"/"+d.pages.length+")"+(null!=g?" ["+g+"]":""));d.pages[H]==z&&k.addCheckmark(R,Editor.checkmarkImage)})(A)})));if(EditorUi.isElectronApp){var E="1"==urlParams.enableSpellCheck;x=d.actions.addAction("spellCheck",function(){d.toggleSpellCheck();E=!E;d.alert(mxResources.get("restartForChangeRequired"))});
x.setToggleAction(!0);x.setSelectedCallback(function(){return E});var T="1"==urlParams.enableStoreBkp;x=d.actions.addAction("autoBkp",function(){d.toggleStoreBkp();T=!T});x.setToggleAction(!0);x.setSelectedCallback(function(){return T});var O="1"==urlParams.isGoogleFontsEnabled;x=d.actions.addAction("googleFonts",function(){d.toggleGoogleFonts();O=!O;d.alert(mxResources.get("restartForChangeRequired"))});x.setToggleAction(!0);x.setSelectedCallback(function(){return O});d.actions.addAction("openDevTools",
function(){d.openDevTools()});d.actions.addAction("drafts...",function(){var k=new FilenameDialog(d,EditorUi.draftSaveDelay/1E3+"",mxResources.get("apply"),mxUtils.bind(this,function(v){v=parseInt(v);0<=v&&(EditorUi.draftSaveDelay=1E3*v,EditorUi.enableDrafts=0<v,mxSettings.setDraftSaveDelay(v),mxSettings.save())}),mxResources.get("draftSaveInt"));d.showDialog(k.container,320,80,!0,!0);k.init()})}var S=this.get("language");this.put("extras",new Menu(mxUtils.bind(this,function(k,v){if("simple"==Editor.currentTheme||
"sketch"==Editor.currentTheme||"min"==Editor.currentTheme){"1"==urlParams.embed&&"1"!=urlParams.atlas||"1"==urlParams.extAuth||d.mode==App.MODE_ATLAS||"1"==urlParams.embedInline||!Editor.isDarkMode()&&(mxClient.IS_IE||mxClient.IS_IE11)||d.menus.addSubmenu("appearance",k,v);"1"!=urlParams.embed&&"1"!=urlParams.extAuth&&d.mode!=App.MODE_ATLAS&&d.menus.addSubmenu("theme",k,v);k.addSeparator(v);null==S||"1"==urlParams.embed&&null!=urlParams.lang||d.menus.addSubmenu("language",k,v);d.menus.addSubmenu("units",
k,v);d.menus.addMenuItems(k,"- copyConnect collapseExpand - tooltips animations -".split(" "),v);var z=d.getCurrentFile();"simple"!=Editor.currentTheme&&(null!=z&&z.isRealtimeEnabled()&&z.isRealtimeSupported()&&this.addMenuItems(k,["showRemoteCursors"],v),d.menus.addMenuItems(k,["ruler","-"],v));EditorUi.isElectronApp&&d.menus.addMenuItems(k,"- googleFonts spellCheck autoBkp drafts -".split(" "),v);this.addSubmenu("diagramLanguage",k,v);k.addSeparator(v);d.mode!=App.MODE_ATLAS&&d.menus.addMenuItem(k,
"configuration",v);k.addSeparator(v)}else"1"==urlParams.embed&&null!=urlParams.lang||this.addSubmenu("language",k,v),"1"==urlParams.embed&&"1"!=urlParams.atlas||"atlas"==Editor.currentTheme||!Editor.isDarkMode()&&(mxClient.IS_IE||mxClient.IS_IE11)||d.menus.addSubmenu("appearance",k,v),"1"!=urlParams.embed&&"1"!=urlParams.extAuth&&d.mode!=App.MODE_ATLAS&&this.addSubmenu("theme",k,v),k.addSeparator(v),z=this.addSubmenu("adaptiveColors",k,v),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&
d.menus.addLinkToItem(z,"https://github.com/jgraph/drawio/discussions/4713"),"undefined"!==typeof MathJax&&(z=this.addMenuItem(k,"mathematicalTypesetting",v),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(z,"https://www.drawio.com/doc/faq/math-typesetting")),EditorUi.isElectronApp&&this.addMenuItems(k,["googleFonts","spellCheck","autoBkp","drafts","-"],v),this.addMenuItems(k,["copyConnect","collapseExpand","-"],v),"1"!=urlParams.embed&&(z=d.getCurrentFile(),null!=
-z&&z.isRealtimeEnabled()&&z.isRealtimeSupported()&&this.addMenuItems(k,["showRemoteCursors","shareCursor"],v),this.addMenuItems(k,["autosave"],v)),k.addSeparator(v),!d.isOfflineApp()&&isLocalStorage&&this.addMenuItem(k,"plugins",v),this.addMenuItems(k,["-","editDiagram"],v),this.addSubmenu("diagramLanguage",k,v),k.addSeparator(v),"1"!=urlParams.embed&&(isLocalStorage||mxClient.IS_CHROMEAPP)&&this.addMenuItems(k,["showStartScreen"],v),this.addMenuItems(k,["configuration"],v)})));this.put("movePage",
-new Menu(mxUtils.bind(this,function(k,v){var z=d.currentPage,B=d.getPageIndex(z);if(null!=d.pages)for(var H=0;H<d.pages.length;H++)H!=B&&function(R){k.addItem(d.getShortPageName(d.pages[R]),null,function(){d.movePage(B,R);d.scrollToPage(z,!0)},v)}(H)})));this.put("share",new Menu(mxUtils.bind(this,function(k,v){if(!d.isStandaloneApp()){var z=d.isOffline(!0)?mxResources.get("offline"):d.getNetworkStatus();null!=z&&(k.addItem(z,null,null,v,null,!1),k.addSeparator(v));d.menus.addMenuItems(k,["share"],
-v)}this.addMenuItem(k,"publishLink",v,null,null,mxResources.get("publish")+"...");null!=d.getMainUser()&&this.addMenuItems(k,["accounts"],v)})));this.put("diagram",new Menu(mxUtils.bind(this,function(k,v){var z=d.getCurrentFile();"simple"!=Editor.currentTheme&&(d.menus.addSubmenu("extras",k,v,mxResources.get("settings")),k.addSeparator(v));var B="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)d.menus.addMenuItems(k,"new open - synchronize properties - save saveAs -".split(" "),
+z&&z.isRealtimeEnabled()&&z.isRealtimeSupported()&&this.addMenuItems(k,["showRemoteCursors","shareCursor"],v),this.addMenuItems(k,["autosave"],v)),k.addSeparator(v),!d.isOfflineApp()&&isLocalStorage&&this.addMenuItem(k,"plugins",v),k.addSeparator(v),this.addSubmenu("diagramLanguage",k,v),this.addMenuItem(k,"editDiagram",v),k.addSeparator(v),"1"!=urlParams.embed&&(isLocalStorage||mxClient.IS_CHROMEAPP)&&this.addMenuItems(k,["showStartScreen"],v),this.addMenuItems(k,["configuration"],v)})));this.put("movePage",
+new Menu(mxUtils.bind(this,function(k,v){var z=d.currentPage,A=d.getPageIndex(z);if(null!=d.pages)for(var H=0;H<d.pages.length;H++)H!=A&&function(R){k.addItem(d.getShortPageName(d.pages[R]),null,function(){d.movePage(A,R);d.scrollToPage(z,!0)},v)}(H)})));this.put("share",new Menu(mxUtils.bind(this,function(k,v){if(!d.isStandaloneApp()){var z=d.isOffline(!0)?mxResources.get("offline"):d.getNetworkStatus();null!=z&&(k.addItem(z,null,null,v,null,!1),k.addSeparator(v));d.menus.addMenuItems(k,["share"],
+v)}this.addMenuItem(k,"publishLink",v,null,null,mxResources.get("publish")+"...");null!=d.getMainUser()&&this.addMenuItems(k,["accounts"],v)})));this.put("diagram",new Menu(mxUtils.bind(this,function(k,v){var z=d.getCurrentFile();"simple"!=Editor.currentTheme&&(d.menus.addSubmenu("extras",k,v,mxResources.get("settings")),k.addSeparator(v));var A="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)d.menus.addMenuItems(k,"new open - synchronize properties - save saveAs -".split(" "),
v);else if(d.mode==App.MODE_ATLAS){"1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&d.menus.addMenuItems(k,["-","save"],v);if("1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&"0"!=urlParams.saveAndExit||d.mode==App.MODE_ATLAS)d.menus.addMenuItems(k,["saveAndExit"],v),null!=z&&z.isRevisionHistorySupported()&&d.menus.addMenuItems(k,["revisionHistory"],v);k.addSeparator(v)}else d.mode==App.MODE_ATLAS?d.menus.addMenuItems(k,["save","synchronize","-"],v):"1"!=urlParams.noFileMenu&&(d.menus.addSubmenu("file",
k,v),k.addSeparator(v),"min"==Editor.currentTheme&&(d.menus.addMenuItems(k,"toggleShapes format layers tags chatWindowTitle - findReplace".split(" "),v),d.commentsSupported()&&d.menus.addMenuItems(k,["comments"],v),k.addSeparator(v)));d.menus.addSubmenu("exportAs",k,v);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"atlassian"==d.getServiceName()?d.menus.addMenuItems(k,["import"],v):"1"!=urlParams.noFileMenu&&d.menus.addSubmenu("importFrom",k,v);"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme?
-(d.menus.addMenuItems(k,["-","findReplace"],v),d.commentsSupported()&&d.menus.addMenuItems(k,["comments","-"],v),d.menus.addMenuItems(k,"toggleShapes format layers tags chatWindowTitle -".split(" "),v),d.menus.addMenuItems(k,["pageSetup"],v)):"min"!=Editor.currentTheme&&(this.addMenuItems(k,["-"],v),this.addSubmenu("newLibrary",k,v),this.addSubmenu("openLibraryFrom",k,v));k.addSeparator(v);"1"==urlParams.noFileMenu||mxClient.IS_IOS&&navigator.standalone||d.menus.addMenuItems(k,["print"],v);B||"min"==
-Editor.currentTheme||null==z||null==d.fileNode||"1"==urlParams.embedInline||(B=null!=z.getTitle()?z.getTitle():d.defaultFilename,/(\.html)$/i.test(B)||this.addMenuItems(k,["-","properties"]));k.addSeparator(v);"simple"==Editor.currentTheme&&(d.menus.addSubmenu("extras",k,v,mxResources.get("settings")),k.addSeparator(v));d.menus.addSubmenu("help",k,v);k.addSeparator(v);"1"==urlParams.embed&&("1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&d.menus.addMenuItems(k,["save"],v),"1"==urlParams.saveAndExit||
+(d.menus.addMenuItems(k,["-","findReplace"],v),d.commentsSupported()&&d.menus.addMenuItems(k,["comments","-"],v),d.menus.addMenuItems(k,"toggleShapes format layers tags chatWindowTitle -".split(" "),v),d.menus.addMenuItems(k,["pageSetup"],v)):"min"!=Editor.currentTheme&&(this.addMenuItems(k,["-"],v),this.addSubmenu("newLibrary",k,v),this.addSubmenu("openLibraryFrom",k,v));k.addSeparator(v);"1"==urlParams.noFileMenu||mxClient.IS_IOS&&navigator.standalone||d.menus.addMenuItems(k,["print"],v);A||"min"==
+Editor.currentTheme||null==z||null==d.fileNode||"1"==urlParams.embedInline||(A=null!=z.getTitle()?z.getTitle():d.defaultFilename,/(\.html)$/i.test(A)||this.addMenuItems(k,["-","properties"]));k.addSeparator(v);"simple"==Editor.currentTheme&&(d.menus.addSubmenu("extras",k,v,mxResources.get("settings")),k.addSeparator(v));d.menus.addSubmenu("help",k,v);k.addSeparator(v);"1"==urlParams.embed&&("1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&d.menus.addMenuItems(k,["save"],v),"1"==urlParams.saveAndExit||
"1"==urlParams.noSaveBtn&&"0"!=urlParams.saveAndExit)&&(d.menus.addMenuItems(k,["saveAndExit"],v),null!=z&&z.isRevisionHistorySupported()&&d.menus.addMenuItems(k,["revisionHistory"],v));"1"!=urlParams.embed&&d.mode!=App.MODE_ATLAS||"1"==urlParams.noExitBtn&&d.mode!=App.MODE_ATLAS||d.menus.addMenuItems(k,["exit"],v);"1"!=urlParams.embed&&null!=z&&"undefined"==typeof AtlasFile&&d.menus.addMenuItems(k,["-","close"],v)})));this.put("save",new Menu(mxUtils.bind(this,function(k,v){var z=d.getCurrentFile();
null==z||z.constructor!=DriveFile&&z.constructor!=OneDriveFile?(d.menus.addMenuItems(k,["save","saveAs","-","rename"],v),d.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&this.addMenuItems(k,["upload"],v):d.menus.addMenuItems(k,["makeCopy"],v)):d.menus.addMenuItems(k,["save","makeCopy","-","rename","moveToFolder"],v);d.menus.addMenuItems(k,["-","autosave"],v);null!=z&&z.isRevisionHistorySupported()&&d.menus.addMenuItems(k,["-","revisionHistory"],v)})));this.put("file",
new Menu(mxUtils.bind(this,function(k,v){var z="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme;if("1"==urlParams.embed)this.addSubmenu("importFrom",k,v),this.addSubmenu("exportAs",k,v),this.addSubmenu("embed",k,v),"1"==urlParams.libraries&&(this.addMenuItems(k,["-"],v),this.addSubmenu("newLibrary",k,v),this.addSubmenu("openLibraryFrom",k,v)),d.isRevisionHistorySupported()&&this.addMenuItems(k,["-","revisionHistory"],v),this.addMenuItems(k,["-","pageSetup",
"print","-","rename"],v),"1"!=urlParams.embedInline&&("1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&this.addMenuItems(k,["saveAndExit"],v):(this.addMenuItems(k,["save"],v),"1"==urlParams.saveAndExit&&this.addMenuItems(k,["saveAndExit"],v))),"1"!=urlParams.noExitBtn&&this.addMenuItems(k,["exit"],v);else if(z){z=d.getCurrentFile();d.menus.addMenuItems(k,["new"],v);d.menus.addSubmenu("openFrom",k,v);isLocalStorage&&this.addSubmenu("openRecent",k,v);k.addSeparator(v);d.menus.addMenuItems(k,["-",
"save"],v);null!=z&&z.constructor==DriveFile||d.menus.addMenuItems(k,["saveAs"],v);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==z||z.constructor==LocalFile&&null==z.fileHandle||d.menus.addMenuItems(k,["synchronize"],v);k.addSeparator(v);null!=z&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"sketch"!=Editor.currentTheme||this.addMenuItem(k,"publishLink",v,null,null,mxResources.get("publish")+"..."),"simple"==Editor.currentTheme||z.constructor!=DriveFile&&z.constructor!=GitHubFile&&z.constructor!=
OneDriveFile||d.menus.addMenuItems(k,["share"],v));k.addSeparator(v);null!=z&&z.isRenamable()&&this.addMenuItems(k,["rename"],v);d.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&this.addMenuItems(k,["upload"],v):(d.menus.addMenuItems(k,["makeCopy"],v),null!=z&&(z.constructor!=OneDriveFile&&z.constructor!=DriveFile||d.menus.addMenuItems(k,["moveToFolder"],v),k.addSeparator(v),null!=z.getFolderUrl()&&d.menus.addMenuItems(k,["openFolder"],v),null!=z.getFileUrl()&&d.menus.addMenuItems(k,
-["openFile"],v)));k.addSeparator(v);null!=z&&z.isRevisionHistorySupported()&&d.menus.addMenuItems(k,["revisionHistory"],v);if(null!=z&&null!=d.fileNode&&"1"!=urlParams.embedInline){var B=null!=z.getTitle()?z.getTitle():d.defaultFilename;(z.constructor==DriveFile&&null!=z.sync&&z.sync.isConnected()||!/(\.html)$/i.test(B))&&this.addMenuItems(k,["properties"],v)}"simple"==Editor.currentTheme&&d.menus.addMenuItems(k,["-","autosave"],v)}else z=this.editorUi.getCurrentFile(),null!=z&&z.constructor==DriveFile?
-(z.isRestricted()&&this.addMenuItems(k,["exportOptionsDisabled"],v),this.addMenuItems(k,["save","-","share"],v),B=this.addMenuItem(k,"synchronize",v),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(B,"https://www.drawio.com/doc/faq/synchronize"),k.addSeparator(v)):this.addMenuItems(k,["new"],v),this.addSubmenu("openFrom",k,v),isLocalStorage&&this.addSubmenu("openRecent",k,v),null!=z&&z.constructor==DriveFile?this.addMenuItems(k,"new - rename makeCopy openFolder moveToFolder".split(" "),
-v):(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==z||z.constructor==LocalFile&&null==z.fileHandle||(k.addSeparator(v),B=this.addMenuItem(k,"synchronize",v),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(B,"https://www.drawio.com/doc/faq/synchronize")),this.addMenuItems(k,["-","save","saveAs","-"],v),mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=d.getServiceName()||d.isOfflineApp()||null==z||this.addMenuItems(k,["share","-"],v),null!=z&&z.isRenamable()&&
+["openFile"],v)));k.addSeparator(v);null!=z&&z.isRevisionHistorySupported()&&d.menus.addMenuItems(k,["revisionHistory"],v);if(null!=z&&null!=d.fileNode&&"1"!=urlParams.embedInline){var A=null!=z.getTitle()?z.getTitle():d.defaultFilename;(z.constructor==DriveFile&&null!=z.sync&&z.sync.isConnected()||!/(\.html)$/i.test(A))&&this.addMenuItems(k,["properties"],v)}"simple"==Editor.currentTheme&&d.menus.addMenuItems(k,["-","autosave"],v)}else z=this.editorUi.getCurrentFile(),null!=z&&z.constructor==DriveFile?
+(z.isRestricted()&&this.addMenuItems(k,["exportOptionsDisabled"],v),this.addMenuItems(k,["save","-","share"],v),A=this.addMenuItem(k,"synchronize",v),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(A,"https://www.drawio.com/doc/faq/synchronize"),k.addSeparator(v)):this.addMenuItems(k,["new"],v),this.addSubmenu("openFrom",k,v),isLocalStorage&&this.addSubmenu("openRecent",k,v),null!=z&&z.constructor==DriveFile?this.addMenuItems(k,"new - rename makeCopy openFolder moveToFolder".split(" "),
+v):(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==z||z.constructor==LocalFile&&null==z.fileHandle||(k.addSeparator(v),A=this.addMenuItem(k,"synchronize",v),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(A,"https://www.drawio.com/doc/faq/synchronize")),this.addMenuItems(k,["-","save","saveAs","-"],v),mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=d.getServiceName()||d.isOfflineApp()||null==z||this.addMenuItems(k,["share","-"],v),null!=z&&z.isRenamable()&&
this.addMenuItems(k,["rename"],v),d.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&this.addMenuItems(k,["upload"],v):(this.addMenuItems(k,["makeCopy"],v),null!=z&&(z.constructor==OneDriveFile&&this.addMenuItems(k,["moveToFolder"],v),null!=z.getFolderUrl()&&d.menus.addMenuItems(k,["openFolder"],v)))),k.addSeparator(v),this.addSubmenu("importFrom",k,v),this.addSubmenu("exportAs",k,v),k.addSeparator(v),this.addSubmenu("embed",k,v),this.addSubmenu("publish",k,v),k.addSeparator(v),
-this.addSubmenu("newLibrary",k,v),this.addSubmenu("openLibraryFrom",k,v),d.isRevisionHistorySupported()&&this.addMenuItems(k,["-","revisionHistory"],v),null!=z&&null!=d.fileNode&&"1"!=urlParams.embedInline&&(B=null!=z.getTitle()?z.getTitle():d.defaultFilename,(z.constructor==DriveFile&&null!=z.sync&&z.sync.isConnected()||!/(\.html)$/i.test(B))&&this.addMenuItems(k,["-","properties"])),this.addMenuItems(k,["-","pageSetup"],v),mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(k,["print"],v),
-this.addMenuItems(k,["-","close"])})));this.put("fontFamily",new Menu(mxUtils.bind(this,function(k,v){function z(L){var Q=encodeURIComponent(L.name)+(null==L.url?"":"@"+encodeURIComponent(L.url));if(!H[Q]){for(var U=L.name,V=0;null!=F[U.toLowerCase()];)U=L.name+" ("+ ++V+")";null==q[Q]&&(J.push({name:L.name,url:L.url,label:U,title:L.url}),F[U.toLowerCase()]=L,q[Q]=L)}}for(var B=mxUtils.bind(this,function(L,Q,U,V,W){var X=d.editor.graph,Z=this.styleChange(k,null!=V?V:L,[mxConstants.STYLE_FONTFAMILY,
+this.addSubmenu("newLibrary",k,v),this.addSubmenu("openLibraryFrom",k,v),d.isRevisionHistorySupported()&&this.addMenuItems(k,["-","revisionHistory"],v),null!=z&&null!=d.fileNode&&"1"!=urlParams.embedInline&&(A=null!=z.getTitle()?z.getTitle():d.defaultFilename,(z.constructor==DriveFile&&null!=z.sync&&z.sync.isConnected()||!/(\.html)$/i.test(A))&&this.addMenuItems(k,["-","properties"])),this.addMenuItems(k,["-","pageSetup"],v),mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(k,["print"],v),
+this.addMenuItems(k,["-","close"])})));this.put("fontFamily",new Menu(mxUtils.bind(this,function(k,v){function z(L){var Q=encodeURIComponent(L.name)+(null==L.url?"":"@"+encodeURIComponent(L.url));if(!H[Q]){for(var U=L.name,V=0;null!=F[U.toLowerCase()];)U=L.name+" ("+ ++V+")";null==q[Q]&&(J.push({name:L.name,url:L.url,label:U,title:L.url}),F[U.toLowerCase()]=L,q[Q]=L)}}for(var A=mxUtils.bind(this,function(L,Q,U,V,W){var X=d.editor.graph,Z=this.styleChange(k,null!=V?V:L,[mxConstants.STYLE_FONTFAMILY,
"fontSource","FType"],[L,null!=Q?encodeURIComponent(Q):null,null],null,v,function(){X.setFont(L,Q);d.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],"values",[L,null!=Q?encodeURIComponent(Q):null,null],"cells",[X.cellEditor.getEditingCell()]))},function(){X.updateLabelElements(X.getSelectionCells(),function(Y){Y.removeAttribute("face");Y.style.fontFamily=null;"PRE"==Y.nodeName&&X.replaceElement(Y,"div")})});U&&(U=document.createElement("img"),
U.className="geAdaptiveAsset",U.setAttribute("src",Editor.crossImage),U.setAttribute("title",mxResources.get("delete")),U.setAttribute("valign","absmiddle"),U.setAttribute("border","0"),U.style.position="relative",U.style.top="2px",U.style.width="14px",U.style.cursor="default",U.style.margin="0 3px",Z.firstChild.nextSibling.nextSibling.appendChild(U),mxEvent.addListener(U,mxClient.IS_POINTER?"pointerup":"mouseup",mxUtils.bind(this,function(Y){this.removeCustomFont(L,Q);this.editorUi.hideCurrentMenu();
-mxEvent.consume(Y)})));Graph.addFont(L,Q);Z.firstChild.nextSibling.style.fontFamily=L;W=null!=V?V:L;null!=Q&&(W+=" ("+Q+")");Z.setAttribute("title",W)}),H={},R=0;R<this.defaultFonts.length;R++){var g=this.defaultFonts[R];"string"===typeof g?B(g):null!=g.fontFamily&&null!=g.fontUrl&&(H[encodeURIComponent(g.fontFamily)+"@"+encodeURIComponent(g.fontUrl)]=!0,B(g.fontFamily,g.fontUrl))}k.addSeparator(v);var q={},F={},J=[];for(R=0;R<this.customFonts.length;R++)z(this.customFonts[R]);J.sort(function(L,Q){return L.label<
-Q.label?-1:L.label>Q.label?1:0});if(0<J.length){for(R=0;R<J.length;R++)B(J[R].name,J[R].url,!0,J[R].label);k.addSeparator(v)}k.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];d.fireEvent(new mxEventObject("customFontsChanged"))}),v);k.addSeparator(v);k.addItem(mxResources.get("custom")+"...",null,mxUtils.bind(this,function(){var L=this.editorUi.editor.graph,Q=L.getStylesheet().getDefaultVertexStyle()[mxConstants.STYLE_FONTFAMILY],U="s",V=null;if(L.isEditing()){var W=
+mxEvent.consume(Y)})));Graph.addFont(L,Q);Z.firstChild.nextSibling.style.fontFamily=L;W=null!=V?V:L;null!=Q&&(W+=" ("+Q+")");Z.setAttribute("title",W)}),H={},R=0;R<this.defaultFonts.length;R++){var g=this.defaultFonts[R];"string"===typeof g?A(g):null!=g.fontFamily&&null!=g.fontUrl&&(H[encodeURIComponent(g.fontFamily)+"@"+encodeURIComponent(g.fontUrl)]=!0,A(g.fontFamily,g.fontUrl))}k.addSeparator(v);var q={},F={},J=[];for(R=0;R<this.customFonts.length;R++)z(this.customFonts[R]);J.sort(function(L,Q){return L.label<
+Q.label?-1:L.label>Q.label?1:0});if(0<J.length){for(R=0;R<J.length;R++)A(J[R].name,J[R].url,!0,J[R].label);k.addSeparator(v)}k.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];d.fireEvent(new mxEventObject("customFontsChanged"))}),v);k.addSeparator(v);k.addItem(mxResources.get("custom")+"...",null,mxUtils.bind(this,function(){var L=this.editorUi.editor.graph,Q=L.getStylesheet().getDefaultVertexStyle()[mxConstants.STYLE_FONTFAMILY],U="s",V=null;if(L.isEditing()){var W=
L.getSelectedEditingElement();if(null!=W){var X=mxUtils.getCurrentStyle(W);if(null!=X){Q=mxUtils.getCssFontFamily(X.fontFamily);X=L.getView().getState(L.cellEditor.getEditingCell());V=null!=X?X.style.fontSource:null;for(null!=V&&(V=decodeURIComponent(V));null!=W&&W!=L.cellEditor.textarea;){if(W.nodeType==mxConstants.NODETYPE_ELEMENT)if(null!=W.getAttribute("data-font-src")){V=W.getAttribute("data-font-src");break}else if(W.getAttribute("face")==Q){V=null;break}W=W.parentNode}null!=V&&(Graph.isGoogleFontUrl(V)?
(V=null,U="g"):U="w")}}}else X=L.getView().getState(L.getSelectionCell()),null!=X&&(Q=X.style[mxConstants.STYLE_FONTFAMILY]||Q,W=X.style.fontSource,null!=W&&(W=decodeURIComponent(W),Graph.isGoogleFontUrl(W)?U="g":(U="w",V=W)));null!=V&&V.substring(0,PROXY_URL.length)==PROXY_URL&&(V=decodeURIComponent(V.substr((PROXY_URL+"?url=").length)));var Z=null;document.activeElement==L.cellEditor.textarea&&(Z=L.cellEditor.saveSelection());Q=new FontDialog(this.editorUi,Q,V,U,mxUtils.bind(this,function(Y,ba,
ea){null!=Z&&(L.cellEditor.restoreSelection(Z),Z=null);if(null!=Y&&0<Y.length)if(this.addCustomFont(Y,ba),L.isEditing())L.setFont(Y,ba);else{L.getModel().beginUpdate();try{L.stopEditing(!1),L.setCellStyles(mxConstants.STYLE_FONTFAMILY,Y),L.setCellStyles("fontSource",null!=ba?encodeURIComponent(ba):null),L.setCellStyles("FType",null)}finally{L.getModel().endUpdate()}}}));this.editorUi.showDialog(Q.container,380,130+(Editor.enableWebFonts?70:0)+("0"!=urlParams.isGoogleFontsEnabled?50:0),!0,!0);Q.init()}),
@@ -14198,35 +14212,35 @@ b&&1<this.pages.length&&this.menus.addSubmenu("movePage",m,d,mxResources.get("mo
b.beforeDecode=function(f,m,d){d.ui=f.ui;d.relatedPage=d.ui.getPageById(m.getAttribute("relatedPage"));if(null==d.relatedPage){var t=m.ownerDocument.createElement("diagram");t.setAttribute("id",m.getAttribute("relatedPage"));t.setAttribute("name",m.getAttribute("name"));d.relatedPage=new DiagramPage(t);t=m.getAttribute("viewState");null!=t&&(d.relatedPage.viewState=JSON.parse(t),m.removeAttribute("viewState"));m=m.cloneNode(!0);t=m.firstChild;if(null!=t)for(d.relatedPage.root=f.decodeCell(t,!1),d=
t.nextSibling,t.parentNode.removeChild(t),t=d;null!=t;){d=t.nextSibling;if(t.nodeType==mxConstants.NODETYPE_ELEMENT){var y=t.getAttribute("id");null==f.lookup(y)&&f.decodeCell(t)}t.parentNode.removeChild(t);t=d}}return m};b.afterDecode=function(f,m,d){d.index=d.previousIndex;return d};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(d,t,y,x,C){t=null!=t?t:!1;null==y&&(y=this.getFoldableCells(this.getSelectionCells(),d));this.stopEditing();this.model.beginUpdate();try{for(var K=y.slice(),M=0;M<y.length;M++)"1"==mxUtils.getValue(this.getCurrentCellStyle(y[M]),"treeFolding","0")&&this.foldTreeCell(d,y[M]);y=K;y=b.apply(this,arguments)}finally{this.model.endUpdate()}return y};Graph.prototype.foldTreeCell=function(d,t){this.model.beginUpdate();try{var y=
[];this.traverse(t,!0,mxUtils.bind(this,function(C,K){var M=null!=K&&this.isTreeEdge(K);M&&y.push(K);C==t||null!=K&&!M||y.push(C);return(null==K||M)&&(C==t||!this.model.isCollapsed(C))}));this.model.setCollapsed(t,d);for(var x=0;x<y.length;x++)this.model.setVisible(y[x],!d)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(d){return!this.isEdgeIgnored(d)};Graph.prototype.getTreeEdges=function(d,t,y,x,C,K){return this.model.filterCells(this.getEdges(d,t,y,x,C,K),mxUtils.bind(this,
-function(M){return this.isTreeEdge(M)}))};Graph.prototype.getIncomingTreeEdges=function(d,t){return this.getTreeEdges(d,t,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,t){return this.getTreeEdges(d,t,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function d(B){return l.isVertex(B)&&y(B)}function t(B){var H=!1;null!=B&&(H="1"==
-e.getCurrentCellStyle(B).treeMoving);return H}function y(B){var H=!1;null!=B&&(B=l.getParent(B),H=e.view.getState(B),H="tree"==(null!=H?H.style:e.getCellStyle(B)).containerType);return H}function x(B){var H=!1;null!=B&&(B=l.getParent(B),H=e.view.getState(B),e.view.getState(B),H=null!=(null!=H?H.style:e.getCellStyle(B)).childLayout);return H}function C(B){B=e.view.getState(B);if(null!=B){var H=e.getIncomingTreeEdges(B.cell);if(0<H.length&&(H=e.view.getState(H[0]),null!=H&&(H=H.absolutePoints,null!=
-H&&0<H.length&&(H=H[H.length-1],null!=H)))){if(H.y==B.y&&Math.abs(H.x-B.getCenterX())<B.width/2)return mxConstants.DIRECTION_SOUTH;if(H.y==B.y+B.height&&Math.abs(H.x-B.getCenterX())<B.width/2)return mxConstants.DIRECTION_NORTH;if(H.x>B.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function K(B,H){H=null!=H?H:!0;e.model.beginUpdate();try{var R=e.model.getParent(B),g=e.getIncomingTreeEdges(B),q=e.cloneCells([g[0],B]);e.model.setTerminal(q[0],e.model.getTerminal(g[0],
-!0),!0);var F=C(B),J=R.geometry;F==mxConstants.DIRECTION_SOUTH||F==mxConstants.DIRECTION_NORTH?q[1].geometry.x+=H?B.geometry.width+10:-q[1].geometry.width-10:q[1].geometry.y+=H?B.geometry.height+10:-q[1].geometry.height-10;e.view.currentRoot!=R&&(q[1].geometry.x-=J.x,q[1].geometry.y-=J.y);var L=e.view.getState(B),Q=e.view.scale;if(null!=L){var U=mxRectangle.fromRectangle(L);F==mxConstants.DIRECTION_SOUTH||F==mxConstants.DIRECTION_NORTH?U.x+=(H?B.geometry.width+10:-q[1].geometry.width-10)*Q:U.y+=(H?
-B.geometry.height+10:-q[1].geometry.height-10)*Q;var V=e.getOutgoingTreeEdges(e.model.getTerminal(g[0],!0));if(null!=V){for(var W=F==mxConstants.DIRECTION_SOUTH||F==mxConstants.DIRECTION_NORTH,X=J=g=0;X<V.length;X++){var Z=e.model.getTerminal(V[X],!1);if(F==C(Z)){var Y=e.view.getState(Z);Z!=B&&null!=Y&&(W&&H!=Y.getCenterX()<L.getCenterX()||!W&&H!=Y.getCenterY()<L.getCenterY())&&mxUtils.intersects(U,Y)&&(g=10+Math.max(g,(Math.min(U.x+U.width,Y.x+Y.width)-Math.max(U.x,Y.x))/Q),J=10+Math.max(J,(Math.min(U.y+
-U.height,Y.y+Y.height)-Math.max(U.y,Y.y))/Q))}}W?J=0:g=0;for(X=0;X<V.length;X++)if(Z=e.model.getTerminal(V[X],!1),F==C(Z)&&(Y=e.view.getState(Z),Z!=B&&null!=Y&&(W&&H!=Y.getCenterX()<L.getCenterX()||!W&&H!=Y.getCenterY()<L.getCenterY()))){var ba=[];e.traverse(Y.cell,!0,function(ea,ca){var da=null!=ca&&e.isTreeEdge(ca);da&&ba.push(ca);(null==ca||da)&&ba.push(ea);return null==ca||da});e.moveCells(ba,(H?1:-1)*g,(H?1:-1)*J)}}}return e.addCells(q,R)}finally{e.model.endUpdate()}}function M(B){e.model.beginUpdate();
-try{var H=C(B),R=e.getIncomingTreeEdges(B),g=e.cloneCells([R[0],B]);e.model.setTerminal(R[0],g[1],!1);e.model.setTerminal(g[0],g[1],!0);e.model.setTerminal(g[0],B,!1);var q=e.model.getParent(B),F=q.geometry,J=[];e.view.currentRoot!=q&&(g[1].geometry.x-=F.x,g[1].geometry.y-=F.y);e.traverse(B,!0,function(U,V){var W=null!=V&&e.isTreeEdge(V);W&&J.push(V);(null==V||W)&&J.push(U);return null==V||W});var L=B.geometry.width+40,Q=B.geometry.height+40;H==mxConstants.DIRECTION_SOUTH?L=0:H==mxConstants.DIRECTION_NORTH?
-(L=0,Q=-Q):H==mxConstants.DIRECTION_WEST?(L=-L,Q=0):H==mxConstants.DIRECTION_EAST&&(Q=0);e.moveCells(J,L,Q);return e.addCells(g,q)}finally{e.model.endUpdate()}}function N(B,H){e.model.beginUpdate();try{var R=e.model.getParent(B),g=e.getIncomingTreeEdges(B),q=C(B);0==g.length&&(g=[e.createEdge(R,null,"",null,null,e.createCurrentEdgeStyle())],q=H);var F=e.cloneCells([g[0],B]);e.model.setTerminal(F[0],B,!0);null==e.model.getTerminal(F[0],!1)&&(e.model.setTerminal(F[0],F[1],!1),e.applyNewEdgeStyle(F[1],
-[F[0]],q));g=e.getOutgoingTreeEdges(B);var J=R.geometry;H=[];e.view.currentRoot==R&&(J=new mxRectangle);for(var L=0;L<g.length;L++){var Q=e.model.getTerminal(g[L],!1);null!=Q&&H.push(Q)}var U=e.view.getBounds(H),V=e.view.translate,W=e.view.scale;q==mxConstants.DIRECTION_SOUTH?(F[1].geometry.x=null==U?B.geometry.x+(B.geometry.width-F[1].geometry.width)/2:(U.x+U.width)/W-V.x-J.x+10,F[1].geometry.y+=F[1].geometry.height-J.y+40):q==mxConstants.DIRECTION_NORTH?(F[1].geometry.x=null==U?B.geometry.x+(B.geometry.width-
-F[1].geometry.width)/2:(U.x+U.width)/W-V.x+-J.x+10,F[1].geometry.y-=F[1].geometry.height+J.y+40):(F[1].geometry.x=q==mxConstants.DIRECTION_WEST?F[1].geometry.x-(F[1].geometry.width+J.x+40):F[1].geometry.x+(F[1].geometry.width-J.x+40),F[1].geometry.y=null==U?B.geometry.y+(B.geometry.height-F[1].geometry.height)/2:(U.y+U.height)/W-V.y+-J.y+10);return e.addCells(F,R)}finally{e.model.endUpdate()}}function P(B,H,R){B=e.getOutgoingTreeEdges(B);R=e.view.getState(R);var g=[];if(null!=R&&null!=B){for(var q=
-0;q<B.length;q++){var F=e.view.getState(e.model.getTerminal(B[q],!1));null!=F&&(!H&&Math.min(F.x+F.width,R.x+R.width)>=Math.max(F.x,R.x)||H&&Math.min(F.y+F.height,R.y+R.height)>=Math.max(F.y,R.y))&&g.push(F)}g.sort(function(J,L){return H?J.x+J.width-L.x-L.width:J.y+J.height-L.y-L.height})}return g}function I(B,H){var R=C(B),g=H==mxConstants.DIRECTION_EAST||H==mxConstants.DIRECTION_WEST;(R==mxConstants.DIRECTION_EAST||R==mxConstants.DIRECTION_WEST)==g&&R!=H?c.actions.get("selectParent").funct():R==
-H?(H=e.getOutgoingTreeEdges(B),null!=H&&0<H.length&&e.setSelectionCell(e.model.getTerminal(H[0],!1))):(R=e.getIncomingTreeEdges(B),null!=R&&0<R.length&&(g=P(e.model.getTerminal(R[0],!0),g,B),B=e.view.getState(B),null!=B&&(B=mxUtils.indexOf(g,B),0<=B&&(B+=H==mxConstants.DIRECTION_NORTH||H==mxConstants.DIRECTION_WEST?-1:1,0<=B&&B<=g.length-1&&e.setSelectionCell(g[B].cell)))))}var c=this,e=c.editor.graph,l=e.getModel(),n=c.menus.createPopupMenu;c.menus.createPopupMenu=function(B,H,R){n.apply(this,arguments);
-if(1==e.getSelectionCount()){H=e.getSelectionCell();var g=e.getOutgoingTreeEdges(H);B.addSeparator();0<g.length&&(d(e.getSelectionCell())&&this.addMenuItems(B,["selectChildren"],null,R),this.addMenuItems(B,["selectDescendants"],null,R));d(e.getSelectionCell())?(B.addSeparator(),0<e.getIncomingTreeEdges(H).length&&this.addMenuItems(B,["selectSiblings","selectParent"],null,R)):0<e.model.getEdgeCount(H)&&this.addMenuItems(B,["selectConnections"],null,R)}};c.actions.addAction("selectChildren",function(B){if(e.isEnabled()&&
-1==e.getSelectionCount()){var H=e.getSelectionCell();B=mxEvent.isControlDown(B)?null:e.getOutgoingTreeEdges(H);if(null!=B&&0<B.length){H=[];for(var R=0;R<B.length;R++)H.push(e.model.getTerminal(B[R],!1));e.setSelectionCells(H)}else e.setSelectionCells(e.model.getChildren(H))}},null,null,"Alt+Shift+C");c.actions.addAction("selectDescendants",function(B){var H=e.getSelectionCell();if(e.isEnabled()&&null!=H){var R=[];mxEvent.isControlDown(B)||e.traverse(H,!0,function(g,q){var F=null!=q&&e.isTreeEdge(q);
-F&&mxEvent.isControlDown(B)&&R.push(q);(null==q||F)&&R.push(g);return null==q||F});if(0==R.length||1==R.length&&R[0]==H)R=e.model.getDescendants(H);e.setSelectionCells(R)}},null,null,"Alt+Shift+X");c.actions.addAction("selectParent",function(B){var H=e.getSelectionCell();e.isEnabled()&&null!=H&&(B=mxEvent.isControlDown(B)?null:e.getIncomingTreeEdges(H),null!=B&&0<B.length?e.setSelectionCell(e.model.getTerminal(B[0],!0)):e.selectParentCell())},null,null,"Alt+Shift+P");c.actions.addAction("selectSiblings",
-function(B){if(e.isEnabled()&&1==e.getSelectionCount()){var H=e.getSelectionCell(),R=mxEvent.isControlDown(B)?null:e.getIncomingTreeEdges(H);B=[];if(null!=R&&0<R.length&&(R=e.getOutgoingTreeEdges(e.model.getTerminal(R[0],!0)),null!=R))for(var g=0;g<R.length;g++)B.push(e.model.getTerminal(R[g],!1));0==B.length&&(B=e.model.getChildren(e.model.getParent(H)));e.setSelectionCells(B)}},null,null,"Alt+Shift+S");var p=e.removeCells;e.removeCells=function(B,H){H=null!=H?H:!0;null==B&&(B=this.getDeletableCells(this.getSelectionCells()));
-H&&(B=this.getDeletableCells(this.addAllEdges(B)));for(var R=[],g=0;g<B.length;g++){var q=B[g];l.isEdge(q)&&y(q)&&(R.push(q),q=l.getTerminal(q,!1));if(d(q)){var F=[];e.traverse(q,!0,function(J,L){var Q=null!=L&&e.isTreeEdge(L);Q&&F.push(L);(null==L||Q)&&F.push(J);return null==L||Q});0<F.length&&(R=R.concat(F),q=e.getIncomingTreeEdges(B[g]),B=B.concat(q))}else null!=q&&R.push(B[g])}B=R;return p.apply(this,arguments)};c.hoverIcons.getStateAt=function(B,H,R){return d(B.cell)?null:this.graph.view.getState(this.graph.getCellAt(H,
-R))};var u=e.duplicateCells;e.duplicateCells=function(B,H){B=null!=B?B:this.getSelectionCells();for(var R=B.slice(0),g=0;g<R.length;g++){var q=e.view.getState(R[g]);if(null!=q&&d(q.cell)){var F=e.getIncomingTreeEdges(q.cell);for(q=0;q<F.length;q++)mxUtils.remove(F[q],B)}}this.model.beginUpdate();try{var J=u.call(this,B,H);if(J.length==B.length)for(g=0;g<B.length;g++)if(d(B[g])){var L=e.getIncomingTreeEdges(J[g]);F=e.getIncomingTreeEdges(B[g]);if(0==L.length&&0<F.length){var Q=this.cloneCell(F[0]);
-this.addEdge(Q,e.getDefaultParent(),this.model.getTerminal(F[0],!0),J[g])}}}finally{this.model.endUpdate()}return J};var A=e.moveCells;e.moveCells=function(B,H,R,g,q,F,J){for(var L=null,Q=[],U=0;U<B.length;U++)(t(B[U])||d(B[U]))&&!x(B[U])&&this.isCellCollapsed(B[U])?Q=Q.concat(this.getSubtree(B[U])):Q.push(B[U]);B=mxUtils.removeDuplicates(Q);this.model.beginUpdate();try{Q=q;var V=this.getCurrentCellStyle(q);if(null!=B&&d(q)&&"1"==mxUtils.getValue(V,"treeFolding","0")){for(U=0;U<B.length;U++)if(d(B[U])||
-e.model.isEdge(B[U])&&null==e.model.getTerminal(B[U],!0)){q=e.model.getParent(B[U]);break}if(null!=Q&&q!=Q&&null!=this.view.getState(B[0])){var W=e.getIncomingTreeEdges(B[0]);if(0<W.length){var X=e.view.getState(e.model.getTerminal(W[0],!0));if(null!=X){var Z=e.view.getState(Q);null!=Z&&(H=(Z.getCenterX()-X.getCenterX())/e.view.scale,R=(Z.getCenterY()-X.getCenterY())/e.view.scale)}}}}L=A.apply(this,arguments);if(null!=L&&null!=B&&L.length==B.length)for(U=0;U<L.length;U++)if(this.model.isEdge(L[U]))d(Q)&&
-0>mxUtils.indexOf(L,this.model.getTerminal(L[U],!0))&&this.model.setTerminal(L[U],Q,!0);else if(d(B[U])&&(W=e.getIncomingTreeEdges(B[U]),0<W.length))if(!g)d(Q)&&0>mxUtils.indexOf(B,this.model.getTerminal(W[0],!0))&&this.model.setTerminal(W[0],Q,!0);else if(0==e.getIncomingTreeEdges(L[U]).length){V=Q;if(null==V||V==e.model.getParent(B[U]))V=e.model.getTerminal(W[0],!0);g=this.cloneCell(W[0]);this.addEdge(g,e.getDefaultParent(),V,L[U])}}finally{this.model.endUpdate()}return L};if(null!=c.sidebar){var D=
-c.sidebar.dropAndConnect;c.sidebar.dropAndConnect=function(B,H,R,g){var q=e.model,F=null;q.beginUpdate();try{if(F=D.apply(this,arguments),d(B))for(var J=0;J<F.length;J++)if(q.isEdge(F[J])&&null==q.getTerminal(F[J],!0)){q.setTerminal(F[J],B,!0);var L=e.getCellGeometry(F[J]);L.points=null;null!=L.getTerminalPoint(!0)&&L.setTerminalPoint(null,!0)}}finally{q.endUpdate()}return F}}var G={67:c.actions.get("selectChildren"),88:c.actions.get("selectDescendants"),80:c.actions.get("selectParent"),83:c.actions.get("selectSiblings")},
-E={67:c.actions.get("copyStyle"),86:c.actions.get("pasteStyle")},T=c.onKeyDown;c.onKeyDown=function(B){try{var H=e.getSelectionCell();if(e.isEnabled()&&!e.isEditing()&&null!=H){var R=mxEvent.isAltDown(B)&&mxEvent.isShiftDown(B)?G[B.keyCode]:mxEvent.isAltDown(B)?E[B.keyCode]:null;null!=R?(R.funct(B),mxEvent.consume(B)):d(H)&&(R=null,0<e.getIncomingTreeEdges(H).length&&(9==B.which?R=mxEvent.isShiftDown(B)?M(H):N(H):13==B.which&&(R=K(H,!mxEvent.isShiftDown(B)))),null!=R&&0<R.length?(1==R.length&&e.model.isEdge(R[0])?
-e.setSelectionCell(e.model.getTerminal(R[0],!1)):e.setSelectionCell(R[R.length-1]),null!=c.hoverIcons&&c.hoverIcons.update(e.view.getState(H)),e.startEditingAtCell(H),mxEvent.consume(B)):37==B.keyCode?(I(H,mxConstants.DIRECTION_WEST),mxEvent.consume(B)):38==B.keyCode?(I(H,mxConstants.DIRECTION_NORTH),mxEvent.consume(B)):39==B.keyCode?(I(H,mxConstants.DIRECTION_EAST),mxEvent.consume(B)):40==B.keyCode&&(I(H,mxConstants.DIRECTION_SOUTH),mxEvent.consume(B)))}}catch(g){c.handleError(g)}mxEvent.isConsumed(B)||
-T.apply(this,arguments)};var O=e.connectVertex;e.connectVertex=function(B,H,R,g,q,F,J){var L=e.getIncomingTreeEdges(B);if(d(B)){var Q=C(B),U=Q==mxConstants.DIRECTION_EAST||Q==mxConstants.DIRECTION_WEST,V=H==mxConstants.DIRECTION_EAST||H==mxConstants.DIRECTION_WEST;return Q==H||0==L.length?N(B,H):U==V?M(B):K(B,H!=mxConstants.DIRECTION_NORTH&&H!=mxConstants.DIRECTION_WEST)}return O.apply(this,arguments)};e.getSubtree=function(B){var H=[B];!t(B)&&!d(B)||x(B)||e.traverse(B,!0,function(R,g){var q=null!=
+function(M){return this.isTreeEdge(M)}))};Graph.prototype.getIncomingTreeEdges=function(d,t){return this.getTreeEdges(d,t,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,t){return this.getTreeEdges(d,t,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function d(A){return l.isVertex(A)&&y(A)}function t(A){var H=!1;null!=A&&(H="1"==
+e.getCurrentCellStyle(A).treeMoving);return H}function y(A){var H=!1;null!=A&&(A=l.getParent(A),H=e.view.getState(A),H="tree"==(null!=H?H.style:e.getCellStyle(A)).containerType);return H}function x(A){var H=!1;null!=A&&(A=l.getParent(A),H=e.view.getState(A),e.view.getState(A),H=null!=(null!=H?H.style:e.getCellStyle(A)).childLayout);return H}function C(A){A=e.view.getState(A);if(null!=A){var H=e.getIncomingTreeEdges(A.cell);if(0<H.length&&(H=e.view.getState(H[0]),null!=H&&(H=H.absolutePoints,null!=
+H&&0<H.length&&(H=H[H.length-1],null!=H)))){if(H.y==A.y&&Math.abs(H.x-A.getCenterX())<A.width/2)return mxConstants.DIRECTION_SOUTH;if(H.y==A.y+A.height&&Math.abs(H.x-A.getCenterX())<A.width/2)return mxConstants.DIRECTION_NORTH;if(H.x>A.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function K(A,H){H=null!=H?H:!0;e.model.beginUpdate();try{var R=e.model.getParent(A),g=e.getIncomingTreeEdges(A),q=e.cloneCells([g[0],A]);e.model.setTerminal(q[0],e.model.getTerminal(g[0],
+!0),!0);var F=C(A),J=R.geometry;F==mxConstants.DIRECTION_SOUTH||F==mxConstants.DIRECTION_NORTH?q[1].geometry.x+=H?A.geometry.width+10:-q[1].geometry.width-10:q[1].geometry.y+=H?A.geometry.height+10:-q[1].geometry.height-10;e.view.currentRoot!=R&&(q[1].geometry.x-=J.x,q[1].geometry.y-=J.y);var L=e.view.getState(A),Q=e.view.scale;if(null!=L){var U=mxRectangle.fromRectangle(L);F==mxConstants.DIRECTION_SOUTH||F==mxConstants.DIRECTION_NORTH?U.x+=(H?A.geometry.width+10:-q[1].geometry.width-10)*Q:U.y+=(H?
+A.geometry.height+10:-q[1].geometry.height-10)*Q;var V=e.getOutgoingTreeEdges(e.model.getTerminal(g[0],!0));if(null!=V){for(var W=F==mxConstants.DIRECTION_SOUTH||F==mxConstants.DIRECTION_NORTH,X=J=g=0;X<V.length;X++){var Z=e.model.getTerminal(V[X],!1);if(F==C(Z)){var Y=e.view.getState(Z);Z!=A&&null!=Y&&(W&&H!=Y.getCenterX()<L.getCenterX()||!W&&H!=Y.getCenterY()<L.getCenterY())&&mxUtils.intersects(U,Y)&&(g=10+Math.max(g,(Math.min(U.x+U.width,Y.x+Y.width)-Math.max(U.x,Y.x))/Q),J=10+Math.max(J,(Math.min(U.y+
+U.height,Y.y+Y.height)-Math.max(U.y,Y.y))/Q))}}W?J=0:g=0;for(X=0;X<V.length;X++)if(Z=e.model.getTerminal(V[X],!1),F==C(Z)&&(Y=e.view.getState(Z),Z!=A&&null!=Y&&(W&&H!=Y.getCenterX()<L.getCenterX()||!W&&H!=Y.getCenterY()<L.getCenterY()))){var ba=[];e.traverse(Y.cell,!0,function(ea,ca){var da=null!=ca&&e.isTreeEdge(ca);da&&ba.push(ca);(null==ca||da)&&ba.push(ea);return null==ca||da});e.moveCells(ba,(H?1:-1)*g,(H?1:-1)*J)}}}return e.addCells(q,R)}finally{e.model.endUpdate()}}function M(A){e.model.beginUpdate();
+try{var H=C(A),R=e.getIncomingTreeEdges(A),g=e.cloneCells([R[0],A]);e.model.setTerminal(R[0],g[1],!1);e.model.setTerminal(g[0],g[1],!0);e.model.setTerminal(g[0],A,!1);var q=e.model.getParent(A),F=q.geometry,J=[];e.view.currentRoot!=q&&(g[1].geometry.x-=F.x,g[1].geometry.y-=F.y);e.traverse(A,!0,function(U,V){var W=null!=V&&e.isTreeEdge(V);W&&J.push(V);(null==V||W)&&J.push(U);return null==V||W});var L=A.geometry.width+40,Q=A.geometry.height+40;H==mxConstants.DIRECTION_SOUTH?L=0:H==mxConstants.DIRECTION_NORTH?
+(L=0,Q=-Q):H==mxConstants.DIRECTION_WEST?(L=-L,Q=0):H==mxConstants.DIRECTION_EAST&&(Q=0);e.moveCells(J,L,Q);return e.addCells(g,q)}finally{e.model.endUpdate()}}function N(A,H){e.model.beginUpdate();try{var R=e.model.getParent(A),g=e.getIncomingTreeEdges(A),q=C(A);0==g.length&&(g=[e.createEdge(R,null,"",null,null,e.createCurrentEdgeStyle())],q=H);var F=e.cloneCells([g[0],A]);e.model.setTerminal(F[0],A,!0);null==e.model.getTerminal(F[0],!1)&&(e.model.setTerminal(F[0],F[1],!1),e.applyNewEdgeStyle(F[1],
+[F[0]],q));g=e.getOutgoingTreeEdges(A);var J=R.geometry;H=[];e.view.currentRoot==R&&(J=new mxRectangle);for(var L=0;L<g.length;L++){var Q=e.model.getTerminal(g[L],!1);null!=Q&&H.push(Q)}var U=e.view.getBounds(H),V=e.view.translate,W=e.view.scale;q==mxConstants.DIRECTION_SOUTH?(F[1].geometry.x=null==U?A.geometry.x+(A.geometry.width-F[1].geometry.width)/2:(U.x+U.width)/W-V.x-J.x+10,F[1].geometry.y+=F[1].geometry.height-J.y+40):q==mxConstants.DIRECTION_NORTH?(F[1].geometry.x=null==U?A.geometry.x+(A.geometry.width-
+F[1].geometry.width)/2:(U.x+U.width)/W-V.x+-J.x+10,F[1].geometry.y-=F[1].geometry.height+J.y+40):(F[1].geometry.x=q==mxConstants.DIRECTION_WEST?F[1].geometry.x-(F[1].geometry.width+J.x+40):F[1].geometry.x+(F[1].geometry.width-J.x+40),F[1].geometry.y=null==U?A.geometry.y+(A.geometry.height-F[1].geometry.height)/2:(U.y+U.height)/W-V.y+-J.y+10);return e.addCells(F,R)}finally{e.model.endUpdate()}}function P(A,H,R){A=e.getOutgoingTreeEdges(A);R=e.view.getState(R);var g=[];if(null!=R&&null!=A){for(var q=
+0;q<A.length;q++){var F=e.view.getState(e.model.getTerminal(A[q],!1));null!=F&&(!H&&Math.min(F.x+F.width,R.x+R.width)>=Math.max(F.x,R.x)||H&&Math.min(F.y+F.height,R.y+R.height)>=Math.max(F.y,R.y))&&g.push(F)}g.sort(function(J,L){return H?J.x+J.width-L.x-L.width:J.y+J.height-L.y-L.height})}return g}function I(A,H){var R=C(A),g=H==mxConstants.DIRECTION_EAST||H==mxConstants.DIRECTION_WEST;(R==mxConstants.DIRECTION_EAST||R==mxConstants.DIRECTION_WEST)==g&&R!=H?c.actions.get("selectParent").funct():R==
+H?(H=e.getOutgoingTreeEdges(A),null!=H&&0<H.length&&e.setSelectionCell(e.model.getTerminal(H[0],!1))):(R=e.getIncomingTreeEdges(A),null!=R&&0<R.length&&(g=P(e.model.getTerminal(R[0],!0),g,A),A=e.view.getState(A),null!=A&&(A=mxUtils.indexOf(g,A),0<=A&&(A+=H==mxConstants.DIRECTION_NORTH||H==mxConstants.DIRECTION_WEST?-1:1,0<=A&&A<=g.length-1&&e.setSelectionCell(g[A].cell)))))}var c=this,e=c.editor.graph,l=e.getModel(),n=c.menus.createPopupMenu;c.menus.createPopupMenu=function(A,H,R){n.apply(this,arguments);
+if(1==e.getSelectionCount()){H=e.getSelectionCell();var g=e.getOutgoingTreeEdges(H);A.addSeparator();0<g.length&&(d(e.getSelectionCell())&&this.addMenuItems(A,["selectChildren"],null,R),this.addMenuItems(A,["selectDescendants"],null,R));d(e.getSelectionCell())?(A.addSeparator(),0<e.getIncomingTreeEdges(H).length&&this.addMenuItems(A,["selectSiblings","selectParent"],null,R)):0<e.model.getEdgeCount(H)&&this.addMenuItems(A,["selectConnections"],null,R)}};c.actions.addAction("selectChildren",function(A){if(e.isEnabled()&&
+1==e.getSelectionCount()){var H=e.getSelectionCell();A=mxEvent.isControlDown(A)?null:e.getOutgoingTreeEdges(H);if(null!=A&&0<A.length){H=[];for(var R=0;R<A.length;R++)H.push(e.model.getTerminal(A[R],!1));e.setSelectionCells(H)}else e.setSelectionCells(e.model.getChildren(H))}},null,null,"Alt+Shift+C");c.actions.addAction("selectDescendants",function(A){var H=e.getSelectionCell();if(e.isEnabled()&&null!=H){var R=[];mxEvent.isControlDown(A)||e.traverse(H,!0,function(g,q){var F=null!=q&&e.isTreeEdge(q);
+F&&mxEvent.isControlDown(A)&&R.push(q);(null==q||F)&&R.push(g);return null==q||F});if(0==R.length||1==R.length&&R[0]==H)R=e.model.getDescendants(H);e.setSelectionCells(R)}},null,null,"Alt+Shift+X");c.actions.addAction("selectParent",function(A){var H=e.getSelectionCell();e.isEnabled()&&null!=H&&(A=mxEvent.isControlDown(A)?null:e.getIncomingTreeEdges(H),null!=A&&0<A.length?e.setSelectionCell(e.model.getTerminal(A[0],!0)):e.selectParentCell())},null,null,"Alt+Shift+P");c.actions.addAction("selectSiblings",
+function(A){if(e.isEnabled()&&1==e.getSelectionCount()){var H=e.getSelectionCell(),R=mxEvent.isControlDown(A)?null:e.getIncomingTreeEdges(H);A=[];if(null!=R&&0<R.length&&(R=e.getOutgoingTreeEdges(e.model.getTerminal(R[0],!0)),null!=R))for(var g=0;g<R.length;g++)A.push(e.model.getTerminal(R[g],!1));0==A.length&&(A=e.model.getChildren(e.model.getParent(H)));e.setSelectionCells(A)}},null,null,"Alt+Shift+S");var p=e.removeCells;e.removeCells=function(A,H){H=null!=H?H:!0;null==A&&(A=this.getDeletableCells(this.getSelectionCells()));
+H&&(A=this.getDeletableCells(this.addAllEdges(A)));for(var R=[],g=0;g<A.length;g++){var q=A[g];l.isEdge(q)&&y(q)&&(R.push(q),q=l.getTerminal(q,!1));if(d(q)){var F=[];e.traverse(q,!0,function(J,L){var Q=null!=L&&e.isTreeEdge(L);Q&&F.push(L);(null==L||Q)&&F.push(J);return null==L||Q});0<F.length&&(R=R.concat(F),q=e.getIncomingTreeEdges(A[g]),A=A.concat(q))}else null!=q&&R.push(A[g])}A=R;return p.apply(this,arguments)};c.hoverIcons.getStateAt=function(A,H,R){return d(A.cell)?null:this.graph.view.getState(this.graph.getCellAt(H,
+R))};var u=e.duplicateCells;e.duplicateCells=function(A,H){A=null!=A?A:this.getSelectionCells();for(var R=A.slice(0),g=0;g<R.length;g++){var q=e.view.getState(R[g]);if(null!=q&&d(q.cell)){var F=e.getIncomingTreeEdges(q.cell);for(q=0;q<F.length;q++)mxUtils.remove(F[q],A)}}this.model.beginUpdate();try{var J=u.call(this,A,H);if(J.length==A.length)for(g=0;g<A.length;g++)if(d(A[g])){var L=e.getIncomingTreeEdges(J[g]);F=e.getIncomingTreeEdges(A[g]);if(0==L.length&&0<F.length){var Q=this.cloneCell(F[0]);
+this.addEdge(Q,e.getDefaultParent(),this.model.getTerminal(F[0],!0),J[g])}}}finally{this.model.endUpdate()}return J};var B=e.moveCells;e.moveCells=function(A,H,R,g,q,F,J){for(var L=null,Q=[],U=0;U<A.length;U++)(t(A[U])||d(A[U]))&&!x(A[U])&&this.isCellCollapsed(A[U])?Q=Q.concat(this.getSubtree(A[U])):Q.push(A[U]);A=mxUtils.removeDuplicates(Q);this.model.beginUpdate();try{Q=q;var V=this.getCurrentCellStyle(q);if(null!=A&&d(q)&&"1"==mxUtils.getValue(V,"treeFolding","0")){for(U=0;U<A.length;U++)if(d(A[U])||
+e.model.isEdge(A[U])&&null==e.model.getTerminal(A[U],!0)){q=e.model.getParent(A[U]);break}if(null!=Q&&q!=Q&&null!=this.view.getState(A[0])){var W=e.getIncomingTreeEdges(A[0]);if(0<W.length){var X=e.view.getState(e.model.getTerminal(W[0],!0));if(null!=X){var Z=e.view.getState(Q);null!=Z&&(H=(Z.getCenterX()-X.getCenterX())/e.view.scale,R=(Z.getCenterY()-X.getCenterY())/e.view.scale)}}}}L=B.apply(this,arguments);if(null!=L&&null!=A&&L.length==A.length)for(U=0;U<L.length;U++)if(this.model.isEdge(L[U]))d(Q)&&
+0>mxUtils.indexOf(L,this.model.getTerminal(L[U],!0))&&this.model.setTerminal(L[U],Q,!0);else if(d(A[U])&&(W=e.getIncomingTreeEdges(A[U]),0<W.length))if(!g)d(Q)&&0>mxUtils.indexOf(A,this.model.getTerminal(W[0],!0))&&this.model.setTerminal(W[0],Q,!0);else if(0==e.getIncomingTreeEdges(L[U]).length){V=Q;if(null==V||V==e.model.getParent(A[U]))V=e.model.getTerminal(W[0],!0);g=this.cloneCell(W[0]);this.addEdge(g,e.getDefaultParent(),V,L[U])}}finally{this.model.endUpdate()}return L};if(null!=c.sidebar){var D=
+c.sidebar.dropAndConnect;c.sidebar.dropAndConnect=function(A,H,R,g){var q=e.model,F=null;q.beginUpdate();try{if(F=D.apply(this,arguments),d(A))for(var J=0;J<F.length;J++)if(q.isEdge(F[J])&&null==q.getTerminal(F[J],!0)){q.setTerminal(F[J],A,!0);var L=e.getCellGeometry(F[J]);L.points=null;null!=L.getTerminalPoint(!0)&&L.setTerminalPoint(null,!0)}}finally{q.endUpdate()}return F}}var G={67:c.actions.get("selectChildren"),88:c.actions.get("selectDescendants"),80:c.actions.get("selectParent"),83:c.actions.get("selectSiblings")},
+E={67:c.actions.get("copyStyle"),86:c.actions.get("pasteStyle")},T=c.onKeyDown;c.onKeyDown=function(A){try{var H=e.getSelectionCell();if(e.isEnabled()&&!e.isEditing()&&null!=H){var R=mxEvent.isAltDown(A)&&mxEvent.isShiftDown(A)?G[A.keyCode]:mxEvent.isAltDown(A)?E[A.keyCode]:null;null!=R?(R.funct(A),mxEvent.consume(A)):d(H)&&(R=null,0<e.getIncomingTreeEdges(H).length&&(9==A.which?R=mxEvent.isShiftDown(A)?M(H):N(H):13==A.which&&(R=K(H,!mxEvent.isShiftDown(A)))),null!=R&&0<R.length?(1==R.length&&e.model.isEdge(R[0])?
+e.setSelectionCell(e.model.getTerminal(R[0],!1)):e.setSelectionCell(R[R.length-1]),null!=c.hoverIcons&&c.hoverIcons.update(e.view.getState(H)),e.startEditingAtCell(H),mxEvent.consume(A)):37==A.keyCode?(I(H,mxConstants.DIRECTION_WEST),mxEvent.consume(A)):38==A.keyCode?(I(H,mxConstants.DIRECTION_NORTH),mxEvent.consume(A)):39==A.keyCode?(I(H,mxConstants.DIRECTION_EAST),mxEvent.consume(A)):40==A.keyCode&&(I(H,mxConstants.DIRECTION_SOUTH),mxEvent.consume(A)))}}catch(g){c.handleError(g)}mxEvent.isConsumed(A)||
+T.apply(this,arguments)};var O=e.connectVertex;e.connectVertex=function(A,H,R,g,q,F,J){var L=e.getIncomingTreeEdges(A);if(d(A)){var Q=C(A),U=Q==mxConstants.DIRECTION_EAST||Q==mxConstants.DIRECTION_WEST,V=H==mxConstants.DIRECTION_EAST||H==mxConstants.DIRECTION_WEST;return Q==H||0==L.length?N(A,H):U==V?M(A):K(A,H!=mxConstants.DIRECTION_NORTH&&H!=mxConstants.DIRECTION_WEST)}return O.apply(this,arguments)};e.getSubtree=function(A){var H=[A];!t(A)&&!d(A)||x(A)||e.traverse(A,!0,function(R,g){var q=null!=
g&&e.isTreeEdge(g);q&&0>mxUtils.indexOf(H,g)&&H.push(g);(null==g||q)&&0>mxUtils.indexOf(H,R)&&H.push(R);return null==g||q});return H};var S=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){S.apply(this,arguments);(t(this.state.cell)||d(this.state.cell))&&!x(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?null==this.moveHandle&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title",
-"Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),this.redrawMoveHandle(),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(B){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(B),mxEvent.getClientY(B),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=
-mxEvent.isMouseEvent(B);this.graph.isMouseDown=!0;c.hoverIcons.reset();mxEvent.consume(B)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var k=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){k.apply(this,arguments);this.redrawMoveHandle()};mxVertexHandler.prototype.redrawMoveHandle=function(){null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:
-0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var v=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(B){v.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=B?"":"none")};var z=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(B,H){z.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=
+"Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),this.redrawMoveHandle(),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(A){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(A),mxEvent.getClientY(A),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=
+mxEvent.isMouseEvent(A);this.graph.isMouseDown=!0;c.hoverIcons.reset();mxEvent.consume(A)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var k=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){k.apply(this,arguments);this.redrawMoveHandle()};mxVertexHandler.prototype.redrawMoveHandle=function(){null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:
+0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var v=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(A){v.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=A?"":"none")};var z=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(A,H){z.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=
null)}};if("undefined"!==typeof Sidebar){var m=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var d=m.apply(this,arguments),t=this.graph,y=this;return d.concat([this.addEntry("tree container",function(){var x=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");x.vertex=!0;var C=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
C.vertex=!0;var K=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');K.vertex=!0;var M=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");M.geometry.relative=!0;M.edge=!0;C.insertEdge(M,!0);K.insertEdge(M,!1);x.insert(M);x.insert(C);x.insert(K);
return y.createVertexTemplateFromCells([x],x.geometry.width,x.geometry.height,x.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var x=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");x.vertex=!0;var C=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
@@ -14247,78 +14261,77 @@ C.geometry.setTerminalPoint(new mxPoint(0,0),!0);C.geometry.relative=!0;C.edge=!
C.geometry.setTerminalPoint(new mxPoint(110,-40),!0);C.geometry.relative=!0;C.edge=!0;x.insertEdge(C,!1);var K=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");K.vertex=!0;var M=new mxCell("",new mxGeometry(0,0,0,0),C.style);M.geometry.setTerminalPoint(new mxPoint(110,-40),!0);M.geometry.relative=!0;M.edge=!0;K.insertEdge(M,!1);return y.createVertexTemplateFromCells([C,M,x,K],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
EditorUi.initMinimalTheme=function(){function b(I,c){if(EditorUi.windowed){var e=I.editor.graph;e.popupMenuHandler.hideMenu();null==I.formatWindow?(c=Math.max(10,I.diagramContainer.clientWidth-248),e=Math.min(566,e.container.clientHeight-10),I.formatWindow=new WrapperWindow(I,mxResources.get("format"),c,60,240,e,function(l){I.createFormat(l).init()}),I.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){I.formatWindow.window.fit()})),I.formatWindow.window.minimumSize=new mxRectangle(0,
0,240,80)):I.formatWindow.window.setVisible(null!=c?c:!I.formatWindow.window.isVisible())}else null==I.formatElt&&(I.formatElt=I.createSidebarContainer(),I.createFormat(I.formatElt).init(),I.formatElt.style.border="none",I.formatElt.style.width="240px",I.formatElt.style.borderLeftWidth="1px",I.formatElt.style.borderLeftStyle="solid",I.formatElt.style.right="0px"),e=I.diagramContainer.parentNode,null!=I.formatElt.parentNode?(I.formatElt.parentNode.removeChild(I.formatElt),e.style.right="0px"):(e.parentNode.appendChild(I.formatElt),
-e.style.right=I.formatElt.style.width)}function f(I,c){function e(p,u){var A=I.menus.get(p);p=l.addMenu(u,mxUtils.bind(this,function(){A.funct.apply(this,arguments)}));p.setAttribute("title",u);p.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";p.className="geTitle";c.appendChild(p);return p}var l=new Menubar(I,c);if(Editor.enableCustomLibraries&&
+e.style.right=I.formatElt.style.width)}function f(I,c){function e(p,u){var B=I.menus.get(p);p=l.addMenu(u,mxUtils.bind(this,function(){B.funct.apply(this,arguments)}));p.setAttribute("title",u);p.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";p.className="geTitle";c.appendChild(p);return p}var l=new Menubar(I,c);if(Editor.enableCustomLibraries&&
("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=I.actions.get("newLibrary")){var n=document.createElement("div");n.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";n.className="geTitle";mxUtils.write(n,mxResources.get("newLibrary"));c.appendChild(n);mxEvent.addListener(n,"click",this.actions.get("newLibrary").funct);
n=n.cloneNode(!1);n.style.left="50%";n.style.borderLeftStyle="solid";mxUtils.write(n,mxResources.get("openLibrary"));c.appendChild(n);mxEvent.addListener(n,"click",this.actions.get("openLibrary").funct)}else n=e("newLibrary",mxResources.get("newLibrary")),n.style.display="block",n.style.fontSize="11px",n.style.left="0",n=e("openLibraryFrom",mxResources.get("openLibraryFrom")),n.style.borderLeftStyle="solid",n.style.display="block",n.style.fontSize="11px",n.style.left="50%";c.appendChild(I.sidebar.container);
c.style.overflow="hidden"}function m(I,c){if(EditorUi.windowed){var e=I.editor.graph;e.popupMenuHandler.hideMenu();null==I.sidebarWindow?(c=Math.min(e.container.clientWidth-10,218),e=Math.min(e.container.clientHeight-40,650),I.sidebarWindow=new WrapperWindow(I,mxResources.get("shapes"),10,56,c-6,e-6,function(l){f(I,l)}),I.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){I.sidebarWindow.window.fit()})),I.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90),I.sidebarWindow.window.setVisible(!0),
isLocalStorage&&I.getLocalData("sidebar",function(l){I.sidebar.showEntries(l,null,!0)}),I.restoreLibraries()):I.sidebarWindow.window.setVisible(null!=c?c:!I.sidebarWindow.window.isVisible())}else null==I.sidebarElt&&(I.sidebarElt=I.createSidebarContainer(),f(I,I.sidebarElt),I.sidebarElt.style.border="none",I.sidebarElt.style.width="210px",I.sidebarElt.style.borderRight="1px solid gray"),e=I.diagramContainer.parentNode,null!=I.sidebarElt.parentNode?(I.sidebarElt.parentNode.removeChild(I.sidebarElt),
-e.style.left="0px"):(e.parentNode.appendChild(I.sidebarElt),e.style.left=I.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var d=0;try{d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}catch(I){}Menus.prototype.autoPopup=!1;Editor.checkmarkImage=Graph.createSvgImage(22,18,'<path transform="translate(4 0)" d="M7.181,15.007a1,1,0,0,1-.793-0.391L3.222,10.5A1,1,0,1,1,4.808,9.274L7.132,12.3l6.044-8.86A1,1,0,1,1,14.83,4.569l-6.823,10a1,1,0,0,1-.8.437H7.181Z" fill="#29b6f2"/>').src;
-mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');mxOutline.prototype.sizerImage=null;mxConstants.VERTEX_SELECTION_COLOR="#C0C0C0";mxConstants.EDGE_SELECTION_COLOR="#C0C0C0";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.DEFAULT_VALID_COLOR="#29b6f2";mxConstants.GUIDE_COLOR="#C0C0C0";mxConstants.OUTLINE_COLOR="#29b6f2";
-mxConstants.OUTLINE_HANDLE_FILLCOLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#fff";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowSize="0.6";Graph.prototype.svgShadowBlur="1.2";mxRubberband.prototype.defaultOpacity=50;HoverIcons.prototype.inactiveOpacity=25;Format.prototype.showCloseButton=!1;EditorUi.prototype.closableScratchpad=!1;EditorUi.prototype.toolbarHeight=46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=
-!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var t=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(I){t.apply(this,arguments);null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var y=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){y.apply(this,arguments);this.menus.get("save").setEnabled(null!=
-this.getCurrentFile()||"1"==urlParams.embed)};var x=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(I,c){null!=c.shortcut&&900>d&&!mxClient.IS_IOS?I.firstChild.nextSibling.setAttribute("title",c.shortcut):x.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(I){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=I?I:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||
-null==this.formatWindow&&0<this.formatWidth};var C=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();C.apply(this,arguments)};var K=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(I){K.apply(this,arguments);if(I){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=c&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=c&&this.formatWindow.window.setVisible(!0)}else null!=
-this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};var M=Menus.prototype.init;Menus.prototype.init=function(){M.apply(this,arguments);var I=this.editorUi;EditorUi.enablePlantUml&&!I.isOffline()&&I.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var l=new ParseDialog(I,mxResources.get("plantUml")+"...","plantUml");I.showDialog(l.container,
-620,420,!0,!1);l.init()}));I.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var l=new ParseDialog(I,mxResources.get("mermaid")+"...","mermaid");I.showDialog(l.container,620,420,!0,!1);l.init()}));var c="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),e=function(l,n,p,u){l.addItem(p,null,mxUtils.bind(this,function(){var A=new CreateGraphDialog(I,p,u);I.showDialog(A.container,620,420,!0,!1);A.init()}),n)};this.put("insertLayout",
-new Menu(mxUtils.bind(this,function(l,n){for(var p=0;p<c.length;p++)"-"==c[p]?l.addSeparator(n):e(l,n,mxResources.get(c[p])+"...",c[p])})))};EditorUi.prototype.installFormatToolbar=function(I){var c=this.editor.graph,e=document.createElement("div");e.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,
-function(l,n){0<c.getSelectionCount()?(I.appendChild(e),e.innerHTML="Selected: "+c.getSelectionCount()):null!=e.parentNode&&e.parentNode.removeChild(e)}))};var N=!1;EditorUi.prototype.initFormatWindow=function(){if(!N&&null!=this.formatWindow){N=!0;var I=this.formatWindow.window.toggleMinimized,c=240;this.formatWindow.window.toggleMinimized=function(){I.apply(this,arguments);this.minimized?(c=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=
-parseInt(this.div.style.left)+c-140+"px"):(this.div.style.width=c+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(e){mxEvent.getSource(e)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var P=EditorUi.prototype.init;EditorUi.prototype.init=function(){function I(W,X,Z){var Y=u.menus.get(W),ba=
-E.addMenu(mxResources.get(W),mxUtils.bind(this,function(){ba.classList.contains("mxDisabled")||Y.funct.apply(this,arguments)}),G);ba.className="geMenuItem";ba.style.display="inline-block";ba.style.boxSizing="border-box";ba.style.top="6px";ba.style.marginRight="6px";ba.style.height="30px";ba.style.paddingTop="6px";ba.style.paddingBottom="6px";ba.style.cursor="pointer";ba.setAttribute("title",mxResources.get(W));u.menus.menuCreated(Y,ba,"geMenuItem");null!=Z?(ba.style.backgroundImage="url("+Z+")",ba.style.backgroundPosition=
-"center center",ba.style.backgroundRepeat="no-repeat",ba.style.backgroundSize="24px 24px",ba.style.width="34px",ba.innerText=""):X||(ba.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",ba.style.backgroundPosition="right 6px center",ba.style.backgroundRepeat="no-repeat",ba.style.paddingRight="22px");return ba}function c(W,X,Z,Y,ba,ea){var ca=document.createElement("a");ca.className="geMenuItem";ca.style.display="inline-block";ca.style.boxSizing="border-box";ca.style.height="30px";
-ca.style.padding="6px";ca.style.position="relative";ca.style.verticalAlign="top";ca.style.top="0px";null!=u.statusContainer?D.insertBefore(ca,u.statusContainer):D.appendChild(ca);null!=ea?(ca.style.backgroundImage="url("+ea+")",ca.style.backgroundPosition="center center",ca.style.backgroundRepeat="no-repeat",ca.style.backgroundSize="24px 24px",ca.style.width="34px"):mxUtils.write(ca,W);mxEvent.addListener(ca,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(da){da.preventDefault()}));
-mxEvent.addListener(ca,"click",function(da){"disabled"!=ca.getAttribute("disabled")&&X(da);mxEvent.consume(da)});null==Z&&(ca.style.marginRight="4px");null!=Y&&ca.setAttribute("title",Y);null!=ba&&(W=function(){ba.isEnabled()?(ca.removeAttribute("disabled"),ca.style.cursor="pointer"):(ca.setAttribute("disabled","disabled"),ca.style.cursor="default")},ba.addListener("stateChanged",W),A.addListener("enabledChanged",W),W());return ca}function e(W,X,Z){Z=document.createElement("div");Z.className="geMenuItem";
-Z.style.display="inline-block";Z.style.verticalAlign="top";Z.style.marginRight="6px";Z.style.padding="0 4px 0 4px";Z.style.height="30px";Z.style.position="relative";Z.style.top="0px";for(var Y=0;Y<W.length;Y++)null!=W[Y]&&(W[Y].style.margin="0px",W[Y].style.boxShadow="none",Z.appendChild(W[Y]));null!=X&&mxUtils.setOpacity(Z,X);null!=u.statusContainer?D.insertBefore(Z,u.statusContainer):D.appendChild(Z);return Z}function l(){for(var W=D.firstChild;null!=W;){var X=W.nextSibling;"geMenuItem"!=W.className&&
-"geItem"!=W.className||W.parentNode.removeChild(W);W=X}G=D.firstChild;d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;W=1E3>d;var Z=null;W||(Z=I("diagram"));X=W?I("diagram",null,Editor.menuImage):null;null!=X&&(Z=X);e([Z,c(mxResources.get("shapes"),u.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),u.actions.get("image"),W?Editor.shapesImage:null),c(mxResources.get("format"),u.actions.get("format").funct,null,mxResources.get("format")+" ("+u.actions.get("format").shortcut+
-")",u.actions.get("image"),W?Editor.formatImage:null)],W?60:null);X=I("insert",!0,W?S:null);e([X,c(mxResources.get("delete"),u.actions.get("delete").funct,null,mxResources.get("delete"),u.actions.get("delete"),W?Editor.trashImage:null)],W?60:null);A.isEnabled()||X.classList.add("mxDisabled");411<=d&&(e([J,L],60),520<=d&&e([Q,640<=d?c("",H.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",H,Editor.zoomInImage):null,640<=d?c("",R.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",
-R,Editor.zoomOutImage):null],60))}P.apply(this,arguments);var n=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=n&&(n.classList.add("geSimple"),n.classList.add("geMinimal"));n=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);var p=document.createElement("div");p.style.cssText="position:absolute;left:0px;right:0px;top:0px;overflow-y:auto;overflow-x:hidden;";p.style.bottom=n?"32px":"0px";this.sidebar=this.createSidebar(p);
-if(1E3<=d||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])m(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search"));EditorUi.windowed&&1E3<=d&&(b(this,!0),this.formatWindow.window.setVisible(!0));var u=this,A=u.editor.graph;u.toolbar=this.createToolbar(u.createDiv("geToolbar"));u.defaultLibraryName=mxResources.get("untitledLibrary");var D=
-document.createElement("div");D.className="geMenubarContainer";var G=null,E=new Menubar(u,D);u.statusContainer=u.createStatusContainer();u.statusContainer.style.position="relative";u.statusContainer.style.maxWidth="";u.statusContainer.style.cursor="default";var T=u.hideCurrentMenu;u.hideCurrentMenu=function(){T.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var O=u.descriptorChanged;u.descriptorChanged=function(){O.apply(this,arguments);var W=u.getCurrentFile();if(null!=W&&null!=
-W.getTitle()){var X=W.getMode();"google"==X?X="googleDrive":"github"==X?X="gitHub":"gitlab"==X?X="gitLab":"onedrive"==X&&(X="oneDrive");X=mxResources.get(X);D.setAttribute("title",W.getTitle()+(null!=X?" ("+X+")":""))}else D.removeAttribute("title")};u.setStatusText(u.editor.getStatus());D.appendChild(u.statusContainer);u.buttonContainer=document.createElement("div");u.buttonContainer.style.cssText="display:flex;justify-content:flex-end;padding-right:10px;gap:6px;white-space:nowrap;background-color:inherit;align-items:center;min-width:0;margin-left:auto;";
-D.appendChild(u.buttonContainer);u.menubarContainer=u.buttonContainer;u.tabContainer=document.createElement("div");u.tabContainer.className="geTabContainer geTabItem";u.tabContainer.style.cssText="position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;visibility:hidden;";n=u.diagramContainer.parentNode;p=document.createElement("div");p.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";u.diagramContainer.style.top="47px";var S=Editor.addBoxImage;
-if(null!=u.hoverIcons){var k=u.hoverIcons.update;u.hoverIcons.update=function(){A.freehand.isDrawing()||k.apply(this,arguments)}}if(null!=A.freehand){var v=A.freehand.createStyle;A.freehand.createStyle=function(W){return v.apply(this,arguments)+"sketch=0;"}}u.editor.addListener("statusChanged",mxUtils.bind(this,function(){u.setStatusText(u.editor.getStatus())}));u.setStatusText(u.editor.getStatus());var z=u.menus.get("viewZoom");if(null!=z){var B=function(W){if(mxEvent.isAltDown(W))u.hideCurrentMenu(),
-u.actions.get("customZoom").funct(),mxEvent.consume(W);else if("geMenuItem"==mxEvent.getSource(W).className||mxEvent.isShiftDown(W))u.hideCurrentMenu(),u.actions.get("smartFit").funct(),mxEvent.consume(W)},H=u.actions.get("zoomIn"),R=u.actions.get("zoomOut"),g=u.actions.get("resetView"),q=u.actions.get("undo"),F=u.actions.get("redo"),J=c("",q.funct,null,mxResources.get("undo")+" ("+q.shortcut+")",q,Editor.undoImage),L=c("",F.funct,null,mxResources.get("redo")+" ("+F.shortcut+")",F,Editor.redoImage),
-Q=c("",B,!0,mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)",g,Editor.zoomFitImage);D.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";var U=E.addMenu("100%",z.funct);U.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)");U.className="geTabItem";U.style.height=u.tabContainerHeight+"px";U.style.position="absolute";U.style.display="0"!=urlParams.pages?"flex":"none";U.style.alignItems=
-"center";U.style.justifyContent="center";U.style.paddingRight="11px";U.style.whiteSpace="nowrap";U.style.overflow="hidden";U.style.fontSize="11px";U.style.width="51px";U.style.right="0px";U.style.bottom="0px";U.style.boxSizing="content-box";U.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";U.style.backgroundPosition="right 6px top 15px";U.style.backgroundRepeat="no-repeat";U.style.backgroundSize="10px";U.style.zIndex="1";p.appendChild(U);(function(W){mxEvent.addListener(W,"click",
-B);var X=mxUtils.bind(this,function(Z,Y,ba){W.innerText="";mxUtils.write(W,Math.round(100*u.editor.graph.view.scale*(null!=ba?ba:1))+"%")});u.editor.graph.view.addListener(mxEvent.EVENT_SCALE,X);u.editor.addListener("resetGraphView",X);u.editor.addListener("pageSelected",X);u.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(Z,Y){X(Z,Y,Y.getProperty("factor"))}))})(U);var V=u.setGraphEnabled;u.setGraphEnabled=function(){V.apply(this,arguments);null!=this.tabContainer&&(U.style.visibility=
-this.tabContainer.style.visibility,this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}p.appendChild(D);p.appendChild(u.diagramContainer);n.appendChild(p);u.updateTabContainer();!EditorUi.windowed&&1E3<=d&&b(this,!0);p.appendChild(u.tabContainer);l();u.addListener("lockedChanged",l);mxEvent.addListener(window,"resize",function(){l();null!=u.sidebarWindow&&u.sidebarWindow.window.fit();null!=u.formatWindow&&u.formatWindow.window.fit();
-null!=u.actions.outlineWindow&&u.actions.outlineWindow.window.fit();null!=u.actions.layersWindow&&u.actions.layersWindow.window.fit();null!=u.menus.chatWindow&&u.menus.chatWindow.window.fit();null!=u.menus.tagsWindow&&u.menus.tagsWindow.window.fit();null!=u.menus.findWindow&&u.menus.findWindow.window.fit();null!=u.menus.findReplaceWindow&&u.menus.findReplaceWindow.window.fit()})}}};
-(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var f=EditorUi.initTheme;EditorUi.initTheme=function(){f.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();(function(){var b=mxGuide.prototype.move;mxGuide.prototype.move=function(d,t,y,x){var C=t.y,K=t.x,M=!1,N=!1;if(null!=this.states&&null!=d&&null!=t){var P=this,I=new mxCellState,c=this.graph.getView().scale,e=Math.max(2,this.getGuideTolerance()/2);I.x=d.x+K;I.y=d.y+C;I.width=d.width;I.height=d.height;for(var l=[],n=[],p=0;p<this.states.length;p++){var u=this.states[p];u instanceof mxCellState&&(x||!this.graph.isCellSelected(u.cell))&&((I.x>=u.x&&I.x<=u.x+u.width||u.x>=I.x&&u.x<=I.x+I.width)&&(I.y>
-u.y+u.height+4||I.y+I.height+4<u.y)?l.push(u):(I.y>=u.y&&I.y<=u.y+u.height||u.y>=I.y&&u.y<=I.y+I.height)&&(I.x>u.x+u.width+4||I.x+I.width+4<u.x)&&n.push(u))}var A=0,D=0,G=u=0,E=0,T=0,O=0,S=0,k=5*c;if(1<l.length){l.push(I);l.sort(function(H,R){return H.y-R.y});var v=!1;p=I==l[0];c=I==l[l.length-1];if(!p&&!c)for(p=1;p<l.length-1;p++)if(I==l[p]){c=l[p-1];p=l[p+1];u=D=G=(p.y-c.y-c.height-I.height)/2;break}for(p=0;p<l.length-1;p++){c=l[p];var z=l[p+1],B=I==c||I==z;z=z.y-c.y-c.height;v|=I==c;if(0==D&&0==
-A)D=z,A=1;else if(Math.abs(D-z)<=(B||1==p&&v?e:0))A+=1;else if(1<A&&v){l=l.slice(0,p+1);break}else if(3<=l.length-p&&!v)A=0,u=D=0!=G?G:0,l.splice(0,0==p?1:p),p=-1;else break;0!=u||B||(D=u=z)}3==l.length&&l[1]==I&&(u=0)}if(1<n.length){n.push(I);n.sort(function(H,R){return H.x-R.x});v=!1;p=I==n[0];c=I==n[n.length-1];if(!p&&!c)for(p=1;p<n.length-1;p++)if(I==n[p]){c=n[p-1];p=n[p+1];O=T=S=(p.x-c.x-c.width-I.width)/2;break}for(p=0;p<n.length-1;p++){c=n[p];z=n[p+1];B=I==c||I==z;z=z.x-c.x-c.width;v|=I==c;
-if(0==T&&0==E)T=z,E=1;else if(Math.abs(T-z)<=(B||1==p&&v?e:0))E+=1;else if(1<E&&v){n=n.slice(0,p+1);break}else if(3<=n.length-p&&!v)E=0,O=T=0!=S?S:0,n.splice(0,0==p?1:p),p=-1;else break;0!=O||B||(T=O=z)}3==n.length&&n[1]==I&&(O=0)}e=function(H,R,g,q){var F=[];if(q){q=k;var J=0}else q=0,J=k;F.push(new mxPoint(H.x-q,H.y-J));F.push(new mxPoint(H.x+q,H.y+J));F.push(H);F.push(R);F.push(new mxPoint(R.x-q,R.y-J));F.push(new mxPoint(R.x+q,R.y+J));if(null!=g)return g.points=F,g;H=new mxPolyline(F,mxConstants.GUIDE_COLOR,
+e.style.left="0px"):(e.parentNode.appendChild(I.sidebarElt),e.style.left=I.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var d=0;try{d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}catch(I){}Menus.prototype.autoPopup=!1;mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');
+mxOutline.prototype.sizerImage=null;mxConstants.VERTEX_SELECTION_COLOR="#C0C0C0";mxConstants.EDGE_SELECTION_COLOR="#C0C0C0";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.DEFAULT_VALID_COLOR="#29b6f2";mxConstants.GUIDE_COLOR="#C0C0C0";mxConstants.OUTLINE_COLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#fff";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowSize="0.6";Graph.prototype.svgShadowBlur=
+"1.2";mxRubberband.prototype.defaultOpacity=50;HoverIcons.prototype.inactiveOpacity=25;Format.prototype.showCloseButton=!1;EditorUi.prototype.closableScratchpad=!1;EditorUi.prototype.toolbarHeight=46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var t=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(I){t.apply(this,arguments);
+null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var y=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){y.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var x=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(I,c){null!=c.shortcut&&900>d&&!mxClient.IS_IOS?I.firstChild.nextSibling.setAttribute("title",c.shortcut):
+x.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(I){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=I?I:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};var C=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();C.apply(this,arguments)};var K=EditorUi.prototype.setGraphEnabled;
+EditorUi.prototype.setGraphEnabled=function(I){K.apply(this,arguments);if(I){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=c&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=c&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};
+var M=Menus.prototype.init;Menus.prototype.init=function(){M.apply(this,arguments);var I=this.editorUi;EditorUi.enablePlantUml&&!I.isOffline()&&I.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var l=new ParseDialog(I,mxResources.get("plantUml")+"...","plantUml");I.showDialog(l.container,620,420,!0,!1);l.init()}));I.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var l=new ParseDialog(I,mxResources.get("mermaid")+"...","mermaid");I.showDialog(l.container,
+620,420,!0,!1);l.init()}));var c="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),e=function(l,n,p,u){l.addItem(p,null,mxUtils.bind(this,function(){var B=new CreateGraphDialog(I,p,u);I.showDialog(B.container,620,420,!0,!1);B.init()}),n)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(l,n){for(var p=0;p<c.length;p++)"-"==c[p]?l.addSeparator(n):e(l,n,mxResources.get(c[p])+"...",c[p])})))};EditorUi.prototype.installFormatToolbar=function(I){var c=
+this.editor.graph,e=document.createElement("div");e.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(l,n){0<c.getSelectionCount()?(I.appendChild(e),e.innerHTML="Selected: "+c.getSelectionCount()):null!=e.parentNode&&e.parentNode.removeChild(e)}))};var N=!1;EditorUi.prototype.initFormatWindow=
+function(){if(!N&&null!=this.formatWindow){N=!0;var I=this.formatWindow.window.toggleMinimized,c=240;this.formatWindow.window.toggleMinimized=function(){I.apply(this,arguments);this.minimized?(c=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+c-140+"px"):(this.div.style.width=c+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};
+mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(e){mxEvent.getSource(e)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var P=EditorUi.prototype.init;EditorUi.prototype.init=function(){function I(W,X,Z){var Y=u.menus.get(W),ba=E.addMenu(mxResources.get(W),mxUtils.bind(this,function(){ba.classList.contains("mxDisabled")||Y.funct.apply(this,arguments)}),G);ba.className="geMenuItem";ba.style.display="inline-block";ba.style.boxSizing=
+"border-box";ba.style.top="6px";ba.style.marginRight="6px";ba.style.height="30px";ba.style.paddingTop="6px";ba.style.paddingBottom="6px";ba.style.cursor="pointer";ba.setAttribute("title",mxResources.get(W));u.menus.menuCreated(Y,ba,"geMenuItem");null!=Z?(ba.style.backgroundImage="url("+Z+")",ba.style.backgroundPosition="center center",ba.style.backgroundRepeat="no-repeat",ba.style.backgroundSize="24px 24px",ba.style.width="34px",ba.innerText=""):X||(ba.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+
+")",ba.style.backgroundPosition="right 6px center",ba.style.backgroundRepeat="no-repeat",ba.style.paddingRight="22px");return ba}function c(W,X,Z,Y,ba,ea){var ca=document.createElement("a");ca.className="geMenuItem";ca.style.display="inline-block";ca.style.boxSizing="border-box";ca.style.height="30px";ca.style.padding="6px";ca.style.position="relative";ca.style.verticalAlign="top";ca.style.top="0px";null!=u.statusContainer?D.insertBefore(ca,u.statusContainer):D.appendChild(ca);null!=ea?(ca.style.backgroundImage=
+"url("+ea+")",ca.style.backgroundPosition="center center",ca.style.backgroundRepeat="no-repeat",ca.style.backgroundSize="24px 24px",ca.style.width="34px"):mxUtils.write(ca,W);mxEvent.addListener(ca,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(da){da.preventDefault()}));mxEvent.addListener(ca,"click",function(da){"disabled"!=ca.getAttribute("disabled")&&X(da);mxEvent.consume(da)});null==Z&&(ca.style.marginRight="4px");null!=Y&&ca.setAttribute("title",Y);null!=ba&&(W=function(){ba.isEnabled()?
+(ca.removeAttribute("disabled"),ca.style.cursor="pointer"):(ca.setAttribute("disabled","disabled"),ca.style.cursor="default")},ba.addListener("stateChanged",W),B.addListener("enabledChanged",W),W());return ca}function e(W,X,Z){Z=document.createElement("div");Z.className="geMenuItem";Z.style.display="inline-block";Z.style.verticalAlign="top";Z.style.marginRight="6px";Z.style.padding="0 4px 0 4px";Z.style.height="30px";Z.style.position="relative";Z.style.top="0px";for(var Y=0;Y<W.length;Y++)null!=W[Y]&&
+(W[Y].style.margin="0px",W[Y].style.boxShadow="none",Z.appendChild(W[Y]));null!=X&&mxUtils.setOpacity(Z,X);null!=u.statusContainer?D.insertBefore(Z,u.statusContainer):D.appendChild(Z);return Z}function l(){for(var W=D.firstChild;null!=W;){var X=W.nextSibling;"geMenuItem"!=W.className&&"geItem"!=W.className||W.parentNode.removeChild(W);W=X}G=D.firstChild;d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;W=1E3>d;var Z=null;W||(Z=I("diagram"));X=W?I("diagram",null,
+Editor.menuImage):null;null!=X&&(Z=X);e([Z,c(mxResources.get("shapes"),u.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),u.actions.get("image"),W?Editor.shapesImage:null),c(mxResources.get("format"),u.actions.get("format").funct,null,mxResources.get("format")+" ("+u.actions.get("format").shortcut+")",u.actions.get("image"),W?Editor.formatImage:null)],W?60:null);X=I("insert",!0,W?S:null);e([X,c(mxResources.get("delete"),u.actions.get("delete").funct,null,mxResources.get("delete"),
+u.actions.get("delete"),W?Editor.trashImage:null)],W?60:null);B.isEnabled()||X.classList.add("mxDisabled");411<=d&&(e([J,L],60),520<=d&&e([Q,640<=d?c("",H.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",H,Editor.zoomInImage):null,640<=d?c("",R.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",R,Editor.zoomOutImage):null],60))}P.apply(this,arguments);var n=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=n&&(n.classList.add("geSimple"),
+n.classList.add("geMinimal"));n=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);var p=document.createElement("div");p.style.cssText="position:absolute;left:0px;right:0px;top:0px;overflow-y:auto;overflow-x:hidden;";p.style.bottom=n?"32px":"0px";this.sidebar=this.createSidebar(p);if(1E3<=d||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])m(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),
+this.sidebar.showEntries("search"));EditorUi.windowed&&1E3<=d&&(b(this,!0),this.formatWindow.window.setVisible(!0));var u=this,B=u.editor.graph;u.toolbar=this.createToolbar(u.createDiv("geToolbar"));u.defaultLibraryName=mxResources.get("untitledLibrary");var D=document.createElement("div");D.className="geMenubarContainer";var G=null,E=new Menubar(u,D);u.statusContainer=u.createStatusContainer();u.statusContainer.style.position="relative";u.statusContainer.style.maxWidth="";u.statusContainer.style.cursor=
+"default";var T=u.hideCurrentMenu;u.hideCurrentMenu=function(){T.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var O=u.descriptorChanged;u.descriptorChanged=function(){O.apply(this,arguments);var W=u.getCurrentFile();if(null!=W&&null!=W.getTitle()){var X=W.getMode();"google"==X?X="googleDrive":"github"==X?X="gitHub":"gitlab"==X?X="gitLab":"onedrive"==X&&(X="oneDrive");X=mxResources.get(X);D.setAttribute("title",W.getTitle()+(null!=X?" ("+X+")":""))}else D.removeAttribute("title")};
+u.setStatusText(u.editor.getStatus());D.appendChild(u.statusContainer);u.buttonContainer=document.createElement("div");u.buttonContainer.style.cssText="display:flex;justify-content:flex-end;padding-right:10px;gap:6px;white-space:nowrap;background-color:inherit;align-items:center;min-width:0;margin-left:auto;";D.appendChild(u.buttonContainer);u.menubarContainer=u.buttonContainer;u.tabContainer=document.createElement("div");u.tabContainer.className="geTabContainer geTabItem";u.tabContainer.style.cssText=
+"position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;visibility:hidden;";n=u.diagramContainer.parentNode;p=document.createElement("div");p.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";u.diagramContainer.style.top="47px";var S=Editor.addBoxImage;if(null!=u.hoverIcons){var k=u.hoverIcons.update;u.hoverIcons.update=function(){B.freehand.isDrawing()||k.apply(this,arguments)}}if(null!=B.freehand){var v=B.freehand.createStyle;B.freehand.createStyle=
+function(W){return v.apply(this,arguments)+"sketch=0;"}}u.editor.addListener("statusChanged",mxUtils.bind(this,function(){u.setStatusText(u.editor.getStatus())}));u.setStatusText(u.editor.getStatus());var z=u.menus.get("viewZoom");if(null!=z){var A=function(W){if(mxEvent.isAltDown(W))u.hideCurrentMenu(),u.actions.get("customZoom").funct(),mxEvent.consume(W);else if("geMenuItem"==mxEvent.getSource(W).className||mxEvent.isShiftDown(W))u.hideCurrentMenu(),u.actions.get("smartFit").funct(),mxEvent.consume(W)},
+H=u.actions.get("zoomIn"),R=u.actions.get("zoomOut"),g=u.actions.get("resetView"),q=u.actions.get("undo"),F=u.actions.get("redo"),J=c("",q.funct,null,mxResources.get("undo")+" ("+q.shortcut+")",q,Editor.undoImage),L=c("",F.funct,null,mxResources.get("redo")+" ("+F.shortcut+")",F,Editor.redoImage),Q=c("",A,!0,mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)",g,Editor.zoomFitImage);D.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";
+this.tabContainer.style.right="70px";var U=E.addMenu("100%",z.funct);U.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)");U.className="geTabItem";U.style.height=u.tabContainerHeight+"px";U.style.position="absolute";U.style.display="0"!=urlParams.pages?"flex":"none";U.style.alignItems="center";U.style.justifyContent="center";U.style.paddingRight="11px";U.style.whiteSpace="nowrap";U.style.overflow="hidden";U.style.fontSize="11px";U.style.width="51px";U.style.right="0px";U.style.bottom=
+"0px";U.style.boxSizing="content-box";U.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";U.style.backgroundPosition="right 6px top 15px";U.style.backgroundRepeat="no-repeat";U.style.backgroundSize="10px";U.style.zIndex="1";p.appendChild(U);(function(W){mxEvent.addListener(W,"click",A);var X=mxUtils.bind(this,function(Z,Y,ba){W.innerText="";mxUtils.write(W,Math.round(100*u.editor.graph.view.scale*(null!=ba?ba:1))+"%")});u.editor.graph.view.addListener(mxEvent.EVENT_SCALE,X);u.editor.addListener("resetGraphView",
+X);u.editor.addListener("pageSelected",X);u.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(Z,Y){X(Z,Y,Y.getProperty("factor"))}))})(U);var V=u.setGraphEnabled;u.setGraphEnabled=function(){V.apply(this,arguments);null!=this.tabContainer&&(U.style.visibility=this.tabContainer.style.visibility,this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}p.appendChild(D);p.appendChild(u.diagramContainer);
+n.appendChild(p);u.updateTabContainer();!EditorUi.windowed&&1E3<=d&&b(this,!0);p.appendChild(u.tabContainer);l();u.addListener("lockedChanged",l);mxEvent.addListener(window,"resize",function(){l();null!=u.sidebarWindow&&u.sidebarWindow.window.fit();null!=u.formatWindow&&u.formatWindow.window.fit();null!=u.actions.outlineWindow&&u.actions.outlineWindow.window.fit();null!=u.actions.layersWindow&&u.actions.layersWindow.window.fit();null!=u.menus.chatWindow&&u.menus.chatWindow.window.fit();null!=u.menus.tagsWindow&&
+u.menus.tagsWindow.window.fit();null!=u.menus.findWindow&&u.menus.findWindow.window.fit();null!=u.menus.findReplaceWindow&&u.menus.findReplaceWindow.window.fit()})}}};(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var f=EditorUi.initTheme;EditorUi.initTheme=function(){f.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();(function(){var b=mxGuide.prototype.move;mxGuide.prototype.move=function(d,t,y,x){var C=t.y,K=t.x,M=!1,N=!1;if(null!=this.states&&null!=d&&null!=t){var P=this,I=new mxCellState,c=this.graph.getView().scale,e=Math.max(2,this.getGuideTolerance()/2);I.x=d.x+K;I.y=d.y+C;I.width=d.width;I.height=d.height;for(var l=[],n=[],p=0;p<this.states.length;p++){var u=this.states[p];u instanceof mxCellState&&(x||!this.graph.isCellSelected(u.cell))&&((I.x>=u.x&&I.x<=u.x+u.width||u.x>=I.x&&u.x<=I.x+I.width)&&(I.y>
+u.y+u.height+4||I.y+I.height+4<u.y)?l.push(u):(I.y>=u.y&&I.y<=u.y+u.height||u.y>=I.y&&u.y<=I.y+I.height)&&(I.x>u.x+u.width+4||I.x+I.width+4<u.x)&&n.push(u))}var B=0,D=0,G=u=0,E=0,T=0,O=0,S=0,k=5*c;if(1<l.length){l.push(I);l.sort(function(H,R){return H.y-R.y});var v=!1;p=I==l[0];c=I==l[l.length-1];if(!p&&!c)for(p=1;p<l.length-1;p++)if(I==l[p]){c=l[p-1];p=l[p+1];u=D=G=(p.y-c.y-c.height-I.height)/2;break}for(p=0;p<l.length-1;p++){c=l[p];var z=l[p+1],A=I==c||I==z;z=z.y-c.y-c.height;v|=I==c;if(0==D&&0==
+B)D=z,B=1;else if(Math.abs(D-z)<=(A||1==p&&v?e:0))B+=1;else if(1<B&&v){l=l.slice(0,p+1);break}else if(3<=l.length-p&&!v)B=0,u=D=0!=G?G:0,l.splice(0,0==p?1:p),p=-1;else break;0!=u||A||(D=u=z)}3==l.length&&l[1]==I&&(u=0)}if(1<n.length){n.push(I);n.sort(function(H,R){return H.x-R.x});v=!1;p=I==n[0];c=I==n[n.length-1];if(!p&&!c)for(p=1;p<n.length-1;p++)if(I==n[p]){c=n[p-1];p=n[p+1];O=T=S=(p.x-c.x-c.width-I.width)/2;break}for(p=0;p<n.length-1;p++){c=n[p];z=n[p+1];A=I==c||I==z;z=z.x-c.x-c.width;v|=I==c;
+if(0==T&&0==E)T=z,E=1;else if(Math.abs(T-z)<=(A||1==p&&v?e:0))E+=1;else if(1<E&&v){n=n.slice(0,p+1);break}else if(3<=n.length-p&&!v)E=0,O=T=0!=S?S:0,n.splice(0,0==p?1:p),p=-1;else break;0!=O||A||(T=O=z)}3==n.length&&n[1]==I&&(O=0)}e=function(H,R,g,q){var F=[];if(q){q=k;var J=0}else q=0,J=k;F.push(new mxPoint(H.x-q,H.y-J));F.push(new mxPoint(H.x+q,H.y+J));F.push(H);F.push(R);F.push(new mxPoint(R.x-q,R.y-J));F.push(new mxPoint(R.x+q,R.y+J));if(null!=g)return g.points=F,g;H=new mxPolyline(F,mxConstants.GUIDE_COLOR,
mxConstants.GUIDE_STROKEWIDTH);H.dialect=mxConstants.DIALECT_SVG;H.pointerEvents=!1;H.init(P.graph.getView().getOverlayPane());return H};T=function(H,R){if(H&&null!=P.guidesArrHor)for(H=0;H<P.guidesArrHor.length;H++)P.guidesArrHor[H].node.style.visibility="hidden";if(R&&null!=P.guidesArrVer)for(H=0;H<P.guidesArrVer.length;H++)P.guidesArrVer[H].node.style.visibility="hidden"};if(1<E&&E==n.length-1){E=[];S=P.guidesArrHor;M=[];K=0;p=n[0]==I?1:0;v=n[p].y+n[p].height;if(0<O)for(p=0;p<n.length-1;p++)c=
n[p],z=n[p+1],I==c?(K=z.x-c.width-O,M.push(new mxPoint(K+c.width+k,v)),M.push(new mxPoint(z.x-k,v))):I==z?(M.push(new mxPoint(c.x+c.width+k,v)),K=c.x+c.width+O,M.push(new mxPoint(K-k,v))):(M.push(new mxPoint(c.x+c.width+k,v)),M.push(new mxPoint(z.x-k,v)));else c=n[0],p=n[2],K=c.x+c.width+(p.x-c.x-c.width-I.width)/2,M.push(new mxPoint(c.x+c.width+k,v)),M.push(new mxPoint(K-k,v)),M.push(new mxPoint(K+I.width+k,v)),M.push(new mxPoint(p.x-k,v));for(p=0;p<M.length;p+=2)n=M[p],O=M[p+1],n=e(n,O,null!=S?
-S[p/2]:null),n.node.style.visibility="visible",n.redraw(),E.push(n);for(p=M.length/2;null!=S&&p<S.length;p++)S[p].destroy();P.guidesArrHor=E;K-=d.x;M=!0}else T(!0);if(1<A&&A==l.length-1){E=[];S=P.guidesArrVer;N=[];C=0;p=l[0]==I?1:0;A=l[p].x+l[p].width;if(0<u)for(p=0;p<l.length-1;p++)c=l[p],z=l[p+1],I==c?(C=z.y-c.height-u,N.push(new mxPoint(A,C+c.height+k)),N.push(new mxPoint(A,z.y-k))):I==z?(N.push(new mxPoint(A,c.y+c.height+k)),C=c.y+c.height+u,N.push(new mxPoint(A,C-k))):(N.push(new mxPoint(A,c.y+
-c.height+k)),N.push(new mxPoint(A,z.y-k)));else c=l[0],p=l[2],C=c.y+c.height+(p.y-c.y-c.height-I.height)/2,N.push(new mxPoint(A,c.y+c.height+k)),N.push(new mxPoint(A,C-k)),N.push(new mxPoint(A,C+I.height+k)),N.push(new mxPoint(A,p.y-k));for(p=0;p<N.length;p+=2)n=N[p],O=N[p+1],n=e(n,O,null!=S?S[p/2]:null,!0),n.node.style.visibility="visible",n.redraw(),E.push(n);for(p=N.length/2;null!=S&&p<S.length;p++)S[p].destroy();P.guidesArrVer=E;C-=d.y;N=!0}else T(!1,!0)}if(M||N)return I=new mxPoint(K,C),l=b.call(this,
+S[p/2]:null),n.node.style.visibility="visible",n.redraw(),E.push(n);for(p=M.length/2;null!=S&&p<S.length;p++)S[p].destroy();P.guidesArrHor=E;K-=d.x;M=!0}else T(!0);if(1<B&&B==l.length-1){E=[];S=P.guidesArrVer;N=[];C=0;p=l[0]==I?1:0;B=l[p].x+l[p].width;if(0<u)for(p=0;p<l.length-1;p++)c=l[p],z=l[p+1],I==c?(C=z.y-c.height-u,N.push(new mxPoint(B,C+c.height+k)),N.push(new mxPoint(B,z.y-k))):I==z?(N.push(new mxPoint(B,c.y+c.height+k)),C=c.y+c.height+u,N.push(new mxPoint(B,C-k))):(N.push(new mxPoint(B,c.y+
+c.height+k)),N.push(new mxPoint(B,z.y-k)));else c=l[0],p=l[2],C=c.y+c.height+(p.y-c.y-c.height-I.height)/2,N.push(new mxPoint(B,c.y+c.height+k)),N.push(new mxPoint(B,C-k)),N.push(new mxPoint(B,C+I.height+k)),N.push(new mxPoint(B,p.y-k));for(p=0;p<N.length;p+=2)n=N[p],O=N[p+1],n=e(n,O,null!=S?S[p/2]:null,!0),n.node.style.visibility="visible",n.redraw(),E.push(n);for(p=N.length/2;null!=S&&p<S.length;p++)S[p].destroy();P.guidesArrVer=E;C-=d.y;N=!0}else T(!1,!0)}if(M||N)return I=new mxPoint(K,C),l=b.call(this,
d,I,y,x),M&&!N?I.y=l.y:N&&!M&&(I.x=l.x),l.y!=I.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),l.x!=I.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),I;T(!0,!0);return b.apply(this,arguments)};var f=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(d){f.call(this,d);var t=this.guidesArrVer,y=this.guidesArrHor;if(null!=t)for(var x=0;x<t.length;x++)t[x].node.style.visibility=d?"visible":"hidden";if(null!=
-y)for(x=0;x<y.length;x++)y[x].node.style.visibility=d?"visible":"hidden"};var m=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){m.call(this);var d=this.guidesArrVer,t=this.guidesArrHor;if(null!=d){for(var y=0;y<d.length;y++)d[y].destroy();this.guidesArrVer=null}if(null!=t){for(y=0;y<t.length;y++)t[y].destroy();this.guidesArrHor=null}}})();function mxRuler(b,f,m,d){function t(){var A=b.diagramContainer;P.style.top=A.offsetTop-K+"px";P.style.left=A.offsetLeft-K+"px";P.style.width=(m?0:A.offsetWidth)+K+"px";P.style.height=(m?A.offsetHeight:0)+K+"px"}function y(A,D,G){if(null!=x)return A;var E;return function(){var T=this,O=arguments,S=G&&!E;clearTimeout(E);E=setTimeout(function(){E=null;G||A.apply(T,O)},D);S&&A.apply(T,O)}}var x=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,
+y)for(x=0;x<y.length;x++)y[x].node.style.visibility=d?"visible":"hidden"};var m=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){m.call(this);var d=this.guidesArrVer,t=this.guidesArrHor;if(null!=d){for(var y=0;y<d.length;y++)d[y].destroy();this.guidesArrVer=null}if(null!=t){for(y=0;y<t.length;y++)t[y].destroy();this.guidesArrHor=null}}})();function mxRuler(b,f,m,d){function t(){var B=b.diagramContainer;P.style.top=B.offsetTop-K+"px";P.style.left=B.offsetLeft-K+"px";P.style.width=(m?0:B.offsetWidth)+K+"px";P.style.height=(m?B.offsetHeight:0)+K+"px"}function y(B,D,G){if(null!=x)return B;var E;return function(){var T=this,O=arguments,S=G&&!E;clearTimeout(E);E=setTimeout(function(){E=null;G||B.apply(T,O)},D);S&&B.apply(T,O)}}var x=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,
C=window.cancelAnimationFrame||window.mozCancelAnimationFrame,K=this.RULER_THICKNESS,M=this;this.unit=f;var N=Editor.isDarkMode()?{bkgClr:"#202020",outBkgClr:Editor.darkColor,cornerClr:Editor.darkColor,strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{bkgClr:"#ffffff",outBkgClr:"#e8e9ed",cornerClr:"#fbfbfb",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"},P=document.createElement("div");P.className="geRuler";P.style.position="fixed";this.updateStyle=mxUtils.bind(this,function(){N=
-Editor.isDarkMode()?{outBkgClr:Editor.darkColor,cornerClr:Editor.darkColor,strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#e8e9ed",cornerClr:"#fbfbfb",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};P.style[m?"borderRight":"borderBottom"]="0.5px solid "+N.strokeClr;P.style.borderLeft="0.5px solid "+N.strokeClr});this.updateStyle();b.diagramContainer.appendChild(P);mxEvent.disableContextMenu(P);this.editorUiRefresh=b.refresh;b.refresh=function(A){M.editorUiRefresh.apply(b,
-arguments);t()};t();var I=document.createElement("canvas");I.width=P.offsetWidth;I.height=P.offsetHeight;P.style.overflow="hidden";I.style.position="relative";P.appendChild(I);var c=I.getContext("2d");this.ui=b;var e=b.editor.graph;this.graph=e;this.container=P;this.canvas=I;var l=function(A,D,G,E,T){A=Math.round(A);D=Math.round(D);G=Math.round(G);E=Math.round(E);c.beginPath();c.moveTo(A+.5,D+.5);c.lineTo(G+.5,E+.5);c.stroke();T&&(m?(c.save(),c.translate(A,D),c.rotate(-Math.PI/2),c.fillText(T,0,0),
-c.restore()):c.fillText(T,A,D))},n=function(){c.clearRect(0,0,I.width,I.height);c.beginPath();c.lineWidth=.7;c.strokeStyle=N.strokeClr;c.setLineDash([]);c.font="9px Arial";c.textAlign="center";var A=e.view.scale,D=e.view.getBackgroundPageBounds(),G=e.view.translate,E=e.pageVisible;G=E?K+(m?D.y-e.container.scrollTop:D.x-e.container.scrollLeft):K+(m?G.y*A-e.container.scrollTop:G.x*A-e.container.scrollLeft);var T=0;E&&(T=e.getPageLayout(),T=m?T.y*e.pageFormat.height:T.x*e.pageFormat.width);var O;switch(M.unit){case mxConstants.POINTS:var S=
-O=10;var k=[3,5,5,5,5,10,5,5,5,5];break;case mxConstants.MILLIMETERS:O=10;S=mxConstants.PIXELS_PER_MM;k=[5,3,3,3,3,6,3,3,3,3];break;case mxConstants.METERS:O=20;S=mxConstants.PIXELS_PER_MM;k=[5,3,3,3,3,6,3,3,3,3,10,3,3,3,3,6,3,3,3,3];break;case mxConstants.INCHES:O=.5>=A||4<=A?8:16,S=mxConstants.PIXELS_PER_INCH/O,k=[5,3,5,3,7,3,5,3,7,3,5,3,7,3,5,3]}var v=S;2<=A?v=S/(2*Math.floor(A/2)):.5>=A&&(v=S*Math.floor(1/A/2)*(M.unit==mxConstants.MILLIMETERS?2:1));S=null;D=E?Math.min(G+(m?D.height:D.width),m?
-I.height:I.width):m?I.height:I.width;if(E)if(c.fillStyle=N.outBkgClr,m){var z=G-K;0<z&&c.fillRect(0,K,K,z);D<I.height&&c.fillRect(0,D,K,I.height)}else z=G-K,0<z&&c.fillRect(K,0,z,K),D<I.width&&c.fillRect(D,0,I.width,K);c.fillStyle=N.fontClr;for(E=E?G:G%(v*A);E<=D;E+=v*A)if(z=Math.round((E-G)/A/v),!(E<K||z==S)){S=z;var B=null;0==z%O&&(B=M.formatText(T+z*v)+"");m?l(K-k[Math.abs(z)%O],E,K,E,B):l(E,K-k[Math.abs(z)%O],E,K,B)}c.lineWidth=1;l(m?0:K,m?K:0,K,K);c.fillStyle=N.cornerClr;c.fillRect(0,0,K,K)},
-p=-1,u=function(){null!=x?(null!=C&&C(p),p=x(n)):n()};this.drawRuler=u;this.sizeListener=f=y(function(){var A=e.container;m?(A=A.offsetHeight+K,I.height!=A&&(I.height=A,P.style.height=A+"px",u())):(A=A.offsetWidth+K,I.width!=A&&(I.width=A,P.style.width=A+"px",u()))},10);this.pageListener=function(){u()};this.scrollListener=d=y(function(){var A=m?e.container.scrollTop:e.container.scrollLeft;M.lastScroll!=A&&(M.lastScroll=A,u())},10);this.unitListener=function(A,D){M.setUnit(D.getProperty("unit"))};
-e.addListener(mxEvent.SIZE,f);e.container.addEventListener("scroll",d);e.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(A){N=A;P.style.background=N.bkgClr;n()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(A,D,G,E){if(m&&4<A.height||!m&&4<A.width){if(null!=M.guidePart)try{c.putImageData(M.guidePart.imgData1,
-M.guidePart.x1,M.guidePart.y1),c.putImageData(M.guidePart.imgData2,M.guidePart.x2,M.guidePart.y2),c.putImageData(M.guidePart.imgData3,M.guidePart.x3,M.guidePart.y3)}catch(q){}var T=M.origGuideMove.apply(this,arguments);try{c.lineWidth=.5;c.strokeStyle=N.guideClr;c.setLineDash([2]);if(m){var O=A.y+T.y+K-this.graph.container.scrollTop;var S=0;var k=O+A.height/2;var v=K/2;var z=O+A.height;var B=0;var H=c.getImageData(S,O-1,K,3);l(S,O,K,O);O--;var R=c.getImageData(v,k-1,K,3);l(v,k,K,k);k--;var g=c.getImageData(B,
-z-1,K,3);l(B,z,K,z);z--}else O=0,S=A.x+T.x+K-this.graph.container.scrollLeft,k=K/2,v=S+A.width/2,z=0,B=S+A.width,H=c.getImageData(S-1,O,3,K),l(S,O,S,K),S--,R=c.getImageData(v-1,k,3,K),l(v,k,v,K),v--,g=c.getImageData(B-1,z,3,K),l(B,z,B,K),B--;if(null==M.guidePart||M.guidePart.x1!=S||M.guidePart.y1!=O)M.guidePart={imgData1:H,x1:S,y1:O,imgData2:R,x2:v,y2:k,imgData3:g,x3:B,y3:z}}catch(q){}}else T=M.origGuideMove.apply(this,arguments);return T};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=
-function(){var A=M.origGuideDestroy.apply(this,arguments);if(null!=M.guidePart)try{c.putImageData(M.guidePart.imgData1,M.guidePart.x1,M.guidePart.y1),c.putImageData(M.guidePart.imgData2,M.guidePart.x2,M.guidePart.y2),c.putImageData(M.guidePart.imgData3,M.guidePart.x3,M.guidePart.y3),M.guidePart=null}catch(D){}return A}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;mxRuler.prototype.setUnit=function(b){this.unit=b;this.drawRuler()};
+Editor.isDarkMode()?{outBkgClr:Editor.darkColor,cornerClr:Editor.darkColor,strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#e8e9ed",cornerClr:"#fbfbfb",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};P.style[m?"borderRight":"borderBottom"]="0.5px solid "+N.strokeClr;P.style.borderLeft="0.5px solid "+N.strokeClr});this.updateStyle();b.diagramContainer.appendChild(P);mxEvent.disableContextMenu(P);this.editorUiRefresh=b.refresh;b.refresh=function(B){M.editorUiRefresh.apply(b,
+arguments);t()};t();var I=document.createElement("canvas");I.width=P.offsetWidth;I.height=P.offsetHeight;P.style.overflow="hidden";I.style.position="relative";P.appendChild(I);var c=I.getContext("2d");this.ui=b;var e=b.editor.graph;this.graph=e;this.container=P;this.canvas=I;var l=function(B,D,G,E,T){B=Math.round(B);D=Math.round(D);G=Math.round(G);E=Math.round(E);c.beginPath();c.moveTo(B+.5,D+.5);c.lineTo(G+.5,E+.5);c.stroke();T&&(m?(c.save(),c.translate(B,D),c.rotate(-Math.PI/2),c.fillText(T,0,0),
+c.restore()):c.fillText(T,B,D))},n=function(){c.clearRect(0,0,I.width,I.height);c.beginPath();c.lineWidth=.7;c.strokeStyle=N.strokeClr;c.setLineDash([]);c.font="9px Arial";c.textAlign="center";var B=e.view.scale,D=e.view.getBackgroundPageBounds(),G=e.view.translate,E=e.pageVisible;G=E?K+(m?D.y-e.container.scrollTop:D.x-e.container.scrollLeft):K+(m?G.y*B-e.container.scrollTop:G.x*B-e.container.scrollLeft);var T=0;E&&(T=e.getPageLayout(),T=m?T.y*e.pageFormat.height:T.x*e.pageFormat.width);var O;switch(M.unit){case mxConstants.POINTS:var S=
+O=10;var k=[3,5,5,5,5,10,5,5,5,5];break;case mxConstants.MILLIMETERS:O=10;S=mxConstants.PIXELS_PER_MM;k=[5,3,3,3,3,6,3,3,3,3];break;case mxConstants.METERS:O=20;S=mxConstants.PIXELS_PER_MM;k=[5,3,3,3,3,6,3,3,3,3,10,3,3,3,3,6,3,3,3,3];break;case mxConstants.INCHES:O=.5>=B||4<=B?8:16,S=mxConstants.PIXELS_PER_INCH/O,k=[5,3,5,3,7,3,5,3,7,3,5,3,7,3,5,3]}var v=S;2<=B?v=S/(2*Math.floor(B/2)):.5>=B&&(v=S*Math.floor(1/B/2)*(M.unit==mxConstants.MILLIMETERS?2:1));S=null;D=E?Math.min(G+(m?D.height:D.width),m?
+I.height:I.width):m?I.height:I.width;if(E)if(c.fillStyle=N.outBkgClr,m){var z=G-K;0<z&&c.fillRect(0,K,K,z);D<I.height&&c.fillRect(0,D,K,I.height)}else z=G-K,0<z&&c.fillRect(K,0,z,K),D<I.width&&c.fillRect(D,0,I.width,K);c.fillStyle=N.fontClr;for(E=E?G:G%(v*B);E<=D;E+=v*B)if(z=Math.round((E-G)/B/v),!(E<K||z==S)){S=z;var A=null;0==z%O&&(A=M.formatText(T+z*v)+"");m?l(K-k[Math.abs(z)%O],E,K,E,A):l(E,K-k[Math.abs(z)%O],E,K,A)}c.lineWidth=1;l(m?0:K,m?K:0,K,K);c.fillStyle=N.cornerClr;c.fillRect(0,0,K,K)},
+p=-1,u=function(){null!=x?(null!=C&&C(p),p=x(n)):n()};this.drawRuler=u;this.sizeListener=f=y(function(){var B=e.container;m?(B=B.offsetHeight+K,I.height!=B&&(I.height=B,P.style.height=B+"px",u())):(B=B.offsetWidth+K,I.width!=B&&(I.width=B,P.style.width=B+"px",u()))},10);this.pageListener=function(){u()};this.scrollListener=d=y(function(){var B=m?e.container.scrollTop:e.container.scrollLeft;M.lastScroll!=B&&(M.lastScroll=B,u())},10);this.unitListener=function(B,D){M.setUnit(D.getProperty("unit"))};
+e.addListener(mxEvent.SIZE,f);e.container.addEventListener("scroll",d);e.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(B){N=B;P.style.background=N.bkgClr;n()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(B,D,G,E){if(m&&4<B.height||!m&&4<B.width){if(null!=M.guidePart)try{c.putImageData(M.guidePart.imgData1,
+M.guidePart.x1,M.guidePart.y1),c.putImageData(M.guidePart.imgData2,M.guidePart.x2,M.guidePart.y2),c.putImageData(M.guidePart.imgData3,M.guidePart.x3,M.guidePart.y3)}catch(q){}var T=M.origGuideMove.apply(this,arguments);try{c.lineWidth=.5;c.strokeStyle=N.guideClr;c.setLineDash([2]);if(m){var O=B.y+T.y+K-this.graph.container.scrollTop;var S=0;var k=O+B.height/2;var v=K/2;var z=O+B.height;var A=0;var H=c.getImageData(S,O-1,K,3);l(S,O,K,O);O--;var R=c.getImageData(v,k-1,K,3);l(v,k,K,k);k--;var g=c.getImageData(A,
+z-1,K,3);l(A,z,K,z);z--}else O=0,S=B.x+T.x+K-this.graph.container.scrollLeft,k=K/2,v=S+B.width/2,z=0,A=S+B.width,H=c.getImageData(S-1,O,3,K),l(S,O,S,K),S--,R=c.getImageData(v-1,k,3,K),l(v,k,v,K),v--,g=c.getImageData(A-1,z,3,K),l(A,z,A,K),A--;if(null==M.guidePart||M.guidePart.x1!=S||M.guidePart.y1!=O)M.guidePart={imgData1:H,x1:S,y1:O,imgData2:R,x2:v,y2:k,imgData3:g,x3:A,y3:z}}catch(q){}}else T=M.origGuideMove.apply(this,arguments);return T};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=
+function(){var B=M.origGuideDestroy.apply(this,arguments);if(null!=M.guidePart)try{c.putImageData(M.guidePart.imgData1,M.guidePart.x1,M.guidePart.y1),c.putImageData(M.guidePart.imgData2,M.guidePart.x2,M.guidePart.y2),c.putImageData(M.guidePart.imgData3,M.guidePart.x3,M.guidePart.y3),M.guidePart=null}catch(D){}return B}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;mxRuler.prototype.setUnit=function(b){this.unit=b;this.drawRuler()};
mxRuler.prototype.formatText=function(b){switch(this.unit){case mxConstants.POINTS:return Math.round(b);case mxConstants.MILLIMETERS:return(b/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(b/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(b/mxConstants.PIXELS_PER_INCH).toFixed(2)}};
mxRuler.prototype.destroy=function(){this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.graph.removeListener(this.sizeListener);this.graph.container.removeEventListener("scroll",this.scrollListener);this.graph.view.removeListener(this.unitListener);this.ui.removeListener(this.pageListener);null!=this.container&&this.container.parentNode.removeChild(this.container)};
function mxDualRuler(b,f){var m=new mxPoint(mxRuler.prototype.RULER_THICKNESS,mxRuler.prototype.RULER_THICKNESS);this.editorUiGetDiagContOffset=b.getDiagramContainerOffset;b.getDiagramContainerOffset=function(){return m};this.editorUiRefresh=b.refresh;this.ui=b;this.origGuideMove=mxGuide.prototype.move;this.origGuideDestroy=mxGuide.prototype.destroy;this.vRuler=new mxRuler(b,f,!0);this.hRuler=new mxRuler(b,f,!1,!0);f=mxUtils.bind(this,function(d){var t=!1;mxEvent.addGestureListeners(d,mxUtils.bind(this,
function(y){t=null!=b.currentMenu;mxEvent.consume(y)}),null,mxUtils.bind(this,function(y){if(b.editor.graph.isEnabled()&&!b.editor.graph.isMouseDown&&(mxEvent.isTouchEvent(y)||mxEvent.isPopupTrigger(y))){b.editor.graph.popupMenuHandler.hideMenu();b.hideCurrentMenu();if(!mxEvent.isTouchEvent(y)||!t){var x=new mxPopupMenu(mxUtils.bind(this,function(M,N){b.menus.addMenuItems(M,["points","inches","millimeters","meters"],N)}));x.div.className+=" geMenubarMenu";x.smartSeparators=!0;x.showDisabled=!0;x.autoExpand=
!0;x.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(x,arguments);b.resetCurrentMenu();x.destroy()});var C=mxEvent.getClientX(y),K=mxEvent.getClientY(y);x.popup(C,K,null,y);b.setCurrentMenu(x,d)}mxEvent.consume(y)}}))});f(this.hRuler.container);f(this.vRuler.container);this.vRuler.drawRuler();this.hRuler.drawRuler()}mxDualRuler.prototype.updateStyle=function(){this.vRuler.updateStyle();this.hRuler.updateStyle();this.vRuler.drawRuler();this.hRuler.drawRuler()};
-mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var f=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=f){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var m=mxFreehand.prototype.MILD_SMOOTHING,d=null,t=[],y,x=[],C,K=!1,M=!0,N=!0,P=!0,I=!0,c=[],e=!1,l=!1,n=!1,p="default",u={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},A=!0;this.setClosedPath=function(k){K=k};this.setAutoClose=function(k){M=k};this.setAutoInsert=
-function(k){N=k};this.setAutoScroll=function(k){P=k};this.setOpenFill=function(k){I=k};this.setStopClickEnabled=function(k){l=k};this.setSelectInserted=function(k){n=k};this.setSmoothing=function(k){m=k};this.getSmoothing=function(){return m};this.setPerfectFreehandMode=function(k){A=k};this.isPerfectFreehandMode=function(){return A};this.setBrushSize=function(k){u.size=k};this.getBrushSize=function(){return u.size};var D=function(k){e=k;b.getRubberband().setEnabled(!k);b.graphHandler.setSelectEnabled(!k);
+mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var f=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=f){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var m=mxFreehand.prototype.MILD_SMOOTHING,d=null,t=[],y,x=[],C,K=!1,M=!0,N=!0,P=!0,I=!0,c=[],e=!1,l=!1,n=!1,p="default",u={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},B=!0;this.setClosedPath=function(k){K=k};this.setAutoClose=function(k){M=k};this.setAutoInsert=
+function(k){N=k};this.setAutoScroll=function(k){P=k};this.setOpenFill=function(k){I=k};this.setStopClickEnabled=function(k){l=k};this.setSelectInserted=function(k){n=k};this.setSmoothing=function(k){m=k};this.getSmoothing=function(){return m};this.setPerfectFreehandMode=function(k){B=k};this.isPerfectFreehandMode=function(){return B};this.setBrushSize=function(k){u.size=k};this.getBrushSize=function(){return u.size};var D=function(k){e=k;b.getRubberband().setEnabled(!k);b.graphHandler.setSelectEnabled(!k);
b.graphHandler.setMoveEnabled(!k);b.container.style.cursor=k?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){D(!0)};this.isDrawing=function(){return e};var G=mxUtils.bind(this,function(k){if(d){var v=C.length,z=l&&0<x.length&&null!=C&&2>C.length;z||x.push.apply(x,C);C=[];x.push(null);t.push(d);d=null;(z||N)&&this.stopDrawing();N&&(!z||2<=v)&&this.startDrawing();mxEvent.consume(k)}}),E=new mxCell;E.edge=!0;this.getStrokeColor=function(k){var v=null!=
-p?p:mxUtils.getValue(b.currentVertexStyle,mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(b.getCurrentCellStyle(E),mxConstants.STYLE_STROKECOLOR,"#000"));"default"!=v||k||(v=b.shapeForegroundColor);return v};this.setStrokeColor=function(k){p=k};this.createStyle=function(k){var v=";fillColor=none;";A&&(v=";lineShape=1;");v+="strokeColor="+this.getStrokeColor(!0)+";";return mxConstants.STYLE_SHAPE+"="+k+v};this.stopDrawing=function(){if(0<t.length){if(A){for(var k=[],v=0;v<x.length;v++)null!=x[v]&&k.push([x[v].x,
-x[v].y]);k=PerfectFreehand.getStroke(k,u);x=[];for(v=0;v<k.length;v++)x.push({x:k[v][0],y:k[v][1]});x.push(null)}k=x[0].x;var z=x[0].x,B=x[0].y,H=x[0].y;for(v=1;v<x.length;v++)null!=x[v]&&(k=Math.max(k,x[v].x),z=Math.min(z,x[v].x),B=Math.max(B,x[v].y),H=Math.min(H,x[v].y));k-=z;B-=H;if(0<k&&0<B){var R=100/k,g=100/B;x.map(function(Q){if(null==Q)return Q;Q.x=(Q.x-z)*R;Q.y=(Q.y-H)*g;return Q});var q='<shape strokewidth="inherit"><foreground>',F=0;for(v=0;v<x.length;v++){var J=x[v];if(null==J){J=!1;F=
+p?p:mxUtils.getValue(b.currentVertexStyle,mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(b.getCurrentCellStyle(E),mxConstants.STYLE_STROKECOLOR,"#000"));"default"!=v||k||(v=b.shapeForegroundColor);return v};this.setStrokeColor=function(k){p=k};this.createStyle=function(k){var v=";fillColor=none;";B&&(v=";lineShape=1;");v+="strokeColor="+this.getStrokeColor(!0)+";";return mxConstants.STYLE_SHAPE+"="+k+v};this.stopDrawing=function(){if(0<t.length){if(B){for(var k=[],v=0;v<x.length;v++)null!=x[v]&&k.push([x[v].x,
+x[v].y]);k=PerfectFreehand.getStroke(k,u);x=[];for(v=0;v<k.length;v++)x.push({x:k[v][0],y:k[v][1]});x.push(null)}k=x[0].x;var z=x[0].x,A=x[0].y,H=x[0].y;for(v=1;v<x.length;v++)null!=x[v]&&(k=Math.max(k,x[v].x),z=Math.min(z,x[v].x),A=Math.max(A,x[v].y),H=Math.min(H,x[v].y));k-=z;A-=H;if(0<k&&0<A){var R=100/k,g=100/A;x.map(function(Q){if(null==Q)return Q;Q.x=(Q.x-z)*R;Q.y=(Q.y-H)*g;return Q});var q='<shape strokewidth="inherit"><foreground>',F=0;for(v=0;v<x.length;v++){var J=x[v];if(null==J){J=!1;F=
x[F];var L=x[v-1];!K&&M&&(J=F.x-L.x,L=F.y-L.y,J=Math.sqrt(J*J+L*L)<=b.tolerance);if(K||J)q+='<line x="'+F.x.toFixed(2)+'" y="'+F.y.toFixed(2)+'"/>';q+="</path>"+(I||K||J?"<fillstroke/>":"<stroke/>");F=v+1}else q=v==F?q+('<path><move x="'+J.x.toFixed(2)+'" y="'+J.y.toFixed(2)+'"/>'):q+('<line x="'+J.x.toFixed(2)+'" y="'+J.y.toFixed(2)+'"/>')}q+="</foreground></shape>";if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){v=this.createStyle("stencil("+Graph.compress(q)+")");q=b.view.scale;F=b.view.translate;
-v=new mxCell("",new mxGeometry(z/q-F.x,H/q-F.y,k/q,B/q),v);v.vertex=1;b.model.beginUpdate();try{v=b.addCell(v),b.fireEvent(new mxEventObject("cellsInserted","cells",[v])),b.fireEvent(new mxEventObject("freehandInserted","cell",v))}finally{b.model.endUpdate()}n&&b.setSelectionCells([v])}}for(v=0;v<t.length;v++)t[v].parentNode.removeChild(t[v]);d=null;t=[];x=[]}D(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(k,v){k=v.getProperty("eventName");v=v.getProperty("event");k==mxEvent.MOUSE_MOVE&&
-e&&(null!=v.sourceState&&v.sourceState.setCursor("crosshair"),v.consume())}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(k,v){if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(k=v.getEvent(),e&&!mxEvent.isPopupTrigger(k)&&!mxEvent.isMiddleMouseButton(k)&&!mxEvent.isMultiTouchEvent(k))){var z=parseFloat(b.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH]||1);z=Math.max(1,z*b.view.scale);var B=this.getStrokeColor();d=document.createElementNS("http://www.w3.org/2000/svg","path");
-d.setAttribute("fill",A?B:"none");d.setAttribute("pointer-events","none");d.setAttribute("stroke",B);d.setAttribute("stroke-width",z);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(B=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",B=B.split(" ").map(function(H){return parseFloat(H)*z}).join(" "),d.setAttribute("stroke-dasharray",B));c=[];k=T(k);O(k);y="M"+k.x+" "+k.y;x.push(k);C=[];d.setAttribute("d",A?PerfectFreehand.getSvgPathFromStroke([[k.x,k.y]],u):y);f.appendChild(d);v.consume()}}),
-mouseMove:mxUtils.bind(this,function(k,v){if(null!=d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){k=v.getEvent();k=T(k);O(k);var z=S(0);if(z)if(x.push(z),A){var B=[];for(z=0;z<x.length;z++)B.push([x[z].x,x[z].y]);C=[];for(var H=2;H<c.length;H+=2)z=S(H),B.push([z.x,z.y]),C.push(z);d.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(B,u))}else{y+=" L"+z.x+" "+z.y;B="";C=[];for(H=2;H<c.length;H+=2)z=S(H),B+=" L"+z.x+" "+z.y,C.push(z);d.setAttribute("d",y+B)}P&&(z=b.view.translate,b.scrollRectToVisible((new mxRectangle(k.x-
-z.x,k.y-z.y)).grow(20)));v.consume()}}),mouseUp:mxUtils.bind(this,function(k,v){null!=d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(G(v.getEvent()),v.consume())})});var T=function(k){return mxUtils.convertPoint(b.container,mxEvent.getClientX(k),mxEvent.getClientY(k))},O=function(k){for(c.push(k);c.length>m;)c.shift()},S=function(k){var v=c.length;if(1===v%2||v>=m){var z=0,B=0,H,R=0;for(H=k;H<v;H++)R++,k=c[H],z+=k.x,B+=k.y;return{x:z/R,y:B/R}}return null}}}
+v=new mxCell("",new mxGeometry(z/q-F.x,H/q-F.y,k/q,A/q),v);v.vertex=1;b.model.beginUpdate();try{v=b.addCell(v),b.fireEvent(new mxEventObject("cellsInserted","cells",[v])),b.fireEvent(new mxEventObject("freehandInserted","cell",v))}finally{b.model.endUpdate()}n&&b.setSelectionCells([v])}}for(v=0;v<t.length;v++)t[v].parentNode.removeChild(t[v]);d=null;t=[];x=[]}D(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(k,v){k=v.getProperty("eventName");v=v.getProperty("event");k==mxEvent.MOUSE_MOVE&&
+e&&(null!=v.sourceState&&v.sourceState.setCursor("crosshair"),v.consume())}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(k,v){if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(k=v.getEvent(),e&&!mxEvent.isPopupTrigger(k)&&!mxEvent.isMiddleMouseButton(k)&&!mxEvent.isMultiTouchEvent(k))){var z=parseFloat(b.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH]||1);z=Math.max(1,z*b.view.scale);var A=this.getStrokeColor();d=document.createElementNS("http://www.w3.org/2000/svg","path");
+d.setAttribute("fill",B?A:"none");d.setAttribute("pointer-events","none");d.setAttribute("stroke",A);d.setAttribute("stroke-width",z);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(A=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",A=A.split(" ").map(function(H){return parseFloat(H)*z}).join(" "),d.setAttribute("stroke-dasharray",A));c=[];k=T(k);O(k);y="M"+k.x+" "+k.y;x.push(k);C=[];d.setAttribute("d",B?PerfectFreehand.getSvgPathFromStroke([[k.x,k.y]],u):y);f.appendChild(d);v.consume()}}),
+mouseMove:mxUtils.bind(this,function(k,v){if(null!=d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){k=v.getEvent();k=T(k);O(k);var z=S(0);if(z)if(x.push(z),B){var A=[];for(z=0;z<x.length;z++)A.push([x[z].x,x[z].y]);C=[];for(var H=2;H<c.length;H+=2)z=S(H),A.push([z.x,z.y]),C.push(z);d.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(A,u))}else{y+=" L"+z.x+" "+z.y;A="";C=[];for(H=2;H<c.length;H+=2)z=S(H),A+=" L"+z.x+" "+z.y,C.push(z);d.setAttribute("d",y+A)}P&&(z=b.view.translate,b.scrollRectToVisible((new mxRectangle(k.x-
+z.x,k.y-z.y)).grow(20)));v.consume()}}),mouseUp:mxUtils.bind(this,function(k,v){null!=d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(G(v.getEvent()),v.consume())})});var T=function(k){return mxUtils.convertPoint(b.container,mxEvent.getClientX(k),mxEvent.getClientY(k))},O=function(k){for(c.push(k);c.length>m;)c.shift()},S=function(k){var v=c.length;if(1===v%2||v>=m){var z=0,A=0,H,R=0;for(H=k;H<v;H++)R++,k=c[H],z+=k.x,A+=k.y;return{x:z/R,y:A/R}}return null}}}
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,f,m,d,t){this.id=b;this.email=f;this.displayName=m;this.pictureUrl=d;this.locale=t};DrawioComment=function(b,f,m,d,t,y,x){this.file=b;this.id=f;this.content=m;this.modifiedDate=d;this.createdDate=t;this.isResolved=y;this.user=x;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,f,m,d,t){f()};DrawioComment.prototype.editComment=function(b,f,m){f()};DrawioComment.prototype.deleteComment=function(b,f){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={};
@@ -18500,16 +18513,37 @@ mxShapeBpmn2Task.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.ge
a.translate(.5*-b-f-1,m-1-c),f+=14);d&&(n=mxStencilRegistry.getStencil("mxgraph.bpmn.compensation"),null!=n&&(n.drawShape(a,this,.5*b+f,c-m+1,14,12),f+=14));h&&(a.translate(.5*b+f,c-m),a.rect(0,0,14,14),a.stroke(),a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke(),a.translate(.5*-b-f,m-c),f+=14);e&&(n=mxStencilRegistry.getStencil("mxgraph.bpmn.ad_hoc"),null!=n&&(h=mxUtils.getValue(this.style,"strokeColor","#000000"),k=mxUtils.getValue(this.style,"fillColor","#ffffff"),
a.setStrokeColor("none"),a.setFillColor(h),n.drawShape(a,this,.5*b+f+1,c-m+4,12,6),a.setStrokeColor(h),a.setFillColor(k)));switch(g){case "service":a.setFillColor(mxUtils.getValue(this.style,"fillColor","#ffffff"));n=mxStencilRegistry.getStencil("mxgraph.bpmn.service_task");null!=n&&n.drawShape(a,this,2,2,16,16);break;case "send":h=mxUtils.getValue(this.style,"strokeColor","#000000");k=mxUtils.getValue(this.style,"fillColor","#ffffff");a.setStrokeColor(k);a.setFillColor(h);mxShapeBpmn2SendMarker.prototype.paintVertexShape(a,
4,4,18,13);break;case "receive":mxShapeBpmn2SendMarker.prototype.paintVertexShape(a,4,4,18,13);break;case "user":n=mxStencilRegistry.getStencil("mxgraph.bpmn.user_task");null!=n&&n.drawShape(a,this,2,2,16,16);break;case "manual":n=mxStencilRegistry.getStencil("mxgraph.bpmn.manual_task");null!=n&&n.drawShape(a,this,3,3,18,14);break;case "businessRule":n=mxStencilRegistry.getStencil("mxgraph.bpmn.business_rule_task");null!=n&&n.drawShape(a,this,4,4,18,14);break;case "script":n=mxStencilRegistry.getStencil("mxgraph.bpmn.script_task"),
-null!=n&&n.drawShape(a,this,3,3,19,18)}b=mxUtils.getValue(this.style,"outline","none");c=mxUtils.getValue(this.style,"symbol","standard");mxShapeBpmnEvent.prototype.strictDrawShape.call(this,a,0,0,20,20,b,c)};mxCellRenderer.registerShape(mxShapeBpmn2Task.prototype.cst.TASK,mxShapeBpmn2Task);function mxShapeBpmn2Data(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}
-mxUtils.extend(mxShapeBpmn2Data,mxCellRenderer.prototype.getShape("note"));mxShapeBpmn2Data.prototype.cst={DATA:"mxgraph.bpmn.data"};mxShapeBpmn2Data.prototype.customProperties=[{name:"bpmnTransferType",dispName:"Transfer Type",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"input",dispName:"Input"},{val:"output",dispName:"Output"}]},{name:"isCollection",dispName:"Collection",type:"bool"}];
+null!=n&&n.drawShape(a,this,3,3,19,18)}b=mxUtils.getValue(this.style,"outline","none");c=mxUtils.getValue(this.style,"symbol","standard");mxShapeBpmnEvent.prototype.strictDrawShape.call(this,a,0,0,20,20,b,c)};mxCellRenderer.registerShape(mxShapeBpmn2Task.prototype.cst.TASK,mxShapeBpmn2Task);function mxShapeBpmn2Task2(a,d,e,b){mxCellRenderer.prototype.getShape("mxgraph.basic.rect").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}
+mxUtils.extend(mxShapeBpmn2Task2,mxCellRenderer.prototype.getShape("mxgraph.basic.rect"));
+mxShapeBpmn2Task2.prototype.customProperties=[{name:"bpmnShapeType",dispName:"Type",defVal:"task",type:"enum",enumList:[{val:"task",dispName:"Task"},{val:"transaction",dispName:"Transaction"},{val:"call",dispName:"Call"},{val:"subprocess",dispName:"Sub-Process"}]},{name:"taskMarker",dispName:"Task Marker",defVal:"abstract",type:"enum",enumList:[{val:"abstract",dispName:"Abstract"},{val:"service",dispName:"Service"},{val:"send",dispName:"Send"},{val:"receive",dispName:"Receive"},{val:"user",dispName:"User"},
+{val:"nime",dispName:"Non-Interrupting Message Event"},{val:"manual",dispName:"Manual"},{val:"businessRule",dispName:"Business Rule"},{val:"script",dispName:"Script"}]},{name:"isLoopSub",dispName:"Subprocess",type:"bool"},{name:"isLoopStandard",dispName:"Standard Loop",type:"bool"},{name:"isLoopMultiParallel",dispName:"Multi-Instance Parallel Loop",type:"bool"},{name:"isLoopMultiSeq",dispName:"Multi-Instance Sequential Loop",type:"bool"},{name:"isLoopComp",dispName:"Compensation Loop",type:"bool"},
+{name:"isAdHoc",dispName:"Ad Hoc",type:"bool"}];mxShapeBpmn2Task2.prototype.customProperties=mxShapeBpmn2Task2.prototype.customProperties.concat(mxShapeBpmnEvent.prototype.customProperties);mxShapeBpmn2Task2.prototype.customProperties=mxShapeBpmn2Task2.prototype.customProperties.concat(mxCellRenderer.prototype.getShape("mxgraph.basic.rect").prototype.customProperties);mxShapeBpmn2Task2.prototype.eventTypeEnum=mxShapeBpmnEvent.prototype.eventTypeEnum;mxShapeBpmn2Task2.prototype.eventEnum=mxShapeBpmnEvent.prototype.eventEnum;
+mxShapeBpmn2Task2.prototype.miscEnum=mxShapeBpmnEvent.prototype.miscEnum;mxShapeBpmn2Task2.prototype.cst={TASK:"mxgraph.bpmn.task2"};
+mxShapeBpmn2Task2.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"bpmnShapeType","task"),g=mxUtils.getValue(this.style,"taskMarker","abstract"),h=mxUtils.getValue(this.style,"strokeWidth",1),k=mxUtils.getValue(this.style,"dashed",!1),l=mxUtils.getValue(this.style,"indent",3),m=14+.5*h;"call"==f&&(m=14+2*h);mxUtils.getValue(this.style,"rectOutline","single");a.translate(d,e);d=mxCellRenderer.prototype.getShape("mxgraph.basic.rect");e={};"transaction"==f?(m+=l,e.rectOutline=
+"double",e.indent=3):"subprocess"==f?e.dashed=!0:"call"==f&&(e.strokeWidth=4*h);d.prototype.strictDrawShape.call(this,a,0,0,b,c,e);a.setStrokeWidth(h);a.setDashed(k);"call"==f&&a.setStrokeWidth(h);a.setDashed(!1);a.setShadow(!1);e=mxUtils.getValue(this.style,"isLoopSub",!1);l=mxUtils.getValue(this.style,"isLoopStandard",!1);var n=mxUtils.getValue(this.style,"isLoopMultiParallel",!1),p=mxUtils.getValue(this.style,"isLoopMultiSeq",!1),q=mxUtils.getValue(this.style,"isLoopComp",!1),t=mxUtils.getValue(this.style,
+"isAdHoc",!1);k=0;l&&k++;n&&k++;p&&k++;q&&k++;e&&k++;t&&k++;k*=-7;a.setStrokeWidth(1);l&&(l=mxStencilRegistry.getStencil("mxgraph.bpmn.loop"),null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,.5*b+k+1,c-m+1,12,12),a.setStrokeWidth=d,k+=14));n&&(a.translate(.5*b+k+1,c-m+1),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b-k-1,m-1-c),k+=14);p&&(a.translate(.5*b+k+1,c-m+1),a.begin(),a.moveTo(0,
+2.4),a.lineTo(12,2.4),a.moveTo(0,6),a.lineTo(12,6),a.moveTo(0,9.6),a.lineTo(12,9.6),a.stroke(),a.translate(.5*-b-k-1,m-1-c),k+=14);q&&(l=mxStencilRegistry.getStencil("mxgraph.bpmn.compensation"),null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,.5*b+k,c-m+1,14,12),a.setStrokeWidth=d,k+=14));e&&(a.translate(.5*b+k,c-m),a.rect(0,0,14,14),a.stroke(),a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke(),a.translate(.5*-b-k,m-c),k+=14);t&&(l=mxStencilRegistry.getStencil("mxgraph.bpmn.ad_hoc"),
+null!=l&&(d=mxUtils.getValue(this.style,"strokeColor","#000000"),e=mxUtils.getValue(this.style,"fillColor","#ffffff"),a.setStrokeColor("none"),a.setFillColor(d),l.drawShape(a,this,.5*b+k+1,c-m+4,12,6),k+=14,a.setStrokeColor(d),a.setFillColor(e),a.setStrokeWidth(1)));b=.5*h;"call"==f&&(b=2*h);switch(g){case "service":a.setFillColor(mxUtils.getValue(this.style,"fillColor","#ffffff"));l=mxStencilRegistry.getStencil("mxgraph.bpmn.service_task");null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},
+l.drawShape(a,this,b+2,b+2,16,16),a.setStrokeWidth=d);break;case "send":d=mxUtils.getValue(this.style,"strokeColor","#000000");e=mxUtils.getValue(this.style,"fillColor","#ffffff");a.setStrokeColor(e);a.setFillColor(d);mxShapeBpmn2SendMarker.prototype.paintVertexShape(a,b+4,b+4,18,13);break;case "receive":mxShapeBpmn2SendMarker.prototype.paintVertexShape(a,b+4,b+4,18,13);break;case "user":l=mxStencilRegistry.getStencil("mxgraph.bpmn.user_task");null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},
+l.drawShape(a,this,b+2,b+2,16,16),a.setStrokeWidth=d);break;case "manual":l=mxStencilRegistry.getStencil("mxgraph.bpmn.manual_task");null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,b+3,b+3,18,14),a.setStrokeWidth=d);break;case "businessRule":l=mxStencilRegistry.getStencil("mxgraph.bpmn.business_rule_task");null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,b+4,b+4,18,14),a.setStrokeWidth=d);break;case "script":l=mxStencilRegistry.getStencil("mxgraph.bpmn.script_task"),
+null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,b+3,b+3,19,18),a.setStrokeWidth=d)}f=mxUtils.getValue(this.style,"outline","none");g=mxUtils.getValue(this.style,"symbol","standard");d=a.setStrokeWidth;a.setStrokeWidth=function(){};mxShapeBpmnEvent.prototype.strictDrawShape.call(this,a,b,b,20,20,f,g);a.setStrokeWidth=d};mxCellRenderer.registerShape(mxShapeBpmn2Task2.prototype.cst.TASK,mxShapeBpmn2Task2);
+function mxShapeBpmn2Data(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeBpmn2Data,mxCellRenderer.prototype.getShape("note"));mxShapeBpmn2Data.prototype.cst={DATA:"mxgraph.bpmn.data"};
+mxShapeBpmn2Data.prototype.customProperties=[{name:"bpmnTransferType",dispName:"Transfer Type",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"input",dispName:"Input"},{val:"output",dispName:"Output"}]},{name:"isCollection",dispName:"Collection",type:"bool"}];
mxShapeBpmn2Data.prototype.paintVertexShape=function(a,d,e,b,c){mxCellRenderer.prototype.getShape("note").prototype.paintVertexShape.call(this,a,d,e,b,c);e=mxUtils.getValue(this.style,"bpmnTransferType","none");d=mxUtils.getValue(this.style,"isCollection",!1);a.setShadow(!1);if("input"===e||"output"===e)if(a.translate(3,3),a.begin(),a.moveTo(0,12*.3),a.lineTo(14*.55,12*.3),a.lineTo(14*.55,0),a.lineTo(14,6),a.lineTo(14*.55,12),a.lineTo(14*.55,12*.7),a.lineTo(0,12*.7),a.close(),a.translate(-3,-3),"input"===
e)a.stroke();else{e=mxUtils.getValue(this.style,"fillColor","#ffffff");var f=mxUtils.getValue(this.style,"strokeColor","#000000");a.setFillColor(f);a.fillAndStroke();a.setFillColor(e)}d&&(a.translate(.5*b-6,c-12),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b+6,-c+12))};mxCellRenderer.registerShape(mxShapeBpmn2Data.prototype.cst.DATA,mxShapeBpmn2Data);Graph.handleFactory[mxShapeBpmn2Data.prototype.cst.DATA]=Graph.handleFactory.note;
-function mxShapeBpmn2Swimlane(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeBpmn2Swimlane,mxSwimlane);mxShapeBpmn2Swimlane.prototype.cst={SWIMLANE:"mxgraph.bpmn.swimlane"};mxShapeBpmn2Swimlane.prototype.customProperties=[{name:"isCollection",dispName:"Collection",type:"bool"}];
-mxShapeBpmn2Swimlane.prototype.paintVertexShape=function(a,d,e,b,c){mxSwimlane.prototype.paintVertexShape.call(this,a,d,e,b,c);d=mxUtils.getValue(this.style,"isCollection",!1);a.setShadow(!1);d&&(a.translate(.5*b-6,c-12),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b+6,-c+12))};mxCellRenderer.registerShape(mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE,mxShapeBpmn2Swimlane);
-Graph.handleFactory[mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE]=Graph.handleFactory.swimlane;function mxShapeBpmn2Conversation(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBpmn2Conversation,mxHexagon);
+function mxShapeBpmn2Data2(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeBpmn2Data2,mxCellRenderer.prototype.getShape("note"));mxShapeBpmn2Data2.prototype.cst={DATA:"mxgraph.bpmn.data2"};
+mxShapeBpmn2Data2.prototype.customProperties=[{name:"bpmnTransferType",dispName:"Transfer Type",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"input",dispName:"Input"},{val:"output",dispName:"Output"}]},{name:"isCollection",dispName:"Collection",type:"bool"}];
+mxShapeBpmn2Data2.prototype.paintVertexShape=function(a,d,e,b,c){mxCellRenderer.prototype.getShape("note").prototype.paintVertexShape.call(this,a,d,e,b,c);var f=mxUtils.getValue(this.style,"bpmnTransferType","none");d=mxUtils.getValue(this.style,"isCollection",!1);e=mxUtils.getValue(this.style,"strokeWidth",1);a.setShadow(!1);a.setStrokeWidth(1);if("input"===f||"output"===f){var g=3+.5*e,h=3+.5*e;a.translate(g,h);a.begin();a.moveTo(0,12*.3);a.lineTo(14*.55,12*.3);a.lineTo(14*.55,0);a.lineTo(14,6);
+a.lineTo(14*.55,12);a.lineTo(14*.55,12*.7);a.lineTo(0,12*.7);a.close();a.translate(-g,-h);"input"===f?a.stroke():(f=mxUtils.getValue(this.style,"fillColor","#ffffff"),g=mxUtils.getValue(this.style,"strokeColor","#000000"),a.setFillColor(g),a.fillAndStroke(),a.setFillColor(f))}d&&(a.translate(.5*b-6,c-12-.5*e),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b+6,-c+12))};
+mxCellRenderer.registerShape(mxShapeBpmn2Data2.prototype.cst.DATA,mxShapeBpmn2Data2);Graph.handleFactory[mxShapeBpmn2Data2.prototype.cst.DATA]=Graph.handleFactory.note;function mxShapeBpmn2Swimlane(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeBpmn2Swimlane,mxSwimlane);mxShapeBpmn2Swimlane.prototype.cst={SWIMLANE:"mxgraph.bpmn.swimlane"};
+mxShapeBpmn2Swimlane.prototype.customProperties=[{name:"isCollection",dispName:"Collection",type:"bool"}];mxShapeBpmn2Swimlane.prototype.paintVertexShape=function(a,d,e,b,c){mxSwimlane.prototype.paintVertexShape.call(this,a,d,e,b,c);d=mxUtils.getValue(this.style,"isCollection",!1);a.setShadow(!1);d&&(a.translate(.5*b-6,c-12),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b+6,-c+12))};
+mxCellRenderer.registerShape(mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE,mxShapeBpmn2Swimlane);Graph.handleFactory[mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE]=Graph.handleFactory.swimlane;function mxShapeBpmn2Conversation(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBpmn2Conversation,mxHexagon);
mxShapeBpmn2Conversation.prototype.customProperties=[{name:"bpmnConversationType",dispName:"Type",defVal:"conv",type:"enum",enumList:[{val:"conv",dispName:"Conversation"},{val:"call",dispName:"Call"}]},{name:"isLoopSub",dispName:"Subprocess",type:"bool"}];mxShapeBpmn2Conversation.prototype.cst={CONVERSATION:"mxgraph.bpmn.conversation"};
mxShapeBpmn2Conversation.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"bpmnConversationType","conv"),g=mxUtils.getValue(this.style,"strokeWidth",1);"call"==f&&a.setStrokeWidth(4*g);a.translate(d,e);a.begin();a.moveTo(0,.5*c);a.lineTo(.25*b,0);a.lineTo(.75*b,0);a.lineTo(b,.5*c);a.lineTo(.75*b,c);a.lineTo(.25*b,c);a.close();a.fillAndStroke();"call"==f&&a.setStrokeWidth(g);mxUtils.getValue(this.style,"isLoopSub",!1)&&(a.translate(.5*b-7,c-14),a.rect(0,0,14,14),a.stroke(),
-a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke())};mxCellRenderer.registerShape(mxShapeBpmn2Conversation.prototype.cst.CONVERSATION,mxShapeBpmn2Conversation);function mxShapeEmoji(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEmoji,mxShape);mxShapeEmoji.prototype.EMOJI_NAME="emoji";
+a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke())};mxCellRenderer.registerShape(mxShapeBpmn2Conversation.prototype.cst.CONVERSATION,mxShapeBpmn2Conversation);function mxShapeBpmn2Conversation2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBpmn2Conversation2,mxHexagon);
+mxShapeBpmn2Conversation2.prototype.customProperties=[{name:"bpmnConversationType",dispName:"Type",defVal:"conv",type:"enum",enumList:[{val:"conv",dispName:"Conversation"},{val:"call",dispName:"Call"}]},{name:"isLoopSub",dispName:"Subprocess",type:"bool"}];mxShapeBpmn2Conversation2.prototype.cst={CONVERSATION:"mxgraph.bpmn.conversation2"};
+mxShapeBpmn2Conversation2.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"bpmnConversationType","conv"),g=mxUtils.getValue(this.style,"strokeWidth",1);"call"==f&&a.setStrokeWidth(4*g);a.translate(d,e);a.begin();a.moveTo(0,.5*c);a.lineTo(.25*b,0);a.lineTo(.75*b,0);a.lineTo(b,.5*c);a.lineTo(.75*b,c);a.lineTo(.25*b,c);a.close();a.fillAndStroke();a.setStrokeWidth(1);mxUtils.getValue(this.style,"isLoopSub",!1)&&("call"==f?a.translate(.5*b-7,c-14-2*g):a.translate(.5*b-
+7,c-14-.5*g),a.rect(0,0,14,14),a.stroke(),a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke())};mxCellRenderer.registerShape(mxShapeBpmn2Conversation2.prototype.cst.CONVERSATION,mxShapeBpmn2Conversation2);function mxShapeEmoji(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEmoji,mxShape);mxShapeEmoji.prototype.EMOJI_NAME="emoji";
mxShapeEmoji.prototype.emojis={grinning_face:"\ud83d\ude00",grinning_face_with_big_eyes:"\ud83d\ude03",grinning_face_with_smiling_eyes:"\ud83d\ude04",beaming_face_with_smiling_eyes:"\ud83d\ude01",grinning_squinting_face:"\ud83d\ude06",grinning_face_with_sweat:"\ud83d\ude05",rolling_on_the_floor_laughing:"\ud83e\udd23",face_with_tears_of_joy:"\ud83d\ude02",slightly_smiling_face:"\ud83d\ude42",upside_down_face:"\ud83d\ude43",melting_face:"\ud83e\udee0",winking_face:"\ud83d\ude09",smiling_face_with_smiling_eyes:"\ud83d\ude0a",
smiling_face_with_halo:"\ud83d\ude07",smiling_face_with_hearts:"\ud83e\udd70",smiling_face_with_heart_eyes:"\ud83d\ude0d",star_struck:"\ud83e\udd29",face_blowing_a_kiss:"\ud83d\ude18",kissing_face:"\ud83d\ude17",smiling_face:"☺️",kissing_face_with_closed_eyes:"\ud83d\ude1a",kissing_face_with_smiling_eyes:"\ud83d\ude19",smiling_face_with_tear:"\ud83e\udd72",face_savoring_food:"\ud83d\ude0b",face_with_tongue:"\ud83d\ude1b",winking_face_with_tongue:"\ud83d\ude1c",zany_face:"\ud83e\udd2a",squinting_face_with_tongue:"\ud83d\ude1d",
money_mouth_face:"\ud83e\udd11",smiling_face_with_open_hands:"\ud83e\udd17",face_with_hand_over_mouth:"\ud83e\udd2d",face_with_open_eyes_and_hand_over_mouth:"\ud83e\udee2",face_with_peeking_eye:"\ud83e\udee3",shushing_face:"\ud83e\udd2b",thinking_face:"\ud83e\udd14",saluting_face:"\ud83e\udee1",zipper_mouth_face:"\ud83e\udd10",face_with_raised_eyebrow:"\ud83e\udd28",neutral_face:"\ud83d\ude10",expressionless_face:"\ud83d\ude11",face_without_mouth:"\ud83d\ude36",dotted_line_face:"\ud83e\udee5",face_in_clouds:"\ud83d\ude36‍\ud83c\udf2b️",
diff --git a/src/main/webapp/js/open.js b/src/main/webapp/js/open.js
index ef501ea2d..38a63de8b 100644
--- a/src/main/webapp/js/open.js
+++ b/src/main/webapp/js/open.js
@@ -130,10 +130,12 @@ function main()
var ctrlTd = document.createElement('td');
row.appendChild(ctrlTd);
ctrlTd.style.textAlign = 'center';
- var img = document.createElement('span');
- img.className = 'geSprite geSprite-delete';
+ var img = document.createElement('img');
+ img.src = window.parent.Editor.trashImage;
img.style.cursor = 'pointer';
img.style.display = 'inline-block';
+ img.style.width = '18px';
+ img.setAttribute('title', window.parent.mxResources.get('delete'));
ctrlTd.appendChild(img);
if (darkMode)
diff --git a/src/main/webapp/js/shapes-14-6-5.min.js b/src/main/webapp/js/shapes-14-6-5.min.js
index 3487e5aa0..58bfde27a 100644
--- a/src/main/webapp/js/shapes-14-6-5.min.js
+++ b/src/main/webapp/js/shapes-14-6-5.min.js
@@ -64,16 +64,37 @@ mxShapeBpmn2Task.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.ge
a.translate(.5*-b-f-1,m-1-c),f+=14);d&&(n=mxStencilRegistry.getStencil("mxgraph.bpmn.compensation"),null!=n&&(n.drawShape(a,this,.5*b+f,c-m+1,14,12),f+=14));h&&(a.translate(.5*b+f,c-m),a.rect(0,0,14,14),a.stroke(),a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke(),a.translate(.5*-b-f,m-c),f+=14);e&&(n=mxStencilRegistry.getStencil("mxgraph.bpmn.ad_hoc"),null!=n&&(h=mxUtils.getValue(this.style,"strokeColor","#000000"),k=mxUtils.getValue(this.style,"fillColor","#ffffff"),
a.setStrokeColor("none"),a.setFillColor(h),n.drawShape(a,this,.5*b+f+1,c-m+4,12,6),a.setStrokeColor(h),a.setFillColor(k)));switch(g){case "service":a.setFillColor(mxUtils.getValue(this.style,"fillColor","#ffffff"));n=mxStencilRegistry.getStencil("mxgraph.bpmn.service_task");null!=n&&n.drawShape(a,this,2,2,16,16);break;case "send":h=mxUtils.getValue(this.style,"strokeColor","#000000");k=mxUtils.getValue(this.style,"fillColor","#ffffff");a.setStrokeColor(k);a.setFillColor(h);mxShapeBpmn2SendMarker.prototype.paintVertexShape(a,
4,4,18,13);break;case "receive":mxShapeBpmn2SendMarker.prototype.paintVertexShape(a,4,4,18,13);break;case "user":n=mxStencilRegistry.getStencil("mxgraph.bpmn.user_task");null!=n&&n.drawShape(a,this,2,2,16,16);break;case "manual":n=mxStencilRegistry.getStencil("mxgraph.bpmn.manual_task");null!=n&&n.drawShape(a,this,3,3,18,14);break;case "businessRule":n=mxStencilRegistry.getStencil("mxgraph.bpmn.business_rule_task");null!=n&&n.drawShape(a,this,4,4,18,14);break;case "script":n=mxStencilRegistry.getStencil("mxgraph.bpmn.script_task"),
-null!=n&&n.drawShape(a,this,3,3,19,18)}b=mxUtils.getValue(this.style,"outline","none");c=mxUtils.getValue(this.style,"symbol","standard");mxShapeBpmnEvent.prototype.strictDrawShape.call(this,a,0,0,20,20,b,c)};mxCellRenderer.registerShape(mxShapeBpmn2Task.prototype.cst.TASK,mxShapeBpmn2Task);function mxShapeBpmn2Data(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}
-mxUtils.extend(mxShapeBpmn2Data,mxCellRenderer.prototype.getShape("note"));mxShapeBpmn2Data.prototype.cst={DATA:"mxgraph.bpmn.data"};mxShapeBpmn2Data.prototype.customProperties=[{name:"bpmnTransferType",dispName:"Transfer Type",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"input",dispName:"Input"},{val:"output",dispName:"Output"}]},{name:"isCollection",dispName:"Collection",type:"bool"}];
+null!=n&&n.drawShape(a,this,3,3,19,18)}b=mxUtils.getValue(this.style,"outline","none");c=mxUtils.getValue(this.style,"symbol","standard");mxShapeBpmnEvent.prototype.strictDrawShape.call(this,a,0,0,20,20,b,c)};mxCellRenderer.registerShape(mxShapeBpmn2Task.prototype.cst.TASK,mxShapeBpmn2Task);function mxShapeBpmn2Task2(a,d,e,b){mxCellRenderer.prototype.getShape("mxgraph.basic.rect").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}
+mxUtils.extend(mxShapeBpmn2Task2,mxCellRenderer.prototype.getShape("mxgraph.basic.rect"));
+mxShapeBpmn2Task2.prototype.customProperties=[{name:"bpmnShapeType",dispName:"Type",defVal:"task",type:"enum",enumList:[{val:"task",dispName:"Task"},{val:"transaction",dispName:"Transaction"},{val:"call",dispName:"Call"},{val:"subprocess",dispName:"Sub-Process"}]},{name:"taskMarker",dispName:"Task Marker",defVal:"abstract",type:"enum",enumList:[{val:"abstract",dispName:"Abstract"},{val:"service",dispName:"Service"},{val:"send",dispName:"Send"},{val:"receive",dispName:"Receive"},{val:"user",dispName:"User"},
+{val:"nime",dispName:"Non-Interrupting Message Event"},{val:"manual",dispName:"Manual"},{val:"businessRule",dispName:"Business Rule"},{val:"script",dispName:"Script"}]},{name:"isLoopSub",dispName:"Subprocess",type:"bool"},{name:"isLoopStandard",dispName:"Standard Loop",type:"bool"},{name:"isLoopMultiParallel",dispName:"Multi-Instance Parallel Loop",type:"bool"},{name:"isLoopMultiSeq",dispName:"Multi-Instance Sequential Loop",type:"bool"},{name:"isLoopComp",dispName:"Compensation Loop",type:"bool"},
+{name:"isAdHoc",dispName:"Ad Hoc",type:"bool"}];mxShapeBpmn2Task2.prototype.customProperties=mxShapeBpmn2Task2.prototype.customProperties.concat(mxShapeBpmnEvent.prototype.customProperties);mxShapeBpmn2Task2.prototype.customProperties=mxShapeBpmn2Task2.prototype.customProperties.concat(mxCellRenderer.prototype.getShape("mxgraph.basic.rect").prototype.customProperties);mxShapeBpmn2Task2.prototype.eventTypeEnum=mxShapeBpmnEvent.prototype.eventTypeEnum;mxShapeBpmn2Task2.prototype.eventEnum=mxShapeBpmnEvent.prototype.eventEnum;
+mxShapeBpmn2Task2.prototype.miscEnum=mxShapeBpmnEvent.prototype.miscEnum;mxShapeBpmn2Task2.prototype.cst={TASK:"mxgraph.bpmn.task2"};
+mxShapeBpmn2Task2.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"bpmnShapeType","task"),g=mxUtils.getValue(this.style,"taskMarker","abstract"),h=mxUtils.getValue(this.style,"strokeWidth",1),k=mxUtils.getValue(this.style,"dashed",!1),l=mxUtils.getValue(this.style,"indent",3),m=14+.5*h;"call"==f&&(m=14+2*h);mxUtils.getValue(this.style,"rectOutline","single");a.translate(d,e);d=mxCellRenderer.prototype.getShape("mxgraph.basic.rect");e={};"transaction"==f?(m+=l,e.rectOutline=
+"double",e.indent=3):"subprocess"==f?e.dashed=!0:"call"==f&&(e.strokeWidth=4*h);d.prototype.strictDrawShape.call(this,a,0,0,b,c,e);a.setStrokeWidth(h);a.setDashed(k);"call"==f&&a.setStrokeWidth(h);a.setDashed(!1);a.setShadow(!1);e=mxUtils.getValue(this.style,"isLoopSub",!1);l=mxUtils.getValue(this.style,"isLoopStandard",!1);var n=mxUtils.getValue(this.style,"isLoopMultiParallel",!1),p=mxUtils.getValue(this.style,"isLoopMultiSeq",!1),q=mxUtils.getValue(this.style,"isLoopComp",!1),t=mxUtils.getValue(this.style,
+"isAdHoc",!1);k=0;l&&k++;n&&k++;p&&k++;q&&k++;e&&k++;t&&k++;k*=-7;a.setStrokeWidth(1);l&&(l=mxStencilRegistry.getStencil("mxgraph.bpmn.loop"),null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,.5*b+k+1,c-m+1,12,12),a.setStrokeWidth=d,k+=14));n&&(a.translate(.5*b+k+1,c-m+1),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b-k-1,m-1-c),k+=14);p&&(a.translate(.5*b+k+1,c-m+1),a.begin(),a.moveTo(0,
+2.4),a.lineTo(12,2.4),a.moveTo(0,6),a.lineTo(12,6),a.moveTo(0,9.6),a.lineTo(12,9.6),a.stroke(),a.translate(.5*-b-k-1,m-1-c),k+=14);q&&(l=mxStencilRegistry.getStencil("mxgraph.bpmn.compensation"),null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,.5*b+k,c-m+1,14,12),a.setStrokeWidth=d,k+=14));e&&(a.translate(.5*b+k,c-m),a.rect(0,0,14,14),a.stroke(),a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke(),a.translate(.5*-b-k,m-c),k+=14);t&&(l=mxStencilRegistry.getStencil("mxgraph.bpmn.ad_hoc"),
+null!=l&&(d=mxUtils.getValue(this.style,"strokeColor","#000000"),e=mxUtils.getValue(this.style,"fillColor","#ffffff"),a.setStrokeColor("none"),a.setFillColor(d),l.drawShape(a,this,.5*b+k+1,c-m+4,12,6),k+=14,a.setStrokeColor(d),a.setFillColor(e),a.setStrokeWidth(1)));b=.5*h;"call"==f&&(b=2*h);switch(g){case "service":a.setFillColor(mxUtils.getValue(this.style,"fillColor","#ffffff"));l=mxStencilRegistry.getStencil("mxgraph.bpmn.service_task");null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},
+l.drawShape(a,this,b+2,b+2,16,16),a.setStrokeWidth=d);break;case "send":d=mxUtils.getValue(this.style,"strokeColor","#000000");e=mxUtils.getValue(this.style,"fillColor","#ffffff");a.setStrokeColor(e);a.setFillColor(d);mxShapeBpmn2SendMarker.prototype.paintVertexShape(a,b+4,b+4,18,13);break;case "receive":mxShapeBpmn2SendMarker.prototype.paintVertexShape(a,b+4,b+4,18,13);break;case "user":l=mxStencilRegistry.getStencil("mxgraph.bpmn.user_task");null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},
+l.drawShape(a,this,b+2,b+2,16,16),a.setStrokeWidth=d);break;case "manual":l=mxStencilRegistry.getStencil("mxgraph.bpmn.manual_task");null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,b+3,b+3,18,14),a.setStrokeWidth=d);break;case "businessRule":l=mxStencilRegistry.getStencil("mxgraph.bpmn.business_rule_task");null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,b+4,b+4,18,14),a.setStrokeWidth=d);break;case "script":l=mxStencilRegistry.getStencil("mxgraph.bpmn.script_task"),
+null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,b+3,b+3,19,18),a.setStrokeWidth=d)}f=mxUtils.getValue(this.style,"outline","none");g=mxUtils.getValue(this.style,"symbol","standard");d=a.setStrokeWidth;a.setStrokeWidth=function(){};mxShapeBpmnEvent.prototype.strictDrawShape.call(this,a,b,b,20,20,f,g);a.setStrokeWidth=d};mxCellRenderer.registerShape(mxShapeBpmn2Task2.prototype.cst.TASK,mxShapeBpmn2Task2);
+function mxShapeBpmn2Data(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeBpmn2Data,mxCellRenderer.prototype.getShape("note"));mxShapeBpmn2Data.prototype.cst={DATA:"mxgraph.bpmn.data"};
+mxShapeBpmn2Data.prototype.customProperties=[{name:"bpmnTransferType",dispName:"Transfer Type",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"input",dispName:"Input"},{val:"output",dispName:"Output"}]},{name:"isCollection",dispName:"Collection",type:"bool"}];
mxShapeBpmn2Data.prototype.paintVertexShape=function(a,d,e,b,c){mxCellRenderer.prototype.getShape("note").prototype.paintVertexShape.call(this,a,d,e,b,c);e=mxUtils.getValue(this.style,"bpmnTransferType","none");d=mxUtils.getValue(this.style,"isCollection",!1);a.setShadow(!1);if("input"===e||"output"===e)if(a.translate(3,3),a.begin(),a.moveTo(0,12*.3),a.lineTo(14*.55,12*.3),a.lineTo(14*.55,0),a.lineTo(14,6),a.lineTo(14*.55,12),a.lineTo(14*.55,12*.7),a.lineTo(0,12*.7),a.close(),a.translate(-3,-3),"input"===
e)a.stroke();else{e=mxUtils.getValue(this.style,"fillColor","#ffffff");var f=mxUtils.getValue(this.style,"strokeColor","#000000");a.setFillColor(f);a.fillAndStroke();a.setFillColor(e)}d&&(a.translate(.5*b-6,c-12),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b+6,-c+12))};mxCellRenderer.registerShape(mxShapeBpmn2Data.prototype.cst.DATA,mxShapeBpmn2Data);Graph.handleFactory[mxShapeBpmn2Data.prototype.cst.DATA]=Graph.handleFactory.note;
-function mxShapeBpmn2Swimlane(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeBpmn2Swimlane,mxSwimlane);mxShapeBpmn2Swimlane.prototype.cst={SWIMLANE:"mxgraph.bpmn.swimlane"};mxShapeBpmn2Swimlane.prototype.customProperties=[{name:"isCollection",dispName:"Collection",type:"bool"}];
-mxShapeBpmn2Swimlane.prototype.paintVertexShape=function(a,d,e,b,c){mxSwimlane.prototype.paintVertexShape.call(this,a,d,e,b,c);d=mxUtils.getValue(this.style,"isCollection",!1);a.setShadow(!1);d&&(a.translate(.5*b-6,c-12),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b+6,-c+12))};mxCellRenderer.registerShape(mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE,mxShapeBpmn2Swimlane);
-Graph.handleFactory[mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE]=Graph.handleFactory.swimlane;function mxShapeBpmn2Conversation(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBpmn2Conversation,mxHexagon);
+function mxShapeBpmn2Data2(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeBpmn2Data2,mxCellRenderer.prototype.getShape("note"));mxShapeBpmn2Data2.prototype.cst={DATA:"mxgraph.bpmn.data2"};
+mxShapeBpmn2Data2.prototype.customProperties=[{name:"bpmnTransferType",dispName:"Transfer Type",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"input",dispName:"Input"},{val:"output",dispName:"Output"}]},{name:"isCollection",dispName:"Collection",type:"bool"}];
+mxShapeBpmn2Data2.prototype.paintVertexShape=function(a,d,e,b,c){mxCellRenderer.prototype.getShape("note").prototype.paintVertexShape.call(this,a,d,e,b,c);var f=mxUtils.getValue(this.style,"bpmnTransferType","none");d=mxUtils.getValue(this.style,"isCollection",!1);e=mxUtils.getValue(this.style,"strokeWidth",1);a.setShadow(!1);a.setStrokeWidth(1);if("input"===f||"output"===f){var g=3+.5*e,h=3+.5*e;a.translate(g,h);a.begin();a.moveTo(0,12*.3);a.lineTo(14*.55,12*.3);a.lineTo(14*.55,0);a.lineTo(14,6);
+a.lineTo(14*.55,12);a.lineTo(14*.55,12*.7);a.lineTo(0,12*.7);a.close();a.translate(-g,-h);"input"===f?a.stroke():(f=mxUtils.getValue(this.style,"fillColor","#ffffff"),g=mxUtils.getValue(this.style,"strokeColor","#000000"),a.setFillColor(g),a.fillAndStroke(),a.setFillColor(f))}d&&(a.translate(.5*b-6,c-12-.5*e),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b+6,-c+12))};
+mxCellRenderer.registerShape(mxShapeBpmn2Data2.prototype.cst.DATA,mxShapeBpmn2Data2);Graph.handleFactory[mxShapeBpmn2Data2.prototype.cst.DATA]=Graph.handleFactory.note;function mxShapeBpmn2Swimlane(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeBpmn2Swimlane,mxSwimlane);mxShapeBpmn2Swimlane.prototype.cst={SWIMLANE:"mxgraph.bpmn.swimlane"};
+mxShapeBpmn2Swimlane.prototype.customProperties=[{name:"isCollection",dispName:"Collection",type:"bool"}];mxShapeBpmn2Swimlane.prototype.paintVertexShape=function(a,d,e,b,c){mxSwimlane.prototype.paintVertexShape.call(this,a,d,e,b,c);d=mxUtils.getValue(this.style,"isCollection",!1);a.setShadow(!1);d&&(a.translate(.5*b-6,c-12),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b+6,-c+12))};
+mxCellRenderer.registerShape(mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE,mxShapeBpmn2Swimlane);Graph.handleFactory[mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE]=Graph.handleFactory.swimlane;function mxShapeBpmn2Conversation(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBpmn2Conversation,mxHexagon);
mxShapeBpmn2Conversation.prototype.customProperties=[{name:"bpmnConversationType",dispName:"Type",defVal:"conv",type:"enum",enumList:[{val:"conv",dispName:"Conversation"},{val:"call",dispName:"Call"}]},{name:"isLoopSub",dispName:"Subprocess",type:"bool"}];mxShapeBpmn2Conversation.prototype.cst={CONVERSATION:"mxgraph.bpmn.conversation"};
mxShapeBpmn2Conversation.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"bpmnConversationType","conv"),g=mxUtils.getValue(this.style,"strokeWidth",1);"call"==f&&a.setStrokeWidth(4*g);a.translate(d,e);a.begin();a.moveTo(0,.5*c);a.lineTo(.25*b,0);a.lineTo(.75*b,0);a.lineTo(b,.5*c);a.lineTo(.75*b,c);a.lineTo(.25*b,c);a.close();a.fillAndStroke();"call"==f&&a.setStrokeWidth(g);mxUtils.getValue(this.style,"isLoopSub",!1)&&(a.translate(.5*b-7,c-14),a.rect(0,0,14,14),a.stroke(),
-a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke())};mxCellRenderer.registerShape(mxShapeBpmn2Conversation.prototype.cst.CONVERSATION,mxShapeBpmn2Conversation);function mxShapeEmoji(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEmoji,mxShape);mxShapeEmoji.prototype.EMOJI_NAME="emoji";
+a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke())};mxCellRenderer.registerShape(mxShapeBpmn2Conversation.prototype.cst.CONVERSATION,mxShapeBpmn2Conversation);function mxShapeBpmn2Conversation2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBpmn2Conversation2,mxHexagon);
+mxShapeBpmn2Conversation2.prototype.customProperties=[{name:"bpmnConversationType",dispName:"Type",defVal:"conv",type:"enum",enumList:[{val:"conv",dispName:"Conversation"},{val:"call",dispName:"Call"}]},{name:"isLoopSub",dispName:"Subprocess",type:"bool"}];mxShapeBpmn2Conversation2.prototype.cst={CONVERSATION:"mxgraph.bpmn.conversation2"};
+mxShapeBpmn2Conversation2.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"bpmnConversationType","conv"),g=mxUtils.getValue(this.style,"strokeWidth",1);"call"==f&&a.setStrokeWidth(4*g);a.translate(d,e);a.begin();a.moveTo(0,.5*c);a.lineTo(.25*b,0);a.lineTo(.75*b,0);a.lineTo(b,.5*c);a.lineTo(.75*b,c);a.lineTo(.25*b,c);a.close();a.fillAndStroke();a.setStrokeWidth(1);mxUtils.getValue(this.style,"isLoopSub",!1)&&("call"==f?a.translate(.5*b-7,c-14-2*g):a.translate(.5*b-
+7,c-14-.5*g),a.rect(0,0,14,14),a.stroke(),a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke())};mxCellRenderer.registerShape(mxShapeBpmn2Conversation2.prototype.cst.CONVERSATION,mxShapeBpmn2Conversation2);function mxShapeEmoji(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEmoji,mxShape);mxShapeEmoji.prototype.EMOJI_NAME="emoji";
mxShapeEmoji.prototype.emojis={grinning_face:"\ud83d\ude00",grinning_face_with_big_eyes:"\ud83d\ude03",grinning_face_with_smiling_eyes:"\ud83d\ude04",beaming_face_with_smiling_eyes:"\ud83d\ude01",grinning_squinting_face:"\ud83d\ude06",grinning_face_with_sweat:"\ud83d\ude05",rolling_on_the_floor_laughing:"\ud83e\udd23",face_with_tears_of_joy:"\ud83d\ude02",slightly_smiling_face:"\ud83d\ude42",upside_down_face:"\ud83d\ude43",melting_face:"\ud83e\udee0",winking_face:"\ud83d\ude09",smiling_face_with_smiling_eyes:"\ud83d\ude0a",
smiling_face_with_halo:"\ud83d\ude07",smiling_face_with_hearts:"\ud83e\udd70",smiling_face_with_heart_eyes:"\ud83d\ude0d",star_struck:"\ud83e\udd29",face_blowing_a_kiss:"\ud83d\ude18",kissing_face:"\ud83d\ude17",smiling_face:"☺️",kissing_face_with_closed_eyes:"\ud83d\ude1a",kissing_face_with_smiling_eyes:"\ud83d\ude19",smiling_face_with_tear:"\ud83e\udd72",face_savoring_food:"\ud83d\ude0b",face_with_tongue:"\ud83d\ude1b",winking_face_with_tongue:"\ud83d\ude1c",zany_face:"\ud83e\udd2a",squinting_face_with_tongue:"\ud83d\ude1d",
money_mouth_face:"\ud83e\udd11",smiling_face_with_open_hands:"\ud83e\udd17",face_with_hand_over_mouth:"\ud83e\udd2d",face_with_open_eyes_and_hand_over_mouth:"\ud83e\udee2",face_with_peeking_eye:"\ud83e\udee3",shushing_face:"\ud83e\udd2b",thinking_face:"\ud83e\udd14",saluting_face:"\ud83e\udee1",zipper_mouth_face:"\ud83e\udd10",face_with_raised_eyebrow:"\ud83e\udd28",neutral_face:"\ud83d\ude10",expressionless_face:"\ud83d\ude11",face_without_mouth:"\ud83d\ude36",dotted_line_face:"\ud83e\udee5",face_in_clouds:"\ud83d\ude36‍\ud83c\udf2b️",
diff --git a/src/main/webapp/js/viewer-static.min.js b/src/main/webapp/js/viewer-static.min.js
index fc072364b..0573bc2e9 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.0.6",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.0.7",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||
@@ -268,15 +268,16 @@ function(){this.scrollbars=mxUtils.hasScrollbars(a.container);this.scrollLeft=a.
this.getDy())}),this.delay)});this.isActive=function(){return active};this.getDx=function(){return Math.round(this.tdx)};this.getDy=function(){return Math.round(this.tdy)};this.start=function(){this.t0x=a.view.translate.x;this.t0y=a.view.translate.y;this.active=!0};this.panTo=function(c,d,e,f){this.active||this.start();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop;var g=a.container;this.dx=c+(null!=e?e:0)-g.scrollLeft-g.clientWidth;this.dx=0>this.dx&&Math.abs(this.dx)<
this.border?this.border+this.dx:this.handleMouseOut?Math.max(this.dx,0):0;0==this.dx&&(this.dx=c-g.scrollLeft,this.dx=0<this.dx&&this.dx<this.border?this.dx-this.border:this.handleMouseOut?Math.min(0,this.dx):0);this.dy=d+(null!=f?f:0)-g.scrollTop-g.clientHeight;this.dy=0>this.dy&&Math.abs(this.dy)<this.border?this.border+this.dy:this.handleMouseOut?Math.max(this.dy,0):0;0==this.dy&&(this.dy=d-g.scrollTop,this.dy=0<this.dy&&this.dy<this.border?this.dy-this.border:this.handleMouseOut?Math.min(0,this.dy):
0);0!=this.dx||0!=this.dy?(this.dx*=this.damper,this.dy*=this.damper,null==this.thread&&(this.thread=b())):null!=this.thread&&(window.clearInterval(this.thread),this.thread=null)};this.stop=function(){if(this.active)if(this.active=!1,null!=this.thread&&(window.clearInterval(this.thread),this.thread=null),this.tdy=this.tdx=0,this.scrollbars)a.panDx=0,a.panDy=0,a.fireEvent(new mxEventObject(mxEvent.PAN));else{var c=a.panDx,d=a.panDy;if(0!=c||0!=d)a.panGraph(0,0),a.view.setTranslate(this.t0x+c/a.view.scale,
-this.t0y+d/a.view.scale)}};this.destroy=function(){a.removeMouseListener(this.mouseListener);mxEvent.removeListener(document,"mouseup",this.mouseUpListener)}}mxPanningManager.prototype.damper=1/6;mxPanningManager.prototype.delay=10;mxPanningManager.prototype.handleMouseOut=!0;mxPanningManager.prototype.border=0;function mxPopupMenu(a){this.factoryMethod=a;null!=a&&this.init()}mxPopupMenu.prototype=new mxEventSource;mxPopupMenu.prototype.constructor=mxPopupMenu;
-mxPopupMenu.prototype.submenuImage=mxClient.imageBasePath+"/submenu.gif";mxPopupMenu.prototype.zIndex=10006;mxPopupMenu.prototype.factoryMethod=null;mxPopupMenu.prototype.useLeftButtonForPopup=!1;mxPopupMenu.prototype.enabled=!0;mxPopupMenu.prototype.itemCount=0;mxPopupMenu.prototype.autoExpand=!1;mxPopupMenu.prototype.smartSeparators=!1;mxPopupMenu.prototype.labels=!0;
+this.t0y+d/a.view.scale)}};this.destroy=function(){a.removeMouseListener(this.mouseListener);mxEvent.removeListener(document,"mouseup",this.mouseUpListener)}}mxPanningManager.prototype.damper=1/6;mxPanningManager.prototype.delay=10;mxPanningManager.prototype.handleMouseOut=!0;mxPanningManager.prototype.border=0;function mxPopupMenu(a){this.factoryMethod=a;null!=a&&this.init()}mxPopupMenu.prototype=new mxEventSource;mxPopupMenu.prototype.constructor=mxPopupMenu;mxPopupMenu.prototype.submenuImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDAwLTI4MHYtNDAwbDIwMCAyMDAtMjAwIDIwMFoiLz48L3N2Zz4=";
+mxPopupMenu.prototype.zIndex=10006;mxPopupMenu.prototype.factoryMethod=null;mxPopupMenu.prototype.useLeftButtonForPopup=!1;mxPopupMenu.prototype.enabled=!0;mxPopupMenu.prototype.itemCount=0;mxPopupMenu.prototype.autoExpand=!1;mxPopupMenu.prototype.smartSeparators=!1;mxPopupMenu.prototype.labels=!0;
mxPopupMenu.prototype.init=function(){this.table=document.createElement("table");this.table.className="mxPopupMenu";this.tbody=document.createElement("tbody");this.table.appendChild(this.tbody);this.div=document.createElement("div");this.div.className="mxPopupMenu";this.div.style.display="inline";this.div.style.zIndex=this.zIndex;this.div.appendChild(this.table);mxEvent.disableContextMenu(this.div)};mxPopupMenu.prototype.isEnabled=function(){return this.enabled};
mxPopupMenu.prototype.setEnabled=function(a){this.enabled=a};mxPopupMenu.prototype.isPopupTrigger=function(a){return a.isPopupTrigger()||this.useLeftButtonForPopup&&mxEvent.isLeftMouseButton(a.getEvent())};
mxPopupMenu.prototype.addItem=function(a,b,c,d,e,f,g,k){d=d||this;this.itemCount++;d.willAddSeparator&&(d.containsItems&&this.addSeparator(d,!0),d.willAddSeparator=!1);d.containsItems=!0;var l=document.createElement("tr");l.className="mxPopupMenuItem";var m=document.createElement("td");m.className="mxPopupMenuIcon";null!=b?(e=document.createElement("img"),e.src=b,m.appendChild(e)):null!=e&&(b=document.createElement("div"),b.className=e,m.appendChild(b));l.appendChild(m);this.labels&&(m=document.createElement("td"),
m.className="mxPopupMenuItem"+(null==f||f?"":" mxDisabled"),mxUtils.write(m,a),m.align="left",l.appendChild(m),a=document.createElement("td"),a.className="mxPopupMenuItem"+(null==f||f?"":" mxDisabled"),a.style.paddingRight="6px",a.style.textAlign="right",l.appendChild(a),null==d.div&&this.createSubmenu(d));d.tbody.appendChild(l);if(0!=g&&0!=f){var n=null;mxEvent.addGestureListeners(l,mxUtils.bind(this,function(p){this.eventReceiver=l;d.activeRow!=l&&d.activeRow!=d&&(null!=d.activeRow&&null!=d.activeRow.div.parentNode&&
this.hideSubmenu(d),null!=l.div&&(this.showSubmenu(d,l),d.activeRow=l));null!=document.selection&&8==document.documentMode&&(n=document.selection.createRange());mxEvent.consume(p)}),mxUtils.bind(this,function(p){d.activeRow!=l&&d.activeRow!=d&&(null!=d.activeRow&&null!=d.activeRow.div.parentNode&&this.hideSubmenu(d),this.autoExpand&&null!=l.div&&(this.showSubmenu(d,l),d.activeRow=l));k||(l.className="mxPopupMenuItemHover")}),mxUtils.bind(this,function(p){if(this.eventReceiver==l){d.activeRow!=l&&
-this.hideMenu();if(null!=n){try{n.select()}catch(q){}n=null}null!=c&&c(p)}this.eventReceiver=null;mxEvent.consume(p)}));k||mxEvent.addListener(l,"mouseout",mxUtils.bind(this,function(p){l.className="mxPopupMenuItem"}))}return l};mxPopupMenu.prototype.addCheckmark=function(a,b){a=a.firstChild.nextSibling;a.style.backgroundImage="url('"+b+"')";a.style.backgroundRepeat="no-repeat";a.style.backgroundPosition="2px 50%"};
-mxPopupMenu.prototype.createSubmenu=function(a){a.table=document.createElement("table");a.table.className="mxPopupMenu";a.tbody=document.createElement("tbody");a.table.appendChild(a.tbody);a.div=document.createElement("div");a.div.className="mxPopupMenu";a.div.style.position="absolute";a.div.style.display="inline";a.div.style.zIndex=this.zIndex;a.div.appendChild(a.table);var b=document.createElement("img");b.setAttribute("src",this.submenuImage);td=a.firstChild.nextSibling.nextSibling;td.appendChild(b)};
+this.hideMenu();if(null!=n){try{n.select()}catch(q){}n=null}null!=c&&c(p)}this.eventReceiver=null;mxEvent.consume(p)}));k||mxEvent.addListener(l,"mouseout",mxUtils.bind(this,function(p){l.className="mxPopupMenuItem"}))}return l};mxPopupMenu.prototype.addCheckmark=function(a,b){a=this.addImage(a.firstChild.nextSibling,b);a.style.marginTop="-2px";a.style.left="6px"};
+mxPopupMenu.prototype.addImage=function(a,b){var c=document.createElement("div");c.style.position="absolute";c.style.display="inline-block";c.style.backgroundRepeat="no-repeat";c.style.backgroundPosition="center center";c.style.backgroundImage="url("+b+")";c.style.backgroundSize="22px";c.style.height="22px";c.style.width="22px";a.appendChild(c);return c};
+mxPopupMenu.prototype.createSubmenu=function(a){a.table=document.createElement("table");a.table.className="mxPopupMenu";a.tbody=document.createElement("tbody");a.table.appendChild(a.tbody);a.div=document.createElement("div");a.div.className="mxPopupMenu";a.div.style.position="absolute";a.div.style.display="inline";a.div.style.zIndex=this.zIndex;a.div.appendChild(a.table);a=this.addImage(a.firstChild.nextSibling.nextSibling,this.submenuImage);a.style.marginLeft="-18px";a.style.marginTop="-11px"};
mxPopupMenu.prototype.showSubmenu=function(a,b){if(null!=b.div){b.div.style.left=a.div.offsetLeft+b.offsetLeft+b.offsetWidth-1+"px";b.div.style.top=a.div.offsetTop+b.offsetTop+"px";document.body.appendChild(b.div);var c=parseInt(b.div.offsetLeft),d=parseInt(b.div.offsetWidth),e=mxUtils.getDocumentScrollOrigin(document),f=document.documentElement;c+d>e.x+(document.body.clientWidth||f.clientWidth)&&(b.div.style.left=Math.max(0,a.div.offsetLeft-d+16)+"px");b.div.style.overflowY="auto";b.div.style.overflowX=
"hidden";b.div.style.maxHeight=Math.max(document.body.clientHeight,document.documentElement.clientHeight)-10+"px";mxUtils.fit(b.div)}};
mxPopupMenu.prototype.addSeparator=function(a,b){a=a||this;if(this.smartSeparators&&!b)a.willAddSeparator=!0;else if(null!=a.tbody){a.willAddSeparator=!1;b=document.createElement("tr");var c=document.createElement("td");c.className="mxPopupMenuIcon";c.style.padding="0 0 0 0px";b.appendChild(c);c=document.createElement("td");c.style.padding="0 0 0 0px";c.setAttribute("colSpan","2");var d=document.createElement("hr");d.setAttribute("size","1");c.appendChild(d);b.appendChild(c);a.tbody.appendChild(b)}};
@@ -1874,8 +1875,8 @@ var mxStylesheetCodec=mxCodecRegistry.register(function(){var a=new mxObjectCode
function(b,c){b=typeof c;"function"==b?c=mxStyleRegistry.getName(c):"object"==b&&(c=null);return c};a.decode=function(b,c,d){d=d||new this.template.constructor;var e=c.getAttribute("id");null!=e&&(b.objects[e]=d);for(c=c.firstChild;null!=c;){if(!this.processInclude(b,c,d)&&"add"==c.nodeName&&(e=c.getAttribute("as"),null!=e)){var f=c.getAttribute("extend"),g=null!=f?mxUtils.clone(d.styles[f]):null;null==g&&(null!=f&&mxLog.warn("mxStylesheetCodec.decode: stylesheet "+f+" not found to extend"),g={});
for(f=c.firstChild;null!=f;){if(f.nodeType==mxConstants.NODETYPE_ELEMENT){var k=f.getAttribute("as");if("add"==f.nodeName){var l=mxUtils.getTextContent(f);null!=l&&0<l.length&&mxStylesheetCodec.allowEval?l=mxUtils.eval(l):(l=f.getAttribute("value"),mxUtils.isNumeric(l)&&(l=parseFloat(l)));null!=l&&(g[k]=l)}else"remove"==f.nodeName&&delete g[k]}f=f.nextSibling}d.putCellStyle(e,g)}c=c.nextSibling}return d};return a}());mxStylesheetCodec.allowEval=!1;
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(b){return b.raw=b};$jscomp.createTemplateTagFirstArgWithRaw=function(b,e){b.raw=e;return b};$jscomp.arrayIteratorImpl=function(b){var e=0;return function(){return e<b.length?{done:!1,value:b[e++]}:{done:!0}}};$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.makeIterator=function(b){var e="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];return e?e.call(b):$jscomp.arrayIterator(b)};
-Editor=function(b,e,g,m,v){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=m||this.createGraph(e,g);this.editable=null!=v?v:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(p,B){this.status=p;this.statusFunction=B;this.fireEvent(new mxEventObject("statusChanged"))};
-this.getStatus=function(){return this.status};this.graphChangeListener=function(p,B){p=null!=B?B.getProperty("edit"):null;null!=p&&p.ignoreEdit||this.setModified(!0)};this.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.graphChangeListener.apply(this,arguments)}));this.graph.resetViewOnRootChange=!1;this.init()};mxConstants.POINTS=1;mxConstants.MILLIMETERS=2;mxConstants.INCHES=3;mxConstants.METERS=4;mxConstants.PIXELS_PER_MM=3.937;mxConstants.PIXELS_PER_INCH=100;
+Editor=function(b,e,g,m,v){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=m||this.createGraph(e,g);this.editable=null!=v?v:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(p,A){this.status=p;this.statusFunction=A;this.fireEvent(new mxEventObject("statusChanged"))};
+this.getStatus=function(){return this.status};this.graphChangeListener=function(p,A){p=null!=A?A.getProperty("edit"):null;null!=p&&p.ignoreEdit||this.setModified(!0)};this.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.graphChangeListener.apply(this,arguments)}));this.graph.resetViewOnRootChange=!1;this.init()};mxConstants.POINTS=1;mxConstants.MILLIMETERS=2;mxConstants.INCHES=3;mxConstants.METERS=4;mxConstants.PIXELS_PER_MM=3.937;mxConstants.PIXELS_PER_INCH=100;
Editor.pageCounter=0;(function(){try{for(var b=window;null!=b.opener&&"undefined"!==typeof b.opener.Editor&&!isNaN(b.opener.Editor.pageCounter)&&b.opener!=b;)b=b.opener;null!=b&&(b.Editor.pageCounter++,Editor.pageCounter=b.Editor.pageCounter)}catch(e){}})();Editor.defaultHtmlFont='-apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, ui-sans-serif, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"';Editor.useLocalStorage="undefined"!=typeof Storage&&mxClient.IS_IOS;
Editor.smallScreenWidth=1024;Editor.helpImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDc4LTI0MHEyMSAwIDM1LjUtMTQuNVQ1MjgtMjkwcTAtMjEtMTQuNS0zNS41VDQ3OC0zNDBxLTIxIDAtMzUuNSAxNC41VDQyOC0yOTBxMCAyMSAxNC41IDM1LjVUNDc4LTI0MFptLTM2LTE1NGg3NHEwLTMzIDcuNS01MnQ0Mi41LTUycTI2LTI2IDQxLTQ5LjV0MTUtNTYuNXEwLTU2LTQxLTg2dC05Ny0zMHEtNTcgMC05Mi41IDMwVDM0Mi02MThsNjYgMjZxNS0xOCAyMi41LTM5dDUzLjUtMjFxMzIgMCA0OCAxNy41dDE2IDM4LjVxMCAyMC0xMiAzNy41VDUwNi01MjZxLTQ0IDM5LTU0IDU5dC0xMCA3M1ptMzggMzE0cS04MyAwLTE1Ni0zMS41VDE5Ny0xOTdxLTU0LTU0LTg1LjUtMTI3VDgwLTQ4MHEwLTgzIDMxLjUtMTU2VDE5Ny03NjNxNTQtNTQgMTI3LTg1LjVUNDgwLTg4MHE4MyAwIDE1NiAzMS41VDc2My03NjNxNTQgNTQgODUuNSAxMjdUODgwLTQ4MHEwIDgzLTMxLjUgMTU2VDc2My0xOTdxLTU0IDU0LTEyNyA4NS41VDQ4MC04MFptMC04MHExMzQgMCAyMjctOTN0OTMtMjI3cTAtMTM0LTkzLTIyN3QtMjI3LTkzcS0xMzQgMC0yMjcgOTN0LTkzIDIyN3EwIDEzNCA5MyAyMjd0MjI3IDkzWm0wLTMyMFoiLz48L3N2Zz4=";
Editor.menuImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjRweCIgZmlsbD0iIzAwMDAwMCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTMgMThoMTh2LTJIM3Yyem0wLTVoMTh2LTJIM3Yyem0wLTd2MmgxOFY2SDN6Ii8+PC9zdmc+";Editor.moveImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI4cHgiIGhlaWdodD0iMjhweCI+PGc+PC9nPjxnPjxnPjxnPjxwYXRoIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIuNCwyLjQpc2NhbGUoMC44KXJvdGF0ZSg0NSwxMiwxMikiIHN0cm9rZT0iIzI5YjZmMiIgZmlsbD0iIzI5YjZmMiIgZD0iTTE1LDNsMi4zLDIuM2wtMi44OSwyLjg3bDEuNDIsMS40MkwxOC43LDYuN0wyMSw5VjNIMTV6IE0zLDlsMi4zLTIuM2wyLjg3LDIuODlsMS40Mi0xLjQyTDYuNyw1LjNMOSwzSDNWOXogTTksMjEgbC0yLjMtMi4zbDIuODktMi44N2wtMS40Mi0xLjQyTDUuMywxNy4zTDMsMTV2Nkg5eiBNMjEsMTVsLTIuMywyLjNsLTIuODctMi44OWwtMS40MiwxLjQybDIuODksMi44N0wxNSwyMWg2VjE1eiIvPjwvZz48L2c+PC9nPjwvc3ZnPgo=";
@@ -1908,33 +1909,43 @@ Editor.colorDropperImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3
Editor.magnifyImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik03ODQtMTIwIDUzMi0zNzJxLTMwIDI0LTY5IDM4dC04MyAxNHEtMTA5IDAtMTg0LjUtNzUuNVQxMjAtNTgwcTAtMTA5IDc1LjUtMTg0LjVUMzgwLTg0MHExMDkgMCAxODQuNSA3NS41VDY0MC01ODBxMCA0NC0xNCA4M3QtMzggNjlsMjUyIDI1Mi01NiA1NlpNMzgwLTQwMHE3NSAwIDEyNy41LTUyLjVUNTYwLTU4MHEwLTc1LTUyLjUtMTI3LjVUMzgwLTc2MHEtNzUgMC0xMjcuNSA1Mi41VDIwMC01ODBxMCA3NSA1Mi41IDEyNy41VDM4MC00MDBaIi8+PC9zdmc+";
Editor.sendImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik0xMjAtMTYwdi02NDBsNzYwIDMyMC03NjAgMzIwWm04MC0xMjAgNDc0LTIwMC00NzQtMjAwdjE0MGwyNDAgNjAtMjQwIDYwdjE0MFptMCAwdi00MDAgNDAwWiIvPjwvc3ZnPg==";Editor.sparklesImage="data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyB3aWR0aD0iODAwcHgiIGhlaWdodD0iODAwcHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0iI2ZjZmY0NyIgZGF0YS1kYXJrcmVhZGVyLWlubGluZS1maWxsPSIiIHN0eWxlPSItLWRhcmtyZWFkZXItaW5saW5lLWZpbGw6ICNkNmQ4NTA7IC0tZGFya3JlYWRlci1pbmxpbmUtc3Ryb2tlOiAjZDZkODUwOyIgc3Ryb2tlPSIjZmNmZjQ3IiBkYXRhLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZT0iIj4KDTxnIGlkPSJTVkdSZXBvX2JnQ2FycmllciIgc3Ryb2tlLXdpZHRoPSIwIi8+Cg08ZyBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KDTxnIGlkPSJTVkdSZXBvX2ljb25DYXJyaWVyIj4KDTxwYXRoIGQ9Ik0yNTkuOTIsMjYyLjkxLDIxNi40LDE0OS43N2E5LDksMCwwLDAtMTYuOCwwTDE1Ni4wOCwyNjIuOTFhOSw5LDAsMCwxLTUuMTcsNS4xN0wzNy43NywzMTEuNmE5LDksMCwwLDAsMCwxNi44bDExMy4xNCw0My41MmE5LDksMCwwLDEsNS4xNyw1LjE3TDE5OS42LDQ5MC4yM2E5LDksMCwwLDAsMTYuOCwwbDQzLjUyLTExMy4xNGE5LDksMCwwLDEsNS4xNy01LjE3TDM3OC4yMywzMjguNGE5LDksMCwwLDAsMC0xNi44TDI2NS4wOSwyNjguMDhBOSw5LDAsMCwxLDI1OS45MiwyNjIuOTFaIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxOS45NjgiIGRhdGEtZGFya3JlYWRlci1pbmxpbmUtc3Ryb2tlPSIiIHN0eWxlPSItLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZTogIzE4MWExYjsiLz4KDTxwb2x5Z29uIHBvaW50cz0iMTA4IDY4IDg4IDE2IDY4IDY4IDE2IDg4IDY4IDEwOCA4OCAxNjAgMTA4IDEwOCAxNjAgODggMTA4IDY4IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxOS45NjgiIGRhdGEtZGFya3JlYWRlci1pbmxpbmUtc3Ryb2tlPSIiIHN0eWxlPSItLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZTogIzE4MWExYjsiLz4KDTxwb2x5Z29uIHBvaW50cz0iNDI2LjY3IDExNy4zMyA0MDAgNDggMzczLjMzIDExNy4zMyAzMDQgMTQ0IDM3My4zMyAxNzAuNjcgNDAwIDI0MCA0MjYuNjcgMTcwLjY3IDQ5NiAxNDQgNDI2LjY3IDExNy4zMyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMTkuOTY4IiBkYXRhLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZT0iIiBzdHlsZT0iLS1kYXJrcmVhZGVyLWlubGluZS1zdHJva2U6ICMxODFhMWI7Ii8+Cg08L2c+Cg08L3N2Zz4=";
Editor.arrowRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNNDAwLTI4MHYtNDAwbDIwMCAyMDAtMjAwIDIwMFoiLz48L3N2Zz4=";Editor.arrowDownImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNNDgwLTM2MCAyODAtNTYwaDQwMEw0ODAtMzYwWiIvPjwvc3ZnPg==";
-Editor.refreshImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDgwLTE2MHEtMTM0IDAtMjI3LTkzdC05My0yMjdxMC0xMzQgOTMtMjI3dDIyNy05M3E2OSAwIDEzMiAyOC41VDcyMC02OTB2LTExMGg4MHYyODBINTIwdi04MGgxNjhxLTMyLTU2LTg3LjUtODhUNDgwLTcyMHEtMTAwIDAtMTcwIDcwdC03MCAxNzBxMCAxMDAgNzAgMTcwdDE3MCA3MHE3NyAwIDEzOS00NHQ4Ny0xMTZoODRxLTI4IDEwNi0xMTQgMTczdC0xOTYgNjdaIi8+PC9zdmc+";
-Editor.checkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzgyLTI0MCAxNTQtNDY4bDU3LTU3IDE3MSAxNzEgMzY3LTM2NyA1NyA1Ny00MjQgNDI0WiIvPjwvc3ZnPg==";Editor.boldImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjcyLTIwMHYtNTYwaDIyMXE2NSAwIDEyMCA0MHQ1NSAxMTFxMCA1MS0yMyA3OC41VDYwMi00OTFxMjUgMTEgNTUuNSA0MXQzMC41IDkwcTAgODktNjUgMTI0LjVUNTAxLTIwMEgyNzJabTEyMS0xMTJoMTA0cTQ4IDAgNTguNS0yNC41VDU2Ni0zNzJxMC0xMS0xMC41LTM1LjVUNDk0LTQzMkgzOTN2MTIwWm0wLTIyOGg5M3EzMyAwIDQ4LTE3dDE1LTM4cTAtMjQtMTctMzl0LTQ0LTE1aC05NXYxMDlaIi8+PC9zdmc+";
+Editor.arrowUpImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJtMjgwLTQwMCAyMDAtMjAwIDIwMCAyMDBIMjgwWiIvPjwvc3ZnPg==";Editor.refreshImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDgwLTE2MHEtMTM0IDAtMjI3LTkzdC05My0yMjdxMC0xMzQgOTMtMjI3dDIyNy05M3E2OSAwIDEzMiAyOC41VDcyMC02OTB2LTExMGg4MHYyODBINTIwdi04MGgxNjhxLTMyLTU2LTg3LjUtODhUNDgwLTcyMHEtMTAwIDAtMTcwIDcwdC03MCAxNzBxMCAxMDAgNzAgMTcwdDE3MCA3MHE3NyAwIDEzOS00NHQ4Ny0xMTZoODRxLTI4IDEwNi0xMTQgMTczdC0xOTYgNjdaIi8+PC9zdmc+";
+Editor.checkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzgyLTI0MCAxNTQtNDY4bDU3LTU3IDE3MSAxNzEgMzY3LTM2NyA1NyA1Ny00MjQgNDI0WiIvPjwvc3ZnPg==";Editor.dockRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNTYwcTAtMzMgMjMuNS01Ni41VDIwMC04NDBoNTYwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NTYwcTAgMzMtMjMuNSA1Ni41VDc2MC0xMjBIMjAwWm0xMjAtODB2LTU2MEgyMDB2NTYwaDEyMFptODAgMGgzNjB2LTU2MEg0MDB2NTYwWm0tODAgMEgyMDBoMTIwWiIvPjwvc3ZnPg==";
+Editor.toFrontImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzYwLTI4MHEtMzMgMC01Ni41LTIzLjVUMjgwLTM2MHYtNDAwcTAtMzMgMjMuNS01Ni41VDM2MC04NDBoNDAwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NDAwcTAgMzMtMjMuNSA1Ni41VDc2MC0yODBIMzYwWm0wLTgwaDQwMHYtNDAwSDM2MHY0MDBaTTIwMC0yMDB2ODBxLTMzIDAtNTYuNS0yMy41VDEyMC0yMDBoODBabS04MC04MHYtODBoODB2ODBoLTgwWm0wLTE2MHYtODBoODB2ODBoLTgwWm0wLTE2MHYtODBoODB2ODBoLTgwWm0xNjAgNDgwdi04MGg4MHY4MGgtODBabTE2MCAwdi04MGg4MHY4MGgtODBabTE2MCAwdi04MGg4MHY4MGgtODBaIi8+PC9zdmc+";
+Editor.toBackImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNDgwaDgwdjQ4MGg0ODB2ODBIMjAwWm0xNjAtMjQwdjgwcS0zMyAwLTU2LjUtMjMuNVQyODAtMzYwaDgwWm0tODAtODB2LTgwaDgwdjgwaC04MFptMC0xNjB2LTgwaDgwdjgwaC04MFptODAtMTYwaC04MHEwLTMzIDIzLjUtNTYuNVQzNjAtODQwdjgwWm04MCA0ODB2LTgwaDgwdjgwaC04MFptMC00ODB2LTgwaDgwdjgwaC04MFptMTYwIDB2LTgwaDgwdjgwaC04MFptMCA0ODB2LTgwaDgwdjgwaC04MFptMTYwLTQ4MHYtODBxMzMgMCA1Ni41IDIzLjVUODQwLTc2MGgtODBabTAgNDAwaDgwcTAgMzMtMjMuNSA1Ni41VDc2MC0yODB2LTgwWm0wLTgwdi04MGg4MHY4MGgtODBabTAtMTYwdi04MGg4MHY4MGgtODBaIi8+PC9zdmc+";
+Editor.fillColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJtMjQ3LTkwNCA1Ny01NiAzNDMgMzQzcTIzIDIzIDIzIDU3dC0yMyA1N0w0NTctMzEzcS0yMyAyMy01NyAyM3QtNTctMjNMMTUzLTUwM3EtMjMtMjMtMjMtNTd0MjMtNTdsMTkwLTE5MS05Ni05NlptMTUzIDE1M0wyMDktNTYwaDM4Mkw0MDAtNzUxWm0zNjAgNDcxcS0zMyAwLTU2LjUtMjMuNVQ2ODAtMzYwcTAtMjEgMTIuNS00NXQyNy41LTQ1cTktMTIgMTktMjV0MjEtMjVxMTEgMTIgMjEgMjV0MTkgMjVxMTUgMjEgMjcuNSA0NXQxMi41IDQ1cTAgMzMtMjMuNSA1Ni41VDc2MC0yODBaTTgwIDB2LTE2MGg4MDBWMEg4MFoiLz48L3N2Zz4=";
+Editor.strokeColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAgMHYtMTYwaDgwMFYwSDgwWm0xNjAtMzIwaDU2bDMxMi0zMTEtMjktMjktMjgtMjgtMzExIDMxMnY1NlptLTgwIDgwdi0xNzBsNDQ4LTQ0N3ExMS0xMSAyNS41LTE3dDMwLjUtNnExNiAwIDMxIDZ0MjcgMThsNTUgNTZxMTIgMTEgMTcuNSAyNnQ1LjUgMzFxMCAxNS01LjUgMjkuNVQ3NzctNjg3TDMzMC0yNDBIMTYwWm01NjAtNTA0LTU2LTU2IDU2IDU2Wk02MDgtNjMxbC0yOS0yOS0yOC0yOCA1NyA1N1oiLz48L3N2Zz4=";
+Editor.fontColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAgMHYtMTYwaDgwMFYwSDgwWm0xNDAtMjgwIDIxMC01NjBoMTAwbDIxMCA1NjBoLTk2bC01MC0xNDRIMzY4bC01MiAxNDRoLTk2Wm0xNzYtMjI0aDE2OGwtODItMjMyaC00bC04MiAyMzJaIi8+PC9zdmc+";Editor.backgroundColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAgMHYtMTYwaDgwMFYwSDgwWm01MDQtNDgwTDQ4MC01ODQgMzIwLTQyNGwxMDMgMTA0IDE2MS0xNjBabS00Ny0xNjAgMTAzIDEwMyAxNjAtMTU5LTEwNC0xMDQtMTU5IDE2MFptLTg0LTI5IDIxNiAyMTYtMTg5IDE5MHEtMjQgMjQtNTYuNSAyNFQzNjctMjYzbC0yNyAyM0gxNDBsMTI2LTEyNXEtMjQtMjQtMjUtNTcuNXQyMy01Ny41bDE4OS0xODlabTAgMCAxODctMTg3cTI0LTI0IDU2LjUtMjR0NTYuNSAyNGwxMDQgMTAzcTI0IDI0IDI0IDU2LjVUODU3LTY0MEw2NjktNDUzIDQ1My02NjlaIi8+PC9zdmc+";
+Editor.shadowImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTgwcS0zMyAwLTU2LjUtMjMuNVQ4MC0xNjB2LTQ4MHEwLTMzIDIzLjUtNTYuNVQxNjAtNzIwaDgwdi04MHEwLTMzIDIzLjUtNTYuNVQzMjAtODgwaDQ4MHEzMyAwIDU2LjUgMjMuNVQ4ODAtODAwdjQ4MHEwIDMzLTIzLjUgNTYuNVQ4MDAtMjQwaC04MHY4MHEwIDMzLTIzLjUgNTYuNVQ2NDAtODBIMTYwWm0xNjAtMjQwaDQ4MHYtNDgwSDMyMHY0ODBaIi8+PC9zdmc+";
+Editor.boldImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjcyLTIwMHYtNTYwaDIyMXE2NSAwIDEyMCA0MHQ1NSAxMTFxMCA1MS0yMyA3OC41VDYwMi00OTFxMjUgMTEgNTUuNSA0MXQzMC41IDkwcTAgODktNjUgMTI0LjVUNTAxLTIwMEgyNzJabTEyMS0xMTJoMTA0cTQ4IDAgNTguNS0yNC41VDU2Ni0zNzJxMC0xMS0xMC41LTM1LjVUNDk0LTQzMkgzOTN2MTIwWm0wLTIyOGg5M3EzMyAwIDQ4LTE3dDE1LTM4cTAtMjQtMTctMzl0LTQ0LTE1aC05NXYxMDlaIi8+PC9zdmc+";
Editor.italicImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTIwMHYtMTAwaDE2MGwxMjAtMzYwSDMyMHYtMTAwaDQwMHYxMDBINTgwTDQ2MC0zMDBoMTQwdjEwMEgyMDBaIi8+PC9zdmc+";Editor.underlineImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHYtODBoNTYwdjgwSDIwMFptMjgwLTE2MHEtMTAxIDAtMTU3LTYzdC01Ni0xNjd2LTMzMGgxMDN2MzM2cTAgNTYgMjggOTF0ODIgMzVxNTQgMCA4Mi0zNXQyOC05MXYtMzM2aDEwM3YzMzBxMCAxMDQtNTYgMTY3dC0xNTcgNjNaIi8+PC9zdmc+";
Editor.strikethroughImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDg2LTE2MHEtNzYgMC0xMzUtNDV0LTg1LTEyM2w4OC0zOHExNCA0OCA0OC41IDc5dDg1LjUgMzFxNDIgMCA3Ni0yMHQzNC02NHEwLTE4LTctMzN0LTE5LTI3aDExMnE1IDE0IDcuNSAyOC41VDY5NC0zNDBxMCA4Ni02MS41IDEzM1Q0ODYtMTYwWk04MC00ODB2LTgwaDgwMHY4MEg4MFptNDAyLTMyNnE2NiAwIDExNS41IDMyLjVUNjc0LTY3NGwtODggMzlxLTktMjktMzMuNS01MlQ0ODQtNzEwcS00MSAwLTY4IDE4LjVUMzg2LTY0MGgtOTZxMi02OSA1NC41LTExNy41VDQ4Mi04MDZaIi8+PC9zdmc+";
-Editor.verticalTextImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjQwLTI0MHYtMjAwcS02NiAwLTExMy00N1Q4MC02MDBxMC02NiA0Ny0xMTN0MTEzLTQ3aDMyMHY4MGgtODB2NDQwaC04MHYtNDQwaC04MHY0NDBoLTgwWm00ODAgODBMNTYwLTMyMGw1Ni01NiA2NCA2M3YtNDQ3aDgwdjQ0N2w2NC02NCA1NiA1Ny0xNjAgMTYwWk0yNDAtNTIwdi0xNjBxLTMzIDAtNTYuNSAyMy41VDE2MC02MDBxMCAzMyAyMy41IDU2LjVUMjQwLTUyMFptMC04MFoiLz48L3N2Zz4=";
-Editor.alignLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDQ4MHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNDgwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";Editor.alignCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";
-Editor.alignRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";Editor.alignJustifyImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";
-Editor.alignTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTc2MHYtODBoNjQwdjgwSDE2MFptMjgwIDY0MHYtNDA4TDMzNi00MjRsLTU2LTU2IDIwMC0yMDAgMjAwIDIwMC01NiA1Ni0xMDQtMTA0djQwOGgtODBaIi8+PC9zdmc+";Editor.alignMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0xNjhsLTY0IDY0LTU2LTU2IDE2MC0xNjAgMTYwIDE2MC01NiA1Ni02NC02NHYxNjhoLTgwWk0xNjAtNDQwdi04MGg2NDB2ODBIMTYwWm0zMjAtMTIwTDMyMC03MjBsNTYtNTYgNjQgNjR2LTE2OGg4MHYxNjhsNjQtNjQgNTYgNTYtMTYwIDE2MFoiLz48L3N2Zz4=";
-Editor.alignBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTEyMHYtODBoNjQwdjgwSDE2MFptMzIwLTE2MEwyODAtNDgwbDU2LTU2IDEwNCAxMDR2LTQwOGg4MHY0MDhsMTA0LTEwNCA1NiA1Ni0yMDAgMjAwWiIvPjwvc3ZnPg==";Editor.alignHorizontalLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwMGg4MHY4MDBIODBabTE2MC0yMDB2LTEyMGg0MDB2MTIwSDI0MFptMC0yODB2LTEyMGg2NDB2MTIwSDI0MFoiLz48L3N2Zz4=";
-Editor.alignHorizontalCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0yMDBIMjQwdi0xMjBoMjAwdi0xNjBIMTIwdi0xMjBoMzIwdi0yMDBoODB2MjAwaDMyMHYxMjBINTIwdjE2MGgyMDB2MTIwSDUyMHYyMDBoLTgwWiIvPjwvc3ZnPg==";Editor.alignHorizontalRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAwLTgwdi04MDBoODB2ODAwaC04MFpNMzIwLTI4MHYtMTIwaDQwMHYxMjBIMzIwWk04MC01NjB2LTEyMGg2NDB2MTIwSDgwWiIvPjwvc3ZnPg==";
-Editor.alignVerticalTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTgwdi02NDBoMTIwdjY0MEgyODBabTI4MC0yNDB2LTQwMGgxMjB2NDAwSDU2MFpNODAtODAwdi04MGg4MDB2ODBIODBaIi8+PC9zdmc+";Editor.alignVerticalMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTEyMHYtMzIwSDgwdi04MGgyMDB2LTMyMGgxMjB2MzIwaDE2MHYtMjAwaDEyMHYyMDBoMjAwdjgwSDY4MHYyMDBINTYwdi0yMDBINDAwdjMyMEgyODBaIi8+PC9zdmc+";
-Editor.alignVerticalBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwaDgwMHY4MEg4MFptMjAwLTE2MHYtNjQwaDEyMHY2NDBIMjgwWm0yODAgMHYtNDAwaDEyMHY0MDBINTYwWiIvPjwvc3ZnPg==";Editor.subscriptImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTE2MHYtODBxMC0xNyAxMS41LTI4LjVUODAwLTI4MGg4MHYtNDBINzYwdi00MGgxMjBxMTcgMCAyOC41IDExLjVUOTIwLTMyMHY0MHEwIDE3LTExLjUgMjguNVQ4ODAtMjQwaC04MHY0MGgxMjB2NDBINzYwWm0tNTI1LTgwIDE4NS0yOTEtMTcyLTI2OWgxMDZsMTI0IDIwMGg0bDEyMy0yMDBoMTA3TDUzOS01MzFsMTg2IDI5MUg2MThMNDgyLTQ1N2gtNEwzNDItMjQwSDIzNVoiLz48L3N2Zz4=";
+Editor.verticalTextImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTE2MGgtODB2LTUyOGwtNDIgNDItNTYtNTYgMTM4LTEzOCAxNDAgMTM4LTU4IDU2LTQyLTQydjUyOFpNNTYwLTI3NiAxMjAtNDQwdi04MGw0NDAtMTY0djc2bC0xMTIgMzh2MTc4bDExMiA0MHY3NlpNMzg0LTQxNHYtMTMybC0xODIgNjR2NGwxODIgNjRaIi8+PC9zdmc+";Editor.alignLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDQ4MHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNDgwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";
+Editor.alignCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";Editor.alignRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";
+Editor.alignJustifyImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";Editor.alignTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTc2MHYtODBoNjQwdjgwSDE2MFptMjgwIDY0MHYtNDA4TDMzNi00MjRsLTU2LTU2IDIwMC0yMDAgMjAwIDIwMC01NiA1Ni0xMDQtMTA0djQwOGgtODBaIi8+PC9zdmc+";
+Editor.alignMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0xNjhsLTY0IDY0LTU2LTU2IDE2MC0xNjAgMTYwIDE2MC01NiA1Ni02NC02NHYxNjhoLTgwWk0xNjAtNDQwdi04MGg2NDB2ODBIMTYwWm0zMjAtMTIwTDMyMC03MjBsNTYtNTYgNjQgNjR2LTE2OGg4MHYxNjhsNjQtNjQgNTYgNTYtMTYwIDE2MFoiLz48L3N2Zz4=";Editor.alignBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTEyMHYtODBoNjQwdjgwSDE2MFptMzIwLTE2MEwyODAtNDgwbDU2LTU2IDEwNCAxMDR2LTQwOGg4MHY0MDhsMTA0LTEwNCA1NiA1Ni0yMDAgMjAwWiIvPjwvc3ZnPg==";
+Editor.alignHorizontalLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwMGg4MHY4MDBIODBabTE2MC0yMDB2LTEyMGg0MDB2MTIwSDI0MFptMC0yODB2LTEyMGg2NDB2MTIwSDI0MFoiLz48L3N2Zz4=";Editor.alignHorizontalCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0yMDBIMjQwdi0xMjBoMjAwdi0xNjBIMTIwdi0xMjBoMzIwdi0yMDBoODB2MjAwaDMyMHYxMjBINTIwdjE2MGgyMDB2MTIwSDUyMHYyMDBoLTgwWiIvPjwvc3ZnPg==";
+Editor.alignHorizontalRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAwLTgwdi04MDBoODB2ODAwaC04MFpNMzIwLTI4MHYtMTIwaDQwMHYxMjBIMzIwWk04MC01NjB2LTEyMGg2NDB2MTIwSDgwWiIvPjwvc3ZnPg==";Editor.alignVerticalTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTgwdi02NDBoMTIwdjY0MEgyODBabTI4MC0yNDB2LTQwMGgxMjB2NDAwSDU2MFpNODAtODAwdi04MGg4MDB2ODBIODBaIi8+PC9zdmc+";
+Editor.alignVerticalMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTEyMHYtMzIwSDgwdi04MGgyMDB2LTMyMGgxMjB2MzIwaDE2MHYtMjAwaDEyMHYyMDBoMjAwdjgwSDY4MHYyMDBINTYwdi0yMDBINDAwdjMyMEgyODBaIi8+PC9zdmc+";Editor.alignVerticalBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwaDgwMHY4MEg4MFptMjAwLTE2MHYtNjQwaDEyMHY2NDBIMjgwWm0yODAgMHYtNDAwaDEyMHY0MDBINTYwWiIvPjwvc3ZnPg==";
+Editor.subscriptImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTE2MHYtODBxMC0xNyAxMS41LTI4LjVUODAwLTI4MGg4MHYtNDBINzYwdi00MGgxMjBxMTcgMCAyOC41IDExLjVUOTIwLTMyMHY0MHEwIDE3LTExLjUgMjguNVQ4ODAtMjQwaC04MHY0MGgxMjB2NDBINzYwWm0tNTI1LTgwIDE4NS0yOTEtMTcyLTI2OWgxMDZsMTI0IDIwMGg0bDEyMy0yMDBoMTA3TDUzOS01MzFsMTg2IDI5MUg2MThMNDgyLTQ1N2gtNEwzNDItMjQwSDIzNVoiLz48L3N2Zz4=";
Editor.superscriptImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTYwMHYtODBxMC0xNyAxMS41LTI4LjVUODAwLTcyMGg4MHYtNDBINzYwdi00MGgxMjBxMTcgMCAyOC41IDExLjVUOTIwLTc2MHY0MHEwIDE3LTExLjUgMjguNVQ4ODAtNjgwaC04MHY0MGgxMjB2NDBINzYwWk0yMzUtMTYwbDE4NS0yOTEtMTcyLTI2OWgxMDZsMTI0IDIwMGg0bDEyMy0yMDBoMTA3TDUzOS00NTFsMTg2IDI5MUg2MThMNDgyLTM3N2gtNEwzNDItMTYwSDIzNVoiLz48L3N2Zz4=";
Editor.orderedListImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTgwdi02MGgxMDB2LTMwaC02MHYtNjBoNjB2LTMwSDEyMHYtNjBoMTIwcTE3IDAgMjguNSAxMS41VDI4MC0yODB2NDBxMCAxNy0xMS41IDI4LjVUMjQwLTIwMHExNyAwIDI4LjUgMTEuNVQyODAtMTYwdjQwcTAgMTctMTEuNSAyOC41VDI0MC04MEgxMjBabTAtMjgwdi0xMTBxMC0xNyAxMS41LTI4LjVUMTYwLTUxMGg2MHYtMzBIMTIwdi02MGgxMjBxMTcgMCAyOC41IDExLjVUMjgwLTU2MHY3MHEwIDE3LTExLjUgMjguNVQyNDAtNDUwaC02MHYzMGgxMDB2NjBIMTIwWm02MC0yODB2LTE4MGgtNjB2LTYwaDEyMHYyNDBoLTYwWm0xODAgNDQwdi04MGg0ODB2ODBIMzYwWm0wLTI0MHYtODBoNDgwdjgwSDM2MFptMC0yNDB2LTgwaDQ4MHY4MEgzNjBaIi8+PC9zdmc+";
Editor.unorderedListImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzYwLTIwMHYtODBoNDgwdjgwSDM2MFptMC0yNDB2LTgwaDQ4MHY4MEgzNjBabTAtMjQwdi04MGg0ODB2ODBIMzYwWk0yMDAtMTYwcS0zMyAwLTU2LjUtMjMuNVQxMjAtMjQwcTAtMzMgMjMuNS01Ni41VDIwMC0zMjBxMzMgMCA1Ni41IDIzLjVUMjgwLTI0MHEwIDMzLTIzLjUgNTYuNVQyMDAtMTYwWm0wLTI0MHEtMzMgMC01Ni41LTIzLjVUMTIwLTQ4MHEwLTMzIDIzLjUtNTYuNVQyMDAtNTYwcTMzIDAgNTYuNSAyMy41VDI4MC00ODBxMCAzMy0yMy41IDU2LjVUMjAwLTQwMFptMC0yNDBxLTMzIDAtNTYuNS0yMy41VDEyMC03MjBxMC0zMyAyMy41LTU2LjVUMjAwLTgwMHEzMyAwIDU2LjUgMjMuNVQyODAtNzIwcTAgMzMtMjMuNSA1Ni41VDIwMC02NDBaIi8+PC9zdmc+";
Editor.indentImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMzIwLTE2MHYtODBoNDAwdjgwSDQ0MFptMC0xNjB2LTgwaDQwMHY4MEg0NDBabTAtMTYwdi04MGg0MDB2ODBINDQwWk0xMjAtNzYwdi04MGg3MjB2ODBIMTIwWm0wIDQ0MHYtMzIwbDE2MCAxNjAtMTYwIDE2MFoiLz48L3N2Zz4=";Editor.outdentImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMzIwLTE2MHYtODBoNDAwdjgwSDQ0MFptMC0xNjB2LTgwaDQwMHY4MEg0NDBabTAtMTYwdi04MGg0MDB2ODBINDQwWk0xMjAtNzYwdi04MGg3MjB2ODBIMTIwWm0xNjAgNDQwTDEyMC00ODBsMTYwLTE2MHYzMjBaIi8+PC9zdmc+";
-Editor.removeFormatImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJtNTI4LTU0Ni05My05My0xMjEtMTIxaDQ4NnYxMjBINTY4bC00MCA5NFpNNzkyLTU2IDQ2MC0zODhsLTgwIDE4OEgyNDlsMTE5LTI4MEw1Ni03OTJsNTYtNTYgNzM2IDczNi01NiA1NloiLz48L3N2Zz4=";Editor.codeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzIwLTI0MCA4MC00ODBsMjQwLTI0MCA1NyA1Ny0xODQgMTg0IDE4MyAxODMtNTYgNTZabTMyMCAwLTU3LTU3IDE4NC0xODQtMTgzLTE4MyA1Ni01NiAyNDAgMjQwLTI0MCAyNDBaIi8+PC9zdmc+";
-Editor.linkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTI4MEgyODBxLTgzIDAtMTQxLjUtNTguNVQ4MC00ODBxMC04MyA1OC41LTE0MS41VDI4MC02ODBoMTYwdjgwSDI4MHEtNTAgMC04NSAzNXQtMzUgODVxMCA1MCAzNSA4NXQ4NSAzNWgxNjB2ODBaTTMyMC00NDB2LTgwaDMyMHY4MEgzMjBabTIwMCAxNjB2LTgwaDE2MHE1MCAwIDg1LTM1dDM1LTg1cTAtNTAtMzUtODV0LTg1LTM1SDUyMHYtODBoMTYwcTgzIDAgMTQxLjUgNTguNVQ4ODAtNDgwcTAgODMtNTguNSAxNDEuNVQ2ODAtMjgwSDUyMFoiLz48L3N2Zz4=";
+Editor.removeFormatImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJtNTI4LTU0Ni05My05My0xMjEtMTIxaDQ4NnYxMjBINTY4bC00MCA5NFpNNzkyLTU2IDQ2MC0zODhsLTgwIDE4OEgyNDlsMTE5LTI4MEw1Ni03OTJsNTYtNTYgNzM2IDczNi01NiA1NloiLz48L3N2Zz4=";Editor.textFormatImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTIwMHYtODBoNTYwdjgwSDIwMFptNzYtMTYwIDE2NC00NDBoODBsMTY0IDQ0MGgtNzZsLTM4LTExMkgzOTJsLTQwIDExMmgtNzZabTEzOC0xNzZoMTMybC02NC0xODJoLTRsLTY0IDE4MloiLz48L3N2Zz4=";
+Editor.codeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzIwLTI0MCA4MC00ODBsMjQwLTI0MCA1NyA1Ny0xODQgMTg0IDE4MyAxODMtNTYgNTZabTMyMCAwLTU3LTU3IDE4NC0xODQtMTgzLTE4MyA1Ni01NiAyNDAgMjQwLTI0MCAyNDBaIi8+PC9zdmc+";Editor.linkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTI4MEgyODBxLTgzIDAtMTQxLjUtNTguNVQ4MC00ODBxMC04MyA1OC41LTE0MS41VDI4MC02ODBoMTYwdjgwSDI4MHEtNTAgMC04NSAzNXQtMzUgODVxMCA1MCAzNSA4NXQ4NSAzNWgxNjB2ODBaTTMyMC00NDB2LTgwaDMyMHY4MEgzMjBabTIwMCAxNjB2LTgwaDE2MHE1MCAwIDg1LTM1dDM1LTg1cTAtNTAtMzUtODV0LTg1LTM1SDUyMHYtODBoMTYwcTgzIDAgMTQxLjUgNTguNVQ4ODAtNDgwcTAgODMtNTguNSAxNDEuNVQ2ODAtMjgwSDUyMFoiLz48L3N2Zz4=";
Editor.imageImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNTYwcTAtMzMgMjMuNS01Ni41VDIwMC04NDBoNTYwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NTYwcTAgMzMtMjMuNSA1Ni41VDc2MC0xMjBIMjAwWm0wLTgwaDU2MHYtNTYwSDIwMHY1NjBabTQwLTgwaDQ4MEw1NzAtNDgwIDQ1MC0zMjBsLTkwLTEyMC0xMjAgMTYwWm0tNDAgODB2LTU2MCA1NjBaIi8+PC9zdmc+";
Editor.horizontalRuleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTQ0MHYtODBoNjQwdjgwSDE2MFoiLz48L3N2Zz4=";Editor.tableImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNTYwcTAtMzMgMjMuNS01Ni41VDIwMC04NDBoNTYwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NTYwcTAgMzMtMjMuNSA1Ni41VDc2MC0xMjBIMjAwWm0yNDAtMjQwSDIwMHYxNjBoMjQwdi0xNjBabTgwIDB2MTYwaDI0MHYtMTYwSDUyMFptLTgwLTgwdi0xNjBIMjAwdjE2MGgyNDBabTgwIDBoMjQwdi0xNjBINTIwdjE2MFpNMjAwLTY4MGg1NjB2LTgwSDIwMHY4MFoiLz48L3N2Zz4=";
-Editor.autosizeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDAtNDB2LTI0MGg4MHYtNDAwSDQwdi0yNDBoMjQwdjgwaDQwMHYtODBoMjQwdjI0MGgtODB2NDAwaDgwdjI0MEg2ODB2LTgwSDI4MHY4MEg0MFptMjQwLTE2MGg0MDB2LTgwaDgwdi00MDBoLTgwdi04MEgyODB2ODBoLTgwdjQwMGg4MHY4MFptMzItMTIwIDEzNi0zNjBoNjRsMTM2IDM2MGgtNjJsLTMyLTkySDQwOGwtMzIgOTJoLTY0Wm0xMTQtMTQ0aDEwOGwtNTItMTUwaC00bC01MiAxNTBaTTEyMC03NjBoODB2LTgwaC04MHY4MFptNjQwIDBoODB2LTgwaC04MHY4MFptMCA2NDBoODB2LTgwaC04MHY4MFptLTY0MCAwaDgwdi04MGgtODB2ODBabTgwLTY0MFptNTYwIDBabTAgNTYwWm0tNTYwIDBaIi8+PC9zdmc+";
-Editor.checkmarkImage="data:image/gif;base64,R0lGODlhFQAVAMQfAGxsbHx8fIqKioaGhvb29nJycvr6+sDAwJqamltbW5OTk+np6YGBgeTk5Ly8vJiYmP39/fLy8qWlpa6ursjIyOLi4vj4+N/f3+3t7fT09LCwsHZ2dubm5r6+vmZmZv///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IFdpbmRvd3MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OEY4NTZERTQ5QUFBMTFFMUE5MTVDOTM5MUZGMTE3M0QiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OEY4NTZERTU5QUFBMTFFMUE5MTVDOTM5MUZGMTE3M0QiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4Rjg1NkRFMjlBQUExMUUxQTkxNUM5MzkxRkYxMTczRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4Rjg1NkRFMzlBQUExMUUxQTkxNUM5MzkxRkYxMTczRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAB8ALAAAAAAVABUAAAVI4CeOZGmeaKqubKtylktSgCOLRyLd3+QJEJnh4VHcMoOfYQXQLBcBD4PA6ngGlIInEHEhPOANRkaIFhq8SuHCE1Hb8Lh8LgsBADs=";
+Editor.spacingImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjQwLTgwIDgwLTI0MGwxNjAtMTYwIDU3IDU2LTY0IDY0aDQ5NGwtNjMtNjQgNTYtNTYgMTYwIDE2MEw3MjAtODBsLTU3LTU2IDY0LTY0SDIzM2w2MyA2NC01NiA1NlptMzYtMzYwIDE2NC00NDBoODBsMTY0IDQ0MGgtNzZsLTM4LTExMkgzOTJsLTQwIDExMmgtNzZabTEzOC0xNzZoMTMybC02NC0xODJoLTRsLTY0IDE4MloiLz48L3N2Zz4=";Editor.addColumnLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAwLTIwMHYtNTYwSDU2MHY1NjBoMjQwWm0tNjQwIDgwdi0xNjBoODB2ODBoMjQwdi01NjBIMjQwdjgwaC04MHYtMTYwaDcyMHY3MjBIMTYwWm0zMjAtMzYwWm04MCAwaC04MCA4MFptMCAwWk0xNjAtMzYwdi04MEg4MHYtODBoODB2LTgwaDgwdjgwaDgwdjgwaC04MHY4MGgtODBaIi8+PC9zdmc+";
+Editor.addColumnRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTc2MHY1NjBoMjQwdi01NjBIMTYwWk04MC0xMjB2LTcyMGg3MjB2MTYwaC04MHYtODBINDgwdjU2MGgyNDB2LTgwaDgwdjE2MEg4MFptNDAwLTM2MFptLTgwIDBoODAtODBabTAgMFptMzIwIDEyMHYtODBoLTgwdi04MGg4MHYtODBoODB2ODBoODB2ODBoLTgwdjgwaC04MFoiLz48L3N2Zz4=";Editor.removeColumnImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIiB0cmFuc2Zvcm09InJvdGF0ZSg5MCkgc2NhbGUoMSwtMSkiPjxwYXRoIGQ9Ik01NjAtMjgwSDEyMHYtNDAwaDcyMHYxMjBoLTgwdi00MEgyMDB2MjQwaDM2MHY4MFptLTM2MC04MHYtMjQwIDI0MFptNDQwIDEwNCA4NC04NC04NC04NCA1Ni01NiA4NCA4NCA4NC04NCA1NiA1Ni04MyA4NCA4MyA4NC01NiA1Ni04NC04My04NCA4My01Ni01NloiLz48L3N2Zz4=";
+Editor.addRowAboveImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTE2MGg1NjB2LTI0MEgyMDB2MjQwWm02NDAgODBIMTIwdi03MjBoMTYwdjgwaC04MHYyNDBoNTYwdi0yNDBoLTgwdi04MGgxNjB2NzIwWk00ODAtNDgwWm0wIDgwdi04MCA4MFptMCAwWm0tNDAtMjQwdi04MGgtODB2LTgwaDgwdi04MGg4MHY4MGg4MHY4MGgtODB2ODBoLTgwWiIvPjwvc3ZnPg==";Editor.addRowBelowImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTU2MGg1NjB2LTI0MEgyMDB2MjQwWm0tODAgNDAwdi03MjBoNzIwdjcyMEg2ODB2LTgwaDgwdi0yNDBIMjAwdjI0MGg4MHY4MEgxMjBabTM2MC0zMjBabTAtODB2ODAtODBabTAgMFpNNDQwLTgwdi04MGgtODB2LTgwaDgwdi04MGg4MHY4MGg4MHY4MGgtODB2ODBoLTgwWiIvPjwvc3ZnPg==";
+Editor.removeRowImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNTYwLTI4MEgxMjB2LTQwMGg3MjB2MTIwaC04MHYtNDBIMjAwdjI0MGgzNjB2ODBabS0zNjAtODB2LTI0MCAyNDBabTQ0MCAxMDQgODQtODQtODQtODQgNTYtNTYgODQgODQgODQtODQgNTYgNTYtODMgODQgODMgODQtNTYgNTYtODQtODMtODQgODMtNTYtNTZaIi8+PC9zdmc+";Editor.autosizeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDAtNDB2LTI0MGg4MHYtNDAwSDQwdi0yNDBoMjQwdjgwaDQwMHYtODBoMjQwdjI0MGgtODB2NDAwaDgwdjI0MEg2ODB2LTgwSDI4MHY4MEg0MFptMjQwLTE2MGg0MDB2LTgwaDgwdi00MDBoLTgwdi04MEgyODB2ODBoLTgwdjQwMGg4MHY4MFptMzItMTIwIDEzNi0zNjBoNjRsMTM2IDM2MGgtNjJsLTMyLTkySDQwOGwtMzIgOTJoLTY0Wm0xMTQtMTQ0aDEwOGwtNTItMTUwaC00bC01MiAxNTBaTTEyMC03NjBoODB2LTgwaC04MHY4MFptNjQwIDBoODB2LTgwaC04MHY4MFptMCA2NDBoODB2LTgwaC04MHY4MFptLTY0MCAwaDgwdi04MGgtODB2ODBabTgwLTY0MFptNTYwIDBabTAgNTYwWm0tNTYwIDBaIi8+PC9zdmc+";
+Editor.checkmarkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjJweCIgaGVpZ2h0PSIxOHB4IiB2ZXJzaW9uPSIxLjEiPjxwYXRoIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQgMCkiIGQ9Ik03LjE4MSwxNS4wMDdhMSwxLDAsMCwxLS43OTMtMC4zOTFMMy4yMjIsMTAuNUExLDEsMCwxLDEsNC44MDgsOS4yNzRMNy4xMzIsMTIuM2w2LjA0NC04Ljg2QTEsMSwwLDEsMSwxNC44Myw0LjU2OWwtNi44MjMsMTBhMSwxLDAsMCwxLS44LjQzN0g3LjE4MVoiIGZpbGw9IiMwMDAwMDAiLz48L3N2Zz4=";
Editor.roughFillStyles=[{val:"auto",dispName:"Auto"},{val:"hachure",dispName:"Hachure"},{val:"solid",dispName:"Solid"},{val:"zigzag",dispName:"ZigZag"},{val:"cross-hatch",dispName:"Cross Hatch"},{val:"dashed",dispName:"Dashed"},{val:"zigzag-line",dispName:"ZigZag Line"}];
Editor.fillStyles=[{val:"auto",dispName:"Auto"},{val:"hatch",dispName:"Hatch"},{val:"solid",dispName:"Solid"},{val:"dots",dispName:"Dots"},{val:"cross-hatch",dispName:"Cross Hatch"},{val:"dashed",dispName:"Dashed"},{val:"zigzag-line",dispName:"ZigZag Line"}];Editor.themes=[];Editor.ctrlKey=mxClient.IS_MAC?"Cmd":"Ctrl";Editor.hintOffset=20;Editor.shapePickerHoverDelay=300;Editor.fitWindowBorders=null;Editor.popupsAllowed=null!=window.urlParams?"1"!=urlParams.noDevice:!0;Editor.simpleLabels=!1;
Editor.enableNativeCipboard=window==window.top&&!mxClient.IS_FF&&null!=navigator.clipboard;Editor.sketchMode=!1;Editor.darkMode=!1;Editor.currentTheme=uiTheme;Editor.darkColor="#121212";Editor.darkColorVar="--ge-dark-color";Editor.fontSizeUnit="px";Editor.pageSizeUnit=mxConstants.INCHES;Editor.isDarkMode=function(){return Editor.darkMode};Editor.isPngDataUrl=function(b){return null!=b&&"data:image/png;"==b.substring(0,15)};
Editor.isPngData=function(b){return 8<b.length&&137==b.charCodeAt(0)&&80==b.charCodeAt(1)&&78==b.charCodeAt(2)&&71==b.charCodeAt(3)&&13==b.charCodeAt(4)&&10==b.charCodeAt(5)&&26==b.charCodeAt(6)&&10==b.charCodeAt(7)};Editor.convertHtmlToText=function(b){if(null!=b){var e=document.createElement("div");e.innerHTML=Graph.sanitizeHtml(b);return mxUtils.extractTextWithWhitespace(e.childNodes)}return null};
-Editor.extractGraphModelFromPng=function(b){var e=null;try{var g=b.substring(b.indexOf(",")+1),m=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0);EditorUi.parsePng(m,mxUtils.bind(this,function(v,p,B){v=m.substring(v+8,v+8+B);"zTXt"==p?(B=v.indexOf(String.fromCharCode(0)),"mxGraphModel"==v.substring(0,B)&&(v=pako.inflateRaw(Graph.stringToArrayBuffer(v.substring(B+2)),{to:"string"}).replace(/\+/g," "),null!=v&&0<v.length&&(e=v))):"tEXt"==p&&(v=v.split(String.fromCharCode(0)),1<v.length&&("mxGraphModel"==
+Editor.extractGraphModelFromPng=function(b){var e=null;try{var g=b.substring(b.indexOf(",")+1),m=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0);EditorUi.parsePng(m,mxUtils.bind(this,function(v,p,A){v=m.substring(v+8,v+8+A);"zTXt"==p?(A=v.indexOf(String.fromCharCode(0)),"mxGraphModel"==v.substring(0,A)&&(v=pako.inflateRaw(Graph.stringToArrayBuffer(v.substring(A+2)),{to:"string"}).replace(/\+/g," "),null!=v&&0<v.length&&(e=v))):"tEXt"==p&&(v=v.split(String.fromCharCode(0)),1<v.length&&("mxGraphModel"==
v[0]||"mxfile"==v[0])&&(e=v[1]));if(null!=e||"IDAT"==p)return!0}))}catch(v){}null!=e&&"%"==e.charAt(0)&&(e=decodeURIComponent(e));null!=e&&"%"==e.charAt(0)&&(e=decodeURIComponent(e));return e};
Editor.soundex=function(b){if(null==b||0==b.length)return"";var e=[],g=1;e[0]=b[0].toUpperCase();for(var m=1,v=b.length;m<v;m++){var p=b[m].toUpperCase().charCodeAt(0)-65;if(0<=p&&25>=p&&"0"!="01230120022455012603010202"[p]&&("01230120022455012603010202"[p]!=e[g-1]&&(e[g]="01230120022455012603010202"[p],g++),3<g))break}if(3>=g)for(;3>=g;)e[g]="0",g++;return e.join("")};
Editor.selectFilename=function(b){var e=b.value.lastIndexOf(".");if(0<e){var g=b.value.substring(e+1);"drawio"!=g&&0<=mxUtils.indexOf(["png","svg","html","xml","pdf"],g)&&(g=b.value.lastIndexOf(".drawio.",e),0<g&&(e=g))}e=0<e?e:b.value.length;Editor.selectSubstring(b,0,e)};
@@ -1956,15 +1967,15 @@ Editor.prototype.getGraphXml=function(b){if(null!=b?b:1){var e=new mxCodec(mxUti
this.graph.isGridEnabled()?"1":"0");b.setAttribute("gridSize",this.graph.gridSize);b.setAttribute("guides",this.graph.graphHandler.guidesEnabled?"1":"0");b.setAttribute("tooltips",this.graph.tooltipHandler.isEnabled()?"1":"0");b.setAttribute("connect",this.graph.connectionHandler.isEnabled()?"1":"0");b.setAttribute("arrows",this.graph.connectionArrowsEnabled?"1":"0");b.setAttribute("fold",this.graph.foldingEnabled?"1":"0");b.setAttribute("page",this.graph.pageVisible?"1":"0");b.setAttribute("pageScale",
this.graph.pageScale);b.setAttribute("pageWidth",this.graph.pageFormat.width);b.setAttribute("pageHeight",this.graph.pageFormat.height);null!=this.graph.background&&b.setAttribute("background",this.graph.background);return b};Editor.prototype.updateGraphComponents=function(){var b=this.graph;null!=b.container&&(b.view.validateBackground(),b.container.style.overflow=b.scrollbars?"auto":this.defaultGraphOverflow,this.fireEvent(new mxEventObject("updateGraphComponents")))};
Editor.prototype.setModified=function(b){this.modified=b};Editor.prototype.setFilename=function(b){this.filename=b};
-Editor.prototype.createUndoManager=function(){var b=this.graph,e=new mxUndoManager;this.undoListener=function(m,v){e.undoableEditHappened(v.getProperty("edit"))};var g=mxUtils.bind(this,function(m,v){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,g);b.getView().addListener(mxEvent.UNDO,g);g=function(m,v){m=v.getProperty("edit").changes;m=b.getSelectionCellsForChanges(m);v=!1;if(0<m.length){for(var p=[],B=0;B<m.length;B++)null!=b.view.getState(m[B])&&(p.push(m[B]),
-v||(b.scrollCellToVisible(m[B]),v=!0));b.setSelectionCells(p)}};e.addListener(mxEvent.UNDO,g);e.addListener(mxEvent.REDO,g);return e};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};
+Editor.prototype.createUndoManager=function(){var b=this.graph,e=new mxUndoManager;this.undoListener=function(m,v){e.undoableEditHappened(v.getProperty("edit"))};var g=mxUtils.bind(this,function(m,v){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,g);b.getView().addListener(mxEvent.UNDO,g);g=function(m,v){m=v.getProperty("edit").changes;m=b.getSelectionCellsForChanges(m);v=!1;if(0<m.length){for(var p=[],A=0;A<m.length;A++)null!=b.view.getState(m[A])&&(p.push(m[A]),
+v||(b.scrollCellToVisible(m[A]),v=!0));b.setSelectionCells(p)}};e.addListener(mxEvent.UNDO,g);e.addListener(mxEvent.REDO,g);return e};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};
OpenFile.prototype.error=function(b){this.cancel(!0);mxUtils.alert(b)};OpenFile.prototype.execute=function(){null!=this.consumer&&null!=this.args&&(this.cancel(!1),this.consumer.apply(this,this.args))};OpenFile.prototype.cancel=function(b){null!=this.done&&this.done(null!=b?b:!0)};
-function Dialog(b,e,g,m,v,p,B,G,S,F,P){this.editorUi=b;var R=S?57:0,T=g,c=m,f=S?0:64,k=Editor.inlineFullscreen||null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);null==b.embedViewport&&null!=window.innerHeight&&(k.height=window.innerHeight);var A=k.height;k=Math.max(1,Math.round((k.width-g-f)/2));var z=Math.max(1,Math.round((A-m-b.footerHeight)/3));e.style.maxHeight="100%";g=null!=document.body?Math.min(g,document.body.scrollWidth-f):g;m=Math.min(m,A-f);0<b.dialogs.length&&
-(this.zIndex+=2*b.dialogs.length);null==this.bg&&(this.bg=b.createDiv("geBackground"),this.bg.style.position="absolute",this.bg.style.height=A+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));var C=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=C.x+"px";this.bg.style.top=C.y+"px";k+=C.x;z+=C.y;Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px",z+=b.embedViewport.y,k+=b.embedViewport.x);
+function Dialog(b,e,g,m,v,p,A,G,S,F,P){this.editorUi=b;var R=S?57:0,T=g,c=m,f=S?0:64,k=Editor.inlineFullscreen||null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);null==b.embedViewport&&null!=window.innerHeight&&(k.height=window.innerHeight);var B=k.height;k=Math.max(1,Math.round((k.width-g-f)/2));var z=Math.max(1,Math.round((B-m-b.footerHeight)/3));e.style.maxHeight="100%";g=null!=document.body?Math.min(g,document.body.scrollWidth-f):g;m=Math.min(m,B-f);0<b.dialogs.length&&
+(this.zIndex+=2*b.dialogs.length);null==this.bg&&(this.bg=b.createDiv("geBackground"),this.bg.style.position="absolute",this.bg.style.height=B+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));var C=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=C.x+"px";this.bg.style.top=C.y+"px";k+=C.x;z+=C.y;Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px",z+=b.embedViewport.y,k+=b.embedViewport.x);
v&&document.body.appendChild(this.bg);var I=b.createDiv(S?"geTransDialog":"geDialog");v=this.getPosition(k,z,g,m);k=v.x;z=v.y;I.style.width=g+"px";I.style.height=m+"px";I.style.left=k+"px";I.style.top=z+"px";I.style.zIndex=this.zIndex;I.appendChild(e);document.body.appendChild(I);!G&&e.clientHeight>I.clientHeight-f&&(e.style.overflowY="auto");e.style.overflowX="hidden";if(p&&(p=document.createElement("img"),p.setAttribute("src",Dialog.prototype.closeImage),p.setAttribute("title",mxResources.get("close")),
p.className="geDialogClose",p.style.top=z+14+"px",p.style.left=k+g+38-R+"px",p.style.zIndex=this.zIndex,mxEvent.addListener(p,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),document.body.appendChild(p),this.dialogImg=p,!P)){var L=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(K){L=!0}),null,mxUtils.bind(this,function(K){L&&(b.hideDialog(!0),L=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=F){var K=F();null!=K&&(T=g=K.w,c=m=K.h)}K=Editor.inlineFullscreen||
-null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);A=K.height;this.bg.style.height=A+"px";Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px");g=null!=document.body?Math.min(T,document.body.scrollWidth-f):T;m=Math.min(c,A-f);K=Math.max(1,Math.round((K.width-g-f)/2));var O=Math.max(1,Math.round((A-m-b.footerHeight)/3));O=this.getPosition(K,O,g,m);K=O.x;O=O.y;var da=mxUtils.getDocumentScrollOrigin(document);K+=da.x;O+=da.y;
-Editor.inlineFullscreen||null==b.embedViewport||(O+=b.embedViewport.y,K+=b.embedViewport.x);I.style.left=K+"px";I.style.top=O+"px";I.style.width=g+"px";I.style.height=m+"px";!G&&e.clientHeight>I.clientHeight-f&&(e.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=O+14+"px",this.dialogImg.style.left=K+g+38-R+"px")});null!=b.embedViewport?b.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=B;this.container=
+null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);B=K.height;this.bg.style.height=B+"px";Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px");g=null!=document.body?Math.min(T,document.body.scrollWidth-f):T;m=Math.min(c,B-f);K=Math.max(1,Math.round((K.width-g-f)/2));var O=Math.max(1,Math.round((B-m-b.footerHeight)/3));O=this.getPosition(K,O,g,m);K=O.x;O=O.y;var da=mxUtils.getDocumentScrollOrigin(document);K+=da.x;O+=da.y;
+Editor.inlineFullscreen||null==b.embedViewport||(O+=b.embedViewport.y,K+=b.embedViewport.x);I.style.left=K+"px";I.style.top=O+"px";I.style.width=g+"px";I.style.height=m+"px";!G&&e.clientHeight>I.clientHeight-f&&(e.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=O+14+"px",this.dialogImg.style.left=K+g+38-R+"px")});null!=b.embedViewport?b.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=A;this.container=
I;b.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.prototype.zIndex=mxPopupMenu.prototype.zIndex-2;
Dialog.prototype.noColorImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkEzRDlBMUUwODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkEzRDlBMUUxODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QTNEOUExREU4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QTNEOUExREY4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xh3fmAAAABlBMVEX////MzMw46qqDAAAAGElEQVR42mJggAJGKGAYIIGBth8KAAIMAEUQAIElnLuQAAAAAElFTkSuQmCC":IMAGE_PATH+
"/nocolor.png";Dialog.prototype.closeImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAQMAAADaX5RTAAAABlBMVEV7mr3///+wksspAAAAAnRSTlP/AOW3MEoAAAAdSURBVAgdY9jXwCDDwNDRwHCwgeExmASygSL7GgB12QiqNHZZIwAAAABJRU5ErkJggg==":IMAGE_PATH+"/close.png";
@@ -1972,92 +1983,92 @@ Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKA
"/clear.gif";Dialog.prototype.bgOpacity=80;Dialog.prototype.getDocumentSize=function(){return mxUtils.getDocumentSize()};Dialog.prototype.getPosition=function(b,e){return new mxPoint(b,e)};
Dialog.prototype.close=function(b,e){if(null!=this.onDialogClose){if(0==this.onDialogClose(b,e))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&&
this.container.parentNode.removeChild(this.container)};
-var ErrorDialog=function(b,e,g,m,v,p,B,G,S,F,P){S=null!=S?S:!0;var R=document.createElement("div");R.style.textAlign="center";if(null!=e){var T=document.createElement("div");T.style.padding="0px";T.style.margin="0px";T.style.fontSize="18px";T.style.paddingBottom="16px";T.style.marginBottom="10px";T.style.borderBottom="1px solid #c0c0c0";T.style.color="gray";T.style.whiteSpace="nowrap";T.style.textOverflow="ellipsis";T.style.overflow="hidden";mxUtils.write(T,e);T.setAttribute("title",e);R.appendChild(T)}e=
+var ErrorDialog=function(b,e,g,m,v,p,A,G,S,F,P){S=null!=S?S:!0;var R=document.createElement("div");R.style.textAlign="center";if(null!=e){var T=document.createElement("div");T.style.padding="0px";T.style.margin="0px";T.style.fontSize="18px";T.style.paddingBottom="16px";T.style.marginBottom="10px";T.style.borderBottom="1px solid #c0c0c0";T.style.color="gray";T.style.whiteSpace="nowrap";T.style.textOverflow="ellipsis";T.style.overflow="hidden";mxUtils.write(T,e);T.setAttribute("title",e);R.appendChild(T)}e=
document.createElement("div");e.style.lineHeight="1.2em";e.style.padding="6px";"string"===typeof g&&(g=g.replace(/\n/g,"<br/>"));e.innerHTML=Graph.sanitizeHtml(g);R.appendChild(e);g=document.createElement("div");g.style.marginTop="12px";g.style.textAlign="center";null!=p&&(e=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();p()}),e.className="geBtn",g.appendChild(e),g.style.textAlign="center");null!=F&&(F=mxUtils.button(F,function(){null!=P&&P()}),F.className="geBtn",g.appendChild(F));
-var c=mxUtils.button(m,function(){S&&b.hideDialog();null!=v&&v()});c.className="geBtn";g.appendChild(c);null!=B&&(m=mxUtils.button(B,function(){S&&b.hideDialog();null!=G&&G()}),m.className="geBtn gePrimaryBtn",g.appendChild(m));this.init=function(){c.focus()};R.appendChild(g);this.container=R},PrintDialog=function(b,e,g){this.create(b,e,g)};
-PrintDialog.prototype.create=function(b){function e(c){var f=B.checked||F.checked,k=parseInt(R.value)/100;isNaN(k)&&(k=1,R.value="100%");mxClient.IS_SF&&(k*=.75);var A=g.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,z=1/g.pageScale;if(f){var C=B.checked?1:parseInt(P.value);isNaN(C)||(z=mxUtils.getScaleForPageCount(C,g,A))}var I=C=0;A=mxRectangle.fromRectangle(A);A.width=Math.ceil(A.width*k);A.height=Math.ceil(A.height*k);z*=k;!f&&g.pageVisible?(k=g.getPageLayout(),C-=k.x*A.width,I-=k.y*A.height):
-f=!0;f=PrintDialog.createPrintPreview(g,z,A,0,C,I,f);f.open();c&&PrintDialog.printPreview(f)}var g=b.editor.graph,m=document.createElement("table");m.style.width="100%";m.style.height="100%";var v=document.createElement("tbody");var p=document.createElement("tr");var B=document.createElement("input");B.setAttribute("type","checkbox");var G=document.createElement("td");G.setAttribute("colspan","2");G.style.fontSize="10pt";G.appendChild(B);var S=document.createElement("span");mxUtils.write(S," "+mxResources.get("fitPage"));
-G.appendChild(S);mxEvent.addListener(S,"click",function(c){B.checked=!B.checked;F.checked=!B.checked;mxEvent.consume(c)});mxEvent.addListener(B,"change",function(){F.checked=!B.checked});p.appendChild(G);v.appendChild(p);p=p.cloneNode(!1);var F=document.createElement("input");F.setAttribute("type","checkbox");G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(F);S=document.createElement("span");mxUtils.write(S," "+mxResources.get("posterPrint")+":");G.appendChild(S);mxEvent.addListener(S,
-"click",function(c){F.checked=!F.checked;B.checked=!F.checked;mxEvent.consume(c)});p.appendChild(G);var P=document.createElement("input");P.setAttribute("value","1");P.setAttribute("type","number");P.setAttribute("min","1");P.setAttribute("size","4");P.setAttribute("disabled","disabled");P.style.width="50px";G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(P);mxUtils.write(G," "+mxResources.get("pages")+" (max)");p.appendChild(G);v.appendChild(p);mxEvent.addListener(F,"change",
-function(){F.checked?P.removeAttribute("disabled"):P.setAttribute("disabled","disabled");B.checked=!F.checked});p=p.cloneNode(!1);G=document.createElement("td");mxUtils.write(G,mxResources.get("pageScale")+":");p.appendChild(G);G=document.createElement("td");var R=document.createElement("input");R.setAttribute("value","100 %");R.setAttribute("size","5");R.style.width="50px";G.appendChild(R);p.appendChild(G);v.appendChild(p);p=document.createElement("tr");G=document.createElement("td");G.colSpan=2;
+var c=mxUtils.button(m,function(){S&&b.hideDialog();null!=v&&v()});c.className="geBtn";g.appendChild(c);null!=A&&(m=mxUtils.button(A,function(){S&&b.hideDialog();null!=G&&G()}),m.className="geBtn gePrimaryBtn",g.appendChild(m));this.init=function(){c.focus()};R.appendChild(g);this.container=R},PrintDialog=function(b,e,g){this.create(b,e,g)};
+PrintDialog.prototype.create=function(b){function e(c){var f=A.checked||F.checked,k=parseInt(R.value)/100;isNaN(k)&&(k=1,R.value="100%");mxClient.IS_SF&&(k*=.75);var B=g.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,z=1/g.pageScale;if(f){var C=A.checked?1:parseInt(P.value);isNaN(C)||(z=mxUtils.getScaleForPageCount(C,g,B))}var I=C=0;B=mxRectangle.fromRectangle(B);B.width=Math.ceil(B.width*k);B.height=Math.ceil(B.height*k);z*=k;!f&&g.pageVisible?(k=g.getPageLayout(),C-=k.x*B.width,I-=k.y*B.height):
+f=!0;f=PrintDialog.createPrintPreview(g,z,B,0,C,I,f);f.open();c&&PrintDialog.printPreview(f)}var g=b.editor.graph,m=document.createElement("table");m.style.width="100%";m.style.height="100%";var v=document.createElement("tbody");var p=document.createElement("tr");var A=document.createElement("input");A.setAttribute("type","checkbox");var G=document.createElement("td");G.setAttribute("colspan","2");G.style.fontSize="10pt";G.appendChild(A);var S=document.createElement("span");mxUtils.write(S," "+mxResources.get("fitPage"));
+G.appendChild(S);mxEvent.addListener(S,"click",function(c){A.checked=!A.checked;F.checked=!A.checked;mxEvent.consume(c)});mxEvent.addListener(A,"change",function(){F.checked=!A.checked});p.appendChild(G);v.appendChild(p);p=p.cloneNode(!1);var F=document.createElement("input");F.setAttribute("type","checkbox");G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(F);S=document.createElement("span");mxUtils.write(S," "+mxResources.get("posterPrint")+":");G.appendChild(S);mxEvent.addListener(S,
+"click",function(c){F.checked=!F.checked;A.checked=!F.checked;mxEvent.consume(c)});p.appendChild(G);var P=document.createElement("input");P.setAttribute("value","1");P.setAttribute("type","number");P.setAttribute("min","1");P.setAttribute("size","4");P.setAttribute("disabled","disabled");P.style.width="50px";G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(P);mxUtils.write(G," "+mxResources.get("pages")+" (max)");p.appendChild(G);v.appendChild(p);mxEvent.addListener(F,"change",
+function(){F.checked?P.removeAttribute("disabled"):P.setAttribute("disabled","disabled");A.checked=!F.checked});p=p.cloneNode(!1);G=document.createElement("td");mxUtils.write(G,mxResources.get("pageScale")+":");p.appendChild(G);G=document.createElement("td");var R=document.createElement("input");R.setAttribute("value","100 %");R.setAttribute("size","5");R.style.width="50px";G.appendChild(R);p.appendChild(G);v.appendChild(p);p=document.createElement("tr");G=document.createElement("td");G.colSpan=2;
G.style.paddingTop="20px";G.setAttribute("align","right");S=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});S.className="geBtn";b.editor.cancelFirst&&G.appendChild(S);if(PrintDialog.previewEnabled){var T=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();e(!1)});T.className="geBtn";G.appendChild(T)}T=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();e(!0)});T.className="geBtn gePrimaryBtn";G.appendChild(T);b.editor.cancelFirst||
G.appendChild(S);p.appendChild(G);v.appendChild(p);m.appendChild(v);this.container=m};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(e){}};
-PrintDialog.createPrintPreview=function(b,e,g,m,v,p,B){e=new mxPrintPreview(b,e,g,m,v,p);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=B;B=b.background;if(null==B||""==B||B==mxConstants.NONE)B="#ffffff";e.backgroundColor=B;var G=e.isTextLabel;e.isTextLabel=function(F){return"geHint"==!F.className&&G.apply(this,arguments)};var S=e.getLinkForCellState;e.getLinkForCellState=function(F){return b.getAbsoluteUrl(S.apply(this,arguments))};return e};
+PrintDialog.createPrintPreview=function(b,e,g,m,v,p,A){e=new mxPrintPreview(b,e,g,m,v,p);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=A;A=b.background;if(null==A||""==A||A==mxConstants.NONE)A="#ffffff";e.backgroundColor=A;var G=e.isTextLabel;e.isTextLabel=function(F){return"geHint"==!F.className&&G.apply(this,arguments)};var S=e.getLinkForCellState;e.getLinkForCellState=function(F){return b.getAbsoluteUrl(S.apply(this,arguments))};return e};
PrintDialog.previewEnabled=!0;
var PageSetupDialog=function(b){function e(){var k=R;null!=k&&null!=k.originalSrc&&(k=b.createImageForPageLink(k.originalSrc,null));null!=k&&null!=k.src?(P.style.backgroundImage="url("+k.src+")",P.style.display="inline-block"):(P.style.backgroundImage="",P.style.display="none");P.style.backgroundColor="";null!=T&&T!=mxConstants.NONE&&(P.style.backgroundColor=T,P.style.display="inline-block")}var g=b.editor.graph,m=document.createElement("table");m.style.width="100%";m.style.height="100%";var v=document.createElement("tbody");
-var p=document.createElement("tr");var B=document.createElement("td");B.style.verticalAlign="top";B.style.fontSize="10pt";mxUtils.write(B,mxResources.get("paperSize")+":");p.appendChild(B);B=document.createElement("td");B.style.verticalAlign="top";B.style.fontSize="10pt";var G=PageSetupDialog.addPageFormatPanel(B,"pagesetupdialog",g.pageFormat);p.appendChild(B);v.appendChild(p);p=document.createElement("tr");B=document.createElement("td");mxUtils.write(B,mxResources.get("gridSize")+":");p.appendChild(B);
-B=document.createElement("td");B.style.whiteSpace="nowrap";var S=document.createElement("input");S.setAttribute("type","number");S.setAttribute("min","0");S.style.width="40px";S.style.marginLeft="6px";S.value=g.getGridSize();B.appendChild(S);mxEvent.addListener(S,"change",function(){var k=parseInt(S.value);S.value=Math.max(1,isNaN(k)?g.getGridSize():k)});p.appendChild(B);v.appendChild(p);p=document.createElement("tr");B=document.createElement("td");mxUtils.write(B,mxResources.get("background")+":");
-p.appendChild(B);B=document.createElement("td");var F=document.createElement("button");F.className="geBtn";F.style.margin="0px";mxUtils.write(F,mxResources.get("change")+"...");var P=document.createElement("div");P.style.display="inline-block";P.style.verticalAlign="middle";P.style.backgroundPosition="center center";P.style.backgroundRepeat="no-repeat";P.style.backgroundSize="contain";P.style.border="1px solid lightGray";P.style.borderRadius="4px";P.style.marginRight="14px";P.style.height="32px";
-P.style.width="64px";P.style.cursor="pointer";P.style.padding="4px";var R=g.backgroundImage,T=g.background,c=g.shadowVisible,f=function(k){b.showBackgroundImageDialog(function(A,z,C,I){z||(null!=A&&null!=A.src&&Graph.isPageLink(A.src)&&(A={originalSrc:A.src}),R=A,c=I);T=C;e()},R,T,!0);mxEvent.consume(k)};mxEvent.addListener(F,"click",f);mxEvent.addListener(P,"click",f);e();B.appendChild(P);B.appendChild(F);p.appendChild(B);v.appendChild(p);p=document.createElement("tr");B=document.createElement("td");
-B.colSpan=2;B.style.paddingTop="16px";B.setAttribute("align","right");F=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});F.className="geBtn";b.editor.cancelFirst&&B.appendChild(F);f=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var k=parseInt(S.value);isNaN(k)||g.gridSize===k||g.setGridSize(k);k=new ChangePageSetup(b,T,R,G.get());k.ignoreColor=g.background==T;k.ignoreImage=(null!=g.backgroundImage?g.backgroundImage.src:null)===(null!=R?R.src:null);null!=c&&
-(k.shadowVisible=c);g.pageFormat.width==k.previousFormat.width&&g.pageFormat.height==k.previousFormat.height&&k.ignoreColor&&k.ignoreImage&&k.shadowVisible==g.shadowVisible||g.model.execute(k)});f.className="geBtn gePrimaryBtn";B.appendChild(f);b.editor.cancelFirst||B.appendChild(F);p.appendChild(B);v.appendChild(p);m.appendChild(v);this.container=m};
-PageSetupDialog.addPageFormatPanel=function(b,e,g,m){e="format-"+e;var v=document.createElement("input");v.setAttribute("name",e);v.setAttribute("type","radio");v.setAttribute("value","portrait");var p=document.createElement("input");p.setAttribute("name",e);p.setAttribute("type","radio");p.setAttribute("value","landscape");var B=document.createElement("select");B.style.marginBottom="4px";B.style.borderRadius="4px";B.style.borderWidth="1px";B.style.borderStyle="solid";B.style.boxSizing="border-box";
-B.style.padding="2px";B.style.width="210px";var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.marginLeft="4px";G.style.width="210px";G.style.height="24px";v.style.marginRight="6px";G.appendChild(v);e=document.createElement("span");e.style.maxWidth="100px";mxUtils.write(e,mxResources.get("portrait"));G.appendChild(e);p.style.marginLeft="10px";p.style.marginRight="6px";G.appendChild(p);var S=document.createElement("span");S.style.width="100px";mxUtils.write(S,mxResources.get("landscape"));
+var p=document.createElement("tr");var A=document.createElement("td");A.style.verticalAlign="top";A.style.fontSize="10pt";mxUtils.write(A,mxResources.get("paperSize")+":");p.appendChild(A);A=document.createElement("td");A.style.verticalAlign="top";A.style.fontSize="10pt";var G=PageSetupDialog.addPageFormatPanel(A,"pagesetupdialog",g.pageFormat);p.appendChild(A);v.appendChild(p);p=document.createElement("tr");A=document.createElement("td");mxUtils.write(A,mxResources.get("gridSize")+":");p.appendChild(A);
+A=document.createElement("td");A.style.whiteSpace="nowrap";var S=document.createElement("input");S.setAttribute("type","number");S.setAttribute("min","0");S.style.width="40px";S.style.marginLeft="6px";S.value=g.getGridSize();A.appendChild(S);mxEvent.addListener(S,"change",function(){var k=parseInt(S.value);S.value=Math.max(1,isNaN(k)?g.getGridSize():k)});p.appendChild(A);v.appendChild(p);p=document.createElement("tr");A=document.createElement("td");mxUtils.write(A,mxResources.get("background")+":");
+p.appendChild(A);A=document.createElement("td");var F=document.createElement("button");F.className="geBtn";F.style.margin="0px";mxUtils.write(F,mxResources.get("change")+"...");var P=document.createElement("div");P.style.display="inline-block";P.style.verticalAlign="middle";P.style.backgroundPosition="center center";P.style.backgroundRepeat="no-repeat";P.style.backgroundSize="contain";P.style.border="1px solid lightGray";P.style.borderRadius="4px";P.style.marginRight="14px";P.style.height="32px";
+P.style.width="64px";P.style.cursor="pointer";P.style.padding="4px";var R=g.backgroundImage,T=g.background,c=g.shadowVisible,f=function(k){b.showBackgroundImageDialog(function(B,z,C,I){z||(null!=B&&null!=B.src&&Graph.isPageLink(B.src)&&(B={originalSrc:B.src}),R=B,c=I);T=C;e()},R,T,!0);mxEvent.consume(k)};mxEvent.addListener(F,"click",f);mxEvent.addListener(P,"click",f);e();A.appendChild(P);A.appendChild(F);p.appendChild(A);v.appendChild(p);p=document.createElement("tr");A=document.createElement("td");
+A.colSpan=2;A.style.paddingTop="16px";A.setAttribute("align","right");F=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});F.className="geBtn";b.editor.cancelFirst&&A.appendChild(F);f=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var k=parseInt(S.value);isNaN(k)||g.gridSize===k||g.setGridSize(k);k=new ChangePageSetup(b,T,R,G.get());k.ignoreColor=g.background==T;k.ignoreImage=(null!=g.backgroundImage?g.backgroundImage.src:null)===(null!=R?R.src:null);null!=c&&
+(k.shadowVisible=c);g.pageFormat.width==k.previousFormat.width&&g.pageFormat.height==k.previousFormat.height&&k.ignoreColor&&k.ignoreImage&&k.shadowVisible==g.shadowVisible||g.model.execute(k)});f.className="geBtn gePrimaryBtn";A.appendChild(f);b.editor.cancelFirst||A.appendChild(F);p.appendChild(A);v.appendChild(p);m.appendChild(v);this.container=m};
+PageSetupDialog.addPageFormatPanel=function(b,e,g,m){e="format-"+e;var v=document.createElement("input");v.setAttribute("name",e);v.setAttribute("type","radio");v.setAttribute("value","portrait");var p=document.createElement("input");p.setAttribute("name",e);p.setAttribute("type","radio");p.setAttribute("value","landscape");var A=document.createElement("select");A.style.marginBottom="4px";A.style.borderRadius="4px";A.style.borderWidth="1px";A.style.borderStyle="solid";A.style.boxSizing="border-box";
+A.style.padding="2px";A.style.width="210px";var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.marginLeft="4px";G.style.width="210px";G.style.height="24px";v.style.marginRight="6px";G.appendChild(v);e=document.createElement("span");e.style.maxWidth="100px";mxUtils.write(e,mxResources.get("portrait"));G.appendChild(e);p.style.marginLeft="10px";p.style.marginRight="6px";G.appendChild(p);var S=document.createElement("span");S.style.width="100px";mxUtils.write(S,mxResources.get("landscape"));
G.appendChild(S);var F=document.createElement("div");F.style.whiteSpace="nowrap";F.style.marginLeft="4px";F.style.fontSize="12px";F.style.width="210px";F.style.height="24px";var P=document.createElement("input");P.setAttribute("size","7");P.setAttribute("title",mxResources.get("width"));P.style.textAlign="right";F.appendChild(P);mxUtils.write(F," x ");var R=document.createElement("input");R.setAttribute("size","7");R.setAttribute("title",mxResources.get("height"));R.style.textAlign="right";F.appendChild(R);
var T=document.createElement("select");T.style.marginLeft="4px";T.style.maxWidth="78px";T.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}],f=0;f<c.length;f++){var k=document.createElement("option");k.setAttribute("value",c[f].unit);mxUtils.write(k,c[f].label);T.appendChild(k)}T.value=Editor.pageSizeUnit;F.appendChild(T);G.style.display=
-"none";F.style.display="none";var A={},z=PageSetupDialog.getFormats();for(f=0;f<z.length;f++)c=z[f],A[c.key]=c,k=document.createElement("option"),k.setAttribute("value",c.key),mxUtils.write(k,c.title),B.appendChild(k);var C=function(){B.value="custom";for(var L=0;L<z.length;L++){var K=z[L];null!=K.format&&("a4"==K.key?826==g.width?(g=mxRectangle.fromRectangle(g),g.width=827):826==g.height&&(g=mxRectangle.fromRectangle(g),g.height=827):"a5"==K.key&&(584==g.width?(g=mxRectangle.fromRectangle(g),g.width=
-583):584==g.height&&(g=mxRectangle.fromRectangle(g),g.height=583)),g.width==K.format.width&&g.height==K.format.height?(B.value=K.key,v.setAttribute("checked","checked"),v.defaultChecked=!0,v.checked=!0,p.removeAttribute("checked"),p.defaultChecked=!1,p.checked=!1,detected=!0):g.width==K.format.height&&g.height==K.format.width&&(B.value=K.key,v.removeAttribute("checked"),v.defaultChecked=!1,v.checked=!1,p.setAttribute("checked","checked"),p.defaultChecked=!0,detected=p.checked=!0))}"custom"==B.value?
-(P.value=Editor.toUnit(g.width,T.value),R.value=Editor.toUnit(g.height,T.value),v.setAttribute("checked","checked"),B.value="custom",G.style.display="none",F.style.display=""):(G.style.display="",F.style.display="none")};C();b.appendChild(B);mxUtils.br(b);b.appendChild(G);b.appendChild(F);var I=function(L,K){L=A[B.value];null!=L.format?(P.value=Editor.toUnit(p.checked?L.format.height:L.format.width,T.value),R.value=Editor.toUnit(p.checked?L.format.width:L.format.height,T.value),F.style.display="none",
+"none";F.style.display="none";var B={},z=PageSetupDialog.getFormats();for(f=0;f<z.length;f++)c=z[f],B[c.key]=c,k=document.createElement("option"),k.setAttribute("value",c.key),mxUtils.write(k,c.title),A.appendChild(k);var C=function(){A.value="custom";for(var L=0;L<z.length;L++){var K=z[L];null!=K.format&&("a4"==K.key?826==g.width?(g=mxRectangle.fromRectangle(g),g.width=827):826==g.height&&(g=mxRectangle.fromRectangle(g),g.height=827):"a5"==K.key&&(584==g.width?(g=mxRectangle.fromRectangle(g),g.width=
+583):584==g.height&&(g=mxRectangle.fromRectangle(g),g.height=583)),g.width==K.format.width&&g.height==K.format.height?(A.value=K.key,v.setAttribute("checked","checked"),v.defaultChecked=!0,v.checked=!0,p.removeAttribute("checked"),p.defaultChecked=!1,p.checked=!1,detected=!0):g.width==K.format.height&&g.height==K.format.width&&(A.value=K.key,v.removeAttribute("checked"),v.defaultChecked=!1,v.checked=!1,p.setAttribute("checked","checked"),p.defaultChecked=!0,detected=p.checked=!0))}"custom"==A.value?
+(P.value=Editor.toUnit(g.width,T.value),R.value=Editor.toUnit(g.height,T.value),v.setAttribute("checked","checked"),A.value="custom",G.style.display="none",F.style.display=""):(G.style.display="",F.style.display="none")};C();b.appendChild(A);mxUtils.br(b);b.appendChild(G);b.appendChild(F);var I=function(L,K){L=B[A.value];null!=L.format?(P.value=Editor.toUnit(p.checked?L.format.height:L.format.width,T.value),R.value=Editor.toUnit(p.checked?L.format.width:L.format.height,T.value),F.style.display="none",
G.style.display=""):(G.style.display="none",F.style.display="");L=parseFloat(P.value);if(isNaN(L)||0>=L)P.value=Editor.toUnit(g.width,T.value);L=parseFloat(R.value);if(isNaN(L)||0>=L)R.value=Editor.toUnit(g.height,T.value);L=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(P.value),T.value)),Math.floor(Editor.fromUnit(parseFloat(R.value),T.value)));K||L.width==g.width&&L.height==g.height||(g=L,null!=m&&m(g))};mxEvent.addListener(e,"click",function(L){v.checked=!0;I(L);mxEvent.consume(L)});
-mxEvent.addListener(S,"click",function(L){p.checked=!0;I(L);mxEvent.consume(L)});mxEvent.addListener(P,"blur",I);mxEvent.addListener(P,"click",I);mxEvent.addListener(R,"blur",I);mxEvent.addListener(R,"click",I);mxEvent.addListener(p,"change",I);mxEvent.addListener(v,"change",I);mxEvent.addListener(B,"change",function(L){I(L,"custom"==B.value);mxEvent.consume(L)});mxEvent.addListener(T,"change",function(L){P.value=Editor.toUnit(Editor.fromUnit(P.value,Editor.pageSizeUnit),T.value);R.value=Editor.toUnit(Editor.fromUnit(R.value,
+mxEvent.addListener(S,"click",function(L){p.checked=!0;I(L);mxEvent.consume(L)});mxEvent.addListener(P,"blur",I);mxEvent.addListener(P,"click",I);mxEvent.addListener(R,"blur",I);mxEvent.addListener(R,"click",I);mxEvent.addListener(p,"change",I);mxEvent.addListener(v,"change",I);mxEvent.addListener(A,"change",function(L){I(L,"custom"==A.value);mxEvent.consume(L)});mxEvent.addListener(T,"change",function(L){P.value=Editor.toUnit(Editor.fromUnit(P.value,Editor.pageSizeUnit),T.value);R.value=Editor.toUnit(Editor.fromUnit(R.value,
Editor.pageSizeUnit),T.value);Editor.pageSizeUnit=T.value;I(L,!0);mxEvent.consume(L)});I(null,!0);return{set:function(L){g=L;C(null,null,!0)},get:function(){return g},widthInput:P,heightInput:R}};
PageSetupDialog.getFormats=function(){return[{key:"letter",title:'US-Letter (8,5" x 11")',format:mxConstants.PAGE_FORMAT_LETTER_PORTRAIT},{key:"legal",title:'US-Legal (8,5" x 14")',format:new mxRectangle(0,0,850,1400)},{key:"tabloid",title:'US-Tabloid (11" x 17")',format:new mxRectangle(0,0,1100,1700)},{key:"executive",title:'US-Executive (7" x 10")',format:new mxRectangle(0,0,700,1E3)},{key:"a0",title:"A0 (841 mm x 1189 mm)",format:new mxRectangle(0,0,3300,4681)},{key:"a1",title:"A1 (594 mm x 841 mm)",
format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",format:new mxRectangle(0,0,1654,2336)},{key:"a3",title:"A3 (297 mm x 420 mm)",format:new mxRectangle(0,0,1169,1654)},{key:"a4",title:"A4 (210 mm x 297 mm)",format:mxConstants.PAGE_FORMAT_A4_PORTRAIT},{key:"a5",title:"A5 (148 mm x 210 mm)",format:new mxRectangle(0,0,583,827)},{key:"a6",title:"A6 (105 mm x 148 mm)",format:new mxRectangle(0,0,413,583)},{key:"a7",title:"A7 (74 mm x 105 mm)",format:new mxRectangle(0,0,291,413)},
{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(b,e,g,m,v,p,B,G,S,F,P){S=null!=S?S:!0;var R=document.createElement("div"),T=document.createElement("div");T.style.width="100%";T.style.display="grid";T.style.gap="5px 8px";T.style.gridAutoColumns="auto 1fr";T.style.boxSizing="border-box";T.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 f=document.createElement("div");f.style.display="inline-block";
-f.style.textOverflow="ellipsis";f.style.whiteSpace="nowrap";f.style.overflow="hidden";f.style.fontSize="10pt";f.style.padding="2px 0";f.setAttribute("title",v||mxResources.get("filename"));mxUtils.write(f,(v||mxResources.get("filename"))+":");c.appendChild(f);T.appendChild(c);var k=document.createElement("input");k.setAttribute("value",e||"");k.style.flexGrow="1";var A=mxUtils.button(g,function(){if(null==p||p(k.value))S&&b.hideDialog(),m(k.value)});A.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
-v||null==B)if(null!=P?Editor.selectFilename(k):(k.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?k.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var z=T.parentNode;if(null!=z){var C=null;mxEvent.addListener(z,"dragleave",function(I){null!=C&&(C.style.backgroundColor="",C=null);I.stopPropagation();I.preventDefault()});mxEvent.addListener(z,"dragover",mxUtils.bind(this,function(I){null==C&&(!mxClient.IS_IE||10<document.documentMode)&&(C=k,C.style.backgroundColor=
-"#ebf2f9");I.stopPropagation();I.preventDefault()}));mxEvent.addListener(z,"drop",mxUtils.bind(this,function(I){null!=C&&(C.style.backgroundColor="",C=null);0<=mxUtils.indexOf(I.dataTransfer.types,"text/uri-list")&&(k.value=decodeURIComponent(I.dataTransfer.getData("text/uri-list")),A.click());I.stopPropagation();I.preventDefault()}))}}};c=document.createElement("div");c.style.display="inline-flex";c.style.alignItems="center";c.style.gap="4px";c.style.whiteSpace="nowrap";c.appendChild(k);T.appendChild(c);
-null==v&&null!=B||null==P||null==b.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")+":"),T.appendChild(c),c=document.createElement("div"),c.style.display="inline-flex",c.style.alignItems="center",c.style.whiteSpace="nowrap",T.appendChild(c),e=FilenameDialog.createFileTypes(b,k,b.editor.diagramFileTypes),
-e.style.width="100%",c.appendChild(e));null!=B&&T.appendChild(B);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=P?"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(){b.hideDialog();null!=F&&F()});c.className="geBtn";null==G||b.isOffline()||row.appendChild(b.createHelpIcon(G));
-b.editor.cancelFirst&&row.appendChild(c);mxEvent.addListener(k,"keypress",function(z){13==z.keyCode&&A.click()});row.appendChild(A);b.editor.cancelFirst||row.appendChild(c);T.appendChild(row);R.appendChild(T);this.container=R};FilenameDialog.filenameHelpLink=null;
-FilenameDialog.createFileTypes=function(b,e,g){var m=document.createElement("select");for(b=0;b<g.length;b++){var v=document.createElement("option");v.setAttribute("value",b);mxUtils.write(v,mxResources.get(g[b].description)+" (."+g[b].extension+")");m.appendChild(v)}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"in
-document?(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,G=0;G<g.length;G++){var S=g[G].extension,F=null;"drawio"!=S&&(F=S,S=".drawio."+S);if(p.substring(p.length-S.length-1)=="."+S||null!=F&&p.substring(p.length-F.length-1)=="."+F){B=G;break}}m.value=B};mxEvent.addListener(e,"change",b);mxEvent.addListener(e,"keyup",b);b();return m};
-var WrapperWindow=function(b,e,g,m,v,p,B){var G=b.createSidebarContainer();B(G);this.window=new mxWindow(e,G,g,m,v,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)}))};
-(function(){mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph;if(null!=B.container&&!B.transparentBackground){if(B.pageVisible){var G=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(G),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(F){B.dblClick(F)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(F){B.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(F))}),mxUtils.bind(this,function(F){null!=
-B.tooltipHandler&&B.tooltipHandler.isHideOnHover()&&B.tooltipHandler.hide();B.isMouseDown&&!mxEvent.isConsumed(F)&&B.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(F))}),mxUtils.bind(this,function(F){B.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(F))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=G,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};
-mxGraphView.prototype.validateBackgroundStyles=function(B,G,S){var F=this.graph;B=null!=B?B:1;var P=mxUtils.getLightDarkColor(null==F.background||F.background==mxConstants.NONE?F.defaultPageBackgroundColor:F.background).cssText,R=mxUtils.getLightDarkColor(F.defaultPageBorderColor).cssText,T=null!=P&&this.gridColor!=P.toLowerCase()?this.gridColor:"#ffffff",c="none",f="";if(F.isGridEnabled()||F.gridVisible){f=10;mxClient.IS_SVG?(c=unescape(encodeURIComponent(this.createSvgGrid(T,B))),c=window.btoa?
-btoa(c):Base64.encode(c,!0),c="url(data:image/svg+xml;base64,"+c+")",f=F.gridSize*this.scale*this.gridSteps*B):c="url("+this.gridImage+")";var k=T=0;G=null!=G?G-this.translate.x*this.scale:0;S=null!=S?S-this.translate.y*this.scale:0;var A=F.gridSize*this.scale*this.gridSteps,z=G%A;A=S%A;null!=F.view.backgroundPageShape&&(k=this.getBackgroundPageBounds(),T=1+k.x,k=1+k.y);f=-Math.round(f-mxUtils.mod(this.translate.x*this.scale-T+G,f)+z*B)+"px "+-Math.round(f-mxUtils.mod(this.translate.y*this.scale-
-k+S,f)+A*B)+"px"}B=F.view.canvas;null!=B.ownerSVGElement&&(B=B.ownerSVGElement);T=!Editor.isDarkMode()&&F.enableDiagramBackground;null!=F.view.backgroundPageShape?(F.view.backgroundPageShape.node.style.backgroundPosition=f,F.view.backgroundPageShape.node.style.backgroundImage=c,F.view.backgroundPageShape.node.style.backgroundColor=P,F.view.backgroundPageShape.node.style.borderColor=R,F.view.backgroundPageShape.node.style.colorScheme="none"==F.getAdaptiveColors()?"light":"",F.container.classList.add("geDiagramBackdrop"),
-B.style.backgroundImage="none",B.style.backgroundColor="",F.container.style.backgroundColor=T?F.diagramBackgroundColor:""):(F.container.classList.remove("geDiagramBackdrop"),B.style.backgroundPosition=f,B.style.backgroundImage=c,!T||null!=F.background&&F.background!=mxConstants.NONE?B.style.backgroundColor=P:(B.style.backgroundColor=F.diagramBackgroundColor,F.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(B,G){for(var S=this.graph.gridSize*this.scale*(null!=G?G:
-1);S<this.minGridSize;)S*=2;G=this.gridSteps*S;for(var F=[],P=1;P<this.gridSteps;P++){var R=P*S;F.push("M 0 "+R+" L "+G+" "+R+" M "+R+" 0 L "+R+" "+G)}B=mxUtils.getLightDarkColor(B);S="color-scheme: light dark;";mxClient.IS_SF&&(S="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+S+'" width="'+G+'" height="'+G+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+G+'" height="'+G+'" patternUnits="userSpaceOnUse"><path d="'+
-F.join(" ")+'" fill="none" style="stroke:'+mxUtils.htmlEntities(B.cssText)+';" stroke="'+B.light+'" opacity="0.2" stroke-width="1"/><path d="M '+G+" 0 L 0 0 0 "+G+'" fill="none" style="stroke:'+mxUtils.htmlEntities(B.cssText)+';" stroke="'+B.light+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var b=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(B,G){b.apply(this,arguments);if(null!=this.shiftPreview1){var S=this.view.canvas;null!=
-S.ownerSVGElement&&(S=S.ownerSVGElement);var F=this.gridSize*this.view.scale*this.view.gridSteps;F=-Math.round(F-mxUtils.mod(this.view.translate.x*this.view.scale+B,F))+"px "+-Math.round(F-mxUtils.mod(this.view.translate.y*this.view.scale+G,F))+"px";S.style.backgroundPosition=F}};mxGraph.prototype.updatePageBreaks=function(B,G,S){var F=this.view.scale,P=this.view.translate,R=this.pageFormat,T=F*this.pageScale,c=this.view.getBackgroundPageBounds();G=c.width;S=c.height;var f=new mxRectangle(F*P.x,F*
-P.y,R.width*T,R.height*T),k=(B=B&&Math.min(f.width,f.height)>this.minPageBreakDist)?Math.ceil(S/f.height)-1:0,A=B?Math.ceil(G/f.width)-1:0,z=c.x+G,C=c.y+S;null==this.horizontalPageBreaks&&0<k&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<A&&(this.verticalPageBreaks=[]);B=mxUtils.bind(this,function(I){if(null!=I){for(var L=I==this.horizontalPageBreaks?k:A,K=0;K<=L;K++){var O=I==this.horizontalPageBreaks?[new mxPoint(Math.round(c.x),Math.round(c.y+(K+1)*f.height)),new mxPoint(Math.round(z),
-Math.round(c.y+(K+1)*f.height))]:[new mxPoint(Math.round(c.x+(K+1)*f.width),Math.round(c.y)),new mxPoint(Math.round(c.x+(K+1)*f.width),Math.round(C))];null!=I[K]?(I[K].points=O,I[K].redraw()):(O=new mxPolyline(O,this.pageBreakColor),O.dialect=this.dialect,O.isDashed=this.pageBreakDashed,O.pointerEvents=!1,O.init(this.view.backgroundPane),O.redraw(),I[K]=O)}for(K=L;K<I.length;K++)null!=I[K]&&I[K].destroy();I.splice(L,I.length-L)}});B(this.horizontalPageBreaks);B(this.verticalPageBreaks)};var e=mxGraphHandler.prototype.shouldRemoveCellsFromParent;
-mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(B,G,S){for(var F=0;F<G.length;F++){if(this.graph.isTableCell(G[F])||this.graph.isTableRow(G[F]))return!1;if(this.graph.getModel().isVertex(G[F])){var P=this.graph.getCellGeometry(G[F]);if(null!=P&&P.relative)return!1}}return e.apply(this,arguments)};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var B=g.apply(this,arguments);B.intersects=mxUtils.bind(this,function(G,S){return this.isConnecting()?
-!0:mxCellMarker.prototype.intersects.apply(B,arguments)});return B};mxGraphView.prototype.createBackgroundPageShape=function(B){return new mxRectangleShape(B,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var B=this.getGraphBounds(),G=0<B.width?B.x/this.scale-this.translate.x:0,S=0<B.height?B.y/this.scale-this.translate.y:0,F=this.graph.pageFormat,P=this.graph.pageScale,R=F.width*P;F=F.height*P;P=Math.floor(Math.min(0,G)/R);var T=Math.floor(Math.min(0,
-S)/F);return new mxRectangle(this.scale*(this.translate.x+P*R),this.scale*(this.translate.y+T*F),this.scale*(Math.ceil(Math.max(1,G+B.width/this.scale)/R)-P)*R,this.scale*(Math.ceil(Math.max(1,S+B.height/this.scale)/F)-T)*F)};var m=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(B,G){m.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=
-B+"px",this.view.backgroundPageShape.node.style.marginTop=G+"px")};var v=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(B,G,S,F,P,R){var T=v.apply(this,arguments);null==R||R||mxEvent.addListener(T,"mousedown",function(c){mxEvent.consume(c)});return T};var p=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(B,G,S){var F=this.graph.model.getParent(B);if(G){var P=this.graph.model.isEdge(B)?null:this.graph.getCellGeometry(B);
-P=!this.graph.model.isEdge(F)&&!this.graph.isSiblingSelected(B)&&(null!=P&&P.relative||!this.graph.isContainer(F)||this.graph.isPart(B))}else if(P=p.apply(this,arguments),this.graph.isTableCell(B)||this.graph.isTableRow(B))P=F,this.graph.isTable(P)||(P=this.graph.model.getParent(P)),P=!this.graph.selectionCellsHandler.isHandled(P)||this.graph.isCellSelected(P)&&this.graph.isToggleEvent(S.getEvent())||this.graph.isCellSelected(B)&&!this.graph.isToggleEvent(S.getEvent())||this.graph.isTableCell(B)&&
-this.graph.isCellSelected(F);return P};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(B){B=B.getCell();for(var G=this.graph.getModel(),S=G.getParent(B),F=this.graph.view.getState(S),P=this.graph.isCellSelected(B);null!=F&&(G.isVertex(S)||G.isEdge(S));){var R=this.graph.isCellSelected(S);P=P||R;if(R||!P&&(this.graph.isTableCell(B)||this.graph.isTableRow(B)))B=S;S=G.getParent(S)}return B}})();EditorUi=function(b,e,g){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=e||document.body;var m=this,v=this.editor.graph;v.lightbox=g;var p=v.getGraphBounds;v.getGraphBounds=function(){var ca=p.apply(this,arguments),W=this.backgroundImage;if(null!=W&&null!=W.width&&null!=W.height){var ma=this.view.translate,la=this.view.scale;ca=mxRectangle.fromRectangle(ca);ca.add(new mxRectangle((ma.x+W.x)*la,(ma.y+W.y)*la,W.width*la,W.height*la))}return ca};v.useCssTransforms&&
-(this.lazyZoomDelay=0);mxPopupMenu.prototype.submenuImage=Graph.createSvgImage(10,10,'<path d="M3,1L8,5L3,9Z" fill="light-dark(#3F3F3F, #C0C0C0)"/>').src;Editor.checkmarkImage=Graph.createSvgImage(22,18,'<path transform="translate(4 0)" d="M7.181,15.007a1,1,0,0,1-.793-0.391L3.222,10.5A1,1,0,1,1,4.808,9.274L7.132,12.3l6.044-8.86A1,1,0,1,1,14.83,4.569l-6.823,10a1,1,0,0,1-.8.437H7.181Z" fill="light-dark(#3F3F3F, #C0C0C0)"/>').src;this.selectionStateListener=mxUtils.bind(this,function(ca,W){this.clearSelectionState()});
-v.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);v.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);v.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);v.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);v.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){this.footerHeight=0;v.isEnabled=function(){return!1};v.panningHandler.isForcePanningEvent=function(ca){for(var W=
-ca.getSource();null!=W&&W!=v.container;){if("foreignObject"===W.nodeName||"text"===W.nodeName)return!1;W=W.parentNode}return!mxEvent.isPopupTrigger(ca.getEvent())};var B=v.panningHandler.start;v.panningHandler.start=function(){B.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!v.standalone){var G=!1,S=!1;this.setDefaultStyle=function(ca){try{v.getModel().isEdge(ca)?S=v.pasteEdgeStyle=!1:G=!1;var W=v.getCellStyle(ca,!1),ma=[],la=[],Y;
-for(Y in W)ma.push(W[Y]),la.push(Y);v.getModel().isEdge(ca)?v.currentEdgeStyle={}:v.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",ma,"cells",[ca],"force",!0));v.getModel().isEdge(ca)?S=v.pasteEdgeStyle=!0:G=!0}catch(fa){this.handleError(fa)}};this.clearDefaultStyle=function(){v.currentEdgeStyle=mxUtils.clone(v.defaultEdgeStyle);v.currentVertexStyle=mxUtils.clone(v.defaultVertexStyle);G=S=v.pasteEdgeStyle=!1;this.fireEvent(new mxEventObject("styleChanged",
-"keys",[],"values",[],"cells",[]))};v.addListener("cellsInserted",function(ca,W){v.pasteCellStyles(v.includeDescendants(W.getProperty("cells")))});v.addListener("textInserted",function(ca,W){v.pasteCellStyles(W.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var F=mxUtils.bind(this,function(ca){null==ca&&(ca=window.event);return v.isEditing()||null!=ca&&this.isSelectionAllowed(ca)});this.container!=document.body||this.editor.chromeless&&!this.editor.editable||(this.menubarContainer.onselectstart=
-F,this.menubarContainer.onmousedown=F,this.toolbarContainer.onselectstart=F,this.toolbarContainer.onmousedown=F,this.diagramContainer.onselectstart=F,this.diagramContainer.onmousedown=F,this.sidebarContainer.onselectstart=F,this.sidebarContainer.onmousedown=F,this.formatContainer.onselectstart=F,this.formatContainer.onmousedown=F,this.footerContainer.onselectstart=F,this.footerContainer.onmousedown=F,null!=this.tabContainer&&(this.tabContainer.onselectstart=F),mxClient.IS_IOS&&(e=function(){var ca=
-null;if(/iP(hone|od|ad)/.test(navigator.platform)){var W=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{ca=[parseInt(W[1],10),parseInt(W[2],10),parseInt(W[3]||0,10)]}catch(ma){}}return ca}(),null!=e&&16<=e[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.formatContainer.style,"userSelect",
-"none"),mxUtils.setPrefixedStyle(this.footerContainer.style,"userSelect","none"),null!=this.tabContainer&&mxUtils.setPrefixedStyle(this.tabContainer.style,"userSelect","none"))));!this.editor.chromeless||this.editor.editable?(e=function(ca){if(null!=ca){var W=mxEvent.getSource(ca);if("A"==W.nodeName)for(;null!=W;){if("geHint"==W.className)return!0;W=W.parentNode}}return F(ca)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?mxEvent.addListener(this.diagramContainer,
-"contextmenu",e):this.diagramContainer.oncontextmenu=e):v.panningHandler.usePopupTrigger=!1;v.init(this.diagramContainer);mxClient.IS_SVG&&null!=v.view.getDrawPane()&&(e=v.view.getDrawPane().ownerSVGElement,null!=e&&(e.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=v.graphHandler){var P=v.graphHandler.start;v.graphHandler.start=function(){null!=m.hoverIcons&&m.hoverIcons.reset();P.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,
-function(ca){var W=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(ca)-W.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(ca)-W.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var R=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(ca,W){return m.isSpaceDown()||R.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(ca){16==ca.which?
-this.shiftDown=!0:32!=ca.which||v.isEditing()?mxEvent.isConsumed(ca)||27!=ca.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),v.container.style.cursor="move",v.isEditing()||mxEvent.getSource(ca)!=v.container||mxEvent.consume(ca))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(ca){v.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var T=v.panningHandler.isForcePanningEvent;
-v.panningHandler.isForcePanningEvent=function(ca){return T.apply(this,arguments)||m.isSpaceDown()||mxEvent.isMouseEvent(ca.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(ca.getEvent()))&&(!mxEvent.isControlDown(ca.getEvent())&&mxEvent.isRightMouseButton(ca.getEvent())||mxEvent.isMiddleMouseButton(ca.getEvent()))};var c=v.cellEditor.isStopEditingEvent;v.cellEditor.isStopEditingEvent=function(ca){return c.apply(this,arguments)||13==ca.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(ca)||
-mxClient.IS_MAC&&mxEvent.isMetaDown(ca)||mxClient.IS_SF&&mxEvent.isShiftDown(ca))};var f=v.isZoomWheelEvent;v.isZoomWheelEvent=function(){return m.isSpaceDown()||f.apply(this,arguments)};var k=!1,A=null,z=null,C=null,I=mxUtils.bind(this,function(){if(null!=this.toolbar&&k!=v.cellEditor.isContentEditing()){for(var ca=this.toolbar.container.firstChild,W=[];null!=ca;){var ma=ca.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,ca)&&(ca.parentNode.removeChild(ca),W.push(ca));ca=ma}ca=this.toolbar.fontMenu;
-ma=this.toolbar.sizeMenu;if(null==C)this.toolbar.createTextToolbar();else{for(var la=0;la<C.length;la++)this.toolbar.container.appendChild(C[la]);this.toolbar.fontMenu=A;this.toolbar.sizeMenu=z}k=v.cellEditor.isContentEditing();A=ca;z=ma;C=W}}),L=v.cellEditor.startEditing;v.cellEditor.startEditing=function(){L.apply(this,arguments);I();if(v.cellEditor.isContentEditing()){var ca=!1,W=function(){ca||(ca=!0,window.setTimeout(function(){var ma=v.getSelectedEditingElement();null!=ma&&(ma=mxUtils.getCurrentStyle(ma),
-null!=ma&&null!=m.toolbar&&(m.toolbar.setFontName(mxUtils.getCssFontFamily(ma.fontFamily)),m.toolbar.setFontSize(parseInt(ma.fontSize))));ca=!1},0))};mxEvent.addListener(v.cellEditor.textarea,"input",W);mxEvent.addListener(v.cellEditor.textarea,"touchend",W);mxEvent.addListener(v.cellEditor.textarea,"mouseup",W);mxEvent.addListener(v.cellEditor.textarea,"keyup",W);W()}};var K=v.cellEditor.stopEditing;v.cellEditor.stopEditing=function(ca,W){try{K.apply(this,arguments),I()}catch(ma){m.handleError(ma)}};
-v.container.setAttribute("tabindex","0");v.container.style.cursor="default";if(window.self===window.top&&null!=v.container.parentNode)try{v.container.focus()}catch(ca){}var O=v.fireMouseEvent;v.fireMouseEvent=function(ca,W,ma){try{ca==mxEvent.MOUSE_DOWN&&this.container.focus(),O.apply(this,arguments)}catch(la){m.handleError(la)}};var da=v.foldCells;v.foldCells=function(ca,W,ma,la,Y){try{da.apply(this,arguments)}catch(fa){m.handleError(fa)}};v.popupMenuHandler.autoExpand=!0;null!=this.menus&&(v.popupMenuHandler.factoryMethod=
-mxUtils.bind(this,function(ca,W,ma){this.menus.createPopupMenu(ca,W,ma)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(ca){v.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};v.connectionHandler.addListener(mxEvent.CONNECT,function(ca,W){var ma=[W.getProperty("cell")];W.getProperty("terminalInserted")&&(ma.push(W.getProperty("terminal")),window.setTimeout(function(){null!=m.hoverIcons&&m.hoverIcons.update(v.view.getState(ma[ma.length-
-1]))},0));v.pasteCellStyles(ma)});this.addListener("styleChanged",mxUtils.bind(this,function(ca,W){ca=W.getProperty("force");(this.updateDefaultStyle||ca)&&v.copyCellStyles(W.getProperty("cells"),W.getProperty("keys"),W.getProperty("values"),v.currentVertexStyle,v.currentEdgeStyle,G,S);null!=this.toolbar&&(this.toolbar.setFontName(v.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(v.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&
-(this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0].className="orthogonalEdgeStyle"==v.currentEdgeStyle.edgeStyle&&"1"==v.currentEdgeStyle.curved?"geSprite geSprite-curved":"straight"==v.currentEdgeStyle.edgeStyle||"none"==v.currentEdgeStyle.edgeStyle||null==v.currentEdgeStyle.edgeStyle?"geSprite geSprite-straight":"entityRelationEdgeStyle"==v.currentEdgeStyle.edgeStyle?"geSprite geSprite-entity":"elbowEdgeStyle"==v.currentEdgeStyle.edgeStyle?"geSprite geSprite-"+("vertical"==v.currentEdgeStyle.elbow?
-"verticalelbow":"horizontalelbow"):"isometricEdgeStyle"==v.currentEdgeStyle.edgeStyle?"geSprite geSprite-"+("vertical"==v.currentEdgeStyle.elbow?"verticalisometric":"horizontalisometric"):"geSprite geSprite-orthogonal"),null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0].className="link"==v.currentEdgeStyle.shape?"geSprite geSprite-linkedge":"flexArrow"==v.currentEdgeStyle.shape?"geSprite geSprite-arrow":"arrow"==v.currentEdgeStyle.shape?"geSprite geSprite-simplearrow":
-"geSprite geSprite-connection"))}));null!=this.toolbar&&(b=mxUtils.bind(this,function(){var ca=v.currentVertexStyle.fontFamily||"Helvetica",W=String(v.currentVertexStyle.fontSize||"12"),ma=v.getView().getState(v.getSelectionCell());null!=ma&&(ca=ma.style[mxConstants.STYLE_FONTFAMILY]||ca,W=ma.style[mxConstants.STYLE_FONTSIZE]||W,10<ca.length&&(ca=ca.substring(0,8)+"..."));this.toolbar.setFontName(ca);this.toolbar.setFontSize(W)}),v.getSelectionModel().addListener(mxEvent.CHANGE,b),v.getModel().addListener(mxEvent.CHANGE,
-b));v.addListener(mxEvent.CELLS_ADDED,function(ca,W){ca=W.getProperty("cells");W=W.getProperty("parent");null!=W&&v.getModel().isLayer(W)&&!v.isCellVisible(W)&&null!=ca&&0<ca.length&&v.getModel().setVisible(W,!0)});Graph.selectParentLayer&&v.selectionModel.addListener(mxEvent.CHANGE,function(){if(v.isEnabled()&&!v.isSelectionEmpty()){var ca=v.getLayerForCells(v.getSelectionCells());null!=ca&&v.setDefaultParent(ca)}});this.gestureHandler=mxUtils.bind(this,function(ca){null!=this.currentMenu&&mxEvent.getSource(ca)!=
+var FilenameDialog=function(b,e,g,m,v,p,A,G,S,F,P){S=null!=S?S:!0;var R=document.createElement("div"),T=document.createElement("div");T.style.width="100%";T.style.display="grid";T.style.gap="5px 8px";T.style.gridAutoColumns="auto 1fr";T.style.boxSizing="border-box";T.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 f=document.createElement("div");f.style.display="inline-block";
+f.style.textOverflow="ellipsis";f.style.whiteSpace="nowrap";f.style.overflow="hidden";f.style.fontSize="10pt";f.style.padding="2px 0";f.setAttribute("title",v||mxResources.get("filename"));mxUtils.write(f,(v||mxResources.get("filename"))+":");c.appendChild(f);T.appendChild(c);var k=document.createElement("input");k.setAttribute("value",e||"");k.style.flexGrow="1";var B=mxUtils.button(g,function(){if(null==p||p(k.value))S&&b.hideDialog(),m(k.value)});B.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
+v||null==A)if(null!=P?Editor.selectFilename(k):(k.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?k.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var z=T.parentNode;if(null!=z){var C=null;mxEvent.addListener(z,"dragleave",function(I){null!=C&&(C.style.backgroundColor="",C=null);I.stopPropagation();I.preventDefault()});mxEvent.addListener(z,"dragover",mxUtils.bind(this,function(I){null==C&&(!mxClient.IS_IE||10<document.documentMode)&&(C=k,C.style.backgroundColor=
+"#ebf2f9");I.stopPropagation();I.preventDefault()}));mxEvent.addListener(z,"drop",mxUtils.bind(this,function(I){null!=C&&(C.style.backgroundColor="",C=null);0<=mxUtils.indexOf(I.dataTransfer.types,"text/uri-list")&&(k.value=decodeURIComponent(I.dataTransfer.getData("text/uri-list")),B.click());I.stopPropagation();I.preventDefault()}))}}};c=document.createElement("div");c.style.display="inline-flex";c.style.alignItems="center";c.style.gap="4px";c.style.whiteSpace="nowrap";c.appendChild(k);T.appendChild(c);
+null==v&&null!=A||null==P||null==b.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")+":"),T.appendChild(c),c=document.createElement("div"),c.style.display="inline-flex",c.style.alignItems="center",c.style.whiteSpace="nowrap",T.appendChild(c),e=FilenameDialog.createFileTypes(b,k,b.editor.diagramFileTypes),
+e.style.width="100%",c.appendChild(e));null!=A&&T.appendChild(A);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=P?"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(){b.hideDialog();null!=F&&F()});c.className="geBtn";null==G||b.isOffline()||row.appendChild(b.createHelpIcon(G));
+b.editor.cancelFirst&&row.appendChild(c);mxEvent.addListener(k,"keypress",function(z){13==z.keyCode&&B.click()});row.appendChild(B);b.editor.cancelFirst||row.appendChild(c);T.appendChild(row);R.appendChild(T);this.container=R};FilenameDialog.filenameHelpLink=null;
+FilenameDialog.createFileTypes=function(b,e,g){var m=document.createElement("select");for(b=0;b<g.length;b++){var v=document.createElement("option");v.setAttribute("value",b);mxUtils.write(v,mxResources.get(g[b].description)+" (."+g[b].extension+")");m.appendChild(v)}mxEvent.addListener(m,"change",function(p){p=g[m.value].extension;var A=e.value.lastIndexOf(".drawio.");A=0<A?A:e.value.lastIndexOf(".");"drawio"!=p&&(p="drawio."+p);e.value=0<A?e.value.substring(0,A+1)+p:e.value+"."+p;"createEvent"in
+document?(p=document.createEvent("HTMLEvents"),p.initEvent("change",!1,!0),e.dispatchEvent(p)):e.fireEvent("onchange")});b=function(p){p=e.value.toLowerCase();for(var A=0,G=0;G<g.length;G++){var S=g[G].extension,F=null;"drawio"!=S&&(F=S,S=".drawio."+S);if(p.substring(p.length-S.length-1)=="."+S||null!=F&&p.substring(p.length-F.length-1)=="."+F){A=G;break}}m.value=A};mxEvent.addListener(e,"change",b);mxEvent.addListener(e,"keyup",b);b();return m};
+var WrapperWindow=function(b,e,g,m,v,p,A){var G=b.createSidebarContainer();A(G);this.window=new mxWindow(e,G,g,m,v,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)}))};
+(function(){mxGraphView.prototype.validateBackgroundPage=function(){var A=this.graph;if(null!=A.container&&!A.transparentBackground){if(A.pageVisible){var G=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var S=A.container.firstChild;null!=S&&S.nodeType!=mxConstants.NODETYPE_ELEMENT;)S=S.nextSibling;null!=S&&(this.backgroundPageShape=this.createBackgroundPageShape(G),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
+this.backgroundPageShape.init(A.container),S.style.position="absolute",A.container.insertBefore(this.backgroundPageShape.node,S),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(F){A.dblClick(F)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(F){A.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(F))}),mxUtils.bind(this,function(F){null!=
+A.tooltipHandler&&A.tooltipHandler.isHideOnHover()&&A.tooltipHandler.hide();A.isMouseDown&&!mxEvent.isConsumed(F)&&A.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(F))}),mxUtils.bind(this,function(F){A.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(F))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=G,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};
+mxGraphView.prototype.validateBackgroundStyles=function(A,G,S){var F=this.graph;A=null!=A?A:1;var P=mxUtils.getLightDarkColor(null==F.background||F.background==mxConstants.NONE?F.defaultPageBackgroundColor:F.background).cssText,R=mxUtils.getLightDarkColor(F.defaultPageBorderColor).cssText,T=null!=P&&this.gridColor!=P.toLowerCase()?this.gridColor:"#ffffff",c="none",f="";if(F.isGridEnabled()||F.gridVisible){f=10;mxClient.IS_SVG?(c=unescape(encodeURIComponent(this.createSvgGrid(T,A))),c=window.btoa?
+btoa(c):Base64.encode(c,!0),c="url(data:image/svg+xml;base64,"+c+")",f=F.gridSize*this.scale*this.gridSteps*A):c="url("+this.gridImage+")";var k=T=0;G=null!=G?G-this.translate.x*this.scale:0;S=null!=S?S-this.translate.y*this.scale:0;var B=F.gridSize*this.scale*this.gridSteps,z=G%B;B=S%B;null!=F.view.backgroundPageShape&&(k=this.getBackgroundPageBounds(),T=1+k.x,k=1+k.y);f=-Math.round(f-mxUtils.mod(this.translate.x*this.scale-T+G,f)+z*A)+"px "+-Math.round(f-mxUtils.mod(this.translate.y*this.scale-
+k+S,f)+B*A)+"px"}A=F.view.canvas;null!=A.ownerSVGElement&&(A=A.ownerSVGElement);T=!Editor.isDarkMode()&&F.enableDiagramBackground;null!=F.view.backgroundPageShape?(F.view.backgroundPageShape.node.style.backgroundPosition=f,F.view.backgroundPageShape.node.style.backgroundImage=c,F.view.backgroundPageShape.node.style.backgroundColor=P,F.view.backgroundPageShape.node.style.borderColor=R,F.view.backgroundPageShape.node.style.colorScheme="none"==F.getAdaptiveColors()?"light":"",F.container.classList.add("geDiagramBackdrop"),
+A.style.backgroundImage="none",A.style.backgroundColor="",F.container.style.backgroundColor=T?F.diagramBackgroundColor:""):(F.container.classList.remove("geDiagramBackdrop"),A.style.backgroundPosition=f,A.style.backgroundImage=c,!T||null!=F.background&&F.background!=mxConstants.NONE?A.style.backgroundColor=P:(A.style.backgroundColor=F.diagramBackgroundColor,F.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(A,G){for(var S=this.graph.gridSize*this.scale*(null!=G?G:
+1);S<this.minGridSize;)S*=2;G=this.gridSteps*S;for(var F=[],P=1;P<this.gridSteps;P++){var R=P*S;F.push("M 0 "+R+" L "+G+" "+R+" M "+R+" 0 L "+R+" "+G)}A=mxUtils.getLightDarkColor(A);S="color-scheme: light dark;";mxClient.IS_SF&&(S="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+S+'" width="'+G+'" height="'+G+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+G+'" height="'+G+'" patternUnits="userSpaceOnUse"><path d="'+
+F.join(" ")+'" fill="none" style="stroke:'+mxUtils.htmlEntities(A.cssText)+';" stroke="'+A.light+'" opacity="0.2" stroke-width="1"/><path d="M '+G+" 0 L 0 0 0 "+G+'" fill="none" style="stroke:'+mxUtils.htmlEntities(A.cssText)+';" stroke="'+A.light+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var b=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(A,G){b.apply(this,arguments);if(null!=this.shiftPreview1){var S=this.view.canvas;null!=
+S.ownerSVGElement&&(S=S.ownerSVGElement);var F=this.gridSize*this.view.scale*this.view.gridSteps;F=-Math.round(F-mxUtils.mod(this.view.translate.x*this.view.scale+A,F))+"px "+-Math.round(F-mxUtils.mod(this.view.translate.y*this.view.scale+G,F))+"px";S.style.backgroundPosition=F}};mxGraph.prototype.updatePageBreaks=function(A,G,S){var F=this.view.scale,P=this.view.translate,R=this.pageFormat,T=F*this.pageScale,c=this.view.getBackgroundPageBounds();G=c.width;S=c.height;var f=new mxRectangle(F*P.x,F*
+P.y,R.width*T,R.height*T),k=(A=A&&Math.min(f.width,f.height)>this.minPageBreakDist)?Math.ceil(S/f.height)-1:0,B=A?Math.ceil(G/f.width)-1:0,z=c.x+G,C=c.y+S;null==this.horizontalPageBreaks&&0<k&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<B&&(this.verticalPageBreaks=[]);A=mxUtils.bind(this,function(I){if(null!=I){for(var L=I==this.horizontalPageBreaks?k:B,K=0;K<=L;K++){var O=I==this.horizontalPageBreaks?[new mxPoint(Math.round(c.x),Math.round(c.y+(K+1)*f.height)),new mxPoint(Math.round(z),
+Math.round(c.y+(K+1)*f.height))]:[new mxPoint(Math.round(c.x+(K+1)*f.width),Math.round(c.y)),new mxPoint(Math.round(c.x+(K+1)*f.width),Math.round(C))];null!=I[K]?(I[K].points=O,I[K].redraw()):(O=new mxPolyline(O,this.pageBreakColor),O.dialect=this.dialect,O.isDashed=this.pageBreakDashed,O.pointerEvents=!1,O.init(this.view.backgroundPane),O.redraw(),I[K]=O)}for(K=L;K<I.length;K++)null!=I[K]&&I[K].destroy();I.splice(L,I.length-L)}});A(this.horizontalPageBreaks);A(this.verticalPageBreaks)};var e=mxGraphHandler.prototype.shouldRemoveCellsFromParent;
+mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(A,G,S){for(var F=0;F<G.length;F++){if(this.graph.isTableCell(G[F])||this.graph.isTableRow(G[F]))return!1;if(this.graph.getModel().isVertex(G[F])){var P=this.graph.getCellGeometry(G[F]);if(null!=P&&P.relative)return!1}}return e.apply(this,arguments)};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var A=g.apply(this,arguments);A.intersects=mxUtils.bind(this,function(G,S){return this.isConnecting()?
+!0:mxCellMarker.prototype.intersects.apply(A,arguments)});return A};mxGraphView.prototype.createBackgroundPageShape=function(A){return new mxRectangleShape(A,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var A=this.getGraphBounds(),G=0<A.width?A.x/this.scale-this.translate.x:0,S=0<A.height?A.y/this.scale-this.translate.y:0,F=this.graph.pageFormat,P=this.graph.pageScale,R=F.width*P;F=F.height*P;P=Math.floor(Math.min(0,G)/R);var T=Math.floor(Math.min(0,
+S)/F);return new mxRectangle(this.scale*(this.translate.x+P*R),this.scale*(this.translate.y+T*F),this.scale*(Math.ceil(Math.max(1,G+A.width/this.scale)/R)-P)*R,this.scale*(Math.ceil(Math.max(1,S+A.height/this.scale)/F)-T)*F)};var m=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(A,G){m.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=
+A+"px",this.view.backgroundPageShape.node.style.marginTop=G+"px")};var v=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(A,G,S,F,P,R){var T=v.apply(this,arguments);null==R||R||mxEvent.addListener(T,"mousedown",function(c){mxEvent.consume(c)});return T};var p=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(A,G,S){var F=this.graph.model.getParent(A);if(G){var P=this.graph.model.isEdge(A)?null:this.graph.getCellGeometry(A);
+P=!this.graph.model.isEdge(F)&&!this.graph.isSiblingSelected(A)&&(null!=P&&P.relative||!this.graph.isContainer(F)||this.graph.isPart(A))}else if(P=p.apply(this,arguments),this.graph.isTableCell(A)||this.graph.isTableRow(A))P=F,this.graph.isTable(P)||(P=this.graph.model.getParent(P)),P=!this.graph.selectionCellsHandler.isHandled(P)||this.graph.isCellSelected(P)&&this.graph.isToggleEvent(S.getEvent())||this.graph.isCellSelected(A)&&!this.graph.isToggleEvent(S.getEvent())||this.graph.isTableCell(A)&&
+this.graph.isCellSelected(F);return P};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(A){A=A.getCell();for(var G=this.graph.getModel(),S=G.getParent(A),F=this.graph.view.getState(S),P=this.graph.isCellSelected(A);null!=F&&(G.isVertex(S)||G.isEdge(S));){var R=this.graph.isCellSelected(S);P=P||R;if(R||!P&&(this.graph.isTableCell(A)||this.graph.isTableRow(A)))A=S;S=G.getParent(S)}return A}})();EditorUi=function(b,e,g){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=e||document.body;var m=this,v=this.editor.graph;v.lightbox=g;var p=v.getGraphBounds;v.getGraphBounds=function(){var ca=p.apply(this,arguments),V=this.backgroundImage;if(null!=V&&null!=V.width&&null!=V.height){var ma=this.view.translate,la=this.view.scale;ca=mxRectangle.fromRectangle(ca);ca.add(new mxRectangle((ma.x+V.x)*la,(ma.y+V.y)*la,V.width*la,V.height*la))}return ca};v.useCssTransforms&&
+(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(ca,V){this.clearSelectionState()});v.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);v.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);v.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);v.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);v.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){this.footerHeight=
+0;v.isEnabled=function(){return!1};v.panningHandler.isForcePanningEvent=function(ca){for(var V=ca.getSource();null!=V&&V!=v.container;){if("foreignObject"===V.nodeName||"text"===V.nodeName)return!1;V=V.parentNode}return!mxEvent.isPopupTrigger(ca.getEvent())};var A=v.panningHandler.start;v.panningHandler.start=function(){A.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!v.standalone){var G=!1,S=!1;this.setDefaultStyle=function(ca){try{v.getModel().isEdge(ca)?
+S=v.pasteEdgeStyle=!1:G=!1;var V=v.getCellStyle(ca,!1),ma=[],la=[],Y;for(Y in V)ma.push(V[Y]),la.push(Y);v.getModel().isEdge(ca)?v.currentEdgeStyle={}:v.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",ma,"cells",[ca],"force",!0));v.getModel().isEdge(ca)?S=v.pasteEdgeStyle=!0:G=!0}catch(fa){this.handleError(fa)}};this.clearDefaultStyle=function(){v.currentEdgeStyle=mxUtils.clone(v.defaultEdgeStyle);v.currentVertexStyle=mxUtils.clone(v.defaultVertexStyle);G=
+S=v.pasteEdgeStyle=!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};v.addListener("cellsInserted",function(ca,V){v.pasteCellStyles(v.includeDescendants(V.getProperty("cells")))});v.addListener("textInserted",function(ca,V){v.pasteCellStyles(V.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var F=mxUtils.bind(this,function(ca){null==ca&&(ca=window.event);return v.isEditing()||null!=ca&&this.isSelectionAllowed(ca)});this.container!=document.body||
+this.editor.chromeless&&!this.editor.editable||(this.menubarContainer.onselectstart=F,this.menubarContainer.onmousedown=F,this.toolbarContainer.onselectstart=F,this.toolbarContainer.onmousedown=F,this.diagramContainer.onselectstart=F,this.diagramContainer.onmousedown=F,this.sidebarContainer.onselectstart=F,this.sidebarContainer.onmousedown=F,this.formatContainer.onselectstart=F,this.formatContainer.onmousedown=F,this.footerContainer.onselectstart=F,this.footerContainer.onmousedown=F,null!=this.tabContainer&&
+(this.tabContainer.onselectstart=F),mxClient.IS_IOS&&(e=function(){var ca=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var V=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{ca=[parseInt(V[1],10),parseInt(V[2],10),parseInt(V[3]||0,10)]}catch(ma){}}return ca}(),null!=e&&16<=e[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect",
+"none"),mxUtils.setPrefixedStyle(this.formatContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.footerContainer.style,"userSelect","none"),null!=this.tabContainer&&mxUtils.setPrefixedStyle(this.tabContainer.style,"userSelect","none"))));!this.editor.chromeless||this.editor.editable?(e=function(ca){if(null!=ca){var V=mxEvent.getSource(ca);if("A"==V.nodeName)for(;null!=V;){if("geHint"==V.className)return!0;V=V.parentNode}}return F(ca)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||
+9>document.documentMode)?mxEvent.addListener(this.diagramContainer,"contextmenu",e):this.diagramContainer.oncontextmenu=e):v.panningHandler.usePopupTrigger=!1;v.init(this.diagramContainer);mxClient.IS_SVG&&null!=v.view.getDrawPane()&&(e=v.view.getDrawPane().ownerSVGElement,null!=e&&(e.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=v.graphHandler){var P=v.graphHandler.start;v.graphHandler.start=function(){null!=m.hoverIcons&&m.hoverIcons.reset();P.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,
+"mousemove",mxUtils.bind(this,function(ca){var V=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(ca)-V.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(ca)-V.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var R=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(ca,V){return m.isSpaceDown()||R.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,
+function(ca){16==ca.which?this.shiftDown=!0:32!=ca.which||v.isEditing()?mxEvent.isConsumed(ca)||27!=ca.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),v.container.style.cursor="move",v.isEditing()||mxEvent.getSource(ca)!=v.container||mxEvent.consume(ca))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(ca){v.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);
+var T=v.panningHandler.isForcePanningEvent;v.panningHandler.isForcePanningEvent=function(ca){return T.apply(this,arguments)||m.isSpaceDown()||mxEvent.isMouseEvent(ca.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(ca.getEvent()))&&(!mxEvent.isControlDown(ca.getEvent())&&mxEvent.isRightMouseButton(ca.getEvent())||mxEvent.isMiddleMouseButton(ca.getEvent()))};var c=v.cellEditor.isStopEditingEvent;v.cellEditor.isStopEditingEvent=function(ca){return c.apply(this,arguments)||13==ca.keyCode&&
+(!mxClient.IS_SF&&mxEvent.isControlDown(ca)||mxClient.IS_MAC&&mxEvent.isMetaDown(ca)||mxClient.IS_SF&&mxEvent.isShiftDown(ca))};var f=v.isZoomWheelEvent;v.isZoomWheelEvent=function(){return m.isSpaceDown()||f.apply(this,arguments)};var k=!1,B=null,z=null,C=null,I=mxUtils.bind(this,function(){if(null!=this.toolbar&&k!=v.cellEditor.isContentEditing()){for(var ca=this.toolbar.container.firstChild,V=[];null!=ca;){var ma=ca.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,ca)&&(ca.parentNode.removeChild(ca),
+V.push(ca));ca=ma}ca=this.toolbar.fontMenu;ma=this.toolbar.sizeMenu;if(null==C)this.toolbar.createTextToolbar();else{for(var la=0;la<C.length;la++)this.toolbar.container.appendChild(C[la]);this.toolbar.fontMenu=B;this.toolbar.sizeMenu=z}k=v.cellEditor.isContentEditing();B=ca;z=ma;C=V}}),L=v.cellEditor.startEditing;v.cellEditor.startEditing=function(){L.apply(this,arguments);I();if(v.cellEditor.isContentEditing()){var ca=!1,V=function(){ca||(ca=!0,window.setTimeout(function(){var ma=v.getSelectedEditingElement();
+null!=ma&&(ma=mxUtils.getCurrentStyle(ma),null!=ma&&null!=m.toolbar&&(m.toolbar.setFontName(mxUtils.getCssFontFamily(ma.fontFamily)),m.toolbar.setFontSize(parseInt(ma.fontSize))));ca=!1},0))};mxEvent.addListener(v.cellEditor.textarea,"input",V);mxEvent.addListener(v.cellEditor.textarea,"touchend",V);mxEvent.addListener(v.cellEditor.textarea,"mouseup",V);mxEvent.addListener(v.cellEditor.textarea,"keyup",V);V()}};var K=v.cellEditor.stopEditing;v.cellEditor.stopEditing=function(ca,V){try{K.apply(this,
+arguments),I()}catch(ma){m.handleError(ma)}};v.container.setAttribute("tabindex","0");v.container.style.cursor="default";if(window.self===window.top&&null!=v.container.parentNode)try{v.container.focus()}catch(ca){}var O=v.fireMouseEvent;v.fireMouseEvent=function(ca,V,ma){try{ca==mxEvent.MOUSE_DOWN&&this.container.focus(),O.apply(this,arguments)}catch(la){m.handleError(la)}};var da=v.foldCells;v.foldCells=function(ca,V,ma,la,Y){try{da.apply(this,arguments)}catch(fa){m.handleError(fa)}};v.popupMenuHandler.autoExpand=
+!0;null!=this.menus&&(v.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(ca,V,ma){this.menus.createPopupMenu(ca,V,ma)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(ca){v.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};v.connectionHandler.addListener(mxEvent.CONNECT,function(ca,V){var ma=[V.getProperty("cell")];V.getProperty("terminalInserted")&&(ma.push(V.getProperty("terminal")),window.setTimeout(function(){null!=
+m.hoverIcons&&m.hoverIcons.update(v.view.getState(ma[ma.length-1]))},0));v.pasteCellStyles(ma)});this.addListener("styleChanged",mxUtils.bind(this,function(ca,V){ca=V.getProperty("force");(this.updateDefaultStyle||ca)&&v.copyCellStyles(V.getProperty("cells"),V.getProperty("keys"),V.getProperty("values"),v.currentVertexStyle,v.currentEdgeStyle,G,S);null!=this.toolbar&&(this.toolbar.setFontName(v.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(v.currentVertexStyle.fontSize||
+Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&(V=this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0],V.style.backgroundPosition="left center",V.style.backgroundRepeat="no-repeat",V.className="geAdaptiveAsset",V.style.height="100%",V.style.width="100%",V.style.backgroundImage="orthogonalEdgeStyle"==v.currentEdgeStyle.edgeStyle&&"1"==v.currentEdgeStyle.curved?"url("+Format.curvedImage.src+")":"straight"==v.currentEdgeStyle.edgeStyle||"none"==v.currentEdgeStyle.edgeStyle||
+null==v.currentEdgeStyle.edgeStyle?"url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==v.currentEdgeStyle.edgeStyle?"url("+Format.entityImage.src+")":"elbowEdgeStyle"==v.currentEdgeStyle.edgeStyle?"vertical"==v.currentEdgeStyle.elbow?"url("+Format.verticalElbowImage.src+")":"url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==v.currentEdgeStyle.edgeStyle?"vertical"==v.currentEdgeStyle.elbow?"url("+Format.verticalIsometricImage.src+")":"url("+Format.horizontalIsometricImage.src+
+")":"url("+Format.orthogonalImage.src+")"),null!=this.toolbar.edgeShapeMenu&&(V=this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0],V.style.backgroundPosition="left center",V.style.backgroundRepeat="no-repeat",V.className="geAdaptiveAsset",V.style.height="100%",V.style.width="100%",V.style.backgroundImage="link"==v.currentEdgeStyle.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==v.currentEdgeStyle.shape?"url("+Format.arrowImage.src+")":"arrow"==v.currentEdgeStyle.shape?"url("+Format.simpleArrowImage.src+
+")":"url("+Format.connectionImage.src+")"))}));null!=this.toolbar&&(b=mxUtils.bind(this,function(){var ca=v.currentVertexStyle.fontFamily||"Helvetica",V=String(v.currentVertexStyle.fontSize||"12"),ma=v.getView().getState(v.getSelectionCell());null!=ma&&(ca=ma.style[mxConstants.STYLE_FONTFAMILY]||ca,V=ma.style[mxConstants.STYLE_FONTSIZE]||V,10<ca.length&&(ca=ca.substring(0,8)+"..."));this.toolbar.setFontName(ca);this.toolbar.setFontSize(V)}),v.getSelectionModel().addListener(mxEvent.CHANGE,b),v.getModel().addListener(mxEvent.CHANGE,
+b));v.addListener(mxEvent.CELLS_ADDED,function(ca,V){ca=V.getProperty("cells");V=V.getProperty("parent");null!=V&&v.getModel().isLayer(V)&&!v.isCellVisible(V)&&null!=ca&&0<ca.length&&v.getModel().setVisible(V,!0)});Graph.selectParentLayer&&v.selectionModel.addListener(mxEvent.CHANGE,function(){if(v.isEnabled()&&!v.isSelectionEmpty()){var ca=v.getLayerForCells(v.getSelectionCells());null!=ca&&v.setDefaultParent(ca)}});this.gestureHandler=mxUtils.bind(this,function(ca){null!=this.currentMenu&&mxEvent.getSource(ca)!=
this.currentMenu.div&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var ea=null;this.resizeHandler=mxUtils.bind(this,function(){null!=ea&&window.clearTimeout(ea);ea=window.setTimeout(mxUtils.bind(this,function(){ea=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&
!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){v.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){v.view.validateBackground()}));v.addListener("gridSizeChanged",
mxUtils.bind(this,function(){v.isGridEnabled()&&v.view.validateBackground()}));this.editor.resetGraph()}this.init();v.standalone||this.open()};EditorUi.compactUi=!0;
-EditorUi.parsePng=function(b,e,g){function m(G,S){var F=p;p+=S;return G.substring(F,p)}function v(G){G=m(G,4);return G.charCodeAt(3)+(G.charCodeAt(2)<<8)+(G.charCodeAt(1)<<16)+(G.charCodeAt(0)<<24)}var p=0;if(m(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=g&&g();else if(m(b,4),"IHDR"!=m(b,4))null!=g&&g();else{m(b,17);do{g=v(b);var B=m(b,4);if(null!=e&&e(p-8,B,g))break;value=m(b,g);m(b,4);if("IEND"==B)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);
+EditorUi.parsePng=function(b,e,g){function m(G,S){var F=p;p+=S;return G.substring(F,p)}function v(G){G=m(G,4);return G.charCodeAt(3)+(G.charCodeAt(2)<<8)+(G.charCodeAt(1)<<16)+(G.charCodeAt(0)<<24)}var p=0;if(m(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=g&&g();else if(m(b,4),"IHDR"!=m(b,4))null!=g&&g();else{m(b,17);do{g=v(b);var A=m(b,4);if(null!=e&&e(p-8,A,g))break;value=m(b,g);m(b,4);if("IEND"==A)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);
EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.menubarHeight=30;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.toolbarHeight=38;EditorUi.prototype.footerHeight=28;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?212:240);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;
EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;EditorUi.prototype.hsplitClickEnabled=!1;EditorUi.prototype.updateDefaultStyle=!1;EditorUi.prototype.spaceDown=!1;EditorUi.prototype.shiftDown=!1;
EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"!=urlParams["shape-picker"]&&this.installShapePicker();mxEvent.addListener(b.container,"scroll",mxUtils.bind(this,function(){b.tooltipHandler.hide();null!=b.connectionHandler&&null!=b.connectionHandler.constraintHandler&&b.connectionHandler.constraintHandler.reset()}));b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){b.tooltipHandler.hide();var m=b.getRubberband();null!=m&&m.cancel()}));mxEvent.addListener(b.container,
@@ -2065,30 +2076,31 @@ EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"
arguments);g.updateActionStates()};b.showLinkDialog=mxUtils.bind(g,g.showLinkDialog);b.editLink=g.actions.get("editLink").funct;this.updateActionStates();this.initClipboard();this.initCanvas();null!=this.format&&this.format.init()}};EditorUi.prototype.clearSelectionState=function(){this.selectionState=null};EditorUi.prototype.getSelectionState=function(){null==this.selectionState&&(this.selectionState=this.createSelectionState());return this.selectionState};
EditorUi.prototype.createSelectionState=function(){for(var b=this.editor.graph,e=b.getSelectionCells(),g=this.initSelectionState(),m=!0,v=0;v<e.length;v++){var p=b.getCurrentCellStyle(e[v]);"0"!=mxUtils.getValue(p,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(g,e[v],e,m),m=!1)}this.updateSelectionStateForTableCells(g);return g};
EditorUi.prototype.initSelectionState=function(){return{vertices:[],edges:[],cells:[],x:null,y:null,width:null,height:null,style:{},containsImage:!1,containsLabel:!1,fill:!0,glass:!0,html:!0,rounded:!0,autoSize:!1,image:!1,shadow:!0,lineJumps:!0,resizable:!0,table:!1,cell:!1,row:!1,movable:!0,rotatable:!0,stroke:!0,swimlane:!1,unlocked:this.editor.graph.isEnabled(),connections:!1}};
-EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){var e=mxUtils.sortCells(b.cells),g=this.editor.graph.model,m=g.getParent(e[0]),v=g.getParent(m);if(null!=m&&null!=v){for(var p=m.getIndex(e[0]),B=v.getIndex(m),G=null,S=1,F=1,P=0,R=B<v.getChildCount()-1?g.getChildAt(g.getChildAt(v,B+1),p):null;P<e.length-1;){var T=e[++P];null==R||R!=T||null!=G&&S!=G||(G=S,S=0,F++,m=g.getParent(R),R=B+F<v.getChildCount()?g.getChildAt(g.getChildAt(v,B+F),p):null);var c=this.editor.graph.view.getState(T);
+EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){var e=mxUtils.sortCells(b.cells),g=this.editor.graph.model,m=g.getParent(e[0]),v=g.getParent(m);if(null!=m&&null!=v){for(var p=m.getIndex(e[0]),A=v.getIndex(m),G=null,S=1,F=1,P=0,R=A<v.getChildCount()-1?g.getChildAt(g.getChildAt(v,A+1),p):null;P<e.length-1;){var T=e[++P];null==R||R!=T||null!=G&&S!=G||(G=S,S=0,F++,m=g.getParent(R),R=A+F<v.getChildCount()?g.getChildAt(g.getChildAt(v,A+F),p):null);var c=this.editor.graph.view.getState(T);
if(T==g.getChildAt(m,p+S)&&null!=c&&1==mxUtils.getValue(c.style,"colspan",1)&&1==mxUtils.getValue(c.style,"rowspan",1))S++;else break}P==F*S-1&&(b.mergeCell=e[0],b.colspan=S,b.rowspan=F)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
-EditorUi.prototype.createTimeout=function(b,e,g){var m=!0,v=null,p=mxUtils.bind(this,function(G){v.clear()&&(m=!1,G=null!=G?G:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,e,g)})},null!=g?g(G):this.handleError(G))}),B=window.setTimeout(p,null!=b?b:this.timeout);v={clear:function(){window.clearTimeout(B);return m},isAlive:function(){return m}};null!=e&&this.tryAndHandle(mxUtils.bind(this,function(){e(v)}),p);return v};
+EditorUi.prototype.createTimeout=function(b,e,g){var m=!0,v=null,p=mxUtils.bind(this,function(G){v.clear()&&(m=!1,G=null!=G?G:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,e,g)})},null!=g?g(G):this.handleError(G))}),A=window.setTimeout(p,null!=b?b:this.timeout);v={clear:function(){window.clearTimeout(A);return m},isAlive:function(){return m}};null!=e&&this.tryAndHandle(mxUtils.bind(this,function(){e(v)}),p);return v};
EditorUi.prototype.tryAndHandle=function(b,e){try{b()}catch(g){null!=e?e(g):this.handleError(g)}};
-EditorUi.prototype.removeUserDefinedDarkColors=function(b,e,g){var m=this.editor.graph;b=null!=b?b:m.getSelectionCells();var v=Graph.colorStyles,p=document.createElement("div");m.model.beginUpdate();try{for(var B=0;B<b.length;B++)if(m.model.isEdge(b[B])||m.model.isVertex(b[B])){var G=m.getCellStyle(b[B],!1);if(null!=G)for(var S=0;S<v.length;S++)try{var F=G[v[S]];if(mxUtils.isLightDarkColor(F)){var P=mxUtils.getLightDarkColor(F);m.setCellStyles(v[S],P.light,[b[B]])}}catch(T){}e&&m.isHtmlLabel(b[B])&&
-"0"!=mxUtils.getValue(G,"html","0")&&(p.innerHTML=Graph.sanitizeHtml(m.getLabel(b[B])),Graph.addLightDarkColors(p,null,null,function(T,c,f){return mxUtils.isLightDarkColor(f)?(f=mxUtils.getLightDarkColor(f),T.style.setProperty(c,f.light),!0):!1})&&m.cellLabelChanged(b[B],p.innerHTML))}if(g&&mxUtils.isLightDarkColor(m.background)){P=mxUtils.getLightDarkColor(m.background);var R=new ChangePageSetup(this,P.light);R.ignoreImage=!0;m.model.execute(R)}}finally{m.model.endUpdate()}return b};
+EditorUi.prototype.removeUserDefinedDarkColors=function(b,e,g){var m=this.editor.graph;b=null!=b?b:m.getSelectionCells();var v=Graph.colorStyles,p=document.createElement("div");m.model.beginUpdate();try{for(var A=0;A<b.length;A++)if(m.model.isEdge(b[A])||m.model.isVertex(b[A])){var G=m.getCellStyle(b[A],!1);if(null!=G)for(var S=0;S<v.length;S++)try{var F=G[v[S]];if(mxUtils.isLightDarkColor(F)){var P=mxUtils.getLightDarkColor(F);m.setCellStyles(v[S],P.light,[b[A]])}}catch(T){}e&&m.isHtmlLabel(b[A])&&
+"0"!=mxUtils.getValue(G,"html","0")&&(p.innerHTML=Graph.sanitizeHtml(m.getLabel(b[A])),Graph.addLightDarkColors(p,null,null,function(T,c,f){return mxUtils.isLightDarkColor(f)?(f=mxUtils.getLightDarkColor(f),T.style.setProperty(c,f.light),!0):!1})&&m.cellLabelChanged(b[A],p.innerHTML))}if(g&&mxUtils.isLightDarkColor(m.background)){P=mxUtils.getLightDarkColor(m.background);var R=new ChangePageSetup(this,P.light);R.ignoreImage=!0;m.model.execute(R)}}finally{m.model.endUpdate()}return b};
EditorUi.prototype.updateSelectionStateForCell=function(b,e,g,m){g=this.editor.graph;b.cells.push(e);if(g.getModel().isVertex(e)){b.connections=0<g.model.getEdgeCount(e);b.unlocked=b.unlocked&&!g.isCellLocked(e);b.resizable=b.resizable&&g.isCellResizable(e);b.rotatable=b.rotatable&&g.isCellRotatable(e);b.movable=b.movable&&g.isCellMovable(e)&&!g.isTableRow(e)&&!g.isTableCell(e);b.swimlane=b.swimlane||g.isSwimlane(e);b.table=b.table||g.isTable(e);b.cell=b.cell||g.isTableCell(e);b.row=b.row||g.isTableRow(e);
b.vertices.push(e);var v=g.getCellGeometry(e);if(null!=v&&(0<v.width?null==b.width?b.width=v.width:b.width!=v.width&&(b.width=""):b.containsLabel=!0,0<v.height?null==b.height?b.height=v.height:b.height!=v.height&&(b.height=""):b.containsLabel=!0,!v.relative||null!=v.offset)){var p=v.relative?v.offset.x:v.x;v=v.relative?v.offset.y:v.y;null==b.x?b.x=p:b.x!=p&&(b.x="");null==b.y?b.y=v:b.y!=v&&(b.y="")}}else g.getModel().isEdge(e)&&(b.edges.push(e),b.connections=!0,b.resizable=!1,b.rotatable=!1,b.movable=
!1);p=g.view.getState(e);null!=p&&(b.html=b.html&&g.isHtmlLabel(e),b.autoSize=b.autoSize||g.isAutoSizeState(p),b.glass=b.glass&&g.isGlassState(p),b.rounded=b.rounded&&g.isRoundedState(p),b.lineJumps=b.lineJumps&&g.isLineJumpState(p),b.image=b.image||g.isImageState(p),b.shadow=b.shadow&&g.isShadowState(p),b.fill=b.fill&&g.isFillState(p),b.gradient=b.fill&&g.isGradientState(p),b.stroke=b.stroke&&g.isStrokeState(p),e=mxUtils.getValue(p.style,mxConstants.STYLE_SHAPE,null),b.containsImage=b.containsImage||
"image"==e,g.mergeStyle(p.style,b.style,m))};
EditorUi.prototype.installShapePicker=function(){var b=this.editor.graph,e=this;b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(S,F){"mouseDown"==F.getProperty("eventName")&&e.hideShapePicker()}));var g=mxUtils.bind(this,function(){e.hideShapePicker(!0)});b.addListener("wheel",g);b.addListener(mxEvent.ESCAPE,g);b.view.addListener(mxEvent.SCALE,g);b.view.addListener(mxEvent.SCALE_AND_TRANSLATE,g);b.getSelectionModel().addListener(mxEvent.CHANGE,g);var m=b.popupMenuHandler.isMenuShowing;
b.popupMenuHandler.isMenuShowing=function(){return m.apply(this,arguments)||null!=e.shapePicker||null!=e.currentMenu};var v=b.dblClick;b.dblClick=function(S,F){if(this.isEnabled())if(null!=F||null==e.sidebar||mxEvent.isShiftDown(S)||b.isCellLocked(b.getDefaultParent()))v.apply(this,arguments);else{var P=mxUtils.convertPoint(this.container,mxEvent.getClientX(S),mxEvent.getClientY(S));mxEvent.consume(S);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.x,P.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
-g);var p=this.hoverIcons.drag;this.hoverIcons.drag=function(){e.hideShapePicker();p.apply(this,arguments)};var B=this.hoverIcons.execute;this.hoverIcons.execute=function(S,F,P){var R=P.getEvent();this.graph.isCloneEvent(R)||mxEvent.isShiftDown(R)?B.apply(this,arguments):this.graph.connectVertex(S.cell,F,this.graph.defaultEdgeLength,R,null,null,mxUtils.bind(this,function(T,c,f){var k=b.getCompositeParent(S.cell);T=b.getCellGeometry(k);for(P.consume();null!=k&&b.model.isVertex(k)&&null!=T&&T.relative;)cell=
-k,k=b.model.getParent(cell),T=b.getCellGeometry(k);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.getGraphX(),P.getGraphY(),k,mxUtils.bind(this,function(A){f(A);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(A))}),F)}),30)}),mxUtils.bind(this,function(T){this.graph.selectCellsForConnectVertex(T,R,this)}))};var G=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(S,F){null!=G&&window.clearTimeout(G);G=window.setTimeout(mxUtils.bind(this,function(){var P=
-F.getProperty("arrow"),R=F.getProperty("direction"),T=F.getProperty("event");P=P.getBoundingClientRect();var c=mxUtils.getOffset(b.container),f=b.container.scrollLeft+P.x-c.x;c=b.container.scrollTop+P.y-c.y;var k=b.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),A=e.showShapePicker(f,c,k,mxUtils.bind(this,function(z){null!=z&&b.connectVertex(k,R,b.defaultEdgeLength,T,!0,!1,function(C,I,L){L(z);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(z))},
-function(C){b.selectCellsForConnectVertex(C)},T,this.hoverIcons)}),R,!0);null!=A&&(this.centerShapePicker(A,P,f,c,R),mxUtils.setOpacity(A,30),mxEvent.addListener(A,"mouseenter",function(){mxUtils.setOpacity(A,100)}),mxEvent.addListener(A,"mouseleave",function(){e.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(S,F){null!=G&&window.clearTimeout(G)}))}};
+g);var p=this.hoverIcons.drag;this.hoverIcons.drag=function(){e.hideShapePicker();p.apply(this,arguments)};var A=this.hoverIcons.execute;this.hoverIcons.execute=function(S,F,P){var R=P.getEvent();this.graph.isCloneEvent(R)||mxEvent.isShiftDown(R)?A.apply(this,arguments):this.graph.connectVertex(S.cell,F,this.graph.defaultEdgeLength,R,null,null,mxUtils.bind(this,function(T,c,f){var k=b.getCompositeParent(S.cell);T=b.getCellGeometry(k);for(P.consume();null!=k&&b.model.isVertex(k)&&null!=T&&T.relative;)cell=
+k,k=b.model.getParent(cell),T=b.getCellGeometry(k);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.getGraphX(),P.getGraphY(),k,mxUtils.bind(this,function(B){f(B);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(B))}),F)}),30)}),mxUtils.bind(this,function(T){this.graph.selectCellsForConnectVertex(T,R,this)}))};var G=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(S,F){null!=G&&window.clearTimeout(G);G=window.setTimeout(mxUtils.bind(this,function(){var P=
+F.getProperty("arrow"),R=F.getProperty("direction"),T=F.getProperty("event");P=P.getBoundingClientRect();var c=mxUtils.getOffset(b.container),f=b.container.scrollLeft+P.x-c.x;c=b.container.scrollTop+P.y-c.y;var k=b.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),B=e.showShapePicker(f,c,k,mxUtils.bind(this,function(z){null!=z&&b.connectVertex(k,R,b.defaultEdgeLength,T,!0,!1,function(C,I,L){L(z);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(z))},
+function(C){b.selectCellsForConnectVertex(C)},T,this.hoverIcons)}),R,!0);null!=B&&(this.centerShapePicker(B,P,f,c,R),mxUtils.setOpacity(B,30),mxEvent.addListener(B,"mouseenter",function(){mxUtils.setOpacity(B,100)}),mxEvent.addListener(B,"mouseleave",function(){e.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(S,F){null!=G&&window.clearTimeout(G)}))}};
EditorUi.prototype.centerShapePicker=function(b,e,g,m,v){if(v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST)b.style.width="40px";var p=b.getBoundingClientRect();v==mxConstants.DIRECTION_NORTH?(g-=p.width/2-10,m-=p.height+6):v==mxConstants.DIRECTION_SOUTH?(g-=p.width/2-10,m+=e.height+6):v==mxConstants.DIRECTION_WEST?(g-=p.width+6,m-=p.height/2-10):v==mxConstants.DIRECTION_EAST&&(g+=e.width+6,m-=p.height/2-10);b.style.left=g+"px";b.style.top=m+"px"};
-EditorUi.prototype.showShapePicker=function(b,e,g,m,v,p,B,G,S){var F=null;this.editor.graph.freehand.isDrawing()||(G=G||null==g,F=this.createShapePicker(b,e,g,m,v,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(g,p,G),p,B,G,S),null!=F&&(null==this.hoverIcons||p||this.hoverIcons.reset(),b=this.editor.graph,b.popupMenuHandler.hideMenu(),b.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=m,this.shapePicker=F));return F};
-EditorUi.prototype.createShapePicker=function(b,e,g,m,v,p,B,G,S,F,P){P=null!=P?P:!0;var R=this.editor.graph,T=null;S=null!=S?S:function(k){k=k[0];var A=0,z=0,C=k.geometry;null!=C&&(R.model.isEdge(k)&&(k=C.getTerminalPoint(!1),C=new mxRectangle(0,0,k.x,k.y)),A=C.width/2,z=C.height/2);return new mxPoint(R.snap(Math.round(b/R.view.scale)-R.view.translate.x-A),R.snap(Math.round(e/R.view.scale)-R.view.translate.y-z))};if(null!=B&&0<B.length){var c=this;R=this.editor.graph;T=document.createElement("div");
-v=R.view.getState(g);var f=null==g||null!=v&&R.isTransparentState(v)?null:R.copyStyle(g);v=6>B.length?35*B.length:140;T.className="geToolbarContainer geSidebarContainer geShapePicker";T.setAttribute("title",mxResources.get("sidebarTooltip"));T.style.left=Math.round(b)+"px";T.style.top=Math.round(e)+"px";T.style.width=v+"px";mxClient.IS_POINTER&&(T.style.touchAction="none");G||mxUtils.setPrefixedStyle(T.style,"transform","translate(-22px,-22px)");R.container.appendChild(T);v=mxUtils.bind(this,function(k){var A=
-document.createElement("a");A.className="geItem";A.style.display="inline-block";A.style.position="relative";A.style.overflow="hidden";A.style.cursor="pointer";A.style.width="30px";A.style.height="30px";A.style.padding="1px";T.appendChild(A);null!=f&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(f,[k]):this.sidebar.graph.pasteCellStyles([k],R.currentVertexStyle,R.currentEdgeStyle);var z=k.geometry;R.model.isEdge(k)&&(z=z.getTerminalPoint(!1),z=new mxRectangle(0,0,z.x,z.y));null!=z&&A.appendChild(this.sidebar.createVertexTemplateFromCells([k],
-z.width,z.height,"",!0,!1,null,!1,mxUtils.bind(this,function(C){if(!mxEvent.isShiftDown(C)||null==g&&R.isSelectionEmpty()){var I=R.cloneCell(k);if(null!=m)m(I);else{var L=S([I]);R.model.isEdge(I)?I.geometry.translate(L.x,L.y):(I.geometry.x=L.x,I.geometry.y=L.y);R.model.beginUpdate();try{R.addCell(I),R.model.isVertex(I)&&R.isAutoSizeCell(I)&&R.updateCellSize(I)}finally{R.model.endUpdate()}R.setSelectionCell(I);R.scrollCellToVisible(I);P&&R.startEditing(I);null!=c.hoverIcons&&c.hoverIcons.update(R.view.getState(I))}}else I=
-R.getEditableCells(null!=g?[g]:R.getSelectionCells()),R.updateShapes(k,I);null!=p&&p(C);mxEvent.consume(C)}),25,25,null,null,g))});for(F=0;F<(G?Math.min(B.length,4):B.length);F++)v(B[F]);B=T.offsetTop+T.clientHeight-(R.container.scrollTop+R.container.offsetHeight);0<B&&(T.style.top=Math.max(R.container.scrollTop+22,e-B)+"px");B=T.offsetLeft+T.clientWidth-(R.container.scrollLeft+R.container.offsetWidth);0<B&&(T.style.left=Math.max(R.container.scrollLeft+22,b-B)+"px")}return T};
-EditorUi.prototype.getCellsForShapePicker=function(b,e,g){var m=this.editor.graph,v=mxUtils.bind(this,function(p,B,G,S){return m.createVertex(null,null,S||"",0,0,B||120,G||60,p,!1)});e=mxUtils.bind(this,function(p,B,G){p=new mxCell(G||"",new mxGeometry(0,0,m.defaultEdgeLength+20,0),p);p.geometry.setTerminalPoint(new mxPoint(0,0),!0);p.geometry.setTerminalPoint(new mxPoint(p.geometry.width,null!=B?B:0),!1);p.geometry.points=null!=B?[new mxPoint(p.geometry.width/2,B)]:[];p.geometry.relative=!0;p.edge=
+EditorUi.prototype.showShapePicker=function(b,e,g,m,v,p,A,G,S){var F=null;this.editor.graph.freehand.isDrawing()||(G=G||null==g,F=this.createShapePicker(b,e,g,m,v,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(g,p,G),p,A,G,S),null!=F&&(null==this.hoverIcons||p||this.hoverIcons.reset(),b=this.editor.graph,b.popupMenuHandler.hideMenu(),b.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=m,this.shapePicker=F));return F};
+EditorUi.prototype.createShapePicker=function(b,e,g,m,v,p,A,G,S,F,P){P=null!=P?P:!0;var R=this.editor.graph,T=null;S=null!=S?S:function(k){k=k[0];var B=0,z=0,C=k.geometry;null!=C&&(R.model.isEdge(k)&&(k=C.getTerminalPoint(!1),C=new mxRectangle(0,0,k.x,k.y)),B=C.width/2,z=C.height/2);return new mxPoint(R.snap(Math.round(b/R.view.scale)-R.view.translate.x-B),R.snap(Math.round(e/R.view.scale)-R.view.translate.y-z))};if(null!=A&&0<A.length){var c=this;R=this.editor.graph;T=document.createElement("div");
+v=R.view.getState(g);var f=null==g||null!=v&&R.isTransparentState(v)?null:R.copyStyle(g);v=6>A.length?35*A.length:140;T.className="geToolbarContainer geSidebarContainer geShapePicker";T.setAttribute("title",mxResources.get("sidebarTooltip"));T.style.left=Math.round(b)+"px";T.style.top=Math.round(e)+"px";T.style.width=v+"px";mxClient.IS_POINTER&&(T.style.touchAction="none");G||mxUtils.setPrefixedStyle(T.style,"transform","translate(-22px,-22px)");R.container.appendChild(T);v=mxUtils.bind(this,function(k){var B=
+document.createElement("a");B.className="geToolbarButton";B.style.display="inline-block";B.style.position="relative";B.style.overflow="hidden";B.style.cursor="pointer";B.style.width="30px";B.style.height="30px";B.style.padding="1px";T.appendChild(B);null!=f&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(f,[k]):this.sidebar.graph.pasteCellStyles([k],R.currentVertexStyle,R.currentEdgeStyle);var z=k.geometry;R.model.isEdge(k)&&(z=z.getTerminalPoint(!1),z=new mxRectangle(0,0,z.x,z.y));null!=z&&
+B.appendChild(this.sidebar.createVertexTemplateFromCells([k],z.width,z.height,"",!0,!1,null,!1,mxUtils.bind(this,function(C){if(!mxEvent.isShiftDown(C)||null==g&&R.isSelectionEmpty()){var I=R.cloneCell(k);if(null!=m)m(I);else{var L=S([I]);R.model.isEdge(I)?I.geometry.translate(L.x,L.y):(I.geometry.x=L.x,I.geometry.y=L.y);R.model.beginUpdate();try{R.addCell(I),R.model.isVertex(I)&&R.isAutoSizeCell(I)&&R.updateCellSize(I)}finally{R.model.endUpdate()}R.setSelectionCell(I);R.scrollCellToVisible(I);P&&
+R.startEditing(I);null!=c.hoverIcons&&c.hoverIcons.update(R.view.getState(I))}}else I=R.getEditableCells(null!=g?[g]:R.getSelectionCells()),R.updateShapes(k,I);null!=p&&p(C);mxEvent.consume(C)}),25,25,null,null,g))});for(F=0;F<(G?Math.min(A.length,4):A.length);F++)v(A[F]);A=T.offsetTop+T.clientHeight-(R.container.scrollTop+R.container.offsetHeight);0<A&&(T.style.top=Math.max(R.container.scrollTop+22,e-A)+"px");A=T.offsetLeft+T.clientWidth-(R.container.scrollLeft+R.container.offsetWidth);0<A&&(T.style.left=
+Math.max(R.container.scrollLeft+22,b-A)+"px")}return T};
+EditorUi.prototype.getCellsForShapePicker=function(b,e,g){var m=this.editor.graph,v=mxUtils.bind(this,function(p,A,G,S){return m.createVertex(null,null,S||"",0,0,A||120,G||60,p,!1)});e=mxUtils.bind(this,function(p,A,G){p=new mxCell(G||"",new mxGeometry(0,0,m.defaultEdgeLength+20,0),p);p.geometry.setTerminalPoint(new mxPoint(0,0),!0);p.geometry.setTerminalPoint(new mxPoint(p.geometry.width,null!=A?A:0),!1);p.geometry.points=null!=A?[new mxPoint(p.geometry.width/2,A)]:[];p.geometry.relative=!0;p.edge=
!0;return p});if(null!=b)try{b=m.cloneCell(b),m.model.isVertex(b)&&null!=b.geometry&&(b.geometry.x=0,b.geometry.y=0)}catch(p){b=null}null==b&&(b=v(m.appendFontSize("text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;",m.vertexFontSize),40,20,"Text"),m.model.isVertex(b)&&m.isAutoSizeCell(b)&&Graph.createOffscreenGraph(m.getStylesheet()).updateCellSize(b));b=[b,v("whiteSpace=wrap;html=1;"),v("ellipse;whiteSpace=wrap;html=1;",80,80),v("rhombus;whiteSpace=wrap;html=1;",
80,80),v("rounded=1;whiteSpace=wrap;html=1;"),v("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),v("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),v("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),v("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),v("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),v("triangle;whiteSpace=wrap;html=1;",
60,80),v("shape=document;whiteSpace=wrap;html=1;boundedLbl=1;",120,80),v("shape=tape;whiteSpace=wrap;html=1;",120,100),v("ellipse;shape=cloud;whiteSpace=wrap;html=1;",120,80),v("shape=singleArrow;whiteSpace=wrap;html=1;arrowWidth=0.4;arrowSize=0.4;",80,60),v("shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;",20,20)];g&&(b=b.concat([e("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),e("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;endArrow=classic;startArrow=classic;endSize=8;startSize=8;"),
@@ -2097,54 +2109,54 @@ EditorUi.prototype.hideShapePicker=function(b){null!=this.shapePicker&&(this.sha
EditorUi.prototype.onKeyDown=function(b){var e=this.editor.graph;if(9==b.which&&e.isEnabled()&&!mxEvent.isControlDown(b)){if(e.isEditing())if(mxEvent.isAltDown(b))e.stopEditing(!1);else try{var g=e.cellEditor.isContentEditing()&&e.cellEditor.isTextSelected();if(window.getSelection&&e.cellEditor.isContentEditing()&&!g&&!mxClient.IS_IE&&!mxClient.IS_IE11){var m=window.getSelection(),v=0<m.rangeCount?m.getRangeAt(0).commonAncestorContainer:null;g=null!=v&&("LI"==v.nodeName||null!=v.parentNode&&"LI"==
v.parentNode.nodeName)}g?document.execCommand(mxEvent.isShiftDown(b)?"outdent":"indent",!1,null):mxEvent.isShiftDown(b)?e.stopEditing(!1):e.cellEditor.insertTab(e.cellEditor.isContentEditing()?null:4)}catch(p){}else mxEvent.isAltDown(b)?e.selectParentCell():e.selectCell(!mxEvent.isShiftDown(b));mxEvent.consume(b)}};
EditorUi.prototype.onKeyPress=function(b){var e=this.editor.graph;!this.isImmediateEditingEvent(b)||e.isEditing()||e.isSelectionEmpty()||0===b.which||27===b.which||mxEvent.isAltDown(b)||mxEvent.isControlDown(b)||mxEvent.isMetaDown(b)||(e.escape(),e.startEditing(null,String.fromCharCode(b.which)))};EditorUi.prototype.isImmediateEditingEvent=function(b){return!0};
-EditorUi.prototype.updateCssForMarker=function(b,e,g,m,v){b.style.display="inline-flex";b.style.alignItems="center";b.style.justifyContent="center";b.innerText="";"flexArrow"==g?b.className=null!=m&&m!=mxConstants.NONE?"geSprite geSprite-"+e+"blocktrans":"geSprite geSprite-noarrow":(g=this.getImageForMarker(m,v),null!=g?(m=document.createElement("img"),m.className="geAdaptiveAsset",m.setAttribute("src",g),b.className="","end"==e&&mxUtils.setPrefixedStyle(m.style,"transform","scaleX(-1)"),b.appendChild(m)):
-(b.className="geSprite geSprite-noarrow",b.innerHTML=mxUtils.htmlEntities(mxResources.get("none")),b.style.backgroundImage="none",b.style.fontSize="11px",b.style.filter="none"))};
-EditorUi.prototype.getImageForMarker=function(b,e){var g=null;b==mxConstants.ARROW_CLASSIC?g="1"!=e?Format.classicMarkerImage.src:Format.classicFilledMarkerImage.src:b==mxConstants.ARROW_CLASSIC_THIN?g="1"!=e?Format.classicThinMarkerImage.src:Format.openThinFilledMarkerImage.src:b==mxConstants.ARROW_OPEN?g=Format.openFilledMarkerImage.src:b==mxConstants.ARROW_OPEN_THIN?g=Format.openThinFilledMarkerImage.src:b==mxConstants.ARROW_BLOCK?g="1"!=e?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:
-b==mxConstants.ARROW_BLOCK_THIN?g="1"!=e?Format.blockThinMarkerImage.src:Format.blockThinFilledMarkerImage.src:b==mxConstants.ARROW_OVAL?g="1"!=e?Format.ovalMarkerImage.src:Format.ovalFilledMarkerImage.src:b==mxConstants.ARROW_DIAMOND?g="1"!=e?Format.diamondMarkerImage.src:Format.diamondFilledMarkerImage.src:b==mxConstants.ARROW_DIAMOND_THIN?g="1"!=e?Format.diamondThinMarkerImage.src:Format.diamondThinFilledMarkerImage.src:"doubleBlock"==b?g="1"!=e?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:
-"box"==b?g=Format.boxMarkerImage.src:"halfCircle"==b?g=Format.halfCircleMarkerImage.src:"openAsync"==b?g=Format.openAsyncFilledMarkerImage.src:"async"==b?g="1"!=e?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==b?g=Format.dashMarkerImage.src:"baseDash"==b?g=Format.baseDashMarkerImage.src:"cross"==b?g=Format.crossMarkerImage.src:"circle"==b?g=Format.circleMarkerImage.src:"circlePlus"==b?g=Format.circlePlusMarkerImage.src:"ERone"==b?g=Format.EROneMarkerImage.src:"ERmandOne"==b?
-g=Format.ERmandOneMarkerImage.src:"ERmany"==b?g=Format.ERmanyMarkerImage.src:"ERoneToMany"==b?g=Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==b?g=Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==b&&(g=Format.ERzeroToManyMarkerImage.src);return g};EditorUi.prototype.createMenus=function(){return null};
+EditorUi.prototype.updateCssForMarker=function(b,e,g,m,v){b.style.display="inline-flex";b.style.alignItems="center";b.style.justifyContent="center";b.innerText="";g=this.getImageForMarker(m,v,g);null==g?(b.innerHTML=mxUtils.htmlEntities(mxResources.get("none")),b.style.backgroundImage="none",b.style.fontSize="11px",b.style.filter="none"):(m=document.createElement("img"),m.className="geAdaptiveAsset",m.setAttribute("src",g),b.className="","end"==e&&mxUtils.setPrefixedStyle(m.style,"transform","scaleX(-1)"),
+b.appendChild(m))};
+EditorUi.prototype.getImageForMarker=function(b,e,g){return"flexArrow"==g?null!=b&&b!=mxConstants.NONE?Format.blockMarkerImage.src:null:b==mxConstants.ARROW_CLASSIC?"1"!=e?Format.classicMarkerImage.src:Format.classicFilledMarkerImage.src:b==mxConstants.ARROW_CLASSIC_THIN?"1"!=e?Format.classicThinMarkerImage.src:Format.openThinFilledMarkerImage.src:b==mxConstants.ARROW_OPEN?Format.openFilledMarkerImage.src:b==mxConstants.ARROW_OPEN_THIN?Format.openThinFilledMarkerImage.src:b==mxConstants.ARROW_BLOCK?"1"!=
+e?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:b==mxConstants.ARROW_BLOCK_THIN?"1"!=e?Format.blockThinMarkerImage.src:Format.blockThinFilledMarkerImage.src:b==mxConstants.ARROW_OVAL?"1"!=e?Format.ovalMarkerImage.src:Format.ovalFilledMarkerImage.src:b==mxConstants.ARROW_DIAMOND?"1"!=e?Format.diamondMarkerImage.src:Format.diamondFilledMarkerImage.src:b==mxConstants.ARROW_DIAMOND_THIN?"1"!=e?Format.diamondThinMarkerImage.src:Format.diamondThinFilledMarkerImage.src:"doubleBlock"==b?"1"!=
+e?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:"box"==b?Format.boxMarkerImage.src:"halfCircle"==b?Format.halfCircleMarkerImage.src:"openAsync"==b?Format.openAsyncFilledMarkerImage.src:"async"==b?"1"!=e?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==b?Format.dashMarkerImage.src:"baseDash"==b?Format.baseDashMarkerImage.src:"cross"==b?Format.crossMarkerImage.src:"circle"==b?Format.circleMarkerImage.src:"circlePlus"==b?Format.circlePlusMarkerImage.src:
+"ERone"==b?Format.EROneMarkerImage.src:"ERmandOne"==b?Format.ERmandOneMarkerImage.src:"ERmany"==b?Format.ERmanyMarkerImage.src:"ERoneToMany"==b?Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==b?Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==b?Format.ERzeroToManyMarkerImage.src:null};EditorUi.prototype.createMenus=function(){return null};
EditorUi.prototype.updatePasteActionStates=function(){var b=this.editor.graph,e=this.actions.get("paste"),g=this.actions.get("pasteHere");e.setEnabled(this.editor.graph.cellEditor.isContentEditing()||(!mxClient.IS_FF&&null!=navigator.clipboard||!mxClipboard.isEmpty())&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent()));g.setEnabled(e.isEnabled())};
-EditorUi.prototype.initClipboard=function(){var b=this,e=mxClipboard.cut;mxClipboard.cut=function(p){p.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):e.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(p){var B=null;if(p.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{B=B||p.getSelectionCells();B=p.getExportableCells(p.model.getTopmostCells(B));for(var G={},S=p.createCellLookup(B),F=p.cloneCells(B,null,G),P=new mxGraphModel,R=P.getChildAt(P.getRoot(),
-0),T=0;T<F.length;T++){P.add(R,F[T]);var c=p.view.getState(B[T]);if(null!=c){var f=p.getCellGeometry(F[T]);null!=f&&f.relative&&!P.isEdge(B[T])&&null==S[mxObjectIdentity.get(P.getParent(B[T]))]&&(f.offset=null,f.relative=!1,f.x=c.x/c.view.scale-c.view.translate.x,f.y=c.y/c.view.scale-c.view.translate.y)}}p.updateCustomLinks(p.createCellMapping(G,S),F);mxClipboard.insertCount=1;mxClipboard.setCells(F)}b.updatePasteActionStates();return B};var g=mxClipboard.paste;mxClipboard.paste=function(p){var B=
-null;p.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):B=g.apply(this,arguments);b.updatePasteActionStates();return B};var m=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){m.apply(this,arguments);b.updatePasteActionStates()};var v=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(p,B){v.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
+EditorUi.prototype.initClipboard=function(){var b=this,e=mxClipboard.cut;mxClipboard.cut=function(p){p.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):e.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(p){var A=null;if(p.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{A=A||p.getSelectionCells();A=p.getExportableCells(p.model.getTopmostCells(A));for(var G={},S=p.createCellLookup(A),F=p.cloneCells(A,null,G),P=new mxGraphModel,R=P.getChildAt(P.getRoot(),
+0),T=0;T<F.length;T++){P.add(R,F[T]);var c=p.view.getState(A[T]);if(null!=c){var f=p.getCellGeometry(F[T]);null!=f&&f.relative&&!P.isEdge(A[T])&&null==S[mxObjectIdentity.get(P.getParent(A[T]))]&&(f.offset=null,f.relative=!1,f.x=c.x/c.view.scale-c.view.translate.x,f.y=c.y/c.view.scale-c.view.translate.y)}}p.updateCustomLinks(p.createCellMapping(G,S),F);mxClipboard.insertCount=1;mxClipboard.setCells(F)}b.updatePasteActionStates();return A};var g=mxClipboard.paste;mxClipboard.paste=function(p){var A=
+null;p.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):A=g.apply(this,arguments);b.updatePasteActionStates();return A};var m=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){m.apply(this,arguments);b.updatePasteActionStates()};var v=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(p,A){v.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=500;EditorUi.prototype.buttonZoomDelay=600;
-EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var J=this.graph.getPageLayout(),V=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+J.x*V.width),this.scale*(this.translate.y+J.y*V.height),this.scale*J.width*V.width,
-this.scale*J.height*V.height)};b.getPreferredPageSize=function(J,V,aa){J=this.getPageLayout();V=this.getPageSize();return new mxRectangle(0,0,J.width*V.width,J.height*V.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(J,V,aa,ba){if(null!=b.container&&!b.isViewer()){aa=null!=aa?aa:0;ba=null!=ba?ba:0;var ja=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),oa=mxUtils.hasScrollbars(b.container),qa=b.view.translate,ra=b.view.scale,
-ua=mxRectangle.fromRectangle(ja);ua.x=ua.x/ra-qa.x;ua.y=ua.y/ra-qa.y;ua.width/=ra;ua.height/=ra;qa=b.container.scrollTop;var za=b.container.scrollLeft,Ba=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)Ba+=3;var Ca=b.container.offsetWidth-Ba;Ba=b.container.offsetHeight-Ba;J=J?Math.max(.3,Math.min(V||1,Ca/ua.width)):ra;V=(Ca-J*ua.width)/2/J;var La=0==this.lightboxVerticalDivider?0:(Ba-J*ua.height)/this.lightboxVerticalDivider/J;oa&&(V=Math.max(V,0),La=Math.max(La,
-0));if(oa||ja.width<Ca||ja.height<Ba)b.view.scaleAndTranslate(J,Math.floor(V-ua.x),Math.floor(La-ua.y)),b.container.scrollTop=qa*J/ra,b.container.scrollLeft=za*J/ra;else if(0!=aa||0!=ba)ja=b.view.translate,b.view.setTranslate(Math.floor(ja.x+aa/ra),Math.floor(ja.y+ba/ra))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var m=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",m);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
+EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var J=this.graph.getPageLayout(),W=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+J.x*W.width),this.scale*(this.translate.y+J.y*W.height),this.scale*J.width*W.width,
+this.scale*J.height*W.height)};b.getPreferredPageSize=function(J,W,aa){J=this.getPageLayout();W=this.getPageSize();return new mxRectangle(0,0,J.width*W.width,J.height*W.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(J,W,aa,ba){if(null!=b.container&&!b.isViewer()){aa=null!=aa?aa:0;ba=null!=ba?ba:0;var ja=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),oa=mxUtils.hasScrollbars(b.container),qa=b.view.translate,ra=b.view.scale,
+ua=mxRectangle.fromRectangle(ja);ua.x=ua.x/ra-qa.x;ua.y=ua.y/ra-qa.y;ua.width/=ra;ua.height/=ra;qa=b.container.scrollTop;var za=b.container.scrollLeft,Ba=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)Ba+=3;var Ca=b.container.offsetWidth-Ba;Ba=b.container.offsetHeight-Ba;J=J?Math.max(.3,Math.min(W||1,Ca/ua.width)):ra;W=(Ca-J*ua.width)/2/J;var La=0==this.lightboxVerticalDivider?0:(Ba-J*ua.height)/this.lightboxVerticalDivider/J;oa&&(W=Math.max(W,0),La=Math.max(La,
+0));if(oa||ja.width<Ca||ja.height<Ba)b.view.scaleAndTranslate(J,Math.floor(W-ua.x),Math.floor(La-ua.y)),b.container.scrollTop=qa*J/ra,b.container.scrollLeft=za*J/ra;else if(0!=aa||0!=ba)ja=b.view.translate,b.view.setTranslate(Math.floor(ja.x+aa/ra),Math.floor(ja.y+ba/ra))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var m=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",m);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
"resize",m)});this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(J){b.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(J){b.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var v=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));this.chromelessToolbar=document.createElement("div");this.chromelessToolbar.style.position=
"fixed";this.chromelessToolbar.style.overflow="hidden";this.chromelessToolbar.style.boxSizing="border-box";this.chromelessToolbar.style.whiteSpace="nowrap";this.chromelessToolbar.style.padding="10px 10px 8px 10px";this.chromelessToolbar.style.left=b.isViewer()?"0":"50%";mxClient.IS_IE||mxClient.IS_IE11?(this.chromelessToolbar.style.backgroundColor="#ffffff",this.chromelessToolbar.style.border="3px solid black"):this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,
-"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var p=mxUtils.bind(this,function(){var J=mxUtils.getCurrentStyle(b.container);b.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=J?parseInt(J["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",p);p();var B=0;p=mxUtils.bind(this,function(J,V,aa){B++;
-var ba=document.createElement("span");ba.style.paddingLeft="8px";ba.style.paddingRight="8px";ba.style.cursor="pointer";mxEvent.addListener(ba,"click",J);null!=aa&&ba.setAttribute("title",aa);J=document.createElement("img");J.setAttribute("border","0");J.setAttribute("src",V);J.style.width="36px";J.style.filter="invert(100%)";ba.appendChild(J);this.chromelessToolbar.appendChild(ba);return ba});if(null!=v.backBtn){var G=Graph.sanitizeLink(v.backBtn.url);null!=G&&p(mxUtils.bind(this,function(J){window.location.href=
+"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var p=mxUtils.bind(this,function(){var J=mxUtils.getCurrentStyle(b.container);b.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=J?parseInt(J["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",p);p();var A=0;p=mxUtils.bind(this,function(J,W,aa){A++;
+var ba=document.createElement("span");ba.style.paddingLeft="8px";ba.style.paddingRight="8px";ba.style.cursor="pointer";mxEvent.addListener(ba,"click",J);null!=aa&&ba.setAttribute("title",aa);J=document.createElement("img");J.setAttribute("border","0");J.setAttribute("src",W);J.style.width="36px";J.style.filter="invert(100%)";ba.appendChild(J);this.chromelessToolbar.appendChild(ba);return ba});if(null!=v.backBtn){var G=Graph.sanitizeLink(v.backBtn.url);null!=G&&p(mxUtils.bind(this,function(J){window.location.href=
G;mxEvent.consume(J)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var S=p(mxUtils.bind(this,function(J){this.actions.get("previousPage").funct();mxEvent.consume(J)}),Editor.previousImage,mxResources.get("previousPage")),F=document.createElement("div");F.style.fontFamily=Editor.defaultHtmlFont;F.style.display="inline-block";F.style.verticalAlign="top";F.style.fontWeight="bold";F.style.marginTop="8px";F.style.fontSize="14px";F.style.cursor="default";F.style.color=
mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(F);var P=p(mxUtils.bind(this,function(J){this.actions.get("nextPage").funct();mxEvent.consume(J)}),Editor.nextImage,mxResources.get("nextPage")),R=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){F.innerText="";var J=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(F,J+1+" / "+this.pages.length);F.setAttribute("title",mxResources.get("currentPage")+": "+this.currentPage.getName());
S.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(J-1,this.pages.length)].getName());P.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(J+1,this.pages.length)].getName())}});S.style.paddingLeft="0px";S.style.paddingRight="4px";P.style.paddingLeft="4px";P.style.paddingRight="0px";var T=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(P.style.display="",S.style.display="",F.style.display="inline-block"):
-(P.style.display="none",S.style.display="none",F.style.display="none");R()});if(null!=this.menus){var c=this.menus.get("pages");null!=c&&mxEvent.addListener(F,"click",mxUtils.bind(this,function(J){var V=new mxPopupMenu(c.funct);V.div.className+=" geMenubarMenu";V.smartSeparators=!0;V.showDisabled=!0;V.autoExpand=!0;V.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(V,arguments);V.destroy()});var aa=mxUtils.getOffset(F);V.popup(aa.x,aa.y+F.offsetHeight,null,J);mxEvent.addListener(V.div,
-"mouseleave",mxUtils.bind(this,function(){V.hideMenu()}))}))}this.editor.addListener("resetGraphView",T);this.editor.addListener("pageSelected",R)}p(mxUtils.bind(this,function(J){this.actions.get("zoomOut").funct();mxEvent.consume(J)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(J){this.actions.get("zoomIn").funct();mxEvent.consume(J)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(J){b.isLightboxView()?
-(1==b.view.scale?this.lightboxFit():b.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(J)}),Editor.zoomFitImage,mxResources.get("fit"));var f=null,k=null,A=mxUtils.bind(this,function(J){null!=f&&(window.clearTimeout(f),f=null);null!=k&&(window.clearTimeout(k),k=null);f=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);f=null;k=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";k=null}),
+(P.style.display="none",S.style.display="none",F.style.display="none");R()});if(null!=this.menus){var c=this.menus.get("pages");null!=c&&mxEvent.addListener(F,"click",mxUtils.bind(this,function(J){var W=new mxPopupMenu(c.funct);W.div.className+=" geMenubarMenu";W.smartSeparators=!0;W.showDisabled=!0;W.autoExpand=!0;W.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(W,arguments);W.destroy()});var aa=mxUtils.getOffset(F);W.popup(aa.x,aa.y+F.offsetHeight,null,J);mxEvent.addListener(W.div,
+"mouseleave",mxUtils.bind(this,function(){W.hideMenu()}))}))}this.editor.addListener("resetGraphView",T);this.editor.addListener("pageSelected",R)}p(mxUtils.bind(this,function(J){this.actions.get("zoomOut").funct();mxEvent.consume(J)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(J){this.actions.get("zoomIn").funct();mxEvent.consume(J)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(J){b.isLightboxView()?
+(1==b.view.scale?this.lightboxFit():b.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(J)}),Editor.zoomFitImage,mxResources.get("fit"));var f=null,k=null,B=mxUtils.bind(this,function(J){null!=f&&(window.clearTimeout(f),f=null);null!=k&&(window.clearTimeout(k),k=null);f=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);f=null;k=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";k=null}),
600)}),J||200)}),z=mxUtils.bind(this,function(J){null!=f&&(window.clearTimeout(f),f=null);null!=k&&(window.clearTimeout(k),k=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,J||30)});if("1"==urlParams.layers){this.layersDialog=null;var C=p(mxUtils.bind(this,function(J){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=b.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 V=C.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=
-V.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));V=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=
-V.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(J)}),Editor.layersImage,mxResources.get("layers")),I=b.getModel();I.addListener(mxEvent.CHANGE,function(){C.style.display=1<I.getChildCount(I.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(p);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||p(mxUtils.bind(this,function(J){null!=this.editor.editButtonFunc?
+this.chromelessResize()}),!0);mxEvent.addListener(this.layersDialog,"mouseleave",mxUtils.bind(this,function(){this.layersDialog.parentNode.removeChild(this.layersDialog);this.layersDialog=null}));var W=C.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=
+W.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));W=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=
+W.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(J)}),Editor.layersImage,mxResources.get("layers")),I=b.getModel();I.addListener(mxEvent.CHANGE,function(){C.style.display=1<I.getChildCount(I.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(p);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||p(mxUtils.bind(this,function(J){null!=this.editor.editButtonFunc?
this.editor.editButtonFunc():"_blank"==this.editor.editButtonLink?this.editor.editAsNew(this.getEditBlankXml()):b.openLink(this.editor.editButtonLink,"editWindow");mxEvent.consume(J)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(T=0;T<this.lightboxToolbarActions.length;T++){var L=this.lightboxToolbarActions[T];L.elem=p(L.fn,L.icon,L.tooltip)}if(null!=v.refreshBtn){var K=null==v.refreshBtn.url?null:Graph.sanitizeLink(v.refreshBtn.url);p(mxUtils.bind(this,function(J){null!=
K?window.location.href=K:window.location.reload();mxEvent.consume(J)}),Editor.refreshImage,mxResources.get("refresh",null,"Refresh"))}null!=v.fullscreenBtn&&window.self!==window.top&&p(mxUtils.bind(this,function(J){v.fullscreenBtn.url?b.openLink(v.fullscreenBtn.url):b.openLink(window.location.href);mxEvent.consume(J)}),Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));!v.noCloseBtn&&(v.closeBtn&&window.self===window.top||b.lightbox&&("1"==urlParams.close||this.container!=
document.body))&&p(mxUtils.bind(this,function(J){"1"==urlParams.close||v.closeBtn?window.close():(this.destroy(),mxEvent.consume(J))}),Editor.closeImage,mxResources.get("close")+" (Escape)");this.chromelessToolbar.style.display="none";b.isViewer()||mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transform","translate(-50%,0)");b.container.appendChild(this.chromelessToolbar);mxEvent.addListener(b.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(J){mxEvent.isTouchEvent(J)||
-(mxEvent.isShiftDown(J)||z(30),A())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(J){mxEvent.consume(J)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(J){b.tooltipHandler.resetTimer();b.tooltipHandler.hideTooltip();mxEvent.isShiftDown(J)?A():z(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(J){mxEvent.isShiftDown(J)?A():z(100);mxEvent.consume(J)}));mxEvent.addListener(this.chromelessToolbar,
-"mouseleave",mxUtils.bind(this,function(J){mxEvent.isTouchEvent(J)||z(30)}));var O=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(J,V){this.startX=V.getGraphX();this.startY=V.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(J,V){},mouseUp:function(J,V){mxEvent.isTouchEvent(V.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<O&&Math.abs(this.scrollTop-b.container.scrollTop)<O&&
-Math.abs(this.startX-V.getGraphX())<O&&Math.abs(this.startY-V.getGraphY())<O&&(0<parseFloat(g.chromelessToolbar.style.opacity||0)?A():z(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var da=b.view.validate,ea=new mxPoint,ca=!1,W=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=g.currentPage&&W!=g.currentPage){W=g.currentPage;ca=!0;var J=b.getBoundingBoxFromGeometry(b.model.getCells(),!0,null,!0);null==
-J&&(J=new mxRectangle(b.view.translate.x*b.view.scale,b.view.translate.y*b.view.scale));J=b.getPageLayout(J,ea,1);var V=b.getDefaultTranslate(J);this.x0=J.x;this.y0=J.y;if(V.x!=this.translate.x||V.y!=this.translate.y)this.invalidate(),this.translate.x=V.x,this.translate.y=V.y}V=b.getPagePadding();var aa=b.getPageSize();J=V.x-(this.x0||0)*aa.width;V=V.y-(this.y0||0)*aa.height;if(this.translate.x!=J||this.translate.y!=V)this.invalidate(),this.translate.x=J,this.translate.y=V}da.apply(this,arguments)};
-if(!b.isViewer()){var ma=b.sizeDidChange;b.sizeDidChange=function(){var J=ca;ca=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var V=this.getPageLayout(),aa=this.getDefaultTranslate(V),ba=this.view.translate.x,ja=this.view.translate.y;if(aa.x!=ba||aa.y!=ja){this.view.x0=V.x;this.view.y0=V.y;this.autoTranslate=!0;this.view.setTranslate(aa.x,aa.y);this.autoTranslate=!1;J||(this.container.scrollLeft+=Math.round((aa.x-ba)*this.view.scale),
+(mxEvent.isShiftDown(J)||z(30),B())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(J){mxEvent.consume(J)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(J){b.tooltipHandler.resetTimer();b.tooltipHandler.hideTooltip();mxEvent.isShiftDown(J)?B():z(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(J){mxEvent.isShiftDown(J)?B():z(100);mxEvent.consume(J)}));mxEvent.addListener(this.chromelessToolbar,
+"mouseleave",mxUtils.bind(this,function(J){mxEvent.isTouchEvent(J)||z(30)}));var O=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(J,W){this.startX=W.getGraphX();this.startY=W.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(J,W){},mouseUp:function(J,W){mxEvent.isTouchEvent(W.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<O&&Math.abs(this.scrollTop-b.container.scrollTop)<O&&
+Math.abs(this.startX-W.getGraphX())<O&&Math.abs(this.startY-W.getGraphY())<O&&(0<parseFloat(g.chromelessToolbar.style.opacity||0)?B():z(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var da=b.view.validate,ea=new mxPoint,ca=!1,V=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=g.currentPage&&V!=g.currentPage){V=g.currentPage;ca=!0;var J=b.getBoundingBoxFromGeometry(b.model.getCells(),!0,null,!0);null==
+J&&(J=new mxRectangle(b.view.translate.x*b.view.scale,b.view.translate.y*b.view.scale));J=b.getPageLayout(J,ea,1);var W=b.getDefaultTranslate(J);this.x0=J.x;this.y0=J.y;if(W.x!=this.translate.x||W.y!=this.translate.y)this.invalidate(),this.translate.x=W.x,this.translate.y=W.y}W=b.getPagePadding();var aa=b.getPageSize();J=W.x-(this.x0||0)*aa.width;W=W.y-(this.y0||0)*aa.height;if(this.translate.x!=J||this.translate.y!=W)this.invalidate(),this.translate.x=J,this.translate.y=W}da.apply(this,arguments)};
+if(!b.isViewer()){var ma=b.sizeDidChange;b.sizeDidChange=function(){var J=ca;ca=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var W=this.getPageLayout(),aa=this.getDefaultTranslate(W),ba=this.view.translate.x,ja=this.view.translate.y;if(aa.x!=ba||aa.y!=ja){this.view.x0=W.x;this.view.y0=W.y;this.autoTranslate=!0;this.view.setTranslate(aa.x,aa.y);this.autoTranslate=!1;J||(this.container.scrollLeft+=Math.round((aa.x-ba)*this.view.scale),
this.container.scrollTop+=Math.round((aa.y-ja)*this.view.scale));return}}ma.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var la=b.view.getBackgroundPane(),Y=b.view.getDrawPane();b.cumulativeZoomFactor=1;var fa=null,Z=null,l=null,u=null,H=null,U=function(J){null!=fa&&window.clearTimeout(fa);0<=J&&window.setTimeout(function(){if(!b.isMouseDown||u)fa=window.setTimeout(mxUtils.bind(this,function(){b.isFastZoomEnabled()&&(null!=b.view.backgroundPageShape&&
null!=b.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform",null)),Y.style.transformOrigin="",la.style.transformOrigin="",mxClient.IS_SF?(Y.style.transform="scale(1)",la.style.transform="scale(1)",window.setTimeout(function(){Y.style.transform="";la.style.transform=""},0)):(Y.style.transform="",la.style.transform=""),b.view.getDecoratorPane().style.opacity=
-"",b.view.getOverlayPane().style.opacity="");var V=new mxPoint(b.container.scrollLeft,b.container.scrollTop),aa=mxUtils.getOffset(b.container),ba=b.view.scale,ja=0,oa=0;null!=Z&&(ja=b.container.offsetWidth/2-Z.x+aa.x,oa=b.container.offsetHeight/2-Z.y+aa.y);b.zoom(b.cumulativeZoomFactor,null,b.isFastZoomEnabled()?20:null);b.view.scale!=ba&&(null!=l&&(ja+=V.x-l.x,oa+=V.y-l.y),null!=e&&g.chromelessResize(!1,null,ja*(b.cumulativeZoomFactor-1),oa*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||
-0==ja&&0==oa||(b.container.scrollLeft-=ja*(b.cumulativeZoomFactor-1),b.container.scrollTop-=oa*(b.cumulativeZoomFactor-1)));null!=H&&Y.setAttribute("filter",H);b.cumulativeZoomFactor=1;H=u=Z=l=fa=null}),null!=J?J:b.isFastZoomEnabled()?g.wheelZoomDelay:g.lazyZoomDelay)},0)};b.lazyZoom=function(J,V,aa,ba){ba=null!=ba?ba:this.zoomFactor;(V=V||!b.scrollbars)&&(Z=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));J?.15>=this.view.scale*this.cumulativeZoomFactor?
+"",b.view.getOverlayPane().style.opacity="");var W=new mxPoint(b.container.scrollLeft,b.container.scrollTop),aa=mxUtils.getOffset(b.container),ba=b.view.scale,ja=0,oa=0;null!=Z&&(ja=b.container.offsetWidth/2-Z.x+aa.x,oa=b.container.offsetHeight/2-Z.y+aa.y);b.zoom(b.cumulativeZoomFactor,null,b.isFastZoomEnabled()?20:null);b.view.scale!=ba&&(null!=l&&(ja+=W.x-l.x,oa+=W.y-l.y),null!=e&&g.chromelessResize(!1,null,ja*(b.cumulativeZoomFactor-1),oa*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||
+0==ja&&0==oa||(b.container.scrollLeft-=ja*(b.cumulativeZoomFactor-1),b.container.scrollTop-=oa*(b.cumulativeZoomFactor-1)));null!=H&&Y.setAttribute("filter",H);b.cumulativeZoomFactor=1;H=u=Z=l=fa=null}),null!=J?J:b.isFastZoomEnabled()?g.wheelZoomDelay:g.lazyZoomDelay)},0)};b.lazyZoom=function(J,W,aa,ba){ba=null!=ba?ba:this.zoomFactor;(W=W||!b.scrollbars)&&(Z=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));J?.15>=this.view.scale*this.cumulativeZoomFactor?
this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=ba,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale-.05)/this.view.scale:(this.cumulativeZoomFactor/=ba,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale);this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*
-this.cumulativeZoomFactor,160))/this.view.scale;if(b.isFastZoomEnabled()){null==H&&""!=Y.getAttribute("filter")&&(H=Y.getAttribute("filter"),Y.removeAttribute("filter"));l=new mxPoint(b.container.scrollLeft,b.container.scrollTop);J=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);ba=V||null==Z?b.container.scrollLeft+b.container.clientWidth/2:Z.x+b.container.scrollLeft-b.container.offsetLeft;var ja=V||null==Z?b.container.scrollTop+b.container.clientHeight/
-2:Z.y+b.container.scrollTop-b.container.offsetTop;Y.style.transformOrigin=ba+"px "+ja+"px";Y.style.transform="scale("+J+")";la.style.transformOrigin=ba+"px "+ja+"px";la.style.transform="scale("+J+")";null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node?(ba=b.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(ba.style,"transform-origin",(V||null==Z?b.container.clientWidth/2+b.container.scrollLeft-ba.offsetLeft+"px":Z.x+b.container.scrollLeft-ba.offsetLeft-b.container.offsetLeft+
-"px")+" "+(V||null==Z?b.container.clientHeight/2+b.container.scrollTop-ba.offsetTop+"px":Z.y+b.container.scrollTop-ba.offsetTop-b.container.offsetTop+"px")),mxUtils.setPrefixedStyle(ba.style,"transform","scale("+J+")")):b.view.validateBackgroundStyles(J,ba,ja);b.view.getDecoratorPane().style.opacity="0";b.view.getOverlayPane().style.opacity="0";null!=g.hoverIcons&&g.hoverIcons.reset();b.fireEvent(new mxEventObject("zoomPreview","factor",J))}U(b.isFastZoomEnabled()?aa:0)};mxEvent.addGestureListeners(b.container,
-function(J){null!=fa&&window.clearTimeout(fa)},null,function(J){1!=b.cumulativeZoomFactor&&U(0)});mxEvent.addListener(b.container,"scroll",function(J){null==fa||b.isMouseDown||1==b.cumulativeZoomFactor||U(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(J,V,aa,ba,ja){b.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!aa&&b.isScrollWheelEvent(J))aa=b.view.getTranslate(),ba=40/b.view.scale,mxEvent.isShiftDown(J)?b.view.setTranslate(aa.x+
-(V?-ba:ba),aa.y):b.view.setTranslate(aa.x,aa.y+(V?ba:-ba));else if(aa||b.isZoomWheelEvent(J))for(var oa=mxEvent.getSource(J);null!=oa;){if(oa==b.container)return b.tooltipHandler.hideTooltip(),Z=null!=ba&&null!=ja?new mxPoint(ba,ja):new mxPoint(mxEvent.getClientX(J),mxEvent.getClientY(J)),u=aa,aa=b.zoomFactor,ba=null,J.ctrlKey&&null!=J.deltaY&&40>Math.abs(J.deltaY)&&Math.round(J.deltaY)!=J.deltaY?aa=1+Math.abs(J.deltaY)/20*(aa-1):null!=J.movementY&&"pointermove"==J.type&&(aa=1+Math.max(1,Math.abs(J.movementY))/
-20*(aa-1),ba=-1),b.lazyZoom(V,null,ba,aa),mxEvent.consume(J),!1;oa=oa.parentNode}}),b.container);b.panningHandler.zoomGraph=function(J){b.cumulativeZoomFactor=J.scale;b.lazyZoom(0<J.scale,!0);mxEvent.consume(J)}};EditorUi.prototype.addChromelessToolbarItems=function(b){b(mxUtils.bind(this,function(e){this.actions.get("print").funct();mxEvent.consume(e)}),Editor.printImage,mxResources.get("print"))};EditorUi.prototype.isPagesEnabled=function(){return this.editor.editable||"1"!=urlParams["hide-pages"]};
+this.cumulativeZoomFactor,160))/this.view.scale;if(b.isFastZoomEnabled()){null==H&&""!=Y.getAttribute("filter")&&(H=Y.getAttribute("filter"),Y.removeAttribute("filter"));l=new mxPoint(b.container.scrollLeft,b.container.scrollTop);J=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);ba=W||null==Z?b.container.scrollLeft+b.container.clientWidth/2:Z.x+b.container.scrollLeft-b.container.offsetLeft;var ja=W||null==Z?b.container.scrollTop+b.container.clientHeight/
+2:Z.y+b.container.scrollTop-b.container.offsetTop;Y.style.transformOrigin=ba+"px "+ja+"px";Y.style.transform="scale("+J+")";la.style.transformOrigin=ba+"px "+ja+"px";la.style.transform="scale("+J+")";null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node?(ba=b.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(ba.style,"transform-origin",(W||null==Z?b.container.clientWidth/2+b.container.scrollLeft-ba.offsetLeft+"px":Z.x+b.container.scrollLeft-ba.offsetLeft-b.container.offsetLeft+
+"px")+" "+(W||null==Z?b.container.clientHeight/2+b.container.scrollTop-ba.offsetTop+"px":Z.y+b.container.scrollTop-ba.offsetTop-b.container.offsetTop+"px")),mxUtils.setPrefixedStyle(ba.style,"transform","scale("+J+")")):b.view.validateBackgroundStyles(J,ba,ja);b.view.getDecoratorPane().style.opacity="0";b.view.getOverlayPane().style.opacity="0";null!=g.hoverIcons&&g.hoverIcons.reset();b.fireEvent(new mxEventObject("zoomPreview","factor",J))}U(b.isFastZoomEnabled()?aa:0)};mxEvent.addGestureListeners(b.container,
+function(J){null!=fa&&window.clearTimeout(fa)},null,function(J){1!=b.cumulativeZoomFactor&&U(0)});mxEvent.addListener(b.container,"scroll",function(J){null==fa||b.isMouseDown||1==b.cumulativeZoomFactor||U(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(J,W,aa,ba,ja){b.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!aa&&b.isScrollWheelEvent(J))aa=b.view.getTranslate(),ba=40/b.view.scale,mxEvent.isShiftDown(J)?b.view.setTranslate(aa.x+
+(W?-ba:ba),aa.y):b.view.setTranslate(aa.x,aa.y+(W?ba:-ba));else if(aa||b.isZoomWheelEvent(J))for(var oa=mxEvent.getSource(J);null!=oa;){if(oa==b.container)return b.tooltipHandler.hideTooltip(),Z=null!=ba&&null!=ja?new mxPoint(ba,ja):new mxPoint(mxEvent.getClientX(J),mxEvent.getClientY(J)),u=aa,aa=b.zoomFactor,ba=null,J.ctrlKey&&null!=J.deltaY&&40>Math.abs(J.deltaY)&&Math.round(J.deltaY)!=J.deltaY?aa=1+Math.abs(J.deltaY)/20*(aa-1):null!=J.movementY&&"pointermove"==J.type&&(aa=1+Math.max(1,Math.abs(J.movementY))/
+20*(aa-1),ba=-1),b.lazyZoom(W,null,ba,aa),mxEvent.consume(J),!1;oa=oa.parentNode}}),b.container);b.panningHandler.zoomGraph=function(J){b.cumulativeZoomFactor=J.scale;b.lazyZoom(0<J.scale,!0);mxEvent.consume(J)}};EditorUi.prototype.addChromelessToolbarItems=function(b){b(mxUtils.bind(this,function(e){this.actions.get("print").funct();mxEvent.consume(e)}),Editor.printImage,mxResources.get("print"))};EditorUi.prototype.isPagesEnabled=function(){return this.editor.editable||"1"!=urlParams["hide-pages"]};
EditorUi.prototype.createTemporaryGraph=function(b){return Graph.createOffscreenGraph(b)};EditorUi.prototype.addChromelessClickHandler=function(){var b=urlParams.highlight;null!=b&&0<b.length&&(b="#"+b);this.editor.graph.addClickHandler(b)};EditorUi.prototype.toggleFormatPanel=function(b){b=null!=b?b:0==this.formatWidth;null!=this.format&&(this.formatWidth=b?240:0,this.formatContainer.style.width=this.formatWidth+"px",this.refresh(),this.format.refresh(),this.fireEvent(new mxEventObject("formatWidthChanged")))};
EditorUi.prototype.isFormatPanelVisible=function(){return 0<this.formatWidth};EditorUi.prototype.lightboxFit=function(b){if(this.isDiagramEmpty())this.editor.graph.view.setScale(1);else{var e=urlParams.border,g=60;null!=e&&(g=parseInt(e));this.editor.graph.maxFitScale=this.lightboxMaxFitScale;this.editor.graph.fit(g,null,null,null,null,null,b);this.editor.graph.maxFitScale=null}};
EditorUi.prototype.isDiagramEmpty=function(){var b=this.editor.graph.getModel();return 1==b.getChildCount(b.root)&&0==b.getChildCount(b.getChildAt(b.root,0))};EditorUi.prototype.isSelectionAllowed=function(b){return"SELECT"==mxEvent.getSource(b).nodeName||"INPUT"==mxEvent.getSource(b).nodeName&&mxUtils.isAncestorNode(this.formatContainer,mxEvent.getSource(b))};EditorUi.prototype.addBeforeUnloadListener=function(){window.onbeforeunload=mxUtils.bind(this,function(){if(!this.editor.isChromelessView())return this.onBeforeUnload()})};
@@ -2164,8 +2176,8 @@ e.clientWidth&&(e.scrollLeft=Math.min(g.x+g.width-e.clientWidth,g.x-10)),g.y>e.s
e.scrollTop=Math.floor(Math.max(0,g.y-Math.max(20,(e.clientHeight-m)/4)))}else{g=mxRectangle.fromRectangle(b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds());m=b.view.translate;var v=b.view.scale;g.x=g.x/v-m.x;g.y=g.y/v-m.y;g.width/=v;g.height/=v;b.view.setTranslate(Math.floor(Math.max(0,(e.clientWidth-g.width)/2)-g.x+2),Math.floor((b.pageVisible?0:Math.max(0,(e.clientHeight-g.height)/4))-g.y+1))}};
EditorUi.prototype.setPageVisible=function(b){var e=this.editor.graph,g=mxUtils.hasScrollbars(e.container),m=0,v=0;g&&(m=e.view.translate.x*e.view.scale-e.container.scrollLeft,v=e.view.translate.y*e.view.scale-e.container.scrollTop);e.pageVisible=b;e.pageBreaksVisible=b;e.preferPageSize=b;e.view.validateBackground();if(g){var p=e.getSelectionCells();e.clearSelection();e.setSelectionCells(p)}e.sizeDidChange();g&&(e.container.scrollLeft=e.view.translate.x*e.view.scale-m,e.container.scrollTop=e.view.translate.y*
e.view.scale-v);e.defaultPageVisible=b;this.fireEvent(new mxEventObject("pageViewChanged"))};
-EditorUi.prototype.installResizeHandler=function(b,e,g){e&&(b.window.setSize=function(v,p){if(!this.minimized){var B=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;v=Math.min(v,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());p=Math.min(p,B-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});b.window.setLocation=function(v,p){var B=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
-G=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,S=parseInt(this.div.style.width),F=parseInt(this.div.style.height);v=Math.max(0,Math.min(v,B-S));p=Math.max(0,Math.min(p,G-F));this.getX()==v&&this.getY()==p||mxWindow.prototype.setLocation.apply(this,arguments);e&&!this.minimized&&this.setSize(S,F)};var m=mxUtils.bind(this,function(){var v=b.window.getX(),p=b.window.getY();b.window.setLocation(v,p)});mxEvent.addListener(window,"resize",m);b.destroy=function(){mxEvent.removeListener(window,
+EditorUi.prototype.installResizeHandler=function(b,e,g){e&&(b.window.setSize=function(v,p){if(!this.minimized){var A=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;v=Math.min(v,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());p=Math.min(p,A-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});b.window.setLocation=function(v,p){var A=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
+G=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,S=parseInt(this.div.style.width),F=parseInt(this.div.style.height);v=Math.max(0,Math.min(v,A-S));p=Math.max(0,Math.min(p,G-F));this.getX()==v&&this.getY()==p||mxWindow.prototype.setLocation.apply(this,arguments);e&&!this.minimized&&this.setSize(S,F)};var m=mxUtils.bind(this,function(){var v=b.window.getX(),p=b.window.getY();b.window.setLocation(v,p)});mxEvent.addListener(window,"resize",m);b.destroy=function(){mxEvent.removeListener(window,
"resize",m);b.window.destroy();null!=g&&g()}};function ChangeGridColor(b,e){this.ui=b;this.color=e}ChangeGridColor.prototype.execute=function(){var b=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=b};(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);mxCodecRegistry.register(b)})();
function ChangePageSetup(b,e,g,m,v){this.ui=b;this.previousColor=this.color=e;this.previousImage=this.image=g;this.previousFormat=this.format=m;this.previousPageScale=this.pageScale=v;this.ignoreImage=this.ignoreColor=!1}
ChangePageSetup.prototype.execute=function(){var b=this.ui.editor.graph;if(!this.ignoreColor){this.color=this.previousColor;var e=b.background;this.ui.setBackgroundColor(this.previousColor);this.previousColor=e}if(!this.ignoreImage){this.image=this.previousImage;e=b.backgroundImage;var g=this.previousImage;null!=g&&Graph.isPageLink(g.src)&&(g=this.ui.createImageForPageLink(g.src,this.ui.currentPage));this.ui.setBackgroundImage(g);this.previousImage=e}null!=this.previousFormat&&(this.format=this.previousFormat,
@@ -2186,8 +2198,8 @@ this.actions.get("expand").setEnabled(m);this.actions.get("collapse").setEnabled
EditorUi.prototype.zeroOffset=new mxPoint(0,0);EditorUi.prototype.getDiagramContainerOffset=function(){return this.zeroOffset};
EditorUi.prototype.refresh=function(b){b=null!=b?b:!0;var e=this.container.clientWidth;this.container==document.body&&(e=document.body.clientWidth||document.documentElement.clientWidth);var g=0;mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&window.innerHeight!=document.documentElement.clientHeight&&(g=document.documentElement.clientHeight-window.innerHeight,window.scrollTo(0,0));var m=Math.max(0,Math.min(this.hsplitPosition,e-this.splitSize-40));e=0;null!=this.menubar&&
(this.menubarContainer.style.height=this.menubarHeight+"px",e+=this.menubarHeight);null!=this.toolbar&&(this.toolbarContainer.style.top=this.menubarHeight+"px",this.toolbarContainer.style.height=this.toolbarHeight+"px",e+=this.toolbarHeight);0<e&&(e+=1);var v=null!=this.format?this.formatWidth:0;this.sidebarContainer.style.top=e+"px";this.sidebarContainer.style.width=m+"px";this.formatContainer.style.top=e+"px";this.formatContainer.style.width=v+"px";this.formatContainer.style.display=null!=this.format?
-"":"none";var p=this.getDiagramContainerOffset(),B=null!=this.hsplit.parentNode?m:0;this.footerContainer.style.height=this.footerHeight+"px";this.hsplit.style.top=this.sidebarContainer.style.top;this.hsplit.style.left=m+"px";this.footerContainer.style.display=0==this.footerHeight?"none":"";null!=this.tabContainer?(this.tabContainer.style.left=B+"px",this.hsplit.style.bottom=this.tabContainer.offsetHeight+"px"):this.hsplit.style.bottom=this.footerHeight+g+"px";0<this.footerHeight&&(this.footerContainer.style.bottom=
-g+"px");m=0;null!=this.tabContainer&&(this.tabContainer.style.bottom=this.footerHeight+g+"px",this.tabContainer.style.right=v+"px",m=this.tabContainer.clientHeight,this.checkTabScrollerOverflow());this.sidebarContainer.style.bottom=this.footerHeight+g+"px";this.formatContainer.style.bottom=this.footerHeight+g+"px";this.diagramContainer.style.left=B+p.x+"px";this.diagramContainer.style.top=e+p.y+"px";this.diagramContainer.style.right=v+"px";this.diagramContainer.style.bottom=this.footerHeight+g+m+
+"":"none";var p=this.getDiagramContainerOffset(),A=null!=this.hsplit.parentNode?m:0;this.footerContainer.style.height=this.footerHeight+"px";this.hsplit.style.top=this.sidebarContainer.style.top;this.hsplit.style.left=m+"px";this.footerContainer.style.display=0==this.footerHeight?"none":"";null!=this.tabContainer?(this.tabContainer.style.left=A+"px",this.hsplit.style.bottom=this.tabContainer.offsetHeight+"px"):this.hsplit.style.bottom=this.footerHeight+g+"px";0<this.footerHeight&&(this.footerContainer.style.bottom=
+g+"px");m=0;null!=this.tabContainer&&(this.tabContainer.style.bottom=this.footerHeight+g+"px",this.tabContainer.style.right=v+"px",m=this.tabContainer.clientHeight,this.checkTabScrollerOverflow());this.sidebarContainer.style.bottom=this.footerHeight+g+"px";this.formatContainer.style.bottom=this.footerHeight+g+"px";this.diagramContainer.style.left=A+p.x+"px";this.diagramContainer.style.top=e+p.y+"px";this.diagramContainer.style.right=v+"px";this.diagramContainer.style.bottom=this.footerHeight+g+m+
"px";b&&this.editor.graph.sizeDidChange()};EditorUi.prototype.createTabContainer=function(){return null};
EditorUi.prototype.createDivs=function(){this.menubarContainer=this.createDiv("geMenubarContainer");this.toolbarContainer=this.createDiv("geToolbarContainer");this.sidebarContainer=this.createDiv("geSidebarContainer");this.formatContainer=this.createDiv("geSidebarContainer geFormatContainer");this.diagramContainer=this.createDiv("geDiagramContainer");this.footerContainer=this.createDiv("geFooterContainer");this.hsplit=this.createDiv("geHsplit");this.menubarContainer.style.top="0px";this.menubarContainer.style.left=
"0px";this.menubarContainer.style.right="0px";this.toolbarContainer.style.left="0px";this.toolbarContainer.style.right="0px";this.sidebarContainer.style.left="0px";this.sidebarContainer.style.zIndex="1";this.formatContainer.style.right="0px";this.formatContainer.style.zIndex="1";this.diagramContainer.style.right=(null!=this.format?this.formatWidth:0)+"px";this.footerContainer.style.left="0px";this.footerContainer.style.right="0px";this.footerContainer.style.bottom="0px";this.footerContainer.style.zIndex=
@@ -2201,22 +2213,22 @@ EditorUi.prototype.setStatusText=function(b){this.statusContainer.innerHTML=Grap
"transition","all 0.2s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(g,100);mxUtils.setPrefixedStyle(g.style,"transform","scaleX(1)");mxUtils.setPrefixedStyle(g.style,"transition","all 1s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(g.style,"transform","scaleX(0)");mxUtils.setOpacity(g,0);window.setTimeout(mxUtils.bind(this,function(){null!=g.parentNode&&g.parentNode.removeChild(g)}),1E3)}),Editor.updateStatusInterval/2)}),0)})(b[e])};
EditorUi.prototype.createStatusDiv=function(b){var e=document.createElement("div");e.style.textOverflow="ellipsis";e.style.display="inline-block";e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.style.minWidth="0";e.setAttribute("title",b);e.innerHTML=Graph.sanitizeHtml(b);return e};EditorUi.prototype.createToolbar=function(b){return new Toolbar(this,b)};EditorUi.prototype.createSidebar=function(b){return new Sidebar(this,b)};
EditorUi.prototype.createFormat=function(b){return new Format(this,b)};EditorUi.prototype.createFooter=function(){return this.createDiv("geFooter")};EditorUi.prototype.createDiv=function(b){var e=document.createElement("div");e.className=b;return e};
-EditorUi.prototype.addSplitHandler=function(b,e,g,m){function v(R){if(null!=B){var T=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R));m(Math.max(0,G+(e?T.x-B.x:B.y-T.y)-g));mxEvent.consume(R);G!=P()&&(S=!0,F=null)}}function p(R){v(R);B=G=null}var B=null,G=null,S=!0,F=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var P=mxUtils.bind(this,function(){var R=parseInt(e?b.style.left:b.style.bottom);e||(R=R+g-this.footerHeight);return R});mxEvent.addGestureListeners(b,function(R){B=new mxPoint(mxEvent.getClientX(R),
+EditorUi.prototype.addSplitHandler=function(b,e,g,m){function v(R){if(null!=A){var T=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R));m(Math.max(0,G+(e?T.x-A.x:A.y-T.y)-g));mxEvent.consume(R);G!=P()&&(S=!0,F=null)}}function p(R){v(R);A=G=null}var A=null,G=null,S=!0,F=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var P=mxUtils.bind(this,function(){var R=parseInt(e?b.style.left:b.style.bottom);e||(R=R+g-this.footerHeight);return R});mxEvent.addGestureListeners(b,function(R){A=new mxPoint(mxEvent.getClientX(R),
mxEvent.getClientY(R));G=P();S=!1;mxEvent.consume(R)});mxEvent.addListener(b,"click",mxUtils.bind(this,function(R){if(!S&&this.hsplitClickEnabled){var T=null!=F?F-g:0;F=P();m(T);mxEvent.consume(R)}}));mxEvent.addGestureListeners(document,null,v,p);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,v,p)})};
EditorUi.prototype.prompt=function(b,e,g){b=new FilenameDialog(this,e,mxResources.get("apply"),function(m){g(parseFloat(m))},b);this.showDialog(b.container,300,80,!0,!0);b.init()};
EditorUi.prototype.handleError=function(b,e,g,m,v){b=null!=b&&null!=b.error?b.error:b;if(null!=b||null!=e){v=mxUtils.htmlEntities(mxResources.get("unknownError"));var p=mxResources.get("ok");e=null!=e?e:mxResources.get("error");null!=b&&null!=b.message&&(v=mxUtils.htmlEntities(b.message));this.showError(e,v,p,g,null,null,null,null,null,null,null,null,m?g:null)}else null!=g&&g()};
-EditorUi.prototype.showError=function(b,e,g,m,v,p,B,G,S,F,P,R,T){b=new ErrorDialog(this,b,e,g||mxResources.get("ok"),m,v,p,B,R,G,S);e=Math.ceil(null!=e?e.length/50:1);this.showDialog(b.container,F||340,P||100+20*e,!0,!1,T);b.init()};EditorUi.prototype.showDialog=function(b,e,g,m,v,p,B,G,S,F){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,e,g,m,v,p,B,G,S,F);this.dialogs.push(this.dialog)};
+EditorUi.prototype.showError=function(b,e,g,m,v,p,A,G,S,F,P,R,T){b=new ErrorDialog(this,b,e,g||mxResources.get("ok"),m,v,p,A,R,G,S);e=Math.ceil(null!=e?e.length/50:1);this.showDialog(b.container,F||340,P||100+20*e,!0,!1,T);b.init()};EditorUi.prototype.showDialog=function(b,e,g,m,v,p,A,G,S,F){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,e,g,m,v,p,A,G,S,F);this.dialogs.push(this.dialog)};
EditorUi.prototype.hideDialog=function(b,e,g){var m=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var v=this.dialogs.length-1;0<=v;v--)if(!this.dialogs[v].closing){m=this.dialogs[v];break}null==m||null!=g&&g!=this.dialog.container.firstChild||(m.closing=!0,0==m.close(b,e)?delete m.closing:(delete m.closing,b=mxUtils.lastIndexOf(this.dialogs,m),0<=b&&this.dialogs.splice(b,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog",
"dialog",m)),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null==this.editor||null!=this.dialogs&&0!=this.dialogs.length||(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};
-EditorUi.prototype.ctrlEnter=function(){var b=this.editor.graph;if(b.isEnabled())try{for(var e=b.getSelectionCells(),g=new mxDictionary,m=[],v=0;v<e.length;v++){var p=b.isTableCell(e[v])?b.model.getParent(e[v]):e[v];null==p||g.get(p)||(g.put(p,!0),m.push(p))}b.setSelectionCells(b.duplicateCells(m,!1))}catch(B){this.handleError(B)}};
-EditorUi.prototype.pickColor=function(b,e,g,m,v){var p=this.editor.graph,B=p.cellEditor.saveSelection(),G=(v?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,b,function(S){p.cellEditor.restoreSelection(B);e(S)},function(){p.cellEditor.restoreSelection(B)},g,m,v);this.showDialog(b.container,230,G,!0,!1);b.init()};
+EditorUi.prototype.ctrlEnter=function(){var b=this.editor.graph;if(b.isEnabled())try{for(var e=b.getSelectionCells(),g=new mxDictionary,m=[],v=0;v<e.length;v++){var p=b.isTableCell(e[v])?b.model.getParent(e[v]):e[v];null==p||g.get(p)||(g.put(p,!0),m.push(p))}b.setSelectionCells(b.duplicateCells(m,!1))}catch(A){this.handleError(A)}};
+EditorUi.prototype.pickColor=function(b,e,g,m,v){var p=this.editor.graph,A=p.cellEditor.saveSelection(),G=(v?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,b,function(S){p.cellEditor.restoreSelection(A);e(S)},function(){p.cellEditor.restoreSelection(A)},g,m,v);this.showDialog(b.container,230,G,!0,!1);b.init()};
EditorUi.prototype.openFile=function(){window.openFile=new OpenFile(mxUtils.bind(this,function(b){this.hideDialog(b)}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:320,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null})};
-EditorUi.prototype.base64ToBlob=function(b,e){e=e||"";b=atob(b);for(var g=b.length,m=Math.ceil(g/1024),v=Array(m),p=0;p<m;++p){for(var B=1024*p,G=Math.min(B+1024,g),S=Array(G-B),F=0;B<G;++F,++B)S[F]=b[B].charCodeAt(0);v[p]=new Uint8Array(S)}return new Blob(v,{type:e})};
+EditorUi.prototype.base64ToBlob=function(b,e){e=e||"";b=atob(b);for(var g=b.length,m=Math.ceil(g/1024),v=Array(m),p=0;p<m;++p){for(var A=1024*p,G=Math.min(A+1024,g),S=Array(G-A),F=0;A<G;++F,++A)S[F]=b[A].charCodeAt(0);v[p]=new Uint8Array(S)}return new Blob(v,{type:e})};
EditorUi.prototype.writeImageToClipboard=function(b,e,g,m){var v=this.base64ToBlob(b.substring(b.indexOf(",")+1),"image/png");b=new ClipboardItem({"image/png":v,"text/html":new Blob(['<img src="'+b+'" width="'+e+'" height="'+g+'">'],{type:"text/html"})});navigator.clipboard.write([b])["catch"](m)};EditorUi.prototype.writeHtmlToClipboard=function(b,e){b=new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(b)],{type:"text/plain"}),"text/html":new Blob([b],{type:"text/html"})});navigator.clipboard.write([b])["catch"](e)};
EditorUi.prototype.writeTextToClipboard=function(b,e){navigator.clipboard.writeText(b)["catch"](e)};EditorUi.prototype.extractGraphModelFromHtml=function(b){var e=null;try{var g=b.indexOf("&lt;mxGraphModel ");if(0<=g){var m=b.lastIndexOf("&lt;/mxGraphModel&gt;");m>g&&(e=b.substring(g,m+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(v){}return e};
EditorUi.prototype.readGraphModelFromClipboard=function(b){this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(e){null!=e?b(e):this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(g){if(null!=g){var m=decodeURIComponent(g);this.isCompatibleString(m)&&(g=m)}b(g)}),"text")}),"html")};
-EditorUi.prototype.readGraphModelFromClipboardWithType=function(b,e){navigator.clipboard.read().then(mxUtils.bind(this,function(g){if(null!=g&&0<g.length&&"html"==e&&0<=mxUtils.indexOf(g[0].types,"text/html"))g[0].getType("text/html").then(mxUtils.bind(this,function(m){m.text().then(mxUtils.bind(this,function(v){try{var p=this.parseHtmlData(v),B="text/plain"!=p.getAttribute("data-type")?p.innerHTML:mxUtils.trim(null==p.innerText?mxUtils.getTextContent(p):p.innerText);try{var G=B.lastIndexOf("%3E");
-0<=G&&G<B.length-3&&(B=B.substring(0,G+3))}catch(P){}try{var S=p.getElementsByTagName("span"),F=null!=S&&0<S.length?mxUtils.trim(decodeURIComponent(S[0].textContent)):decodeURIComponent(B);this.isCompatibleString(F)&&(B=F)}catch(P){}}catch(P){}b(this.isCompatibleString(B)?B:null)}))["catch"](function(v){b(null)})}))["catch"](function(m){b(null)});else if(null!=g&&0<g.length&&"text"==e&&0<=mxUtils.indexOf(g[0].types,"text/plain"))g[0].getType("text/plain").then(function(m){m.text().then(function(v){b(v)})["catch"](function(){b(null)})})["catch"](function(){b(null)});
+EditorUi.prototype.readGraphModelFromClipboardWithType=function(b,e){navigator.clipboard.read().then(mxUtils.bind(this,function(g){if(null!=g&&0<g.length&&"html"==e&&0<=mxUtils.indexOf(g[0].types,"text/html"))g[0].getType("text/html").then(mxUtils.bind(this,function(m){m.text().then(mxUtils.bind(this,function(v){try{var p=this.parseHtmlData(v),A="text/plain"!=p.getAttribute("data-type")?p.innerHTML:mxUtils.trim(null==p.innerText?mxUtils.getTextContent(p):p.innerText);try{var G=A.lastIndexOf("%3E");
+0<=G&&G<A.length-3&&(A=A.substring(0,G+3))}catch(P){}try{var S=p.getElementsByTagName("span"),F=null!=S&&0<S.length?mxUtils.trim(decodeURIComponent(S[0].textContent)):decodeURIComponent(A);this.isCompatibleString(F)&&(A=F)}catch(P){}}catch(P){}b(this.isCompatibleString(A)?A:null)}))["catch"](function(v){b(null)})}))["catch"](function(m){b(null)});else if(null!=g&&0<g.length&&"text"==e&&0<=mxUtils.indexOf(g[0].types,"text/plain"))g[0].getType("text/plain").then(function(m){m.text().then(function(v){b(v)})["catch"](function(){b(null)})})["catch"](function(){b(null)});
else b(null)}))["catch"](function(g){b(null)})};
EditorUi.prototype.parseHtmlData=function(b){var e=null;if(null!=b&&0<b.length){var g="<meta "==b.substring(0,6);e=document.createElement("div");e.innerHTML=(g?'<meta charset="utf-8">':"")+Graph.sanitizeHtml(b);asHtml=!0;b=e.getElementsByTagName("style");if(null!=b)for(;0<b.length;)b[0].parentNode.removeChild(b[0]);null!=e.firstChild&&e.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=e.firstChild.nextSibling&&e.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==e.firstChild.nodeName&&
"A"==e.firstChild.nextSibling.nodeName&&null==e.firstChild.nextSibling.nextSibling&&(b=null==e.firstChild.nextSibling.innerText?mxUtils.getTextContent(e.firstChild.nextSibling):e.firstChild.nextSibling.innerText,b==e.firstChild.nextSibling.getAttribute("href")&&(mxUtils.setTextContent(e,b),asHtml=!1));g=g&&null!=e.firstChild?e.firstChild.nextSibling:e.firstChild;null!=g&&null==g.nextSibling&&g.nodeType==mxConstants.NODETYPE_ELEMENT&&"IMG"==g.nodeName?(b=g.getAttribute("src"),null!=b&&(Editor.isPngDataUrl(b)&&
@@ -2227,16 +2239,16 @@ EditorUi.prototype.save=function(b){if(null!=b){this.editor.graph.isEditing()&&t
"_blank");else{mxUtils.alert(mxResources.get("drawingTooLarge"));mxUtils.popup(e);return}this.editor.setModified(!1);this.editor.setFilename(b);this.updateDocumentTitle()}catch(g){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get("errorSavingFile")))}}};
EditorUi.prototype.executeLayouts=function(b,e){this.executeLayout(mxUtils.bind(this,function(){var g=new mxCompositeLayout(this.editor.graph,b),m=this.editor.graph.getSelectionCells();g.execute(this.editor.graph.getDefaultParent(),0==m.length?null:m)}),!0,e)};
EditorUi.prototype.executeLayout=function(b,e,g){var m=this.editor.graph;m.getModel().beginUpdate();try{b()}catch(v){throw v;}finally{this.allowAnimation&&e&&m.isEnabled()?(b=new mxMorphing(m),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){m.getModel().endUpdate();null!=g&&g()})),b.startAnimation()):(m.getModel().endUpdate(),null!=g&&g())}};
-EditorUi.prototype.showImageDialog=function(b,e,g,m){m=this.editor.graph.cellEditor;var v=m.saveSelection(),p=mxUtils.prompt(b,e);m.restoreSelection(v);if(null!=p&&0<p.length){var B=new Image;B.onload=function(){g(p,B.width,B.height)};B.onerror=function(){g(null);mxUtils.alert(mxResources.get("fileNotFound"))};B.src=p}else g(null)};EditorUi.prototype.showLinkDialog=function(b,e,g){b=new LinkDialog(this,b,e,g);this.showDialog(b.container,420,90,!0,!0);b.init()};
+EditorUi.prototype.showImageDialog=function(b,e,g,m){m=this.editor.graph.cellEditor;var v=m.saveSelection(),p=mxUtils.prompt(b,e);m.restoreSelection(v);if(null!=p&&0<p.length){var A=new Image;A.onload=function(){g(p,A.width,A.height)};A.onerror=function(){g(null);mxUtils.alert(mxResources.get("fileNotFound"))};A.src=p}else g(null)};EditorUi.prototype.showLinkDialog=function(b,e,g){b=new LinkDialog(this,b,e,g);this.showDialog(b.container,420,90,!0,!0);b.init()};
EditorUi.prototype.showDataDialog=function(b){null!=b&&"undefined"!==typeof window.EditDataDialog&&(b=new EditDataDialog(this,b),this.showDialog(b.container,480,420,!0,!1,null,!1),b.init())};
EditorUi.prototype.showBackgroundImageDialog=function(b,e){b=null!=b?b:mxUtils.bind(this,function(m){m=new ChangePageSetup(this,null,m);m.ignoreColor=!0;this.editor.graph.model.execute(m)});var g=mxUtils.prompt(mxResources.get("backgroundImage"),null!=e?e.src:"");null!=g&&0<g.length?(e=new Image,e.onload=function(){b(new mxImage(g,e.width,e.height),!1)},e.onerror=function(){b(null,!0);mxUtils.alert(mxResources.get("fileNotFound"))},e.src=g):b(null)};
EditorUi.prototype.setBackgroundImage=function(b){this.editor.graph.setBackgroundImage(b);this.editor.graph.view.validateBackgroundImage();this.fireEvent(new mxEventObject("backgroundImageChanged"))};EditorUi.prototype.confirm=function(b,e,g){mxUtils.confirm(b)?null!=e&&e():null!=g&&g()};EditorUi.prototype.createOutline=function(b){var e=new mxOutline(this.editor.graph);mxEvent.addListener(window,"resize",function(){e.update(!1)});return e};
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(b){function e(R,T,c){if(!m.isSelectionEmpty()&&m.isEnabled()){T=null!=T?T:1;var f=m.getCompositeParents(m.getSelectionCells()),k=0<f.length?f[0]:null;if(null!=k)if(c){m.getModel().beginUpdate();try{for(k=0;k<f.length;k++)if(m.getModel().isVertex(f[k])&&m.isCellResizable(f[k])){var A=m.getCellGeometry(f[k]);null!=A&&(A=A.clone(),37==R?A.width=Math.max(0,A.width-T):38==R?A.height=Math.max(0,A.height-T):39==R?A.width+=T:40==R&&(A.height+=T),m.getModel().setGeometry(f[k],
-A))}}finally{m.getModel().endUpdate()}}else{A=m.model.getParent(k);var z=m.getView().scale;c=null;1==m.getSelectionCount()&&m.model.isVertex(k)&&null!=m.layoutManager&&!m.isCellLocked(k)&&(c=m.layoutManager.getLayout(A));if(null!=c&&c.constructor==mxStackLayout)T=A.getIndex(k),37==R||38==R?m.model.add(A,k,Math.max(0,T-1)):(39==R||40==R)&&m.model.add(A,k,Math.min(m.model.getChildCount(A),T+1));else{var C=m.graphHandler;null!=C&&(null==C.first&&C.start(k,0,0,m.getMovableCells(f)),null!=C.first&&(k=
-f=0,37==R?f=-T:38==R?k=-T:39==R?f=T:40==R&&(k=T),C.currentDx+=f*z,C.currentDy+=k*z,C.checkPreview(),C.updatePreview()),null!=B&&window.clearTimeout(B),B=window.setTimeout(function(){if(null!=C.first){var I=C.roundLength(C.currentDx/z),L=C.roundLength(C.currentDy/z);C.moveCells(C.cells,I,L);C.reset()}},400))}}}}var g=this,m=this.editor.graph,v=new mxKeyHandler(m),p=v.isEventIgnored;v.isEventIgnored=function(R){return!(mxEvent.isShiftDown(R)&&9==R.keyCode)&&(!this.isControlDown(R)||mxEvent.isShiftDown(R)||
+EditorUi.prototype.createKeyHandler=function(b){function e(R,T,c){if(!m.isSelectionEmpty()&&m.isEnabled()){T=null!=T?T:1;var f=m.getCompositeParents(m.getSelectionCells()),k=0<f.length?f[0]:null;if(null!=k)if(c){m.getModel().beginUpdate();try{for(k=0;k<f.length;k++)if(m.getModel().isVertex(f[k])&&m.isCellResizable(f[k])){var B=m.getCellGeometry(f[k]);null!=B&&(B=B.clone(),37==R?B.width=Math.max(0,B.width-T):38==R?B.height=Math.max(0,B.height-T):39==R?B.width+=T:40==R&&(B.height+=T),m.getModel().setGeometry(f[k],
+B))}}finally{m.getModel().endUpdate()}}else{B=m.model.getParent(k);var z=m.getView().scale;c=null;1==m.getSelectionCount()&&m.model.isVertex(k)&&null!=m.layoutManager&&!m.isCellLocked(k)&&(c=m.layoutManager.getLayout(B));if(null!=c&&c.constructor==mxStackLayout)T=B.getIndex(k),37==R||38==R?m.model.add(B,k,Math.max(0,T-1)):(39==R||40==R)&&m.model.add(B,k,Math.min(m.model.getChildCount(B),T+1));else{var C=m.graphHandler;null!=C&&(null==C.first&&C.start(k,0,0,m.getMovableCells(f)),null!=C.first&&(k=
+f=0,37==R?f=-T:38==R?k=-T:39==R?f=T:40==R&&(k=T),C.currentDx+=f*z,C.currentDy+=k*z,C.checkPreview(),C.updatePreview()),null!=A&&window.clearTimeout(A),A=window.setTimeout(function(){if(null!=C.first){var I=C.roundLength(C.currentDx/z),L=C.roundLength(C.currentDy/z);C.moveCells(C.cells,I,L);C.reset()}},400))}}}}var g=this,m=this.editor.graph,v=new mxKeyHandler(m),p=v.isEventIgnored;v.isEventIgnored=function(R){return!(mxEvent.isShiftDown(R)&&9==R.keyCode)&&(!this.isControlDown(R)||mxEvent.isShiftDown(R)||
90!=R.keyCode&&89!=R.keyCode&&188!=R.keyCode&&190!=R.keyCode&&85!=R.keyCode)&&(66!=R.keyCode&&73!=R.keyCode||!this.isControlDown(R)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=R.keyCode&&107!=R.keyCode||!this.isControlDown(R)&&!mxEvent.isShiftDown(R)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&p.apply(this,arguments)};v.isEnabledForEvent=function(R){return!mxEvent.isConsumed(R)&&this.isGraphEvent(R)&&this.isEnabled()&&(null==
-g.dialogs||0==g.dialogs.length)};v.isControlDown=function(R){return mxEvent.isControlDown(R)||mxClient.IS_MAC&&R.metaKey};var B=null,G={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},S=v.getFunction;mxKeyHandler.prototype.getFunction=function(R){if(m.isEnabled()){var T=null;mxEvent.isShiftDown(R)&&this.isControlDown(R)&&mxEvent.isAltDown(R)?T=g.actions.get(g.ctrlAltShiftActions[R.keyCode]):mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)?
+g.dialogs||0==g.dialogs.length)};v.isControlDown=function(R){return mxEvent.isControlDown(R)||mxClient.IS_MAC&&R.metaKey};var A=null,G={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},S=v.getFunction;mxKeyHandler.prototype.getFunction=function(R){if(m.isEnabled()){var T=null;mxEvent.isShiftDown(R)&&this.isControlDown(R)&&mxEvent.isAltDown(R)?T=g.actions.get(g.ctrlAltShiftActions[R.keyCode]):mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)?
T=g.actions.get(g.altShiftActions[R.keyCode]):this.isControlDown(R)&&mxEvent.isAltDown(R)&&(T=g.actions.get(g.ctrlAltActions[R.keyCode]));if(null!=T)return T.funct;if(null!=G[R.keyCode]&&!m.isSelectionEmpty())if(!this.isControlDown(R)&&mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)){if(m.model.isVertex(m.getSelectionCell()))return function(){var c=m.connectVertex(m.getSelectionCell(),G[R.keyCode],m.defaultEdgeLength,R,!0);null!=c&&0<c.length&&(1==c.length&&m.model.isEdge(c[0])?m.setSelectionCell(m.model.getTerminal(c[0],
!1)):m.setSelectionCell(c[c.length-1]),m.scrollCellToVisible(m.getSelectionCell()),null!=g.hoverIcons&&g.hoverIcons.update(m.view.getState(m.getSelectionCell())))}}else return this.isControlDown(R)?function(){e(R.keyCode,mxEvent.isShiftDown(R)?m.gridSize:null,!0)}:function(){e(R.keyCode,mxEvent.isShiftDown(R)?m.gridSize:null)}}return S.apply(this,arguments)};v.bindAction=mxUtils.bind(this,function(R,T,c,f){var k=this.actions.get(c);null!=k&&(c=function(){k.isEnabled()&&k.funct.apply(this,arguments)},
T?f?v.bindControlShiftKey(R,c):v.bindControlKey(R,c):f?v.bindShiftKey(R,c):v.bindKey(R,c))});var F=this,P=v.escape;v.escape=function(R){P.apply(this,arguments)};v.enter=function(){};v.bindControlShiftKey(36,function(){m.exitGroup()});v.bindControlShiftKey(35,function(){m.enterGroup()});v.bindShiftKey(36,function(){m.home()});v.bindKey(35,function(){m.refresh()});v.bindAction(80,!0,"print");v.bindAction(107,!0,"zoomIn");v.bindAction(109,!0,"zoomOut");v.bindAction(61,!0,"zoomIn");v.bindAction(187,!0,
@@ -2249,45 +2261,46 @@ mxEvent.addListener(e,"click",mxUtils.bind(this,function(m){this.hideCurrentMenu
EditorUi.prototype.destroy=function(){var b=this.editor.graph;null!=b&&null!=this.selectionStateListener&&(b.getSelectionModel().removeListener(this.selectionStateListener),b.getModel().removeListener(this.selectionStateListener),b.getView().removeListener(this.selectionStateListener),b.removeListener(this.selectionStateListener),this.selectionStateListener=null);null!=this.editor&&(this.editor.destroy(),this.editor=null);null!=this.menubar&&(this.menubar.destroy(),this.menubar=null);null!=this.toolbar&&
(this.toolbar.destroy(),this.toolbar=null);null!=this.sidebar&&(this.sidebar.destroy(),this.sidebar=null);null!=this.keyHandler&&(this.keyHandler.destroy(),this.keyHandler=null);null!=this.keydownHandler&&(mxEvent.removeListener(document,"keydown",this.keydownHandler),this.keydownHandler=null);null!=this.keyupHandler&&(mxEvent.removeListener(document,"keyup",this.keyupHandler),this.keyupHandler=null);null!=this.resizeHandler&&(mxEvent.removeListener(window,"resize",this.resizeHandler),this.resizeHandler=
null);null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null);null!=this.orientationChangeHandler&&(mxEvent.removeListener(window,"orientationchange",this.orientationChangeHandler),this.orientationChangeHandler=null);null!=this.scrollHandler&&(mxEvent.removeListener(window,"scroll",this.scrollHandler),this.scrollHandler=null);if(null!=this.destroyFunctions){for(b=0;b<this.destroyFunctions.length;b++)this.destroyFunctions[b]();this.destroyFunctions=
-null}var e=[this.menubarContainer,this.toolbarContainer,this.sidebarContainer,this.formatContainer,this.diagramContainer,this.footerContainer,this.chromelessToolbar,this.hsplit,this.layersDialog];for(b=0;b<e.length;b++)null!=e[b]&&null!=e[b].parentNode&&e[b].parentNode.removeChild(e[b])};(function(){var b=[["nbsp","160"],["shy","173"]],e=mxUtils.parseXml;mxUtils.parseXml=function(m){for(var v=0;v<b.length;v++)m=m.replace(new RegExp("&"+b[v][0]+";","g"),"&#"+b[v][1]+";");return e(m)};var g=mxUtils.getSizeForString;mxUtils.getSizeForString=function(m,v,p,B){return g(Graph.sanitizeHtml(m),v,p,B)}})();
+null}var e=[this.menubarContainer,this.toolbarContainer,this.sidebarContainer,this.formatContainer,this.diagramContainer,this.footerContainer,this.chromelessToolbar,this.hsplit,this.layersDialog];for(b=0;b<e.length;b++)null!=e[b]&&null!=e[b].parentNode&&e[b].parentNode.removeChild(e[b])};(function(){var b=[["nbsp","160"],["shy","173"]],e=mxUtils.parseXml;mxUtils.parseXml=function(m){for(var v=0;v<b.length;v++)m=m.replace(new RegExp("&"+b[v][0]+";","g"),"&#"+b[v][1]+";");return e(m)};var g=mxUtils.getSizeForString;mxUtils.getSizeForString=function(m,v,p,A){return g(Graph.sanitizeHtml(m),v,p,A)}})();
Date.prototype.toISOString||function(){function b(e){e=String(e);1===e.length&&(e="0"+e);return e}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1E3).toFixed(3)).slice(2,5)+"Z"}}();Date.now||(Date.now=function(){return(new Date).getTime()});
-Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,e=function(m){return"function"===typeof m||"[object Function]"===b.call(m)},g=Math.pow(2,53)-1;return function(m){var v=Object(m);if(null==m)throw new TypeError("Array.from requires an array-like object - not null or undefined");var p=1<arguments.length?arguments[1]:void 0,B;if("undefined"!==typeof p){if(!e(p))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(B=
-arguments[2])}var G=Number(v.length);G=isNaN(G)?0:0!==G&&isFinite(G)?(0<G?1:-1)*Math.floor(Math.abs(G)):G;G=Math.min(Math.max(G,0),g);for(var S=e(this)?Object(new this(G)):Array(G),F=0,P;F<G;)P=v[F],S[F]=p?"undefined"===typeof B?p(P,F):p.call(B,P,F):P,F+=1;S.length=G;return S}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
+Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,e=function(m){return"function"===typeof m||"[object Function]"===b.call(m)},g=Math.pow(2,53)-1;return function(m){var v=Object(m);if(null==m)throw new TypeError("Array.from requires an array-like object - not null or undefined");var p=1<arguments.length?arguments[1]:void 0,A;if("undefined"!==typeof p){if(!e(p))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(A=
+arguments[2])}var G=Number(v.length);G=isNaN(G)?0:0!==G&&isFinite(G)?(0<G?1:-1)*Math.floor(Math.abs(G)):G;G=Math.min(Math.max(G,0),g);for(var S=e(this)?Object(new this(G)):Array(G),F=0,P;F<G;)P=v[F],S[F]=p?"undefined"===typeof A?p(P,F):p.call(A,P,F):P,F+=1;S.length=G;return S}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
mxGraph.prototype.pageBreakColor="#c0c0c0";mxGraph.prototype.pageScale=1;(function(){try{if(null!=navigator&&null!=navigator.language){var b=navigator.language.toLowerCase();mxGraph.prototype.pageFormat="en-us"===b||"en-ca"===b||"es-mx"===b?mxConstants.PAGE_FORMAT_LETTER_PORTRAIT:mxConstants.PAGE_FORMAT_A4_PORTRAIT}}catch(e){}})();mxText.prototype.baseSpacingTop=5;mxText.prototype.baseSpacingBottom=1;mxGraphModel.prototype.ignoreRelativeEdgeParent=!1;
mxGraphView.prototype.gridImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhCgAKAJEAAAAAAP///8zMzP///yH5BAEAAAMALAAAAAAKAAoAAAIJ1I6py+0Po2wFADs=":IMAGE_PATH+"/grid.gif";mxGraphView.prototype.gridSteps=4;mxGraphView.prototype.minGridSize=4;mxGraphView.prototype.defaultGridColor="#d0d0d0";mxGraphView.prototype.defaultDarkGridColor="#424242";mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultGridColor;mxGraphView.prototype.unit=mxConstants.POINTS;
mxGraphView.prototype.setUnit=function(b){this.unit!=b&&(this.unit=b,this.graph.refresh(),this.fireEvent(new mxEventObject("unitChanged","unit",b)))};mxSvgCanvas2D.prototype.foAltText="[Not supported by viewer]";mxShape.prototype.getConstraints=function(b,e,g){return null};
mxImageShape.prototype.getImageDataUri=function(){var b=String(this.image);if("data:image/svg+xml;base64,"==b.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=b)this.clippedSvg=Graph.clipSvgDataUri(b,!0),this.clippedImage=b;b=this.clippedSvg}return b};
(function(){var b=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(e,g,m,v,p){return"default"==v&&null!=p?"fillcolor"==m.nodeName?p.shapeBackgroundColor:p.shapeForegroundColor:b.apply(this,arguments)}})();(function(){var b=mxResources.get;mxResources.get=function(e,g,m){null==m&&(m=e);return b.apply(this,[e,g,m])}})();
+(function(){var b=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(e,g,m,v,p,A,G,S){var F=b.apply(this,arguments);if(null!=g){var P=F.getElementsByTagName("img");0<P.length&&(P[0].className="geToolbarButton geAdaptiveAsset",P[0].style.margin="4px",P[0].style.width="18px")}return F}})();
Graph=function(b,e,g,m,v,p){mxGraph.call(this,b,e,g,m);this.themes=v||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=p?p:!1;b=this.baseUrl;e=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<e&&(e=b.indexOf("/",e+2),0<e&&(this.domainUrl=b.substring(0,e)),e=b.lastIndexOf("/"),0<e&&(this.domainPathUrl=b.substring(0,e+1)));this.isHtmlLabel=function(Z){Z=this.getCurrentCellStyle(Z);
-return null!=Z?"1"==Z.html||"wrap"==Z[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var B=null,G=null,S=null,F=null,P=!1,R=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(Z,l){if("mouseDown"==l.getProperty("eventName")&&this.isEnabled()){Z=l.getProperty("event");var u=Z.getState();l=this.view.scale;if(!mxEvent.isAltDown(Z.getEvent())&&null!=u&&(R=this.isCellSelected(u.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(Z.getEvent()))){var H=this.selectionCellsHandler.getHandler(u.cell);
+return null!=Z?"1"==Z.html||"wrap"==Z[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var A=null,G=null,S=null,F=null,P=!1,R=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(Z,l){if("mouseDown"==l.getProperty("eventName")&&this.isEnabled()){Z=l.getProperty("event");var u=Z.getState();l=this.view.scale;if(!mxEvent.isAltDown(Z.getEvent())&&null!=u&&(R=this.isCellSelected(u.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(Z.getEvent()))){var H=this.selectionCellsHandler.getHandler(u.cell);
if(null==H||null==H.getHandleForEvent(Z)){var U=new mxRectangle(Z.getGraphX()-1,Z.getGraphY()-1),J=mxEvent.isTouchEvent(Z.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;H=J+2;U.grow(J);if(this.isTableCell(u.cell)&&this.isCellMovable(u.cell)&&!this.isCellSelected(u.cell)&&!(mxUtils.contains(u,Z.getGraphX()-H,Z.getGraphY()-H)&&mxUtils.contains(u,Z.getGraphX()-H,Z.getGraphY()+H)&&mxUtils.contains(u,Z.getGraphX()+H,Z.getGraphY()+H)&&mxUtils.contains(u,Z.getGraphX()+
-H,Z.getGraphY()-H))){var V=this.model.getParent(u.cell);H=this.model.getParent(V);if(!this.isCellSelected(H)){J*=l;var aa=2*J;if(this.model.getChildAt(H,0)!=V&&mxUtils.intersects(U,new mxRectangle(u.x,u.y-J,u.width,aa))||this.model.getChildAt(V,0)!=u.cell&&mxUtils.intersects(U,new mxRectangle(u.x-J,u.y,aa,u.height))||mxUtils.intersects(U,new mxRectangle(u.x,u.y+u.height-J,u.width,aa))||mxUtils.intersects(U,new mxRectangle(u.x+u.width-J,u.y,aa,u.height)))V=this.selectionCellsHandler.isHandled(H),this.selectCellForEvent(H,
-Z.getEvent()),H=this.selectionCellsHandler.getHandler(H),null!=H&&(J=H.getHandleForEvent(Z),null!=J&&(H.start(Z.getGraphX(),Z.getGraphY(),J),H.blockDelayedSelection=!V,Z.consume()))}}for(;!Z.isConsumed()&&null!=u&&(this.isTableCell(u.cell)||this.isTableRow(u.cell)||this.isTable(u.cell));)this.isSwimlane(u.cell)&&this.isCellMovable(u.cell)&&(H=this.getActualStartSize(u.cell),(0<H.x||0<H.width)&&mxUtils.intersects(U,new mxRectangle(u.x+(H.x-H.width-1)*l+(0==H.x?u.width:0),u.y,1,u.height))||(0<H.y||
+H,Z.getGraphY()-H))){var W=this.model.getParent(u.cell);H=this.model.getParent(W);if(!this.isCellSelected(H)){J*=l;var aa=2*J;if(this.model.getChildAt(H,0)!=W&&mxUtils.intersects(U,new mxRectangle(u.x,u.y-J,u.width,aa))||this.model.getChildAt(W,0)!=u.cell&&mxUtils.intersects(U,new mxRectangle(u.x-J,u.y,aa,u.height))||mxUtils.intersects(U,new mxRectangle(u.x,u.y+u.height-J,u.width,aa))||mxUtils.intersects(U,new mxRectangle(u.x+u.width-J,u.y,aa,u.height)))W=this.selectionCellsHandler.isHandled(H),this.selectCellForEvent(H,
+Z.getEvent()),H=this.selectionCellsHandler.getHandler(H),null!=H&&(J=H.getHandleForEvent(Z),null!=J&&(H.start(Z.getGraphX(),Z.getGraphY(),J),H.blockDelayedSelection=!W,Z.consume()))}}for(;!Z.isConsumed()&&null!=u&&(this.isTableCell(u.cell)||this.isTableRow(u.cell)||this.isTable(u.cell));)this.isSwimlane(u.cell)&&this.isCellMovable(u.cell)&&(H=this.getActualStartSize(u.cell),(0<H.x||0<H.width)&&mxUtils.intersects(U,new mxRectangle(u.x+(H.x-H.width-1)*l+(0==H.x?u.width:0),u.y,1,u.height))||(0<H.y||
0<H.height)&&mxUtils.intersects(U,new mxRectangle(u.x,u.y+(H.y-H.height-1)*l+(0==H.y?u.height:0),u.width,1)))&&(this.selectCellForEvent(u.cell,Z.getEvent()),H=this.selectionCellsHandler.getHandler(u.cell),null!=H&&null!=H.customHandles&&(J=mxEvent.CUSTOM_HANDLE-H.customHandles.length+1,H.start(Z.getGraphX(),Z.getGraphY(),J),Z.consume())),u=this.view.getState(this.model.getParent(u.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,function(Z,l){if("mouseDown"==l.getProperty("eventName")&&
-this.isEnabled()){Z=l.getProperty("event");var u=Z.getState();mxEvent.isAltDown(Z.getEvent())||mxEvent.isControlDown(l)||mxEvent.isShiftDown(l)||R||null==u||!this.model.isEdge(u.cell)||(B=new mxPoint(Z.getGraphX(),Z.getGraphY()),P=this.isCellSelected(u.cell),S=u,G=Z,null!=u.text&&null!=u.text.boundingBox&&mxUtils.contains(u.text.boundingBox,Z.getGraphX(),Z.getGraphY())?F=mxEvent.LABEL_HANDLE:(l=this.selectionCellsHandler.getHandler(u.cell),null!=l&&null!=l.bends&&0<l.bends.length&&(F=l.getHandleForEvent(Z))))}}));
-this.addMouseListener({mouseDown:function(Z,l){},mouseMove:mxUtils.bind(this,function(Z,l){Z=this.selectionCellsHandler.handlers.map;for(var u in Z)if(null!=Z[u].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(l.getEvent())){var H=this.tolerance;if(null!=B&&null!=S&&null!=G){if(u=S,null!=F||Math.abs(B.x-l.getGraphX())>H||Math.abs(B.y-l.getGraphY())>H){var U=null;mxEvent.isShiftDown(l.getEvent())||(U=this.selectionCellsHandler.getHandler(u.cell));if(null!=U&&null!=
-U.bends&&0<U.bends.length){U.redrawHandles();var J=null!=F?F:U.getHandleForEvent(G),V=this.view.getEdgeStyle(u),aa=V==mxEdgeStyle.EntityRelation;H=u.absolutePoints;P||(J=F);J!=mxEvent.LABEL_HANDLE&&null!=H&&(J=F,null==J&&(Z=new mxRectangle(B.x,B.y),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(Z,H[0].x,H[0].y)?J=0:mxUtils.contains(Z,H[H.length-1].x,H[H.length-1].y)?J=U.bends.length-1:null!=H&&(null==V&&null==J||V==mxEdgeStyle.SegmentConnector||V==mxEdgeStyle.OrthConnector)&&
-(null!=V&&(2==H.length||3==H.length&&(0==Math.round(H[0].x-H[1].x)&&0==Math.round(H[1].x-H[2].x)||0==Math.round(H[0].y-H[1].y)&&0==Math.round(H[1].y-H[2].y)))?J=2:(J=mxUtils.findNearestSegment(u,B.x,B.y),J=null==V?mxEvent.VIRTUAL_HANDLE-J:J+1))),null==J&&(J=mxEvent.VIRTUAL_HANDLE));Z=J==mxEvent.LABEL_HANDLE||0==J||J==U.bends.length-1;if(!aa&&(null!=u.visibleSourceState||null!=u.visibleTargetState)||Z)U.start(l.getGraphX(),l.getGraphX(),J),l.consume(),this.graphHandler.reset()}null!=U&&(this.selectionCellsHandler.isHandlerActive(U)?
-this.isCellSelected(u.cell)||(this.selectionCellsHandler.handlers.put(u.cell,U),this.selectCellForEvent(u.cell,l.getEvent())):this.isCellSelected(u.cell)||U.destroy());P=!1;B=G=S=F=null}}else if(u=l.getState(),null!=u&&this.isCellEditable(u.cell)){Z=this.model.getParent(u.cell);U=null;if(this.model.isEdge(u.cell)&&!this.isCellSelected(u.cell)&&!mxEvent.isAltDown(l.getEvent())&&!mxEvent.isShiftDown(l.getEvent())&&!this.isAncestorSelected(u.cell)&&(this.isSwimlane(Z)||this.model.isLayer(Z)||this.getCurrentRoot()==
-Z)){if(Z=new mxRectangle(l.getGraphX(),l.getGraphY()),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),H=u.absolutePoints,null!=H)null!=u.text&&null!=u.text.boundingBox&&mxUtils.contains(u.text.boundingBox,l.getGraphX(),l.getGraphY())?U="move":mxUtils.contains(Z,H[0].x,H[0].y)||mxUtils.contains(Z,H[H.length-1].x,H[H.length-1].y)?U="pointer":(V=this.view.getEdgeStyle(u),V==mxEdgeStyle.EntityRelation||null==u.visibleSourceState&&null==u.visibleTargetState||(U="crosshair",V!=mxEdgeStyle.SegmentConnector&&
-V!=mxEdgeStyle.OrthConnector))||(l=mxUtils.findNearestSegment(u,l.getGraphX(),l.getGraphY()),l<H.length-1&&0<=l&&(U=0==Math.round(H[l].x-H[l+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(l.getEvent())){H=mxShape.prototype.svgStrokeTolerance/2;Z=new mxRectangle(l.getGraphX(),l.getGraphY());Z.grow(H);if(this.isTableCell(u.cell)&&this.isCellMovable(u.cell)&&(l=this.model.getParent(u.cell),H=this.model.getParent(l),!this.isCellSelected(H)))if(mxUtils.intersects(Z,new mxRectangle(u.x,
+this.isEnabled()){Z=l.getProperty("event");var u=Z.getState();mxEvent.isAltDown(Z.getEvent())||mxEvent.isControlDown(l)||mxEvent.isShiftDown(l)||R||null==u||!this.model.isEdge(u.cell)||(A=new mxPoint(Z.getGraphX(),Z.getGraphY()),P=this.isCellSelected(u.cell),S=u,G=Z,null!=u.text&&null!=u.text.boundingBox&&mxUtils.contains(u.text.boundingBox,Z.getGraphX(),Z.getGraphY())?F=mxEvent.LABEL_HANDLE:(l=this.selectionCellsHandler.getHandler(u.cell),null!=l&&null!=l.bends&&0<l.bends.length&&(F=l.getHandleForEvent(Z))))}}));
+this.addMouseListener({mouseDown:function(Z,l){},mouseMove:mxUtils.bind(this,function(Z,l){Z=this.selectionCellsHandler.handlers.map;for(var u in Z)if(null!=Z[u].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(l.getEvent())){var H=this.tolerance;if(null!=A&&null!=S&&null!=G){if(u=S,null!=F||Math.abs(A.x-l.getGraphX())>H||Math.abs(A.y-l.getGraphY())>H){var U=null;mxEvent.isShiftDown(l.getEvent())||(U=this.selectionCellsHandler.getHandler(u.cell));if(null!=U&&null!=
+U.bends&&0<U.bends.length){U.redrawHandles();var J=null!=F?F:U.getHandleForEvent(G),W=this.view.getEdgeStyle(u),aa=W==mxEdgeStyle.EntityRelation;H=u.absolutePoints;P||(J=F);J!=mxEvent.LABEL_HANDLE&&null!=H&&(J=F,null==J&&(Z=new mxRectangle(A.x,A.y),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(Z,H[0].x,H[0].y)?J=0:mxUtils.contains(Z,H[H.length-1].x,H[H.length-1].y)?J=U.bends.length-1:null!=H&&(null==W&&null==J||W==mxEdgeStyle.SegmentConnector||W==mxEdgeStyle.OrthConnector)&&
+(null!=W&&(2==H.length||3==H.length&&(0==Math.round(H[0].x-H[1].x)&&0==Math.round(H[1].x-H[2].x)||0==Math.round(H[0].y-H[1].y)&&0==Math.round(H[1].y-H[2].y)))?J=2:(J=mxUtils.findNearestSegment(u,A.x,A.y),J=null==W?mxEvent.VIRTUAL_HANDLE-J:J+1))),null==J&&(J=mxEvent.VIRTUAL_HANDLE));Z=J==mxEvent.LABEL_HANDLE||0==J||J==U.bends.length-1;if(!aa&&(null!=u.visibleSourceState||null!=u.visibleTargetState)||Z)U.start(l.getGraphX(),l.getGraphX(),J),l.consume(),this.graphHandler.reset()}null!=U&&(this.selectionCellsHandler.isHandlerActive(U)?
+this.isCellSelected(u.cell)||(this.selectionCellsHandler.handlers.put(u.cell,U),this.selectCellForEvent(u.cell,l.getEvent())):this.isCellSelected(u.cell)||U.destroy());P=!1;A=G=S=F=null}}else if(u=l.getState(),null!=u&&this.isCellEditable(u.cell)){Z=this.model.getParent(u.cell);U=null;if(this.model.isEdge(u.cell)&&!this.isCellSelected(u.cell)&&!mxEvent.isAltDown(l.getEvent())&&!mxEvent.isShiftDown(l.getEvent())&&!this.isAncestorSelected(u.cell)&&(this.isSwimlane(Z)||this.model.isLayer(Z)||this.getCurrentRoot()==
+Z)){if(Z=new mxRectangle(l.getGraphX(),l.getGraphY()),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),H=u.absolutePoints,null!=H)null!=u.text&&null!=u.text.boundingBox&&mxUtils.contains(u.text.boundingBox,l.getGraphX(),l.getGraphY())?U="move":mxUtils.contains(Z,H[0].x,H[0].y)||mxUtils.contains(Z,H[H.length-1].x,H[H.length-1].y)?U="pointer":(W=this.view.getEdgeStyle(u),W==mxEdgeStyle.EntityRelation||null==u.visibleSourceState&&null==u.visibleTargetState||(U="crosshair",W!=mxEdgeStyle.SegmentConnector&&
+W!=mxEdgeStyle.OrthConnector))||(l=mxUtils.findNearestSegment(u,l.getGraphX(),l.getGraphY()),l<H.length-1&&0<=l&&(U=0==Math.round(H[l].x-H[l+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(l.getEvent())){H=mxShape.prototype.svgStrokeTolerance/2;Z=new mxRectangle(l.getGraphX(),l.getGraphY());Z.grow(H);if(this.isTableCell(u.cell)&&this.isCellMovable(u.cell)&&(l=this.model.getParent(u.cell),H=this.model.getParent(l),!this.isCellSelected(H)))if(mxUtils.intersects(Z,new mxRectangle(u.x,
u.y-2,u.width,4))&&this.model.getChildAt(H,0)!=l||mxUtils.intersects(Z,new mxRectangle(u.x,u.y+u.height-2,u.width,4)))U="row-resize";else if(mxUtils.intersects(Z,new mxRectangle(u.x-2,u.y,4,u.height))&&this.model.getChildAt(l,0)!=u.cell||mxUtils.intersects(Z,new mxRectangle(u.x+u.width-2,u.y,4,u.height)))U="col-resize";for(l=u;null==U&&null!=l&&(this.isTableCell(l.cell)||this.isTableRow(l.cell)||this.isTable(l.cell));)this.isSwimlane(l.cell)&&this.isCellMovable(l.cell)&&(H=this.getActualStartSize(l.cell),
-J=this.view.scale,(0<H.x||0<H.width)&&mxUtils.intersects(Z,new mxRectangle(l.x+(H.x-H.width-1)*J+(0==H.x?l.width*J:0),l.y,1,l.height))?U="col-resize":(0<H.y||0<H.height)&&mxUtils.intersects(Z,new mxRectangle(l.x,l.y+(H.y-H.height-1)*J+(0==H.y?l.height:0),l.width,1))&&(U="row-resize")),l=this.view.getState(this.model.getParent(l.cell))}null!=U&&u.setCursor(U)}}}),mouseUp:mxUtils.bind(this,function(Z,l){F=B=G=S=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var T=document.createElement("div");this.cellRenderer.getLabelValue=
+J=this.view.scale,(0<H.x||0<H.width)&&mxUtils.intersects(Z,new mxRectangle(l.x+(H.x-H.width-1)*J+(0==H.x?l.width*J:0),l.y,1,l.height))?U="col-resize":(0<H.y||0<H.height)&&mxUtils.intersects(Z,new mxRectangle(l.x,l.y+(H.y-H.height-1)*J+(0==H.y?l.height:0),l.width,1))&&(U="row-resize")),l=this.view.getState(this.model.getParent(l.cell))}null!=U&&u.setCursor(U)}}}),mouseUp:mxUtils.bind(this,function(Z,l){F=A=G=S=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var T=document.createElement("div");this.cellRenderer.getLabelValue=
function(Z){var l=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);Z.view.graph.isHtmlLabel(Z.cell)&&("0"==mxUtils.getValue(Z.style,"html","0")?l=mxUtils.htmlEntities(l,!1):(Z.lastLabelValue!=l&&(Z.lastLabelValue=l,Z.lastSanitizedLabelValue=Graph.sanitizeHtml(l),T.innerHTML=Z.lastSanitizedLabelValue,Graph.addLightDarkColors(T,null,"simple"==Z.view.graph.getAdaptiveColors())&&(Z.lastSanitizedLabelValue=T.innerHTML)),l=Z.lastSanitizedLabelValue));return l};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);
this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(Z,l){return!1};this.alternateEdgeStyle="vertical";null==m&&this.loadStylesheet();var c=this.graphHandler.getGuideStates;
-this.graphHandler.getGuideStates=function(){var Z=c.apply(this,arguments);if(this.graph.pageVisible){var l=[],u=this.graph.pageFormat,H=this.graph.pageScale,U=u.width*H;u=u.height*H;H=this.graph.view.translate;for(var J=this.graph.view.scale,V=this.graph.getPageLayout(),aa=0;aa<V.width;aa++)l.push(new mxRectangle(((V.x+aa)*U+H.x)*J,(V.y*u+H.y)*J,U*J,u*J));for(aa=1;aa<V.height;aa++)l.push(new mxRectangle((V.x*U+H.x)*J,((V.y+aa)*u+H.y)*J,U*J,u*J));Z=l.concat(Z)}return Z};mxDragSource.prototype.dragElementZIndex=
+this.graphHandler.getGuideStates=function(){var Z=c.apply(this,arguments);if(this.graph.pageVisible){var l=[],u=this.graph.pageFormat,H=this.graph.pageScale,U=u.width*H;u=u.height*H;H=this.graph.view.translate;for(var J=this.graph.view.scale,W=this.graph.getPageLayout(),aa=0;aa<W.width;aa++)l.push(new mxRectangle(((W.x+aa)*U+H.x)*J,(W.y*u+H.y)*J,U*J,u*J));for(aa=1;aa<W.height;aa++)l.push(new mxRectangle((W.x*U+H.x)*J,((W.y+aa)*u+H.y)*J,U*J,u*J));Z=l.concat(Z)}return Z};mxDragSource.prototype.dragElementZIndex=
mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(Z,l){return null==Z.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(Z){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var f=this.graphHandler.getCells;this.graphHandler.getCells=function(Z){for(var l=f.apply(this,arguments),u=new mxDictionary,H=[],U=0;U<l.length;U++){var J=
this.graph.isTableCell(Z)&&this.graph.isTableCell(l[U])&&this.graph.isCellSelected(l[U])?this.graph.model.getParent(l[U]):this.graph.isTableRow(Z)&&this.graph.isTableRow(l[U])&&this.graph.isCellSelected(l[U])?l[U]:this.graph.getCompositeParent(l[U]);null==J||u.get(J)||(u.put(J,!0),H.push(J))}return H};var k=this.graphHandler.start;this.graphHandler.start=function(Z,l,u,H){var U=!1;this.graph.isTableCell(Z)&&(this.graph.isCellSelected(Z)?U=!0:Z=this.graph.model.getParent(Z));U||this.graph.isTableRow(Z)&&
-this.graph.isCellSelected(Z)||(Z=this.graph.getCompositeParent(Z));k.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(Z,l){l=this.graph.getCompositeParent(l);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(Z,l,u,H,U,J){var V=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=H&&this.graph.applyNewEdgeStyle(H,[V]);return V};var A=new mxRubberband(this);this.getRubberband=function(){return A};
+this.graph.isCellSelected(Z)||(Z=this.graph.getCompositeParent(Z));k.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(Z,l){l=this.graph.getCompositeParent(l);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(Z,l,u,H,U,J){var W=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=H&&this.graph.applyNewEdgeStyle(H,[W]);return W};var B=new mxRubberband(this);this.getRubberband=function(){return B};
var z=(new Date).getTime(),C=0,I=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var Z=this.currentState;I.apply(this,arguments);Z!=this.currentState?(z=(new Date).getTime(),C=0):C=(new Date).getTime()-z};var L=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(Z){return mxEvent.isShiftDown(Z.getEvent())&&mxEvent.isAltDown(Z.getEvent())?!1:null!=this.currentState&&Z.getState()==this.currentState&&2E3<C||(null==this.currentState||
-"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&L.apply(this,arguments)};var K=this.isToggleEvent;this.isToggleEvent=function(Z){return K.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(Z)};var O=A.isForceRubberbandEvent;A.isForceRubberbandEvent=function(Z){return O.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(Z.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClient.IS_FF&&mxClient.IS_WIN&&null==Z.getState()&&mxEvent.isTouchEvent(Z.getEvent())};
+"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&L.apply(this,arguments)};var K=this.isToggleEvent;this.isToggleEvent=function(Z){return K.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(Z)};var O=B.isForceRubberbandEvent;B.isForceRubberbandEvent=function(Z){return O.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(Z.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClient.IS_FF&&mxClient.IS_WIN&&null==Z.getState()&&mxEvent.isTouchEvent(Z.getEvent())};
var da=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(da=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=da)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(Z){return mxEvent.isMouseEvent(Z.getEvent())};var ea=this.click;this.click=function(Z){var l=null==Z.state&&
null!=Z.sourceState&&this.isCellLocked(this.getLayerForCell(Z.sourceState.cell));if(this.isEnabled()&&!l||Z.isConsumed())return ea.apply(this,arguments);var u=l?Z.sourceState.cell:Z.getCell();if(null!=u){var H=this.getClickableLinkForCell(u);null!=H?this.isCustomLink(H)?this.customLinkClicked(H,u):this.openLink(H):l&&this.clearSelection()}};this.tooltipHandler.getStateForEvent=function(Z){return Z.sourceState};var ca=this.tooltipHandler.show;this.tooltipHandler.show=function(){ca.apply(this,arguments);
-if(null!=this.div)for(var Z=this.div.getElementsByTagName("a"),l=0;l<Z.length;l++)null!=Z[l].getAttribute("href")&&null==Z[l].getAttribute("target")&&Z[l].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(Z){return Z.sourceState};this.getCursorForMouseEvent=function(Z){var l=null==Z.state&&null!=Z.sourceState&&this.isCellLocked(Z.sourceState.cell);return this.getCursorForCell(l?Z.sourceState.cell:Z.getCell())};var W=this.getCursorForCell;this.getCursorForCell=function(Z){if(!this.isEnabled()||
-this.isCellLocked(Z)){if(null!=this.getClickableLinkForCell(Z))return"pointer";if(this.isCellLocked(Z))return"default"}return W.apply(this,arguments)};this.selectRegion=function(Z,l){var u=mxEvent.isAltDown(l)?Z:null;Z=this.getCells(Z.x,Z.y,Z.width,Z.height,null,null,u,null,!0);if(this.isToggleEvent(l))for(u=0;u<Z.length;u++)this.selectCellForEvent(Z[u],l);else this.selectCellsForEvent(Z,l);return Z};var ma=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=
+if(null!=this.div)for(var Z=this.div.getElementsByTagName("a"),l=0;l<Z.length;l++)null!=Z[l].getAttribute("href")&&null==Z[l].getAttribute("target")&&Z[l].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(Z){return Z.sourceState};this.getCursorForMouseEvent=function(Z){var l=null==Z.state&&null!=Z.sourceState&&this.isCellLocked(Z.sourceState.cell);return this.getCursorForCell(l?Z.sourceState.cell:Z.getCell())};var V=this.getCursorForCell;this.getCursorForCell=function(Z){if(!this.isEnabled()||
+this.isCellLocked(Z)){if(null!=this.getClickableLinkForCell(Z))return"pointer";if(this.isCellLocked(Z))return"default"}return V.apply(this,arguments)};this.selectRegion=function(Z,l){var u=mxEvent.isAltDown(l)?Z:null;Z=this.getCells(Z.x,Z.y,Z.width,Z.height,null,null,u,null,!0);if(this.isToggleEvent(l))for(u=0;u<Z.length;u++)this.selectCellForEvent(Z[u],l);else this.selectCellsForEvent(Z,l);return Z};var ma=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=
function(Z,l,u){return this.graph.isCellSelected(Z)?!1:ma.apply(this,arguments)};var la=this.updateMouseEvent;this.updateMouseEvent=function(Z){Z=la.apply(this,arguments);null!=Z.state&&this.isCellLocked(this.getLayerForCell(Z.getCell()))&&(null==this.getLinkForCell(Z.getCell())?Z.state=this.view.getState(this.getCellAt(Z.getGraphX(),Z.getGraphY(),null,null,null,mxUtils.bind(this,function(l,u,H){return Z.state==l||this.isCellLocked(this.getLayerForCell(l.cell))&&null==this.getLinkForCell(l.cell)}))):
Z.state=null);return Z};var Y=this.isCellSelectable;this.isCellSelectable=function(Z){return Y.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(Z))};this.isCellLocked=function(Z){for(;null!=Z;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(Z),"locked","0"))return!0;Z=this.model.getParent(Z)}return!1};var fa=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(Z,l){"mouseDown"==l.getProperty("eventName")&&(Z=l.getProperty("event").getState(),fa=null==Z||this.isSelectionEmpty()||
-this.isCellSelected(Z.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(Z,l){if(!mxEvent.isMultiTouchEvent(l)){Z=l.getProperty("event");var u=l.getProperty("cell");null==u?(Z=mxUtils.convertPoint(this.container,mxEvent.getClientX(Z),mxEvent.getClientY(Z)),A.start(Z.x,Z.y)):null!=fa?this.addSelectionCells(fa):1<this.getSelectionCount()&&this.isCellSelected(u)&&this.removeSelectionCell(u);fa=null;l.consume()}}));this.connectionHandler.selectCells=
+this.isCellSelected(Z.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(Z,l){if(!mxEvent.isMultiTouchEvent(l)){Z=l.getProperty("event");var u=l.getProperty("cell");null==u?(Z=mxUtils.convertPoint(this.container,mxEvent.getClientX(Z),mxEvent.getClientY(Z)),B.start(Z.x,Z.y)):null!=fa?this.addSelectionCells(fa):1<this.getSelectionCount()&&this.isCellSelected(u)&&this.removeSelectionCell(u);fa=null;l.consume()}}));this.connectionHandler.selectCells=
function(Z,l){this.graph.setSelectionCell(l||Z)};this.connectionHandler.constraintHandler.isStateIgnored=function(Z,l){var u=Z.view.graph;return l&&(u.isCellSelected(Z.cell)||u.isTableRow(Z.cell)&&u.selectionCellsHandler.isHandled(u.model.getParent(Z.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var Z=this.connectionHandler.constraintHandler;null!=Z.currentFocus&&Z.isStateIgnored(Z.currentFocus,!0)&&(Z.currentFocus=null,Z.constraints=null,Z.destroyIcons());Z.destroyFocusHighlight()}));
Graph.touchStyle&&this.initTouch()}this.currentTranslate=new mxPoint(0,0)};Graph.touchStyle=mxClient.IS_TOUCH||mxClient.IS_FF&&mxClient.IS_WIN||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints||null==window.urlParams||"1"==urlParams.touch;Graph.fileSupport=null!=window.File&&null!=window.FileReader&&null!=window.FileList&&(null==window.urlParams||"0"!=urlParams.filesupport);Graph.translateDiagram="1"==urlParams["translate-diagram"];
Graph.diagramLanguage=null!=urlParams["diagram-language"]?urlParams["diagram-language"]:mxClient.language;Graph.lineJumpsEnabled=!0;Graph.defaultJumpSize=6;Graph.zoomWheel=!1;Graph.selectParentLayer=!1;Graph.minTableColumnWidth=20;Graph.minTableRowHeight=20;Graph.foreignObjectWarningText="Text is not SVG - cannot display";Graph.foreignObjectWarningLink="https://www.drawio.com/doc/faq/svg-export-text-problems";Graph.xmlDeclaration='<?xml version="1.0" encoding="UTF-8"?>';Graph.svgDoctype='<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">';
@@ -2299,13 +2312,14 @@ Graph.getDefaultAdaptiveColorsKey=function(){return"auto"==Graph.defaultAdaptive
Graph.createOffscreenGraph=function(b){var e=new Graph(document.createElement("div"));e.stylesheet.styles=mxUtils.clone(b.styles);e.resetViewOnRootChange=!1;e.setConnectable(!1);e.gridEnabled=!1;e.autoScroll=!1;e.setTooltips(!1);e.setEnabled(!1);e.container.style.visibility="hidden";e.container.style.position="absolute";e.container.style.overflow="hidden";e.container.style.height="1px";e.container.style.width="1px";return e};
Graph.createSvgImage=function(b,e,g,m,v){g=unescape(encodeURIComponent(Graph.svgDoctype+'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+b+'px" height="'+e+'px" '+(null!=m&&null!=v?'viewBox="0 0 '+m+" "+v+'" ':"")+'version="1.1" style="color-scheme: light dark;">'+g+"</svg>"));return new mxImage("data:image/svg+xml;base64,"+(window.btoa?btoa(g):Base64.encode(g,!0)),b,e)};
Graph.getSvgFromDataUri=function(b){return null!=b&&"data:image/svg"==b.substring(0,14)?Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+decodeURIComponent(escape(atob(b.substring(b.indexOf(",")+1)))):null};
-Graph.createSvgNode=function(b,e,g,m,v){var p=mxUtils.createXmlDocument(),B=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");null!=v&&B.setAttribute("style","background: "+v.light+"; background-color: "+v.cssText+";");null==p.createElementNS?(B.setAttribute("xmlns",mxConstants.NS_SVG),B.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):B.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);B.setAttribute("version","1.1");B.setAttribute("width",
-g+"px");B.setAttribute("height",m+"px");B.setAttribute("viewBox",b+" "+e+" "+g+" "+m);p.appendChild(B);return B};
-Graph.htmlToPng=function(b,e,g,m,v,p){v=null!=v?v:"";p=null!=p?p:Editor.htmlRasterScale;var B=document.createElement("canvas");B.width=e*p;B.height=g*p;var G=document.createElement("img");G.onload=mxUtils.bind(this,function(){try{var F=B.getContext("2d");F.scale(p,p);F.drawImage(G,0,0);m(B.toDataURL())}catch(P){m(null)}});var S=mxUtils.createXmlDocument();S=null!=S.createElementNS?S.createElementNS(mxConstants.NS_SVG,"svg"):S.createElement("svg");b=(new mxSvgCanvas2D(S)).convertHtml(b);G.onerror=
+Graph.createSvgNode=function(b,e,g,m,v){var p=mxUtils.createXmlDocument(),A=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");null!=v&&A.setAttribute("style","background: "+v.light+"; background-color: "+v.cssText+";");null==p.createElementNS?(A.setAttribute("xmlns",mxConstants.NS_SVG),A.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):A.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);A.setAttribute("version","1.1");A.setAttribute("width",
+g+"px");A.setAttribute("height",m+"px");A.setAttribute("viewBox",b+" "+e+" "+g+" "+m);p.appendChild(A);return A};
+Graph.htmlToPng=function(b,e,g,m,v,p){v=null!=v?v:"";p=null!=p?p:Editor.htmlRasterScale;var A=document.createElement("canvas");A.width=e*p;A.height=g*p;var G=document.createElement("img");G.onload=mxUtils.bind(this,function(){try{var F=A.getContext("2d");F.scale(p,p);F.drawImage(G,0,0);m(A.toDataURL())}catch(P){m(null)}});var S=mxUtils.createXmlDocument();S=null!=S.createElementNS?S.createElementNS(mxConstants.NS_SVG,"svg"):S.createElement("svg");b=(new mxSvgCanvas2D(S)).convertHtml(b);G.onerror=
function(F){m(null)};G.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+g+'">'+(""!=v?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+v+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+b+"</div></foreignObject></svg>")};
-Graph.addLightDarkColors=function(b,e,g,m){function v(T,c,f){return null!=m?m(T,c,f):mxUtils.isValidColor(f)?(null==S&&null!=e&&(S={}),null!=S&&(S[c]=T.style.getPropertyValue(c)),f=mxUtils.getLightDarkColor(f,null,null,g),T.style.setProperty(c,f.cssText),!0):!1}for(var p=b.getElementsByTagName("*"),B=!1,G=0;G<p.length;G++)if(p[G]!=b){for(var S=null,F=0;F<p[G].style.length;F++){var P=p[G].style.item(F),R=p[G].style.getPropertyValue(P);B=v(p[G],P,R)||B}"FONT"==p[G].nodeName&&""==p[G].style.getPropertyValue("color")&&
-(R=p[G].getAttribute("color"),B=v(p[G],"color",R)||B);null!=e&&null!=S&&p[G].setAttribute(e,JSON.stringify(S))}return B};Graph.removeLightDarkColors=function(b,e){b=b.getElementsByTagName("*");for(var g=!1,m=0;m<b.length;m++)try{var v=b[m].getAttribute(e);if(null!=v){b[m].removeAttribute(e);var p=JSON.parse(v),B;for(B in p){var G=p[B];""==G?(b[m].style[B]=null,""==b[m].getAttribute("style")&&b[m].removeAttribute("style")):b[m].style[B]=G;g=!0}}}catch(S){}return g};
-Graph.setTextColor=function(b,e,g){for(var m=g?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,v=g?"color":"background-color",p=b.getElementsByTagName("*"),B=[],G=0;G<p.length;G++)B.push({node:p[G],value:p[G].style[v]});document.execCommand(g?"forecolor":"backcolor",!1,m);b=b.getElementsByTagName("*");for(G=0;G<b.length;G++){if(G<B.length&&B[G].node==b[G]&&B[G].value!=b[G].style[v]&&""==b[G].style[v])try{if(p=b[G].getAttribute(Graph.backupStyleAttribute),null!=p){var S=JSON.parse(p);S[v]=
+Graph.addLightDarkColors=function(b,e,g,m){function v(T,c,f){return null!=m?m(T,c,f):mxUtils.isValidColor(f)?(null==A&&null!=e&&(A={}),null!=A&&(A[c]=T.style.getPropertyValue(c)),f=mxUtils.getLightDarkColor(f,null,null,g),T.style.setProperty(c,f.cssText),!0):!1}for(var p=b.getElementsByTagName("*"),A=null,G=!1,S=0;S<p.length;S++)if(p[S]!=b&&null!=p[S].style){A=null;for(var F=0;F<p[S].style.length;F++){var P=p[S].style.item(F),R=p[S].style.getPropertyValue(P);G=v(p[S],P,R)||G}"FONT"==p[S].nodeName&&
+""==p[S].style.getPropertyValue("color")&&(R=p[S].getAttribute("color"),G=v(p[S],"color",R)||G);null!=e&&null!=A&&p[S].setAttribute(e,JSON.stringify(A))}return G};Graph.removeLightDarkColors=function(b,e){b=b.getElementsByTagName("*");for(var g=!1,m=0;m<b.length;m++)try{var v=b[m].getAttribute(e);if(null!=v){b[m].removeAttribute(e);var p=JSON.parse(v),A;for(A in p){var G=p[A];""==G?(b[m].style[A]=null,""==b[m].getAttribute("style")&&b[m].removeAttribute("style")):b[m].style[A]=G;g=!0}}}catch(S){}return g};
+Graph.getGivenColor=function(b,e){var g=null;if(b.nodeType==mxConstants.NODETYPE_ELEMENT){try{var m=b.getAttribute(Graph.backupStyleAttribute);if(null!=m){var v=JSON.parse(m);null!=v&&null!=v[e]&&("color"==e&&"FONT"==b.nodeName&&""==v[e]&&null!=b.getAttribute("color")?g=b.getAttribute("color"):""!=v[e]&&(g=v[e]))}}catch(p){}null==g&&""!=b.style[e]&&(g=b.style[e])}return g};
+Graph.setTextColor=function(b,e,g){for(var m=g?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,v=g?"color":"background-color",p=b.getElementsByTagName("*"),A=[],G=0;G<p.length;G++)A.push({node:p[G],value:p[G].style[v]});document.execCommand(g?"forecolor":"backcolor",!1,m);b=b.getElementsByTagName("*");for(G=0;G<b.length;G++){if(G<A.length&&A[G].node==b[G]&&A[G].value!=b[G].style[v]&&""==b[G].style[v])try{if(p=b[G].getAttribute(Graph.backupStyleAttribute),null!=p){var S=JSON.parse(p);S[v]=
"";b[G].setAttribute(Graph.backupStyleAttribute,JSON.stringify(S))}}catch(F){}if(g&&b[G].getAttribute("color")==m||b[G].style[v]==m){g&&b[G].getAttribute("color")==m&&b[G].removeAttribute("color");b[G].style[v]=e!=mxConstants.NONE?mxUtils.getLightDarkColor(e).cssText:null;try{p=b[G].getAttribute(Graph.backupStyleAttribute),S=null!=p?JSON.parse(p):{},S[v]=e!=mxConstants.NONE?e:"",b[G].setAttribute(Graph.backupStyleAttribute,JSON.stringify(S))}catch(F){}if(g&&mxClient.IS_FF){e=b[G];g=e.firstChild;if(null!=
g&&"A"==g.nodeName&&null==g.nextSibling&&null!=g.firstChild){e.parentNode.insertBefore(g,e);for(m=g.firstChild;null!=m;)v=m.nextSibling,e.appendChild(m),m=v;g.appendChild(e)}break}}}};Graph.zapGremlins=function(b){return mxUtils.zapGremlins(b)};Graph.stringToBytes=function(b){for(var e=Array(b.length),g=0;g<b.length;g++)e[g]=b.charCodeAt(g);return e};Graph.bytesToString=function(b){for(var e=Array(b.length),g=0;g<b.length;g++)e[g]=String.fromCharCode(b[g]);return e.join("")};
Graph.base64EncodeUnicode=function(b){return btoa(encodeURIComponent(b).replace(/%([0-9A-F]{2})/g,function(e,g){return String.fromCharCode(parseInt(g,16))}))};Graph.base64DecodeUnicode=function(b){return decodeURIComponent(Array.prototype.map.call(atob(b),function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))};Graph.compressNode=function(b,e){b=mxUtils.getXml(b);return Graph.compress(e?b:Graph.zapGremlins(b))};
@@ -2313,57 +2327,58 @@ Graph.arrayBufferToString=function(b){var e="";b=new Uint8Array(b);for(var g=b.b
Graph.arrayBufferIndexOfString=function(b,e,g){var m=e.charCodeAt(0),v=1,p=-1;for(g=g||0;g<b.byteLength;g++)if(b[g]==m){p=g;break}for(g=p+1;-1<p&&g<b.byteLength&&g<p+e.length-1;g++){if(b[g]!=e.charCodeAt(v))return Graph.arrayBufferIndexOfString(b,e,p+1);v++}return v==e.length-1?p:-1};Graph.compress=function(b,e){if(null==b||0==b.length||"undefined"===typeof pako)return b;b=e?pako.deflate(encodeURIComponent(b)):pako.deflateRaw(encodeURIComponent(b));return btoa(Graph.arrayBufferToString(new Uint8Array(b)))};
Graph.decompress=function(b,e,g){if(null==b||0==b.length||"undefined"===typeof pako)return b;b=Graph.stringToArrayBuffer(atob(b));e=decodeURIComponent(e?pako.inflate(b,{to:"string"}):pako.inflateRaw(b,{to:"string"}));return g?e:Graph.zapGremlins(e)};
Graph.fadeNodes=function(b,e,g,m,v){v=null!=v?v:1E3;Graph.setTransitionForNodes(b,null);Graph.setOpacityForNodes(b,e);window.setTimeout(function(){Graph.setTransitionForNodes(b,"all "+v+"ms ease-in-out");Graph.setOpacityForNodes(b,g);window.setTimeout(function(){Graph.setTransitionForNodes(b,null);null!=m&&m()},v)},0)};
-Graph.exploreFromCell=function(b,e,g){pageSize=null!=g&&null!=g.pageSize?g.pageSize:8;minSize=null!=g&&null!=g.minSize?g.minSize:180;(function(m,v){function p(P,R){if(P.getModel().isVertex(R)){var T=P.container.scrollWidth/2,c=P.container.scrollHeight/2;P.rootCell=R.referenceCell||R;P.getModel().beginUpdate();try{for(var f=R.referenceCell||R,k=m.model.getCell(f.sourceCellId),A=m.getEdges(k,null,!0,!0,!1,!0),z=[],C=0;C<A.length;C++)null!=A[C].getTerminal(!0)&&null!=A[C].getTerminal(!1)&&m.isCellVisible(A[C])&&
-!m.isEdgeIgnored(A[C])&&m.isCellVisible(A[C].getTerminal(!0))&&m.isCellVisible(A[C].getTerminal(!1))&&m.isCellVisible(m.getLayerForCell(A[C]))&&z.push(A[C]);z=A=z;if(null!=R.startIndex||0<pageSize&&A.length>pageSize){var I=R.startIndex||0;z=A.slice(Math.max(0,I),Math.min(A.length,I+pageSize))}z=m.getOpposites(z,k).concat(z);var L=P.cloneCells(z);for(C=0;C<z.length;C++)if(L[C].sourceCellId=z[C].id,P.model.isEdge(L[C]))for(L[C].geometry.x=0,L[C].geometry.y=0,L[C].geometry.points=null,L[C].setStyle(L[C].getStyle()+
+Graph.exploreFromCell=function(b,e,g){pageSize=null!=g&&null!=g.pageSize?g.pageSize:8;minSize=null!=g&&null!=g.minSize?g.minSize:180;(function(m,v){function p(P,R){if(P.getModel().isVertex(R)){var T=P.container.scrollWidth/2,c=P.container.scrollHeight/2;P.rootCell=R.referenceCell||R;P.getModel().beginUpdate();try{for(var f=R.referenceCell||R,k=m.model.getCell(f.sourceCellId),B=m.getEdges(k,null,!0,!0,!1,!0),z=[],C=0;C<B.length;C++)null!=B[C].getTerminal(!0)&&null!=B[C].getTerminal(!1)&&m.isCellVisible(B[C])&&
+!m.isEdgeIgnored(B[C])&&m.isCellVisible(B[C].getTerminal(!0))&&m.isCellVisible(B[C].getTerminal(!1))&&m.isCellVisible(m.getLayerForCell(B[C]))&&z.push(B[C]);z=B=z;if(null!=R.startIndex||0<pageSize&&B.length>pageSize){var I=R.startIndex||0;z=B.slice(Math.max(0,I),Math.min(B.length,I+pageSize))}z=m.getOpposites(z,k).concat(z);var L=P.cloneCells(z);for(C=0;C<z.length;C++)if(L[C].sourceCellId=z[C].id,P.model.isEdge(L[C]))for(L[C].geometry.x=0,L[C].geometry.y=0,L[C].geometry.points=null,L[C].setStyle(L[C].getStyle()+
";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffc0;textOpacity=100;"),L[C].setTerminal(f,null==L[C].getTerminal(!0)),k=0;k<L[C].getChildCount();k++){var K=L[C].getChildAt(k);null!=K.geometry&&K.geometry.relative&&(K.setStyle(K.getStyle()+";labelBackgroundColor=#ffffffc0;textOpacity=100;"),K.geometry.offset=new mxPoint(0,0),K.geometry.y=0,K.geometry.x=.5>K.geometry.x?-.8:.5<K.geometry.x?.8:0)}if(0<R.startIndex){var O=P.createVertex(null,null,mxResources.get("previousPage")+
-" ("+Math.ceil((R.startIndex||0)/pageSize)+"/"+Math.ceil(A.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");O.referenceCell=f;O.startIndex=Math.max(0,(R.startIndex||0)-pageSize);L.splice(0,0,O)}if(A.length>(R.startIndex||0)+pageSize){var da=P.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((R.startIndex||0)/pageSize)+2)+"/"+Math.ceil(A.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");da.referenceCell=
-f;da.startIndex=(R.startIndex||0)+pageSize;L.splice(0,0,da)}for(var ea in P.getModel().cells){var ca=P.getModel().getCell(ea);ca!=P.rootCell&&!P.getModel().isAncestor(P.rootCell,ca)&&P.getModel().isVertex(ca)&&P.removeCells([ca])}P.addCells(L);var W=P.getModel().getGeometry(P.rootCell);null!=W&&(W=W.clone(),W.x=T-W.width/2,W.y=c-W.height/3,P.getModel().setGeometry(P.rootCell,W));R=[];for(ea in P.getModel().cells)ca=P.getModel().getCell(ea),ca!=P.rootCell&&P.getModel().isVertex(ca)&&P.getModel().getParent(ca)==
-P.getDefaultParent()&&(R.push(ca),W=P.getModel().getGeometry(ca),null!=W&&(W.x=T-W.width/2,W.y=c-W.height/2));var ma=R.length,la=2*Math.PI/ma,Y=Math.max(minSize,Math.min(P.container.scrollWidth/2.5-80,P.container.scrollHeight/2.5-80));for(T=0;T<ma;T++)W=P.getModel().getGeometry(R[T]),null!=W&&(W=W.clone(),W.x+=Y*Math.sin(T*la),W.y+=Y*Math.cos(T*la),P.getModel().setGeometry(R[T],W))}finally{P.getModel().endUpdate()}}}var B=document.createElement("div");B.style.position="absolute";B.style.display="block";
-B.style.background=Editor.isDarkMode()?Editor.darkColor:"#ffffff";B.style.width="100%";B.style.height="100%";B.style.left="0px";B.style.top="0px";B.style.zIndex=2;var G=document.createElement("img");G.setAttribute("src",Editor.closeBlackImage);G.style.position="absolute";G.style.cursor="pointer";G.style.right="10px";G.style.top="10px";B.appendChild(G);var S=document.createElement("div");S.style.position="absolute";S.style.cursor="pointer";S.style.right="38px";S.style.top="14px";S.style.textAlign=
-"right";S.style.verticalAlign="top";mxUtils.write(S,mxResources.get("close"));B.appendChild(S);document.body.appendChild(B);var F=function(P){27==P.keyCode&&G.click()};mxEvent.addListener(document,"keydown",F);(function(P){if(mxClient.isBrowserSupported()){var R=new Graph(P);R.keepEdgesInBackground=!0;R.isCellResizable=function(){return!1};R.isCellRotatable=function(){return!1};R.getCursorForCell=function(z){return this.model.isVertex(z)?"pointer":null};R.getFoldingImage=function(){return null};var T=
+" ("+Math.ceil((R.startIndex||0)/pageSize)+"/"+Math.ceil(B.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");O.referenceCell=f;O.startIndex=Math.max(0,(R.startIndex||0)-pageSize);L.splice(0,0,O)}if(B.length>(R.startIndex||0)+pageSize){var da=P.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((R.startIndex||0)/pageSize)+2)+"/"+Math.ceil(B.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");da.referenceCell=
+f;da.startIndex=(R.startIndex||0)+pageSize;L.splice(0,0,da)}for(var ea in P.getModel().cells){var ca=P.getModel().getCell(ea);ca!=P.rootCell&&!P.getModel().isAncestor(P.rootCell,ca)&&P.getModel().isVertex(ca)&&P.removeCells([ca])}P.addCells(L);var V=P.getModel().getGeometry(P.rootCell);null!=V&&(V=V.clone(),V.x=T-V.width/2,V.y=c-V.height/3,P.getModel().setGeometry(P.rootCell,V));R=[];for(ea in P.getModel().cells)ca=P.getModel().getCell(ea),ca!=P.rootCell&&P.getModel().isVertex(ca)&&P.getModel().getParent(ca)==
+P.getDefaultParent()&&(R.push(ca),V=P.getModel().getGeometry(ca),null!=V&&(V.x=T-V.width/2,V.y=c-V.height/2));var ma=R.length,la=2*Math.PI/ma,Y=Math.max(minSize,Math.min(P.container.scrollWidth/2.5-80,P.container.scrollHeight/2.5-80));for(T=0;T<ma;T++)V=P.getModel().getGeometry(R[T]),null!=V&&(V=V.clone(),V.x+=Y*Math.sin(T*la),V.y+=Y*Math.cos(T*la),P.getModel().setGeometry(R[T],V))}finally{P.getModel().endUpdate()}}}var A=document.createElement("div");A.style.position="absolute";A.style.display="block";
+A.style.background=Editor.isDarkMode()?Editor.darkColor:"#ffffff";A.style.width="100%";A.style.height="100%";A.style.left="0px";A.style.top="0px";A.style.zIndex=2;var G=document.createElement("img");G.setAttribute("src",Editor.closeBlackImage);G.style.position="absolute";G.style.cursor="pointer";G.style.right="10px";G.style.top="10px";A.appendChild(G);var S=document.createElement("div");S.style.position="absolute";S.style.cursor="pointer";S.style.right="38px";S.style.top="14px";S.style.textAlign=
+"right";S.style.verticalAlign="top";mxUtils.write(S,mxResources.get("close"));A.appendChild(S);document.body.appendChild(A);var F=function(P){27==P.keyCode&&G.click()};mxEvent.addListener(document,"keydown",F);(function(P){if(mxClient.isBrowserSupported()){var R=new Graph(P);R.keepEdgesInBackground=!0;R.isCellResizable=function(){return!1};R.isCellRotatable=function(){return!1};R.getCursorForCell=function(z){return this.model.isVertex(z)?"pointer":null};R.getFoldingImage=function(){return null};var T=
function(){mxEvent.removeListener(document,"keydown",F);P.parentNode.removeChild(P);m.scrollCellToVisible(v)};mxEvent.addListener(G,"click",T);mxEvent.addListener(S,"click",T);R.setEnabled(!1);var c=R.click;R.click=function(z){var C=z.getCell(),I=null!=C?null!=C.referenceCell?C.referenceCell:C:null;null!=C&&R.rootCell!=C&&0<R.getEdges(I).length?p(R,C):c.apply(this,arguments)};T=R.container.scrollWidth/2;var f=R.container.scrollHeight/3;R.model.beginUpdate();var k=R.importCells([v])[0];k.sourceCellId=
-v.id;k.geometry.x=T-k.geometry.width/2;k.geometry.y=f-k.geometry.height/2;R.model.endUpdate();var A=!1;R.getModel().addListener(mxEvent.CHANGE,function(z,C){A||(z=C.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,R.labelsVisible=!1,A=!0,mxEffects.animateChanges(R,z,function(){var I=new mxParallelEdgeLayout(R);I.spacing=60;var L=I.layout;I.layout=function(K){I.spacing=Math.min(60,Math.max(30,60-5*K.length));L.apply(this,arguments)};I.execute(R.getDefaultParent());mxText.prototype.enableBoundingBox=
-!0;R.labelsVisible=!0;R.tooltipHandler.hide();R.refresh();A=!1}))});p(R,k)}else mxUtils.error("Browser is not supported!",200,!1)})(B)})(b,e)};Graph.removeKeys=function(b,e){for(var g in b)e(g)&&delete b[g]};Graph.setTransitionForNodes=function(b,e){for(var g=0;g<b.length;g++)mxUtils.setPrefixedStyle(b[g].style,"transition",e)};Graph.setOpacityForNodes=function(b,e){for(var g=0;g<b.length;g++)b[g].style.opacity=e};
+v.id;k.geometry.x=T-k.geometry.width/2;k.geometry.y=f-k.geometry.height/2;R.model.endUpdate();var B=!1;R.getModel().addListener(mxEvent.CHANGE,function(z,C){B||(z=C.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,R.labelsVisible=!1,B=!0,mxEffects.animateChanges(R,z,function(){var I=new mxParallelEdgeLayout(R);I.spacing=60;var L=I.layout;I.layout=function(K){I.spacing=Math.min(60,Math.max(30,60-5*K.length));L.apply(this,arguments)};I.execute(R.getDefaultParent());mxText.prototype.enableBoundingBox=
+!0;R.labelsVisible=!0;R.tooltipHandler.hide();R.refresh();B=!1}))});p(R,k)}else mxUtils.error("Browser is not supported!",200,!1)})(A)})(b,e)};Graph.removeKeys=function(b,e){for(var g in b)e(g)&&delete b[g]};Graph.setTransitionForNodes=function(b,e){for(var g=0;g<b.length;g++)mxUtils.setPrefixedStyle(b[g].style,"transition",e)};Graph.setOpacityForNodes=function(b,e){for(var g=0;g<b.length;g++)b[g].style.opacity=e};
Graph.removePasteFormatting=function(b,e){for(;null!=b;){null!=b.firstChild&&Graph.removePasteFormatting(b.firstChild,!0);var g=b.nextSibling;if(b.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=b.style){"#000000"==b.style.color&&(b.style.color="");if("SPAN"==b.nodeName&&"Apple-tab-span"==b.className){var m=Graph.createTabNode(4);b.parentNode.replaceChild(m,b);b=m}if("P"==b.nodeName&&"p1"==b.className){for(;null!=b.firstChild;)b.parentNode.insertBefore(b.firstChild,b);null!=g&&"P"==g.nodeName&&"p1"==
g.className&&b.parentNode.insertBefore(b.ownerDocument.createElement("br"),b);b.parentNode.removeChild(b)}!e&&null!=b.innerHTML&&0<=b.innerHTML.indexOf("\t")&&(m=Graph.createTabNode(4),b.innerHTML=b.innerHTML.replace(/\t/g,m.outerHTML))}b=g}};Graph.createTabNode=function(b){var e="\t";if(null!=b)for(e="";0<b;)e+=" ",b--;b=document.createElement("span");b.style.whiteSpace="pre";b.appendChild(document.createTextNode(e));return b};Graph.sanitizeHtml=function(b,e){return Graph.domPurify(b,!1)};
Graph.sanitizeLink=function(b){if(null==b)return null;var e=document.createElement("a");e.setAttribute("href",b);Graph.sanitizeNode(e);return e.getAttribute("href")};Graph.sanitizeNode=function(b){return Graph.domPurify(b,!0)};DOMPurify.addHook("afterSanitizeAttributes",function(b){"use"==b.nodeName&&(null!=b.getAttribute("xlink:href")&&!b.getAttribute("xlink:href").startsWith("#")||null!=b.getAttribute("href")&&!b.getAttribute("href").startsWith("#"))&&b.remove()});
Graph.domPurify=function(b,e){window.DOM_PURIFY_CONFIG.IN_PLACE=e;return DOMPurify.sanitize(b,window.DOM_PURIFY_CONFIG)};
Graph.clipSvgDataUri=function(b,e){if(!mxClient.IS_IE&&!mxClient.IS_IE11&&null!=b&&"data:image/svg+xml;base64,"==b.substring(0,26))try{var g=document.createElement("div");g.style.position="absolute";g.style.visibility="hidden";var m=decodeURIComponent(escape(atob(b.substring(26)))),v=m.indexOf("<svg");if(0<=v){g.innerHTML=Graph.sanitizeHtml(m.substring(v));var p=g.getElementsByTagName("svg");if(0<p.length){if(e||null!=p[0].getAttribute("preserveAspectRatio")){document.body.appendChild(g);try{m=e=
-1;var B=p[0].getAttribute("width"),G=p[0].getAttribute("height");B=null!=B&&"%"!=B.charAt(B.length-1)?parseFloat(B):NaN;G=null!=G&&"%"!=G.charAt(G.length-1)?parseFloat(G):NaN;var S=p[0].getAttribute("viewBox");v=null;if(null!=S&&!isNaN(B)&&!isNaN(G)){var F=S.split(" ");4<=S.length&&(e=parseFloat(F[2])/B,m=parseFloat(F[3])/G,v=new mxRectangle(parseFloat(F[0]),parseFloat(F[1]),parseFloat(F[2]),parseFloat(F[3])))}var P=p[0].getBBox();0<P.width&&0<P.height&&(null==v||P.width*P.height<v.width*v.height*
+1;var A=p[0].getAttribute("width"),G=p[0].getAttribute("height");A=null!=A&&"%"!=A.charAt(A.length-1)?parseFloat(A):NaN;G=null!=G&&"%"!=G.charAt(G.length-1)?parseFloat(G):NaN;var S=p[0].getAttribute("viewBox");v=null;if(null!=S&&!isNaN(A)&&!isNaN(G)){var F=S.split(" ");4<=S.length&&(e=parseFloat(F[2])/A,m=parseFloat(F[3])/G,v=new mxRectangle(parseFloat(F[0]),parseFloat(F[1]),parseFloat(F[2]),parseFloat(F[3])))}var P=p[0].getBBox();0<P.width&&0<P.height&&(null==v||P.width*P.height<v.width*v.height*
.7)&&(g.getElementsByTagName("svg")[0].setAttribute("viewBox",P.x+" "+P.y+" "+P.width+" "+P.height),g.getElementsByTagName("svg")[0].setAttribute("width",P.width/e),g.getElementsByTagName("svg")[0].setAttribute("height",P.height/m))}catch(R){}finally{document.body.removeChild(g)}}b=Editor.createSvgDataUri(mxUtils.getXml(p[0]))}}}catch(R){}return b};
Graph.createRemoveIcon=function(b,e){var g=document.createElement("img");g.setAttribute("src",Dialog.prototype.clearImage);g.setAttribute("title",b);g.setAttribute("width","13");g.setAttribute("height","10");g.style.marginLeft="4px";g.style.marginBottom="-1px";g.style.cursor="pointer";mxEvent.addListener(g,"click",e);return g};Graph.isPageLink=function(b){return null!=b&&"data:page/id,"==b.substring(0,13)};
-Graph.rewritePageLinks=function(b,e){function g(v,p){var B=v.getAttribute(p);if(null!=B){Graph.isPageLink(B)&&(B="#"+B.substring(B.indexOf(":")+1));var G=p;e&&"xlink:href"==p&&(v.removeAttribute(p),G="href");v.setAttribute(G,B)}}b=b.getElementsByTagName("a");if(null!=b)for(var m=0;m<b.length;m++)g(b[m],"href"),g(b[m],"xlink:href")};Graph.isLink=function(b){return null!=b&&b.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
+Graph.rewritePageLinks=function(b,e){function g(v,p){var A=v.getAttribute(p);if(null!=A){Graph.isPageLink(A)&&(A="#"+A.substring(A.indexOf(":")+1));var G=p;e&&"xlink:href"==p&&(v.removeAttribute(p),G="href");v.setAttribute(G,A)}}b=b.getElementsByTagName("a");if(null!=b)for(var m=0;m<b.length;m++)g(b[m],"href"),g(b[m],"xlink:href")};Graph.isLink=function(b){return null!=b&&b.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
mxUtils.extend(Graph,mxGraph);Graph.prototype.minFitScale=null;Graph.prototype.maxFitScale=null;Graph.prototype.linkPolicy="frame"==urlParams.target?"blank":urlParams.target||"auto";Graph.prototype.linkTarget="frame"==urlParams.target?"_self":"_blank";Graph.prototype.linkRelation="nofollow noopener noreferrer";Graph.prototype.defaultScrollbars=!0;Graph.prototype.defaultPageVisible=!0;Graph.prototype.defaultGridEnabled="0"!=urlParams.grid;Graph.prototype.lightbox=!1;
Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBackground=!1;Graph.prototype.defaultPageBackgroundColor="1"==urlParams.embedInline?"transparent":"light-dark(#ffffff, "+Editor.darkColor+")";Graph.prototype.defaultPageBorderColor="light-dark(#ffffff, "+Editor.darkColor+")";Graph.prototype.shapeForegroundColor="light-dark(#000000, #ffffff)";Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";
Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%^{^}^ ^\"^ '^=^;]+)%","g");Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};
Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder"];Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");
Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";
-Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(g,m){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var v=g.view.graph.tolerance,p=!0,B=null,G=mxUtils.bind(this,function(P){p=!0;B=new mxPoint(mxEvent.getClientX(P),mxEvent.getClientY(P))}),S=mxUtils.bind(this,function(P){p=p&&null!=B&&Math.abs(B.x-mxEvent.getClientX(P))<v&&Math.abs(B.y-mxEvent.getClientY(P))<v}),F=mxUtils.bind(this,function(P){if(p)for(var R=mxEvent.getSource(P);null!=
+Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(g,m){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var v=g.view.graph.tolerance,p=!0,A=null,G=mxUtils.bind(this,function(P){p=!0;A=new mxPoint(mxEvent.getClientX(P),mxEvent.getClientY(P))}),S=mxUtils.bind(this,function(P){p=p&&null!=A&&Math.abs(A.x-mxEvent.getClientX(P))<v&&Math.abs(A.y-mxEvent.getClientY(P))<v}),F=mxUtils.bind(this,function(P){if(p)for(var R=mxEvent.getSource(P);null!=
R&&R!=m.node;){if("a"==R.nodeName.toLowerCase()){g.view.graph.labelLinkClicked(g,R,P);break}R=R.parentNode}});mxEvent.addGestureListeners(m.node,G,S,F);mxEvent.addListener(m.node,"click",function(P){mxEvent.consume(P)})};if(null!=this.tooltipHandler){var e=this.tooltipHandler.init;this.tooltipHandler.init=function(){e.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(g){var m=mxEvent.getSource(g);"A"==m.nodeName&&(m=m.getAttribute("href"),null!=
m&&this.graph.isCustomLink(m)&&(mxEvent.isTouchEvent(g)||!mxEvent.isPopupTrigger(g))&&this.graph.customLinkClicked(m)&&mxEvent.consume(g))}))}}this.initLayoutManager()};
-(function(){Graph.prototype.useCssTransforms=!1;Graph.prototype.currentScale=1;Graph.prototype.currentTranslate=new mxPoint(0,0);Graph.prototype.pasteEdgeStyle=!1;Graph.prototype.isFillState=function(B){return!this.isSpecialColor(B.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(B.style,"lineShape",null)&&(this.model.isVertex(B.cell)||"arrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"wire"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"filledEdge"==mxUtils.getValue(B.style,
-mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(B){return this.isFillState(B)&&"wire"!=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(B){return!0};Graph.prototype.isSpecialColor=function(B){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,
-"inherit","swimlane","indicated"],B)};Graph.prototype.isGlassState=function(B){B=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null);return"label"==B||"rectangle"==B||"internalStorage"==B||"ext"==B||"umlLifeline"==B||"swimlane"==B||"process"==B};Graph.prototype.isRoundedState=function(B){return null!=B.shape?B.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(B){var G=mxUtils.getValue(B.style,
-mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(B.style,mxConstants.STYLE_CURVED,!1)&&("connector"==G||"filledEdge"==G||"wire"==G)};Graph.prototype.isAutoSizeState=function(B){return"1"==mxUtils.getValue(B.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(B){return null!=mxUtils.getValue(B.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(B){return!0};Graph.prototype.getVerticesAndEdges=function(B,G){B=null!=B?B:!0;G=null!=G?G:!0;var S=this.model;
-return S.filterDescendants(function(F){return B&&S.isVertex(F)||G&&S.isEdge(F)},S.getRoot())};Graph.prototype.applyNewEdgeStyle=function(B,G,S){B=this.getCellStyle(B).newEdgeStyle;if(null!=B){this.model.beginUpdate();try{var F=JSON.parse(B),P;for(P in F)this.setCellStyles(P,F[P],G),"edgeStyle"==P&&"elbowEdgeStyle"==F[P]&&null!=S&&this.setCellStyles("elbow",S==mxConstants.DIRECTION_SOUTH||S==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",G)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=
-function(B){for(var G={},S=0;S<B.length;S++){var F=this.view.getState(B[S]);null!=F&&this.mergeStyle(F.style,G,0==S)}return G};Graph.prototype.mergeStyle=function(B,G,S){if(null!=B){var F={},P;for(P in B){var R=B[P];null!=R&&(F[P]=!0,null==G[P]&&S?G[P]=R:G[P]!=R&&delete G[P])}for(P in G)F[P]||delete G[P]}};Graph.prototype.getStartEditingCell=function(B,G){G=this.getCellStyle(B);G=parseInt(mxUtils.getValue(G,mxConstants.STYLE_STARTSIZE,0));this.isTable(B)&&(!this.isSwimlane(B)||0==G)&&""==this.getLabel(B)&&
-0<this.model.getChildCount(B)&&(B=this.model.getChildAt(B,0),G=this.getCellStyle(B),G=parseInt(mxUtils.getValue(G,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(B)&&(!this.isSwimlane(B)||0==G)&&""==this.getLabel(B)&&0<this.model.getChildCount(B))for(G=0;G<this.model.getChildCount(B);G++){var S=this.model.getChildAt(B,G);if(this.isCellEditable(S)){B=S;break}}return B};Graph.prototype.copyStyle=function(B){return this.getCellStyle(B,!1)};Graph.prototype.pasteStyle=function(B,G,S,F){null!=B&&(F||
-(S=null!=S?S:Graph.cellStyles,Graph.removeKeys(B,function(P){return 0>mxUtils.indexOf(S,P)})),this.updateCellStyles(B,G))};Graph.prototype.copyCellStyles=function(B,G,S,F,P,R,T){var c=!1,f=!1;if(0<B.length)for(var k=0;k<B.length&&(c=this.getModel().isVertex(B[k])||c,!(f=this.getModel().isEdge(B[k])||f)||!c);k++);else f=c=!0;c=c&&!R;f=f&&!T;for(k=0;k<G.length;k++)if(B=0<=mxUtils.indexOf(Graph.textStyles,G[k]),"strokeColor"!=G[k]||null!=S[k]&&"none"!=S[k])if(0<=mxUtils.indexOf(Graph.cellStyles,G[k])||
-"shape"==G[k])if("shape"!=G[k]&&(c||B)&&(null==S[k]?delete F[G[k]]:F[G[k]]=S[k]),f||B)null==S[k]?delete P[G[k]]:P[G[k]]=S[k]};Graph.prototype.includeDescendants=function(B){for(var G=[],S=0;S<B.length;S++)G=G.concat(this.model.getDescendants(B[S]));return G};Graph.prototype.pasteCellStyles=function(B,G,S,F,P){G=null!=G?G:this.currentVertexStyle;S=null!=S?S:this.currentEdgeStyle;P=null!=P?P:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var R=0;R<B.length;R++){var T=B[R],c=this.model.getStyle(T),
-f=!1;null!=T.style&&(pairs=T.style.split(";"),f=f||0<=mxUtils.indexOf(pairs,"text"));if(f)var k=Graph.textStyles;else if(k=Graph.cellStyles.slice(),!F)for(var A=null!=c?c.split(";"):[],z=0;z<A.length;z++){var C=A[z],I=C.indexOf("=");if(0<=I){var L=C.substring(0,I),K=mxUtils.indexOf(k,L);0<=K&&k.splice(K,1);for(f=0;f<Graph.cellStyleGroups.length;f++){var O=Graph.cellStyleGroups[f];if(0<=mxUtils.indexOf(O,L))for(var da=0;da<O.length;da++){var ea=mxUtils.indexOf(k,O[da]);0<=ea&&k.splice(ea,1)}}}}var ca=
-this.model.isEdge(T);f=ca?S:G;for(z=0;z<k.length;z++){L=k[z];var W=f[L];null!=W&&("edgeStyle"!=L||P)&&(ca||!ca&&0>mxUtils.indexOf(Graph.edgeStyles,L))&&(c=mxUtils.setStyle(c,L,W),"fontFamily"==L&&null==f.fontSource&&(c=mxUtils.setStyle(c,"fontSource",null)),ca&&"rounded"==L&&"1"==W&&null==f.curved&&(c=mxUtils.setStyle(c,"curved",null)))}Editor.simpleLabels&&(c=mxUtils.setStyle(mxUtils.setStyle(c,"html",null),"whiteSpace",null));this.model.setStyle(T,c)}}finally{this.model.endUpdate()}return B};Graph.prototype.updateCellStyles=
-function(B,G){this.model.beginUpdate();try{for(var S=0;S<G.length;S++)if(this.model.isVertex(G[S])||this.model.isEdge(G[S])){var F=this.getCellStyle(G[S],!1),P=F[mxConstants.STYLE_PERIMETER],R=!1;for(c in B){var T=B[c];if(F[c]!=T){if(c==mxConstants.STYLE_SHAPE&&"umlLifeline"==F[c]&&"umlLifeline"!=T){R=!0;var c="participant"}this.setCellStyles(c,T,[G[S]])}}R&&this.setCellStyles(mxConstants.STYLE_PERIMETER,P,[G[S]])}}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(B,G,S,F,P,R){this.useCssTransforms&&(B=B/this.currentScale-this.currentTranslate.x,G=G/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=
-function(B,G,S,F,P,R){F=null!=F?F:!0;P=null!=P?P:!0;null==S&&(S=this.getCurrentRoot(),null==S&&(S=this.getModel().getRoot()));if(null!=S)for(var T=this.model.getChildCount(S)-1;0<=T;T--){var c=this.model.getChildAt(S,T),f=this.getScaledCellAt(B,G,c,F,P,R);if(null!=f)return f;if(this.isCellVisible(c)&&(P&&this.model.isEdge(c)||F&&this.model.isVertex(c))&&(f=this.view.getState(c),null!=f&&(null==R||!R(f,B,G))&&this.intersects(f,B,G)))return c}return null};Graph.prototype.isRecursiveVertexResize=function(B){return!this.isSwimlane(B.cell)&&
-0<this.model.getChildCount(B.cell)&&!this.isCellCollapsed(B.cell)&&"1"==mxUtils.getValue(B.style,"recursiveResize","1")&&null==mxUtils.getValue(B.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(B){for(var G=this.getCellGeometry(B);null!=G&&G.relative;)B=this.getModel().getParent(B),G=this.getCellGeometry(B);return B};Graph.prototype.isPart=function(B){return"1"==mxUtils.getValue(this.getCurrentCellStyle(B),"part","0")||this.isTableCell(B)||this.isTableRow(B)};Graph.prototype.getCompositeParents=
-function(B){for(var G=new mxDictionary,S=[],F=0;F<B.length;F++){var P=this.getCompositeParent(B[F]);this.isTableCell(P)&&(P=this.graph.model.getParent(P));this.isTableRow(P)&&(P=this.graph.model.getParent(P));null==P||G.get(P)||(G.put(P,!0),S.push(P))}return S};Graph.prototype.getReferenceTerminal=function(B){if(null!=B){var G=this.getCellGeometry(B);null!=G&&G.relative&&(B=this.model.getParent(B))}null!=B&&this.model.isEdge(B)&&(B=this.model.getParent(B));null!=B&&(B=this.getCompositeParent(B));
-return B};Graph.prototype.getCompositeParent=function(B){for(;this.isPart(B);){var G=this.model.getParent(B);if(!this.model.isVertex(G))break;B=G}return B};Graph.prototype.filterSelectionCells=function(B){var G=this.getSelectionCells();if(null!=B){for(var S=[],F=0;F<G.length;F++)B(G[F])||S.push(G[F]);G=S}return G};var b=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(B){if(this.useCssTransforms){var G=this.currentScale,S=this.currentTranslate;B=new mxRectangle((B.x+
-2*S.x)*G-S.x,(B.y+2*S.y)*G-S.y,B.width*G,B.height*G)}b.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=function(B){B=this.strokeWidth;this.graph.useCssTransforms&&(B/=this.graph.currentScale);return B};mxGraphView.prototype.getGraphBounds=function(){var B=this.graphBounds;if(this.graph.useCssTransforms){var G=this.graph.currentTranslate,S=this.graph.currentScale;B=new mxRectangle((B.x+G.x)*S,(B.y+G.y)*S,B.width*S,B.height*S)}return B};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?
-this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(B){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);e.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,
-this.translate.y=this.graph.currentTranslate.y)};var g=mxGraph.prototype.getCellsForGroup;Graph.prototype.getCellsForGroup=function(B){B=g.apply(this,arguments);for(var G=[],S=0;S<B.length;S++)this.isTableRow(B[S])||this.isTableCell(B[S])||G.push(B[S]);return G};var m=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(B){B=m.apply(this,arguments);for(var G=[],S=0;S<B.length;S++)this.isTable(B[S])||this.isTableRow(B[S])||this.isTableCell(B[S])||G.push(B[S]);return G};
-Graph.prototype.updateCssTransform=function(){var B=this.view.getDrawPane();if(null!=B)if(B=B.parentNode,this.useCssTransforms){var G=B.getAttribute("transform");B.setAttribute("transformOrigin","0 0");var S=Math.round(100*this.currentScale)/100;B.setAttribute("transform","scale("+S+","+S+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");G!=B.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",
-B.getAttribute("transform"))}else B.removeAttribute("transformOrigin"),B.removeAttribute("transform")};var v=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph.useCssTransforms,G=this.scale,S=this.translate;B&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);v.apply(this,arguments);B&&(this.scale=G,this.translate=S)};var p=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(B,
-G,S){var F=this.useCssTransforms,P=this.view.scale,R=this.view.translate;F&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=!1);p.apply(this,arguments);F&&(this.view.scale=P,this.view.translate=R,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
+(function(){Graph.prototype.useCssTransforms=!1;Graph.prototype.currentScale=1;Graph.prototype.currentTranslate=new mxPoint(0,0);Graph.prototype.pasteEdgeStyle=!1;Graph.prototype.isFillState=function(A){return!this.isSpecialColor(A.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(A.style,"lineShape",null)&&(this.model.isVertex(A.cell)||"arrow"==mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null)||"wire"==mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null)||"filledEdge"==mxUtils.getValue(A.style,
+mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(A){return this.isFillState(A)&&"wire"!=mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(A){return!0};Graph.prototype.getTextColor=function(A,G){for(var S=A==this.cellEditor.textarea&&G?"default":Graph.getGivenColor(A,G?"color":
+"background-color");null==S&&null!=A&&A!=this.cellEditor.textarea.parentNode;)S=A==this.cellEditor.textarea&&G?"default":Graph.getGivenColor(A,"color"),A=A.parentNode;if("rgba(0, 0, 0, 0)"==S||"transparent"==S)S=mxConstants.NONE;return S};Graph.prototype.isSpecialColor=function(A){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],A)};Graph.prototype.isGlassState=function(A){A=mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null);
+return"label"==A||"rectangle"==A||"internalStorage"==A||"ext"==A||"umlLifeline"==A||"swimlane"==A||"process"==A};Graph.prototype.isRoundedState=function(A){return null!=A.shape?A.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(A){var G=mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(A.style,mxConstants.STYLE_CURVED,!1)&&("connector"==G||"filledEdge"==G||"wire"==
+G)};Graph.prototype.isAutoSizeState=function(A){return"1"==mxUtils.getValue(A.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(A){return null!=mxUtils.getValue(A.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(A){return!0};Graph.prototype.getVerticesAndEdges=function(A,G){A=null!=A?A:!0;G=null!=G?G:!0;var S=this.model;return S.filterDescendants(function(F){return A&&S.isVertex(F)||G&&S.isEdge(F)},S.getRoot())};Graph.prototype.applyNewEdgeStyle=
+function(A,G,S){A=this.getCellStyle(A).newEdgeStyle;if(null!=A){this.model.beginUpdate();try{var F=JSON.parse(A),P;for(P in F)this.setCellStyles(P,F[P],G),"edgeStyle"==P&&"elbowEdgeStyle"==F[P]&&null!=S&&this.setCellStyles("elbow",S==mxConstants.DIRECTION_SOUTH||S==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",G)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(A){for(var G={},S=0;S<A.length;S++){var F=this.view.getState(A[S]);null!=F&&this.mergeStyle(F.style,G,0==S)}return G};
+Graph.prototype.mergeStyle=function(A,G,S){if(null!=A){var F={},P;for(P in A){var R=A[P];null!=R&&(F[P]=!0,null==G[P]&&S?G[P]=R:G[P]!=R&&delete G[P])}for(P in G)F[P]||delete G[P]}};Graph.prototype.getStartEditingCell=function(A,G){G=this.getCellStyle(A);G=parseInt(mxUtils.getValue(G,mxConstants.STYLE_STARTSIZE,0));this.isTable(A)&&(!this.isSwimlane(A)||0==G)&&""==this.getLabel(A)&&0<this.model.getChildCount(A)&&(A=this.model.getChildAt(A,0),G=this.getCellStyle(A),G=parseInt(mxUtils.getValue(G,mxConstants.STYLE_STARTSIZE,
+0)));if(this.isTableRow(A)&&(!this.isSwimlane(A)||0==G)&&""==this.getLabel(A)&&0<this.model.getChildCount(A))for(G=0;G<this.model.getChildCount(A);G++){var S=this.model.getChildAt(A,G);if(this.isCellEditable(S)){A=S;break}}return A};Graph.prototype.copyStyle=function(A){return this.getCellStyle(A,!1)};Graph.prototype.pasteStyle=function(A,G,S,F){null!=A&&(F||(S=null!=S?S:Graph.cellStyles,Graph.removeKeys(A,function(P){return 0>mxUtils.indexOf(S,P)})),this.updateCellStyles(A,G))};Graph.prototype.copyCellStyles=
+function(A,G,S,F,P,R,T){var c=!1,f=!1;if(0<A.length)for(var k=0;k<A.length&&(c=this.getModel().isVertex(A[k])||c,!(f=this.getModel().isEdge(A[k])||f)||!c);k++);else f=c=!0;c=c&&!R;f=f&&!T;for(k=0;k<G.length;k++)if(A=0<=mxUtils.indexOf(Graph.textStyles,G[k]),"strokeColor"!=G[k]||null!=S[k]&&"none"!=S[k])if(0<=mxUtils.indexOf(Graph.cellStyles,G[k])||"shape"==G[k])if("shape"!=G[k]&&(c||A)&&(null==S[k]?delete F[G[k]]:F[G[k]]=S[k]),f||A)null==S[k]?delete P[G[k]]:P[G[k]]=S[k]};Graph.prototype.includeDescendants=
+function(A){for(var G=[],S=0;S<A.length;S++)G=G.concat(this.model.getDescendants(A[S]));return G};Graph.prototype.pasteCellStyles=function(A,G,S,F,P){G=null!=G?G:this.currentVertexStyle;S=null!=S?S:this.currentEdgeStyle;P=null!=P?P:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var R=0;R<A.length;R++){var T=A[R],c=this.model.getStyle(T),f=!1;null!=T.style&&(pairs=T.style.split(";"),f=f||0<=mxUtils.indexOf(pairs,"text"));if(f)var k=Graph.textStyles;else if(k=Graph.cellStyles.slice(),!F)for(var B=
+null!=c?c.split(";"):[],z=0;z<B.length;z++){var C=B[z],I=C.indexOf("=");if(0<=I){var L=C.substring(0,I),K=mxUtils.indexOf(k,L);0<=K&&k.splice(K,1);for(f=0;f<Graph.cellStyleGroups.length;f++){var O=Graph.cellStyleGroups[f];if(0<=mxUtils.indexOf(O,L))for(var da=0;da<O.length;da++){var ea=mxUtils.indexOf(k,O[da]);0<=ea&&k.splice(ea,1)}}}}var ca=this.model.isEdge(T);f=ca?S:G;for(z=0;z<k.length;z++){L=k[z];var V=f[L];null!=V&&("edgeStyle"!=L||P)&&(ca||!ca&&0>mxUtils.indexOf(Graph.edgeStyles,L))&&(c=mxUtils.setStyle(c,
+L,V),"fontFamily"==L&&null==f.fontSource&&(c=mxUtils.setStyle(c,"fontSource",null)),ca&&"rounded"==L&&"1"==V&&null==f.curved&&(c=mxUtils.setStyle(c,"curved",null)))}Editor.simpleLabels&&(c=mxUtils.setStyle(mxUtils.setStyle(c,"html",null),"whiteSpace",null));this.model.setStyle(T,c)}}finally{this.model.endUpdate()}return A};Graph.prototype.updateCellStyles=function(A,G){this.model.beginUpdate();try{for(var S=0;S<G.length;S++)if(this.model.isVertex(G[S])||this.model.isEdge(G[S])){var F=this.getCellStyle(G[S],
+!1),P=F[mxConstants.STYLE_PERIMETER],R=!1;for(c in A){var T=A[c];if(F[c]!=T){if(c==mxConstants.STYLE_SHAPE&&"umlLifeline"==F[c]&&"umlLifeline"!=T){R=!0;var c="participant"}this.setCellStyles(c,T,[G[S]])}}R&&this.setCellStyles(mxConstants.STYLE_PERIMETER,P,[G[S]])}}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(A,G,S,F,P,R){this.useCssTransforms&&(A=A/this.currentScale-this.currentTranslate.x,G=G/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(A,G,S,F,P,R){F=null!=F?F:!0;P=null!=P?P:!0;null==S&&(S=this.getCurrentRoot(),null==S&&(S=this.getModel().getRoot()));if(null!=S)for(var T=
+this.model.getChildCount(S)-1;0<=T;T--){var c=this.model.getChildAt(S,T),f=this.getScaledCellAt(A,G,c,F,P,R);if(null!=f)return f;if(this.isCellVisible(c)&&(P&&this.model.isEdge(c)||F&&this.model.isVertex(c))&&(f=this.view.getState(c),null!=f&&(null==R||!R(f,A,G))&&this.intersects(f,A,G)))return c}return null};Graph.prototype.isRecursiveVertexResize=function(A){return!this.isSwimlane(A.cell)&&0<this.model.getChildCount(A.cell)&&!this.isCellCollapsed(A.cell)&&"1"==mxUtils.getValue(A.style,"recursiveResize",
+"1")&&null==mxUtils.getValue(A.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(A){for(var G=this.getCellGeometry(A);null!=G&&G.relative;)A=this.getModel().getParent(A),G=this.getCellGeometry(A);return A};Graph.prototype.isPart=function(A){return"1"==mxUtils.getValue(this.getCurrentCellStyle(A),"part","0")||this.isTableCell(A)||this.isTableRow(A)};Graph.prototype.getCompositeParents=function(A){for(var G=new mxDictionary,S=[],F=0;F<A.length;F++){var P=this.getCompositeParent(A[F]);
+this.isTableCell(P)&&(P=this.graph.model.getParent(P));this.isTableRow(P)&&(P=this.graph.model.getParent(P));null==P||G.get(P)||(G.put(P,!0),S.push(P))}return S};Graph.prototype.getReferenceTerminal=function(A){if(null!=A){var G=this.getCellGeometry(A);null!=G&&G.relative&&(A=this.model.getParent(A))}null!=A&&this.model.isEdge(A)&&(A=this.model.getParent(A));null!=A&&(A=this.getCompositeParent(A));return A};Graph.prototype.getCompositeParent=function(A){for(;this.isPart(A);){var G=this.model.getParent(A);
+if(!this.model.isVertex(G))break;A=G}return A};Graph.prototype.filterSelectionCells=function(A){var G=this.getSelectionCells();if(null!=A){for(var S=[],F=0;F<G.length;F++)A(G[F])||S.push(G[F]);G=S}return G};var b=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(A){if(this.useCssTransforms){var G=this.currentScale,S=this.currentTranslate;A=new mxRectangle((A.x+2*S.x)*G-S.x,(A.y+2*S.y)*G-S.y,A.width*G,A.height*G)}b.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=
+function(A){A=this.strokeWidth;this.graph.useCssTransforms&&(A/=this.graph.currentScale);return A};mxGraphView.prototype.getGraphBounds=function(){var A=this.graphBounds;if(this.graph.useCssTransforms){var G=this.graph.currentTranslate,S=this.graph.currentScale;A=new mxRectangle((A.x+G.x)*S,(A.y+G.y)*S,A.width*S,A.height*S)}return A};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;
+mxGraphView.prototype.validate=function(A){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);e.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var g=mxGraph.prototype.getCellsForGroup;
+Graph.prototype.getCellsForGroup=function(A){A=g.apply(this,arguments);for(var G=[],S=0;S<A.length;S++)this.isTableRow(A[S])||this.isTableCell(A[S])||G.push(A[S]);return G};var m=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(A){A=m.apply(this,arguments);for(var G=[],S=0;S<A.length;S++)this.isTable(A[S])||this.isTableRow(A[S])||this.isTableCell(A[S])||G.push(A[S]);return G};Graph.prototype.updateCssTransform=function(){var A=this.view.getDrawPane();if(null!=A)if(A=
+A.parentNode,this.useCssTransforms){var G=A.getAttribute("transform");A.setAttribute("transformOrigin","0 0");var S=Math.round(100*this.currentScale)/100;A.setAttribute("transform","scale("+S+","+S+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");G!=A.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",A.getAttribute("transform"))}else A.removeAttribute("transformOrigin"),A.removeAttribute("transform")};
+var v=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var A=this.graph.useCssTransforms,G=this.scale,S=this.translate;A&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);v.apply(this,arguments);A&&(this.scale=G,this.translate=S)};var p=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(A,G,S){var F=this.useCssTransforms,P=this.view.scale,R=this.view.translate;F&&(this.view.scale=1,this.view.translate=
+new mxPoint(0,0),this.useCssTransforms=!1);p.apply(this,arguments);F&&(this.view.scale=P,this.view.translate=R,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
Graph.prototype.labelLinkClicked=function(b,e,g){var m=e.getAttribute("href");m!=Graph.sanitizeLink(m)&&Graph.sanitizeNode(e);if(null!=m&&!this.isCustomLink(m)&&(mxEvent.isLeftMouseButton(g)&&!mxEvent.isPopupTrigger(g)||mxEvent.isTouchEvent(g))){if(!this.isEnabled()||this.isCellLocked(b.cell))b=this.isBlankLink(m)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(m),b);mxEvent.consume(g)}};
Graph.prototype.openLink=function(b,e,g){var m=window;try{if(b=Graph.sanitizeLink(b),null!=b)if("_self"==e&&window!=window.top)window.location.href=b;else if(b.substring(0,this.baseUrl.length)==this.baseUrl&&"#"==b.charAt(this.baseUrl.length)&&"_top"==e&&window==window.top){var v=b.split("#")[1];window.location.hash=="#"+v&&(window.location.hash="");window.location.hash=v}else m=window.open(b,null!=e?e:"_blank",g?null:"noopener,noreferrer"),null==m||g||(m.opener=null)}catch(p){}return m};
Graph.prototype.getLinkTitle=function(b){return b.substring(b.lastIndexOf("/")+1)};Graph.prototype.isCustomLink=function(b){return"data:"==b.substring(0,5)};Graph.prototype.customLinkClicked=function(b,e){return!1};Graph.prototype.isExternalProtocol=function(b){return"mailto:"===b.substring(0,7)};Graph.prototype.isBlankLink=function(b){return!this.isExternalProtocol(b)&&("blank"===this.linkPolicy||"self"!==this.linkPolicy&&!this.isRelativeUrl(b)&&b.substring(0,this.domainUrl.length)!==this.domainUrl)};
@@ -2375,13 +2390,13 @@ b.childLayout)return e=new mxCompactTreeLayout(this.graph),e.horizontal="1"==mxU
e.parallelEdgeSpacing=mxUtils.getValue(b,"parallelEdgeSpacing",mxHierarchicalLayout.prototype.parallelEdgeSpacing),e;if("circleLayout"==b.childLayout)return new mxCircleLayout(this.graph);if("organicLayout"==b.childLayout)return new mxFastOrganicLayout(this.graph);if("tableLayout"==b.childLayout)return new TableLayout(this.graph);if(null!=b.childLayout&&"["==String(b.childLayout).charAt(0))try{return new mxCompositeLayout(this.graph,this.graph.createLayouts(JSON.parse(b.childLayout)))}catch(m){null!=
window.console&&console.error(m)}}return null}};
Graph.prototype.createLayouts=function(b){for(var e=[],g=0;g<b.length;g++)if(0<=mxUtils.indexOf(Graph.layoutNames,b[g].layout)){var m="mxOrgChartLayout"==b[g].layout&&null!=b[g].config?new window[b[g].layout](this,b[g].config.branchOptimizer):new window[b[g].layout](this);if(null!=b[g].config)for(var v in b[g].config)if("mxOrgChartLayout"!=b[g].layout||"branchOptimizer"!=v)m[v]=b[g].config[v];e.push(m)}else throw Error(mxResources.get("invalidCallFnNotFound",[b[g].layout]));return e};
-Graph.prototype.getDataForCells=function(b,e){for(var g=[],m=0;m<b.length;m++){var v={};v.id=b[m].id;var p=null!=b[m].value?b[m].value.attributes:null;this.isReplacePlaceholders(b[m])&&e&&(v.value=this.getLabel(b[m]));if(null!=p)for(var B=0;B<p.length;B++)v[p[B].nodeName]=p[B].nodeValue;else v.label=this.convertValueToString(b[m]);g.push(v)}return g};
+Graph.prototype.getDataForCells=function(b,e){for(var g=[],m=0;m<b.length;m++){var v={};v.id=b[m].id;var p=null!=b[m].value?b[m].value.attributes:null;this.isReplacePlaceholders(b[m])&&e&&(v.value=this.getLabel(b[m]));if(null!=p)for(var A=0;A<p.length;A++)v[p[A].nodeName]=p[A].nodeValue;else v.label=this.convertValueToString(b[m]);g.push(v)}return g};
Graph.prototype.getNodesForCells=function(b){for(var e=[],g=0;g<b.length;g++){var m=this.view.getState(b[g]);if(null!=m){for(var v=this.cellRenderer.getShapesForState(m),p=0;p<v.length;p++)null!=v[p]&&null!=v[p].node&&e.push(v[p].node);null!=m.control&&null!=m.control.node&&e.push(m.control.node)}}return e};
Graph.prototype.createWipeAnimations=function(b,e){for(var g=[],m=0;m<b.length;m++){var v=this.view.getState(b[m]);null!=v&&null!=v.shape&&(this.model.isEdge(v.cell)&&null!=v.absolutePoints&&1<v.absolutePoints.length?g.push(this.createEdgeWipeAnimation(v,e)):this.model.isVertex(v.cell)&&null!=v.shape.bounds&&g.push(this.createVertexWipeAnimation(v,e)))}return g};
-Graph.prototype.createEdgeWipeAnimation=function(b,e){var g=b.absolutePoints.slice(),m=b.segments,v=b.length,p=g.length;return{execute:mxUtils.bind(this,function(B,G){if(null!=b.shape){var S=[g[0]];G=B/G;e||(G=1-G);for(var F=v*G,P=1;P<p;P++)if(F<=m[P-1]){S.push(new mxPoint(g[P-1].x+(g[P].x-g[P-1].x)*F/m[P-1],g[P-1].y+(g[P].y-g[P-1].y)*F/m[P-1]));break}else F-=m[P-1],S.push(g[P]);b.shape.points=S;b.shape.redraw();0==B&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=
+Graph.prototype.createEdgeWipeAnimation=function(b,e){var g=b.absolutePoints.slice(),m=b.segments,v=b.length,p=g.length;return{execute:mxUtils.bind(this,function(A,G){if(null!=b.shape){var S=[g[0]];G=A/G;e||(G=1-G);for(var F=v*G,P=1;P<p;P++)if(F<=m[P-1]){S.push(new mxPoint(g[P-1].x+(g[P].x-g[P-1].x)*F/m[P-1],g[P-1].y+(g[P].y-g[P-1].y)*F/m[P-1]));break}else F-=m[P-1],S.push(g[P]);b.shape.points=S;b.shape.redraw();0==A&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=
b.text.node&&(b.text.node.style.opacity=G)}}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.points=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}};
Graph.prototype.createVertexWipeAnimation=function(b,e){var g=new mxRectangle.fromRectangle(b.shape.bounds);return{execute:mxUtils.bind(this,function(m,v){null!=b.shape&&(v=m/v,e||(v=1-v),b.shape.bounds=new mxRectangle(g.x,g.y,g.width*v,g.height),b.shape.redraw(),0==m&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=v))}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.bounds=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&&
-(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}};Graph.prototype.executeAnimations=function(b,e,g,m){g=null!=g?g:30;m=null!=m?m:30;var v=null,p=0,B=mxUtils.bind(this,function(){if(p==g||this.stoppingCustomActions){window.clearInterval(v);for(var G=0;G<b.length;G++)b[G].stop();null!=e&&e()}else for(G=0;G<b.length;G++)b[G].execute(p,g);p++});v=window.setInterval(B,m);B()};
+(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}};Graph.prototype.executeAnimations=function(b,e,g,m){g=null!=g?g:30;m=null!=m?m:30;var v=null,p=0,A=mxUtils.bind(this,function(){if(p==g||this.stoppingCustomActions){window.clearInterval(v);for(var G=0;G<b.length;G++)b[G].stop();null!=e&&e()}else for(G=0;G<b.length;G++)b[G].execute(p,g);p++});v=window.setInterval(A,m);A()};
Graph.prototype.getPageSize=function(){return this.pageVisible&&null!=this.pageFormat?new mxRectangle(0,0,this.pageFormat.width*this.pageScale,this.pageFormat.height*this.pageScale):this.scrollTileSize};
Graph.prototype.getPageLayout=function(b,e,g){b=null!=b?b:this.getGraphBounds();e=null!=e?e:this.view.translate;g=null!=g?g:this.view.scale;var m=this.getPageSize();if(0==b.width||0==b.height)return new mxRectangle(0,0,1,1);var v=Math.floor(Math.ceil(b.x/g-e.x)/m.width),p=Math.floor(Math.ceil(b.y/g-e.y)/m.height);return new mxRectangle(v,p,Math.ceil((Math.floor((b.x+b.width)/g)-e.x)/m.width)-v,Math.ceil((Math.floor((b.y+b.height)/g)-e.y)/m.height)-p)};
Graph.prototype.getDefaultTranslate=function(b){var e=this.getPagePadding(),g=this.getPageSize();return new mxPoint(e.x-b.x*g.width,e.y-b.y*g.height)};Graph.prototype.updateMinimumSize=function(){var b=this.getPageLayout(),e=this.getPagePadding(),g=this.getPageSize(),m=Math.ceil(2*e.x+b.width*g.width);b=Math.ceil(2*e.y+b.height*g.height);if(null==this.minimumGraphSize||this.minimumGraphSize.width!=m||this.minimumGraphSize.height!=b)this.minimumGraphSize=new mxRectangle(0,0,m,b)};
@@ -2392,32 +2407,32 @@ Graph.prototype.isSplitTarget=function(b,e,g){return!this.model.isEdge(e[0])&&!m
Graph.prototype.isLabelMovable=function(b){var e=this.getCurrentCellStyle(b);return!this.isCellLocked(b)&&(this.model.isEdge(b)&&this.edgeLabelsMovable||this.model.isVertex(b)&&(this.vertexLabelsMovable||"1"==mxUtils.getValue(e,"labelMovable","0")))};Graph.prototype.setGridSize=function(b){this.gridSize=b;this.fireEvent(new mxEventObject("gridSizeChanged"))};Graph.prototype.setDefaultParent=function(b){this.defaultParent=b;this.fireEvent(new mxEventObject("defaultParentChanged"))};
Graph.prototype.getClickableLinkForCell=function(b){do{var e=this.getLinkForCell(b);if(null!=e)return e;b=this.model.getParent(b)}while(null!=b);return null};Graph.prototype.getGlobalVariable=function(b){var e=null;"date"==b?e=(new Date).toLocaleDateString():"time"==b?e=(new Date).toLocaleTimeString():"timestamp"==b?e=(new Date).toLocaleString():"date{"==b.substring(0,5)&&(b=b.substring(5,b.length-1),e=this.formatDate(new Date,b));return e};
Graph.prototype.formatDate=function(b,e,g){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 m=this.dateFormatCache,v=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,p=/[^-+\dA-Z]/g,B=function(z,C){z=String(z);for(C=C||2;z.length<C;)z="0"+z;return z};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(b)||
-/\d/.test(b)||(e=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");e=String(m.masks[e]||e||m.masks["default"]);"UTC:"==e.slice(0,4)&&(e=e.slice(4),g=!0);var G=g?"getUTC":"get",S=b[G+"Date"](),F=b[G+"Day"](),P=b[G+"Month"](),R=b[G+"FullYear"](),T=b[G+"Hours"](),c=b[G+"Minutes"](),f=b[G+"Seconds"]();G=b[G+"Milliseconds"]();var k=g?0:b.getTimezoneOffset(),A={d:S,dd:B(S),ddd:m.i18n.dayNames[F],dddd:m.i18n.dayNames[F+7],m:P+1,mm:B(P+1),mmm:m.i18n.monthNames[P],mmmm:m.i18n.monthNames[P+
-12],yy:String(R).slice(2),yyyy:R,h:T%12||12,hh:B(T%12||12),H:T,HH:B(T),M:c,MM:B(c),s:f,ss:B(f),l:B(G,3),L:B(99<G?Math.round(G/10):G),t:12>T?"a":"p",tt:12>T?"am":"pm",T:12>T?"A":"P",TT:12>T?"AM":"PM",Z:g?"UTC":(String(b).match(v)||[""]).pop().replace(p,""),o:(0<k?"-":"+")+B(100*Math.floor(Math.abs(k)/60)+Math.abs(k)%60,4),S:["th","st","nd","rd"][3<S%10?0:(10!=S%100-S%10)*S%10]};return e.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(z){return z in A?A[z]:z.slice(1,
+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 m=this.dateFormatCache,v=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,p=/[^-+\dA-Z]/g,A=function(z,C){z=String(z);for(C=C||2;z.length<C;)z="0"+z;return z};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(b)||
+/\d/.test(b)||(e=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");e=String(m.masks[e]||e||m.masks["default"]);"UTC:"==e.slice(0,4)&&(e=e.slice(4),g=!0);var G=g?"getUTC":"get",S=b[G+"Date"](),F=b[G+"Day"](),P=b[G+"Month"](),R=b[G+"FullYear"](),T=b[G+"Hours"](),c=b[G+"Minutes"](),f=b[G+"Seconds"]();G=b[G+"Milliseconds"]();var k=g?0:b.getTimezoneOffset(),B={d:S,dd:A(S),ddd:m.i18n.dayNames[F],dddd:m.i18n.dayNames[F+7],m:P+1,mm:A(P+1),mmm:m.i18n.monthNames[P],mmmm:m.i18n.monthNames[P+
+12],yy:String(R).slice(2),yyyy:R,h:T%12||12,hh:A(T%12||12),H:T,HH:A(T),M:c,MM:A(c),s:f,ss:A(f),l:A(G,3),L:A(99<G?Math.round(G/10):G),t:12>T?"a":"p",tt:12>T?"am":"pm",T:12>T?"A":"P",TT:12>T?"AM":"PM",Z:g?"UTC":(String(b).match(v)||[""]).pop().replace(p,""),o:(0<k?"-":"+")+A(100*Math.floor(Math.abs(k)/60)+Math.abs(k)%60,4),S:["th","st","nd","rd"][3<S%10?0:(10!=S%100-S%10)*S%10]};return e.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(z){return z in B?B[z]:z.slice(1,
z.length-1)})};Graph.prototype.getLayerForCell=function(b){for(;null!=b&&!this.model.isLayer(b);)b=this.model.getParent(b);return b};Graph.prototype.getLayerForCells=function(b){var e=null;if(0<b.length){e=this.getLayerForCell(b[0]);for(var g=1;g<b.length;g++)if(!this.model.isAncestor(e,b[g])){e=null;break}}return e};
-Graph.prototype.createLayersDialog=function(b,e){var g=document.createElement("div");g.style.position="absolute";for(var m=this.getModel(),v=m.getChildCount(m.root),p=0;p<v;p++)mxUtils.bind(this,function(B){function G(){m.isVisible(B)?(P.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(F,75)):(P.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(F,25))}var S=this.convertValueToString(B)||mxResources.get("background")||"Background",F=document.createElement("div");F.style.overflow=
-"hidden";F.style.textOverflow="ellipsis";F.style.padding="2px";F.style.whiteSpace="nowrap";F.style.cursor="pointer";F.setAttribute("title",mxResources.get(m.isVisible(B)?"hideIt":"show",[S]));var P=document.createElement("img");P.setAttribute("draggable","false");P.setAttribute("align","absmiddle");P.setAttribute("border","0");P.style.position="relative";P.style.width="16px";P.style.padding="0px 6px 0 4px";e&&(P.style.filter="invert(100%)",P.style.top="-2px");F.appendChild(P);mxUtils.write(F,S);g.appendChild(F);
-mxEvent.addListener(F,"click",function(){m.setVisible(B,!m.isVisible(B));G();null!=b&&b(B)});G()})(m.getChildAt(m.root,p));return g};
-Graph.prototype.replacePlaceholders=function(b,e,g,m){m=[];if(null!=e){for(var v=0;match=this.placeholderPattern.exec(e);){var p=match[0];if(2<p.length&&"%label%"!=p&&"%tooltip%"!=p){var B=null;if(match.index>v&&"%"==e.charAt(match.index-1))B=p.substring(1);else{var G=p.substring(1,p.length-1),S={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==G)B=b.id;else if("width"===G.substring(0,5)&&this.model.isVertex(b)){var F=this.getCellGeometry(b);
-null!=F&&(B=F.width,5<G.length&&(B=Editor.toUnit(B,S[G.substring(6)])))}else if("height"==G.substring(0,6)&&this.model.isVertex(b))F=this.getCellGeometry(b),null!=F&&(B=F.height,6<G.length&&(B=Editor.toUnit(B,S[G.substring(7)])));else if("length"==G.substring(0,6)){for(F=b;null!=F&&!this.model.isEdge(F);)F=this.model.getParent(F);F=this.view.getState(F);null!=F&&(B=Math.round(F.length/this.view.scale),6<G.length&&(B=Editor.toUnit(B,S[G.substring(7)])))}else if(0>G.indexOf("{"))for(S=b;null==B&&null!=
-S;)null!=S.value&&"object"==typeof S.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(B=S.getAttribute(G+"_"+Graph.diagramLanguage)),null==B&&(B=S.hasAttribute(G)?null!=S.getAttribute(G)?S.getAttribute(G):"":null)),S=this.model.getParent(S);null==B&&(B=this.getGlobalVariable(G));null==B&&null!=g&&(B=g[G])}m.push(e.substring(v,match.index)+(null!=B?B:p));v=match.index+p.length}}m.push(e.substring(v))}return m.join("")};
+Graph.prototype.createLayersDialog=function(b,e){var g=document.createElement("div");g.style.position="absolute";for(var m=this.getModel(),v=m.getChildCount(m.root),p=0;p<v;p++)mxUtils.bind(this,function(A){function G(){m.isVisible(A)?(P.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(F,75)):(P.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(F,25))}var S=this.convertValueToString(A)||mxResources.get("background")||"Background",F=document.createElement("div");F.style.overflow=
+"hidden";F.style.textOverflow="ellipsis";F.style.padding="2px";F.style.whiteSpace="nowrap";F.style.cursor="pointer";F.setAttribute("title",mxResources.get(m.isVisible(A)?"hideIt":"show",[S]));var P=document.createElement("img");P.setAttribute("draggable","false");P.setAttribute("align","absmiddle");P.setAttribute("border","0");P.style.position="relative";P.style.width="16px";P.style.padding="0px 6px 0 4px";e&&(P.style.filter="invert(100%)",P.style.top="-2px");F.appendChild(P);mxUtils.write(F,S);g.appendChild(F);
+mxEvent.addListener(F,"click",function(){m.setVisible(A,!m.isVisible(A));G();null!=b&&b(A)});G()})(m.getChildAt(m.root,p));return g};
+Graph.prototype.replacePlaceholders=function(b,e,g,m){m=[];if(null!=e){for(var v=0;match=this.placeholderPattern.exec(e);){var p=match[0];if(2<p.length&&"%label%"!=p&&"%tooltip%"!=p){var A=null;if(match.index>v&&"%"==e.charAt(match.index-1))A=p.substring(1);else{var G=p.substring(1,p.length-1),S={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==G)A=b.id;else if("width"===G.substring(0,5)&&this.model.isVertex(b)){var F=this.getCellGeometry(b);
+null!=F&&(A=F.width,5<G.length&&(A=Editor.toUnit(A,S[G.substring(6)])))}else if("height"==G.substring(0,6)&&this.model.isVertex(b))F=this.getCellGeometry(b),null!=F&&(A=F.height,6<G.length&&(A=Editor.toUnit(A,S[G.substring(7)])));else if("length"==G.substring(0,6)){for(F=b;null!=F&&!this.model.isEdge(F);)F=this.model.getParent(F);F=this.view.getState(F);null!=F&&(A=Math.round(F.length/this.view.scale),6<G.length&&(A=Editor.toUnit(A,S[G.substring(7)])))}else if(0>G.indexOf("{"))for(S=b;null==A&&null!=
+S;)null!=S.value&&"object"==typeof S.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(A=S.getAttribute(G+"_"+Graph.diagramLanguage)),null==A&&(A=S.hasAttribute(G)?null!=S.getAttribute(G)?S.getAttribute(G):"":null)),S=this.model.getParent(S);null==A&&(A=this.getGlobalVariable(G));null==A&&null!=g&&(A=g[G])}m.push(e.substring(v,match.index)+(null!=A?A:p));v=match.index+p.length}}m.push(e.substring(v))}return m.join("")};
Graph.prototype.restoreSelection=function(b){if(null!=b&&0<b.length){for(var e=[],g=0;g<b.length;g++){var m=this.model.getCell(b[g].id);null!=m&&e.push(m)}this.setSelectionCells(e)}else this.clearSelection()};Graph.prototype.selectCellForEvent=function(b,e){mxEvent.isShiftDown(e)&&!this.isSelectionEmpty()&&this.selectTableRange(this.getSelectionCell(),b)||mxGraph.prototype.selectCellForEvent.apply(this,arguments)};
-Graph.prototype.selectTableRange=function(b,e){var g=!1;if(this.isTableCell(b)&&this.isTableCell(e)){var m=this.model.getParent(b),v=this.model.getParent(m),p=this.model.getParent(e);if(v==this.model.getParent(p)){b=m.getIndex(b);m=v.getIndex(m);var B=p.getIndex(e),G=v.getIndex(p);p=Math.max(m,G);e=Math.min(b,B);b=Math.max(b,B);B=[];for(m=Math.min(m,G);m<=p;m++){G=this.model.getChildAt(v,m);for(var S=e;S<=b;S++)B.push(this.model.getChildAt(G,S))}0<B.length&&(1<B.length||1<this.getSelectionCount()||
-!this.isCellSelected(B[0]))&&(this.setSelectionCells(B),g=!0)}}return g};
+Graph.prototype.selectTableRange=function(b,e){var g=!1;if(this.isTableCell(b)&&this.isTableCell(e)){var m=this.model.getParent(b),v=this.model.getParent(m),p=this.model.getParent(e);if(v==this.model.getParent(p)){b=m.getIndex(b);m=v.getIndex(m);var A=p.getIndex(e),G=v.getIndex(p);p=Math.max(m,G);e=Math.min(b,A);b=Math.max(b,A);A=[];for(m=Math.min(m,G);m<=p;m++){G=this.model.getChildAt(v,m);for(var S=e;S<=b;S++)A.push(this.model.getChildAt(G,S))}0<A.length&&(1<A.length||1<this.getSelectionCount()||
+!this.isCellSelected(A[0]))&&(this.setSelectionCells(A),g=!0)}}return g};
Graph.prototype.snapCellsToGrid=function(b,e){this.getModel().beginUpdate();try{for(var g=0;g<b.length;g++){var m=b[g],v=this.getCellGeometry(m);if(null!=v){v=v.clone();if(this.getModel().isVertex(m))v.x=Math.round(v.x/e)*e,v.y=Math.round(v.y/e)*e,v.width=Math.round(v.width/e)*e,v.height=Math.round(v.height/e)*e;else if(this.getModel().isEdge(m)&&null!=v.points)for(var p=0;p<v.points.length;p++)v.points[p].x=Math.round(v.points[p].x/e)*e,v.points[p].y=Math.round(v.points[p].y/e)*e;this.getModel().setGeometry(m,
v)}}}finally{this.getModel().endUpdate()}};Graph.prototype.removeChildCells=function(b){this.model.beginUpdate();try{for(var e=this.model.getChildCount(b);0<=e;e--)this.model.remove(this.model.getChildAt(b,e))}finally{this.model.endUpdate()}};
Graph.prototype.updateShapes=function(b,e,g){this.model.beginUpdate();try{var m=this.model.getStyle(b),v=g?this.stylesheet.getCellStyle(m,{},!1):null;null!=v&&null==v[mxConstants.STYLE_SHAPE]&&(this.model.isVertex(b)?v[mxConstants.STYLE_SHAPE]=this.stylesheet.getDefaultVertexStyle()[mxConstants.STYLE_SHAPE]:this.model.isEdge(b)&&(v[mxConstants.STYLE_SHAPE]=this.stylesheet.getDefaultEdgeStyle()[mxConstants.STYLE_SHAPE]));for(var p=0;p<e.length;p++){if(this.model.isVertex(b)&&this.model.isVertex(e[p])||
-this.model.isEdge(b)&&this.model.isEdge(e[p]))if(g){var B=this.model.getStyle(e[p]);if(null!=B){var G=B.split(";");0<G.length&&0>G[0].indexOf("=")&&(G=G.slice(1));this.model.setStyle(e[p],G.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[e[p]]);this.setCellStyles("points",null,[e[p]]);this.pasteStyle(v,[e[p]],null,!0)}else v=this.copyStyle(e[p]),this.model.setStyle(e[p],m),this.pasteStyle(v,[e[p]]);"1"==mxUtils.getValue(this.getCellStyle(e[p],!1),"composite","0")&&this.removeChildCells(e[p])}}finally{this.model.endUpdate()}};
+this.model.isEdge(b)&&this.model.isEdge(e[p]))if(g){var A=this.model.getStyle(e[p]);if(null!=A){var G=A.split(";");0<G.length&&0>G[0].indexOf("=")&&(G=G.slice(1));this.model.setStyle(e[p],G.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[e[p]]);this.setCellStyles("points",null,[e[p]]);this.pasteStyle(v,[e[p]],null,!0)}else v=this.copyStyle(e[p]),this.model.setStyle(e[p],m),this.pasteStyle(v,[e[p]]);"1"==mxUtils.getValue(this.getCellStyle(e[p],!1),"composite","0")&&this.removeChildCells(e[p])}}finally{this.model.endUpdate()}};
Graph.prototype.selectCellsForConnectVertex=function(b,e,g){2==b.length&&this.model.isVertex(b[1])?(this.setSelectionCell(b[1]),this.scrollCellToVisible(b[1]),null!=g&&(mxEvent.isTouchEvent(e)?g.update(g.getState(this.view.getState(b[1]))):g.reset())):this.setSelectionCells(b)};Graph.prototype.isCloneConnectSource=function(b){var e=null;null!=this.layoutManager&&(e=this.layoutManager.getLayout(this.model.getParent(b)));return this.isTableRow(b)||this.isTableCell(b)||null!=e&&e.constructor==mxStackLayout};
Graph.prototype.insertEdgeBeforeCell=function(b,e){for(var g=e;null!=g.parent&&null!=g.geometry&&g.geometry.relative&&g.parent!=b.parent;)g=this.model.getParent(g);null!=g&&null!=g.parent&&g.parent==b.parent&&(e=g.parent.getIndex(g),this.model.add(g.parent,b,e))};
-Graph.prototype.connectVertex=function(b,e,g,m,v,p,B,G){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var S=this.isCloneConnectSource(b),F=S?b:this.getCompositeParent(b),P=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(F.geometry.x,F.geometry.y);e==mxConstants.DIRECTION_NORTH?(P.x+=F.geometry.width/2,P.y-=g):e==
+Graph.prototype.connectVertex=function(b,e,g,m,v,p,A,G){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var S=this.isCloneConnectSource(b),F=S?b:this.getCompositeParent(b),P=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(F.geometry.x,F.geometry.y);e==mxConstants.DIRECTION_NORTH?(P.x+=F.geometry.width/2,P.y-=g):e==
mxConstants.DIRECTION_SOUTH?(P.x+=F.geometry.width/2,P.y+=F.geometry.height+g):(P.x=e==mxConstants.DIRECTION_WEST?P.x-g:P.x+(F.geometry.width+g),P.y+=F.geometry.height/2);var R=this.view.getState(this.model.getParent(b));g=this.view.scale;var T=this.view.translate;F=T.x*g;T=T.y*g;null!=R&&this.model.isVertex(R.cell)&&(F=R.x,T=R.y);this.model.isVertex(b.parent)&&b.geometry.relative&&(P.x+=b.parent.geometry.x,P.y+=b.parent.geometry.y);p=p?null:(new mxRectangle(F+P.x*g,T+P.y*g)).grow(40*g);p=null!=p?
-this.getCells(0,0,0,0,null,null,p,null,!0):null;R=this.view.getState(b);var c=null,f=null;if(null!=p){p=p.reverse();for(var k=0;k<p.length;k++)if(!this.isCellLocked(p[k])&&!this.model.isEdge(p[k])&&p[k]!=b)if(!this.model.isAncestor(b,p[k])&&this.isContainer(p[k])&&(null==c||p[k]==this.model.getParent(b)))c=p[k];else if(null==f&&this.isCellConnectable(p[k])&&!this.model.isAncestor(p[k],b)&&!this.isSwimlane(p[k])){var A=this.view.getState(p[k]);null==R||null==A||mxUtils.intersects(R,A)||(f=p[k])}}var z=
-!mxEvent.isShiftDown(m)||mxEvent.isControlDown(m)||v;z&&("1"!=urlParams.sketch||v)&&(e==mxConstants.DIRECTION_NORTH?P.y-=b.geometry.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=b.geometry.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-b.geometry.width/2:P.x+b.geometry.width/2);var C=[],I=f;f=c;v=mxUtils.bind(this,function(L){if(null==B||null!=L||null==f&&S){this.model.beginUpdate();try{if(null==I&&z){var K=this.getAbsoluteParent(null!=L?L:b);K=S?b:this.getCompositeParent(K);I=null!=L?L:this.duplicateCells([K],
+this.getCells(0,0,0,0,null,null,p,null,!0):null;R=this.view.getState(b);var c=null,f=null;if(null!=p){p=p.reverse();for(var k=0;k<p.length;k++)if(!this.isCellLocked(p[k])&&!this.model.isEdge(p[k])&&p[k]!=b)if(!this.model.isAncestor(b,p[k])&&this.isContainer(p[k])&&(null==c||p[k]==this.model.getParent(b)))c=p[k];else if(null==f&&this.isCellConnectable(p[k])&&!this.model.isAncestor(p[k],b)&&!this.isSwimlane(p[k])){var B=this.view.getState(p[k]);null==R||null==B||mxUtils.intersects(R,B)||(f=p[k])}}var z=
+!mxEvent.isShiftDown(m)||mxEvent.isControlDown(m)||v;z&&("1"!=urlParams.sketch||v)&&(e==mxConstants.DIRECTION_NORTH?P.y-=b.geometry.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=b.geometry.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-b.geometry.width/2:P.x+b.geometry.width/2);var C=[],I=f;f=c;v=mxUtils.bind(this,function(L){if(null==A||null!=L||null==f&&S){this.model.beginUpdate();try{if(null==I&&z){var K=this.getAbsoluteParent(null!=L?L:b);K=S?b:this.getCompositeParent(K);I=null!=L?L:this.duplicateCells([K],
!1)[0];null!=L&&this.addCells([I],this.model.getParent(b),null,null,null,!0);var O=this.getCellGeometry(I);null!=O&&(null!=L&&"1"==urlParams.sketch&&(e==mxConstants.DIRECTION_NORTH?P.y-=O.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=O.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-O.width/2:P.x+O.width/2),O.x=P.x-O.width/2,O.y=P.y-O.height/2);null!=c?(this.addCells([I],c,null,null,null,!0),f=null):z&&!S&&this.addCells([I],this.getDefaultParent(),null,null,null,!0)}var da=mxEvent.isControlDown(m)&&
mxEvent.isShiftDown(m)&&z||null==f&&S?null:this.insertEdge(this.model.getParent(b),null,"",b,I,this.createCurrentEdgeStyle());null!=da&&(C.push(da),this.applyNewEdgeStyle(b,[da],e),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(da,b));if(null==f&&null!=I&&null!=b.parent&&S&&e==mxConstants.DIRECTION_WEST){var ea=b.parent.getIndex(b);this.model.add(b.parent,I,ea)}null==f&&null!=I&&C.push(I);null==I&&null!=da&&da.geometry.setTerminalPoint(P,!1);null!=da&&this.fireEvent(new mxEventObject("cellsInserted",
-"cells",[da]))}finally{this.model.endUpdate()}}if(null!=G)G(C);else return C});if(null==B||null!=I||!z||null==f&&S)return v(I);B(F+P.x*g,T+P.y*g,v)};
+"cells",[da]))}finally{this.model.endUpdate()}}if(null!=G)G(C);else return C});if(null==A||null!=I||!z||null==f&&S)return v(I);A(F+P.x*g,T+P.y*g,v)};
Graph.prototype.getIndexableText=function(b){b=null!=b?b:this.model.getDescendants(this.model.root);for(var e=document.createElement("div"),g=[],m,v=0;v<b.length;v++)if(m=b[v],this.model.isVertex(m)||this.model.isEdge(m))this.isHtmlLabel(m)?(e.innerHTML=Graph.sanitizeHtml(this.getLabel(m)),m=mxUtils.extractTextWithWhitespace([e])):m=this.getLabel(m),m=mxUtils.trim(m.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<m.length&&g.push(m);return g.join(" ")};
Graph.prototype.convertValueToString=function(b){var e=this.model.getValue(b);if(null!=e&&"object"==typeof e){var g=null;if(this.isReplacePlaceholders(b)&&null!=b.getAttribute("placeholder")){e=b.getAttribute("placeholder");for(var m=b;null==g&&null!=m;)null!=m.value&&"object"==typeof m.value&&(g=m.hasAttribute(e)?null!=m.getAttribute(e)?m.getAttribute(e):"":null),m=this.model.getParent(m)}else g=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=e.getAttribute("label_"+Graph.diagramLanguage)),
null==g&&(g=e.getAttribute("label")||"");return g||""}return mxGraph.prototype.convertValueToString.apply(this,arguments)};Graph.prototype.getLinksForState=function(b){return null!=b&&null!=b.text&&null!=b.text.node?b.text.node.getElementsByTagName("a"):null};Graph.prototype.getLinkForCell=function(b,e){return null!=b.value&&"object"==typeof b.value?(b=b.value.getAttribute("link"),e||(b=mxUtils.removeJavascriptProtocol(b)),b):null};
@@ -2428,23 +2443,23 @@ mxConstants.STYLE_IMAGE_BACKGROUND,b);this.replaceDefaultColor(e,mxConstants.STY
Graph.prototype.getDefaultColor=function(b,e,g){e="default"+e.charAt(0).toUpperCase()+e.substring(1);"invert"==b[e]&&(b=mxUtils.getLightDarkColor(g),g="light-dark("+b.dark+", "+b.light+")");return g};
Graph.prototype.setAdaptiveColors=function(b){this.adaptiveColors="default"==b?null:b;"1"==urlParams.embedInline?null!=this.container&&(this.container.style.colorScheme="none"==this.getAdaptiveColors()?"light":""):(b=this.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.colorScheme="none"==this.getAdaptiveColors()?"light":""))};Graph.prototype.getAdaptiveColors=function(){return null!=this.adaptiveColors?this.adaptiveColors:Graph.defaultAdaptiveColors};
Graph.prototype.updateAlternateBounds=function(b,e,g){if(null!=b&&null!=e&&null!=this.layoutManager&&null!=e.alternateBounds){var m=this.layoutManager.getLayout(this.model.getParent(b));null!=m&&m.constructor==mxStackLayout&&(m.horizontal?e.alternateBounds.height=0:e.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};Graph.prototype.isMoveCellsEvent=function(b,e){return mxEvent.isShiftDown(b)||"1"==mxUtils.getValue(e.style,"moveCells","0")};
-Graph.prototype.foldCells=function(b,e,g,m,v){e=null!=e?e:!1;null==g&&(g=this.getFoldableCells(this.getSelectionCells(),b));if(null!=g){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var p=0;p<g.length;p++){var B=this.view.getState(g[p]),G=this.getCellGeometry(g[p]);if(null!=B&&null!=G){var S=0,F=0;if(G.alternateBounds)S=G.width-G.alternateBounds.width,F=G.height-G.alternateBounds.height;else{var P=this.useCssTransforms?1:this.view.scale;
-S=Math.round(G.width-B.width/P);F=Math.round(G.height-B.height/P)}if(0!=F||0!=S){var R=this.model.getParent(g[p]),T=this.layoutManager.getLayout(R);null==T?null!=v&&this.isMoveCellsEvent(v,B)&&this.moveSiblings(B,R,S,F):null!=v&&mxEvent.isAltDown(v)||T.constructor!=mxStackLayout||T.resizeLast||this.resizeParentStacks(R,T,S,F)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(g)}};
-Graph.prototype.moveSiblings=function(b,e,g,m){this.model.beginUpdate();try{var v=this.getCellsBeyond(b.x,b.y,e,!0,!0);for(e=0;e<v.length;e++)if(v[e]!=b.cell){var p=this.view.getState(v[e]),B=this.getCellGeometry(v[e]);null!=p&&null!=B&&(B=B.clone(),B.translate(Math.round(g*Math.max(0,Math.min(1,(p.x-b.x)/b.width))),Math.round(m*Math.max(0,Math.min(1,(p.y-b.y)/b.height)))),this.model.setGeometry(v[e],B))}}finally{this.model.endUpdate()}};
-Graph.prototype.resizeParentStacks=function(b,e,g,m){if(null!=this.layoutManager&&null!=e&&e.constructor==mxStackLayout&&!e.resizeLast){this.model.beginUpdate();try{for(var v=e.horizontal;null!=b&&null!=e&&e.constructor==mxStackLayout&&e.horizontal==v&&!e.resizeLast;){var p=this.getCellGeometry(b),B=this.view.getState(b);null!=B&&null!=p&&(p=p.clone(),e.horizontal?p.width+=g+Math.min(0,B.width/this.view.scale-p.width):p.height+=m+Math.min(0,B.height/this.view.scale-p.height),this.model.setGeometry(b,
+Graph.prototype.foldCells=function(b,e,g,m,v){e=null!=e?e:!1;null==g&&(g=this.getFoldableCells(this.getSelectionCells(),b));if(null!=g){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var p=0;p<g.length;p++){var A=this.view.getState(g[p]),G=this.getCellGeometry(g[p]);if(null!=A&&null!=G){var S=0,F=0;if(G.alternateBounds)S=G.width-G.alternateBounds.width,F=G.height-G.alternateBounds.height;else{var P=this.useCssTransforms?1:this.view.scale;
+S=Math.round(G.width-A.width/P);F=Math.round(G.height-A.height/P)}if(0!=F||0!=S){var R=this.model.getParent(g[p]),T=this.layoutManager.getLayout(R);null==T?null!=v&&this.isMoveCellsEvent(v,A)&&this.moveSiblings(A,R,S,F):null!=v&&mxEvent.isAltDown(v)||T.constructor!=mxStackLayout||T.resizeLast||this.resizeParentStacks(R,T,S,F)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(g)}};
+Graph.prototype.moveSiblings=function(b,e,g,m){this.model.beginUpdate();try{var v=this.getCellsBeyond(b.x,b.y,e,!0,!0);for(e=0;e<v.length;e++)if(v[e]!=b.cell){var p=this.view.getState(v[e]),A=this.getCellGeometry(v[e]);null!=p&&null!=A&&(A=A.clone(),A.translate(Math.round(g*Math.max(0,Math.min(1,(p.x-b.x)/b.width))),Math.round(m*Math.max(0,Math.min(1,(p.y-b.y)/b.height)))),this.model.setGeometry(v[e],A))}}finally{this.model.endUpdate()}};
+Graph.prototype.resizeParentStacks=function(b,e,g,m){if(null!=this.layoutManager&&null!=e&&e.constructor==mxStackLayout&&!e.resizeLast){this.model.beginUpdate();try{for(var v=e.horizontal;null!=b&&null!=e&&e.constructor==mxStackLayout&&e.horizontal==v&&!e.resizeLast;){var p=this.getCellGeometry(b),A=this.view.getState(b);null!=A&&null!=p&&(p=p.clone(),e.horizontal?p.width+=g+Math.min(0,A.width/this.view.scale-p.width):p.height+=m+Math.min(0,A.height/this.view.scale-p.height),this.model.setGeometry(b,
p));b=this.model.getParent(b);e=this.layoutManager.getLayout(b)}}finally{this.model.endUpdate()}}};Graph.prototype.isContainer=function(b){var e=this.getCurrentCellStyle(b);return this.isSwimlane(b)?"0"!=e.container:"1"==e.container};Graph.prototype.isCellConnectable=function(b){var e=this.getCurrentCellStyle(b);return!this.isCellLocked(this.getLayerForCell(b))&&(null!=e.connectable?"0"!=e.connectable:mxGraph.prototype.isCellConnectable.apply(this,arguments))};
Graph.prototype.isLabelMovable=function(b){var e=this.getCurrentCellStyle(b);return null!=e.movableLabel?"0"!=e.movableLabel:mxGraph.prototype.isLabelMovable.apply(this,arguments)};Graph.prototype.selectAll=function(b){b=b||this.getDefaultParent();this.isCellLocked(b)||mxGraph.prototype.selectAll.apply(this,arguments)};Graph.prototype.selectCells=function(b,e,g){g=g||this.getDefaultParent();this.isCellLocked(g)||mxGraph.prototype.selectCells.apply(this,arguments)};
Graph.prototype.getSwimlaneAt=function(b,e,g){var m=mxGraph.prototype.getSwimlaneAt.apply(this,arguments);this.isCellLocked(m)&&(m=null);return m};Graph.prototype.isCellFoldable=function(b){var e=this.getCurrentCellStyle(b);return this.foldingEnabled&&"0"!=mxUtils.getValue(e,mxConstants.STYLE_RESIZABLE,"1")&&("1"==e.treeFolding||!this.isCellLocked(b)&&(this.isContainer(b)&&"0"!=e.collapsible||!this.isContainer(b)&&"1"==e.collapsible))};
Graph.prototype.reset=function(){this.isEditing()&&this.stopEditing(!0);this.escape();this.isSelectionEmpty()||this.clearSelection()};Graph.prototype.zoom=function(b,e){b=Math.max(.01,Math.min(this.view.scale*b,160))/this.view.scale;mxGraph.prototype.zoom.apply(this,arguments)};Graph.prototype.zoomIn=function(){.15>this.view.scale?this.zoom((this.view.scale+.01)/this.view.scale):this.zoom(Math.round(this.view.scale*this.zoomFactor*20)/20/this.view.scale)};
Graph.prototype.zoomOut=function(){.15>=this.view.scale?this.zoom((this.view.scale-.01)/this.view.scale):this.zoom(Math.round(1/this.zoomFactor*this.view.scale*20)/20/this.view.scale)};
-Graph.prototype.fitPages=function(b,e){var g=1;null==b&&(g=this.getPageLayout(),b=g.width,g=g.height);var m=this.pageScale,v=this.pageFormat,p=this.container.clientHeight-10,B=(this.container.clientWidth-10)/(b*v.width)/m;this.zoomTo(Math.floor(20*(e?B:Math.min(B,p/(g*v.height)/m)))/20);mxUtils.hasScrollbars(this.container)&&(g=this.getPagePadding(),this.container.scrollLeft=Math.min(g.x*this.view.scale,(this.container.scrollWidth-this.container.clientWidth)/2)-1,e||(this.container.scrollTop=2<=b?
+Graph.prototype.fitPages=function(b,e){var g=1;null==b&&(g=this.getPageLayout(),b=g.width,g=g.height);var m=this.pageScale,v=this.pageFormat,p=this.container.clientHeight-10,A=(this.container.clientWidth-10)/(b*v.width)/m;this.zoomTo(Math.floor(20*(e?A:Math.min(A,p/(g*v.height)/m)))/20);mxUtils.hasScrollbars(this.container)&&(g=this.getPagePadding(),this.container.scrollLeft=Math.min(g.x*this.view.scale,(this.container.scrollWidth-this.container.clientWidth)/2)-1,e||(this.container.scrollTop=2<=b?
Math.min(g.y,(this.container.scrollHeight-this.container.clientHeight)/2):g.y*this.view.scale-1))};
Graph.prototype.fitWindow=function(b,e){e=null!=e?e:10;var g=this.container.clientWidth-e,m=this.container.clientHeight-e;this.zoomTo(Math.floor(20*Math.min(g/b.width,m/b.height))/20);mxUtils.hasScrollbars(this.container)&&window.setTimeout(mxUtils.bind(this,function(){var v=this.view.translate;this.container.scrollLeft=(b.x+v.x)*this.view.scale-Math.max((g-b.width*this.view.scale)/2+e/2,0);this.container.scrollTop=(b.y+v.y)*this.view.scale-Math.max((m-b.height*this.view.scale)/2+e/2,0)}),0)};
Graph.prototype.convertValueToTooltip=function(b){var e=null;mxUtils.isNode(b.value)&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(e=b.value.getAttribute("tooltip_"+Graph.diagramLanguage)),null==e&&(e=b.value.getAttribute("tooltip")),null!=e&&(null!=e&&this.isReplacePlaceholders(b)&&(e=this.replacePlaceholders(b,e)),e=Graph.sanitizeHtml(e)));return e};
-Graph.prototype.getTooltipForCell=function(b){var e="";if(mxUtils.isNode(b.value)&&(e=this.convertValueToTooltip(b),null==e)){var g=this.builtInProperties;b=b.value.attributes;var m=[];e="";this.isEnabled()&&(g.push("linkTarget"),g.push("link"));for(var v=0;v<b.length;v++)(Graph.translateDiagram&&"label"==b[v].nodeName||0>mxUtils.indexOf(g,b[v].nodeName))&&0<b[v].nodeValue.length&&m.push({name:b[v].nodeName,value:b[v].nodeValue});m.sort(function(p,B){return p.name<B.name?-1:p.name>B.name?1:0});for(v=
+Graph.prototype.getTooltipForCell=function(b){var e="";if(mxUtils.isNode(b.value)&&(e=this.convertValueToTooltip(b),null==e)){var g=this.builtInProperties;b=b.value.attributes;var m=[];e="";this.isEnabled()&&(g.push("linkTarget"),g.push("link"));for(var v=0;v<b.length;v++)(Graph.translateDiagram&&"label"==b[v].nodeName||0>mxUtils.indexOf(g,b[v].nodeName))&&0<b[v].nodeValue.length&&m.push({name:b[v].nodeName,value:b[v].nodeValue});m.sort(function(p,A){return p.name<A.name?-1:p.name>A.name?1:0});for(v=
0;v<m.length;v++)"link"==m[v].name&&this.isCustomLink(m[v].value)||(e+=("link"!=m[v].name?"<b>"+mxUtils.htmlEntities(m[v].name)+":</b> ":"")+mxUtils.htmlEntities(m[v].value)+"\n");0<e.length&&(e=e.substring(0,e.length-1),mxClient.IS_SVG&&(e='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+e+"</div>"))}return e};
-Graph.prototype.addFlowAnimationToNode=function(b,e,g,m){if(null!=b&&null!=m){var v=b.getAttribute("stroke-dasharray");if(""==v||null==v){var p=String(mxUtils.getValue(e,mxConstants.STYLE_DASH_PATTERN,"8")).split(" ");v=1==mxUtils.getValue(e,mxConstants.STYLE_FIX_DASH,!1)||null==e.dashPattern?1:mxUtils.getNumber(e,mxConstants.STYLE_STROKEWIDTH,1);if(0<p.length)for(var B=0;B<p.length;B++)p[B]=Math.round(Number(p[B])*g*v*100)/100;b.setAttribute("stroke-dasharray",p.join(" "))}else p=v.split(" ");if(0<
-p.length){for(B=v=0;B<p.length;B++){var G=parseFloat(p[B]);isNaN(G)||(v+=parseFloat(p[B]))}0!=p.length%2&&(v*=2);g=Math.round(v/g/16*parseInt(mxUtils.getValue(e,"flowAnimationDuration",500)));p=mxUtils.getValue(e,"flowAnimationTimingFunction","linear");e=mxUtils.getValue(e,"flowAnimationDirection","normal");b.style.animation=m+" "+g+"ms "+mxUtils.htmlEntities(p)+" infinite "+mxUtils.htmlEntities(e);b.style.strokeDashoffset=v}}};
+Graph.prototype.addFlowAnimationToNode=function(b,e,g,m){if(null!=b&&null!=m){var v=b.getAttribute("stroke-dasharray");if(""==v||null==v){var p=String(mxUtils.getValue(e,mxConstants.STYLE_DASH_PATTERN,"8")).split(" ");v=1==mxUtils.getValue(e,mxConstants.STYLE_FIX_DASH,!1)||null==e.dashPattern?1:mxUtils.getNumber(e,mxConstants.STYLE_STROKEWIDTH,1);if(0<p.length)for(var A=0;A<p.length;A++)p[A]=Math.round(Number(p[A])*g*v*100)/100;b.setAttribute("stroke-dasharray",p.join(" "))}else p=v.split(" ");if(0<
+p.length){for(A=v=0;A<p.length;A++){var G=parseFloat(p[A]);isNaN(G)||(v+=parseFloat(p[A]))}0!=p.length%2&&(v*=2);g=Math.round(v/g/16*parseInt(mxUtils.getValue(e,"flowAnimationDuration",500)));p=mxUtils.getValue(e,"flowAnimationTimingFunction","linear");e=mxUtils.getValue(e,"flowAnimationDirection","normal");b.style.animation=m+" "+g+"ms "+mxUtils.htmlEntities(p)+" infinite "+mxUtils.htmlEntities(e);b.style.strokeDashoffset=v}}};
Graph.prototype.addFlowAnimationStyle=function(){var b=document.getElementsByTagName("head")[0];if(null!=b&&null==this.flowAnimationId){this.flowAnimationId="ge-flow-animation-"+Editor.guid();var e=document.createElement("style");e.innerHTML=this.createFlowAnimationCss(this.flowAnimationId);b.appendChild(e)}return this.flowAnimationId};Graph.prototype.createFlowAnimationCss=function(b){return"@keyframes "+b+" {\n to {\n stroke-dashoffset: 0;\n }\n}"};Graph.prototype.stringToBytes=function(b){return Graph.stringToBytes(b)};
Graph.prototype.bytesToString=function(b){return Graph.bytesToString(b)};Graph.prototype.compressNode=function(b){return Graph.compressNode(b)};Graph.prototype.compress=function(b,e){return Graph.compress(b,e)};Graph.prototype.decompress=function(b,e){return Graph.decompress(b,e)};Graph.prototype.zapGremlins=function(b){return Graph.zapGremlins(b)};HoverIcons=function(b){mxEventSource.call(this);this.graph=b;this.init()};mxUtils.extend(HoverIcons,mxEventSource);HoverIcons.prototype.arrowSpacing=2;
HoverIcons.prototype.updateDelay=500;HoverIcons.prototype.activationDelay=140;HoverIcons.prototype.currentState=null;HoverIcons.prototype.activeArrow=null;HoverIcons.prototype.inactiveOpacity=15;HoverIcons.prototype.cssCursor="copy";HoverIcons.prototype.checkCollisions=!0;HoverIcons.prototype.arrowFill="#29b6f2";
@@ -2473,8 +2488,8 @@ HoverIcons.prototype.repaint=function(){this.bbox=null;if(null!=this.currentStat
var e=this.graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentState.cell)&&(e=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.currentState.cell)));var g=null;null!=e&&(b.x-=e.horizontalOffset/2,b.y-=e.verticalOffset/2,b.width+=e.horizontalOffset,b.height+=e.verticalOffset,null!=e.rotationShape&&null!=e.rotationShape.node&&"hidden"!=e.rotationShape.node.style.visibility&&"none"!=e.rotationShape.node.style.display&&null!=e.rotationShape.boundingBox&&
(g=e.rotationShape.boundingBox));e=mxUtils.bind(this,function(G,S,F){if(null!=g){var P=new mxRectangle(S,F,G.clientWidth,G.clientHeight);mxUtils.intersects(P,g)&&(G==this.arrowUp?F-=P.y+P.height-g.y:G==this.arrowRight?S+=g.x+g.width-P.x:G==this.arrowDown?F+=g.y+g.height-P.y:G==this.arrowLeft&&(S-=P.x+P.width-g.x))}G.style.left=S+"px";G.style.top=F+"px";mxUtils.setOpacity(G,this.inactiveOpacity)});e(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(b.y-
this.triangleUp.height-this.tolerance));e(this.arrowRight,Math.round(b.x+b.width-this.tolerance),Math.round(this.currentState.getCenterY()-this.triangleRight.height/2-this.tolerance));e(this.arrowDown,parseInt(this.arrowUp.style.left),Math.round(b.y+b.height-this.tolerance));e(this.arrowLeft,Math.round(b.x-this.triangleLeft.width-this.tolerance),parseInt(this.arrowRight.style.top));if(this.checkCollisions){e=this.graph.getCellAt(b.x+b.width+this.triangleRight.width/2,this.currentState.getCenterY());
-var m=this.graph.getCellAt(b.x-this.triangleLeft.width/2,this.currentState.getCenterY()),v=this.graph.getCellAt(this.currentState.getCenterX(),b.y-this.triangleUp.height/2);b=this.graph.getCellAt(this.currentState.getCenterX(),b.y+b.height+this.triangleDown.height/2);null!=e&&e==m&&m==v&&v==b&&(b=v=m=e=null);var p=this.graph.getCellGeometry(this.currentState.cell),B=mxUtils.bind(this,function(G,S){var F=this.graph.model.isVertex(G)&&this.graph.getCellGeometry(G);null==G||this.graph.model.isAncestor(G,
-this.currentState.cell)||this.graph.isSwimlane(G)||!(null==F||null==p||F.height<3*p.height&&F.width<3*p.width)?S.style.visibility="visible":S.style.visibility="hidden"});B(e,this.arrowRight);B(m,this.arrowLeft);B(v,this.arrowUp);B(b,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
+var m=this.graph.getCellAt(b.x-this.triangleLeft.width/2,this.currentState.getCenterY()),v=this.graph.getCellAt(this.currentState.getCenterX(),b.y-this.triangleUp.height/2);b=this.graph.getCellAt(this.currentState.getCenterX(),b.y+b.height+this.triangleDown.height/2);null!=e&&e==m&&m==v&&v==b&&(b=v=m=e=null);var p=this.graph.getCellGeometry(this.currentState.cell),A=mxUtils.bind(this,function(G,S){var F=this.graph.model.isVertex(G)&&this.graph.getCellGeometry(G);null==G||this.graph.model.isAncestor(G,
+this.currentState.cell)||this.graph.isSwimlane(G)||!(null==F||null==p||F.height<3*p.height&&F.width<3*p.width)?S.style.visibility="visible":S.style.visibility="hidden"});A(e,this.arrowRight);A(m,this.arrowLeft);A(v,this.arrowUp);A(b,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
this.arrowRight.setAttribute("title",mxResources.get("plusTooltip")),this.arrowUp.setAttribute("title",mxResources.get("plusTooltip")),this.arrowDown.setAttribute("title",mxResources.get("plusTooltip"))):(this.arrowLeft.removeAttribute("title"),this.arrowRight.removeAttribute("title"),this.arrowUp.removeAttribute("title"),this.arrowDown.removeAttribute("title"))}else this.reset();null!=this.currentState&&(this.bbox=this.computeBoundingBox(),null!=this.bbox&&this.bbox.grow(10))}};
HoverIcons.prototype.computeBoundingBox=function(){var b=this.graph.model.isEdge(this.currentState.cell)?null:mxRectangle.fromRectangle(this.currentState);this.visitNodes(function(e){null!=e.parentNode&&(e=new mxRectangle(e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight),null==b?b=e:b.add(e))});return b};
HoverIcons.prototype.getState=function(b){if(null!=b)if(b=b.cell,this.graph.getModel().contains(b)){if(this.graph.getModel().isVertex(b)&&!this.graph.isCellConnectable(b)){var e=this.graph.getModel().getParent(b);this.graph.getModel().isVertex(e)&&this.graph.isCellConnectable(e)&&(b=e)}if(this.graph.isCellLocked(b)||this.graph.model.isEdge(b))b=null;b=this.graph.view.getState(b);null!=b&&null==b.style&&(b=null)}else b=null;return b};
@@ -2483,59 +2498,59 @@ window.setTimeout(mxUtils.bind(this,function(){this.isActive()||this.graph.isMou
b||null==this.bbox||null==e||null==g||!mxUtils.contains(this.bbox,e,g))&&(null!=b&&this.graph.isEnabled()?(this.removeNodes(),this.setCurrentState(b),this.repaint(),this.graph.connectionHandler.constraintHandler.currentFocus!=b&&this.graph.connectionHandler.constraintHandler.reset()):this.reset())}};
HoverIcons.prototype.setCurrentState=function(b){"eastwest"!=b.style.portConstraint&&(this.graph.container.appendChild(this.arrowUp),this.graph.container.appendChild(this.arrowDown));this.graph.container.appendChild(this.arrowRight);this.graph.container.appendChild(this.arrowLeft);this.currentState=b};
Graph.prototype.removeTextStyleForCell=function(b,e){var g=this.getCurrentCellStyle(b),m=!1;this.getModel().beginUpdate();try{if("1"==mxUtils.getValue(g,"html","0")){var v=this.convertValueToString(b);"0"!=mxUtils.getValue(g,"nl2Br","1")&&(v=v.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n"));v=Editor.convertHtmlToText(v);this.cellLabelChanged(b,v);m=!0}e&&(this.setCellStyles("fontSource",null,[b]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSIZE,
-null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return m};Graph.prototype.createParent=function(b,e,g,m,v){b=this.cloneCell(b);for(var p=0;p<g;p++){var B=this.cloneCell(e),G=this.getCellGeometry(B);null!=G&&(G.x+=p*m,G.y+=p*v);b.insert(B)}return b};
-Graph.prototype.createTable=function(b,e,g,m,v,p,B,G,S){g=null!=g?g:60;m=null!=m?m:40;p=null!=p?p:30;G=null!=G?G:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";S=null!=S?S:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
-null,null!=v?v:"",0,0,e*g,b*m+(null!=v?p:0),null!=B?B:"shape=table;startSize="+(null!=v?p:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,e*g,m,G),this.createVertex(null,null,"",0,0,g,m,S),e,g,0),b,0,m)};
-Graph.prototype.setTableValues=function(b,e,g){for(var m=this.model.getChildCells(b,!0),v=0;v<m.length;v++)if(null!=g&&(m[v].value=g[v]),null!=e)for(var p=this.model.getChildCells(m[v],!0),B=0;B<p.length;B++)null!=e[v][B]&&(p[B].value=e[v][B]);return b};
-Graph.prototype.createCrossFunctionalSwimlane=function(b,e,g,m,v,p,B,G,S){g=null!=g?g:120;m=null!=m?m:120;B=null!=B?B:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";G=null!=G?G:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
+null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return m};Graph.prototype.createParent=function(b,e,g,m,v){b=this.cloneCell(b);for(var p=0;p<g;p++){var A=this.cloneCell(e),G=this.getCellGeometry(A);null!=G&&(G.x+=p*m,G.y+=p*v);b.insert(A)}return b};
+Graph.prototype.createTable=function(b,e,g,m,v,p,A,G,S){g=null!=g?g:60;m=null!=m?m:40;p=null!=p?p:30;G=null!=G?G:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";S=null!=S?S:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
+null,null!=v?v:"",0,0,e*g,b*m+(null!=v?p:0),null!=A?A:"shape=table;startSize="+(null!=v?p:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,e*g,m,G),this.createVertex(null,null,"",0,0,g,m,S),e,g,0),b,0,m)};
+Graph.prototype.setTableValues=function(b,e,g){for(var m=this.model.getChildCells(b,!0),v=0;v<m.length;v++)if(null!=g&&(m[v].value=g[v]),null!=e)for(var p=this.model.getChildCells(m[v],!0),A=0;A<p.length;A++)null!=e[v][A]&&(p[A].value=e[v][A]);return b};
+Graph.prototype.createCrossFunctionalSwimlane=function(b,e,g,m,v,p,A,G,S){g=null!=g?g:120;m=null!=m?m:120;A=null!=A?A:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";G=null!=G?G:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
S=null!=S?S:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";v=this.createVertex(null,null,null!=v?v:"",0,0,e*g,b*m,null!=p?p:"shape=table;childLayout=tableLayout;"+(null==v?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");p=mxUtils.getValue(this.getCellStyle(v),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);v.geometry.width+=p;v.geometry.height+=
-p;B=this.createVertex(null,null,"",0,p,e*g+p,m,B);v.insert(this.createParent(B,this.createVertex(null,null,"",p,0,g,m,G),e,g,0));return 1<b?(B.geometry.y=m+p,this.createParent(v,this.createParent(B,this.createVertex(null,null,"",p,0,g,m,S),e,g,0),b-1,0,m)):v};
-Graph.prototype.visitTableCells=function(b,e){var g=null,m=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var v=0;v<m.length;v++){for(var p=this.getActualStartSize(m[v],!0),B=this.model.getChildCells(m[v],!0),G=this.getCellStyle(m[v],!0),S=null,F=[],P=0;P<B.length;P++){var R=this.getCellGeometry(B[P]),T={cell:B[P],rospan:1,colspan:1,row:v,col:P,geo:R};R=null!=R.alternateBounds?R.alternateBounds:R;T.point=new mxPoint(R.width+(null!=S?S.point.x:b.x+p.x),R.height+(null!=g&&null!=
-g[0]?g[0].point.y:b.y+p.y));T.actual=T;null!=g&&null!=g[P]&&1<g[P].rowspan?(T.rowspan=g[P].rowspan-1,T.colspan=g[P].colspan,T.actual=g[P].actual):null!=S&&1<S.colspan?(T.rowspan=S.rowspan,T.colspan=S.colspan-1,T.actual=S.actual):(S=this.getCurrentCellStyle(B[P],!0),null!=S&&(T.rowspan=parseInt(S.rowspan||1),T.colspan=parseInt(S.colspan||1)));S=1==mxUtils.getValue(G,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(G,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;e(T,B.length,
-m.length,b.x+(S?p.x:0),b.y+(S?p.y:0));F.push(T);S=T}g=F}};Graph.prototype.getTableLines=function(b,e,g){var m=[],v=[];(e||g)&&this.visitTableCells(b,mxUtils.bind(this,function(p,B,G,S,F){e&&p.row<G-1&&(null==m[p.row]&&(m[p.row]=[new mxPoint(S,p.point.y)]),1<p.rowspan&&m[p.row].push(null),m[p.row].push(p.point));g&&p.col<B-1&&(null==v[p.col]&&(v[p.col]=[new mxPoint(p.point.x,F)]),1<p.colspan&&v[p.col].push(null),v[p.col].push(p.point))}));return m.concat(v)};
+p;A=this.createVertex(null,null,"",0,p,e*g+p,m,A);v.insert(this.createParent(A,this.createVertex(null,null,"",p,0,g,m,G),e,g,0));return 1<b?(A.geometry.y=m+p,this.createParent(v,this.createParent(A,this.createVertex(null,null,"",p,0,g,m,S),e,g,0),b-1,0,m)):v};
+Graph.prototype.visitTableCells=function(b,e){var g=null,m=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var v=0;v<m.length;v++){for(var p=this.getActualStartSize(m[v],!0),A=this.model.getChildCells(m[v],!0),G=this.getCellStyle(m[v],!0),S=null,F=[],P=0;P<A.length;P++){var R=this.getCellGeometry(A[P]),T={cell:A[P],rospan:1,colspan:1,row:v,col:P,geo:R};R=null!=R.alternateBounds?R.alternateBounds:R;T.point=new mxPoint(R.width+(null!=S?S.point.x:b.x+p.x),R.height+(null!=g&&null!=
+g[0]?g[0].point.y:b.y+p.y));T.actual=T;null!=g&&null!=g[P]&&1<g[P].rowspan?(T.rowspan=g[P].rowspan-1,T.colspan=g[P].colspan,T.actual=g[P].actual):null!=S&&1<S.colspan?(T.rowspan=S.rowspan,T.colspan=S.colspan-1,T.actual=S.actual):(S=this.getCurrentCellStyle(A[P],!0),null!=S&&(T.rowspan=parseInt(S.rowspan||1),T.colspan=parseInt(S.colspan||1)));S=1==mxUtils.getValue(G,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(G,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;e(T,A.length,
+m.length,b.x+(S?p.x:0),b.y+(S?p.y:0));F.push(T);S=T}g=F}};Graph.prototype.getTableLines=function(b,e,g){var m=[],v=[];(e||g)&&this.visitTableCells(b,mxUtils.bind(this,function(p,A,G,S,F){e&&p.row<G-1&&(null==m[p.row]&&(m[p.row]=[new mxPoint(S,p.point.y)]),1<p.rowspan&&m[p.row].push(null),m[p.row].push(p.point));g&&p.col<A-1&&(null==v[p.col]&&(v[p.col]=[new mxPoint(p.point.x,F)]),1<p.colspan&&v[p.col].push(null),v[p.col].push(p.point))}));return m.concat(v)};
Graph.prototype.isTableCell=function(b){return this.model.isVertex(b)&&this.isTableRow(this.model.getParent(b))};Graph.prototype.isTableRow=function(b){return this.model.isVertex(b)&&this.isTable(this.model.getParent(b))};Graph.prototype.isTable=function(b){b=this.getCellStyle(b);return null!=b&&"tableLayout"==b.childLayout};Graph.prototype.isStack=function(b){b=this.getCellStyle(b);return null!=b&&"stackLayout"==b.childLayout};
Graph.prototype.isStackChild=function(b){return this.model.isVertex(b)&&this.isStack(this.model.getParent(b))};
-Graph.prototype.setTableRowHeight=function(b,e,g){g=null!=g?g:!0;var m=this.getModel();m.beginUpdate();try{var v=this.getCellGeometry(b);if(null!=v){v=v.clone();v.height+=e;m.setGeometry(b,v);var p=m.getParent(b),B=m.getChildCells(p,!0);if(!g){var G=mxUtils.indexOf(B,b);if(G<B.length-1){var S=B[G+1],F=this.getCellGeometry(S);null!=F&&(F=F.clone(),F.y+=e,F.height-=e,m.setGeometry(S,F))}}var P=this.getCellGeometry(p);null!=P&&(g||(g=b==B[B.length-1]),g&&(P=P.clone(),P.height+=e,m.setGeometry(p,P)))}}finally{m.endUpdate()}};
-Graph.prototype.setTableColumnWidth=function(b,e,g){g=null!=g?g:!1;var m=this.getModel(),v=m.getParent(b),p=m.getParent(v),B=m.getChildCells(v,!0);b=mxUtils.indexOf(B,b);var G=b==B.length-1;m.beginUpdate();try{for(var S=m.getChildCells(p,!0),F=0;F<S.length;F++){v=S[F];B=m.getChildCells(v,!0);var P=B[b],R=this.getCellGeometry(P);null!=R&&(R=R.clone(),R.width+=e,null!=R.alternateBounds&&(R.alternateBounds.width+=e),m.setGeometry(P,R));b<B.length-1&&(P=B[b+1],R=this.getCellGeometry(P),null!=R&&(R=R.clone(),
+Graph.prototype.setTableRowHeight=function(b,e,g){g=null!=g?g:!0;var m=this.getModel();m.beginUpdate();try{var v=this.getCellGeometry(b);if(null!=v){v=v.clone();v.height+=e;m.setGeometry(b,v);var p=m.getParent(b),A=m.getChildCells(p,!0);if(!g){var G=mxUtils.indexOf(A,b);if(G<A.length-1){var S=A[G+1],F=this.getCellGeometry(S);null!=F&&(F=F.clone(),F.y+=e,F.height-=e,m.setGeometry(S,F))}}var P=this.getCellGeometry(p);null!=P&&(g||(g=b==A[A.length-1]),g&&(P=P.clone(),P.height+=e,m.setGeometry(p,P)))}}finally{m.endUpdate()}};
+Graph.prototype.setTableColumnWidth=function(b,e,g){g=null!=g?g:!1;var m=this.getModel(),v=m.getParent(b),p=m.getParent(v),A=m.getChildCells(v,!0);b=mxUtils.indexOf(A,b);var G=b==A.length-1;m.beginUpdate();try{for(var S=m.getChildCells(p,!0),F=0;F<S.length;F++){v=S[F];A=m.getChildCells(v,!0);var P=A[b],R=this.getCellGeometry(P);null!=R&&(R=R.clone(),R.width+=e,null!=R.alternateBounds&&(R.alternateBounds.width+=e),m.setGeometry(P,R));b<A.length-1&&(P=A[b+1],R=this.getCellGeometry(P),null!=R&&(R=R.clone(),
R.x+=e,g||(R.width-=e,null!=R.alternateBounds&&(R.alternateBounds.width-=e)),m.setGeometry(P,R)))}if(G||g){var T=this.getCellGeometry(p);null!=T&&(T=T.clone(),T.width+=e,m.setGeometry(p,T))}null!=this.layoutManager&&this.layoutManager.executeLayout(p)}finally{m.endUpdate()}};function TableLayout(b){mxGraphLayout.call(this,b)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
TableLayout.prototype.isVertexIgnored=function(b){return!this.graph.getModel().isVertex(b)||!this.graph.isCellVisible(b)};TableLayout.prototype.getSize=function(b,e){for(var g=0,m=0;m<b.length;m++)if(!this.isVertexIgnored(b[m])){var v=this.graph.getCellGeometry(b[m]);null!=v&&(g+=e?v.width:v.height)}return g};
-TableLayout.prototype.getRowLayout=function(b,e){var g=this.graph.model.getChildCells(b,!0),m=this.graph.getActualStartSize(b,!0);b=this.getSize(g,!0);e=e-m.x-m.width;var v=[];m=m.x;for(var p=0;p<g.length;p++){var B=this.graph.getCellGeometry(g[p]);null!=B&&(m+=(null!=B.alternateBounds?B.alternateBounds.width:B.width)*e/b,v.push(Math.round(m)))}return v};
-TableLayout.prototype.layoutRow=function(b,e,g,m){var v=this.graph.getModel(),p=v.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var B=b.x,G=0;null!=e&&(e=e.slice(),e.splice(0,0,b.x));for(var S=0;S<p.length;S++){var F=this.graph.getCellGeometry(p[S]);null!=F&&(F=F.clone(),F.y=b.y,F.height=g-b.y-b.height,null!=e?(F.x=e[S],F.width=e[S+1]-F.x,S==p.length-1&&S<e.length-2&&(F.width=m-F.x-b.x-b.width)):(F.x=B,B+=F.width,S==p.length-1?F.width=m-b.x-b.width-G:G+=F.width),F.alternateBounds=new mxRectangle(0,
+TableLayout.prototype.getRowLayout=function(b,e){var g=this.graph.model.getChildCells(b,!0),m=this.graph.getActualStartSize(b,!0);b=this.getSize(g,!0);e=e-m.x-m.width;var v=[];m=m.x;for(var p=0;p<g.length;p++){var A=this.graph.getCellGeometry(g[p]);null!=A&&(m+=(null!=A.alternateBounds?A.alternateBounds.width:A.width)*e/b,v.push(Math.round(m)))}return v};
+TableLayout.prototype.layoutRow=function(b,e,g,m){var v=this.graph.getModel(),p=v.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var A=b.x,G=0;null!=e&&(e=e.slice(),e.splice(0,0,b.x));for(var S=0;S<p.length;S++){var F=this.graph.getCellGeometry(p[S]);null!=F&&(F=F.clone(),F.y=b.y,F.height=g-b.y-b.height,null!=e?(F.x=e[S],F.width=e[S+1]-F.x,S==p.length-1&&S<e.length-2&&(F.width=m-F.x-b.x-b.width)):(F.x=A,A+=F.width,S==p.length-1?F.width=m-b.x-b.width-G:G+=F.width),F.alternateBounds=new mxRectangle(0,
0,F.width,F.height),v.setGeometry(p[S],F))}return G};
-TableLayout.prototype.execute=function(b){if(null!=b){var e=this.graph.getActualStartSize(b,!0),g=this.graph.getCellGeometry(b),m=this.graph.getCellStyle(b),v="1"==mxUtils.getValue(m,"resizeLastRow","0"),p="1"==mxUtils.getValue(m,"resizeLast","0");m="1"==mxUtils.getValue(m,"fixedRows","0");var B=this.graph.getModel(),G=0;B.beginUpdate();try{for(var S=g.height-e.y-e.height,F=g.width-e.x-e.width,P=B.getChildCells(b,!0),R=0;R<P.length;R++)B.setVisible(P[R],!0);var T=this.getSize(P,!1);if(0<S&&0<F&&0<
-P.length&&0<T){if(v){var c=this.graph.getCellGeometry(P[P.length-1]);null!=c&&(c=c.clone(),c.height=S-T+c.height,B.setGeometry(P[P.length-1],c))}var f=p?null:this.getRowLayout(P[0],F),k=[],A=e.y;for(R=0;R<P.length;R++)c=this.graph.getCellGeometry(P[R]),null!=c&&(c=c.clone(),c.x=e.x,c.width=F,c.y=Math.round(A),A=v||m?A+c.height:A+c.height/T*S,c.height=Math.round(A)-c.y,B.setGeometry(P[R],c)),G=Math.max(G,this.layoutRow(P[R],f,c.height,F,k));m&&S<T&&(g=g.clone(),g.height=A+e.height,B.setGeometry(b,
-g));p&&F<G+Graph.minTableColumnWidth&&(g=g.clone(),g.width=G+e.width+e.x+Graph.minTableColumnWidth,B.setGeometry(b,g));this.graph.visitTableCells(b,mxUtils.bind(this,function(z){B.setVisible(z.cell,z.actual.cell==z.cell);if(z.actual.cell!=z.cell){if(z.actual.row==z.row){var C=null!=z.geo.alternateBounds?z.geo.alternateBounds:z.geo;z.actual.geo.width+=C.width}z.actual.col==z.col&&(C=null!=z.geo.alternateBounds?z.geo.alternateBounds:z.geo,z.actual.geo.height+=C.height)}}))}else for(R=0;R<P.length;R++)B.setVisible(P[R],
-!1)}finally{B.endUpdate()}}};
+TableLayout.prototype.execute=function(b){if(null!=b){var e=this.graph.getActualStartSize(b,!0),g=this.graph.getCellGeometry(b),m=this.graph.getCellStyle(b),v="1"==mxUtils.getValue(m,"resizeLastRow","0"),p="1"==mxUtils.getValue(m,"resizeLast","0");m="1"==mxUtils.getValue(m,"fixedRows","0");var A=this.graph.getModel(),G=0;A.beginUpdate();try{for(var S=g.height-e.y-e.height,F=g.width-e.x-e.width,P=A.getChildCells(b,!0),R=0;R<P.length;R++)A.setVisible(P[R],!0);var T=this.getSize(P,!1);if(0<S&&0<F&&0<
+P.length&&0<T){if(v){var c=this.graph.getCellGeometry(P[P.length-1]);null!=c&&(c=c.clone(),c.height=S-T+c.height,A.setGeometry(P[P.length-1],c))}var f=p?null:this.getRowLayout(P[0],F),k=[],B=e.y;for(R=0;R<P.length;R++)c=this.graph.getCellGeometry(P[R]),null!=c&&(c=c.clone(),c.x=e.x,c.width=F,c.y=Math.round(B),B=v||m?B+c.height:B+c.height/T*S,c.height=Math.round(B)-c.y,A.setGeometry(P[R],c)),G=Math.max(G,this.layoutRow(P[R],f,c.height,F,k));m&&S<T&&(g=g.clone(),g.height=B+e.height,A.setGeometry(b,
+g));p&&F<G+Graph.minTableColumnWidth&&(g=g.clone(),g.width=G+e.width+e.x+Graph.minTableColumnWidth,A.setGeometry(b,g));this.graph.visitTableCells(b,mxUtils.bind(this,function(z){A.setVisible(z.cell,z.actual.cell==z.cell);if(z.actual.cell!=z.cell){if(z.actual.row==z.row){var C=null!=z.geo.alternateBounds?z.geo.alternateBounds:z.geo;z.actual.geo.width+=C.width}z.actual.col==z.col&&(C=null!=z.geo.alternateBounds?z.geo.alternateBounds:z.geo,z.actual.geo.height+=C.height)}}))}else for(R=0;R<P.length;R++)A.setVisible(P[R],
+!1)}finally{A.endUpdate()}}};
(function(){var b=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){b.apply(this,arguments);this.validEdges=[]};var e=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(R,T){T=null!=T?T:!0;var c=this.getState(R);null!=c&&T&&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=e.apply(this,
arguments);null!=c&&T&&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 R=null!=this.node?this.node.getElementsByTagName("path"):null;if(null!=
R)for(var T=0;T<R.length;T++)if("hidden"!=R[T].getAttribute("visibility"))return R[T];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 g=mxShape.prototype.paint;mxShape.prototype.paint=function(R){g.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var m=mxShape.prototype.createSvgCanvas;
mxShape.prototype.createSvgCanvas=function(R){R=m.apply(this,arguments);null!=this.state&&(R.adaptiveColors=this.state.view.graph.getAdaptiveColors());return R};var v=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(R,T){return v.apply(this,arguments)||null!=R.routedPoints&&null!=T.routedPoints&&!mxUtils.equalPoints(T.routedPoints,R.routedPoints)};var p=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(R){p.apply(this,arguments);
-this.graph.model.isEdge(R.cell)&&1!=R.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(R)};mxGraphView.prototype.updateLineJumps=function(R){var T=R.absolutePoints;if(Graph.lineJumpsEnabled){var c=null!=R.routedPoints,f=null;if(null!=T&&null!=this.validEdges&&"none"!==mxUtils.getValue(R.style,"jumpStyle","none")){var k=function(Y,fa,Z){var l=new mxPoint(fa,Z);l.type=Y;f.push(l);l=null!=R.routedPoints?R.routedPoints[f.length-1]:null;return null==l||l.type!=Y||l.x!=fa||l.y!=Z},A=.5*this.scale;
-c=!1;f=[];for(var z=0;z<T.length-1;z++){for(var C=T[z+1],I=T[z],L=[],K=T[z+2];z<T.length-2&&mxUtils.ptSegDistSq(I.x,I.y,K.x,K.y,C.x,C.y)<1*this.scale*this.scale;)C=K,z++,K=T[z+2];c=k(0,I.x,I.y)||c;for(var O=0;O<this.validEdges.length;O++){var da=this.validEdges[O],ea=da.absolutePoints;if(null!=ea&&mxUtils.intersects(R,da)&&"1"!=da.style.noJump){var ca=null;for(da=0;da<ea.length-1;da++){var W=ea[da+1],ma=ea[da];for(K=ea[da+2];da<ea.length-2&&mxUtils.ptSegDistSq(ma.x,ma.y,K.x,K.y,W.x,W.y)<1*this.scale*
-this.scale;)W=K,da++,K=ea[da+2];var la=mxUtils.intersection(I.x,I.y,C.x,C.y,ma.x,ma.y,W.x,W.y);if(null!=la&&(Math.abs(la.x-I.x)>A||Math.abs(la.y-I.y)>A)&&(Math.abs(la.x-C.x)>A||Math.abs(la.y-C.y)>A)&&(null==ca||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,ca.x,ca.y)>A||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,ma.x,ma.y)>A)&&(null==K||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,K.x,K.y)>A||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,W.x,W.y)>A)){K=la.x-I.x;ca=la.y-I.y;la={distSq:K*K+ca*ca,x:la.x,y:la.y};for(K=0;K<L.length;K++)if(L[K].distSq>
-la.distSq){L.splice(K,0,la);la=null;break}null==la||0!=L.length&&L[L.length-1].x===la.x&&L[L.length-1].y===la.y||L.push(la)}ca=ma}}}for(da=0;da<L.length;da++)c=k(1,L[da].x,L[da].y)||c}la=T[T.length-1];c=k(0,la.x,la.y)||c}R.routedPoints=f;return c}return!1};var B=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(R,T,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)B.apply(this,
-arguments);else{var f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,k=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,A=mxUtils.getValue(this.style,"jumpStyle","none"),z=!0,C=null,I=null,L=[],K=null;R.begin();for(var O=0;O<this.state.routedPoints.length;O++){var da=this.state.routedPoints[O],ea=new mxPoint(da.x/this.scale,da.y/this.scale);0==O?ea=T[0]:O==this.state.routedPoints.length-1&&(ea=T[T.length-1]);var ca=!1;
-if(null!=C&&1==da.type){var W=this.state.routedPoints[O+1];da=W.x/this.scale-ea.x;W=W.y/this.scale-ea.y;da=da*da+W*W;null==K&&(K=new mxPoint(ea.x-C.x,ea.y-C.y),I=Math.sqrt(K.x*K.x+K.y*K.y),0<I?(K.x=K.x*k/I,K.y=K.y*k/I):K=null);da>k*k&&0<I&&(da=C.x-ea.x,W=C.y-ea.y,da=da*da+W*W,da>k*k&&(ca=new mxPoint(ea.x-K.x,ea.y-K.y),da=new mxPoint(ea.x+K.x,ea.y+K.y),L.push(ca),this.addPoints(R,L,c,f,!1,null,z),L=0>Math.round(K.x)||0==Math.round(K.x)&&0>=Math.round(K.y)?1:-1,z=!1,"sharp"==A?(R.lineTo(ca.x-K.y*L,
-ca.y+K.x*L),R.lineTo(da.x-K.y*L,da.y+K.x*L),R.lineTo(da.x,da.y)):"line"==A?(R.moveTo(ca.x+K.y*L,ca.y-K.x*L),R.lineTo(ca.x-K.y*L,ca.y+K.x*L),R.moveTo(da.x-K.y*L,da.y+K.x*L),R.lineTo(da.x+K.y*L,da.y-K.x*L),R.moveTo(da.x,da.y)):"arc"==A?(L*=1.3,R.curveTo(ca.x-K.y*L,ca.y+K.x*L,da.x-K.y*L,da.y+K.x*L,da.x,da.y)):(R.moveTo(da.x,da.y),z=!0),L=[da],ca=!0))}else K=null;ca||(L.push(ea),C=ea)}this.addPoints(R,L,c,f,!1,null,z);R.stroke()}};var G=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=
-function(R,T,c,f){return null!=T&&"centerPerimeter"==T.style[mxConstants.STYLE_PERIMETER]?new mxPoint(T.getCenterX(),T.getCenterY()):G.apply(this,arguments)};var S=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(R,T,c,f){if(null==T||null==R||"1"!=T.style.snapToPoint&&"1"!=R.style.snapToPoint)S.apply(this,arguments);else{T=this.getTerminalPort(R,T,f);var k=this.getNextPoint(R,c,f),A=this.graph.isOrthogonal(R),z=mxUtils.toRadians(Number(T.style[mxConstants.STYLE_ROTATION]||
-"0")),C=new mxPoint(T.getCenterX(),T.getCenterY());if(0!=z){var I=Math.cos(-z),L=Math.sin(-z);k=mxUtils.getRotatedPoint(k,I,L,C)}I=parseFloat(R.style[mxConstants.STYLE_PERIMETER_SPACING]||0);I+=parseFloat(R.style[f?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);k=this.getPerimeterPoint(T,k,0==z&&A,I);0!=z&&(I=Math.cos(z),L=Math.sin(z),k=mxUtils.getRotatedPoint(k,I,L,C));R.setAbsoluteTerminalPoint(this.snapToAnchorPoint(R,T,c,f,k),f)}};mxGraphView.prototype.snapToAnchorPoint=
-function(R,T,c,f,k){if(null!=T&&null!=R){R=this.graph.getAllConnectionConstraints(T);f=c=null;if(null!=R)for(var A=0;A<R.length;A++){var z=this.graph.getConnectionPoint(T,R[A]);if(null!=z){var C=(z.x-k.x)*(z.x-k.x)+(z.y-k.y)*(z.y-k.y);if(null==f||C<f)c=z,f=C}}null!=c&&(k=c)}return k};var F=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(R,T,c){var f=F.apply(this,arguments);"1"==R.getAttribute("placeholders")&&null!=c.state&&(f=c.state.view.graph.replacePlaceholders(c.state.cell,
+this.graph.model.isEdge(R.cell)&&1!=R.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(R)};mxGraphView.prototype.updateLineJumps=function(R){var T=R.absolutePoints;if(Graph.lineJumpsEnabled){var c=null!=R.routedPoints,f=null;if(null!=T&&null!=this.validEdges&&"none"!==mxUtils.getValue(R.style,"jumpStyle","none")){var k=function(Y,fa,Z){var l=new mxPoint(fa,Z);l.type=Y;f.push(l);l=null!=R.routedPoints?R.routedPoints[f.length-1]:null;return null==l||l.type!=Y||l.x!=fa||l.y!=Z},B=.5*this.scale;
+c=!1;f=[];for(var z=0;z<T.length-1;z++){for(var C=T[z+1],I=T[z],L=[],K=T[z+2];z<T.length-2&&mxUtils.ptSegDistSq(I.x,I.y,K.x,K.y,C.x,C.y)<1*this.scale*this.scale;)C=K,z++,K=T[z+2];c=k(0,I.x,I.y)||c;for(var O=0;O<this.validEdges.length;O++){var da=this.validEdges[O],ea=da.absolutePoints;if(null!=ea&&mxUtils.intersects(R,da)&&"1"!=da.style.noJump){var ca=null;for(da=0;da<ea.length-1;da++){var V=ea[da+1],ma=ea[da];for(K=ea[da+2];da<ea.length-2&&mxUtils.ptSegDistSq(ma.x,ma.y,K.x,K.y,V.x,V.y)<1*this.scale*
+this.scale;)V=K,da++,K=ea[da+2];var la=mxUtils.intersection(I.x,I.y,C.x,C.y,ma.x,ma.y,V.x,V.y);if(null!=la&&(Math.abs(la.x-I.x)>B||Math.abs(la.y-I.y)>B)&&(Math.abs(la.x-C.x)>B||Math.abs(la.y-C.y)>B)&&(null==ca||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,ca.x,ca.y)>B||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,ma.x,ma.y)>B)&&(null==K||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,K.x,K.y)>B||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,V.x,V.y)>B)){K=la.x-I.x;ca=la.y-I.y;la={distSq:K*K+ca*ca,x:la.x,y:la.y};for(K=0;K<L.length;K++)if(L[K].distSq>
+la.distSq){L.splice(K,0,la);la=null;break}null==la||0!=L.length&&L[L.length-1].x===la.x&&L[L.length-1].y===la.y||L.push(la)}ca=ma}}}for(da=0;da<L.length;da++)c=k(1,L[da].x,L[da].y)||c}la=T[T.length-1];c=k(0,la.x,la.y)||c}R.routedPoints=f;return c}return!1};var A=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(R,T,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)A.apply(this,
+arguments);else{var f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,k=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,B=mxUtils.getValue(this.style,"jumpStyle","none"),z=!0,C=null,I=null,L=[],K=null;R.begin();for(var O=0;O<this.state.routedPoints.length;O++){var da=this.state.routedPoints[O],ea=new mxPoint(da.x/this.scale,da.y/this.scale);0==O?ea=T[0]:O==this.state.routedPoints.length-1&&(ea=T[T.length-1]);var ca=!1;
+if(null!=C&&1==da.type){var V=this.state.routedPoints[O+1];da=V.x/this.scale-ea.x;V=V.y/this.scale-ea.y;da=da*da+V*V;null==K&&(K=new mxPoint(ea.x-C.x,ea.y-C.y),I=Math.sqrt(K.x*K.x+K.y*K.y),0<I?(K.x=K.x*k/I,K.y=K.y*k/I):K=null);da>k*k&&0<I&&(da=C.x-ea.x,V=C.y-ea.y,da=da*da+V*V,da>k*k&&(ca=new mxPoint(ea.x-K.x,ea.y-K.y),da=new mxPoint(ea.x+K.x,ea.y+K.y),L.push(ca),this.addPoints(R,L,c,f,!1,null,z),L=0>Math.round(K.x)||0==Math.round(K.x)&&0>=Math.round(K.y)?1:-1,z=!1,"sharp"==B?(R.lineTo(ca.x-K.y*L,
+ca.y+K.x*L),R.lineTo(da.x-K.y*L,da.y+K.x*L),R.lineTo(da.x,da.y)):"line"==B?(R.moveTo(ca.x+K.y*L,ca.y-K.x*L),R.lineTo(ca.x-K.y*L,ca.y+K.x*L),R.moveTo(da.x-K.y*L,da.y+K.x*L),R.lineTo(da.x+K.y*L,da.y-K.x*L),R.moveTo(da.x,da.y)):"arc"==B?(L*=1.3,R.curveTo(ca.x-K.y*L,ca.y+K.x*L,da.x-K.y*L,da.y+K.x*L,da.x,da.y)):(R.moveTo(da.x,da.y),z=!0),L=[da],ca=!0))}else K=null;ca||(L.push(ea),C=ea)}this.addPoints(R,L,c,f,!1,null,z);R.stroke()}};var G=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=
+function(R,T,c,f){return null!=T&&"centerPerimeter"==T.style[mxConstants.STYLE_PERIMETER]?new mxPoint(T.getCenterX(),T.getCenterY()):G.apply(this,arguments)};var S=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(R,T,c,f){if(null==T||null==R||"1"!=T.style.snapToPoint&&"1"!=R.style.snapToPoint)S.apply(this,arguments);else{T=this.getTerminalPort(R,T,f);var k=this.getNextPoint(R,c,f),B=this.graph.isOrthogonal(R),z=mxUtils.toRadians(Number(T.style[mxConstants.STYLE_ROTATION]||
+"0")),C=new mxPoint(T.getCenterX(),T.getCenterY());if(0!=z){var I=Math.cos(-z),L=Math.sin(-z);k=mxUtils.getRotatedPoint(k,I,L,C)}I=parseFloat(R.style[mxConstants.STYLE_PERIMETER_SPACING]||0);I+=parseFloat(R.style[f?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);k=this.getPerimeterPoint(T,k,0==z&&B,I);0!=z&&(I=Math.cos(z),L=Math.sin(z),k=mxUtils.getRotatedPoint(k,I,L,C));R.setAbsoluteTerminalPoint(this.snapToAnchorPoint(R,T,c,f,k),f)}};mxGraphView.prototype.snapToAnchorPoint=
+function(R,T,c,f,k){if(null!=T&&null!=R){R=this.graph.getAllConnectionConstraints(T);f=c=null;if(null!=R)for(var B=0;B<R.length;B++){var z=this.graph.getConnectionPoint(T,R[B]);if(null!=z){var C=(z.x-k.x)*(z.x-k.x)+(z.y-k.y)*(z.y-k.y);if(null==f||C<f)c=z,f=C}}null!=c&&(k=c)}return k};var F=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(R,T,c){var f=F.apply(this,arguments);"1"==R.getAttribute("placeholders")&&null!=c.state&&(f=c.state.view.graph.replacePlaceholders(c.state.cell,
f));return f};var P=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(R){if(null!=R.style&&"undefined"!==typeof pako){var T=mxUtils.getValue(R.style,mxConstants.STYLE_SHAPE,null);if(null!=T&&"string"===typeof T&&"stencil("==T.substring(0,8))try{var c=T.substring(8,T.length-1),f=mxUtils.parseXml(Graph.decompress(c));return new mxShape(new mxStencil(f.documentElement))}catch(k){null!=window.console&&console.log("Error in shape: "+k)}}return P.apply(this,arguments)}})();
mxStencilRegistry.libraries={};mxStencilRegistry.dynamicLoading=!0;mxStencilRegistry.allowEval=!0;mxStencilRegistry.packages=[];mxStencilRegistry.filesLoaded={};mxStencilRegistry.isFileLoaded=function(b){return!mxClient.IS_FF&&mxStencilRegistry.filesLoaded[b]};mxStencilRegistry.setFileLoaded=function(b){mxStencilRegistry.filesLoaded[b]=!0};
mxStencilRegistry.getStencil=function(b){var e=mxStencilRegistry.stencils[b];if(null==e&&null==mxCellRenderer.defaultShapes[b]&&mxStencilRegistry.dynamicLoading){var g=mxStencilRegistry.getBasenameForStencil(b);if(null!=g){e=mxStencilRegistry.libraries[g];if(null!=e){if(null==mxStencilRegistry.packages[g]){for(var m=0;m<e.length;m++){var v=e[m];if(!mxStencilRegistry.isFileLoaded(v))if(mxStencilRegistry.setFileLoaded(v),".xml"==v.toLowerCase().substring(v.length-4,v.length))mxStencilRegistry.loadStencilSet(v,
-null);else if(".js"==v.toLowerCase().substring(v.length-3,v.length))try{if(mxStencilRegistry.allowEval){var p=mxUtils.load(v);null!=p&&200<=p.getStatus()&&299>=p.getStatus()&&eval.call(window,p.getText())}}catch(B){null!=window.console&&console.log("error in getStencil:",b,g,e,v,B)}}mxStencilRegistry.packages[g]=1}}else g=g.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+g+".xml",null);e=mxStencilRegistry.stencils[b]}}return e};
+null);else if(".js"==v.toLowerCase().substring(v.length-3,v.length))try{if(mxStencilRegistry.allowEval){var p=mxUtils.load(v);null!=p&&200<=p.getStatus()&&299>=p.getStatus()&&eval.call(window,p.getText())}}catch(A){null!=window.console&&console.log("error in getStencil:",b,g,e,v,A)}}mxStencilRegistry.packages[g]=1}}else g=g.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+g+".xml",null);e=mxStencilRegistry.stencils[b]}}return e};
mxStencilRegistry.getBasenameForStencil=function(b){var e=null;if(null!=b&&"string"===typeof b&&(b=b.split("."),0<b.length&&"mxgraph"==b[0])){e=b[1];for(var g=2;g<b.length-1;g++)e+="/"+b[g]}return e};
-mxStencilRegistry.loadStencilSet=function(b,e,g,m){var v=mxStencilRegistry.packages[b];if(null!=g&&g||null==v){var p=!1;if(null==v)try{if(m){mxStencilRegistry.loadStencil(b,mxUtils.bind(this,function(B){null!=B&&null!=B.documentElement&&(mxStencilRegistry.packages[b]=B,p=!0,mxStencilRegistry.parseStencilSet(B.documentElement,e,p))}));return}v=mxStencilRegistry.loadStencil(b);mxStencilRegistry.packages[b]=v;p=!0}catch(B){null!=window.console&&console.log("error in loadStencilSet:",b,B)}null!=v&&null!=
+mxStencilRegistry.loadStencilSet=function(b,e,g,m){var v=mxStencilRegistry.packages[b];if(null!=g&&g||null==v){var p=!1;if(null==v)try{if(m){mxStencilRegistry.loadStencil(b,mxUtils.bind(this,function(A){null!=A&&null!=A.documentElement&&(mxStencilRegistry.packages[b]=A,p=!0,mxStencilRegistry.parseStencilSet(A.documentElement,e,p))}));return}v=mxStencilRegistry.loadStencil(b);mxStencilRegistry.packages[b]=v;p=!0}catch(A){null!=window.console&&console.log("error in loadStencilSet:",b,A)}null!=v&&null!=
v.documentElement&&mxStencilRegistry.parseStencilSet(v.documentElement,e,p)}};mxStencilRegistry.loadStencil=function(b,e){if(null!=e)mxUtils.get(b,mxUtils.bind(this,function(g){e(200<=g.getStatus()&&299>=g.getStatus()?g.getXml():null)}),mxUtils.bind(this,function(g){e(null)}));else return mxUtils.load(b).getXml()};mxStencilRegistry.parseStencilSets=function(b){for(var e=0;e<b.length;e++)mxStencilRegistry.parseStencilSet(mxUtils.parseXml(b[e]).documentElement)};
-mxStencilRegistry.parseStencilSet=function(b,e,g){if("stencils"==b.nodeName)for(var m=b.firstChild;null!=m;)"shapes"==m.nodeName&&mxStencilRegistry.parseStencilSet(m,e,g),m=m.nextSibling;else{g=null!=g?g:!0;m=b.firstChild;var v="";b=b.getAttribute("name");for(null!=b&&(v=b+".");null!=m;){if(m.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=m.getAttribute("name"),null!=b)){v=v.toLowerCase();var p=b.replace(/ /g,"_");g&&mxStencilRegistry.addStencil(v+p.toLowerCase(),new mxStencil(m));if(null!=e){var B=m.getAttribute("w"),
-G=m.getAttribute("h");B=null==B?80:parseInt(B,10);G=null==G?80:parseInt(G,10);e(v,p,b,B,G)}}m=m.nextSibling}}};
+mxStencilRegistry.parseStencilSet=function(b,e,g){if("stencils"==b.nodeName)for(var m=b.firstChild;null!=m;)"shapes"==m.nodeName&&mxStencilRegistry.parseStencilSet(m,e,g),m=m.nextSibling;else{g=null!=g?g:!0;m=b.firstChild;var v="";b=b.getAttribute("name");for(null!=b&&(v=b+".");null!=m;){if(m.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=m.getAttribute("name"),null!=b)){v=v.toLowerCase();var p=b.replace(/ /g,"_");g&&mxStencilRegistry.addStencil(v+p.toLowerCase(),new mxStencil(m));if(null!=e){var A=m.getAttribute("w"),
+G=m.getAttribute("h");A=null==A?80:parseInt(A,10);G=null==G?80:parseInt(G,10);e(v,p,b,A,G)}}m=m.nextSibling}}};
"undefined"!==typeof mxVertexHandler&&function(){function b(){var t=document.createElement("div");t.className="geHint";t.style.whiteSpace="nowrap";t.style.position="absolute";return t}function e(t,N){switch(N){case mxConstants.POINTS:return t;case mxConstants.MILLIMETERS:return(t/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(t/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(t/mxConstants.PIXELS_PER_INCH).toFixed(3)}}mxConstants.HANDLE_FILLCOLOR="#29b6f2";
mxConstants.HANDLE_STROKECOLOR="#0088cf";mxConstants.VERTEX_SELECTION_COLOR="#00a8ff";mxConstants.OUTLINE_COLOR="#00a8ff";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#99ccff";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#00a8ff";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.EDGE_SELECTION_COLOR="#00a8ff";mxConstants.DEFAULT_VALID_COLOR="#00a8ff";mxConstants.LABEL_HANDLE_FILLCOLOR="#cee7ff";mxConstants.GUIDE_COLOR="#0088cf";mxConstants.HIGHLIGHT_STROKEWIDTH=5;mxConstants.HIGHLIGHT_OPACITY=50;mxConstants.HIGHLIGHT_SIZE=
5;mxWindow.prototype.closeImage=Graph.createSvgImage(18,10,'<path d="M 5 1 L 13 9 M 13 1 L 5 9" stroke="#707070" stroke-width="2"/>').src;mxWindow.prototype.minimizeImage=Graph.createSvgImage(14,10,'<path d="M 3 7 L 7 3 L 11 7" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.normalizeImage=Graph.createSvgImage(14,10,'<path d="M 3 3 L 7 7 L 11 3" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.resizeImage=Graph.createSvgImage(10,10,'<path d="Z" stroke="#C0C0C0" stroke-width="1" fill="none"/>').src;
mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(t){return!mxEvent.isAltDown(t)||mxEvent.isShiftDown(t)};var g=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(t){return g.apply(this,arguments)||this.graph.isTableRow(t)||this.graph.isTableCell(t)};var m=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
function(t){return m.apply(this,arguments)||this.graph.isEdgeIgnored(t)};var v=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(t){return this.graph.isCloneEvent(t)!=v.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var t=new mxEllipse(null,this.highlightColor,this.highlightColor,0);t.opacity=mxConstants.HIGHLIGHT_OPACITY;return t};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
"crosshair";mxConnectionHandler.prototype.createEdgeState=function(t){t=this.graph.createCurrentEdgeStyle();t=this.graph.createEdge(null,null,null,null,null,t);t=new mxCellState(this.graph.view,t,this.graph.getCellStyle(t));for(var N in this.graph.currentEdgeStyle)t.style[N]=this.graph.currentEdgeStyle[N];if(null!=this.previous){var Q=this.previous.style.newEdgeStyle;if(null!=Q)try{var X=JSON.parse(Q);for(N in X)t.style[N]=X[N]}catch(ia){}}t.style=this.graph.postProcessCellStyle(t.cell,t.style);return t};
-var p=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var t=p.apply(this,arguments);t.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return t};mxConnectionHandler.prototype.updatePreview=function(t){};var B=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var t=B.apply(this,arguments),N=t.getCell;t.getCell=mxUtils.bind(this,function(Q){var X=N.apply(this,arguments);this.error=null;return X});
+var p=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var t=p.apply(this,arguments);t.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return t};mxConnectionHandler.prototype.updatePreview=function(t){};var A=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var t=A.apply(this,arguments),N=t.getCell;t.getCell=mxUtils.bind(this,function(Q){var X=N.apply(this,arguments);this.error=null;return X});
return t};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var t="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",N="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),Q=0;Q<N.length;Q++)null!=
this.currentEdgeStyle[N[Q]]&&(t+=N[Q]+"="+this.currentEdgeStyle[N[Q]]+";");null!=this.currentEdgeStyle.orthogonalLoop?t+="orthogonalLoop="+this.currentEdgeStyle.orthogonalLoop+";":null!=Graph.prototype.defaultEdgeStyle.orthogonalLoop&&(t+="orthogonalLoop="+Graph.prototype.defaultEdgeStyle.orthogonalLoop+";");null!=this.currentEdgeStyle.jettySize?t+="jettySize="+this.currentEdgeStyle.jettySize+";":null!=Graph.prototype.defaultEdgeStyle.jettySize&&(t+="jettySize="+Graph.prototype.defaultEdgeStyle.jettySize+
";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(t+="elbow="+this.currentEdgeStyle.elbow+";");return t=null!=this.currentEdgeStyle.html?t+("html="+this.currentEdgeStyle.html+";"):t+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var t=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=
@@ -2632,7 +2647,7 @@ this.popupMenuHandler.popup(pa.getX()+va.x+1,pa.getY()+va.y+1,ta,pa.getEvent())}
"";window.getSelection?t=window.getSelection():document.getSelection?t=document.getSelection():document.selection&&(t=document.selection.createRange().text);return""!=t};mxCellEditor.prototype.insertTab=function(t){var N=this.textarea.ownerDocument.defaultView.getSelection(),Q=N.getRangeAt(0);t=Graph.createTabNode(t);Q.insertNode(t);Q.setStartAfter(t);Q.setEndAfter(t);N.removeAllRanges();N.addRange(Q)};mxCellEditor.prototype.alignText=function(t,N){var Q=this.graph.getView().getState(this.editingCell);
if(null!=Q){Q=mxUtils.getValue(Q.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var X=null!=Q&&"vertical-"==Q.substring(0,9),ia=null!=N&&mxEvent.isShiftDown(N);if(ia||null!=window.getSelection&&null!=window.getSelection().containsNode){var ka=!0;this.graph.processElements(this.textarea,function(pa){ia||X||window.getSelection().containsNode(pa,!0)?(pa.removeAttribute("align"),pa.style.textAlign=null):ka=!1});(ka||X)&&this.graph.cellEditor.setAlign(t)}X||document.execCommand("justify"+
t.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var t=window.getSelection();if(t.getRangeAt&&t.rangeCount){for(var N=[],Q=0,X=t.rangeCount;Q<X;++Q)N.push(t.getRangeAt(Q));return N}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(t){try{if(t)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var N=0,Q=t.length;N<
-Q;++N)sel.addRange(t[N])}else document.selection&&t.select&&t.select()}catch(X){}};var A=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(t){null!=t.text&&(t.text.replaceLinefeeds="0"!=mxUtils.getValue(t.style,"nl2Br","1"));A.apply(this,arguments)};var z=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(t,N){this.isKeepFocusEvent(t)||!mxEvent.isAltDown(t.getEvent())?z.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=
+Q;++N)sel.addRange(t[N])}else document.selection&&t.select&&t.select()}catch(X){}};var B=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(t){null!=t.text&&(t.text.replaceLinefeeds="0"!=mxUtils.getValue(t.style,"nl2Br","1"));B.apply(this,arguments)};var z=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(t,N){this.isKeepFocusEvent(t)||!mxEvent.isAltDown(t.getEvent())?z.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=
function(t){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var C=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(t,N){t=this.graph.getStartEditingCell(t,N);C.apply(this,arguments);var Q=this.graph.view.getState(t);this.textarea.className=null!=Q&&1==Q.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.textarea.style.colorScheme="none"==this.graph.getAdaptiveColors()?
"light":"";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(t)};mxCellEditor.prototype.toggleViewMode=function(){var t=this.graph.view.getState(this.editingCell);if(null!=t){var N=null!=t&&"0"!=mxUtils.getValue(t.style,"nl2Br","1"),Q=this.saveSelection();if(this.codeViewMode){Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);xa=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<xa.length&&"\n"==xa.charAt(xa.length-1)&&(xa=xa.substring(0,
xa.length-1));xa=Graph.sanitizeHtml(N?xa.replace(/\n/g,"<br/>"):xa,!0);this.textarea.className="mxCellEditor geContentEditable";ta=mxUtils.getValue(t.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);N=mxUtils.getValue(t.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var X=mxUtils.getValue(t.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),ia=(mxUtils.getValue(t.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,ka=(mxUtils.getValue(t.style,
@@ -2653,7 +2668,7 @@ this.livePreviewActive)){null==this.hint&&(this.hint=b(),this.graph.container.ap
Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var O=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=function(t,N){O.apply(this,arguments);var Q=this.graph.getCellStyle(t);if(null==Q.childLayout){var X=this.graph.model.getParent(t),ia=null!=X?this.graph.getCellGeometry(X):null;if(null!=ia&&(Q=this.graph.getCellStyle(X),"stackLayout"==Q.childLayout)){var ka=
parseFloat(mxUtils.getValue(Q,"stackBorder",mxStackLayout.prototype.border));Q="1"==mxUtils.getValue(Q,"horizontalStack","1");var pa=this.graph.getActualStartSize(X);ia=ia.clone();Q?ia.height=N.height+pa.y+pa.height+2*ka:ia.width=N.width+pa.x+pa.width+2*ka;this.graph.model.setGeometry(X,ia)}}};var da=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function t(xa){Q.get(xa)||(Q.put(xa,!0),ia.push(xa))}for(var N=da.apply(this,
arguments),Q=new mxDictionary,X=this.graph.model,ia=[],ka=0;ka<N.length;ka++){var pa=N[ka];this.graph.isTableCell(pa)?t(X.getParent(X.getParent(pa))):this.graph.isTableRow(pa)&&t(X.getParent(pa));t(pa)}return ia};var ea=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=function(t){return ea.apply(this,arguments)&&!mxEvent.isControlDown(t.getEvent())&&!mxEvent.isShiftDown(t.getEvent())};var ca=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=
-function(){return ca.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var W=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=function(t){var N=W.apply(this,arguments);N.stroke="#C0C0C0";N.strokewidth=1;return N};var ma=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=
+function(){return ca.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var V=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=function(t){var N=V.apply(this,arguments);N.stroke="#C0C0C0";N.strokewidth=1;return N};var ma=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=
function(t){var N=ma.apply(this,arguments);N.stroke="#C0C0C0";N.strokewidth=1;return N};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var t=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+t.x/2,this.bounds.y+this.rotationHandleVSpacing-t.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(t,N){return this.graph.isRecursiveVertexResize(t)&&!mxEvent.isAltDown(N.getEvent())};
mxVertexHandler.prototype.isCenteredEvent=function(t,N){return mxEvent.isControlDown(N.getEvent())||mxEvent.isMetaDown(N.getEvent())};var la=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return la.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?
this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var Y=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return Y.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};var fa=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(t){return t.tableHandle||fa.apply(this,arguments)&&
@@ -2677,7 +2692,7 @@ t=this.graph.getLinkForCell(this.state.cell);N=this.graph.getLinksForState(this.
this.customHandles[X]&&null!=this.customHandles[X].shape&&null!=this.customHandles[X].shape.bounds){var ia=this.customHandles[X].shape.bounds,ka=ia.getCenterX(),pa=ia.getCenterY();if(Math.abs(this.state.x-ka)<ia.width/2||Math.abs(this.state.y-pa)<ia.height/2||Math.abs(this.state.x+this.state.width-ka)<ia.width/2||Math.abs(this.state.y+this.state.height-pa)<ia.height/2){Q=!0;break}}Q&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(N/=2,this.graph.isTable(this.state.cell)&&(N+=7),t.x=
this.sizers[0].bounds.width+N,t.y=this.sizers[0].bounds.height+N):t=J.apply(this,arguments);return t};mxVertexHandler.prototype.updateHint=function(t){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{t=this.state.view.scale;var N=this.state.view.unit;this.hint.innerHTML=e(this.roundLength(this.bounds.width/t),N)+" x "+e(this.roundLength(this.bounds.height/
t),N)}t=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==t&&(t=this.bounds);this.hint.style.left=t.x+Math.round((t.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=t.y+t.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display=
-"")};var V=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){V.apply(this,arguments);var t=this.graph.getLinkForCell(this.state.cell),N=this.graph.getLinksForState(this.state);this.updateLinkHint(t,N)};var aa=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(t,N){aa.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};
+"")};var W=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){W.apply(this,arguments);var t=this.graph.getLinkForCell(this.state.cell),N=this.graph.getLinksForState(this.state);this.updateLinkHint(t,N)};var aa=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(t,N){aa.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};
var ba=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(t,N){ba.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(t,N,Q){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));var X=this.graph.view.translate,ia=this.graph.view.scale,ka=this.roundLength(N.x/ia-X.x);X=this.roundLength(N.y/ia-X.y);var pa=
this.graph.view.unit;this.hint.innerHTML=e(ka,pa)+", "+e(X,pa);this.hint.style.visibility="visible";null!=Q&&(Q.view.updateEdgeBounds(Q),this.hint.innerHTML+=" ("+(pa==mxConstants.POINTS?Math.round(Q.length/ia):e(Q.length/ia,pa))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(Q=this.constraintHandler.currentConstraint.point,this.hint.innerHTML="["+Math.round(100*Q.x)+"%, "+Math.round(100*
Q.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(t.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(t.getGraphY(),N.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');
@@ -2721,11 +2736,11 @@ mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=th
this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,N=null!=this.state.text?this.state.text.boundingBox:null,null==Q&&(Q=this.state),Q=Q.y+Q.height,null!=N&&(Q=Math.max(Q,N.y+N.height)),this.linkHint.style.left=t.x+t.width/2+"px",this.linkHint.style.top=Math.round(Q+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var Wa=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){Wa.apply(this,arguments);
this.destroyMoveHandles();this.destroyCornerHandles();null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var Ia=mxEdgeHandler.prototype.redrawHandles;
mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(Ia.apply(this),null!=this.state&&null!=this.linkHint)){var t=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(t=new mxRectangle(t.x,t.y,t.width,t.height),t.add(this.state.text.bounds));this.linkHint.style.left=t.x+t.width/2+"px";this.linkHint.style.top=Math.round(t.y+t.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var Xa=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=
-function(){Xa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Pa=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Pa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(d,n,y){mxShape.call(this);this.line=d;this.stroke=n;this.strokewidth=null!=y?y:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function m(){mxCylinder.call(this)}function v(){mxConnector.call(this)}function p(){mxCylinder.call(this)}function B(){mxActor.call(this)}function G(){mxCylinder.call(this)}function S(){mxCylinder.call(this)}function F(){mxCylinder.call(this)}function P(){mxCylinder.call(this)}function R(){mxShape.call(this)}
-function T(){mxShape.call(this)}function c(d,n,y,q){mxShape.call(this);this.bounds=d;this.fill=n;this.stroke=y;this.strokewidth=null!=q?q:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function A(){mxCylinder.call(this)}function z(){mxActor.call(this)}function C(){mxActor.call(this)}function I(){mxActor.call(this)}function L(){mxActor.call(this)}function K(){mxActor.call(this)}function O(){mxActor.call(this)}function da(){mxActor.call(this)}function ea(d,n){this.canvas=d;this.canvas.setLineJoin("round");
+function(){Xa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Pa=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Pa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(d,n,y){mxShape.call(this);this.line=d;this.stroke=n;this.strokewidth=null!=y?y:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function m(){mxCylinder.call(this)}function v(){mxConnector.call(this)}function p(){mxCylinder.call(this)}function A(){mxActor.call(this)}function G(){mxCylinder.call(this)}function S(){mxCylinder.call(this)}function F(){mxCylinder.call(this)}function P(){mxCylinder.call(this)}function R(){mxShape.call(this)}
+function T(){mxShape.call(this)}function c(d,n,y,q){mxShape.call(this);this.bounds=d;this.fill=n;this.stroke=y;this.strokewidth=null!=q?q:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function B(){mxCylinder.call(this)}function z(){mxActor.call(this)}function C(){mxActor.call(this)}function I(){mxActor.call(this)}function L(){mxActor.call(this)}function K(){mxActor.call(this)}function O(){mxActor.call(this)}function da(){mxActor.call(this)}function ea(d,n){this.canvas=d;this.canvas.setLineJoin("round");
this.canvas.setLineCap("round");this.defaultVariation=n;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,ea.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,ea.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,ea.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,ea.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=
-mxUtils.bind(this,ea.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,ea.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function W(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function la(){mxActor.call(this)}function Y(){mxActor.call(this)}function fa(){mxRectangleShape.call(this)}function Z(){mxRectangleShape.call(this)}function l(){mxCylinder.call(this)}function u(){mxShape.call(this)}function H(){mxShape.call(this)}function U(){mxEllipse.call(this)}
-function J(){mxShape.call(this)}function V(){mxShape.call(this)}function aa(){mxRectangleShape.call(this)}function ba(){mxShape.call(this)}function ja(){mxShape.call(this)}function oa(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function ua(){mxCylinder.call(this)}function za(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function Ca(){mxDoubleEllipse.call(this)}function La(){mxDoubleEllipse.call(this)}function sa(){mxArrowConnector.call(this);
+mxUtils.bind(this,ea.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,ea.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function V(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function la(){mxActor.call(this)}function Y(){mxActor.call(this)}function fa(){mxRectangleShape.call(this)}function Z(){mxRectangleShape.call(this)}function l(){mxCylinder.call(this)}function u(){mxShape.call(this)}function H(){mxShape.call(this)}function U(){mxEllipse.call(this)}
+function J(){mxShape.call(this)}function W(){mxShape.call(this)}function aa(){mxRectangleShape.call(this)}function ba(){mxShape.call(this)}function ja(){mxShape.call(this)}function oa(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function ua(){mxCylinder.call(this)}function za(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function Ca(){mxDoubleEllipse.call(this)}function La(){mxDoubleEllipse.call(this)}function sa(){mxArrowConnector.call(this);
this.spacing=0}function Aa(){mxArrowConnector.call(this);this.spacing=0}function Ea(){mxActor.call(this)}function Ka(){mxRectangleShape.call(this)}function Ma(){mxActor.call(this)}function ya(){mxActor.call(this)}function Wa(){mxActor.call(this)}function Ia(){mxActor.call(this)}function Xa(){mxActor.call(this)}function Pa(){mxActor.call(this)}function t(){mxActor.call(this)}function N(){mxActor.call(this)}function Q(){mxActor.call(this)}function X(){mxActor.call(this)}function ia(){mxEllipse.call(this)}
function ka(){mxEllipse.call(this)}function pa(){mxEllipse.call(this)}function xa(){mxRhombus.call(this)}function ta(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Da(){mxEllipse.call(this)}function Na(){mxEllipse.call(this)}function Ya(){mxActor.call(this)}function Za(){mxActor.call(this)}function ab(){mxActor.call(this)}function Ra(d,n,y,q){mxShape.call(this);this.bounds=d;this.fill=n;this.stroke=y;this.strokewidth=null!=q?q:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
!0;this.indent=2;this.rectOutline="single"}function Oa(){mxConnector.call(this)}function kb(d,n,y,q,x,D,E,ha,M,wa){E+=M;var na=q.clone();q.x-=x*(2*E+M);q.y-=D*(2*E+M);x*=E+M;D*=E+M;return function(){d.ellipse(na.x-x-E,na.y-D-E,2*E,2*E);wa?d.fillAndStroke():d.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var d=null;if(null!=this.line)for(var n=0;n<this.line.length;n++){var y=this.line[n];null!=y&&(y=new mxRectangle(y.x,y.y,this.strokewidth,this.strokewidth),null==
@@ -2736,9 +2751,9 @@ D,E,n+q/2,y+x/2);s=this.scale;n=this.bounds.x/s;y=this.bounds.y/s;q=this.bounds.
d.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",e);mxUtils.extend(g,e);g.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",g);mxUtils.extend(m,mxCylinder);m.prototype.size=20;m.prototype.darkOpacity=0;m.prototype.darkOpacity2=0;m.prototype.paintVertexShape=function(d,n,y,q,x){var D=Math.max(0,Math.min(q,Math.min(x,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),E=Math.max(-1,Math.min(1,
parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),ha=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));d.translate(n,y);d.begin();d.moveTo(0,0);d.lineTo(q-D,0);d.lineTo(q,D);d.lineTo(q,x);d.lineTo(D,x);d.lineTo(0,x-D);d.lineTo(0,0);d.close();d.end();d.fillAndStroke();this.outline||(d.setShadow(!1),0!=E&&(d.setFillAlpha(Math.abs(E)),d.setFillColor(0>E?"#FFFFFF":"#000000"),d.begin(),d.moveTo(0,0),d.lineTo(q-D,0),d.lineTo(q,D),
d.lineTo(D,D),d.close(),d.fill()),0!=ha&&(d.setFillAlpha(Math.abs(ha)),d.setFillColor(0>ha?"#FFFFFF":"#000000"),d.begin(),d.moveTo(0,0),d.lineTo(D,D),d.lineTo(D,x),d.lineTo(0,x-D),d.close(),d.fill()),d.begin(),d.moveTo(D,x),d.lineTo(D,D),d.lineTo(0,0),d.moveTo(D,D),d.lineTo(q,D),d.end(),d.stroke())};m.prototype.getLabelMargins=function(d){return mxUtils.getValue(this.style,"boundedLbl",!1)?(d=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(d,d,0,0)):null};mxCellRenderer.registerShape("cube",
-m);var cb=Math.tan(mxUtils.toRadians(30)),$a=(.5-cb)/2;mxCellRenderer.registerShape("isoRectangle",B);mxUtils.extend(v,mxConnector);v.prototype.paintEdgeShape=function(d,n){var y=this.createMarker(d,n,!0),q=this.createMarker(d,n,!1);d.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&d.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);d.setShadow(!1);d.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
+m);var cb=Math.tan(mxUtils.toRadians(30)),$a=(.5-cb)/2;mxCellRenderer.registerShape("isoRectangle",A);mxUtils.extend(v,mxConnector);v.prototype.paintEdgeShape=function(d,n){var y=this.createMarker(d,n,!0),q=this.createMarker(d,n,!1);d.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&d.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);d.setShadow(!1);d.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
arguments);d.setStrokeColor(this.stroke);d.setFillColor(this.stroke);d.setDashed(!1);null!=y&&y();null!=q&&q()};mxCellRenderer.registerShape("wire",v);mxUtils.extend(p,mxCylinder);p.prototype.size=6;p.prototype.paintVertexShape=function(d,n,y,q,x){d.setFillColor(this.stroke);var D=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;d.ellipse(n+.5*(q-D),y+.5*(x-D),D,D);d.fill();d.setFillColor(mxConstants.NONE);d.rect(n,y,q,x);d.fill()};mxCellRenderer.registerShape("waypoint",
-p);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.redrawPath=function(d,n,y,q,x){n=Math.min(q,x/cb);d.translate((q-n)/2,(x-n)/2+n/4);d.moveTo(0,.25*n);d.lineTo(.5*n,n*$a);d.lineTo(n,.25*n);d.lineTo(.5*n,(.5-$a)*n);d.lineTo(0,.25*n);d.close();d.end()};mxCellRenderer.registerShape("isoRectangle",B);mxUtils.extend(G,mxCylinder);G.prototype.size=20;G.prototype.redrawPath=function(d,n,y,q,x,D){n=Math.min(q,x/(.5+cb));D?(d.moveTo(0,.25*n),d.lineTo(.5*n,(.5-$a)*n),d.lineTo(n,.25*n),d.moveTo(.5*
+p);mxUtils.extend(A,mxActor);A.prototype.size=20;A.prototype.redrawPath=function(d,n,y,q,x){n=Math.min(q,x/cb);d.translate((q-n)/2,(x-n)/2+n/4);d.moveTo(0,.25*n);d.lineTo(.5*n,n*$a);d.lineTo(n,.25*n);d.lineTo(.5*n,(.5-$a)*n);d.lineTo(0,.25*n);d.close();d.end()};mxCellRenderer.registerShape("isoRectangle",A);mxUtils.extend(G,mxCylinder);G.prototype.size=20;G.prototype.redrawPath=function(d,n,y,q,x,D){n=Math.min(q,x/(.5+cb));D?(d.moveTo(0,.25*n),d.lineTo(.5*n,(.5-$a)*n),d.lineTo(n,.25*n),d.moveTo(.5*
n,(.5-$a)*n),d.lineTo(.5*n,(1-$a)*n)):(d.translate((q-n)/2,(x-n)/2),d.moveTo(0,.25*n),d.lineTo(.5*n,n*$a),d.lineTo(n,.25*n),d.lineTo(n,.75*n),d.lineTo(.5*n,(1-$a)*n),d.lineTo(0,.75*n),d.close());d.end()};mxCellRenderer.registerShape("isoCube",G);mxUtils.extend(S,mxCylinder);S.prototype.redrawPath=function(d,n,y,q,x,D){n=Math.min(x/2,Math.round(x/8)+this.strokewidth-1);if(D&&null!=this.fill||!D&&null==this.fill)d.moveTo(0,n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,n/2),d.moveTo(0,
n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,n/2),d.moveTo(0,n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,-n);D||(d.moveTo(0,n),d.curveTo(0,-n/3,q,-n/3,q,n),d.lineTo(q,x-n),d.curveTo(q,x+n/3,0,x+n/3,0,x-n),d.close())};S.prototype.getLabelMargins=function(d){return new mxRectangle(0,2.5*Math.min(d.height/2,Math.round(d.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",S);mxUtils.extend(F,mxCylinder);F.prototype.size=30;F.prototype.darkOpacity=
0;F.prototype.paintVertexShape=function(d,n,y,q,x){var D=Math.max(0,Math.min(q,Math.min(x,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),E=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));d.translate(n,y);d.begin();d.moveTo(0,0);d.lineTo(q-D,0);d.lineTo(q,D);d.lineTo(q,x);d.lineTo(0,x);d.lineTo(0,0);d.close();d.end();d.fillAndStroke();this.outline||(d.setShadow(!1),0!=E&&(d.setFillAlpha(Math.abs(E)),d.setFillColor(0>E?"#FFFFFF":"#000000"),
@@ -2751,16 +2766,16 @@ mxCylinder);k.prototype.tabWidth=60;k.prototype.tabHeight=20;k.prototype.tabPosi
"absoluteArcSize",!1),M=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));ha||(M*=Math.min(q,x));M=Math.min(M,.5*q,.5*(x-y));n=Math.max(n,M);n=Math.min(q-M,n);E||(M=0);d.begin();"left"==D?(d.moveTo(Math.max(M,0),y),d.lineTo(Math.max(M,0),0),d.lineTo(n,0),d.lineTo(n,y)):(d.moveTo(q-n,y),d.lineTo(q-n,0),d.lineTo(q-Math.max(M,0),0),d.lineTo(q-Math.max(M,0),y));E?(d.moveTo(0,M+y),d.arcTo(M,M,0,0,1,M,y),d.lineTo(q-M,y),d.arcTo(M,M,0,0,1,q,M+y),d.lineTo(q,x-M),d.arcTo(M,M,0,0,1,q-M,x),d.lineTo(M,
x),d.arcTo(M,M,0,0,1,0,x-M)):(d.moveTo(0,y),d.lineTo(q,y),d.lineTo(q,x),d.lineTo(0,x));d.close();d.fillAndStroke();d.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(d.begin(),d.moveTo(q-30,y+20),d.lineTo(q-20,y+10),d.lineTo(q-10,y+20),d.close(),d.stroke())};mxCellRenderer.registerShape("folder",k);k.prototype.getLabelMargins=function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,
"labelInHeader",!1)){var y=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;n=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var q=mxUtils.getValue(this.style,"rounded",!1),x=mxUtils.getValue(this.style,"absoluteArcSize",!1),D=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));x||(D*=Math.min(d.width,d.height));D=Math.min(D,.5*d.width,.5*(d.height-n));q||(D=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(D,0,Math.min(d.width,d.width-
-y),Math.min(d.height,d.height-n)):new mxRectangle(Math.min(d.width,d.width-y),0,D,Math.min(d.height,d.height-n))}return new mxRectangle(0,Math.min(d.height,n),0,0)}return null};mxUtils.extend(A,mxCylinder);A.prototype.arcSize=.1;A.prototype.paintVertexShape=function(d,n,y,q,x){d.translate(n,y);var D=mxUtils.getValue(this.style,"rounded",!1),E=mxUtils.getValue(this.style,"absoluteArcSize",!1);n=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));y=mxUtils.getValue(this.style,"umlStateConnection",
+y),Math.min(d.height,d.height-n)):new mxRectangle(Math.min(d.width,d.width-y),0,D,Math.min(d.height,d.height-n))}return new mxRectangle(0,Math.min(d.height,n),0,0)}return null};mxUtils.extend(B,mxCylinder);B.prototype.arcSize=.1;B.prototype.paintVertexShape=function(d,n,y,q,x){d.translate(n,y);var D=mxUtils.getValue(this.style,"rounded",!1),E=mxUtils.getValue(this.style,"absoluteArcSize",!1);n=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));y=mxUtils.getValue(this.style,"umlStateConnection",
null);E||(n*=Math.min(q,x));n=Math.min(n,.5*q,.5*x);D||(n=0);D=0;null!=y&&(D=10);d.begin();d.moveTo(D,n);d.arcTo(n,n,0,0,1,D+n,0);d.lineTo(q-n,0);d.arcTo(n,n,0,0,1,q,n);d.lineTo(q,x-n);d.arcTo(n,n,0,0,1,q-n,x);d.lineTo(D+n,x);d.arcTo(n,n,0,0,1,D,x-n);d.close();d.fillAndStroke();d.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(d.roundrect(q-40,x-20,10,10,3,3),d.stroke(),d.roundrect(q-20,x-20,10,10,3,3),d.stroke(),d.begin(),d.moveTo(q-30,x-15),d.lineTo(q-20,x-15),
-d.stroke());"connPointRefEntry"==y?(d.ellipse(0,.5*x-10,20,20),d.fillAndStroke()):"connPointRefExit"==y&&(d.ellipse(0,.5*x-10,20,20),d.fillAndStroke(),d.begin(),d.moveTo(5,.5*x-5),d.lineTo(15,.5*x+5),d.moveTo(15,.5*x-5),d.lineTo(5,.5*x+5),d.stroke())};A.prototype.getLabelMargins=function(d){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",A);mxUtils.extend(z,
+d.stroke());"connPointRefEntry"==y?(d.ellipse(0,.5*x-10,20,20),d.fillAndStroke()):"connPointRefExit"==y&&(d.ellipse(0,.5*x-10,20,20),d.fillAndStroke(),d.begin(),d.moveTo(5,.5*x-5),d.lineTo(15,.5*x+5),d.moveTo(15,.5*x-5),d.lineTo(5,.5*x+5),d.stroke())};B.prototype.getLabelMargins=function(d){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",B);mxUtils.extend(z,
mxActor);z.prototype.size=30;z.prototype.isRoundable=function(){return!0};z.prototype.redrawPath=function(d,n,y,q,x){n=Math.max(0,Math.min(q,Math.min(x,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));y=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(n,0),new mxPoint(q,0),new mxPoint(q,x),new mxPoint(0,x),new mxPoint(0,n)],this.isRounded,y,!0);d.end()};mxCellRenderer.registerShape("card",z);mxUtils.extend(C,mxActor);C.prototype.size=
.4;C.prototype.redrawPath=function(d,n,y,q,x){n=x*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));d.moveTo(0,n/2);d.quadTo(q/4,1.4*n,q/2,n/2);d.quadTo(3*q/4,n*(1-1.4),q,n/2);d.lineTo(q,x-n/2);d.quadTo(3*q/4,x-1.4*n,q/2,x-n/2);d.quadTo(q/4,x-n*(1-1.4),0,x-n/2);d.lineTo(0,n/2);d.close();d.end()};C.prototype.getLabelBounds=function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=mxUtils.getValue(this.style,"size",this.size),y=d.width,q=d.height;if(null==this.direction||
this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return n*=q,new mxRectangle(d.x,d.y+n,y,q-2*n);n*=y;return new mxRectangle(d.x+n,d.y,y-2*n,q)}return d};mxCellRenderer.registerShape("tape",C);mxUtils.extend(I,mxActor);I.prototype.size=.3;I.prototype.getLabelMargins=function(d){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*d.height):null};I.prototype.redrawPath=function(d,n,y,
q,x){n=x*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));d.moveTo(0,0);d.lineTo(q,0);d.lineTo(q,x-n/2);d.quadTo(3*q/4,x-1.4*n,q/2,x-n/2);d.quadTo(q/4,x-n*(1-1.4),0,x-n/2);d.lineTo(0,n/2);d.close();d.end()};mxCellRenderer.registerShape("document",I);var fb=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(d,n,y,q){var x=mxUtils.getValue(this.style,"size");return null!=x?q*Math.max(0,Math.min(1,x)):fb.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=
function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,d.height*n),0,0)}return null};c.prototype.getLabelMargins=function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(n/=2);return new mxRectangle(0,Math.min(d.height*this.scale,2*n*this.scale),0,Math.max(0,.3*n*this.scale))}return null};k.prototype.getLabelMargins=
function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var y=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;n=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var q=mxUtils.getValue(this.style,"rounded",!1),x=mxUtils.getValue(this.style,"absoluteArcSize",!1),D=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));x||(D*=Math.min(d.width,d.height));D=Math.min(D,
-.5*d.width,.5*(d.height-n));q||(D=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(D,0,Math.min(d.width,d.width-y),Math.min(d.height,d.height-n)):new mxRectangle(Math.min(d.width,d.width-y),0,D,Math.min(d.height,d.height-n))}return new mxRectangle(0,Math.min(d.height,n),0,0)}return null};A.prototype.getLabelMargins=function(d){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*
+.5*d.width,.5*(d.height-n));q||(D=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(D,0,Math.min(d.width,d.width-y),Math.min(d.height,d.height-n)):new mxRectangle(Math.min(d.width,d.width-y),0,D,Math.min(d.height,d.height-n))}return new mxRectangle(0,Math.min(d.height,n),0,0)}return null};B.prototype.getLabelMargins=function(d){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*
this.scale,0,0,0):null};P.prototype.getLabelMargins=function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(d.height*this.scale,n*this.scale),0,Math.max(0,n*this.scale))}return null};mxUtils.extend(L,mxActor);L.prototype.size=.2;L.prototype.fixedSize=20;L.prototype.isRoundable=function(){return!0};L.prototype.redrawPath=function(d,n,y,q,x){n="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(q,parseFloat(mxUtils.getValue(this.style,
"size",this.fixedSize)))):q*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));y=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(0,x),new mxPoint(n,0),new mxPoint(q,0),new mxPoint(q-n,x)],this.isRounded,y,!0);d.end()};mxCellRenderer.registerShape("parallelogram",L);mxUtils.extend(K,mxActor);K.prototype.size=.2;K.prototype.fixedSize=20;K.prototype.isRoundable=function(){return!0};K.prototype.redrawPath=function(d,
n,y,q,x){n="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*q,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):q*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));y=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(0,x),new mxPoint(n,0),new mxPoint(q-n,0),new mxPoint(q,x)],this.isRounded,y,!0)};mxCellRenderer.registerShape("trapezoid",K);mxUtils.extend(O,mxActor);
@@ -2775,7 +2790,7 @@ null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mx
D,y),d.lineTo(n+q-D,y),d.quadTo(n+q,y,n+q,y+D),d.lineTo(n+q,y+x-D),d.quadTo(n+q,y+x,n+q-D,y+x),d.lineTo(n+D,y+x),d.quadTo(n,y+x,n,y+x-D),d.lineTo(n,y+D),d.quadTo(n,y,n+D,y)):(d.moveTo(n,y),d.lineTo(n+q,y),d.lineTo(n+q,y+x),d.lineTo(n,y+x),d.lineTo(n,y)),d.close(),d.end(),d.fillAndStroke()}};mxUtils.extend(ca,mxRectangleShape);ca.prototype.size=.1;ca.prototype.fixedSize=!1;ca.prototype.isHtmlAllowed=function(){return!1};ca.prototype.getLabelBounds=function(d){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,
!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var n=d.width,y=d.height;d=new mxRectangle(d.x,d.y,n,y);var q=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));if(this.isRounded){var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;q=Math.max(q,Math.min(n*x,y*x))}d.x+=Math.round(q);d.width-=Math.round(2*q);return d}return d};ca.prototype.paintForeground=
function(d,n,y,q,x){var D=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),E=parseFloat(mxUtils.getValue(this.style,"size",this.size));E=D?Math.max(0,Math.min(q,E)):q*Math.max(0,Math.min(1,E));this.isRounded&&(D=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,E=Math.max(E,Math.min(q*D,x*D)));E=Math.round(E);d.begin();d.moveTo(n+E,y);d.lineTo(n+E,y+x);d.moveTo(n+q-E,y);d.lineTo(n+q-E,y+x);d.end();d.stroke();mxRectangleShape.prototype.paintForeground.apply(this,
-arguments)};mxCellRenderer.registerShape("process",ca);mxCellRenderer.registerShape("process2",ca);mxUtils.extend(W,mxRectangleShape);W.prototype.paintBackground=function(d,n,y,q,x){d.setFillColor(mxConstants.NONE);d.rect(n,y,q,x);d.fill()};W.prototype.paintForeground=function(d,n,y,q,x){};mxCellRenderer.registerShape("transparent",W);mxUtils.extend(ma,mxHexagon);ma.prototype.size=30;ma.prototype.position=.5;ma.prototype.position2=.5;ma.prototype.base=20;ma.prototype.getLabelMargins=function(){return new mxRectangle(0,
+arguments)};mxCellRenderer.registerShape("process",ca);mxCellRenderer.registerShape("process2",ca);mxUtils.extend(V,mxRectangleShape);V.prototype.paintBackground=function(d,n,y,q,x){d.setFillColor(mxConstants.NONE);d.rect(n,y,q,x);d.fill()};V.prototype.paintForeground=function(d,n,y,q,x){};mxCellRenderer.registerShape("transparent",V);mxUtils.extend(ma,mxHexagon);ma.prototype.size=30;ma.prototype.position=.5;ma.prototype.position2=.5;ma.prototype.base=20;ma.prototype.getLabelMargins=function(){return new mxRectangle(0,
0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};ma.prototype.isRoundable=function(){return!0};ma.prototype.redrawPath=function(d,n,y,q,x){n=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;y=Math.max(0,Math.min(x,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var D=q*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),E=q*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",
this.position2)))),ha=Math.max(0,Math.min(q,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(d,[new mxPoint(0,0),new mxPoint(q,0),new mxPoint(q,x-y),new mxPoint(Math.min(q,D+ha),x-y),new mxPoint(E,x),new mxPoint(Math.max(0,D),x-y),new mxPoint(0,x-y)],this.isRounded,n,!0,[4])};mxCellRenderer.registerShape("callout",ma);mxUtils.extend(la,mxActor);la.prototype.size=.2;la.prototype.fixedSize=20;la.prototype.isRoundable=function(){return!0};la.prototype.redrawPath=function(d,
n,y,q,x){n="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(q,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):q*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));y=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(0,0),new mxPoint(q-n,0),new mxPoint(q,x/2),new mxPoint(q-n,x),new mxPoint(0,x),new mxPoint(n,x/2)],this.isRounded,y,!0);d.end()};mxCellRenderer.registerShape("step",
@@ -2787,8 +2802,8 @@ Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||
Va,bb=this.style["symbol"+D+"ArcSpacing"];null!=bb&&(bb*=this.getArcSize(q+this.strokewidth,x+this.strokewidth),Va+=bb,gb+=bb);bb=n;var Fa=y;bb=ha==mxConstants.ALIGN_CENTER?bb+(q-wa)/2:ha==mxConstants.ALIGN_RIGHT?bb+(q-wa-Va):bb+Va;Fa=M==mxConstants.ALIGN_MIDDLE?Fa+(x-na)/2:M==mxConstants.ALIGN_BOTTOM?Fa+(x-na-gb):Fa+gb;d.save();ha=new E;ha.style=this.style;E.prototype.paintVertexShape.call(ha,d,bb,Fa,wa,na);d.restore()}D++}while(null!=E)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};
mxCellRenderer.registerShape("ext",Z);mxUtils.extend(l,mxCylinder);l.prototype.redrawPath=function(d,n,y,q,x,D){D?(d.moveTo(0,0),d.lineTo(q/2,x/2),d.lineTo(q,0),d.end()):(d.moveTo(0,0),d.lineTo(q,0),d.lineTo(q,x),d.lineTo(0,x),d.close())};mxCellRenderer.registerShape("message",l);mxUtils.extend(u,mxShape);u.prototype.paintBackground=function(d,n,y,q,x){d.translate(n,y);d.ellipse(q/4,0,q/2,x/4);d.fillAndStroke();d.begin();d.moveTo(q/2,x/4);d.lineTo(q/2,2*x/3);d.moveTo(q/2,x/3);d.lineTo(0,x/3);d.moveTo(q/
2,x/3);d.lineTo(q,x/3);d.moveTo(q/2,2*x/3);d.lineTo(0,x);d.moveTo(q/2,2*x/3);d.lineTo(q,x);d.end();d.stroke()};mxCellRenderer.registerShape("umlActor",u);mxUtils.extend(H,mxShape);H.prototype.getLabelMargins=function(d){return new mxRectangle(d.width/6,0,0,0)};H.prototype.paintBackground=function(d,n,y,q,x){d.translate(n,y);d.begin();d.moveTo(0,x/4);d.lineTo(0,3*x/4);d.end();d.stroke();d.begin();d.moveTo(0,x/2);d.lineTo(q/6,x/2);d.end();d.stroke();d.ellipse(q/6,0,5*q/6,x);d.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",
-H);mxUtils.extend(U,mxEllipse);U.prototype.paintVertexShape=function(d,n,y,q,x){mxEllipse.prototype.paintVertexShape.apply(this,arguments);d.begin();d.moveTo(n+q/8,y+x);d.lineTo(n+7*q/8,y+x);d.end();d.stroke()};mxCellRenderer.registerShape("umlEntity",U);mxUtils.extend(J,mxShape);J.prototype.paintVertexShape=function(d,n,y,q,x){d.translate(n,y);d.begin();d.moveTo(q,0);d.lineTo(0,x);d.moveTo(0,0);d.lineTo(q,x);d.end();d.stroke()};mxCellRenderer.registerShape("umlDestroy",J);mxUtils.extend(V,mxShape);
-V.prototype.getLabelBounds=function(d){return new mxRectangle(d.x,d.y+d.height/8,d.width,7*d.height/8)};V.prototype.paintBackground=function(d,n,y,q,x){d.translate(n,y);d.begin();d.moveTo(3*q/8,x/8*1.1);d.lineTo(5*q/8,0);d.end();d.stroke();d.ellipse(0,x/8,q,7*x/8);d.fillAndStroke()};V.prototype.paintForeground=function(d,n,y,q,x){d.begin();d.moveTo(3*q/8,x/8*1.1);d.lineTo(5*q/8,x/4);d.end();d.stroke()};mxCellRenderer.registerShape("umlControl",V);mxUtils.extend(aa,mxRectangleShape);aa.prototype.size=
+H);mxUtils.extend(U,mxEllipse);U.prototype.paintVertexShape=function(d,n,y,q,x){mxEllipse.prototype.paintVertexShape.apply(this,arguments);d.begin();d.moveTo(n+q/8,y+x);d.lineTo(n+7*q/8,y+x);d.end();d.stroke()};mxCellRenderer.registerShape("umlEntity",U);mxUtils.extend(J,mxShape);J.prototype.paintVertexShape=function(d,n,y,q,x){d.translate(n,y);d.begin();d.moveTo(q,0);d.lineTo(0,x);d.moveTo(0,0);d.lineTo(q,x);d.end();d.stroke()};mxCellRenderer.registerShape("umlDestroy",J);mxUtils.extend(W,mxShape);
+W.prototype.getLabelBounds=function(d){return new mxRectangle(d.x,d.y+d.height/8,d.width,7*d.height/8)};W.prototype.paintBackground=function(d,n,y,q,x){d.translate(n,y);d.begin();d.moveTo(3*q/8,x/8*1.1);d.lineTo(5*q/8,0);d.end();d.stroke();d.ellipse(0,x/8,q,7*x/8);d.fillAndStroke()};W.prototype.paintForeground=function(d,n,y,q,x){d.begin();d.moveTo(3*q/8,x/8*1.1);d.lineTo(5*q/8,x/4);d.end();d.stroke()};mxCellRenderer.registerShape("umlControl",W);mxUtils.extend(aa,mxRectangleShape);aa.prototype.size=
40;aa.prototype.isHtmlAllowed=function(){return!1};aa.prototype.getLabelBounds=function(d){var n=Math.max(0,Math.min(d.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(d.x,d.y,d.width,n)};aa.prototype.paintBackground=function(d,n,y,q,x){var D=Math.max(0,Math.min(x,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),E=mxUtils.getValue(this.style,"participant");null==E||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,
d,n,y,q,D):(E=this.state.view.graph.cellRenderer.getShape(E),null!=E&&E!=aa&&(E=new E,E.apply(this.state),d.save(),E.paintVertexShape(d,n,y,q,D),d.restore()));D<x&&(d.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),d.begin(),d.moveTo(n+q/2,y+D),d.lineTo(n+q/2,y+x),d.end(),d.stroke())};aa.prototype.paintForeground=function(d,n,y,q,x){var D=Math.max(0,Math.min(x,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,d,n,y,q,
Math.min(x,D))};mxCellRenderer.registerShape("umlLifeline",aa);mxUtils.extend(ba,mxShape);ba.prototype.width=60;ba.prototype.height=30;ba.prototype.corner=10;ba.prototype.configurePointerEvents=function(d){var n=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=n&&n!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(d.pointerEvents=!1)};ba.prototype.getLabelMargins=
@@ -2939,7 +2954,7 @@ function(){var d=Bb.apply(this,arguments);if(this.graph.isCellRotatable(this.sta
function(){var d=this.state.style.shape;null==mxCellRenderer.defaultShapes[d]&&null==mxStencilRegistry.getStencil(d)&&(d=mxConstants.SHAPE_CONNECTOR);d=hb[d];return null!=d?d(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var rb=new mxPoint(1,0),yb=new mxPoint(1,0),zb=mxUtils.toRadians(-30);rb=mxUtils.getRotatedPoint(rb,Math.cos(zb),Math.sin(zb));var qb=mxUtils.toRadians(-150);yb=mxUtils.getRotatedPoint(yb,Math.cos(qb),Math.sin(qb));mxEdgeStyle.IsometricConnector=function(d,
n,y,q,x){var D=d.view;q=null!=q&&0<q.length?q[0]:null;var E=d.absolutePoints,ha=E[0];E=E[E.length-1];null!=q&&(q=D.transformControlPoint(d,q));null==ha&&null!=n&&(ha=new mxPoint(n.getCenterX(),n.getCenterY()));null==E&&null!=y&&(E=new mxPoint(y.getCenterX(),y.getCenterY()));var M=rb.x,wa=rb.y,na=yb.x,Va=yb.y,gb="horizontal"==mxUtils.getValue(d.style,"elbow","horizontal");if(null!=E&&null!=ha){d=function(Fa,Ja,Ha){Fa-=bb.x;var Ga=Ja-bb.y;Ja=(Va*Fa-na*Ga)/(M*Va-wa*na);Fa=(wa*Fa-M*Ga)/(wa*na-M*Va);gb?
(Ha&&(bb=new mxPoint(bb.x+M*Ja,bb.y+wa*Ja),x.push(bb)),bb=new mxPoint(bb.x+na*Fa,bb.y+Va*Fa)):(Ha&&(bb=new mxPoint(bb.x+na*Fa,bb.y+Va*Fa),x.push(bb)),bb=new mxPoint(bb.x+M*Ja,bb.y+wa*Ja));x.push(bb)};var bb=ha;null==q&&(q=new mxPoint(ha.x+(E.x-ha.x)/2,ha.y+(E.y-ha.y)/2));d(q.x,q.y,!0);d(E.x,E.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var Cb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(d,n){if(n==mxEdgeStyle.IsometricConnector){var y=
-new mxElbowEdgeHandler(d);y.snapToTerminals=!1;return y}return Cb.apply(this,arguments)};B.prototype.constraints=[];G.prototype.getConstraints=function(d,n,y){d=[];var q=Math.tan(mxUtils.toRadians(30)),x=(.5-q)/2;q=Math.min(n,y/(.5+q));n=(n-q)/2;y=(y-q)/2;d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,y+.25*q));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n+.5*q,y+q*x));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n+q,y+.25*q));d.push(new mxConnectionConstraint(new mxPoint(0,
+new mxElbowEdgeHandler(d);y.snapToTerminals=!1;return y}return Cb.apply(this,arguments)};A.prototype.constraints=[];G.prototype.getConstraints=function(d,n,y){d=[];var q=Math.tan(mxUtils.toRadians(30)),x=(.5-q)/2;q=Math.min(n,y/(.5+q));n=(n-q)/2;y=(y-q)/2;d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,y+.25*q));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n+.5*q,y+q*x));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n+q,y+.25*q));d.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,n+q,y+.75*q));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n+.5*q,y+(1-x)*q));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,y+.75*q));return d};R.prototype.getConstraints=function(d,n,y){d=[];var q=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;q=Math.min(n*Math.tan(q),.5*y);d.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,q));d.push(new mxConnectionConstraint(new mxPoint(1,
.5),!1));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,y-q));d.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,y-q));d.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,q));return d};ma.prototype.getConstraints=function(d,n,y){d=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var q=Math.max(0,Math.min(y,parseFloat(mxUtils.getValue(this.style,
"size",this.size))));parseFloat(mxUtils.getValue(this.style,"position",this.position));var x=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));parseFloat(mxUtils.getValue(this.style,"base",this.base));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1));d.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));d.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));d.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));d.push(new mxConnectionConstraint(new mxPoint(1,
@@ -2990,17 +3005,17 @@ mxLine.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),n
null;t.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];N.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,
.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];qa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];ra.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(b){this.editorUi=b;this.actions={};this.init()}
Actions.prototype.init=function(){function b(F){p.escape();F=p.deleteCells(p.getDeletableCells(p.getSelectionCells()),F);null!=F&&p.setSelectionCells(F)}function e(){if(!p.isSelectionEmpty()){p.getModel().beginUpdate();try{for(var F=p.getSelectionCells(),P=0;P<F.length;P++)p.cellLabelChanged(F[P],"")}finally{p.getModel().endUpdate()}}}function g(F,P,R,T,c){c.getModel().beginUpdate();try{var f=c.getCellGeometry(F);null!=f&&R&&T&&(R/=T,f=f.clone(),1<R?f.height=f.width/R:f.width=f.height*R,c.getModel().setGeometry(F,
-f));c.setCellStyles(mxConstants.STYLE_CLIP_PATH,P,[F]);c.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[F])}finally{c.getModel().endUpdate()}}var m=this.editorUi,v=m.editor,p=v.graph,B=function(){return Action.prototype.isEnabled.apply(this,arguments)&&p.isEnabled()};this.addAction("new...",function(){p.openLink(m.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";m.openFile()});this.put("smartFit",new Action(mxResources.get("fitWindow")+" / "+mxResources.get("resetView"),
+f));c.setCellStyles(mxConstants.STYLE_CLIP_PATH,P,[F]);c.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[F])}finally{c.getModel().endUpdate()}}var m=this.editorUi,v=m.editor,p=v.graph,A=function(){return Action.prototype.isEnabled.apply(this,arguments)&&p.isEnabled()};this.addAction("new...",function(){p.openLink(m.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";m.openFile()});this.put("smartFit",new Action(mxResources.get("fitWindow")+" / "+mxResources.get("resetView"),
function(){p.popupMenuHandler.hideMenu();var F=p.view.scale,P=p.container.scrollLeft,R=p.container.scrollTop,T=p.view.translate.x,c=p.view.translate.y;m.actions.get("resetView").funct();1E-5>Math.abs(F-p.view.scale)&&5>Math.abs(P-p.container.scrollLeft)&&5>Math.abs(R-p.container.scrollTop)&&T==p.view.translate.x&&c==p.view.translate.y&&m.actions.get("fitWindow").funct()},null,null,"Enter"));this.addAction("keyPressEnter",function(){p.isSelectionEmpty()?m.actions.get("smartFit").funct():p.isEnabled()&&
p.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){m.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(F,P){try{var R=mxUtils.parseXml(F);v.graph.setSelectionCells(v.graph.importGraphModel(R.documentElement))}catch(T){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+T.message)}}));m.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=
-null})}).isEnabled=B;this.addAction("save",function(){m.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=B;this.addAction("saveAs...",function(){m.saveFile(!0)},null,null,Editor.ctrlKey+"+Shift+S");this.addAction("export...",function(){m.showDialog((new ExportDialog(m)).container,300,340,!0,!0)});this.addAction("editDiagram...",function(){var F=new EditDiagramDialog(m);m.showDialog(F.container,620,420,!0,!1);F.init()}).isEnabled=B;this.addAction("pageSetup...",function(){m.showDialog((new PageSetupDialog(m)).container,
-320,240,!0,!0)}).isEnabled=B;this.addAction("print...",function(){m.showPrintDialog()},null,"sprite-print",Editor.ctrlKey+"+P");this.addAction("preview",function(){mxUtils.show(p,null,10,10)});this.addAction("undo",function(){m.undo()},null,"sprite-undo",Editor.ctrlKey+"+Z");this.addAction("redo",function(){m.redo()},null,"sprite-redo",mxClient.IS_WIN?Editor.ctrlKey+"+Y":Editor.ctrlKey+"+Shift+Z");this.addAction("cut",function(){var F=null;try{F=m.copyXml(),null!=F&&p.removeCells(F,!1)}catch(P){}try{null==
+null})}).isEnabled=A;this.addAction("save",function(){m.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=A;this.addAction("saveAs...",function(){m.saveFile(!0)},null,null,Editor.ctrlKey+"+Shift+S");this.addAction("export...",function(){m.showDialog((new ExportDialog(m)).container,300,340,!0,!0)});this.addAction("editDiagram...",function(){var F=new EditDiagramDialog(m);m.showDialog(F.container,620,420,!0,!1);F.init()}).isEnabled=A;this.addAction("pageSetup...",function(){m.showDialog((new PageSetupDialog(m)).container,
+320,240,!0,!0)}).isEnabled=A;this.addAction("print...",function(){m.showPrintDialog()},null,"sprite-print",Editor.ctrlKey+"+P");this.addAction("preview",function(){mxUtils.show(p,null,10,10)});this.addAction("undo",function(){m.undo()},null,"sprite-undo",Editor.ctrlKey+"+Z");this.addAction("redo",function(){m.redo()},null,"sprite-redo",mxClient.IS_WIN?Editor.ctrlKey+"+Y":Editor.ctrlKey+"+Shift+Z");this.addAction("cut",function(){var F=null;try{F=m.copyXml(),null!=F&&p.removeCells(F,!1)}catch(P){}try{null==
F&&mxClipboard.cut(p)}catch(P){m.handleError(P)}},null,"sprite-cut",Editor.ctrlKey+"+X");this.addAction("copy",function(){try{m.copyXml()}catch(F){}try{mxClipboard.copy(p)}catch(F){m.handleError(F)}},null,"sprite-copy",Editor.ctrlKey+"+C");this.addAction("paste",function(){if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())){var F=!1;try{Editor.enableNativeCipboard&&(m.readGraphModelFromClipboard(function(P){if(null!=P){p.getModel().beginUpdate();try{m.pasteXml(P,!0)}finally{p.getModel().endUpdate()}}else mxClipboard.paste(p)}),
-F=!0)}catch(P){}F||mxClipboard.paste(p)}},!1,"sprite-paste",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(F){function P(T){if(null!=T){for(var c=!0,f=0;f<T.length&&c;f++)c=c&&p.model.isEdge(T[f]);var k=p.view.translate;f=p.view.scale;var A=k.x,z=k.y;k=null;if(1==T.length&&c){var C=p.getCellGeometry(T[0]);null!=C&&(k=C.getTerminalPoint(!0))}k=null!=k?k:p.getBoundingBoxFromGeometry(T,c);null!=k&&(c=Math.round(p.snap(p.popupMenuHandler.triggerX/f-A)),f=Math.round(p.snap(p.popupMenuHandler.triggerY/
+F=!0)}catch(P){}F||mxClipboard.paste(p)}},!1,"sprite-paste",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(F){function P(T){if(null!=T){for(var c=!0,f=0;f<T.length&&c;f++)c=c&&p.model.isEdge(T[f]);var k=p.view.translate;f=p.view.scale;var B=k.x,z=k.y;k=null;if(1==T.length&&c){var C=p.getCellGeometry(T[0]);null!=C&&(k=C.getTerminalPoint(!0))}k=null!=k?k:p.getBoundingBoxFromGeometry(T,c);null!=k&&(c=Math.round(p.snap(p.popupMenuHandler.triggerX/f-B)),f=Math.round(p.snap(p.popupMenuHandler.triggerY/
f-z)),p.cellsMoved(T,c-k.x,f-k.y))}}function R(){p.getModel().beginUpdate();try{P(mxClipboard.paste(p))}finally{p.getModel().endUpdate()}}if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())){F=!1;try{Editor.enableNativeCipboard&&(m.readGraphModelFromClipboard(function(T){if(null!=T){p.getModel().beginUpdate();try{P(m.pasteXml(T,!0))}finally{p.getModel().endUpdate()}}else R()}),F=!0)}catch(T){}F||R()}});this.addAction("swap",function(){var F=p.getSelectionCells();2==F.length&&p.swapShapes(F[0],
F[1])});this.addAction("copySize",function(){var F=p.getSelectionCell();p.isEnabled()&&null!=F&&p.getModel().isVertex(F)&&(F=p.getCellGeometry(F),null!=F&&(m.copiedSize=new mxRectangle(F.x,F.y,F.width,F.height)))},null,null,"Alt+Shift+F");this.addAction("pasteSize",function(){if(p.isEnabled()&&!p.isSelectionEmpty()&&null!=m.copiedSize){p.getModel().beginUpdate();try{for(var F=p.getResizableCells(p.getSelectionCells()),P=0;P<F.length;P++)if(p.getModel().isVertex(F[P])){var R=p.getCellGeometry(F[P]);
null!=R&&(R=R.clone(),R.width=m.copiedSize.width,R.height=m.copiedSize.height,p.getModel().setGeometry(F[P],R))}}finally{p.getModel().endUpdate()}}},null,null,"Alt+Shift+V");this.addAction("copyData",function(){var F=p.getSelectionCell()||p.getModel().getRoot();p.isEnabled()&&null!=F&&(F=F.cloneValue(),null==F||isNaN(F.nodeType)||(m.copiedValue=F))},null,null,"Alt+Shift+B");this.addAction("copyAsText",function(){var F=p.getSelectionCell();if(p.isEnabled()&&null!=F)try{p.isHtmlLabel(F)?m.writeHtmlToClipboard(p.getLabel(F),
-mxUtils.bind(this,function(P){m.handleError(P)})):m.writeTextToClipboard(p.getLabel(F),mxUtils.bind(this,function(P){m.handleError(P)}))}catch(P){m.handleError(P)}});this.addAction("pasteData",function(F,P){function R(f,k){var A=T.getValue(f);k=f.cloneValue(k);k.removeAttribute("placeholders");null==A||isNaN(A.nodeType)||k.setAttribute("placeholders",A.getAttribute("placeholders"));null!=F&&mxEvent.isShiftDown(F)||k.setAttribute("label",p.convertValueToString(f));T.setValue(f,k)}F=null!=P?P:F;var T=
+mxUtils.bind(this,function(P){m.handleError(P)})):m.writeTextToClipboard(p.getLabel(F),mxUtils.bind(this,function(P){m.handleError(P)}))}catch(P){m.handleError(P)}});this.addAction("pasteData",function(F,P){function R(f,k){var B=T.getValue(f);k=f.cloneValue(k);k.removeAttribute("placeholders");null==B||isNaN(B.nodeType)||k.setAttribute("placeholders",B.getAttribute("placeholders"));null!=F&&mxEvent.isShiftDown(F)||k.setAttribute("label",p.convertValueToString(f));T.setValue(f,k)}F=null!=P?P:F;var T=
p.getModel();if(p.isEnabled()&&!p.isSelectionEmpty()&&null!=m.copiedValue){T.beginUpdate();try{var c=p.getEditableCells(p.getSelectionCells());if(0==c.length)R(T.getRoot(),m.copiedValue);else for(P=0;P<c.length;P++)R(c[P],m.copiedValue)}finally{T.endUpdate()}}},null,null,"Alt+Shift+E");this.addAction("delete",function(F,P){F=null!=P?P:F;null!=F&&mxEvent.isShiftDown(F)?e():b(null!=F&&(mxEvent.isControlDown(F)||mxEvent.isMetaDown(F)||mxEvent.isAltDown(F)))},null,null,"Delete");this.addAction("deleteAll",
function(){b(!0)});this.addAction("deleteLabels",function(){e()},null,null,Editor.ctrlKey+"+Delete");this.addAction("duplicate",function(){try{p.setSelectionCells(p.duplicateCells()),p.scrollCellToVisible(p.getSelectionCell())}catch(F){m.handleError(F)}},null,null,Editor.ctrlKey+"+D");this.put("mergeCells",new Action(mxResources.get("merge"),function(){var F=m.getSelectionState();if(null!=F.mergeCell){p.getModel().beginUpdate();try{p.setCellStyles("rowspan",F.rowspan,[F.mergeCell]),p.setCellStyles("colspan",
F.colspan,[F.mergeCell])}finally{p.getModel().endUpdate()}}}));this.put("unmergeCells",new Action(mxResources.get("unmerge"),function(){var F=m.getSelectionState();if(0<F.cells.length){p.getModel().beginUpdate();try{p.setCellStyles("rowspan",null,F.cells),p.setCellStyles("colspan",null,F.cells)}finally{p.getModel().endUpdate()}}}));this.put("turn",new Action(mxResources.get("turn")+" / "+mxResources.get("reverse"),function(F,P){F=null!=P?P:F;p.turnShapes(p.getResizableCells(p.getSelectionCells()),
@@ -3013,10 +3028,10 @@ function(){if(p.isEnabled()){var F=p.getEditableCells(p.getSelectionCells());p.m
[],R=0;R<F.length;R++)p.isTableRow(F[R])||p.isTableCell(F[R])||P.push(F[R]);p.removeCellsFromParent(P);0<P.length&&p.scrollCellToVisible(P[0])}}});this.addAction("edit",function(){p.isEnabled()&&p.startEditingAtCell()},null,null,"F2/Enter");this.addAction("editData...",function(){var F=p.getSelectionCell()||p.getModel().getRoot();m.showDataDialog(F)},null,null,Editor.ctrlKey+"+M");this.addAction("editTooltip...",function(){var F=p.getSelectionCell();if(p.isEnabled()&&null!=F&&p.isCellEditable(F)){var P=
"";if(mxUtils.isNode(F.value)){var R=null;Graph.translateDiagram&&null!=Graph.diagramLanguage&&F.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(R=F.value.getAttribute("tooltip_"+Graph.diagramLanguage));null==R&&(R=F.value.getAttribute("tooltip"));null!=R&&(P=R)}P=new TextareaDialog(m,mxResources.get("editTooltip")+":",P,function(T){p.setTooltipForCell(F,T)});m.showDialog(P.container,320,200,!0,!0);P.init()}},null,null,"Alt+Shift+T");this.addAction("openLink",function(){var F=p.getLinkForCell(p.getSelectionCell());
null!=F&&p.openLink(F)});this.addAction("editLink...",function(){var F=p.getSelectionCell();if(p.isEnabled()&&null!=F&&p.isCellEditable(F)){var P=p.getLinkForCell(F,!0)||"";m.showLinkDialog(P,mxResources.get("ok"),function(R,T,c){p.getModel().beginUpdate();try{p.setLinkForCell(F,0<R.length?R:null),p.setAttributeForCell(F,"linkTarget",c)}finally{p.getModel().endUpdate()}},!0,p.getLinkTargetForCell(F))}},null,null,"Alt+Shift+L");this.put("insertImage",new Action(mxResources.get("image")+"...",function(){p.isEnabled()&&
-!p.isCellLocked(p.getDefaultParent())&&(p.clearSelection(),m.actions.get("image").funct())})).isEnabled=B;this.addAction("editImage...",function(){m.actions.get("image").funct()});this.put("insertLink",new Action(mxResources.get("link")+"...",function(){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&m.showLinkDialog("",mxResources.get("ok"),function(F,P,R){F=mxUtils.trim(F);if(0<F.length){var T=null,c=p.getLinkTitle(F);null!=P&&0<P.length&&(T=P[0].iconUrl,c=P[0].name||P[0].type,c=c.charAt(0).toUpperCase()+
+!p.isCellLocked(p.getDefaultParent())&&(p.clearSelection(),m.actions.get("image").funct())})).isEnabled=A;this.addAction("editImage...",function(){m.actions.get("image").funct()});this.put("insertLink",new Action(mxResources.get("link")+"...",function(){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&m.showLinkDialog("",mxResources.get("ok"),function(F,P,R){F=mxUtils.trim(F);if(0<F.length){var T=null,c=p.getLinkTitle(F);null!=P&&0<P.length&&(T=P[0].iconUrl,c=P[0].name||P[0].type,c=c.charAt(0).toUpperCase()+
c.substring(1),30<c.length&&(c=c.substring(0,30)+"..."));P=new mxCell(c,new mxGeometry(0,0,100,40),"fontColor=#0000EE;fontStyle=4;rounded=1;overflow=hidden;"+(null!=T?"shape=label;imageWidth=16;imageHeight=16;spacingLeft=26;align=left;image="+T:"spacing=10;"));P.vertex=!0;T=p.getCenterInsertPoint(p.getBoundingBoxFromGeometry([P],!0));P.geometry.x=T.x;P.geometry.y=T.y;p.setAttributeForCell(P,"linkTarget",R);p.setLinkForCell(P,F);p.cellSizeUpdated(P,!0);p.getModel().beginUpdate();try{P=p.addCell(P),
-p.fireEvent(new mxEventObject("cellsInserted","cells",[P]))}finally{p.getModel().endUpdate()}p.setSelectionCell(P);p.scrollCellToVisible(p.getSelectionCell())}},!0)},null,null,"L")).isEnabled=B;this.addAction("link...",mxUtils.bind(this,function(){if(p.isEnabled())if(p.cellEditor.isContentEditing()){var F=p.getSelectedElement(),P=p.getParentByName(F,"A",p.cellEditor.textarea),R="";if(null==P&&null!=F&&null!=F.getElementsByTagName)for(var T=F.getElementsByTagName("a"),c=0;c<T.length&&null==P;c++)T[c].textContent==
-F.textContent&&(P=T[c]);null!=P&&"A"==P.nodeName&&(R=P.getAttribute("href")||"",p.selectNode(P));var f=p.cellEditor.saveSelection();m.showLinkDialog(R,mxResources.get("ok"),mxUtils.bind(this,function(k){p.cellEditor.restoreSelection(f);null!=k&&p.insertLink(k)}))}else p.isSelectionEmpty()?this.get("insertLink").funct():this.get("editLink").funct()})).isEnabled=B;this.addAction("autosize",function(){var F=p.getSelectionCells();if(null!=F){p.getModel().beginUpdate();try{for(var P=0;P<F.length;P++){var R=
+p.fireEvent(new mxEventObject("cellsInserted","cells",[P]))}finally{p.getModel().endUpdate()}p.setSelectionCell(P);p.scrollCellToVisible(p.getSelectionCell())}},!0)},null,null,"L")).isEnabled=A;this.addAction("link...",mxUtils.bind(this,function(){if(p.isEnabled())if(p.cellEditor.isContentEditing()){var F=p.getSelectedElement(),P=p.getParentByName(F,"A",p.cellEditor.textarea),R="";if(null==P&&null!=F&&null!=F.getElementsByTagName)for(var T=F.getElementsByTagName("a"),c=0;c<T.length&&null==P;c++)T[c].textContent==
+F.textContent&&(P=T[c]);null!=P&&"A"==P.nodeName&&(R=P.getAttribute("href")||"",p.selectNode(P));var f=p.cellEditor.saveSelection();m.showLinkDialog(R,mxResources.get("ok"),mxUtils.bind(this,function(k){p.cellEditor.restoreSelection(f);null!=k&&p.insertLink(k)}))}else p.isSelectionEmpty()?this.get("insertLink").funct():this.get("editLink").funct()})).isEnabled=A;this.addAction("autosize",function(){var F=p.getSelectionCells();if(null!=F){p.getModel().beginUpdate();try{for(var P=0;P<F.length;P++){var R=
F[P];p.getModel().isVertex(R)&&(0<p.getModel().getChildCount(R)?p.updateGroupBounds([R],0,!0):p.updateCellSize(R))}}finally{p.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+Shift+Y");this.addAction("snapToGrid",function(){p.snapCellsToGrid(p.getSelectionCells(),p.gridSize)});this.addAction("formattedText",function(){p.stopEditing();var F=p.getCommonStyle(p.getSelectionCells());F="1"==mxUtils.getValue(F,"html","0")?null:"1";p.getModel().beginUpdate();try{for(var P=p.getEditableCells(p.getSelectionCells()),
R=0;R<P.length;R++)if(state=p.getView().getState(P[R]),null!=state){var T=mxUtils.getValue(state.style,"html","0");if("1"==T&&null==F)p.removeTextStyleForCell(state.cell),p.setCellStyles("html",F,[P[R]]);else if("0"==T&&"1"==F){var c=mxUtils.htmlEntities(p.convertValueToString(state.cell),!1);"0"!=mxUtils.getValue(state.style,"nl2Br","1")&&(c=c.replace(/\n/g,"<br/>"));p.cellLabelChanged(state.cell,Graph.sanitizeHtml(c));p.setCellStyles("html",F,[P[R]])}}m.fireEvent(new mxEventObject("styleChanged",
"keys",["html"],"values",[null!=F?F:"0"],"cells",P))}finally{p.getModel().endUpdate()}});this.addAction("wordWrap",function(){var F=p.getView().getState(p.getSelectionCell()),P="wrap";p.stopEditing();null!=F&&"wrap"==F.style[mxConstants.STYLE_WHITE_SPACE]&&(P=null);p.setCellStyles(mxConstants.STYLE_WHITE_SPACE,P)});this.addAction("rotation",function(){var F="0",P=p.getView().getState(p.getSelectionCell());null!=P&&(F=P.style[mxConstants.STYLE_ROTATION]||F);F=new FilenameDialog(m,F,mxResources.get("apply"),
@@ -3026,9 +3041,9 @@ null,null,Editor.ctrlKey+"+Shift+J");this.addAction("fitPageWidth",mxUtils.bind(
300,80,!0,!0);F.init()}),null,null,Editor.ctrlKey+"+0"));this.addAction("pageScale...",mxUtils.bind(this,function(){var F=new FilenameDialog(this.editorUi,parseInt(100*p.pageScale),mxResources.get("apply"),mxUtils.bind(this,function(P){P=parseInt(P);!isNaN(P)&&0<P&&(P=new ChangePageSetup(m,null,null,null,P/100),P.ignoreColor=!0,P.ignoreImage=!0,p.model.execute(P))}),mxResources.get("pageScale")+" (%)");this.editorUi.showDialog(F.container,300,80,!0,!0);F.init()}));var G=null;G=this.addAction("grid",
function(){p.setGridEnabled(!p.isGridEnabled());p.defaultGridEnabled=p.isGridEnabled();m.fireEvent(new mxEventObject("gridEnabledChanged"))},null,null,Editor.ctrlKey+"+Shift+G");G.setToggleAction(!0);G.setSelectedCallback(function(){return p.isGridEnabled()});G.setEnabled(!1);G=this.addAction("guides",function(){p.graphHandler.guidesEnabled=!p.graphHandler.guidesEnabled;m.fireEvent(new mxEventObject("guidesEnabledChanged"))});G.setToggleAction(!0);G.setSelectedCallback(function(){return p.graphHandler.guidesEnabled});
G.setEnabled(!1);G=this.addAction("animations",function(){Editor.enableAnimations=!Editor.enableAnimations;m.fireEvent(new mxEventObject("enableAnimationsChanged"))});G.setToggleAction(!0);G.setSelectedCallback(function(){return Editor.enableAnimations});G=this.addAction("tooltips",function(){p.tooltipHandler.setEnabled(!p.tooltipHandler.isEnabled());m.fireEvent(new mxEventObject("tooltipsEnabledChanged"))});G.setToggleAction(!0);G.setSelectedCallback(function(){return p.tooltipHandler.isEnabled()});
-G=this.addAction("collapseExpand",function(){var F=new ChangePageSetup(m);F.ignoreColor=!0;F.ignoreImage=!0;F.foldingEnabled=!p.foldingEnabled;p.model.execute(F)});G.setToggleAction(!0);G.setSelectedCallback(function(){return p.foldingEnabled});G.isEnabled=B;G=this.addAction("pageView",mxUtils.bind(this,function(){m.setPageVisible(!p.pageVisible)}));G.setToggleAction(!0);G.setSelectedCallback(function(){return p.pageVisible});G=this.addAction("connectionArrows",function(){p.connectionArrowsEnabled=
+G=this.addAction("collapseExpand",function(){var F=new ChangePageSetup(m);F.ignoreColor=!0;F.ignoreImage=!0;F.foldingEnabled=!p.foldingEnabled;p.model.execute(F)});G.setToggleAction(!0);G.setSelectedCallback(function(){return p.foldingEnabled});G.isEnabled=A;G=this.addAction("pageView",mxUtils.bind(this,function(){m.setPageVisible(!p.pageVisible)}));G.setToggleAction(!0);G.setSelectedCallback(function(){return p.pageVisible});G=this.addAction("connectionArrows",function(){p.connectionArrowsEnabled=
!p.connectionArrowsEnabled;m.fireEvent(new mxEventObject("connectionArrowsChanged"))},null,null,"Alt+Shift+A");G.setToggleAction(!0);G.setSelectedCallback(function(){return p.connectionArrowsEnabled});G=this.addAction("connectionPoints",function(){p.setConnectable(!p.connectionHandler.isEnabled());m.fireEvent(new mxEventObject("connectionPointsChanged"))},null,null,"Alt+Shift+O");G.setToggleAction(!0);G.setSelectedCallback(function(){return p.connectionHandler.isEnabled()});G=this.addAction("copyConnect",
-function(){p.connectionHandler.setCreateTarget(!p.connectionHandler.isCreateTarget());m.fireEvent(new mxEventObject("copyConnectChanged"))});G.setToggleAction(!0);G.setSelectedCallback(function(){return p.connectionHandler.isCreateTarget()});G.isEnabled=B;G=this.addAction("autosave",function(){m.editor.setAutosave(!m.editor.autosave)});G.setToggleAction(!0);G.setSelectedCallback(function(){return m.editor.autosave});G.isEnabled=B;G.visible=!1;this.addAction("help",function(){var F="";mxResources.isLanguageSupported(mxClient.language)&&
+function(){p.connectionHandler.setCreateTarget(!p.connectionHandler.isCreateTarget());m.fireEvent(new mxEventObject("copyConnectChanged"))});G.setToggleAction(!0);G.setSelectedCallback(function(){return p.connectionHandler.isCreateTarget()});G.isEnabled=A;G=this.addAction("autosave",function(){m.editor.setAutosave(!m.editor.autosave)});G.setToggleAction(!0);G.setSelectedCallback(function(){return m.editor.autosave});G.isEnabled=A;G.visible=!1;this.addAction("help",function(){var F="";mxResources.isLanguageSupported(mxClient.language)&&
(F="_"+mxClient.language);p.openLink(RESOURCES_PATH+"/help"+F+".html")});var S=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){S||(m.showDialog((new AboutDialog(m)).container,320,280,!0,!0,function(){S=!1}),S=!0)}));G=mxUtils.bind(this,function(F,P,R,T){return this.addAction(F,function(){if(null!=R&&p.cellEditor.isContentEditing())R();else{p.stopEditing(!1);p.getModel().beginUpdate();try{var c=p.getEditableCells(p.getSelectionCells());p.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
P,c);(P&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?p.updateLabelElements(c,function(k){k.style.fontWeight=null;"B"==k.nodeName&&p.replaceElement(k)}):(P&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?p.updateLabelElements(c,function(k){k.style.fontStyle=null;"I"==k.nodeName&&p.replaceElement(k)}):(P&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&p.updateLabelElements(c,function(k){k.style.textDecoration=null;"U"==k.nodeName&&p.replaceElement(k)});for(var f=0;f<c.length;f++)0==p.model.getChildCount(c[f])&&
p.autoSizeCell(c[f],!1)}finally{p.getModel().endUpdate()}}},null,null,T)});G("bold",mxConstants.FONT_BOLD,function(){document.execCommand("bold",!1,null)},Editor.ctrlKey+"+B");G("italic",mxConstants.FONT_ITALIC,function(){document.execCommand("italic",!1,null)},Editor.ctrlKey+"+I");G("underline",mxConstants.FONT_UNDERLINE,function(){document.execCommand("underline",!1,null)},Editor.ctrlKey+"+U");this.addAction("fontColor...",function(){m.menus.pickColor(mxConstants.STYLE_FONTCOLOR,"forecolor","000000",
@@ -3047,45 +3062,45 @@ F[P];p.getModel().isEdge(R)&&(p.setCellStyles(mxConstants.STYLE_EXIT_X,null,[R])
null!=T&&(T=T.clone(),T.points=null,T.x=0,T.y=0,T.offset=null,p.getModel().setGeometry(R,T))}}}finally{p.getModel().endUpdate()}}},null,null,"Alt+Shift+R");G=this.addAction("subscript",mxUtils.bind(this,function(){p.cellEditor.isContentEditing()&&document.execCommand("subscript",!1,null)}),null,null,Editor.ctrlKey+"+,");G=this.addAction("superscript",mxUtils.bind(this,function(){p.cellEditor.isContentEditing()&&document.execCommand("superscript",!1,null)}),null,null,Editor.ctrlKey+"+.");G=this.addAction("decreaseFontSize",
mxUtils.bind(this,function(){if(!p.isSelectionEmpty()){var F=p.getCurrentCellStyle(p.getSelectionCell());F=mxUtils.getValue(F,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);p.setCellStyles(mxConstants.STYLE_FONTSIZE,Math.max(1,F-1),p.getSelectionCells())}}),null,null,Editor.ctrlKey+"+Shift + (Numpad)");G=this.addAction("increaseFontSize",mxUtils.bind(this,function(){if(!p.isSelectionEmpty()){var F=p.getCurrentCellStyle(p.getSelectionCell());F=mxUtils.getValue(F,mxConstants.STYLE_FONTSIZE,
mxConstants.DEFAULT_FONTSIZE);p.setCellStyles(mxConstants.STYLE_FONTSIZE,Math.min(100,F+1),p.getSelectionCells())}}),null,null,Editor.ctrlKey+"+Shift - (Numpad)");this.addAction("image...",function(){if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())){var F=mxResources.get("image")+" ("+mxResources.get("url")+"):",P=p.getView().getState(p.getSelectionCell()),R="",T=null;null!=P&&(R=P.style[mxConstants.STYLE_IMAGE]||R,T=P.style[mxConstants.STYLE_CLIP_PATH]||T);var c=p.cellEditor.saveSelection();
-m.showImageDialog(F,R,function(f,k,A,z,C,I){if(p.cellEditor.isContentEditing())p.cellEditor.restoreSelection(c),p.insertImage(f,k,A);else{var L=p.getSelectionCells();if(null!=f&&(0<f.length||0<L.length)){var K=null;p.getModel().beginUpdate();try{if(0==L.length){L=[p.insertVertex(p.getDefaultParent(),null,"",0,0,k,A,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")];var O=p.getCenterInsertPoint(p.getBoundingBoxFromGeometry(L,!0));L[0].geometry.x=O.x;L[0].geometry.y=
-O.y;null!=z&&g(L[0],z,C,I,p);K=L;p.fireEvent(new mxEventObject("cellsInserted","cells",K))}p.setCellStyles(mxConstants.STYLE_IMAGE,0<f.length?f:null,L);var da=p.getCurrentCellStyle(L[0]);"image"!=da[mxConstants.STYLE_SHAPE]&&"label"!=da[mxConstants.STYLE_SHAPE]?p.setCellStyles(mxConstants.STYLE_SHAPE,"image",L):0==f.length&&p.setCellStyles(mxConstants.STYLE_SHAPE,null,L);null==z&&p.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,L);if(null!=k&&null!=A)for(f=0;f<L.length;f++){var ea=L[f];if("0"!=p.getCurrentCellStyle(ea).expand){var ca=
-p.getModel().getGeometry(ea);null!=ca&&(ca=ca.clone(),ca.width=k,ca.height=A,p.getModel().setGeometry(ea,ca))}null!=z&&g(ea,z,C,I,p)}}finally{p.getModel().endUpdate()}null!=K&&(p.setSelectionCells(K),p.scrollCellToVisible(K[0]))}}},p.cellEditor.isContentEditing(),!p.cellEditor.isContentEditing(),!0,T)}}).isEnabled=B;this.addAction("crop...",function(){var F=p.getSelectionCell();if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&null!=F){var P=p.getCurrentCellStyle(F),R=P[mxConstants.STYLE_IMAGE],
-T=P[mxConstants.STYLE_SHAPE];R&&"image"==T&&(P=new CropImageDialog(m,R,P[mxConstants.STYLE_CLIP_PATH],function(c,f,k){g(F,c,f,k,p)}),m.showDialog(P.container,300,390,!0,!0))}}).isEnabled=B;G=this.addAction("layers",mxUtils.bind(this,function(){null==this.layersWindow?(this.layersWindow=new LayersWindow(m,document.body.offsetWidth-280,120,212,200),this.layersWindow.window.addListener("show",mxUtils.bind(this,function(){m.fireEvent(new mxEventObject("layers"))})),this.layersWindow.window.addListener("hide",
+m.showImageDialog(F,R,function(f,k,B,z,C,I){if(p.cellEditor.isContentEditing())p.cellEditor.restoreSelection(c),p.insertImage(f,k,B);else{var L=p.getSelectionCells();if(null!=f&&(0<f.length||0<L.length)){var K=null;p.getModel().beginUpdate();try{if(0==L.length){L=[p.insertVertex(p.getDefaultParent(),null,"",0,0,k,B,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")];var O=p.getCenterInsertPoint(p.getBoundingBoxFromGeometry(L,!0));L[0].geometry.x=O.x;L[0].geometry.y=
+O.y;null!=z&&g(L[0],z,C,I,p);K=L;p.fireEvent(new mxEventObject("cellsInserted","cells",K))}p.setCellStyles(mxConstants.STYLE_IMAGE,0<f.length?f:null,L);var da=p.getCurrentCellStyle(L[0]);"image"!=da[mxConstants.STYLE_SHAPE]&&"label"!=da[mxConstants.STYLE_SHAPE]?p.setCellStyles(mxConstants.STYLE_SHAPE,"image",L):0==f.length&&p.setCellStyles(mxConstants.STYLE_SHAPE,null,L);null==z&&p.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,L);if(null!=k&&null!=B)for(f=0;f<L.length;f++){var ea=L[f];if("0"!=p.getCurrentCellStyle(ea).expand){var ca=
+p.getModel().getGeometry(ea);null!=ca&&(ca=ca.clone(),ca.width=k,ca.height=B,p.getModel().setGeometry(ea,ca))}null!=z&&g(ea,z,C,I,p)}}finally{p.getModel().endUpdate()}null!=K&&(p.setSelectionCells(K),p.scrollCellToVisible(K[0]))}}},p.cellEditor.isContentEditing(),!p.cellEditor.isContentEditing(),!0,T)}}).isEnabled=A;this.addAction("crop...",function(){var F=p.getSelectionCell();if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&null!=F){var P=p.getCurrentCellStyle(F),R=P[mxConstants.STYLE_IMAGE],
+T=P[mxConstants.STYLE_SHAPE];R&&"image"==T&&(P=new CropImageDialog(m,R,P[mxConstants.STYLE_CLIP_PATH],function(c,f,k){g(F,c,f,k,p)}),m.showDialog(P.container,300,390,!0,!0))}}).isEnabled=A;G=this.addAction("layers",mxUtils.bind(this,function(){null==this.layersWindow?(this.layersWindow=new LayersWindow(m,document.body.offsetWidth-280,120,212,200),this.layersWindow.window.addListener("show",mxUtils.bind(this,function(){m.fireEvent(new mxEventObject("layers"))})),this.layersWindow.window.addListener("hide",
function(){m.fireEvent(new mxEventObject("layers"))}),this.layersWindow.window.setVisible(!0),m.fireEvent(new mxEventObject("layers")),this.layersWindow.init()):this.layersWindow.window.setVisible(!this.layersWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+Shift+L");G.setToggleAction(!0);G.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.layersWindow&&this.layersWindow.window.isVisible()}));G=this.addAction("format",mxUtils.bind(this,function(){m.toggleFormatPanel()}),null,
null,Editor.ctrlKey+"+Shift+P");G.setToggleAction(!0);G.setSelectedCallback(mxUtils.bind(this,function(){return m.isFormatPanelVisible()}));G=this.addAction("outline",mxUtils.bind(this,function(){null==this.outlineWindow?(this.outlineWindow=new OutlineWindow(m,document.body.offsetWidth-260,100,180,180),this.outlineWindow.window.addListener("show",mxUtils.bind(this,function(){m.fireEvent(new mxEventObject("outline"))})),this.outlineWindow.window.addListener("hide",function(){m.fireEvent(new mxEventObject("outline"))}),
this.outlineWindow.window.setVisible(!0),m.fireEvent(new mxEventObject("outline"))):this.outlineWindow.window.setVisible(!this.outlineWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+Shift+O");G.setToggleAction(!0);G.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.outlineWindow&&this.outlineWindow.window.isVisible()}));this.addAction("editConnectionPoints...",function(){var F=p.getSelectionCell();if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&null!=F&&null!=F.geometry){var P=
-new ConnectionPointsDialog(m,F);m.showDialog(P.container,350,450,!0,!1,function(){P.destroy()});P.init()}},null,null,"Alt+Shift+Q").isEnabled=B};Actions.prototype.addAction=function(b,e,g,m,v){if("..."==b.substring(b.length-3)){b=b.substring(0,b.length-3);var p=mxResources.get(b)+"..."}else p=mxResources.get(b);return this.put(b,new Action(p,e,g,m,v))};Actions.prototype.put=function(b,e){return this.actions[b]=e};Actions.prototype.get=function(b){return this.actions[b]};
+new ConnectionPointsDialog(m,F);m.showDialog(P.container,350,450,!0,!1,function(){P.destroy()});P.init()}},null,null,"Alt+Shift+Q").isEnabled=A};Actions.prototype.addAction=function(b,e,g,m,v){if("..."==b.substring(b.length-3)){b=b.substring(0,b.length-3);var p=mxResources.get(b)+"..."}else p=mxResources.get(b);return this.put(b,new Action(p,e,g,m,v))};Actions.prototype.put=function(b,e){return this.actions[b]=e};Actions.prototype.get=function(b){return this.actions[b]};
function Action(b,e,g,m,v){mxEventSource.call(this);this.label=b;this.funct=this.createFunction(e);this.enabled=null!=g?g:!0;this.iconCls=m;this.shortcut=v;this.visible=!0}mxUtils.extend(Action,mxEventSource);Action.prototype.createFunction=function(b){return b};Action.prototype.setEnabled=function(b){this.enabled!=b&&(this.enabled=b,this.fireEvent(new mxEventObject("stateChanged")))};Action.prototype.isEnabled=function(){return this.enabled};
Action.prototype.setToggleAction=function(b){this.toggleAction=b};Action.prototype.setSelectedCallback=function(b){this.selectedCallback=b};Action.prototype.isSelected=function(){return this.selectedCallback()};DrawioFile=function(b,e){mxEventSource.call(this);this.ui=b;this.setData(e||"");this.initialData=this.getData();this.created=(new Date).getTime();this.stats={opened:0,merged:0,fileMerged:0,fileReloaded:0,conflicts:0,timeouts:0,saved:0,closed:0,destroyed:0,joined:0,checksumErrors:0,bytesSent:0,bytesReceived:0,msgSent:0,msgReceived:0,cacheHits:0,cacheMiss:0,cacheFail:0}};DrawioFile.SYNC=urlParams.sync||"auto";DrawioFile.LAST_WRITE_WINS=!0;DrawioFile.RESTRICT_EXPORT=!1;mxUtils.extend(DrawioFile,mxEventSource);
DrawioFile.prototype.allChangesSavedKey="allChangesSaved";DrawioFile.prototype.savingSpinnerKey="saving";DrawioFile.prototype.savingStatusKey="saving";DrawioFile.prototype.autosaveDelay=1500;DrawioFile.prototype.maxAutosaveDelay=3E4;DrawioFile.prototype.optimisticSyncDelay=300;DrawioFile.prototype.autosaveThread=null;DrawioFile.prototype.lastAutosave=null;DrawioFile.prototype.lastSaved=null;DrawioFile.prototype.lastChanged=null;DrawioFile.prototype.opened=null;DrawioFile.prototype.modified=!1;
DrawioFile.prototype.shadowModified=!1;DrawioFile.prototype.data=null;DrawioFile.prototype.shadowPages=null;DrawioFile.prototype.changeListenerEnabled=!0;DrawioFile.prototype.lastAutosaveRevision=null;DrawioFile.prototype.maxAutosaveRevisionDelay=3E5;DrawioFile.prototype.inConflictState=!1;DrawioFile.prototype.invalidChecksum=!1;DrawioFile.prototype.ageStart=null;DrawioFile.prototype.getSize=function(){return null!=this.data?this.data.length:0};
DrawioFile.prototype.getShadowPages=function(){null==this.shadowPages&&(this.shadowPages=this.ui.getPagesForXml(this.initialData));return this.shadowPages};DrawioFile.prototype.setShadowPages=function(b){this.shadowPages=b};
-DrawioFile.prototype.synchronizeFile=function(b,e){if(this.savingFile)null!=e&&e({message:mxResources.get("busy")});else{var g=!0,m=window.setTimeout(mxUtils.bind(this,function(){g=!1;null!=e&&e({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,e)})})}),this.ui.timeout),v=mxUtils.bind(this,function(B){g&&(window.clearTimeout(m),null!=e&&e(B))}),p=mxUtils.bind(this,function(){return!g});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,
-function(B){g&&(window.clearTimeout(m),this.sync.cleanup(b,e,B))}),v,p):this.updateFile(mxUtils.bind(this,function(){g&&(window.clearTimeout(m),null!=b&&b())}),v,p)}};
+DrawioFile.prototype.synchronizeFile=function(b,e){if(this.savingFile)null!=e&&e({message:mxResources.get("busy")});else{var g=!0,m=window.setTimeout(mxUtils.bind(this,function(){g=!1;null!=e&&e({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,e)})})}),this.ui.timeout),v=mxUtils.bind(this,function(A){g&&(window.clearTimeout(m),null!=e&&e(A))}),p=mxUtils.bind(this,function(){return!g});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,
+function(A){g&&(window.clearTimeout(m),this.sync.cleanup(b,e,A))}),v,p):this.updateFile(mxUtils.bind(this,function(){g&&(window.clearTimeout(m),null!=b&&b())}),v,p)}};
DrawioFile.prototype.updateFile=function(b,e,g,m,v){null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",v,"invalidChecksum",this.invalidChecksum),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():this.getLatestVersion(mxUtils.bind(this,function(p){try{null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[p]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():null!=p?this.mergeFile(p,b,e,
-m,v):this.reloadFile(b,e))}catch(B){null!=e&&e(B)}}),e))};
-DrawioFile.prototype.mergeFile=function(b,e,g,m,v){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var B=this.getShadowPages(),G=[this.ui.diffPages(null!=m?m:B,p)],S=this.ignorePatches(G);if(S)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",S),null!=e&&e();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var F=this.isModified()?this.ui.diffPages(B,
-this.isRealtime()?this.ownPages:this.ui.pages):null,P=this.ui.patchPages(this.ui.clonePages(B),G[0]),R=this.ui.getHashValueForPages(P,{}),T=this.ui.getHashValueForPages(p,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",B,"pages",p,"patched",P,"patches",G,"changes",F,"checksum",R,"current",T,"valid",R==T,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",v);if(null!=R&&R!=T)this.checksumError(g,G,null,null,"mergeFile",
-R,T,b.getCurrentRevisionId());else{this.setShadowPages(p);if(null!=this.sync){var c=this.sync.patchRealtime(G,DrawioFile.LAST_WRITE_WINS?F:null,null,v);null==c||mxUtils.isEmptyObject(c)||G.push(c)}this.patch(G,DrawioFile.LAST_WRITE_WINS?F:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();null!=e&&e()}}catch(A){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=g&&g(A);try{var f=this.getCurrentUser(),k=null!=f?
-f.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),k,A)}catch(z){}}}else throw Error(mxResources.get("notADiagramFile"));}catch(A){null!=g&&g(A)}};
+m,v):this.reloadFile(b,e))}catch(A){null!=e&&e(A)}}),e))};
+DrawioFile.prototype.mergeFile=function(b,e,g,m,v){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var A=this.getShadowPages(),G=[this.ui.diffPages(null!=m?m:A,p)],S=this.ignorePatches(G);if(S)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",S),null!=e&&e();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var F=this.isModified()?this.ui.diffPages(A,
+this.isRealtime()?this.ownPages:this.ui.pages):null,P=this.ui.patchPages(this.ui.clonePages(A),G[0]),R=this.ui.getHashValueForPages(P,{}),T=this.ui.getHashValueForPages(p,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",A,"pages",p,"patched",P,"patches",G,"changes",F,"checksum",R,"current",T,"valid",R==T,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",v);if(null!=R&&R!=T)this.checksumError(g,G,null,null,"mergeFile",
+R,T,b.getCurrentRevisionId());else{this.setShadowPages(p);if(null!=this.sync){var c=this.sync.patchRealtime(G,DrawioFile.LAST_WRITE_WINS?F:null,null,v);null==c||mxUtils.isEmptyObject(c)||G.push(c)}this.patch(G,DrawioFile.LAST_WRITE_WINS?F:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();null!=e&&e()}}catch(B){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=g&&g(B);try{var f=this.getCurrentUser(),k=null!=f?
+f.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),k,B)}catch(z){}}}else throw Error(mxResources.get("notADiagramFile"));}catch(B){null!=g&&g(B)}};
DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var e=new mxCodec(mxUtils.createXmlDocument()),g=e.document.createElement("mxfile");if(null!=b)for(var m=0;m<b.length;m++){var v=e.encode(new mxGraphModel(b[m].root));"1"!=urlParams.dev&&(v=this.ui.anonymizeNode(v,!0));v.setAttribute("id",b[m].getId());b[m].viewState&&this.ui.editor.graph.saveViewState(b[m].viewState,v,!0);g.appendChild(v)}return mxUtils.getPrettyXml(g)};
DrawioFile.prototype.compressReportData=function(b,e,g){e=null!=e?e:1E4;null!=g&&null!=b&&b.length>g?b=b.substring(0,g)+"[...]":null!=b&&b.length>e&&(b=Graph.compress(b)+"\n");return b};
-DrawioFile.prototype.checksumError=function(b,e,g,m,v,p,B,G){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var S=this.getCurrentUser(),F=null!=S?S.id:"unknown",P=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",R=JSON.stringify(e).length,T=null;if(null!=e&&1E3>R){for(b=0;b<e.length;b++)this.ui.anonymizePatch(e[b]);T=JSON.stringify(e);T=null!=T&&1E3>T.length?Graph.compress(T):
-null}this.getLatestVersion(mxUtils.bind(this,function(c){try{var f=null!=T?"report":"error",k=this.ui.getHashValueForPages(c.getShadowPages()),A="unknown",z="unknown",C="unknown";try{var I=null!=c.initialData&&0<c.initialData.length?mxUtils.parseXml(c.initialData).documentElement:null;null!=I&&(null!=I.getAttribute("version")&&(A=I.getAttribute("version")),null!=I.getAttribute("agent")&&(z=I.getAttribute("agent")),null!=I.getAttribute("type")&&(C=I.getAttribute("type")))}catch(L){}EditorUi.logError("Checksum "+
-f+" in "+v,null,this.getMode()+"."+P,"user_"+F+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+R+"-patches_"+e.length+(null!=T?"-json_"+T:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=B?"-current_"+B:"")+(null!=G?"-rev_"+this.ui.hashValue(G):"")+(null!=k?"-latest_"+k:"")+"-latestRev_"+this.ui.hashValue(c.getCurrentRevisionId())+("-latestVersion_"+A)+("-latestAgent_"+z)+("-latestType_"+C));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+P,action:v,label:"user_"+
+DrawioFile.prototype.checksumError=function(b,e,g,m,v,p,A,G){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var S=this.getCurrentUser(),F=null!=S?S.id:"unknown",P=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",R=JSON.stringify(e).length,T=null;if(null!=e&&1E3>R){for(b=0;b<e.length;b++)this.ui.anonymizePatch(e[b]);T=JSON.stringify(e);T=null!=T&&1E3>T.length?Graph.compress(T):
+null}this.getLatestVersion(mxUtils.bind(this,function(c){try{var f=null!=T?"report":"error",k=this.ui.getHashValueForPages(c.getShadowPages()),B="unknown",z="unknown",C="unknown";try{var I=null!=c.initialData&&0<c.initialData.length?mxUtils.parseXml(c.initialData).documentElement:null;null!=I&&(null!=I.getAttribute("version")&&(B=I.getAttribute("version")),null!=I.getAttribute("agent")&&(z=I.getAttribute("agent")),null!=I.getAttribute("type")&&(C=I.getAttribute("type")))}catch(L){}EditorUi.logError("Checksum "+
+f+" in "+v,null,this.getMode()+"."+P,"user_"+F+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+R+"-patches_"+e.length+(null!=T?"-json_"+T:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=A?"-current_"+A:"")+(null!=G?"-rev_"+this.ui.hashValue(G):"")+(null!=k?"-latest_"+k:"")+"-latestRev_"+this.ui.hashValue(c.getCurrentRevisionId())+("-latestVersion_"+B)+("-latestAgent_"+z)+("-latestType_"+C));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+P,action:v,label:"user_"+
F+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+R+"-patches_"+e.length+"-size_"+this.getSize()})}catch(L){}}),function(){})}catch(c){}};
-DrawioFile.prototype.sendErrorReport=function(b,e,g,m){try{var v=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),B=this.getCurrentUser(),G=null!=B?this.ui.hashValue(B.id):"unknown",S=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",F=this.getTitle(),P=F.lastIndexOf(".");B="xml";0<P&&(B=F.substring(P));var R=null!=g?g.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
-":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+B+")\nUser="+G+S+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=e?"\n\n"+e:
+DrawioFile.prototype.sendErrorReport=function(b,e,g,m){try{var v=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),A=this.getCurrentUser(),G=null!=A?this.ui.hashValue(A.id):"unknown",S=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",F=this.getTitle(),P=F.lastIndexOf(".");A="xml";0<P&&(A=F.substring(P));var R=null!=g?g.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
+":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+A+")\nUser="+G+S+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=e?"\n\n"+e:
"")+(null!=g?"\n\nError: "+g.message:"")+"\n\nStack:\n"+R+"\n\nShadow:\n"+v+"\n\nData:\n"+p,m)}catch(T){}};
-DrawioFile.prototype.reloadFile=function(b,e){try{this.stats.fileReloaded++;var g=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),m=this.ui.editor.graph,v=m.getSelectionCells(),p=m.getViewState(),B=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(G){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[g],"viewState",[p],"latestFile",G);null!=G?(this.ui.replaceFileData(G.getData(),
-[g]),this.ui.restoreViewState(B,p,v),this.setDescriptor(G.getDescriptor()),this.descriptorChanged(),null!=b&&b()):(this.ui.spinner.stop(),this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){var S=this.ui.getCurrentFile();null!=S&&(S.stats=this.stats,S.patch([g]),S.fileChanged());this.ui.restoreViewState(B,p,v);null!=b&&b()}else null!=e&&e(this.ui.fileLoadedError)}),!0))}),e)}catch(G){null!=e&&e(G)}};
+DrawioFile.prototype.reloadFile=function(b,e){try{this.stats.fileReloaded++;var g=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),m=this.ui.editor.graph,v=m.getSelectionCells(),p=m.getViewState(),A=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(G){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[g],"viewState",[p],"latestFile",G);null!=G?(this.ui.replaceFileData(G.getData(),
+[g]),this.ui.restoreViewState(A,p,v),this.setDescriptor(G.getDescriptor()),this.descriptorChanged(),null!=b&&b()):(this.ui.spinner.stop(),this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){var S=this.ui.getCurrentFile();null!=S&&(S.stats=this.stats,S.patch([g]),S.fileChanged());this.ui.restoreViewState(A,p,v);null!=b&&b()}else null!=e&&e(this.ui.fileLoadedError)}),!0))}),e)}catch(G){null!=e&&e(G)}};
DrawioFile.prototype.copyFile=function(b,e){this.ui.editor.editAsNew(this.ui.getFileData(!0),this.ui.getCopyFilename(this))};DrawioFile.prototype.ignorePatches=function(b){var e=!0;if(null!=b)for(var g=0;g<b.length&&e;g++)e=e&&mxUtils.isEmptyObject(b[g]);return e};
-DrawioFile.prototype.patch=function(b,e,g,m){if(null!=b){var v=this.ui.editor.undoManager,p=v.history.slice(),B=v.indexOfNextAdd,G=this.ui.editor.graph;G.container.style.visibility="hidden";var S=this.changeListenerEnabled;this.changeListenerEnabled=g;var F=G.foldingEnabled,P=G.mathEnabled,R=G.cellRenderer.redraw;G.cellRenderer.redraw=function(z){z.view.graph.isEditing(z.cell)&&(z.view.graph.scrollCellToVisible(z.cell),z.view.graph.cellEditor.resize());R.apply(this,arguments)};G.model.beginUpdate();
-try{if(g){for(var T=this.ui.pages.slice(),c=this.ui.currentPage,f=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified()),k=0;k<f.length;k++){var A=mxUtils.indexOf(this.ui.pages,f[k]);0>A?this.ui.insertPage(f[k],Math.min(k,this.ui.pages.length)):this.ui.movePage(A,k)}for(k=0;k<T.length;k++)0>mxUtils.indexOf(f,T[k])&&this.ui.removePage(T[k]);0<=mxUtils.indexOf(this.ui.pages,c)&&this.ui.selectPage(c,!0)}else this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified());0==this.ui.pages.length&&
-this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);G.checkDefaultParent()}finally{G.container.style.visibility="";G.model.endUpdate();G.cellRenderer.redraw=R;this.changeListenerEnabled=S;g||(v.history=p,v.indexOfNextAdd=B,v.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)P!=G.mathEnabled?(this.ui.editor.updateGraphComponents(),G.refresh()):(F!=G.foldingEnabled?
+DrawioFile.prototype.patch=function(b,e,g,m){if(null!=b){var v=this.ui.editor.undoManager,p=v.history.slice(),A=v.indexOfNextAdd,G=this.ui.editor.graph;G.container.style.visibility="hidden";var S=this.changeListenerEnabled;this.changeListenerEnabled=g;var F=G.foldingEnabled,P=G.mathEnabled,R=G.cellRenderer.redraw;G.cellRenderer.redraw=function(z){z.view.graph.isEditing(z.cell)&&(z.view.graph.scrollCellToVisible(z.cell),z.view.graph.cellEditor.resize());R.apply(this,arguments)};G.model.beginUpdate();
+try{if(g){for(var T=this.ui.pages.slice(),c=this.ui.currentPage,f=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified()),k=0;k<f.length;k++){var B=mxUtils.indexOf(this.ui.pages,f[k]);0>B?this.ui.insertPage(f[k],Math.min(k,this.ui.pages.length)):this.ui.movePage(B,k)}for(k=0;k<T.length;k++)0>mxUtils.indexOf(f,T[k])&&this.ui.removePage(T[k]);0<=mxUtils.indexOf(this.ui.pages,c)&&this.ui.selectPage(c,!0)}else this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified());0==this.ui.pages.length&&
+this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);G.checkDefaultParent()}finally{G.container.style.visibility="";G.model.endUpdate();G.cellRenderer.redraw=R;this.changeListenerEnabled=S;g||(v.history=p,v.indexOfNextAdd=A,v.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)P!=G.mathEnabled?(this.ui.editor.updateGraphComponents(),G.refresh()):(F!=G.foldingEnabled?
G.view.revalidate():G.view.validate(),G.sizeDidChange());null!=this.sync&&this.isRealtime()&&!m&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",e,"undoable",g)}return b};
DrawioFile.prototype.save=function(b,e,g,m,v,p){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",m,"overwrite",v,"manual",p,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!v&&this.invalidChecksum)if(null!=g)g({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=e&&e();else if(null!=g)g({message:mxResources.get("readOnly")});
-else throw Error(mxResources.get("readOnly"));}catch(B){if(null!=g)g(B);else throw B;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var e=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=e&&(e.viewState=this.ui.editor.graph.getViewState(),e.needsUpdate=!0)}e=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return e};
+else throw Error(mxResources.get("readOnly"));}catch(A){if(null!=g)g(A);else throw A;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var e=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=e&&(e.viewState=this.ui.editor.graph.getViewState(),e.needsUpdate=!0)}e=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return e};
DrawioFile.prototype.updateFileData=function(){null!=this.sync&&this.sync.sendLocalChanges();this.setData(this.createData());null!=this.sync&&this.sync.fileDataUpdated()};DrawioFile.prototype.isCompressedStorage=function(){return Editor.defaultCompressed};DrawioFile.prototype.isCompressed=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("compressed"):null;return null!=b?"false"!=b:this.isCompressedStorage()&&Editor.compressXml};
DrawioFile.prototype.setLocked=function(b){this.ui.fileNode.setAttribute("locked",b?"true":"false");this.ui.fireEvent(new mxEventObject("lockedChanged"));this.fileChanged();b&&this.ui.editor.graph.clearSelection()};DrawioFile.prototype.isLocked=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("locked"):null;return null!=b?"true"==b:!1};DrawioFile.prototype.saveAs=function(b,e,g){};DrawioFile.prototype.saveFile=function(b,e,g,m){};DrawioFile.prototype.getFileUrl=function(){return null};
DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified};DrawioFile.prototype.setShadowModified=function(b){this.shadowModified=b};DrawioFile.prototype.setModified=function(b){this.shadowModified=this.modified=b};
@@ -3124,7 +3139,7 @@ DrawioFile.prototype.handleFileSuccess=function(b){this.ui.spinner.stop();this.u
this.sync&&(this.sync.resetUpdateStatusThread(),this.sync.remoteFileChanged&&(this.sync.remoteFileChanged=!1,this.sync.fileChangedNotify()))):this.ui.editor.setStatus(""))};
DrawioFile.prototype.handleFileError=function(b,e){this.ui.spinner.stop();this.ui.getCurrentFile()==this&&(this.inConflictState?this.handleConflictError(b,e):(this.isModified()&&this.addUnsavedStatus(b),e?this.ui.handleError(b,null!=b?mxResources.get("errorSavingFile"):null):this.isModified()||(b=this.getErrorMessage(b),null!=b&&60<b.length&&(b=b.substring(0,60)+"..."),this.ui.editor.setStatus('<div class="geStatusAlert">'+mxUtils.htmlEntities(mxResources.get("error"))+(null!=b?" ("+mxUtils.htmlEntities(b)+
")":"")+"</div>"))))};
-DrawioFile.prototype.handleConflictError=function(b,e){var g=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),m=mxUtils.bind(this,function(B){this.handleFileError(B,!0)}),v=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.editor.setStatus(""),this.save(!0,g,m,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),p=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
+DrawioFile.prototype.handleConflictError=function(b,e){var g=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),m=mxUtils.bind(this,function(A){this.handleFileError(A,!0)}),v=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.editor.setStatus(""),this.save(!0,g,m,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),p=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,g,m,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),m)});"none"==DrawioFile.SYNC?this.showCopyDialog(g,m,v):this.invalidChecksum&&e?this.showRefreshDialog(g,m,this.getErrorMessage(b)):e?this.showConflictDialog(v,p):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));
this.synchronizeFile(g,m)}))};DrawioFile.prototype.getErrorMessage=function(b){var e=null!=b?null!=b.error?b.error.message:b.message:null;null==e&&null!=b&&b.code==App.ERROR_TIMEOUT?e=mxResources.get("timeout"):"0"==e&&(e=mxResources.get("noResponse"));return e};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval};
DrawioFile.prototype.compressionChanged=function(b){var e=null!=this.ownPages?this.ownPages:this.ui.pages;if(null!=e)for(var g=0;g<e.length;g++){var m=e[g].node;if(null!=m&&(null==this.ui.currentPage||this.ui.currentPage.getId()!=e[g].getId())){var v=m.getElementsByTagName("mxGraphModel");v=0<v.length?v[0]:null;var p=Graph.decompress(mxUtils.getNodeValue(m));b?0==p.length&&null!=v&&(EditorUi.removeChildNodes(m),mxUtils.setTextContent(m,Graph.compressNode(v)),EditorUi.debug("DrawioFile.compressionChanged",
@@ -3132,19 +3147,19 @@ DrawioFile.prototype.compressionChanged=function(b){var e=null!=this.ownPages?th
DrawioFile.prototype.fileChanged=function(b){b=null!=b?b:!0;this.lastChanged=new Date;this.setModified(!0);EditorUi.debug("DrawioFile.fileChanged",[this],"autosaveDelay",this.autosaveDelay,"autosave",this.isAutosave(),"saving",this.savingFile);this.isAutosave()?(null!=this.savingStatusKey&&this.addAllSavedStatus(mxUtils.htmlEntities(mxResources.get(this.savingStatusKey))+"..."),this.ui.scheduleSanityCheck(),null==this.ageStart&&(this.ageStart=new Date),this.autosave(this.autosaveDelay,this.maxAutosaveDelay,
mxUtils.bind(this,function(e){this.ui.stopSanityCheck();null==this.autosaveThread?(this.handleFileSuccess(!0),this.ageStart=null):this.isModified()&&(this.ui.scheduleSanityCheck(),this.ageStart=this.lastChanged)}),mxUtils.bind(this,function(e){this.handleFileError(e)}))):(this.ageStart=null,this.isAutosaveOptional()&&this.ui.editor.autosave||this.inConflictState||this.addUnsavedStatus());null!=this.sync&&b&&this.sync.localFileChanged()};
DrawioFile.prototype.createSecret=function(b){var e=Editor.guid(32);Editor.enableRealtimeCache&&null!=this.sync&&!this.isOptimisticSync()?this.sync.createToken(e,mxUtils.bind(this,function(g){EditorUi.debug("DrawioFile.createSecret",[this],"secret",e,"token",g);b(e,g)}),mxUtils.bind(this,function(){b(e)})):b(e)};DrawioFile.prototype.fileSaving=function(){null!=this.sync&&this.sync.fileSaving()};
-DrawioFile.prototype.fileSaved=function(b,e,g,m,v,p,B){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;p=null!=p?p:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(p),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=g&&g()):this.sync.fileSaved(p,e,g,m,v,B)}catch(F){this.invalidChecksum=
+DrawioFile.prototype.fileSaved=function(b,e,g,m,v,p,A){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;p=null!=p?p:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(p),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=g&&g()):this.sync.fileSaved(p,e,g,m,v,A)}catch(F){this.invalidChecksum=
this.inConflictState=!0;this.descriptorChanged();null!=m&&m(F);try{var G=this.getCurrentUser(),S=null!=G?G.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),S,F)}catch(P){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[e],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(F){this.descriptorChanged(),null!=m&&m(F)}};
-DrawioFile.prototype.autosave=function(b,e,g,m){null==this.lastAutosave&&(this.lastAutosave=Date.now());var v=Date.now()-this.lastAutosave<e?b:0;this.clearAutosave();var p=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==p&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var B=this.isAutosaveRevision();
-B&&(this.lastAutosaveRevision=(new Date).getTime());this.save(B,mxUtils.bind(this,function(G){this.autosaveCompleted();null!=g&&g(G)}),mxUtils.bind(this,function(G){null!=m&&m(G)}))}else this.isModified()||this.ui.editor.setStatus(""),null!=g&&g(null)}catch(G){null!=m&&m(G)}}),v);this.autosaveThread=p;EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"delay",b,"maxDelay",e,"actualDelay",v,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};
+DrawioFile.prototype.autosave=function(b,e,g,m){null==this.lastAutosave&&(this.lastAutosave=Date.now());var v=Date.now()-this.lastAutosave<e?b:0;this.clearAutosave();var p=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==p&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var A=this.isAutosaveRevision();
+A&&(this.lastAutosaveRevision=(new Date).getTime());this.save(A,mxUtils.bind(this,function(G){this.autosaveCompleted();null!=g&&g(G)}),mxUtils.bind(this,function(G){null!=m&&m(G)}))}else this.isModified()||this.ui.editor.setStatus(""),null!=g&&g(null)}catch(G){null!=m&&m(G)}}),v);this.autosaveThread=p;EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"delay",b,"maxDelay",e,"actualDelay",v,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};
DrawioFile.prototype.autosaveCompleted=function(){};DrawioFile.prototype.clearAutosave=function(){null!=this.autosaveThread&&(window.clearTimeout(this.autosaveThread),this.autosaveThread=null)};DrawioFile.prototype.isAutosaveRevision=function(){var b=(new Date).getTime();return null==this.lastAutosaveRevision||b-this.lastAutosaveRevision>this.maxAutosaveRevisionDelay};DrawioFile.prototype.descriptorChanged=function(){this.fireEvent(new mxEventObject("descriptorChanged"))};
DrawioFile.prototype.contentChanged=function(){this.fireEvent(new mxEventObject("contentChanged"))};DrawioFile.prototype.close=function(b){try{this.isAutosave()&&this.isModified()&&(this.updateFileData(),this.save(this.isAutosaveRevision(),null,null,b))}catch(e){}this.stats.closed++;this.destroy()};DrawioFile.prototype.hasSameExtension=function(b,e){if(null!=b&&null!=e){var g=b.lastIndexOf(".");b=0<g?b.substring(g):"";g=e.lastIndexOf(".");return b===(0<g?e.substring(g):"")}return b==e};
DrawioFile.prototype.removeListeners=function(){null!=this.changeListener&&(this.ui.editor.graph.model.removeListener(this.changeListener),this.ui.editor.graph.removeListener(this.changeListener),this.ui.removeListener(this.changeListener),this.changeListener=null)};DrawioFile.prototype.destroy=function(){this.clearAutosave();this.removeListeners();this.stats.destroyed++;null!=this.sync&&(this.sync.destroy(),this.sync=null)};DrawioFile.prototype.commentsSupported=function(){return!1};
-DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,m,v,p,B){DrawioFile.call(this,b,e);this.title=g;this.mode=m?null:App.MODE_DEVICE;this.fileHandle=v;this.desc=p;this.editable=B};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};
+DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,m,v,p,A){DrawioFile.call(this,b,e);this.title=g;this.mode=m?null:App.MODE_DEVICE;this.fileHandle=v;this.desc=p;this.editable=A};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};
LocalFile.prototype.getTitle=function(){return this.title};LocalFile.prototype.isRenamable=function(){return!0};LocalFile.prototype.isEditable=function(){return DrawioFile.prototype.isEditable.apply(this,arguments)&&(null==this.editable||this.editable)};LocalFile.prototype.setEditable=function(b){this.editable=b;this.descriptorChanged()};LocalFile.prototype.save=function(b,e,g,m,v){this.saveAs(this.title,e,g,m,v)};LocalFile.prototype.saveAs=function(b,e,g,m,v){this.saveFile(b,!1,e,g,null,m,v)};
LocalFile.prototype.getDescriptor=function(){return this.desc};LocalFile.prototype.setDescriptor=function(b){this.desc=b};LocalFile.prototype.getLatestVersion=function(b,e){null==this.fileHandle?null!=e&&e({message:mxResources.get("cannotOpenFile")}):this.ui.loadFileSystemEntry(this.fileHandle,b,e)};
-LocalFile.prototype.saveFile=function(b,e,g,m,v,p,B){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;v||this.updateFileData();var G=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var S=this.getData(),F=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=g&&g()}),P=mxUtils.bind(this,function(R){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
-!0;var T=mxUtils.bind(this,function(f){this.savingFile=!1;null!=m&&m({error:f})});this.saveDraft(S);this.fileHandle.createWritable().then(mxUtils.bind(this,function(f){this.fileHandle.getFile().then(mxUtils.bind(this,function(k){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[k],"conflict",this.desc.lastModified!=k.lastModified);B||this.desc.lastModified==k.lastModified?f.write(G?this.ui.base64ToBlob(R,"image/png"):R).then(mxUtils.bind(this,function(){f.close().then(mxUtils.bind(this,
-function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(A){try{var z=this.desc;this.savingFile=!1;this.desc=A;this.fileSaved(S,z,F,T);this.removeDraft()}catch(C){T(C)}}),T)}),T)}),T):(this.inConflictState=!0,T())}),mxUtils.bind(this,function(k){this.invalidFileHandle=!0;T(k)}))}),T)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(R,b,G?"image/png":"text/xml",G);else if(R.length<MAX_REQUEST_SIZE){var c=b.lastIndexOf(".");c=0<c?b.substring(c+1):"xml";
+LocalFile.prototype.saveFile=function(b,e,g,m,v,p,A){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;v||this.updateFileData();var G=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var S=this.getData(),F=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=g&&g()}),P=mxUtils.bind(this,function(R){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
+!0;var T=mxUtils.bind(this,function(f){this.savingFile=!1;null!=m&&m({error:f})});this.saveDraft(S);this.fileHandle.createWritable().then(mxUtils.bind(this,function(f){this.fileHandle.getFile().then(mxUtils.bind(this,function(k){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[k],"conflict",this.desc.lastModified!=k.lastModified);A||this.desc.lastModified==k.lastModified?f.write(G?this.ui.base64ToBlob(R,"image/png"):R).then(mxUtils.bind(this,function(){f.close().then(mxUtils.bind(this,
+function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(B){try{var z=this.desc;this.savingFile=!1;this.desc=B;this.fileSaved(S,z,F,T);this.removeDraft()}catch(C){T(C)}}),T)}),T)}),T):(this.inConflictState=!0,T())}),mxUtils.bind(this,function(k){this.invalidFileHandle=!0;T(k)}))}),T)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(R,b,G?"image/png":"text/xml",G);else if(R.length<MAX_REQUEST_SIZE){var c=b.lastIndexOf(".");c=0<c?b.substring(c+1):"xml";
(new mxXmlRequest(SAVE_URL,"format="+c+"&xml="+encodeURIComponent(R)+"&filename="+encodeURIComponent(b)+(G?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(R)}));F()}});G?(e=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(R){P(R)}),m,this.ui.getCurrentFile()!=this?S:null,e.scale,e.border)):P(S)};
LocalFile.prototype.rename=function(b,e,g){this.title=b;this.descriptorChanged();null!=e&&e()};(function(){"undefined"!==typeof html4&&(html4.ATTRIBS["span::data-lucid-content"]=0,html4.ATTRIBS["span::data-lucid-type"]=0,html4.ATTRIBS["font::data-font-src"]=0);Editor.sketchFontFamily="Architects Daughter";Editor.sketchFontSource="https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter";Editor.sketchFonts=[{fontFamily:Editor.sketchFontFamily,fontUrl:decodeURIComponent(Editor.sketchFontSource)}];Editor.sketchDefaultCurveFitting="1";Editor.sketchDefaultJiggle="2";Editor.thinFormatImage=
"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0ibTM2LjUgMTguMzUtNi44NS02Ljg1IDMuMjUtMy4ycS44NS0uODUgMi4wMjUtLjg1IDEuMTc1IDAgMi4wMjUuODVsMi43NSAyLjhxLjg1LjguODUgMnQtLjg1IDJaTTYuODUgNDEuMXYtNi45bDkuNTUtOS41NUw1LjUgMTMuN2w3LjgtNy44NSAxMSAxMSA1LjM1LTUuMzUgNi44NSA2Ljg1LTUuMzUgNS4zNSAxMSAxMS03Ljg1IDcuNzUtMTAuOTUtMTAuOS05LjYgOS41NVptMTEuMi0xOC4wNSA0LjY1LTQuNi00LjA1LTQuMDUtMi4zNSAyLjQtMS42LTEuNiAyLjM1LTIuNC0zLjc1LTMuNzUtNC42IDQuNjVabTE2LjIgMTYuMjUgNC42NS00LjY1LTMuNzUtMy43NS0yLjQgMi40LTEuNi0xLjYgMi40LTIuNC00LjA1LTQtNC42IDQuNjVabS0yNS4xLS40NWgzLjZsMjAuNS0yMC40NS0zLjY1LTMuNjVMOS4xNSAzNS4yWiIvPjwvc3ZnPg==";
@@ -3226,34 +3241,34 @@ type:"bool",defVal:!1,isVisible:function(l,u){u=u.editorUi.editor.graph.model;re
defVal:!1},{name:"resizable",dispName:"Resizable",type:"bool",defVal:!0},{name:"resizeWidth",dispName:"Resize Width",type:"bool",defVal:!1},{name:"resizeHeight",dispName:"Resize Height",type:"bool",defVal:!1},{name:"rotatable",dispName:"Rotatable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"treeFolding",dispName:"Tree Folding",type:"bool",defVal:!1},{name:"treeMoving",dispName:"Tree Moving",
type:"bool",defVal:!1},{name:"pointerEvents",dispName:"Pointer Events",type:"bool",defVal:!0,isVisible:function(l,u){var H=mxUtils.getValue(l.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||u.editorUi.editor.graph.isSwimlane(l.vertices[0])||null==H||H==mxConstants.NONE||0==mxUtils.getValue(l.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(l.style,mxConstants.STYLE_OPACITY,100)||null!=l.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",
type:"bool",defVal:!1,isVisible:function(l,u){return 0<l.vertices.length&&u.editorUi.editor.graph.isContainer(l.vertices[0])}}].concat(Editor.commonProperties);Editor.defaultCsvValue='##\n## Example CSV import. Use ## for comments and # for configuration. Paste CSV below.\n## The following names are reserved and should not be used (or ignored):\n## id, tooltip, placeholder(s), link and label (see below)\n##\n#\n## Node label with placeholders and HTML.\n## Default is \'%name_of_first_column%\'.\n#\n# label: %name%<br><i style="color:gray;">%position%</i><br><a href="mailto:%email%">Email</a>\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Parent style for nodes with child nodes (placeholders are replaced once).\n#\n# parentstyle: swimlane;whiteSpace=wrap;html=1;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;\n#\n## Style to be used for objects not in the CSV. If this is - then such objects are ignored,\n## else they are created using this as their style, eg. whiteSpace=wrap;html=1;\n#\n# unknownStyle: -\n#\n## Optional column name that contains a reference to a named style in styles.\n## Default is the current style for nodes.\n#\n# stylename: -\n#\n## JSON for named styles of the form {"name": "style", "name": "style"} where style is a cell style with\n## placeholders that are replaced once.\n#\n# styles: -\n#\n## JSON for variables in styles of the form {"name": "value", "name": "value"} where name is a string\n## that will replace a placeholder in a style.\n#\n# vars: -\n#\n## Optional column name that contains a reference to a named label in labels.\n## Default is the current label.\n#\n# labelname: -\n#\n## JSON for named labels of the form {"name": "label", "name": "label"} where label is a cell label with\n## placeholders.\n#\n# labels: -\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Uses the given column name as the parent reference for cells. Default is no parent (empty or -).\n## The identity above is used for resolving the reference so it must be specified.\n#\n# parent: -\n#\n## Adds a prefix to the identity of cells to make sure they do not collide with existing cells (whose\n## IDs are numbers from 0..n, sometimes with a GUID prefix in the context of realtime collaboration).\n## Default is csvimport-.\n#\n# namespace: csvimport-\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## If placeholders are used in the style, they are replaced with data from the source.\n## An optional placeholders can be set to target to use data from the target instead.\n## In addition to label, an optional fromlabel and tolabel can be used to name the column\n## that contains the text for the label in the edges source or target (invert ignored).\n## In addition to those, an optional source and targetlabel can be used to specify a label\n## that contains placeholders referencing the respective columns in the source or target row.\n## The label is created in the form fromlabel + sourcelabel + label + tolabel + targetlabel.\n## Additional labels can be added by using an optional labels array with entries of the\n## form {"label": string, "x": number, "y": number, "dx": number, "dy": number} where\n## x is from -1 to 1 along the edge, y is orthogonal, and dx/dy are offsets in pixels.\n## An optional placeholders with the string value "source" or "target" can be specified\n## to replace placeholders in the additional label with data from the source or target.\n## An optional data object can be specified to define the metadata for the connector.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node x-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# left: \n#\n## Node y-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# top: \n#\n## Node width. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the width. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value is a number (in px), auto, width or an @ sign followed by a column\n## name that contains the value for the height. Default is auto.\n#\n# height: auto\n#\n## Collapsed state for vertices. Possible values are true or false. Default is false.\n#\n# collapsed: false\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -12\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke,refs,manager\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between levels of hierarchical layouts. Default is 100.\n#\n# levelspacing: 100\n#\n## Spacing between parallel edges. Default is 40. Use 0 to disable.\n#\n# edgespacing: 40\n#\n## Name or JSON of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle, orgchart or a JSON string as used in\n## Layout, Apply. Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nTessa Miller,CFO,emi,Office 1,,[email protected],default,#6c8ebf,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,[email protected],default,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,[email protected],default,#82b366,"emo,tva",https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,[email protected],default,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';
-Editor.createRoughCanvas=function(l){var u=rough.canvas({getContext:function(){return l}});u.draw=function(H){var U=H.sets||[];H=H.options||this.getDefaultOptions();for(var J=0;J<U.length;J++){var V=U[J];switch(V.type){case "path":null!=H.stroke&&this._drawToContext(l,V,H);break;case "fillPath":this._drawToContext(l,V,H);break;case "fillSketch":this.fillSketch(l,V,H)}}};u.fillSketch=function(H,U,J){var V=l.state.strokeColor,aa=l.state.strokeWidth,ba=l.state.strokeAlpha,ja=l.state.dashed,oa=J.fillWeight;
-0>oa&&(oa=J.strokeWidth/2);l.setStrokeAlpha(l.state.fillAlpha);l.setStrokeColor(J.fill||"");l.setStrokeWidth(oa);l.setDashed(!1);this._drawToContext(H,U,J);l.setDashed(ja);l.setStrokeWidth(aa);l.setStrokeColor(V);l.setStrokeAlpha(ba)};u._drawToContext=function(H,U,J){H.begin();for(var V=0;V<U.ops.length;V++){var aa=U.ops[V],ba=aa.data;switch(aa.op){case "move":H.moveTo(ba[0],ba[1]);break;case "bcurveTo":H.curveTo(ba[0],ba[1],ba[2],ba[3],ba[4],ba[5]);break;case "lineTo":H.lineTo(ba[0],ba[1])}}H.end();
-"fillPath"===U.type&&J.filled?H.fill():H.stroke()};return u};(function(){function l(V,aa,ba){this.canvas=V;this.rc=aa;this.shape=ba;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,l.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,l.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,l.prototype.rect);this.originalRoundrect=this.canvas.roundrect;
+Editor.createRoughCanvas=function(l){var u=rough.canvas({getContext:function(){return l}});u.draw=function(H){var U=H.sets||[];H=H.options||this.getDefaultOptions();for(var J=0;J<U.length;J++){var W=U[J];switch(W.type){case "path":null!=H.stroke&&this._drawToContext(l,W,H);break;case "fillPath":this._drawToContext(l,W,H);break;case "fillSketch":this.fillSketch(l,W,H)}}};u.fillSketch=function(H,U,J){var W=l.state.strokeColor,aa=l.state.strokeWidth,ba=l.state.strokeAlpha,ja=l.state.dashed,oa=J.fillWeight;
+0>oa&&(oa=J.strokeWidth/2);l.setStrokeAlpha(l.state.fillAlpha);l.setStrokeColor(J.fill||"");l.setStrokeWidth(oa);l.setDashed(!1);this._drawToContext(H,U,J);l.setDashed(ja);l.setStrokeWidth(aa);l.setStrokeColor(W);l.setStrokeAlpha(ba)};u._drawToContext=function(H,U,J){H.begin();for(var W=0;W<U.ops.length;W++){var aa=U.ops[W],ba=aa.data;switch(aa.op){case "move":H.moveTo(ba[0],ba[1]);break;case "bcurveTo":H.curveTo(ba[0],ba[1],ba[2],ba[3],ba[4],ba[5]);break;case "lineTo":H.lineTo(ba[0],ba[1])}}H.end();
+"fillPath"===U.type&&J.filled?H.fill():H.stroke()};return u};(function(){function l(W,aa,ba){this.canvas=W;this.rc=aa;this.shape=ba;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,l.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,l.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,l.prototype.rect);this.originalRoundrect=this.canvas.roundrect;
this.canvas.roundrect=mxUtils.bind(this,l.prototype.roundrect);this.originalEllipse=this.canvas.ellipse;this.canvas.ellipse=mxUtils.bind(this,l.prototype.ellipse);this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,l.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,l.prototype.moveTo);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,l.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=
mxUtils.bind(this,l.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,l.prototype.arcTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,l.prototype.close);this.originalFill=this.canvas.fill;this.canvas.fill=mxUtils.bind(this,l.prototype.fill);this.originalStroke=this.canvas.stroke;this.canvas.stroke=mxUtils.bind(this,l.prototype.stroke);this.originalFillAndStroke=this.canvas.fillAndStroke;this.canvas.fillAndStroke=mxUtils.bind(this,
-l.prototype.fillAndStroke);this.path=[];this.passThrough=!1}l.prototype.moveOp="M";l.prototype.lineOp="L";l.prototype.quadOp="Q";l.prototype.curveOp="C";l.prototype.closeOp="Z";l.prototype.getStyle=function(V,aa){var ba=1;if(null!=this.shape.state){var ja=this.shape.state.cell.id;if(null!=ja)for(var oa=0;oa<ja.length;oa++)ba=(ba<<5)-ba+ja.charCodeAt(oa)<<0}ba={strokeWidth:this.canvas.state.strokeWidth,seed:ba,preserveVertices:!0};ja=this.rc.getDefaultOptions();ba.stroke=V?this.canvas.state.strokeColor===
-mxConstants.NONE?"transparent":this.canvas.state.strokeColor:mxConstants.NONE;V=null;(ba.filled=aa)?(ba.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,V=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):ba.fill="";ba.bowing=mxUtils.getValue(this.shape.style,"bowing",ja.bowing);ba.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",ja.hachureAngle);ba.curveFitting=mxUtils.getValue(this.shape.style,"curveFitting",ja.curveFitting);
+l.prototype.fillAndStroke);this.path=[];this.passThrough=!1}l.prototype.moveOp="M";l.prototype.lineOp="L";l.prototype.quadOp="Q";l.prototype.curveOp="C";l.prototype.closeOp="Z";l.prototype.getStyle=function(W,aa){var ba=1;if(null!=this.shape.state){var ja=this.shape.state.cell.id;if(null!=ja)for(var oa=0;oa<ja.length;oa++)ba=(ba<<5)-ba+ja.charCodeAt(oa)<<0}ba={strokeWidth:this.canvas.state.strokeWidth,seed:ba,preserveVertices:!0};ja=this.rc.getDefaultOptions();ba.stroke=W?this.canvas.state.strokeColor===
+mxConstants.NONE?"transparent":this.canvas.state.strokeColor:mxConstants.NONE;W=null;(ba.filled=aa)?(ba.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,W=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):ba.fill="";ba.bowing=mxUtils.getValue(this.shape.style,"bowing",ja.bowing);ba.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",ja.hachureAngle);ba.curveFitting=mxUtils.getValue(this.shape.style,"curveFitting",ja.curveFitting);
ba.roughness=mxUtils.getValue(this.shape.style,"jiggle",ja.roughness);ba.simplification=mxUtils.getValue(this.shape.style,"simplification",ja.simplification);ba.disableMultiStroke=mxUtils.getValue(this.shape.style,"disableMultiStroke",ja.disableMultiStroke);ba.disableMultiStrokeFill=mxUtils.getValue(this.shape.style,"disableMultiStrokeFill",ja.disableMultiStrokeFill);aa=mxUtils.getValue(this.shape.style,"hachureGap",-1);ba.hachureGap="auto"==aa?-1:aa;ba.dashGap=mxUtils.getValue(this.shape.style,"dashGap",
aa);ba.dashOffset=mxUtils.getValue(this.shape.style,"dashOffset",aa);ba.zigzagOffset=mxUtils.getValue(this.shape.style,"zigzagOffset",aa);aa=mxUtils.getValue(this.shape.style,"fillWeight",-1);ba.fillWeight="auto"==aa?-1:aa;aa=mxUtils.getValue(this.shape.style,"fillStyle","auto");"dots"==aa&&(aa="auto");"auto"==aa&&(aa=[mxUtils.hex2rgb("#ffffff")],null!=this.shape.state&&aa.push(mxUtils.hex2rgb(this.shape.state.view.graph.shapeBackgroundColor)),Editor.isDarkMode()&&aa.push(mxUtils.hex2rgb(Editor.darkColor)),
-aa=null!=ba.fill&&(null!=V||0<=mxUtils.indexOf(aa,mxUtils.hex2rgb(ba.fill)))?"solid":ja.fillStyle);ba.fillStyle=aa;return ba};l.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};l.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};l.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var V=2;V<arguments.length;V+=2)this.lastX=arguments[V-1],this.lastY=arguments[V],
-this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};l.prototype.lineTo=function(V,aa){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,V,aa),this.lastX=V,this.lastY=aa)};l.prototype.moveTo=function(V,aa){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,V,aa),this.lastX=V,this.lastY=aa,this.firstX=V,this.firstY=aa)};l.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,
-arguments):this.addOp(this.closeOp)};l.prototype.quadTo=function(V,aa,ba,ja){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,V,aa,ba,ja),this.lastX=ba,this.lastY=ja)};l.prototype.curveTo=function(V,aa,ba,ja,oa,qa){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,V,aa,ba,ja,oa,qa),this.lastX=oa,this.lastY=qa)};l.prototype.arcTo=function(V,aa,ba,ja,oa,qa,ra){if(this.passThrough)this.originalArcTo.apply(this.canvas,
-arguments);else{var ua=mxUtils.arcToCurves(this.lastX,this.lastY,V,aa,ba,ja,oa,qa,ra);if(null!=ua)for(var za=0;za<ua.length;za+=6)this.curveTo(ua[za],ua[za+1],ua[za+2],ua[za+3],ua[za+4],ua[za+5]);this.lastX=qa;this.lastY=ra}};l.prototype.rect=function(V,aa,ba,ja){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(V,aa,ba,ja,this.getStyle(!0,!0)))};l.prototype.ellipse=function(V,aa,ba,ja){this.passThrough?this.originalEllipse.apply(this.canvas,
-arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(V+ba/2,aa+ja/2,ba,ja,this.getStyle(!0,!0)))};l.prototype.roundrect=function(V,aa,ba,ja,oa,qa){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(V+oa,aa),this.lineTo(V+ba-oa,aa),this.quadTo(V+ba,aa,V+ba,aa+qa),this.lineTo(V+ba,aa+ja-qa),this.quadTo(V+ba,aa+ja,V+ba-oa,aa+ja),this.lineTo(V+oa,aa+ja),this.quadTo(V,aa+ja,V,aa+ja-qa),this.lineTo(V,aa+qa),this.quadTo(V,aa,V+oa,aa))};l.prototype.drawPath=
-function(V){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),V)}catch(ba){}this.passThrough=!1}else if(null!=this.nextShape){for(var aa in V)this.nextShape.options[aa]=V[aa];V.stroke!=mxConstants.NONE&&null!=V.stroke||delete this.nextShape.options.stroke;V.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};l.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,
+aa=null!=ba.fill&&(null!=W||0<=mxUtils.indexOf(aa,mxUtils.hex2rgb(ba.fill)))?"solid":ja.fillStyle);ba.fillStyle=aa;return ba};l.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};l.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};l.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var W=2;W<arguments.length;W+=2)this.lastX=arguments[W-1],this.lastY=arguments[W],
+this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};l.prototype.lineTo=function(W,aa){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,W,aa),this.lastX=W,this.lastY=aa)};l.prototype.moveTo=function(W,aa){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,W,aa),this.lastX=W,this.lastY=aa,this.firstX=W,this.firstY=aa)};l.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,
+arguments):this.addOp(this.closeOp)};l.prototype.quadTo=function(W,aa,ba,ja){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,W,aa,ba,ja),this.lastX=ba,this.lastY=ja)};l.prototype.curveTo=function(W,aa,ba,ja,oa,qa){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,W,aa,ba,ja,oa,qa),this.lastX=oa,this.lastY=qa)};l.prototype.arcTo=function(W,aa,ba,ja,oa,qa,ra){if(this.passThrough)this.originalArcTo.apply(this.canvas,
+arguments);else{var ua=mxUtils.arcToCurves(this.lastX,this.lastY,W,aa,ba,ja,oa,qa,ra);if(null!=ua)for(var za=0;za<ua.length;za+=6)this.curveTo(ua[za],ua[za+1],ua[za+2],ua[za+3],ua[za+4],ua[za+5]);this.lastX=qa;this.lastY=ra}};l.prototype.rect=function(W,aa,ba,ja){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(W,aa,ba,ja,this.getStyle(!0,!0)))};l.prototype.ellipse=function(W,aa,ba,ja){this.passThrough?this.originalEllipse.apply(this.canvas,
+arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(W+ba/2,aa+ja/2,ba,ja,this.getStyle(!0,!0)))};l.prototype.roundrect=function(W,aa,ba,ja,oa,qa){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(W+oa,aa),this.lineTo(W+ba-oa,aa),this.quadTo(W+ba,aa,W+ba,aa+qa),this.lineTo(W+ba,aa+ja-qa),this.quadTo(W+ba,aa+ja,W+ba-oa,aa+ja),this.lineTo(W+oa,aa+ja),this.quadTo(W,aa+ja,W,aa+ja-qa),this.lineTo(W,aa+qa),this.quadTo(W,aa,W+oa,aa))};l.prototype.drawPath=
+function(W){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),W)}catch(ba){}this.passThrough=!1}else if(null!=this.nextShape){for(var aa in W)this.nextShape.options[aa]=W[aa];W.stroke!=mxConstants.NONE&&null!=W.stroke||delete this.nextShape.options.stroke;W.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};l.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,
!1))};l.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};l.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};l.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;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(V){return new l(V,Editor.createRoughCanvas(V),this)};var u=mxShape.prototype.createHandJiggle;
-mxShape.prototype.createHandJiggle=function(V){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?u.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(V):this.createRoughCanvas(V)};var H=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(V,aa,ba,ja,oa){null!=V.handJiggle&&V.handJiggle.passThrough||H.apply(this,arguments)};var U=mxShape.prototype.paint;mxShape.prototype.paint=
-function(V){var aa=V.addTolerance,ba=!0;null!=this.style&&(ba="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=V.handJiggle&&V.handJiggle.constructor==l&&!this.outline){V.save();var ja=this.fill,oa=this.stroke;this.stroke=this.fill=null;var qa=this.configurePointerEvents,ra=V.setStrokeColor;V.setStrokeColor=function(){};var ua=V.setFillColor;V.setFillColor=function(){};ba||null==ja||(this.configurePointerEvents=function(){});V.handJiggle.passThrough=!0;U.apply(this,
-arguments);V.handJiggle.passThrough=!1;V.setFillColor=ua;V.setStrokeColor=ra;this.configurePointerEvents=qa;this.stroke=oa;this.fill=ja;V.restore();ba&&null!=ja&&(V.addTolerance=function(){})}U.apply(this,arguments);V.addTolerance=aa};var J=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(V,aa,ba,ja,oa,qa){null!=V.handJiggle&&V.handJiggle.constructor==l?(V.handJiggle.passThrough=!0,J.apply(this,arguments),V.handJiggle.passThrough=!1):J.apply(this,arguments)}})();Editor.fastCompress=
-function(l){return null==l||0==l.length||"undefined"===typeof pako?l:Graph.arrayBufferToString(pako.deflateRaw(l))};Editor.fastDecompress=function(l){return null==l||0==l.length||"undefined"===typeof pako?l:pako.inflateRaw(Graph.stringToArrayBuffer(atob(l)),{to:"string"})};Editor.extractGraphModel=function(l,u,H){if(null!=l&&"undefined"!==typeof pako){var U=l.ownerDocument.getElementsByTagName("div"),J=[];if(null!=U&&0<U.length)for(var V=0;V<U.length;V++)if("mxgraph"==U[V].getAttribute("class")){J.push(U[V]);
+this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(W){return new l(W,Editor.createRoughCanvas(W),this)};var u=mxShape.prototype.createHandJiggle;
+mxShape.prototype.createHandJiggle=function(W){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?u.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(W):this.createRoughCanvas(W)};var H=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(W,aa,ba,ja,oa){null!=W.handJiggle&&W.handJiggle.passThrough||H.apply(this,arguments)};var U=mxShape.prototype.paint;mxShape.prototype.paint=
+function(W){var aa=W.addTolerance,ba=!0;null!=this.style&&(ba="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=W.handJiggle&&W.handJiggle.constructor==l&&!this.outline){W.save();var ja=this.fill,oa=this.stroke;this.stroke=this.fill=null;var qa=this.configurePointerEvents,ra=W.setStrokeColor;W.setStrokeColor=function(){};var ua=W.setFillColor;W.setFillColor=function(){};ba||null==ja||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;U.apply(this,
+arguments);W.handJiggle.passThrough=!1;W.setFillColor=ua;W.setStrokeColor=ra;this.configurePointerEvents=qa;this.stroke=oa;this.fill=ja;W.restore();ba&&null!=ja&&(W.addTolerance=function(){})}U.apply(this,arguments);W.addTolerance=aa};var J=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(W,aa,ba,ja,oa,qa){null!=W.handJiggle&&W.handJiggle.constructor==l?(W.handJiggle.passThrough=!0,J.apply(this,arguments),W.handJiggle.passThrough=!1):J.apply(this,arguments)}})();Editor.fastCompress=
+function(l){return null==l||0==l.length||"undefined"===typeof pako?l:Graph.arrayBufferToString(pako.deflateRaw(l))};Editor.fastDecompress=function(l){return null==l||0==l.length||"undefined"===typeof pako?l:pako.inflateRaw(Graph.stringToArrayBuffer(atob(l)),{to:"string"})};Editor.extractGraphModel=function(l,u,H){if(null!=l&&"undefined"!==typeof pako){var U=l.ownerDocument.getElementsByTagName("div"),J=[];if(null!=U&&0<U.length)for(var W=0;W<U.length;W++)if("mxgraph"==U[W].getAttribute("class")){J.push(U[W]);
break}0<J.length&&(U=J[0].getAttribute("data-mxgraph"),null!=U?(J=JSON.parse(U),null!=J&&null!=J.xml&&(l=mxUtils.parseXml(J.xml),l=l.documentElement)):(J=J[0].getElementsByTagName("div"),0<J.length&&(U=mxUtils.getTextContent(J[0]),U=Graph.decompress(U,null,H),0<U.length&&(l=mxUtils.parseXml(U),l=l.documentElement))))}if(null!=l&&"svg"==l.nodeName)if(U=l.getAttribute("content"),null!=U&&"<"!=U.charAt(0)&&"%"!=U.charAt(0)&&(U=unescape(window.atob?atob(U):Base64.decode(cont,U))),null!=U&&"%"==U.charAt(0)&&
(U=decodeURIComponent(U)),null!=U&&0<U.length)l=mxUtils.parseXml(U).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==l||u||(J=null,"diagram"==l.nodeName?J=l:"mxfile"==l.nodeName&&(U=l.getElementsByTagName("diagram"),0<U.length&&(J=U[Math.max(0,Math.min(U.length-1,urlParams.page||0))])),null!=J&&(l=Editor.parseDiagramNode(J,H)));null==l||"mxGraphModel"==l.nodeName||u&&"mxfile"==l.nodeName||(l=null);return l};Editor.parseDiagramNode=function(l,u,H){Editor.validateDiagramNode(l);
var U=mxUtils.trim(mxUtils.getTextContent(l)),J=null;0<U.length?(u=Graph.decompress(U,null,u),null!=u&&0<u.length&&(J=mxUtils.parseXml(u).documentElement)):(l=mxUtils.getChildNodes(l),0<l.length&&(J=l[0],H&&(J=Editor.parseDiagramNode(J,u,!1)),u=mxUtils.createXmlDocument(),u.appendChild(u.importNode(J,!0)),J=u.documentElement));return J};Editor.getDiagramNodeXml=function(l){Editor.validateDiagramNode(l);var u=mxUtils.getNodeValue(l),H=null;0<u.length?H=Graph.decompress(u):(l=l.getElementsByTagName("mxGraphModel"),
null!=l&&0<l.length&&(H=mxUtils.getXml(l[0])));return H};Editor.validateDiagramNode=function(l){if(0==mxUtils.trim(mxUtils.getTextContent(l)).length&&0==mxUtils.getChildNodes(l).length){var u=new mxCodec,H=new mxGraphModel;l.appendChild(u.encode(H))}return l};Editor.extractGraphModelFromPdf=function(l){var u=null;l=l.substring(l.indexOf(",")+1);l=window.atob&&!mxClient.IS_SF?atob(l):Base64.decode(l,!0);if("%PDF-1.7"==l.substring(0,8)){var H=l.indexOf("EmbeddedFile");if(-1<H){var U=l.indexOf("stream",
H)+9;if(0<l.substring(H,U).indexOf("application#2Fvnd.jgraph.mxfile")){var J=l.indexOf("endstream",U-1);return pako.inflateRaw(Graph.stringToArrayBuffer(l.substring(U,J)),{to:"string"})}}for(H=l.indexOf("/ObjStm");0<H;){U=l.indexOf("stream",H)+9;J=l.indexOf("endstream",U-1);U=pako.inflateRaw(Graph.stringToArrayBuffer(l.substring(U,J)),{to:"string"});J=U.indexOf("/Subject <");if(0<J){H=U.substring(J+14,U.indexOf(">",J));if(null!=H){u=H;H=[];for(U=0;U<u.length;U+=2)J=u.substr(U,2),"00"!=J&&H.push(String.fromCharCode(parseInt(J,
-16)));u=H.join("")}break}H=l.indexOf("/ObjStm",H+1)}}if(null==u&&"%PDF-1.4"==l.substring(0,8)){H="";J=U=0;for(var V=[],aa=null;J<l.length;){var ba=l.charCodeAt(J);J+=1;10!=ba&&(H+=String.fromCharCode(ba));ba=="/Subject (%3Cmxfile".charCodeAt(U)?U++:U=0;if(19==U){var ja=l.indexOf("%3C%2Fmxfile%3E",J)+15;J-=9;if(ja>J){u=l.substring(J,ja);break}}10==ba&&("endobj"==H?aa=null:"obj"==H.substring(H.length-3,H.length)||"xref"==H||"trailer"==H?(aa=[],V[H.split(" ")[0]]=aa):null!=aa&&aa.push(H),H="")}}null==
-u&&null!=V&&(u=Editor.extractGraphModelFromXref(V));null!=u&&(u=decodeURIComponent(u.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return u};Editor.extractGraphModelFromXref=function(l){var u=l.trailer,H=null;null!=u&&(u=/.* \/Info (\d+) (\d+) R/g.exec(u.join("\n")),null!=u&&0<u.length&&(u=l[u[1]],null!=u&&(u=/.* \/Subject (\d+) (\d+) R/g.exec(u.join("\n")),null!=u&&0<u.length&&(l=l[u[1]],null!=l&&(l=l.join("\n"),H=l.substring(1,l.length-1))))));return H};Editor.extractParserError=function(l,u){var H=
+16)));u=H.join("")}break}H=l.indexOf("/ObjStm",H+1)}}if(null==u&&"%PDF-1.4"==l.substring(0,8)){H="";J=U=0;for(var W=[],aa=null;J<l.length;){var ba=l.charCodeAt(J);J+=1;10!=ba&&(H+=String.fromCharCode(ba));ba=="/Subject (%3Cmxfile".charCodeAt(U)?U++:U=0;if(19==U){var ja=l.indexOf("%3C%2Fmxfile%3E",J)+15;J-=9;if(ja>J){u=l.substring(J,ja);break}}10==ba&&("endobj"==H?aa=null:"obj"==H.substring(H.length-3,H.length)||"xref"==H||"trailer"==H?(aa=[],W[H.split(" ")[0]]=aa):null!=aa&&aa.push(H),H="")}}null==
+u&&null!=W&&(u=Editor.extractGraphModelFromXref(W));null!=u&&(u=decodeURIComponent(u.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return u};Editor.extractGraphModelFromXref=function(l){var u=l.trailer,H=null;null!=u&&(u=/.* \/Info (\d+) (\d+) R/g.exec(u.join("\n")),null!=u&&0<u.length&&(u=l[u[1]],null!=u&&(u=/.* \/Subject (\d+) (\d+) R/g.exec(u.join("\n")),null!=u&&0<u.length&&(l=l[u[1]],null!=l&&(l=l.join("\n"),H=l.substring(1,l.length-1))))));return H};Editor.extractParserError=function(l,u){var H=
null;l=null!=l?l.getElementsByTagName("parsererror"):null;null!=l&&0<l.length&&(H=u||mxResources.get("invalidChars"),u=l[0].getElementsByTagName("div"),0<u.length&&(H=mxUtils.getTextContent(u[0])));return null!=H?mxUtils.trim(H):H};Editor.addRetryToError=function(l,u){null!=l&&(l=null!=l.error?l.error:l,null==l.retry&&(l.retry=u))};Editor.mermaidToDrawio=function(l,u,H){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(l,u,H)};Editor.configure=function(l){if(null!=l){Editor.config=
l;Editor.configVersion=l.version;l.debug&&(urlParams.test="1");null!=l.defaultFonts&&(Menus.prototype.defaultFonts=l.defaultFonts);null!=l.presetColors&&(ColorDialog.prototype.presetColors=l.presetColors);null!=l.defaultColors&&(ColorDialog.prototype.defaultColors=l.defaultColors);null!=l.colorNames&&(ColorDialog.prototype.colorNames=l.colorNames);null!=l.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=l.defaultColorSchemes);null!=l.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=
l.defaultEdgeLength);null!=l.selectParentLayer&&(Graph.selectParentLayer=l.selectParentLayer);null!=l.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=l.autosaveDelay);null!=l.templateFile&&(EditorUi.templateFile=l.templateFile);null!=l.styles&&(Array.isArray(l.styles)?Editor.styles=l.styles:EditorUi.debug("Configuration Error: Array expected for styles"));null!=l.globalVars&&(Editor.globalVars=l.globalVars);null!=l.compressXml&&(Editor.defaultCompressed=l.compressXml,Editor.compressXml=l.compressXml);
@@ -3282,39 +3297,39 @@ function(l,u,H){return Editor.extractGraphModel.apply(this,arguments)};var g=Edi
function(){m.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(l,u){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var H=function(){U=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};l=null!=l?l:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var U=null;Editor.doMathJaxRender=
function(aa){try{null==U?(MathJax.typesetClear([aa]),MathJax.typeset([aa]),H()):U!=aa&&Editor.mathJaxQueue.push(aa)}catch(ba){MathJax.typesetClear([aa]),null!=ba.retry?(U=aa,ba.retry.then(function(){MathJax.typesetPromise([aa]).then(H)["catch"](function(ja){console.log("Error in MathJax.typesetPromise: "+ja.toString());H()})})["catch"](function(ja){console.log("Error in MathJax.retry: "+ja.toString());H()})):null!=window.console&&console.log("Error in MathJax.typeset: "+ba.toString())}};window.MathJax=
null!=u?u:{options:{skipHtmlTags:{"[+]":["text"]},ignoreHtmlClass:"geDisableMathJax"},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var aa=0;aa<Editor.mathJaxQueue.length;aa++)Editor.doMathJaxRender(Editor.mathJaxQueue[aa])}}};Editor.MathJaxRender=function(aa){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(aa):Editor.mathJaxQueue.push(aa)};Editor.onMathJaxDone=
-function(){};var J=Editor.prototype.init;Editor.prototype.init=function(){J.apply(this,arguments);var aa=mxUtils.bind(this,function(ba,ja){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,aa);this.graph.addListener(mxEvent.REFRESH,aa)};u=document.getElementsByTagName("script");if(null!=u&&0<u.length){var V=document.createElement("script");V.setAttribute("type","text/javascript");V.setAttribute("src",l);u[0].parentNode.appendChild(V)}}};
-Editor.prototype.csvToArray=function(l){if(0<l.length){var u="",H=[""],U=0,J=!0,V;l=$jscomp.makeIterator(l);for(V=l.next();!V.done;V=l.next())V=V.value,'"'===V?(J&&V===u&&(H[U]+=V),J=!J):","===V&&J?V=H[++U]="":H[U]+=V,u=V;return H}return[]};Editor.prototype.getProxiedUrl=function(l){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(l)){var u=EditorUi.isVisioFilename(l);u=/\.png$/i.test(l)||/\.pdf$/i.test(l)||u;var H=
+function(){};var J=Editor.prototype.init;Editor.prototype.init=function(){J.apply(this,arguments);var aa=mxUtils.bind(this,function(ba,ja){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,aa);this.graph.addListener(mxEvent.REFRESH,aa)};u=document.getElementsByTagName("script");if(null!=u&&0<u.length){var W=document.createElement("script");W.setAttribute("type","text/javascript");W.setAttribute("src",l);u[0].parentNode.appendChild(W)}}};
+Editor.prototype.csvToArray=function(l){if(0<l.length){var u="",H=[""],U=0,J=!0,W;l=$jscomp.makeIterator(l);for(W=l.next();!W.done;W=l.next())W=W.value,'"'===W?(J&&W===u&&(H[U]+=W),J=!J):","===W&&J?W=H[++U]="":H[U]+=W,u=W;return H}return[]};Editor.prototype.getProxiedUrl=function(l){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(l)){var u=EditorUi.isVisioFilename(l);u=/\.png$/i.test(l)||/\.pdf$/i.test(l)||u;var H=
"t="+(new Date).getTime();l=PROXY_URL+"?url="+encodeURIComponent(l)+"&"+H+(u?"&base64=1":"")}return l};Editor.prototype.isCorsEnabledForUrl=function(l){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||l.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(l)||"https://raw.githubusercontent.com/"===l.substring(0,34)||
"https://fonts.googleapis.com/"===l.substring(0,29)||"https://fonts.gstatic.com/"===l.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var l=new mxUrlConverter;l.updateBaseUrl();var u=l.convert,H=this;l.convert=function(U){null!=U&&navigator.onLine&&("http://"!=U.substring(0,7)&&"https://"!=U.substring(0,8)||U.substring(0,l.baseUrl.length)==l.baseUrl||H.crossOriginImages&&H.isCorsEnabledForUrl(U)?"chrome-extension://"!=U.substring(0,19)&&(U=u.apply(this,arguments)):U=PROXY_URL+
-"?url="+encodeURIComponent(U));return U};return l};Editor.createSvgDataUri=function(l){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(l)))};Editor.prototype.convertImageToDataUri=function(l,u,H,U,J){try{var V=!0,aa=window.setTimeout(mxUtils.bind(this,function(){V=!1;u(l)}),this.timeout),ba=mxUtils.bind(this,function(){null!=U?this.convertImageToDataUri(l,u,H,U,!0):u(l)});if(/(\.svg)$/i.test(l)&&!J)mxUtils.get(l,mxUtils.bind(this,function(oa){window.clearTimeout(aa);V&&(200>oa.getStatus()||
-299<oa.getStatus()?ba():u(Editor.createSvgDataUri(oa.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(aa);V&&ba()}));else{var ja=new Image;this.crossOriginImages&&(ja.crossOrigin="anonymous");ja.onload=function(){window.clearTimeout(aa);if(V)try{U=null!=U&&J?U:1;var oa=document.createElement("canvas"),qa=oa.getContext("2d");qa.scale(U,U);oa.height=ja.height*U;oa.width=ja.width*U;qa.drawImage(ja,0,0);u(oa.toDataURL())}catch(ra){u(l)}};ja.onerror=function(){window.clearTimeout(aa);V&&
-(null!=H?H():u(l))};ja.src=l}}catch(oa){null!=H?H():u(l)}};Editor.prototype.convertImages=function(l,u,H,U){function J(){0<V.length?V.shift()():u(l)}null==U&&(U=this.createImageUrlConverter());var V=[],aa=H||{};H=mxUtils.bind(this,function(ba,ja){ba=l.getElementsByTagName(ba);for(var oa=0;oa<ba.length;oa++)mxUtils.bind(this,function(qa){V.push(mxUtils.bind(this,function(){try{if(null!=qa){var ra=U.convert(qa.getAttribute(ja));if(null!=ra&&"data:"!=ra.substring(0,5)){var ua=aa[ra];null==ua?this.convertImageToDataUri(ra,
-function(za){null!=za&&(aa[ra]=za,qa.setAttribute(ja,za));J()},null,Editor.svgRasterScale):(qa.setAttribute(ja,ua),J())}else null!=ra&&qa.setAttribute(ja,ra),J()}}catch(za){J()}}))})(ba[oa])});H("image","xlink:href");H("img","src");J()};Editor.base64Encode=function(l){for(var u="",H=0,U=l.length,J,V,aa;H<U;){J=l.charCodeAt(H++)&255;if(H==U){u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(J>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((J&
-3)<<4);u+="==";break}V=l.charCodeAt(H++);if(H==U){u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(J>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((J&3)<<4|(V&240)>>4);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((V&15)<<2);u+="=";break}aa=l.charCodeAt(H++);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(J>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((J&
-3)<<4|(V&240)>>4);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((V&15)<<2|(aa&192)>>6);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(aa&63)}return u};Editor.prototype.loadUrl=function(l,u,H,U,J,V,aa,ba){try{var ja=!aa&&(U||/(\.png)($|\?)/i.test(l)||/(\.jpe?g)($|\?)/i.test(l)||/(\.gif)($|\?)/i.test(l)||/(\.pdf)($|\?)/i.test(l));J=null!=J?J:!0;var oa=mxUtils.bind(this,function(){mxUtils.get(l,mxUtils.bind(this,function(qa){if(200<=qa.getStatus()&&
-299>=qa.getStatus()){if(null!=u){var ra=qa.getText();if(ja){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==typeof window.mxUtilsBinaryToArray){qa=mxUtilsBinaryToArray(qa.request.responseBody).toArray();ra=Array(qa.length);for(var ua=0;ua<qa.length;ua++)ra[ua]=String.fromCharCode(qa[ua]);ra=ra.join("")}V=null!=V?V:"data:image/png;base64,";ra=V+Editor.base64Encode(ra)}u(ra)}}else null!=H&&(0==qa.getStatus()?H({message:mxResources.get("accessDenied")},qa):404==qa.getStatus()?
+"?url="+encodeURIComponent(U));return U};return l};Editor.createSvgDataUri=function(l){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(l)))};Editor.prototype.convertImageToDataUri=function(l,u,H,U,J){try{var W=!0,aa=window.setTimeout(mxUtils.bind(this,function(){W=!1;u(l)}),this.timeout),ba=mxUtils.bind(this,function(){null!=U?this.convertImageToDataUri(l,u,H,U,!0):u(l)});if(/(\.svg)$/i.test(l)&&!J)mxUtils.get(l,mxUtils.bind(this,function(oa){window.clearTimeout(aa);W&&(200>oa.getStatus()||
+299<oa.getStatus()?ba():u(Editor.createSvgDataUri(oa.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(aa);W&&ba()}));else{var ja=new Image;this.crossOriginImages&&(ja.crossOrigin="anonymous");ja.onload=function(){window.clearTimeout(aa);if(W)try{U=null!=U&&J?U:1;var oa=document.createElement("canvas"),qa=oa.getContext("2d");qa.scale(U,U);oa.height=ja.height*U;oa.width=ja.width*U;qa.drawImage(ja,0,0);u(oa.toDataURL())}catch(ra){u(l)}};ja.onerror=function(){window.clearTimeout(aa);W&&
+(null!=H?H():u(l))};ja.src=l}}catch(oa){null!=H?H():u(l)}};Editor.prototype.convertImages=function(l,u,H,U){function J(){0<W.length?W.shift()():u(l)}null==U&&(U=this.createImageUrlConverter());var W=[],aa=H||{};H=mxUtils.bind(this,function(ba,ja){ba=l.getElementsByTagName(ba);for(var oa=0;oa<ba.length;oa++)mxUtils.bind(this,function(qa){W.push(mxUtils.bind(this,function(){try{if(null!=qa){var ra=U.convert(qa.getAttribute(ja));if(null!=ra&&"data:"!=ra.substring(0,5)){var ua=aa[ra];null==ua?this.convertImageToDataUri(ra,
+function(za){null!=za&&(aa[ra]=za,qa.setAttribute(ja,za));J()},null,Editor.svgRasterScale):(qa.setAttribute(ja,ua),J())}else null!=ra&&qa.setAttribute(ja,ra),J()}}catch(za){J()}}))})(ba[oa])});H("image","xlink:href");H("img","src");J()};Editor.base64Encode=function(l){for(var u="",H=0,U=l.length,J,W,aa;H<U;){J=l.charCodeAt(H++)&255;if(H==U){u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(J>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((J&
+3)<<4);u+="==";break}W=l.charCodeAt(H++);if(H==U){u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(J>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((J&3)<<4|(W&240)>>4);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2);u+="=";break}aa=l.charCodeAt(H++);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(J>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((J&
+3)<<4|(W&240)>>4);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2|(aa&192)>>6);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(aa&63)}return u};Editor.prototype.loadUrl=function(l,u,H,U,J,W,aa,ba){try{var ja=!aa&&(U||/(\.png)($|\?)/i.test(l)||/(\.jpe?g)($|\?)/i.test(l)||/(\.gif)($|\?)/i.test(l)||/(\.pdf)($|\?)/i.test(l));J=null!=J?J:!0;var oa=mxUtils.bind(this,function(){mxUtils.get(l,mxUtils.bind(this,function(qa){if(200<=qa.getStatus()&&
+299>=qa.getStatus()){if(null!=u){var ra=qa.getText();if(ja){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==typeof window.mxUtilsBinaryToArray){qa=mxUtilsBinaryToArray(qa.request.responseBody).toArray();ra=Array(qa.length);for(var ua=0;ua<qa.length;ua++)ra[ua]=String.fromCharCode(qa[ua]);ra=ra.join("")}W=null!=W?W:"data:image/png;base64,";ra=W+Editor.base64Encode(ra)}u(ra)}}else null!=H&&(0==qa.getStatus()?H({message:mxResources.get("accessDenied")},qa):404==qa.getStatus()?
H({message:mxResources.get("fileNotFound"),code:qa.getStatus()},qa):H({message:this.getErrorMessage(qa)},qa))}),function(qa){null!=H&&H({message:mxResources.get("error")+" "+qa.getStatus()})},ja,this.timeout,function(){J&&null!=H&&H({code:App.ERROR_TIMEOUT,retry:oa})},ba)});oa()}catch(qa){null!=H&&H(qa)}};Editor.prototype.getErrorMessage=function(l){var u=mxResources.get("error")+" "+l.getStatus();try{var H=l.getText(),U=JSON.parse(H);null!=U&&null!=U.error&&null!=U.error.message&&(u=U.error.message+
-" ("+u+")")}catch(J){}return u};Editor.prototype.absoluteCssFonts=function(l){var u=null;if(null!=l){var H=l.split("url(");if(0<H.length){u=[H[0]];l=window.location.pathname;var U=null!=l?l.lastIndexOf("/"):-1;0<=U&&(l=l.substring(0,U+1));U=document.getElementsByTagName("base");var J=null;null!=U&&0<U.length&&(J=U[0].getAttribute("href"));for(var V=1;V<H.length;V++)if(U=H[V].indexOf(")"),0<U){var aa=Editor.trimCssUrl(H[V].substring(0,U));this.graph.isRelativeUrl(aa)&&(aa=null!=J?J+aa:window.location.protocol+
-"//"+window.location.hostname+("/"==aa.charAt(0)?"":l)+aa);u.push('url("'+aa+'"'+H[V].substring(U))}else u.push(H[V])}else u=[l]}return null!=u?u.join(""):null};Editor.prototype.mapFontUrl=function(l,u,H){/^https?:\/\//.test(u)&&!this.isCorsEnabledForUrl(u)&&(u=PROXY_URL+"?url="+encodeURIComponent(u));H(l,u)};Editor.prototype.embedCssFonts=function(l,u){var H=l.split("url("),U=0;null==this.cachedFonts&&(this.cachedFonts={});var J=mxUtils.bind(this,function(){if(0==U){for(var ja=[H[0]],oa=1;oa<H.length;oa++){var qa=
-H[oa].indexOf(")");ja.push('url("');ja.push(this.cachedFonts[Editor.trimCssUrl(H[oa].substring(0,qa))]);ja.push('"'+H[oa].substring(qa))}u(ja.join(""))}});if(0<H.length){for(l=1;l<H.length;l++){var V=H[l].indexOf(")"),aa=null,ba=H[l].indexOf("format(",V);0<ba&&(aa=Editor.trimCssUrl(H[l].substring(ba+7,H[l].indexOf(")",ba))));mxUtils.bind(this,function(ja){if(null==this.cachedFonts[ja]){this.cachedFonts[ja]=ja;U++;var oa="application/x-font-ttf";if("svg"==aa||/(\.svg)($|\?)/i.test(ja))oa="image/svg+xml";
+" ("+u+")")}catch(J){}return u};Editor.prototype.absoluteCssFonts=function(l){var u=null;if(null!=l){var H=l.split("url(");if(0<H.length){u=[H[0]];l=window.location.pathname;var U=null!=l?l.lastIndexOf("/"):-1;0<=U&&(l=l.substring(0,U+1));U=document.getElementsByTagName("base");var J=null;null!=U&&0<U.length&&(J=U[0].getAttribute("href"));for(var W=1;W<H.length;W++)if(U=H[W].indexOf(")"),0<U){var aa=Editor.trimCssUrl(H[W].substring(0,U));this.graph.isRelativeUrl(aa)&&(aa=null!=J?J+aa:window.location.protocol+
+"//"+window.location.hostname+("/"==aa.charAt(0)?"":l)+aa);u.push('url("'+aa+'"'+H[W].substring(U))}else u.push(H[W])}else u=[l]}return null!=u?u.join(""):null};Editor.prototype.mapFontUrl=function(l,u,H){/^https?:\/\//.test(u)&&!this.isCorsEnabledForUrl(u)&&(u=PROXY_URL+"?url="+encodeURIComponent(u));H(l,u)};Editor.prototype.embedCssFonts=function(l,u){var H=l.split("url("),U=0;null==this.cachedFonts&&(this.cachedFonts={});var J=mxUtils.bind(this,function(){if(0==U){for(var ja=[H[0]],oa=1;oa<H.length;oa++){var qa=
+H[oa].indexOf(")");ja.push('url("');ja.push(this.cachedFonts[Editor.trimCssUrl(H[oa].substring(0,qa))]);ja.push('"'+H[oa].substring(qa))}u(ja.join(""))}});if(0<H.length){for(l=1;l<H.length;l++){var W=H[l].indexOf(")"),aa=null,ba=H[l].indexOf("format(",W);0<ba&&(aa=Editor.trimCssUrl(H[l].substring(ba+7,H[l].indexOf(")",ba))));mxUtils.bind(this,function(ja){if(null==this.cachedFonts[ja]){this.cachedFonts[ja]=ja;U++;var oa="application/x-font-ttf";if("svg"==aa||/(\.svg)($|\?)/i.test(ja))oa="image/svg+xml";
else if("otf"==aa||"embedded-opentype"==aa||/(\.otf)($|\?)/i.test(ja))oa="application/x-font-opentype";else if("woff"==aa||/(\.woff)($|\?)/i.test(ja))oa="application/font-woff";else if("woff2"==aa||/(\.woff2)($|\?)/i.test(ja))oa="application/font-woff2";else if("eot"==aa||/(\.eot)($|\?)/i.test(ja))oa="application/vnd.ms-fontobject";else if("sfnt"==aa||/(\.sfnt)($|\?)/i.test(ja))oa="application/font-sfnt";this.mapFontUrl(oa,ja,mxUtils.bind(this,function(qa,ra){this.loadUrl(ra,mxUtils.bind(this,function(ua){this.cachedFonts[ja]=
-ua;U--;J()}),mxUtils.bind(this,function(ua){U--;J()}),!0,null,"data:"+qa+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(H[l].substring(0,V)),aa)}J()}else u(l)};Editor.prototype.loadFonts=function(l){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(u){this.resolvedFontCss=u;null!=l&&l()})):null!=l&&l()};Editor.prototype.createGoogleFontCache=function(){var l={},u;for(u in Graph.fontMapping)Graph.isCssFontUrl(u)&&(l[u]=Graph.fontMapping[u]);
-return l};Editor.prototype.embedExtFonts=function(l){var u=this.graph.getCustomFonts();if(0<u.length){var H=[],U=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var J=mxUtils.bind(this,function(){0==U&&this.embedCssFonts(H.join(""),l)}),V=0;V<u.length;V++)mxUtils.bind(this,function(aa,ba){Graph.isCssFontUrl(ba)?null==this.cachedGoogleFonts[ba]?(U++,this.loadUrl(Graph.rewriteGoogleFontUrl(ba),mxUtils.bind(this,function(ja){this.cachedGoogleFonts[ba]=ja;H.push(ja+
-"\n");U--;J()}),mxUtils.bind(this,function(ja){U--;H.push("@import url("+ba+");\n");J()}))):H.push(this.cachedGoogleFonts[ba]+"\n"):H.push('@font-face {font-family: "'+aa+'";src: url("'+ba+'")}\n')})(u[V].name,u[V].url);J()}else l()};Editor.prototype.addMathCss=function(l){l=l.getElementsByTagName("defs");if(null!=l&&0<l.length)for(var u=document.getElementsByTagName("style"),H=0;H<u.length;H++){var U=mxUtils.getTextContent(u[H]);0>U.indexOf("mxPageSelector")&&0<U.indexOf("MathJax")&&l[0].appendChild(u[H].cloneNode(!0))}};
-Editor.prototype.addFontCss=function(l,u){u=null!=u?u:this.absoluteCssFonts(this.fontCss);if(null!=u){var H=mxUtils.getSvgDefs(l),U=u.split("\n");u=[];for(var J=[],V=0;V<U.length;V++)"@import"==U[V].substring(0,7)?u.push(U[V]):J.push(U[V]);l=l.ownerDocument;l=null!=l.createElementNS?l.createElementNS(mxConstants.NS_SVG,"style"):l.createElement("style");l.setAttribute("type","text/css");0<u.length&&(mxUtils.setTextContent(l,u.join("\n")),H.appendChild(l));0<J.length&&(l=l.cloneNode(!1),mxUtils.setTextContent(l,
-J.join("\n")),H.appendChild(l))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(l,u,H){var U=mxClient.IS_FF?8192:16384;return Math.min(H,Math.min(U/l,U/u))};Editor.prototype.exportToCanvas=function(l,u,H,U,J,V,aa,ba,ja,oa,qa,ra,ua,za,Ba,Ca,La,sa){try{V=null!=V?V:!0;aa=null!=aa?aa:!0;ra=null!=ra?ra:this.graph;ua=null!=ua?ua:0;var Aa=ja?null:ra.background;Aa==mxConstants.NONE&&(Aa=null);null==Aa&&(Aa=U);
+ua;U--;J()}),mxUtils.bind(this,function(ua){U--;J()}),!0,null,"data:"+qa+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(H[l].substring(0,W)),aa)}J()}else u(l)};Editor.prototype.loadFonts=function(l){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(u){this.resolvedFontCss=u;null!=l&&l()})):null!=l&&l()};Editor.prototype.createGoogleFontCache=function(){var l={},u;for(u in Graph.fontMapping)Graph.isCssFontUrl(u)&&(l[u]=Graph.fontMapping[u]);
+return l};Editor.prototype.embedExtFonts=function(l){var u=this.graph.getCustomFonts();if(0<u.length){var H=[],U=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var J=mxUtils.bind(this,function(){0==U&&this.embedCssFonts(H.join(""),l)}),W=0;W<u.length;W++)mxUtils.bind(this,function(aa,ba){Graph.isCssFontUrl(ba)?null==this.cachedGoogleFonts[ba]?(U++,this.loadUrl(Graph.rewriteGoogleFontUrl(ba),mxUtils.bind(this,function(ja){this.cachedGoogleFonts[ba]=ja;H.push(ja+
+"\n");U--;J()}),mxUtils.bind(this,function(ja){U--;H.push("@import url("+ba+");\n");J()}))):H.push(this.cachedGoogleFonts[ba]+"\n"):H.push('@font-face {font-family: "'+aa+'";src: url("'+ba+'")}\n')})(u[W].name,u[W].url);J()}else l()};Editor.prototype.addMathCss=function(l){l=l.getElementsByTagName("defs");if(null!=l&&0<l.length)for(var u=document.getElementsByTagName("style"),H=0;H<u.length;H++){var U=mxUtils.getTextContent(u[H]);0>U.indexOf("mxPageSelector")&&0<U.indexOf("MathJax")&&l[0].appendChild(u[H].cloneNode(!0))}};
+Editor.prototype.addFontCss=function(l,u){u=null!=u?u:this.absoluteCssFonts(this.fontCss);if(null!=u){var H=mxUtils.getSvgDefs(l),U=u.split("\n");u=[];for(var J=[],W=0;W<U.length;W++)"@import"==U[W].substring(0,7)?u.push(U[W]):J.push(U[W]);l=l.ownerDocument;l=null!=l.createElementNS?l.createElementNS(mxConstants.NS_SVG,"style"):l.createElement("style");l.setAttribute("type","text/css");0<u.length&&(mxUtils.setTextContent(l,u.join("\n")),H.appendChild(l));0<J.length&&(l=l.cloneNode(!1),mxUtils.setTextContent(l,
+J.join("\n")),H.appendChild(l))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(l,u,H){var U=mxClient.IS_FF?8192:16384;return Math.min(H,Math.min(U/l,U/u))};Editor.prototype.exportToCanvas=function(l,u,H,U,J,W,aa,ba,ja,oa,qa,ra,ua,za,Ba,Ca,La,sa){try{W=null!=W?W:!0;aa=null!=aa?aa:!0;ra=null!=ra?ra:this.graph;ua=null!=ua?ua:0;var Aa=ja?null:ra.background;Aa==mxConstants.NONE&&(Aa=null);null==Aa&&(Aa=U);
null==Aa&&0==ja&&(Aa="dark"==Ca?Editor.darkColor:"#ffffff");this.convertImages(ra.getSvg(null,null,ua,za,null,aa,null,null,null,oa,null,Ca,La,sa),mxUtils.bind(this,function(Ea){try{var Ka=new Image;Ka.onload=mxUtils.bind(this,function(){try{var ya=function(){mxClient.IS_SF?window.setTimeout(function(){Pa.drawImage(Ka,0,0);l(Wa,Ea)},0):(Pa.drawImage(Ka,0,0),l(Wa,Ea))},Wa=document.createElement("canvas"),Ia=parseInt(Ea.getAttribute("width")),Xa=parseInt(Ea.getAttribute("height"));ba=null!=ba?ba:1;null!=
-u&&(ba=V?Math.min(1,Math.min(3*u/(4*Xa),u/Ia)):u/Ia);ba=this.getMaxCanvasScale(Ia,Xa,ba);Ia=Math.ceil(ba*Ia);Xa=Math.ceil(ba*Xa);Wa.setAttribute("width",Ia);Wa.setAttribute("height",Xa);var Pa=Wa.getContext("2d");null!=Aa&&(Pa.beginPath(),Pa.rect(0,0,Ia,Xa),Pa.fillStyle=Aa,Pa.fill());1!=ba&&Pa.scale(ba,ba);if(Ba){var t=ra.view,N=t.scale;t.scale=1;var Q=btoa(unescape(encodeURIComponent(t.createSvgGrid(t.gridColor))));t.scale=N;Q="data:image/svg+xml;base64,"+Q;var X=ra.gridSize*t.gridSteps*ba,ia=ra.getGraphBounds(),
+u&&(ba=W?Math.min(1,Math.min(3*u/(4*Xa),u/Ia)):u/Ia);ba=this.getMaxCanvasScale(Ia,Xa,ba);Ia=Math.ceil(ba*Ia);Xa=Math.ceil(ba*Xa);Wa.setAttribute("width",Ia);Wa.setAttribute("height",Xa);var Pa=Wa.getContext("2d");null!=Aa&&(Pa.beginPath(),Pa.rect(0,0,Ia,Xa),Pa.fillStyle=Aa,Pa.fill());1!=ba&&Pa.scale(ba,ba);if(Ba){var t=ra.view,N=t.scale;t.scale=1;var Q=btoa(unescape(encodeURIComponent(t.createSvgGrid(t.gridColor))));t.scale=N;Q="data:image/svg+xml;base64,"+Q;var X=ra.gridSize*t.gridSteps*ba,ia=ra.getGraphBounds(),
ka=t.translate.x*N,pa=t.translate.y*N,xa=ka+(ia.x-ka)/N-ua,ta=pa+(ia.y-pa)/N-ua,va=new Image;va.onload=function(){try{for(var Da=-Math.round(X-mxUtils.mod((ka-xa)*ba,X)),Na=-Math.round(X-mxUtils.mod((pa-ta)*ba,X));Da<Ia;Da+=X)for(var Ya=Na;Ya<Xa;Ya+=X)Pa.drawImage(va,Da/ba,Ya/ba);ya()}catch(Za){null!=J&&J(Za)}};va.onerror=function(Da){null!=J&&J(Da)};va.src=Q}else ya()}catch(Da){null!=J&&J(Da)}});Ka.onerror=function(ya){null!=J&&J(ya)};oa&&this.graph.addSvgShadow(Ea);this.graph.mathEnabled&&this.addMathCss(Ea);
-var Ma=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Ea,this.resolvedFontCss),Ka.src=Editor.createSvgDataUri(mxUtils.getXml(Ea))}catch(ya){null!=J&&J(ya)}});this.embedExtFonts(mxUtils.bind(this,function(ya){try{null!=ya&&this.addFontCss(Ea,ya),this.loadFonts(Ma)}catch(Wa){null!=J&&J(Wa)}}))}catch(ya){null!=J&&J(ya)}}),H,qa)}catch(Ea){null!=J&&J(Ea)}};Editor.crcTable=[];for(var v=0;256>v;v++)for(var p=v,B=0;8>B;B++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[v]=
-p;Editor.updateCRC=function(l,u,H,U){for(var J=0;J<U;J++)l=Editor.crcTable[(l^u.charCodeAt(H+J))&255]^l>>>8;return l};Editor.crc32=function(l){for(var u=-1,H=0;H<l.length;H++)u=u>>>8^Editor.crcTable[(u^l.charCodeAt(H))&255];return(u^-1)>>>0};Editor.writeGraphModelToPng=function(l,u,H,U,J){function V(qa,ra){var ua=ja;ja+=ra;return qa.substring(ua,ja)}function aa(qa){qa=V(qa,4);return qa.charCodeAt(3)+(qa.charCodeAt(2)<<8)+(qa.charCodeAt(1)<<16)+(qa.charCodeAt(0)<<24)}function ba(qa){return String.fromCharCode(qa>>
-24&255,qa>>16&255,qa>>8&255,qa&255)}l=l.substring(l.indexOf(",")+1);l=window.atob?atob(l):Base64.decode(l,!0);var ja=0;if(V(l,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=J&&J();else if(V(l,4),"IHDR"!=V(l,4))null!=J&&J();else{V(l,17);J=l.substring(0,ja);do{var oa=aa(l);if("IDAT"==V(l,4)){J=l.substring(0,ja-8);"pHYs"==u&&"dpi"==H?(H=Math.round(U/.0254),H=ba(H)+ba(H)+String.fromCharCode(1)):H=H+String.fromCharCode(0)+("zTXt"==u?String.fromCharCode(0):"")+U;U=4294967295;
-U=Editor.updateCRC(U,u,0,4);U=Editor.updateCRC(U,H,0,H.length);J+=ba(H.length)+u+H+ba(U^4294967295);J+=l.substring(ja-8,l.length);break}J+=l.substring(ja-8,ja-4+oa);V(l,oa);V(l,4)}while(oa);return"data:image/png;base64,"+(window.btoa?btoa(J):Base64.encode(J,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var G=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(l,u){G.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);
+var Ma=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Ea,this.resolvedFontCss),Ka.src=Editor.createSvgDataUri(mxUtils.getXml(Ea))}catch(ya){null!=J&&J(ya)}});this.embedExtFonts(mxUtils.bind(this,function(ya){try{null!=ya&&this.addFontCss(Ea,ya),this.loadFonts(Ma)}catch(Wa){null!=J&&J(Wa)}}))}catch(ya){null!=J&&J(ya)}}),H,qa)}catch(Ea){null!=J&&J(Ea)}};Editor.crcTable=[];for(var v=0;256>v;v++)for(var p=v,A=0;8>A;A++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[v]=
+p;Editor.updateCRC=function(l,u,H,U){for(var J=0;J<U;J++)l=Editor.crcTable[(l^u.charCodeAt(H+J))&255]^l>>>8;return l};Editor.crc32=function(l){for(var u=-1,H=0;H<l.length;H++)u=u>>>8^Editor.crcTable[(u^l.charCodeAt(H))&255];return(u^-1)>>>0};Editor.writeGraphModelToPng=function(l,u,H,U,J){function W(qa,ra){var ua=ja;ja+=ra;return qa.substring(ua,ja)}function aa(qa){qa=W(qa,4);return qa.charCodeAt(3)+(qa.charCodeAt(2)<<8)+(qa.charCodeAt(1)<<16)+(qa.charCodeAt(0)<<24)}function ba(qa){return String.fromCharCode(qa>>
+24&255,qa>>16&255,qa>>8&255,qa&255)}l=l.substring(l.indexOf(",")+1);l=window.atob?atob(l):Base64.decode(l,!0);var ja=0;if(W(l,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=J&&J();else if(W(l,4),"IHDR"!=W(l,4))null!=J&&J();else{W(l,17);J=l.substring(0,ja);do{var oa=aa(l);if("IDAT"==W(l,4)){J=l.substring(0,ja-8);"pHYs"==u&&"dpi"==H?(H=Math.round(U/.0254),H=ba(H)+ba(H)+String.fromCharCode(1)):H=H+String.fromCharCode(0)+("zTXt"==u?String.fromCharCode(0):"")+U;U=4294967295;
+U=Editor.updateCRC(U,u,0,4);U=Editor.updateCRC(U,H,0,H.length);J+=ba(H.length)+u+H+ba(U^4294967295);J+=l.substring(ja-8,l.length);break}J+=l.substring(ja-8,ja-4+oa);W(l,oa);W(l,4)}while(oa);return"data:image/png;base64,"+(window.btoa?btoa(J):Base64.encode(J,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var G=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(l,u){G.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);
mxSettings.save()};var S=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){S.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(l,u){var H=null;null!=l.editor.graph.getModel().getParent(u)?H=u.getId():null!=l.currentPage&&(H=l.currentPage.getId());return H});if(null!=window.StyleFormatPanel){var F=Format.prototype.init;Format.prototype.init=function(){F.apply(this,
arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var P=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?P.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(l){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var R=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=
function(l){l=R.apply(this,arguments);var u=this.editorUi,H=u.editor.graph;if(H.isEnabled()){var U=u.getCurrentFile();null!=U&&U.isAutosaveOptional()&&l.appendChild(this.createOption(mxResources.get("autosave"),function(){return u.editor.autosave},function(aa){u.editor.setAutosave(aa);u.editor.autosave&&U.isModified()&&U.fileChanged()},{install:function(aa){this.listener=function(){aa(u.editor.autosave)};u.editor.addListener("autosaveChanged",this.listener)},destroy:function(){u.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&
-H.isEnabled()&&"undefined"!==typeof MathJax){var J=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return H.mathEnabled},function(aa){u.actions.get("mathematicalTypesetting").funct()},{install:function(aa){this.listener=function(){aa(H.mathEnabled)};u.addListener("mathEnabledChanged",this.listener)},destroy:function(){u.removeListener(this.listener)}});l.appendChild(J);if(!u.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var V=u.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting");
-V.style.position="absolute";V.style.left="85%";J.appendChild(V)}}return l};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",
+H.isEnabled()&&"undefined"!==typeof MathJax){var J=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return H.mathEnabled},function(aa){u.actions.get("mathematicalTypesetting").funct()},{install:function(aa){this.listener=function(){aa(H.mathEnabled)};u.addListener("mathEnabledChanged",this.listener)},destroy:function(){u.removeListener(this.listener)}});l.appendChild(J);if(!u.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var W=u.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting");
+W.style.position="absolute";W.style.left="85%";J.appendChild(W)}}return l};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",
dispName:"Width",type:"float",min:0,defVal:10},{name:"startWidth",dispName:"Start Width",type:"float",min:0,defVal:20},{name:"endWidth",dispName:"End Width",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.process.prototype.customProperties=[{name:"size",dispName:"Indent",type:"float",min:0,max:.5,defVal:.1}];mxCellRenderer.defaultShapes.rhombus.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,max:50,defVal:mxConstants.LINE_ARCSIZE},{name:"double",dispName:"Double",
type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.partialRectangle.prototype.customProperties=[{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},{name:"left",dispName:"Left Line",type:"bool",defVal:!0},{name:"right",dispName:"Right Line",type:"bool",defVal:!0}];mxCellRenderer.defaultShapes.parallelogram.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"size",
dispName:"Slope Angle",type:"float",min:0,max:1,defVal:.2,isVisible:function(l){return"0"==mxUtils.getValue(l.style,"fixedSize","0")}},{name:"size",dispName:"Slope Angle",type:"float",min:0,defVal:20,isVisible:function(l){return"1"==mxUtils.getValue(l.style,"fixedSize","0")}}];mxCellRenderer.defaultShapes.hexagon.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"size",dispName:"Slope Angle",type:"float",min:0,max:1,defVal:.25,
@@ -3338,21 +3353,21 @@ stroke:"#9673a6"}],[{fill:"",stroke:""},{fill:"#60a917",stroke:"#2D7600",font:"#
font:"#000000"},{fill:"#e3c800",stroke:"#B09500",font:"#000000"},{fill:"#6d8764",stroke:"#3A5431",font:"#ffffff"},{fill:"#647687",stroke:"#314354",font:"#ffffff"},{fill:"#76608a",stroke:"#432D57",font:"#ffffff"},{fill:"#a0522d",stroke:"#6D1F00",font:"#ffffff"}],[{fill:"",stroke:""},{fill:mxConstants.NONE,stroke:""},{fill:"#fad7ac",stroke:"#b46504"},{fill:"#fad9d5",stroke:"#ae4132"},{fill:"#b0e3e6",stroke:"#0e8088"},{fill:"#b1ddf0",stroke:"#10739e"},{fill:"#d0cee2",stroke:"#56517e"},{fill:"#bac8d3",
stroke:"#23445d"}],[{fill:"",stroke:""},{fill:"#f5f5f5",stroke:"#666666",gradient:"#b3b3b3"},{fill:"#dae8fc",stroke:"#6c8ebf",gradient:"#7ea6e0"},{fill:"#d5e8d4",stroke:"#82b366",gradient:"#97d077"},{fill:"#ffcd28",stroke:"#d79b00",gradient:"#ffa500"},{fill:"#fff2cc",stroke:"#d6b656",gradient:"#ffd966"},{fill:"#f8cecc",stroke:"#b85450",gradient:"#ea6b66"},{fill:"#e6d0de",stroke:"#996185",gradient:"#d5739d"}],[{fill:"",stroke:""},{fill:"#eeeeee",stroke:"#36393d"},{fill:"#f9f7ed",stroke:"#36393d"},
{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;StyleFormatPanel.prototype.findCommonProperties=function(l,u,H,U){if(null!=u){var J=mxUtils.bind(this,function(aa){if(null!=aa)if(H)for(var ba=0;ba<aa.length;ba++){if("function"!==typeof aa[ba].isVisible||aa[ba].isVisible(U,this))u[aa[ba].name]=aa[ba]}else for(var ja in u){var oa=
-!1;for(ba=0;ba<aa.length;ba++)if(aa[ba].name==ja&&aa[ba].type==u[ja].type){oa=!0;break}oa||delete u[ja]}}),V=this.editorUi.editor.graph.view.getState(l);null!=V&&null!=V.shape&&(V.shape.commonCustomPropAdded||(V.shape.commonCustomPropAdded=!0,V.shape.customProperties=V.shape.customProperties||[],V.cell.vertex?Array.prototype.push.apply(V.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(V.shape.customProperties,Editor.commonEdgeProperties)),J(V.shape.customProperties));
+!1;for(ba=0;ba<aa.length;ba++)if(aa[ba].name==ja&&aa[ba].type==u[ja].type){oa=!0;break}oa||delete u[ja]}}),W=this.editorUi.editor.graph.view.getState(l);null!=W&&null!=W.shape&&(W.shape.commonCustomPropAdded||(W.shape.commonCustomPropAdded=!0,W.shape.customProperties=W.shape.customProperties||[],W.cell.vertex?Array.prototype.push.apply(W.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(W.shape.customProperties,Editor.commonEdgeProperties)),J(W.shape.customProperties));
l=l.getAttribute("customProperties");if(null!=l)try{J(JSON.parse(l))}catch(aa){}}};var T=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var l=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=l.style.shape&&!l.containsLabel&&0<l.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));T.apply(this,arguments);if(Editor.enableCustomProperties){for(var u={},H=l.vertices,U=l.edges,J=0;J<H.length;J++)this.findCommonProperties(H[J],
u,0==J,l);for(J=0;J<U.length;J++)this.findCommonProperties(U[J],u,0==H.length&&0==J,l);null!=Object.getOwnPropertyNames&&0<Object.getOwnPropertyNames(u).length&&this.container.appendChild(this.addProperties(this.createPanel(),u,l))}};var c=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(l){var u=this.editorUi.getSelectionState();1==u.cells.length?this.addActions(l,["copyStyle","pasteStyle"]):1<=u.cells.length&&this.addActions(l,["pasteStyle","pasteData"]);c.apply(this,
arguments);return l};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=function(l,u,H,U){function J(Pa,t,N,Q,X){if(null!=N.valueChanged)N.valueChanged(t,X);else{ua.getModel().beginUpdate();try{X=[];var ia=[];if(null!=N.index){for(var ka=[],pa=N.parentRow.nextSibling;pa&&pa.getAttribute("data-pName")==Pa;)ka.push(pa.getAttribute("data-pValue")),pa=pa.nextSibling;N.index<ka.length?null!=Q?ka.splice(Q,1):ka[N.index]=t:ka.push(t);null!=N.size&&ka.length>N.size&&(ka=ka.slice(0,
N.size));t=ka.join(",");null!=N.countProperty&&(ua.setCellStyles(N.countProperty,ka.length,ua.getSelectionCells()),X.push(N.countProperty),ia.push(ka.length))}ua.setCellStyles(Pa,t,ua.getSelectionCells());X.push(Pa);ia.push(t);if(null!=N.dependentProps)for(Pa=0;Pa<N.dependentProps.length;Pa++){var xa=N.dependentPropsDefVal[Pa],ta=N.dependentPropsVals[Pa];if(ta.length>t)ta=ta.slice(0,t);else for(var va=ta.length;va<t;va++)ta.push(xa);ta=ta.join(",");ua.setCellStyles(N.dependentProps[Pa],ta,ua.getSelectionCells());
-X.push(N.dependentProps[Pa]);ia.push(ta)}if("function"==typeof N.onChange)N.onChange(ua,t);ra.editorUi.fireEvent(new mxEventObject("styleChanged","keys",X,"values",ia,"cells",ua.getSelectionCells()))}finally{ua.getModel().endUpdate()}}}function V(Pa,t,N){var Q=mxUtils.getOffset(l,!0),X=mxUtils.getOffset(Pa,!0);t.style.position="absolute";t.style.left=X.x-Q.x+"px";t.style.top=X.y-Q.y+"px";t.style.width=Pa.offsetWidth+"px";t.style.height=Pa.offsetHeight-(N?4:0)+"px";t.style.zIndex=5}function aa(Pa,
+X.push(N.dependentProps[Pa]);ia.push(ta)}if("function"==typeof N.onChange)N.onChange(ua,t);ra.editorUi.fireEvent(new mxEventObject("styleChanged","keys",X,"values",ia,"cells",ua.getSelectionCells()))}finally{ua.getModel().endUpdate()}}}function W(Pa,t,N){var Q=mxUtils.getOffset(l,!0),X=mxUtils.getOffset(Pa,!0);t.style.position="absolute";t.style.left=X.x-Q.x+"px";t.style.top=X.y-Q.y+"px";t.style.width=Pa.offsetWidth+"px";t.style.height=Pa.offsetHeight-(N?4:0)+"px";t.style.zIndex=5}function aa(Pa,
t,N){function Q(ia){if(null==ia||ia==mxConstants.NONE)X.style.background="url('"+Dialog.prototype.noColorImage+"')";else if("default"==ia)X.style.background="";else{var ka=mxUtils.getLightDarkColor(ia);mxUtils.isLightDarkColor(ia)&&ka.light!=ka.dark?X.style.background="linear-gradient(to right bottom, "+ka.cssText+" 50%, "+mxUtils.invertLightDarkColor(ka).cssText+" 50.3%)":X.style.background=ia}}var X=document.createElement("div");X.style.width="32px";X.style.height="8px";X.style.margin="2px";X.style.borderStyle=
"solid";X.style.borderWidth="1px";Q(t);btn=mxUtils.button("",mxUtils.bind(ra,function(ia){this.editorUi.pickColor(t,function(ka){J(Pa,ka,N);Q(ka)});mxEvent.consume(ia)}));btn.style.height="18px";btn.style.width="40px";btn.style.marginTop="1px";btn.style.marginLeft="1px";btn.className="geColorBtn";btn.appendChild(X);return btn}function ba(Pa,t,N,Q,X,ia,ka){null!=t&&(t=t.split(","),za.push({name:Pa,values:t,type:N,defVal:Q,countProperty:X,parentRow:ia,isDeletable:!0,flipBkg:ka}));btn=mxUtils.button("+",
mxUtils.bind(ra,function(pa){for(var xa=ia,ta=0;null!=xa.nextSibling;)if(xa.nextSibling.getAttribute("data-pName")==Pa)xa=xa.nextSibling,ta++;else break;var va={type:N,parentRow:ia,index:ta,isDeletable:!0,defVal:Q,countProperty:X};ta=qa(Pa,"",va,0==ta%2,ka);J(Pa,Q,va);xa.parentNode.insertBefore(ta,xa.nextSibling);mxEvent.consume(pa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function ja(Pa,t,N,Q,X,ia,ka){if(0<X){var pa=Array(X);t=null!=t?t.split(","):[];
for(var xa=0;xa<X;xa++)pa[xa]=null!=t[xa]?t[xa]:null!=Q?Q:"";za.push({name:Pa,values:pa,type:N,defVal:Q,parentRow:ia,flipBkg:ka,size:X})}return document.createElement("div")}function oa(Pa,t,N){var Q=document.createElement("input");Q.type="checkbox";Q.checked="1"==t;mxEvent.addListener(Q,"change",function(){J(Pa,Q.checked?"1":"0",N)});return Q}function qa(Pa,t,N,Q,X){var ia=N.dispName,ka=N.type,pa=document.createElement("tr");pa.className="gePropRow"+(X?"Dark":"")+(Q?"Alt":"")+" gePropNonHeaderRow";
pa.setAttribute("data-pName",Pa);pa.setAttribute("data-pValue",t);Q=!1;null!=N.index&&(pa.setAttribute("data-index",N.index),ia=(null!=ia?ia:"")+"["+N.index+"]",Q=!0);var xa=document.createElement("td");xa.className="gePropRowCell";ia=mxResources.get(ia,null,ia);mxUtils.write(xa,ia);xa.setAttribute("title",ia);Q&&(xa.style.textAlign="right");pa.appendChild(xa);xa=document.createElement("td");xa.className="gePropRowCell";xa.setAttribute("title",null!=t?t:mxResources.get("none"));if("color"==ka)xa.appendChild(aa(Pa,
-t,N));else if("bool"==ka||"boolean"==ka)xa.appendChild(oa(Pa,t,N));else if("enum"==ka){var ta=N.enumList;for(X=0;X<ta.length;X++)if(ia=ta[X],ia.val==t){mxUtils.write(xa,mxResources.get(ia.dispName,null,ia.dispName));break}mxEvent.addListener(xa,"click",mxUtils.bind(ra,function(){var va=document.createElement("select"),Da=null;V(xa,va);for(var Na=0;Na<ta.length;Na++){var Ya=ta[Na],Za=document.createElement("option");Za.value=mxUtils.htmlEntities(Ya.val);mxUtils.write(Za,mxResources.get(Ya.dispName,
+t,N));else if("bool"==ka||"boolean"==ka)xa.appendChild(oa(Pa,t,N));else if("enum"==ka){var ta=N.enumList;for(X=0;X<ta.length;X++)if(ia=ta[X],ia.val==t){mxUtils.write(xa,mxResources.get(ia.dispName,null,ia.dispName));break}mxEvent.addListener(xa,"click",mxUtils.bind(ra,function(){var va=document.createElement("select"),Da=null;W(xa,va);for(var Na=0;Na<ta.length;Na++){var Ya=ta[Na],Za=document.createElement("option");Za.value=mxUtils.htmlEntities(Ya.val);mxUtils.write(Za,mxResources.get(Ya.dispName,
null,Ya.dispName));va.appendChild(Za);null==Ya.val&&(Za.value="null",Da=Za)}va.value=null==t&&null!=Da?"null":t;l.appendChild(va);mxEvent.addListener(va,"change",function(){var ab=mxUtils.htmlEntities(va.value);if(va[va.selectedIndex]==Da||"null"==ab.value)ab=null;J(Pa,ab,N)});va.focus();mxEvent.addListener(va,"blur",function(){l.removeChild(va)})}))}else"dynamicArr"==ka?xa.appendChild(ba(Pa,t,N.subType,N.subDefVal,N.countProperty,pa,X)):"staticArr"==ka?xa.appendChild(ja(Pa,t,N.subType,N.subDefVal,
N.size,pa,X)):"readOnly"==ka?(X=document.createElement("input"),X.setAttribute("readonly",""),X.value=t,X.style.borderWidth="0px","id"==Pa?(X.style.width="190px",X.style.position="relative",X.style.right="6px",X.style.float="right",X.style.background="none",X.style.textAlign="right",pa.firstChild.setAttribute("colspan","2"),X.setAttribute("title",t),pa.firstChild.appendChild(X)):(X.style.width="96px",xa.appendChild(X))):(xa.innerHTML=mxUtils.htmlEntities(decodeURIComponent(t)),mxEvent.addListener(xa,
-"click",mxUtils.bind(ra,function(){function va(){var Na=Da.value;Na=0==Na.length&&"string"!=ka&&"numbers"!=ka?0:Na;N.allowAuto&&(null!=Na.trim&&"auto"==Na.trim().toLowerCase()?(Na="auto",ka="string"):(Na=parseFloat(Na),Na=isNaN(Na)?0:Na));null!=N.min&&Na<N.min?Na=N.min:null!=N.max&&Na>N.max&&(Na=N.max);var Ya=null;try{Ya="numbers"==ka?Na.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==ka?parseInt(Na):Na)+"")}catch(Za){}J(Pa,Ya,N,null,Da)}var Da=document.createElement("input");V(xa,
+"click",mxUtils.bind(ra,function(){function va(){var Na=Da.value;Na=0==Na.length&&"string"!=ka&&"numbers"!=ka?0:Na;N.allowAuto&&(null!=Na.trim&&"auto"==Na.trim().toLowerCase()?(Na="auto",ka="string"):(Na=parseFloat(Na),Na=isNaN(Na)?0:Na));null!=N.min&&Na<N.min?Na=N.min:null!=N.max&&Na>N.max&&(Na=N.max);var Ya=null;try{Ya="numbers"==ka?Na.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==ka?parseInt(Na):Na)+"")}catch(Za){}J(Pa,Ya,N,null,Da)}var Da=document.createElement("input");W(xa,
Da,!0);Da.value=decodeURIComponent(t);Da.className="gePropEditor";"int"!=ka&&"float"!=ka||N.allowAuto||(Da.type="number",Da.step="int"==ka?"1":"any",null!=N.min&&(Da.min=parseFloat(N.min)),null!=N.max&&(Da.max=parseFloat(N.max)));l.appendChild(Da);mxEvent.addListener(Da,"keypress",function(Na){13==Na.keyCode&&va()});Da.focus();mxEvent.addListener(Da,"blur",function(){va()})})));N.isDeletable&&(X=mxUtils.button("-",mxUtils.bind(ra,function(va){J(Pa,"",N,N.index);mxEvent.consume(va)})),X.style.height=
"16px",X.style.width="25px",X.style.float="right",X.className="geColorBtn",xa.appendChild(X));pa.appendChild(xa);return pa}var ra=this,ua=this.editorUi.editor.graph,za=[];l.style.position="relative";l.style.padding="0";var Ba=document.createElement("table");Ba.className="geProperties";Ba.style.whiteSpace="nowrap";Ba.style.width="100%";var Ca=document.createElement("tr");Ca.className="gePropHeader";var La=document.createElement("th");La.className="gePropHeaderCell";La.style.paddingLeft="16px";La.style.backgroundRepeat=
"no-repeat";La.style.backgroundPosition="-2px 50%";La.style.backgroundSize="20px";mxUtils.write(La,mxResources.get("property"));Ca.style.cursor="pointer";var sa=function(){var Pa=Ba.querySelectorAll(".gePropNonHeaderRow");if(ra.editorUi.propertiesCollapsed){La.style.backgroundImage="url('"+Editor.arrowRightImage+"')";var t="none";for(var N=l.childNodes.length-1;0<=N;N--)try{var Q=l.childNodes[N],X=Q.nodeName.toUpperCase();"INPUT"!=X&&"SELECT"!=X||l.removeChild(Q)}catch(ia){}}else La.style.backgroundImage=
@@ -3360,8 +3375,8 @@ Da,!0);Da.value=decodeURIComponent(t);Da.className="gePropEditor";"int"!=ka&&"fl
H.edges.length&&(Ca=H.edges[0].id);null==Ca||U||Ba.appendChild(qa("id",mxUtils.htmlEntities(Ca),{dispName:"id",type:"readOnly"},!0,!1));for(var Ka in u)if(U=u[Ka],"function"!=typeof U.isVisible||U.isVisible(H,this)){var Ma=null!=U.getValue?U.getValue():null!=H.style[Ka]?mxUtils.htmlEntities(H.style[Ka]+""):null!=U.getDefaultValue?U.getDefaultValue(H,this):U.defVal;if("separator"==U.type)Ea=!Ea;else{if("staticArr"==U.type)U.size=parseInt(H.style[U.sizeProperty]||u[U.sizeProperty].defVal)||0;else if(null!=
U.dependentProps){var ya=U.dependentProps,Wa=[],Ia=[];for(Ca=0;Ca<ya.length;Ca++){var Xa=H.style[ya[Ca]];Ia.push(u[ya[Ca]].subDefVal);Wa.push(null!=Xa?Xa.split(","):[])}U.dependentPropsDefVal=Ia;U.dependentPropsVals=Wa}Ba.appendChild(qa(Ka,Ma,U,Aa,Ea));Aa=!Aa}}for(Ca=0;Ca<za.length;Ca++)for(U=za[Ca],u=U.parentRow,H=0;H<U.values.length;H++)Ka=qa(U.name,U.values[H],{type:U.type,parentRow:U.parentRow,isDeletable:U.isDeletable,index:H,defVal:U.defVal,countProperty:U.countProperty,size:U.size},0==H%2,
U.flipBkg),u.parentNode.insertBefore(Ka,u.nextSibling),u=Ka;l.appendChild(Ba);sa();return l};StyleFormatPanel.prototype.addStyles=function(l){if(null!=this.defaultColorSchemes){var u=function(za){mxEvent.addListener(za,"mouseenter",function(){za.style.opacity="1"});mxEvent.addListener(za,"mouseleave",function(){za.style.opacity="0.5"})},H=this.editorUi,U=H.editor.graph,J=document.createElement("div");J.style.whiteSpace="nowrap";J.style.paddingLeft="24px";J.style.paddingRight="20px";l.style.paddingLeft=
-"16px";l.style.paddingBottom="6px";l.style.position="relative";l.appendChild(J);var V=document.createElement("div");V.style.whiteSpace="nowrap";V.style.position="relative";V.style.textAlign="center";V.style.width="210px";for(var aa=[],ba=0;ba<this.defaultColorSchemes.length;ba++){var ja=document.createElement("div");ja.style.display="inline-block";ja.style.width="6px";ja.style.height="6px";ja.style.marginLeft="4px";ja.style.marginRight="3px";ja.style.borderRadius="3px";ja.style.cursor="pointer";ja.style.background=
-"transparent";ja.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(za){mxEvent.addListener(ja,"click",mxUtils.bind(this,function(){oa(za)}))})(ba);aa.push(ja);V.appendChild(ja)}var oa=mxUtils.bind(this,function(za){null!=aa[za]&&(null!=this.format.currentScheme&&null!=aa[this.format.currentScheme]&&(aa[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=za,qa(this.defaultColorSchemes[this.format.currentScheme]),aa[this.format.currentScheme].style.background=
+"16px";l.style.paddingBottom="6px";l.style.position="relative";l.appendChild(J);var W=document.createElement("div");W.style.whiteSpace="nowrap";W.style.position="relative";W.style.textAlign="center";W.style.width="210px";for(var aa=[],ba=0;ba<this.defaultColorSchemes.length;ba++){var ja=document.createElement("div");ja.style.display="inline-block";ja.style.width="6px";ja.style.height="6px";ja.style.marginLeft="4px";ja.style.marginRight="3px";ja.style.borderRadius="3px";ja.style.cursor="pointer";ja.style.background=
+"transparent";ja.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(za){mxEvent.addListener(ja,"click",mxUtils.bind(this,function(){oa(za)}))})(ba);aa.push(ja);W.appendChild(ja)}var oa=mxUtils.bind(this,function(za){null!=aa[za]&&(null!=this.format.currentScheme&&null!=aa[this.format.currentScheme]&&(aa[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=za,qa(this.defaultColorSchemes[this.format.currentScheme]),aa[this.format.currentScheme].style.background=
"#84d7ff")}),qa=mxUtils.bind(this,function(za){var Ba=mxUtils.clone(U.defaultVertexStyle);Ba[mxConstants.STYLE_STROKECOLOR]=null!=Ba[mxConstants.STYLE_STROKECOLOR]?Ba[mxConstants.STYLE_STROKECOLOR]:"default";Ba[mxConstants.STYLE_FILLCOLOR]=null!=Ba[mxConstants.STYLE_FILLCOLOR]?Ba[mxConstants.STYLE_FILLCOLOR]:"default";Ba[mxConstants.STYLE_FONTCOLOR]=null!=Ba[mxConstants.STYLE_FONTCOLOR]?Ba[mxConstants.STYLE_FONTCOLOR]:"default";U.replaceDefaultColors(new mxCell,Ba);var Ca=mxUtils.bind(this,function(sa){var Aa=
mxUtils.button("",mxUtils.bind(this,function(Ma){U.getModel().beginUpdate();try{for(var ya=H.getSelectionState().cells,Wa=0;Wa<ya.length;Wa++){var Ia=U.getModel().getStyle(ya[Wa]);null!=sa?(mxEvent.isShiftDown(Ma)||(Ia=""==sa.fill||null==sa.fill?mxUtils.setStyle(Ia,mxConstants.STYLE_FILLCOLOR,null):mxUtils.setStyle(Ia,mxConstants.STYLE_FILLCOLOR,sa.fill),Ia=""==sa.gradient||null==sa.gradient?mxUtils.setStyle(Ia,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(Ia,mxConstants.STYLE_GRADIENTCOLOR,
sa.gradient),mxEvent.isControlDown(Ma)||mxClient.IS_MAC&&mxEvent.isMetaDown(Ma)||!U.getModel().isVertex(ya[Wa])||(Ia=""==sa.font||null==sa.font?mxUtils.setStyle(Ia,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(Ia,mxConstants.STYLE_FONTCOLOR,sa.font))),mxEvent.isAltDown(Ma)||(Ia=""==sa.stroke||null==sa.fill?mxUtils.setStyle(Ia,mxConstants.STYLE_STROKECOLOR,null):mxUtils.setStyle(Ia,mxConstants.STYLE_STROKECOLOR,sa.stroke))):(Ia=mxUtils.setStyle(Ia,mxConstants.STYLE_FILLCOLOR,null),Ia=mxUtils.setStyle(Ia,
@@ -3372,21 +3387,21 @@ Ka.light+" 50.3%)"}null==sa.stroke||sa.stroke==mxConstants.NONE?Aa.style.border=
"transparent",J.appendChild(Ea),Ea.style.marginLeft="-42px",mxEvent.addListener(Ea,"click",function(){Aa.click()}))});J.innerText="";if(null!=za)for(var La=0;La<za.length;La++)0<La&&0==mxUtils.mod(La,4)&&mxUtils.br(J),Ca(za[La])});null==this.format.currentScheme?oa(Math.min(aa.length-1,Editor.isDarkMode()?1:"1"==urlParams.sketch?5:0)):oa(this.format.currentScheme);ba=10>=this.defaultColorSchemes.length?28:8;var ra=document.createElement("div");ra.style.cssText="position:absolute;left:10px;top:8px;bottom:"+
ba+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ4eHh3d3d1dXVxcXF2dnZ2dnZ2dnZxcXF2dnYmb3w1AAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADRJREFUCNdjwACMAmBKaiGYs2oJmLPKAZ3DabU8AMRTXpUKopislqFyVzCAuUZgikkBZjoAcMYLnp53P/UAAAAASUVORK5CYII=);";mxEvent.addListener(ra,"click",mxUtils.bind(this,function(){oa(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));
var ua=document.createElement("div");ua.style.cssText="position:absolute;left:202px;top:8px;bottom:"+ba+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnYBuwCcAAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADZJREFUCNdjQAOMAmBKaiGY8loF5rKswsZlrVo8AUiFrTICcbIWK8A5DF1gDoMymMPApIAwHwCS0Qx/U7qCBQAAAABJRU5ErkJggg==);";1<this.defaultColorSchemes.length&&
-(l.appendChild(ra),l.appendChild(ua));mxEvent.addListener(ua,"click",mxUtils.bind(this,function(){oa(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));u(ra);u(ua);qa(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&l.appendChild(V)}return l}}Graph.fontMapping={"https://fonts.googleapis.com/css?family=Architects+Daughter":'@font-face { font-family: "Architects Daughter"; src: url('+STYLE_PATH+'/fonts/ArchitectsDaughter-Regular.ttf) format("truetype"); }'};
+(l.appendChild(ra),l.appendChild(ua));mxEvent.addListener(ua,"click",mxUtils.bind(this,function(){oa(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));u(ra);u(ua);qa(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&l.appendChild(W)}return l}}Graph.fontMapping={"https://fonts.googleapis.com/css?family=Architects+Daughter":'@font-face { font-family: "Architects Daughter"; src: url('+STYLE_PATH+'/fonts/ArchitectsDaughter-Regular.ttf) format("truetype"); }'};
Graph.customFontElements={};Graph.isGoogleFontUrl=function(l){return l.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||l.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(l){return Graph.isGoogleFontUrl(l)};Graph.rewriteGoogleFontUrl=function(l){null!=l&&l.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(l=Editor.GOOGLE_FONTS_CSS2+l.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return l};Graph.createFontElement=
function(l,u){var H=Graph.fontMapping[u];null==H&&Graph.isCssFontUrl(u)?(l=document.createElement("link"),l.setAttribute("rel","stylesheet"),l.setAttribute("type","text/css"),l.setAttribute("charset","UTF-8"),l.setAttribute("href",Graph.rewriteGoogleFontUrl(u))):(null==H&&(H='@font-face {\nfont-family: "'+l+'";\nsrc: url("'+u+'");\n}'),l=document.createElement("style"),mxUtils.write(l,H));return l};Graph.addRecentCustomFont=function(l,u){};Graph.addFont=function(l,u,H){if(null!=l&&0<l.length&&null!=
u&&0<u.length){var U=l.toLowerCase();if("helvetica"!=U&&"arial"!=l&&"sans-serif"!=U){var J=Graph.customFontElements[U];null!=J&&J.url!=u&&(J.elt.parentNode.removeChild(J.elt),J=null);null==J?(J=u,"http:"==u.substring(0,5)&&(J=PROXY_URL+"?url="+encodeURIComponent(u)),J={name:l,url:u,elt:Graph.createFontElement(l,J)},Graph.customFontElements[U]=J,u=document.getElementsByTagName("head")[0],null!=H&&("link"==J.elt.nodeName.toLowerCase()?(J.elt.onload=H,J.elt.onerror=H):H()),null!=u&&u.appendChild(J.elt)):
null!=H&&H()}else null!=H&&H()}else null!=H&&H();return l};Graph.getFontUrl=function(l,u){l=Graph.customFontElements[l.toLowerCase()];null!=l&&(u=l.url);return u};Graph.processFontAttributes=function(l){l=l.getElementsByTagName("*");for(var u=0;u<l.length;u++){var H=l[u].getAttribute("data-font-src");if(null!=H){var U="FONT"==l[u].nodeName?l[u].getAttribute("face"):l[u].style.fontFamily;null!=U&&Graph.addFont(U,H)}}};Graph.processFontStyle=function(l){if(null!=l){var u=mxUtils.getValue(l,"fontSource",
null);if(null!=u){var H=mxUtils.getValue(l,mxConstants.STYLE_FONTFAMILY,null);if(null!=H)try{Graph.addFont(H,decodeURIComponent(u))}catch(U){}}}return l};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;Graph.prototype.shadowId="drawio-drop-shadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur=
"1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var f=Graph.prototype.init;Graph.prototype.init=function(){function l(J){u=J}f.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var u=null;mxEvent.addListener(this.container,"mouseenter",l);mxEvent.addListener(this.container,"mousemove",l);mxEvent.addListener(this.container,"mouseleave",function(J){u=null});this.isMouseInsertPoint=function(){return null!=
-u};var H=this.getInsertPoint;this.getInsertPoint=function(){return null!=u?this.getPointForEvent(u):H.apply(this,arguments)};var U=this.layoutManager.getLayout;this.layoutManager.getLayout=function(J){var V=this.graph.getCellStyle(J);if(null!=V&&"rack"==V.childLayout){var aa=new mxStackLayout(this.graph,!1);aa.gridSize=null!=V.rackUnitSize?parseFloat(V.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;aa.marginLeft=V.marginLeft||0;aa.marginRight=V.marginRight||0;aa.marginTop=
-V.marginTop||0;aa.marginBottom=V.marginBottom||0;aa.allowGaps=V.allowGaps||0;aa.horizontal="1"==mxUtils.getValue(V,"horizontalRack","0");aa.resizeParent=!1;aa.fill=!0;return aa}return U.apply(this,arguments)};this.updateGlobalUrlVariables()};var k=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(l,u){return Graph.processFontStyle(k.apply(this,arguments))};var A=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(l,u,H,U,J,V,aa,
-ba,ja,oa,qa,ra){A.apply(this,arguments);Graph.processFontAttributes(ra)};var z=mxText.prototype.redraw;mxText.prototype.redraw=function(){z.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(l,u,H,U){function J(){for(var Ca=ba.getSelectionCells(),La=[],sa=0;sa<Ca.length;sa++)ba.isCellVisible(Ca[sa])&&La.push(Ca[sa]);ba.setSelectionCells(La)}function V(Ca){ba.setHiddenTags(Ca?[]:ja.slice());J();ba.refresh()}
+u};var H=this.getInsertPoint;this.getInsertPoint=function(){return null!=u?this.getPointForEvent(u):H.apply(this,arguments)};var U=this.layoutManager.getLayout;this.layoutManager.getLayout=function(J){var W=this.graph.getCellStyle(J);if(null!=W&&"rack"==W.childLayout){var aa=new mxStackLayout(this.graph,!1);aa.gridSize=null!=W.rackUnitSize?parseFloat(W.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;aa.marginLeft=W.marginLeft||0;aa.marginRight=W.marginRight||0;aa.marginTop=
+W.marginTop||0;aa.marginBottom=W.marginBottom||0;aa.allowGaps=W.allowGaps||0;aa.horizontal="1"==mxUtils.getValue(W,"horizontalRack","0");aa.resizeParent=!1;aa.fill=!0;return aa}return U.apply(this,arguments)};this.updateGlobalUrlVariables()};var k=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(l,u){return Graph.processFontStyle(k.apply(this,arguments))};var B=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(l,u,H,U,J,W,aa,
+ba,ja,oa,qa,ra){B.apply(this,arguments);Graph.processFontAttributes(ra)};var z=mxText.prototype.redraw;mxText.prototype.redraw=function(){z.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(l,u,H,U){function J(){for(var Ca=ba.getSelectionCells(),La=[],sa=0;sa<Ca.length;sa++)ba.isCellVisible(Ca[sa])&&La.push(Ca[sa]);ba.setSelectionCells(La)}function W(Ca){ba.setHiddenTags(Ca?[]:ja.slice());J();ba.refresh()}
function aa(Ca,La){qa.innerText="";if(0<Ca.length){var sa=document.createElement("table");sa.setAttribute("cellpadding","2");sa.style.boxSizing="border-box";sa.style.tableLayout="fixed";sa.style.width="100%";var Aa=document.createElement("tbody");if(null!=Ca&&0<Ca.length)for(var Ea=0;Ea<Ca.length;Ea++)(function(Ka){function Ma(){var t=ba.getCellsForTags([Ka],null,null,!0);ba.isEnabled()?ba.setSelectionCells(t):ba.highlightCells(t,null,null,70)}var ya=0>mxUtils.indexOf(ba.hiddenTags,Ka),Wa=document.createElement("tr"),
Ia=document.createElement("td");Ia.style.align="center";Ia.style.width="16px";var Xa=document.createElement("img");Xa.setAttribute("src",ya?Editor.visibleImage:Editor.hiddenImage);Xa.setAttribute("title",mxResources.get(ya?"hideIt":"show",[Ka]));mxUtils.setOpacity(Xa,ya?75:25);Xa.className="geAdaptiveAsset";Xa.style.verticalAlign="middle";Xa.style.cursor="pointer";Xa.style.width="16px";if(u||Editor.isDarkMode())Xa.style.filter="invert(100%)";Ia.appendChild(Xa);mxEvent.addListener(Xa,"click",function(t){mxEvent.isShiftDown(t)?
-V(0<=mxUtils.indexOf(ba.hiddenTags,Ka)):(ba.toggleHiddenTag(Ka),J(),ba.refresh());mxEvent.consume(t)});Wa.appendChild(Ia);Ia=document.createElement("td");Ia.style.align="center";Ia.style.width="16px";Xa=document.createElement("img");Xa.setAttribute("src",Editor.selectImage);Xa.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(Xa,ya?75:25);Xa.className="geAdaptiveAsset";Xa.style.verticalAlign="middle";Xa.style.cursor="pointer";Xa.style.width="16px";if(u||Editor.isDarkMode())Xa.style.filter=
-"invert(100%)";mxEvent.addListener(Xa,"click",function(t){V(!0);Ma();mxEvent.consume(t)});Ia.appendChild(Xa);Wa.appendChild(Ia);Ia=document.createElement("td");Ia.style.overflow="hidden";Ia.style.whiteSpace="nowrap";Ia.style.textOverflow="ellipsis";Ia.style.verticalAlign="middle";Ia.style.cursor="pointer";Ia.setAttribute("title",Ka);a=document.createElement("a");mxUtils.write(a,Ka);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,ya?100:40);Ia.appendChild(a);mxEvent.addListener(Ia,
-"click",function(t){if(mxEvent.isShiftDown(t))V(!0),Ma();else if(ya&&0<ba.hiddenTags.length)V(!0);else{var N=ja.slice(),Q=mxUtils.indexOf(N,Ka);N.splice(Q,1);ba.setHiddenTags(N);J();ba.refresh()}mxEvent.consume(t)});Wa.appendChild(Ia);if(ba.isEnabled()){Ia=document.createElement("td");Ia.style.verticalAlign="middle";Ia.style.textAlign="center";Ia.style.width="18px";if(null==La){Ia.style.align="center";Ia.style.width="16px";Xa=document.createElement("img");Xa.setAttribute("src",Editor.trashImage);
+W(0<=mxUtils.indexOf(ba.hiddenTags,Ka)):(ba.toggleHiddenTag(Ka),J(),ba.refresh());mxEvent.consume(t)});Wa.appendChild(Ia);Ia=document.createElement("td");Ia.style.align="center";Ia.style.width="16px";Xa=document.createElement("img");Xa.setAttribute("src",Editor.selectImage);Xa.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(Xa,ya?75:25);Xa.className="geAdaptiveAsset";Xa.style.verticalAlign="middle";Xa.style.cursor="pointer";Xa.style.width="16px";if(u||Editor.isDarkMode())Xa.style.filter=
+"invert(100%)";mxEvent.addListener(Xa,"click",function(t){W(!0);Ma();mxEvent.consume(t)});Ia.appendChild(Xa);Wa.appendChild(Ia);Ia=document.createElement("td");Ia.style.overflow="hidden";Ia.style.whiteSpace="nowrap";Ia.style.textOverflow="ellipsis";Ia.style.verticalAlign="middle";Ia.style.cursor="pointer";Ia.setAttribute("title",Ka);a=document.createElement("a");mxUtils.write(a,Ka);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,ya?100:40);Ia.appendChild(a);mxEvent.addListener(Ia,
+"click",function(t){if(mxEvent.isShiftDown(t))W(!0),Ma();else if(ya&&0<ba.hiddenTags.length)W(!0);else{var N=ja.slice(),Q=mxUtils.indexOf(N,Ka);N.splice(Q,1);ba.setHiddenTags(N);J();ba.refresh()}mxEvent.consume(t)});Wa.appendChild(Ia);if(ba.isEnabled()){Ia=document.createElement("td");Ia.style.verticalAlign="middle";Ia.style.textAlign="center";Ia.style.width="18px";if(null==La){Ia.style.align="center";Ia.style.width="16px";Xa=document.createElement("img");Xa.setAttribute("src",Editor.trashImage);
Xa.setAttribute("title",mxResources.get("removeIt",[Ka]));mxUtils.setOpacity(Xa,ya?75:25);Xa.className="geAdaptiveAsset";Xa.style.verticalAlign="middle";Xa.style.cursor="pointer";Xa.style.width="16px";if(u||Editor.isDarkMode())Xa.style.filter="invert(100%)";mxEvent.addListener(Xa,"click",function(t){var N=mxUtils.indexOf(ja,Ka);0<=N&&ja.splice(N,1);ba.removeTagsForCells(ba.model.getDescendants(ba.model.getRoot()),[Ka]);ba.refresh();mxEvent.consume(t)});Ia.appendChild(Xa)}else{var Pa=document.createElement("input");
Pa.setAttribute("type","checkbox");Pa.style.margin="0px";Pa.defaultChecked=null!=La&&0<=mxUtils.indexOf(La,Ka);Pa.checked=Pa.defaultChecked;Pa.style.background="transparent";Pa.setAttribute("title",mxResources.get(Pa.defaultChecked?"removeIt":"add",[Ka]));mxEvent.addListener(Pa,"change",function(t){Pa.checked?ba.addTagsForCells(ba.getSelectionCells(),[Ka]):ba.removeTagsForCells(ba.getSelectionCells(),[Ka]);mxEvent.consume(t)});Ia.appendChild(Pa)}Wa.appendChild(Ia)}Aa.appendChild(Wa)})(Ca[Ea]);sa.appendChild(Aa);
qa.appendChild(sa)}}var ba=this,ja=ba.hiddenTags.slice(),oa=document.createElement("div");oa.style.userSelect="none";oa.style.overflow="hidden";oa.style.padding="10px";oa.style.height="100%";var qa=document.createElement("div");qa.style.position="absolute";qa.style.boxSizing="border-box";qa.style.userSelect="none";qa.style.overflow="auto";qa.style.padding="3px";qa.style.left="0px";qa.style.right="0px";qa.style.top="0px";qa.style.bottom="0px";oa.appendChild(qa);ba.addListener(mxEvent.ROOT,function(){ja=
@@ -3394,9 +3409,9 @@ ba.hiddenTags.slice()});var ra=mxUtils.bind(this,function(Ca,La){if(l()){Ca=ba.g
"flex";ua.style.bottom="0px";ua.style.left="0px";ua.style.right="0px";ua.style.height="26px";ua.style.overflow="hidden";ua.style.padding="3px 4px 4px 4px";ua.style.borderWidth="1px 0px 0px 0px";ua.style.borderStyle="solid";ua.style.whiteSpace="nowrap";if(ba.isEnabled()){qa.style.bottom="34px";var za=document.createElement("a");za.className="geToolbarButton geAdaptiveAsset geToggleItem";za.style.width="16px";za.style.height="18px";za.style.backgroundPosition="center center";za.style.backgroundRepeat=
"no-repeat";za.style.backgroundSize="20px";za.style.margin="0 2px";za.style.display="inline-block";za.style.cursor="pointer";var Ba=za.cloneNode(!1);Ba.style.backgroundImage="url("+Editor.visibleImage+")";Ba.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(Ba,"click",function(Ca){ba.setHiddenTags([]);mxEvent.isShiftDown(Ca)||(ja=ba.hiddenTags.slice());J();ba.refresh();mxEvent.consume(Ca)});ua.appendChild(Ba);null!=H&&(za=za.cloneNode(!1),za.style.backgroundImage="url("+Editor.plusImage+
")",za.setAttribute("title",mxResources.get("add")),mxEvent.addListener(za,"click",function(Ca){H(ja,function(La){ja=La;ra()});mxEvent.consume(Ca)}),ua.appendChild(za));oa.appendChild(ua)}null!=U&&ua.appendChild(U);return{div:oa,refresh:ra}};Graph.prototype.getCustomFonts=function(){var l=this.extFonts;l=null!=l?l.slice():[];for(var u in Graph.customFontElements){var H=Graph.customFontElements[u];l.push({name:H.name,url:H.url})}return l};Graph.prototype.setFont=function(l,u){Graph.addFont(l,u);var H=
-Editor.guid();document.execCommand("fontname",!1,H);for(var U=this.cellEditor.textarea.getElementsByTagName("font"),J=!1,V=0;V<U.length;V++)U[V].getAttribute("face")==H&&(J=!0,U[V].setAttribute("face",l),null!=u?U[V].setAttribute("data-font-src",u):U[V].removeAttribute("data-font-src"));J||document.execCommand("fontname",!1,l)};var C=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return C.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=
+Editor.guid();document.execCommand("fontname",!1,H);for(var U=this.cellEditor.textarea.getElementsByTagName("font"),J=!1,W=0;W<U.length;W++)U[W].getAttribute("face")==H&&(J=!0,U[W].setAttribute("face",l),null!=u?U[W].setAttribute("data-font-src",u):U[W].removeAttribute("data-font-src"));J||document.execCommand("fontname",!1,l)};var C=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return C.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=
function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var l=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=l)for(var u in l)this.globalVars[u]=l[u]}catch(H){null!=window.console&&console.log("Error in vars URL parameter: "+H)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var I=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=
-function(l){var u=I.apply(this,arguments);null==u&&null!=this.globalVars&&(u=this.globalVars[l]);return u};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var l=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(l.ownerDocument)).decode(l)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var L=Graph.prototype.getSvg;Graph.prototype.getSvg=function(l,u,H,U,J,V,aa,ba,ja,oa,qa,ra,ua,za,Ba,Ca){var La=L.apply(this,
+function(l){var u=I.apply(this,arguments);null==u&&null!=this.globalVars&&(u=this.globalVars[l]);return u};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var l=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(l.ownerDocument)).decode(l)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var L=Graph.prototype.getSvg;Graph.prototype.getSvg=function(l,u,H,U,J,W,aa,ba,ja,oa,qa,ra,ua,za,Ba,Ca){var La=L.apply(this,
arguments);if(null!=ra){var sa=La.getAttribute("style");null==sa&&(sa="");ra="auto"==ra?"none"==this.getAdaptiveColors()?"light":"light dark":ra;La.setAttribute("style",sa+(" color-scheme: "+ra+";"))}var Aa=this.getCustomFonts();if(qa&&0<Aa.length){var Ea=La.ownerDocument;sa=null!=Ea.createElementNS?Ea.createElementNS(mxConstants.NS_SVG,"style"):Ea.createElement("style");null!=Ea.setAttributeNS?sa.setAttributeNS("type","text/css"):sa.setAttribute("type","text/css");for(var Ka="",Ma="",ya=0;ya<Aa.length;ya++){var Wa=
Aa[ya].name,Ia=Aa[ya].url;Graph.isCssFontUrl(Ia)?Ka+="@import url("+Graph.rewriteGoogleFontUrl(Ia)+");\n":Ma+='@font-face {\nfont-family: "'+Wa+'";\nsrc: url("'+Ia+'");\n}\n'}sa.appendChild(Ea.createTextNode(Ka+Ma));La.getElementsByTagName("defs")[0].appendChild(sa)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(La);this.mathEnabled&&(document.body.appendChild(La),Editor.MathJaxRender(La),La.parentNode.removeChild(La),sa=La.ownerDocument.getElementById("MJX-SVG-styles"),
null!=sa&&La.getElementsByTagName("defs")[0].appendChild(sa.cloneNode(!0)));return La};var K=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(l){K.apply(this,arguments);null!=l.secondLabel&&(l.secondLabel.destroy(),l.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(l){return[l.shape,l.text,l.secondLabel,l.control]};var O=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){O.apply(this,arguments);this.enumerationState=
@@ -3404,28 +3419,28 @@ null!=sa&&La.getElementsByTagName("defs")[0].appendChild(sa.cloneNode(!0)));retu
function(l){var u="1"==mxUtils.getValue(l.style,"enumerate",0);u&&null==l.secondLabel?(l.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),l.secondLabel.size=12,l.secondLabel.state=l,l.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(l,l.secondLabel)):u||null==l.secondLabel||(l.secondLabel.destroy(),l.secondLabel=null);u=l.secondLabel;if(null!=u){var H=l.view.scale,U=this.createEnumerationValue(l);l=this.graph.model.isVertex(l.cell)?
new mxRectangle(l.x+l.width-4*H,l.y+4*H,0,0):mxRectangle.fromPoint(l.view.getPoint(l));u.bounds.equals(l)&&u.value==U&&u.scale==H||(u.bounds=l,u.value=U,u.scale=H,u.redraw())}};var ea=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();ea.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};
var ca=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){ca.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(l,u){"data:action/json,"==l.substring(0,17)&&(l=JSON.parse(l.substring(17)),null!=l.actions&&this.executeCustomActions(l.actions,null,u))};Graph.prototype.executeCustomActions=function(l,u,H){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread),
-null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var U=!1,J=0,V=0,aa=mxUtils.bind(this,function(){U||(U=!0,this.model.beginUpdate())}),ba=mxUtils.bind(this,function(){U&&(U=!1,this.model.endUpdate())}),ja=mxUtils.bind(this,function(){0<J&&J--;0==J&&oa()}),oa=mxUtils.bind(this,function(){if(V<l.length){var qa=this.stoppingCustomActions,ra=l[V++],ua=[];if(null!=ra.open)if(ba(),this.isCustomLink(ra.open)){if(!this.customLinkClicked(ra.open,
+null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var U=!1,J=0,W=0,aa=mxUtils.bind(this,function(){U||(U=!0,this.model.beginUpdate())}),ba=mxUtils.bind(this,function(){U&&(U=!1,this.model.endUpdate())}),ja=mxUtils.bind(this,function(){0<J&&J--;0==J&&oa()}),oa=mxUtils.bind(this,function(){if(W<l.length){var qa=this.stoppingCustomActions,ra=l[W++],ua=[];if(null!=ra.open)if(ba(),this.isCustomLink(ra.open)){if(!this.customLinkClicked(ra.open,
H))return}else this.openLink(ra.open);null==ra.wait||qa||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;ja()}),J++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=ra.wait?parseInt(ra.wait):1E3),ba());null!=ra.opacity&&null!=ra.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(ra.opacity,!0)),ra.opacity.value);null!=ra.fadeIn&&(J++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(ra.fadeIn,
!0)),0,1,ja,qa?0:ra.fadeIn.delay));null!=ra.fadeOut&&(J++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(ra.fadeOut,!0)),1,0,ja,qa?0:ra.fadeOut.delay));null!=ra.wipeIn&&(ua=ua.concat(this.createWipeAnimations(this.getCellsForAction(ra.wipeIn,!0),!0)));null!=ra.wipeOut&&(ua=ua.concat(this.createWipeAnimations(this.getCellsForAction(ra.wipeOut,!0),!1)));null!=ra.toggle&&(aa(),this.toggleCells(this.getCellsForAction(ra.toggle,!0)));if(null!=ra.show){aa();var za=this.getCellsForAction(ra.show,
!0);Graph.setOpacityForNodes(this.getNodesForCells(za),1);this.setCellsVisible(za,!0)}null!=ra.hide&&(aa(),za=this.getCellsForAction(ra.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(za),0),this.setCellsVisible(za,!1));null!=ra.toggleStyle&&null!=ra.toggleStyle.key&&(aa(),this.toggleCellStyles(ra.toggleStyle.key,null!=ra.toggleStyle.defaultValue?ra.toggleStyle.defaultValue:"0",this.getCellsForAction(ra.toggleStyle,!0)));null!=ra.style&&null!=ra.style.key&&(aa(),this.setCellStyles(ra.style.key,
ra.style.value,this.getCellsForAction(ra.style,!0)));za=[];null!=ra.select&&this.isEnabled()&&(za=this.getCellsForAction(ra.select),this.setSelectionCells(za));null!=ra.highlight&&(za=this.getCellsForAction(ra.highlight),this.highlightCells(za,ra.highlight.color,ra.highlight.duration,ra.highlight.opacity));null!=ra.scroll&&(za=this.getCellsForAction(ra.scroll));null!=ra.viewbox&&this.fitWindow(ra.viewbox,ra.viewbox.border);0<za.length&&this.scrollCellToVisible(za[0]);null!=H&&null!=ra.explore&&Graph.exploreFromCell(this,
H,ra.explore);if(null!=ra.tags){if(null!=ra.tags.toggle){var Ba=ra.tags.toggle;0==Ba.length&&(Ba=this.getAllTags());for(za=0;za<Ba.length;za++)this.toggleHiddenTag(Ba[za])}Ba=null;null!=ra.tags.hidden&&(null==Ba&&(Ba=[]),Ba=Ba.concat(ra.tags.hidden));if(null!=ra.tags.visible){null==Ba&&(Ba=[]);var Ca=this.getAllTags();for(za=0;za<Ca.length;za++)0>mxUtils.indexOf(ra.tags.visible,Ca[za])&&0>mxUtils.indexOf(Ba,Ca[za])&&Ba.push(Ca[za])}null!=Ba&&this.setHiddenTags(Ba);this.refresh()}0<ua.length&&(J++,
-this.executeAnimations(ua,ja,qa?1:ra.steps,qa?0:ra.delay));0==J?oa():ba()}else this.stoppingCustomActions=this.executingCustomActions=!1,ba(),null!=u&&u()});oa()}};Graph.prototype.doUpdateCustomLinksForCell=function(l,u){var H=this.getLinkForCell(u);null!=H&&"data:action/json,"==H.substring(0,17)&&this.setLinkForCell(u,this.updateCustomLink(l,H));if(this.isHtmlLabel(u)){var U=document.createElement("div");U.innerHTML=Graph.sanitizeHtml(this.getLabel(u));for(var J=U.getElementsByTagName("a"),V=!1,
-aa=0;aa<J.length;aa++)H=J[aa].getAttribute("href"),null!=H&&"data:action/json,"==H.substring(0,17)&&(J[aa].setAttribute("href",this.updateCustomLink(l,H)),V=!0);V&&this.labelChanged(u,U.innerHTML)}};Graph.prototype.updateCustomLink=function(l,u){if("data:action/json,"==u.substring(0,17))try{var H=JSON.parse(u.substring(17));null!=H.actions&&(this.updateCustomLinkActions(l,H.actions),u="data:action/json,"+JSON.stringify(H))}catch(U){}return u};Graph.prototype.updateCustomLinkActions=function(l,u){for(var H=
-0;H<u.length;H++){var U=u[H],J;for(J in U)this.updateCustomLinkAction(l,U[J],"cells"),this.updateCustomLinkAction(l,U[J],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(l,u,H){if(null!=u&&null!=u[H]){for(var U=[],J=0;J<u[H].length;J++)if("*"==u[H][J])U.push(u[H][J]);else{var V=l[u[H][J]];null!=V?""!=V&&U.push(V):U.push(u[H][J])}u[H]=U}};Graph.prototype.getCellsForAction=function(l,u){u=this.getCellsById(l.cells).concat(this.getCellsForTags(l.tags,null,u));if(null!=l.excludeCells){for(var H=
-[],U=0;U<u.length;U++)0>l.excludeCells.indexOf(u[U].id)&&H.push(u[U]);u=H}return u};Graph.prototype.getCellsById=function(l){var u=[];if(null!=l)for(var H=0;H<l.length;H++)if("*"==l[H]){var U=this.model.getRoot();u=u.concat(this.model.filterDescendants(function(V){return V!=U},U))}else{var J=this.model.getCell(l[H]);null!=J&&u.push(J)}return u};var W=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(l){return W.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(l))};
+this.executeAnimations(ua,ja,qa?1:ra.steps,qa?0:ra.delay));0==J?oa():ba()}else this.stoppingCustomActions=this.executingCustomActions=!1,ba(),null!=u&&u()});oa()}};Graph.prototype.doUpdateCustomLinksForCell=function(l,u){var H=this.getLinkForCell(u);null!=H&&"data:action/json,"==H.substring(0,17)&&this.setLinkForCell(u,this.updateCustomLink(l,H));if(this.isHtmlLabel(u)){var U=document.createElement("div");U.innerHTML=Graph.sanitizeHtml(this.getLabel(u));for(var J=U.getElementsByTagName("a"),W=!1,
+aa=0;aa<J.length;aa++)H=J[aa].getAttribute("href"),null!=H&&"data:action/json,"==H.substring(0,17)&&(J[aa].setAttribute("href",this.updateCustomLink(l,H)),W=!0);W&&this.labelChanged(u,U.innerHTML)}};Graph.prototype.updateCustomLink=function(l,u){if("data:action/json,"==u.substring(0,17))try{var H=JSON.parse(u.substring(17));null!=H.actions&&(this.updateCustomLinkActions(l,H.actions),u="data:action/json,"+JSON.stringify(H))}catch(U){}return u};Graph.prototype.updateCustomLinkActions=function(l,u){for(var H=
+0;H<u.length;H++){var U=u[H],J;for(J in U)this.updateCustomLinkAction(l,U[J],"cells"),this.updateCustomLinkAction(l,U[J],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(l,u,H){if(null!=u&&null!=u[H]){for(var U=[],J=0;J<u[H].length;J++)if("*"==u[H][J])U.push(u[H][J]);else{var W=l[u[H][J]];null!=W?""!=W&&U.push(W):U.push(u[H][J])}u[H]=U}};Graph.prototype.getCellsForAction=function(l,u){u=this.getCellsById(l.cells).concat(this.getCellsForTags(l.tags,null,u));if(null!=l.excludeCells){for(var H=
+[],U=0;U<u.length;U++)0>l.excludeCells.indexOf(u[U].id)&&H.push(u[U]);u=H}return u};Graph.prototype.getCellsById=function(l){var u=[];if(null!=l)for(var H=0;H<l.length;H++)if("*"==l[H]){var U=this.model.getRoot();u=u.concat(this.model.filterDescendants(function(W){return W!=U},U))}else{var J=this.model.getCell(l[H]);null!=J&&u.push(J)}return u};var V=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(l){return V.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(l))};
Graph.prototype.setHiddenTags=function(l){this.hiddenTags=l;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(l){var u=mxUtils.indexOf(this.hiddenTags,l);0>u?this.hiddenTags.push(l):0<=u&&this.hiddenTags.splice(u,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(l){if(null==l||0==l.length||0==this.hiddenTags.length)return!1;l=l.split(" ");if(l.length>this.hiddenTags.length)return!1;for(var u=0;u<l.length;u++)if(0>
-mxUtils.indexOf(this.hiddenTags,l[u]))return!1;return!0};Graph.prototype.getCellsForTags=function(l,u,H,U){var J=[];if(null!=l){u=null!=u?u:this.model.getDescendants(this.model.getRoot());for(var V=0,aa={},ba=0;ba<l.length;ba++)0<l[ba].length&&(aa[l[ba]]=!0,V++);for(ba=0;ba<u.length;ba++)if(H&&this.model.getParent(u[ba])==this.model.root||this.model.isVertex(u[ba])||this.model.isEdge(u[ba])){var ja=this.getTagsForCell(u[ba]),oa=!1;if(0<ja.length&&(ja=ja.split(" "),ja.length>=l.length)){for(var qa=
-oa=0;qa<ja.length&&oa<V;qa++)null!=aa[ja[qa]]&&oa++;oa=oa==V}oa&&(1!=U||this.isCellVisible(u[ba]))&&J.push(u[ba])}}return J};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var u=null,H=[],U=0;U<l.length;U++){var J=this.getTagsForCell(l[U]);H=[];if(0<J.length){J=J.split(" ");for(var V={},aa=0;aa<J.length;aa++)if(null==u||null!=u[J[aa]])V[J[aa]]=!0,H.push(J[aa]);u=V}else return[]}return H};
-Graph.prototype.getTagsForCells=function(l){for(var u=[],H={},U=0;U<l.length;U++){var J=this.getTagsForCell(l[U]);if(0<J.length){J=J.split(" ");for(var V=0;V<J.length;V++)null==H[J[V]]&&(H[J[V]]=!0,u.push(J[V]))}}return u};Graph.prototype.getTagsForCell=function(l){return this.getAttributeForCell(l,"tags","")};Graph.prototype.addTagsForCells=function(l,u){if(0<l.length&&0<u.length){this.model.beginUpdate();try{for(var H=0;H<l.length;H++){for(var U=this.getTagsForCell(l[H]),J=U.split(" "),V=!1,aa=
-0;aa<u.length;aa++){var ba=mxUtils.trim(u[aa]);""!=ba&&0>mxUtils.indexOf(J,ba)&&(U=0<U.length?U+" "+ba:ba,V=!0)}V&&this.setAttributeForCell(l[H],"tags",U)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(l,u){if(0<l.length&&0<u.length){this.model.beginUpdate();try{for(var H=0;H<l.length;H++){var U=this.getTagsForCell(l[H]);if(0<U.length){for(var J=U.split(" "),V=!1,aa=0;aa<u.length;aa++){var ba=mxUtils.indexOf(J,u[aa]);0<=ba&&(J.splice(ba,1),V=!0)}V&&this.setAttributeForCell(l[H],
+mxUtils.indexOf(this.hiddenTags,l[u]))return!1;return!0};Graph.prototype.getCellsForTags=function(l,u,H,U){var J=[];if(null!=l){u=null!=u?u:this.model.getDescendants(this.model.getRoot());for(var W=0,aa={},ba=0;ba<l.length;ba++)0<l[ba].length&&(aa[l[ba]]=!0,W++);for(ba=0;ba<u.length;ba++)if(H&&this.model.getParent(u[ba])==this.model.root||this.model.isVertex(u[ba])||this.model.isEdge(u[ba])){var ja=this.getTagsForCell(u[ba]),oa=!1;if(0<ja.length&&(ja=ja.split(" "),ja.length>=l.length)){for(var qa=
+oa=0;qa<ja.length&&oa<W;qa++)null!=aa[ja[qa]]&&oa++;oa=oa==W}oa&&(1!=U||this.isCellVisible(u[ba]))&&J.push(u[ba])}}return J};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var u=null,H=[],U=0;U<l.length;U++){var J=this.getTagsForCell(l[U]);H=[];if(0<J.length){J=J.split(" ");for(var W={},aa=0;aa<J.length;aa++)if(null==u||null!=u[J[aa]])W[J[aa]]=!0,H.push(J[aa]);u=W}else return[]}return H};
+Graph.prototype.getTagsForCells=function(l){for(var u=[],H={},U=0;U<l.length;U++){var J=this.getTagsForCell(l[U]);if(0<J.length){J=J.split(" ");for(var W=0;W<J.length;W++)null==H[J[W]]&&(H[J[W]]=!0,u.push(J[W]))}}return u};Graph.prototype.getTagsForCell=function(l){return this.getAttributeForCell(l,"tags","")};Graph.prototype.addTagsForCells=function(l,u){if(0<l.length&&0<u.length){this.model.beginUpdate();try{for(var H=0;H<l.length;H++){for(var U=this.getTagsForCell(l[H]),J=U.split(" "),W=!1,aa=
+0;aa<u.length;aa++){var ba=mxUtils.trim(u[aa]);""!=ba&&0>mxUtils.indexOf(J,ba)&&(U=0<U.length?U+" "+ba:ba,W=!0)}W&&this.setAttributeForCell(l[H],"tags",U)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(l,u){if(0<l.length&&0<u.length){this.model.beginUpdate();try{for(var H=0;H<l.length;H++){var U=this.getTagsForCell(l[H]);if(0<U.length){for(var J=U.split(" "),W=!1,aa=0;aa<u.length;aa++){var ba=mxUtils.indexOf(J,u[aa]);0<=ba&&(J.splice(ba,1),W=!0)}W&&this.setAttributeForCell(l[H],
"tags",J.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(l){this.model.beginUpdate();try{for(var u=0;u<l.length;u++)this.model.setVisible(l[u],!this.model.isVisible(l[u]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(l,u){this.model.beginUpdate();try{for(var H=0;H<l.length;H++)this.model.setVisible(l[H],u)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(l,u,H,U){for(var J=0;J<l.length;J++)this.highlightCell(l[J],
-u,H,U)};Graph.prototype.highlightCell=function(l,u,H,U,J){u=null!=u?u:mxConstants.DEFAULT_VALID_COLOR;H=null!=H?H:1E3;l=this.view.getState(l);var V=null;null!=l&&(J=null!=J?J:4,J=Math.max(J+1,mxUtils.getValue(l.style,mxConstants.STYLE_STROKEWIDTH,1)+J),V=new mxCellHighlight(this,u,J,!1),null!=U&&(V.opacity=U),V.highlight(l),window.setTimeout(function(){null!=V.shape&&(mxUtils.setPrefixedStyle(V.shape.node.style,"transition","all 1200ms ease-in-out"),V.shape.node.style.opacity=0);window.setTimeout(function(){V.destroy()},
-1200)},H));return V};Graph.prototype.addSvgShadow=function(l,u,H,U){H=null!=H?H:!1;U=null!=U?U:!0;var J=l.ownerDocument,V=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"filter"):J.createElement("filter");V.setAttribute("id",this.shadowId);var aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):J.createElement("feGaussianBlur");aa.setAttribute("in","SourceAlpha");aa.setAttribute("stdDeviation",this.svgShadowBlur);aa.setAttribute("result","blur");V.appendChild(aa);
-aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feOffset"):J.createElement("feOffset");aa.setAttribute("in","blur");aa.setAttribute("dx",this.svgShadowSize);aa.setAttribute("dy",this.svgShadowSize);aa.setAttribute("result","offsetBlur");V.appendChild(aa);aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feFlood"):J.createElement("feFlood");aa.setAttribute("flood-color",this.svgShadowColor);aa.setAttribute("flood-opacity",this.svgShadowOpacity);aa.setAttribute("result",
-"offsetColor");V.appendChild(aa);aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feComposite"):J.createElement("feComposite");aa.setAttribute("in","offsetColor");aa.setAttribute("in2","offsetBlur");aa.setAttribute("operator","in");aa.setAttribute("result","offsetBlur");V.appendChild(aa);aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feBlend"):J.createElement("feBlend");aa.setAttribute("in","SourceGraphic");aa.setAttribute("in2","offsetBlur");V.appendChild(aa);aa=
-l.getElementsByTagName("defs");0==aa.length?(J=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"defs"):J.createElement("defs"),null!=l.firstChild?l.insertBefore(J,l.firstChild):l.appendChild(J)):J=aa[0];J.appendChild(V);H||(u=null!=u?u:l.getElementsByTagName("g")[0],null!=u&&(u.setAttribute("filter","url(#"+this.shadowId+")"),!isNaN(parseInt(l.getAttribute("width")))&&U&&(l.setAttribute("width",parseInt(l.getAttribute("width"))+6),l.setAttribute("height",parseInt(l.getAttribute("height"))+
-6),u=l.getAttribute("viewBox"),null!=u&&0<u.length&&(u=u.split(" "),3<u.length&&(w=parseFloat(u[2])+6,h=parseFloat(u[3])+6,l.setAttribute("viewBox",u[0]+" "+u[1]+" "+w+" "+h))))));return V};Graph.prototype.setShadowVisible=function(l,u){mxClient.IS_SVG&&!mxClient.IS_SF&&(u=null!=u?u:!0,(this.shadowVisible=l)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),u&&this.fireEvent(new mxEventObject("shadowVisibleChanged")))};Graph.prototype.checkDefaultParent=
+u,H,U)};Graph.prototype.highlightCell=function(l,u,H,U,J){u=null!=u?u:mxConstants.DEFAULT_VALID_COLOR;H=null!=H?H:1E3;l=this.view.getState(l);var W=null;null!=l&&(J=null!=J?J:4,J=Math.max(J+1,mxUtils.getValue(l.style,mxConstants.STYLE_STROKEWIDTH,1)+J),W=new mxCellHighlight(this,u,J,!1),null!=U&&(W.opacity=U),W.highlight(l),window.setTimeout(function(){null!=W.shape&&(mxUtils.setPrefixedStyle(W.shape.node.style,"transition","all 1200ms ease-in-out"),W.shape.node.style.opacity=0);window.setTimeout(function(){W.destroy()},
+1200)},H));return W};Graph.prototype.addSvgShadow=function(l,u,H,U){H=null!=H?H:!1;U=null!=U?U:!0;var J=l.ownerDocument,W=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"filter"):J.createElement("filter");W.setAttribute("id",this.shadowId);var aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):J.createElement("feGaussianBlur");aa.setAttribute("in","SourceAlpha");aa.setAttribute("stdDeviation",this.svgShadowBlur);aa.setAttribute("result","blur");W.appendChild(aa);
+aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feOffset"):J.createElement("feOffset");aa.setAttribute("in","blur");aa.setAttribute("dx",this.svgShadowSize);aa.setAttribute("dy",this.svgShadowSize);aa.setAttribute("result","offsetBlur");W.appendChild(aa);aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feFlood"):J.createElement("feFlood");aa.setAttribute("flood-color",this.svgShadowColor);aa.setAttribute("flood-opacity",this.svgShadowOpacity);aa.setAttribute("result",
+"offsetColor");W.appendChild(aa);aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feComposite"):J.createElement("feComposite");aa.setAttribute("in","offsetColor");aa.setAttribute("in2","offsetBlur");aa.setAttribute("operator","in");aa.setAttribute("result","offsetBlur");W.appendChild(aa);aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feBlend"):J.createElement("feBlend");aa.setAttribute("in","SourceGraphic");aa.setAttribute("in2","offsetBlur");W.appendChild(aa);aa=
+l.getElementsByTagName("defs");0==aa.length?(J=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"defs"):J.createElement("defs"),null!=l.firstChild?l.insertBefore(J,l.firstChild):l.appendChild(J)):J=aa[0];J.appendChild(W);H||(u=null!=u?u:l.getElementsByTagName("g")[0],null!=u&&(u.setAttribute("filter","url(#"+this.shadowId+")"),!isNaN(parseInt(l.getAttribute("width")))&&U&&(l.setAttribute("width",parseInt(l.getAttribute("width"))+6),l.setAttribute("height",parseInt(l.getAttribute("height"))+
+6),u=l.getAttribute("viewBox"),null!=u&&0<u.length&&(u=u.split(" "),3<u.length&&(w=parseFloat(u[2])+6,h=parseFloat(u[3])+6,l.setAttribute("viewBox",u[0]+" "+u[1]+" "+w+" "+h))))));return W};Graph.prototype.setShadowVisible=function(l,u){mxClient.IS_SVG&&!mxClient.IS_SF&&(u=null!=u?u:!0,(this.shadowVisible=l)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),u&&this.fireEvent(new mxEventObject("shadowVisibleChanged")))};Graph.prototype.checkDefaultParent=
function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var l=this.model.getChildCount(this.model.root),u=0;do var H=this.model.getChildAt(this.model.root,u);while(u++<l&&"1"==mxUtils.getValue(this.getCellStyle(H),"locked","0"));null!=H&&this.setDefaultParent(H)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=
[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+
"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=
@@ -3438,365 +3453,365 @@ function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(t
"/ibm.xml"];mxStencilRegistry.libraries.ibmcloud=[STENCIL_PATH+"/ibm_cloud.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=
[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];
mxStencilRegistry.libraries.veeam2=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxStencilRegistry.libraries.salesforce=
-[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(l){var u=null;null!=l&&0<l.length&&("ER"==l.substring(0,2)?u="mxgraph.er":"sysML"==l.substring(0,5)&&(u="mxgraph.sysml"));return u};var ma=mxMarker.createMarker;mxMarker.createMarker=function(l,u,H,U,J,V,aa,ba,ja,oa){if(null!=H&&null==mxMarker.markers[H]){var qa=this.getPackageForType(H);
-null!=qa&&mxStencilRegistry.getStencil(qa)}return ma.apply(this,arguments)};var la=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(l,u,H,U,J,V){"1"==mxUtils.getValue(u.style,"lineShape",null)&&l.setFillColor(mxUtils.getValue(u.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return la.apply(this,arguments)};PrintDialog.prototype.create=function(l,u,H){function U(){za.value=Math.max(1,Math.min(oa,Math.max(parseInt(za.value),parseInt(ua.value))));ua.value=Math.max(1,Math.min(oa,
+[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(l){var u=null;null!=l&&0<l.length&&("ER"==l.substring(0,2)?u="mxgraph.er":"sysML"==l.substring(0,5)&&(u="mxgraph.sysml"));return u};var ma=mxMarker.createMarker;mxMarker.createMarker=function(l,u,H,U,J,W,aa,ba,ja,oa){if(null!=H&&null==mxMarker.markers[H]){var qa=this.getPackageForType(H);
+null!=qa&&mxStencilRegistry.getStencil(qa)}return ma.apply(this,arguments)};var la=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(l,u,H,U,J,W){"1"==mxUtils.getValue(u.style,"lineShape",null)&&l.setFillColor(mxUtils.getValue(u.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return la.apply(this,arguments)};PrintDialog.prototype.create=function(l,u,H){function U(){za.value=Math.max(1,Math.min(oa,Math.max(parseInt(za.value),parseInt(ua.value))));ua.value=Math.max(1,Math.min(oa,
Math.min(parseInt(za.value),parseInt(ua.value))))}function J(va){l.lastPrintPagesRadioChecked=ra.checked;l.lastPrintSelectionOnlyChecked=Ca.checked;l.lastPrintCropRadioChecked=sa.checked;l.lastPrintFitRadioChecked=Aa.checked;ra.checked&&ua.value<za.value?(l.lastPrintPagesFromInput=ua.value,l.lastPrintPagesToInput=za.value):(l.lastPrintPagesFromInput=null,l.lastPrintPagesToInput=null);X.value=Math.max(1,Math.min(1600,parseInt(X.value)))+"%";l.lastPrintZoom=X.value;l.lastPrintBorder=Q.value;l.lastPrintGrid=
ia.checked;l.lastPrintTransparent=ka.checked;l.lastPrintInclude=pa.checked;l.lastPrintSheetsAcross=t.value;l.lastPrintSheetsDown=N.value;var Da={};Da.border=parseInt(Q.value);Da.scale=parseInt(X.value)/100;Da.grid=ia.checked;Da.transparent=ka.checked;Da.includeCopy=pa.checked;Da.sheetsAcross=parseInt(t.value);Da.sheetsDown=parseInt(N.value);Da.pagesFrom=parseInt(ua.value);Da.pagesTo=parseInt(za.value);Da.allPages=qa.checked;Da.selection=Ca.checked;Da.pageView=La.checked;Da.crop=sa.checked;Da.fit=
-Aa.checked;return null!=H?H(!va,Da):l.print(!va,Da)}var V=l.editor.graph,aa=document.createElement("div"),ba=document.createElement("h3");ba.style.width="100%";ba.style.textAlign="center";ba.style.marginTop="0px";mxUtils.write(ba,u||mxResources.get("print"));aa.appendChild(ba);var ja=1,oa=1;ba=document.createElement("div");ba.style.whiteSpace="nowrap";var qa=document.createElement("input");qa.style.marginRight="8px";qa.style.marginBottom="8px";qa.setAttribute("type","radio");qa.setAttribute("name",
+Aa.checked;return null!=H?H(!va,Da):l.print(!va,Da)}var W=l.editor.graph,aa=document.createElement("div"),ba=document.createElement("h3");ba.style.width="100%";ba.style.textAlign="center";ba.style.marginTop="0px";mxUtils.write(ba,u||mxResources.get("print"));aa.appendChild(ba);var ja=1,oa=1;ba=document.createElement("div");ba.style.whiteSpace="nowrap";var qa=document.createElement("input");qa.style.marginRight="8px";qa.style.marginBottom="8px";qa.setAttribute("type","radio");qa.setAttribute("name",
"pages-printdialog");ba.appendChild(qa);u=document.createElement("span");mxUtils.write(u,mxResources.get("allPages"));mxEvent.addListener(u,"click",function(){qa.checked=!0});ba.appendChild(u);mxUtils.br(ba);var ra=qa.cloneNode(!0);ba.appendChild(ra);u=document.createElement("span");mxUtils.write(u,mxResources.get("pages")+":");ba.appendChild(u);mxEvent.addListener(u,"click",function(){ra.checked=!0});var ua=document.createElement("input");ua.style.margin="0 4px";ua.setAttribute("value","1");ua.setAttribute("type",
"number");ua.setAttribute("min","1");ua.style.width="40px";ba.appendChild(ua);u=document.createElement("span");mxUtils.write(u,mxResources.get("to"));ba.appendChild(u);var za=ua.cloneNode(!0);ba.appendChild(za);mxEvent.addListener(ua,"focus",function(){ra.checked=!0});mxEvent.addListener(za,"focus",function(){ra.checked=!0});mxEvent.addListener(ua,"change",U);mxEvent.addListener(za,"change",U);if(null!=l.pages&&(oa=l.pages.length,null!=l.currentPage))for(var Ba=0;Ba<oa;Ba++)if(l.currentPage==l.pages[Ba]){ja=
Ba+1;break}null!=l.lastPrintPagesFromInput&&null!=l.lastPrintPagesToInput?(ua.value=Math.min(oa,Math.max(1,l.lastPrintPagesFromInput)),za.value=Math.min(oa,Math.max(1,l.lastPrintPagesToInput))):(ua.value=ja,za.value=ja);ua.setAttribute("max",oa);za.setAttribute("max",oa);Ba=mxUtils.button(mxResources.get("currentPage"),function(va){ua.value=ja;za.value=ja;ra.checked=!0});Ba.setAttribute("title",mxResources.get("currentPage"));Ba.style.marginLeft="4px";Ba.style.maxWidth="100px";Ba.style.overflow="hidden";
-Ba.style.textOverflow="ellipsis";Ba.style.whiteSpace="nowrap";ba.appendChild(Ba);1<oa&&aa.appendChild(ba);ba=document.createElement("div");ba.style.borderBottom="1px solid lightGray";ba.style.paddingBottom="12px";ba.style.marginBottom="12px";ba.style.whiteSpace="nowrap";var Ca=document.createElement("input");Ca.setAttribute("name","pages-printdialog");Ca.setAttribute("type",1==oa?"checkbox":"radio");Ca.style.marginRight="8px";V.isSelectionEmpty()&&Ca.setAttribute("disabled","disabled");V.isEnabled()&&
-(ba.appendChild(Ca),u=document.createElement("span"),mxUtils.write(u,mxResources.get("selectionOnly")),ba.appendChild(u));(V.isEnabled()||1<oa)&&aa.appendChild(ba);!l.isPagesEnabled()||l.lastPrintPagesRadioChecked?ra.checked=!0:!V.isSelectionEmpty()&&l.lastPrintSelectionOnlyChecked?Ca.checked=!0:qa.checked=!0;V.isSelectionEmpty()||mxEvent.addListener(u,"click",function(){Ca.checked=!Ca.checked});V=document.createElement("div");V.style.whiteSpace="nowrap";var La=document.createElement("input");La.style.marginBottom=
-"8px";La.style.marginRight="8px";La.setAttribute("type","radio");La.setAttribute("name","printSize");V.appendChild(La);u=document.createElement("span");mxUtils.write(u,mxResources.get("pageView"));V.appendChild(u);mxEvent.addListener(V,"click",function(){La.checked=!0});aa.appendChild(V);V=document.createElement("div");V.style.whiteSpace="nowrap";var sa=document.createElement("input");sa.style.marginBottom="8px";sa.style.marginRight="8px";sa.setAttribute("type","radio");sa.setAttribute("name","printSize");
-V.appendChild(sa);u=document.createElement("span");mxUtils.write(u,mxResources.get("crop"));V.appendChild(u);mxEvent.addListener(V,"click",function(){sa.checked=!0});aa.appendChild(V);V=document.createElement("div");V.style.whiteSpace="nowrap";var Aa=document.createElement("input");Aa.style.marginBottom="8px";Aa.style.marginRight="8px";Aa.setAttribute("type","radio");Aa.setAttribute("name","printSize");u=document.createElement("div");u.style.display="inline-block";u.style.verticalAlign="top";u.style.paddingTop=
-"2px";u.appendChild(Aa);V.appendChild(u);ba=document.createElement("table");ba.style.display="inline-block";ba.style.borderSpacing="0";Ba=document.createElement("tbody");var Ea=document.createElement("tr"),Ka=Ea.cloneNode(!0),Ma=document.createElement("td"),ya=Ma.cloneNode(!0),Wa=Ma.cloneNode(!0),Ia=Ma.cloneNode(!0),Xa=Ma.cloneNode(!0),Pa=Ma.cloneNode(!0);Ma.style.textAlign="right";Ia.style.textAlign="right";mxUtils.write(Ma,mxResources.get("fitTo"));mxEvent.addListener(V,"click",function(va){mxEvent.getSource(va)!=
+Ba.style.textOverflow="ellipsis";Ba.style.whiteSpace="nowrap";ba.appendChild(Ba);1<oa&&aa.appendChild(ba);ba=document.createElement("div");ba.style.borderBottom="1px solid lightGray";ba.style.paddingBottom="12px";ba.style.marginBottom="12px";ba.style.whiteSpace="nowrap";var Ca=document.createElement("input");Ca.setAttribute("name","pages-printdialog");Ca.setAttribute("type",1==oa?"checkbox":"radio");Ca.style.marginRight="8px";W.isSelectionEmpty()&&Ca.setAttribute("disabled","disabled");W.isEnabled()&&
+(ba.appendChild(Ca),u=document.createElement("span"),mxUtils.write(u,mxResources.get("selectionOnly")),ba.appendChild(u));(W.isEnabled()||1<oa)&&aa.appendChild(ba);!l.isPagesEnabled()||l.lastPrintPagesRadioChecked?ra.checked=!0:!W.isSelectionEmpty()&&l.lastPrintSelectionOnlyChecked?Ca.checked=!0:qa.checked=!0;W.isSelectionEmpty()||mxEvent.addListener(u,"click",function(){Ca.checked=!Ca.checked});W=document.createElement("div");W.style.whiteSpace="nowrap";var La=document.createElement("input");La.style.marginBottom=
+"8px";La.style.marginRight="8px";La.setAttribute("type","radio");La.setAttribute("name","printSize");W.appendChild(La);u=document.createElement("span");mxUtils.write(u,mxResources.get("pageView"));W.appendChild(u);mxEvent.addListener(W,"click",function(){La.checked=!0});aa.appendChild(W);W=document.createElement("div");W.style.whiteSpace="nowrap";var sa=document.createElement("input");sa.style.marginBottom="8px";sa.style.marginRight="8px";sa.setAttribute("type","radio");sa.setAttribute("name","printSize");
+W.appendChild(sa);u=document.createElement("span");mxUtils.write(u,mxResources.get("crop"));W.appendChild(u);mxEvent.addListener(W,"click",function(){sa.checked=!0});aa.appendChild(W);W=document.createElement("div");W.style.whiteSpace="nowrap";var Aa=document.createElement("input");Aa.style.marginBottom="8px";Aa.style.marginRight="8px";Aa.setAttribute("type","radio");Aa.setAttribute("name","printSize");u=document.createElement("div");u.style.display="inline-block";u.style.verticalAlign="top";u.style.paddingTop=
+"2px";u.appendChild(Aa);W.appendChild(u);ba=document.createElement("table");ba.style.display="inline-block";ba.style.borderSpacing="0";Ba=document.createElement("tbody");var Ea=document.createElement("tr"),Ka=Ea.cloneNode(!0),Ma=document.createElement("td"),ya=Ma.cloneNode(!0),Wa=Ma.cloneNode(!0),Ia=Ma.cloneNode(!0),Xa=Ma.cloneNode(!0),Pa=Ma.cloneNode(!0);Ma.style.textAlign="right";Ia.style.textAlign="right";mxUtils.write(Ma,mxResources.get("fitTo"));mxEvent.addListener(W,"click",function(va){mxEvent.getSource(va)!=
Aa&&(Aa.checked=!Aa.checked)});var t=document.createElement("input");t.style.margin="0 2px";t.style.boxSizing="border-box";t.setAttribute("value",l.lastPrintSheetsAcross||"1");t.setAttribute("min","1");t.setAttribute("type","number");t.style.width="40px";ya.appendChild(t);u=document.createElement("span");mxUtils.write(u,mxResources.get("fitToSheetsAcross"));Wa.appendChild(u);mxUtils.write(Ia,mxResources.get("fitToBy"));var N=t.cloneNode(!0);N.setAttribute("value",l.lastPrintSheetsDown||"1");Xa.appendChild(N);
mxEvent.addListener(t,"click",function(va){Aa.checked=!0;mxEvent.consume(va)});mxEvent.addListener(N,"click",function(va){Aa.checked=!0;mxEvent.consume(va)});l.lastPrintCropRadioChecked?sa.checked=!0:l.lastPrintFitRadioChecked?Aa.checked=!0:La.checked=!0;u=document.createElement("span");mxUtils.write(u,mxResources.get("fitToSheetsDown"));Pa.appendChild(u);Ea.appendChild(Ma);Ea.appendChild(ya);Ea.appendChild(Wa);Ka.appendChild(Ia);Ka.appendChild(Xa);Ka.appendChild(Pa);Ba.appendChild(Ea);Ba.appendChild(Ka);
-ba.appendChild(Ba);V.appendChild(ba);aa.appendChild(V);V=document.createElement("div");V.style.borderTop="1px solid lightGray";V.style.whiteSpace="nowrap";V.style.paddingTop="12px";V.style.marginTop="12px";V.style.paddingLeft="8px";mxUtils.write(V,mxResources.get("borderWidth")+":");var Q=document.createElement("input");Q.setAttribute("type","number");Q.setAttribute("min","0");Q.style.width="40px";Q.style.marginLeft="4px";Q.value=null!=l.lastPrintBorder?l.lastPrintBorder:mxPrintPreview.prototype.pageMargin;
-V.appendChild(Q);u=document.createElement("span");u.style.marginLeft="8px";mxUtils.write(u,mxResources.get("zoom")+":");V.appendChild(u);var X=document.createElement("input");X.style.width="60px";X.style.marginLeft="4px";X.value=null!=l.lastPrintZoom?l.lastPrintZoom:"100%";V.appendChild(X);mxUtils.br(V);var ia=document.createElement("input");ia.setAttribute("type","checkbox");ia.style.marginTop="12px";ia.checked=null!=l.lastPrintGrid?l.lastPrintGrid:!1;V.appendChild(ia);u=document.createElement("span");
-u.style.marginLeft="4px";u.style.marginRight="8px";mxUtils.write(u,mxResources.get("grid"));V.appendChild(u);mxEvent.addListener(u,"click",function(va){ia.checked=!0;mxEvent.consume(va)});var ka=document.createElement("input");ka.setAttribute("type","checkbox");ka.style.marginTop="10px";ka.checked=null!=l.lastPrintTransparent?l.lastPrintTransparent:!1;null!=H&&(V.appendChild(ka),u=document.createElement("span"),u.style.marginLeft="4px",mxUtils.write(u,mxResources.get("transparentBackground")),V.appendChild(u),
-mxEvent.addListener(u,"click",function(va){ka.checked=!0;mxEvent.consume(va)}));var pa=document.createElement("input");pa.setAttribute("type","checkbox");pa.style.marginTop="10px";pa.checked=null!=l.lastPrintInclude?l.lastPrintInclude:Editor.defaultIncludeDiagram;null==H||mxClient.IS_CHROMEAPP||"draw.io"!=l.getServiceName()||(mxUtils.br(V),V.appendChild(pa),u=document.createElement("span"),u.style.marginLeft="4px",mxUtils.write(u,mxResources.get("includeCopyOfMyDiagram")),V.appendChild(u),mxEvent.addListener(u,
-"click",function(va){pa.checked=!0;mxEvent.consume(va)}));aa.appendChild(V);u=document.createElement("div");u.style.marginTop="40px";u.style.textAlign="right";u.style.whiteSpace="nowrap";l.isOffline()||null!=H||u.appendChild(l.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));V=mxUtils.button(mxResources.get("cancel"),function(){l.hideDialog()});V.className="geBtn";l.editor.cancelFirst&&u.appendChild(V);PrintDialog.previewEnabled&&null==H&&(ba=mxUtils.button(mxResources.get("preview"),
-function(){try{l.hideDialog(),J(!1)}catch(va){l.handleError(va)}}),ba.className="geBtn",u.appendChild(ba));ba=mxUtils.button(mxResources.get(null!=H?"export":PrintDialog.previewEnabled?"print":"ok"),function(){try{l.hideDialog(),J(!0)}catch(va){l.handleError(va)}});ba.className="geBtn gePrimaryBtn";u.appendChild(ba);l.editor.cancelFirst||u.appendChild(V);aa.appendChild(u);if(l.editor.isChromelessView()){var xa=function(){Editor.isDarkMode()?(aa.classList.add("geDarkMode"),aa.style.colorScheme="dark"):
+ba.appendChild(Ba);W.appendChild(ba);aa.appendChild(W);W=document.createElement("div");W.style.borderTop="1px solid lightGray";W.style.whiteSpace="nowrap";W.style.paddingTop="12px";W.style.marginTop="12px";W.style.paddingLeft="8px";mxUtils.write(W,mxResources.get("borderWidth")+":");var Q=document.createElement("input");Q.setAttribute("type","number");Q.setAttribute("min","0");Q.style.width="40px";Q.style.marginLeft="4px";Q.value=null!=l.lastPrintBorder?l.lastPrintBorder:mxPrintPreview.prototype.pageMargin;
+W.appendChild(Q);u=document.createElement("span");u.style.marginLeft="8px";mxUtils.write(u,mxResources.get("zoom")+":");W.appendChild(u);var X=document.createElement("input");X.style.width="60px";X.style.marginLeft="4px";X.value=null!=l.lastPrintZoom?l.lastPrintZoom:"100%";W.appendChild(X);mxUtils.br(W);var ia=document.createElement("input");ia.setAttribute("type","checkbox");ia.style.marginTop="12px";ia.checked=null!=l.lastPrintGrid?l.lastPrintGrid:!1;W.appendChild(ia);u=document.createElement("span");
+u.style.marginLeft="4px";u.style.marginRight="8px";mxUtils.write(u,mxResources.get("grid"));W.appendChild(u);mxEvent.addListener(u,"click",function(va){ia.checked=!0;mxEvent.consume(va)});var ka=document.createElement("input");ka.setAttribute("type","checkbox");ka.style.marginTop="10px";ka.checked=null!=l.lastPrintTransparent?l.lastPrintTransparent:!1;null!=H&&(W.appendChild(ka),u=document.createElement("span"),u.style.marginLeft="4px",mxUtils.write(u,mxResources.get("transparentBackground")),W.appendChild(u),
+mxEvent.addListener(u,"click",function(va){ka.checked=!0;mxEvent.consume(va)}));var pa=document.createElement("input");pa.setAttribute("type","checkbox");pa.style.marginTop="10px";pa.checked=null!=l.lastPrintInclude?l.lastPrintInclude:Editor.defaultIncludeDiagram;null==H||mxClient.IS_CHROMEAPP||"draw.io"!=l.getServiceName()||(mxUtils.br(W),W.appendChild(pa),u=document.createElement("span"),u.style.marginLeft="4px",mxUtils.write(u,mxResources.get("includeCopyOfMyDiagram")),W.appendChild(u),mxEvent.addListener(u,
+"click",function(va){pa.checked=!0;mxEvent.consume(va)}));aa.appendChild(W);u=document.createElement("div");u.style.marginTop="40px";u.style.textAlign="right";u.style.whiteSpace="nowrap";l.isOffline()||null!=H||u.appendChild(l.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));W=mxUtils.button(mxResources.get("cancel"),function(){l.hideDialog()});W.className="geBtn";l.editor.cancelFirst&&u.appendChild(W);PrintDialog.previewEnabled&&null==H&&(ba=mxUtils.button(mxResources.get("preview"),
+function(){try{l.hideDialog(),J(!1)}catch(va){l.handleError(va)}}),ba.className="geBtn",u.appendChild(ba));ba=mxUtils.button(mxResources.get(null!=H?"export":PrintDialog.previewEnabled?"print":"ok"),function(){try{l.hideDialog(),J(!0)}catch(va){l.handleError(va)}});ba.className="geBtn gePrimaryBtn";u.appendChild(ba);l.editor.cancelFirst||u.appendChild(W);aa.appendChild(u);if(l.editor.isChromelessView()){var xa=function(){Editor.isDarkMode()?(aa.classList.add("geDarkMode"),aa.style.colorScheme="dark"):
(aa.classList.remove("geDarkMode"),aa.style.colorScheme="light")};l.addListener("darkModeChanged",xa);xa();var ta=function(va,Da){va=Da.getProperty("dialog");aa.parentNode==va.container&&(l.editor.removeListener(ta),l.removeListener(xa))};l.editor.addListener("hideDialog",ta)}this.container=aa};var Y=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||
(this.page.viewState.background=this.color);if(!this.ignoreImage){var l=this.image;null!=l&&null!=l.src&&Graph.isPageLink(l.src)&&(l={originalSrc:l.src});this.page.viewState.backgroundImage=l}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else Y.apply(this,
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&&(l=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=l?l:"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 fa=document.createElement("canvas"),Z=new Image;Z.onload=function(){try{fa.getContext("2d").drawImage(Z,0,0);var l=fa.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=l&&6<l.length}catch(u){}};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(l){}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.0.6";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.0.7";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"}};
-EditorUi.logError=function(c,f,k,A,z,C,I){if(null!=c){z=null!=z?z:Error(c);z.stack=null!=z.stack?z.stack:"";C=null!=C?C:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0>c.indexOf("extension:")&&0>c.indexOf("ResizeObserver loop completed with undelivered notifications")&&0>z.stack.indexOf("extension:")&&0>z.stack.indexOf("<anonymous>:")&&
-0>z.stack.indexOf("/math/es5/")&&(EditorUi.lastErrorMessage=c,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?severity="+C+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(k)+(null!=A?":colno:"+encodeURIComponent(A):"")+(""!=z.stack?"&stack="+encodeURIComponent(z.stack):""))}catch(L){}try{I||null==window.console||console.error(C,c,f,k,A,z)}catch(L){}}};EditorUi.logEvent=
+EditorUi.logError=function(c,f,k,B,z,C,I){if(null!=c){z=null!=z?z:Error(c);z.stack=null!=z.stack?z.stack:"";C=null!=C?C:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0>c.indexOf("extension:")&&0>c.indexOf("ResizeObserver loop completed with undelivered notifications")&&0>z.stack.indexOf("extension:")&&0>z.stack.indexOf("<anonymous>:")&&
+0>z.stack.indexOf("/math/es5/")&&(EditorUi.lastErrorMessage=c,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?severity="+C+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(k)+(null!=B?":colno:"+encodeURIComponent(B):"")+(""!=z.stack?"&stack="+encodeURIComponent(z.stack):""))}catch(L){}try{I||null==window.console||console.error(C,c,f,k,B,z)}catch(L){}}};EditorUi.logEvent=
function(c){if("1"==urlParams.dev)EditorUi.debug("logEvent",c);else if(EditorUi.enableLogging)try{var f=null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"";(new Image).src=f+"/images/1x1.png?v="+encodeURIComponent(EditorUi.VERSION)+(null!=c?"&data="+encodeURIComponent(JSON.stringify(c)):"")}catch(k){}};EditorUi.sendReport=function(c,f){if("1"==urlParams.dev)EditorUi.debug("sendReport",c);else if(EditorUi.enableLogging)try{f=null!=f?f:5E4,c.length>f&&(c=c.substring(0,f)+"\n...[SHORTENED]"),mxUtils.post("/email",
"version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(c))}catch(k){}};EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var c=[(new Date).toISOString()],f=0;f<arguments.length;f++)c.push(arguments[f]);console.log.apply(console,c)}}catch(k){}};EditorUi.removeChildNodes=function(c){for(;null!=c.firstChild;)c.removeChild(c.firstChild)};EditorUi.embedSvgImages=function(c){c=c.getElementsByTagName("image");
for(var f=[],k=0;k<c.length;k++)f.push(c[k]);for(k=0;k<f.length;k++)EditorUi.replaceSvgImage(f[k])};EditorUi.replaceSvgImage=function(c){try{var f=null;f=null==c.getAttributeNS?c.getAttribute("xlink:href"):c.getAttributeNS(mxConstants.NS_XLINK,"href");var k=EditorUi.getSvgSubtree(f);if(null!=k&&"svg"==k.nodeName){k.setAttribute("x",c.getAttribute("x"));k.setAttribute("y",c.getAttribute("y"));k.setAttribute("width",c.getAttribute("width"));k.setAttribute("height",c.getAttribute("height"));k.style.fontFamily=
-"initial";var A=mxUtils.createElementNs(k.ownerDocument,mxConstants.NS_SVG,"g");A.appendChild(k);c.hasAttribute("transform")&&A.setAttribute("transform",c.getAttribute("transform"));c.parentNode.replaceChild(A,c)}}catch(z){}};EditorUi.getSvgSubtree=function(c){var f=Graph.getSvgFromDataUri(c);c=null;if(null!=f){c=Graph.sanitizeNode(mxUtils.parseXml(f).documentElement);f=c.getElementsByTagName("style");if(0<f.length){var k="svg-image-"+Editor.guid();c.setAttribute("id",k);for(var A=document.implementation.createHTMLDocument(""),
-z=document.createElement("style"),C=0;C<f.length;C++){z.textContent=f[C].textContent;A.body.appendChild(z);for(var I="",L=0;L<z.sheet.cssRules.length;L++){var K=z.sheet.cssRules[L];if(null!=K.selectorText){for(var O=K.selectorText.split(","),da=0;da<O.length;da++)O[da]="#"+k+" "+O[da];K.selectorText=O.join(",")}I+=K.cssText+"\n"}f[C].textContent=I}}f=c.getElementsByTagName("*");for(k=0;k<f.length;k++)f[k].removeAttribute("data-cell-id")}return c};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';
+"initial";var B=mxUtils.createElementNs(k.ownerDocument,mxConstants.NS_SVG,"g");B.appendChild(k);c.hasAttribute("transform")&&B.setAttribute("transform",c.getAttribute("transform"));c.parentNode.replaceChild(B,c)}}catch(z){}};EditorUi.getSvgSubtree=function(c){var f=Graph.getSvgFromDataUri(c);c=null;if(null!=f){c=Graph.sanitizeNode(mxUtils.parseXml(f).documentElement);f=c.getElementsByTagName("style");if(0<f.length){var k="svg-image-"+Editor.guid();c.setAttribute("id",k);for(var B=document.implementation.createHTMLDocument(""),
+z=document.createElement("style"),C=0;C<f.length;C++){z.textContent=f[C].textContent;B.body.appendChild(z);for(var I="",L=0;L<z.sheet.cssRules.length;L++){var K=z.sheet.cssRules[L];if(null!=K.selectorText){for(var O=K.selectorText.split(","),da=0;da<O.length;da++)O[da]="#"+k+" "+O[da];K.selectorText=O.join(",")}I+=K.cssText+"\n"}f[C].textContent=I}}f=c.getElementsByTagName("*");for(k=0;k<f.length;k++)f[k].removeAttribute("data-cell-id")}return c};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';
EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode=null;EditorUi.prototype.timeout=Editor.prototype.timeout;EditorUi.prototype.defaultCustomShapeStyle="shape=stencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE=);whiteSpace=wrap;html=1;";
EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=1200;EditorUi.prototype.maxTextWidth=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=2E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.maxTextBytes=5E5;EditorUi.prototype.currentFile=null;EditorUi.prototype.printPdfExport=!1;EditorUi.prototype.pdfPageExport=!0;EditorUi.prototype.formatEnabled="0"!=urlParams.format;EditorUi.prototype.insertTemplateEnabled=!0;EditorUi.prototype.closableScratchpad=
!0;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportTheme="auto";EditorUi.prototype.embedExportBackground=null;EditorUi.prototype.shareCursorPosition=!0;EditorUi.prototype.showRemoteCursors=!0;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;EditorUi.prototype.webpSupported=!1;try{var c=document.createElement("canvas");EditorUi.prototype.canvasSupported=!(!c.getContext||!c.getContext("2d"))}catch(z){}try{var f=document.createElement("canvas"),
k=new Image;k.onload=function(){try{f.getContext("2d").drawImage(k,0,0);var z=f.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=z&&6<z.length}catch(C){}};k.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(z){}try{f=
-document.createElement("canvas");f.width=f.height=1;var A=f.toDataURL("image/jpeg");EditorUi.prototype.jpgSupported=null!==A.match("image/jpeg");A=f.toDataURL("image/webp");EditorUi.prototype.webpSupported=null!==A.match("image/webp")}catch(z){}})();EditorUi.prototype.createButtonContainer=function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,f,k){return this.editor.graph.openLink(c,
+document.createElement("canvas");f.width=f.height=1;var B=f.toDataURL("image/jpeg");EditorUi.prototype.jpgSupported=null!==B.match("image/jpeg");B=f.toDataURL("image/webp");EditorUi.prototype.webpSupported=null!==B.match("image/webp")}catch(z){}})();EditorUi.prototype.createButtonContainer=function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,f,k){return this.editor.graph.openLink(c,
f,k)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,f){f(localStorage.getItem(c))};EditorUi.prototype.setLocalData=function(c,f,k){localStorage.setItem(c,f);null!=k&&k()};EditorUi.prototype.isLocked=function(){var c=this.getCurrentFile();return null!=c&&c.isLocked()};EditorUi.prototype.removeLocalData=function(c,f){localStorage.removeItem(c);f()};EditorUi.prototype.setShareCursorPosition=function(c){this.shareCursorPosition=c;this.fireEvent(new mxEventObject("shareCursorPositionChanged"))};
EditorUi.prototype.isShareCursorPosition=function(){return this.shareCursorPosition};EditorUi.prototype.setShowRemoteCursors=function(c){this.showRemoteCursors=c;this.fireEvent(new mxEventObject("showRemoteCursorsChanged"))};EditorUi.prototype.isShowRemoteCursors=function(){return this.showRemoteCursors};EditorUi.prototype.setMathEnabled=function(c){var f=this.editor.graph;f.mathEnabled=c;null!=f.view.backgroundImage&&(f.view.backgroundImage.destroy(),f.view.backgroundImage=null);this.editor.updateGraphComponents();
f.refresh();f.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.setAdaptiveColors=function(c){this.editor.graph.setAdaptiveColors(c);this.editor.graph.view.clear();this.fireEvent(new mxEventObject("adaptiveColorsChanged"))};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=
-function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,f,k){var A=null==c||null==f;k=null!=k?k:24;var z=new Spinner({lines:12,length:k,width:Math.round(k/3),radius:Math.round(k/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",
-speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),C=this.timeout,I=z.spin,L=null,K=null,O=mxUtils.bind(this,function(ea){null!=ea&&ea()});z.spin=function(ea,ca,W,ma){ma=null!=ma?ma:C;var la=!1;if(!this.active){var Y=Date.now();null!=W&&(L=window.setTimeout(function(){z.stop();L=null;W({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:K})},ma));I.call(this,ea);this.active=!0;null!=ca&&(A&&(f=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,c=document.body.clientWidth/
+function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,f,k){var B=null==c||null==f;k=null!=k?k:24;var z=new Spinner({lines:12,length:k,width:Math.round(k/3),radius:Math.round(k/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",
+speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),C=this.timeout,I=z.spin,L=null,K=null,O=mxUtils.bind(this,function(ea){null!=ea&&ea()});z.spin=function(ea,ca,V,ma){ma=null!=ma?ma:C;var la=!1;if(!this.active){var Y=Date.now();null!=V&&(L=window.setTimeout(function(){z.stop();L=null;V({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:K})},ma));I.call(this,ea);this.active=!0;null!=ca&&(B&&(f=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,c=document.body.clientWidth/
2-2),la=document.createElement("div"),la.className="geSpinnerStatus",la.style.position="absolute",la.style.whiteSpace="nowrap",la.style.background="#4B4243",la.style.color="white",la.style.fontFamily=Editor.defaultHtmlFont,la.style.fontSize="9pt",la.style.padding="6px",la.style.paddingLeft="10px",la.style.paddingRight="10px",la.style.zIndex=2E9,la.style.left=Math.max(0,c)+"px",la.style.top=Math.max(0,f+70)+"px",mxUtils.setPrefixedStyle(la.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(la.style,
-"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(la.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=ca.substring(ca.length-3,ca.length)&&"!"!=ca.charAt(ca.length-1)&&(ca+="..."),la.innerHTML=mxUtils.htmlEntities(ca),ea.appendChild(la),z.status=la);this.pause=mxUtils.bind(this,function(){var fa=O;this.active&&(ma=Math.max(0,ma-(Date.now()-Y)),fa=mxUtils.bind(this,function(Z){this.spin(ea,ca,W,ma);if(null!=Z)try{Z(),K=mxUtils.bind(this,function(){this.spin(ea,ca,W,
-ma);try{Z()}catch(l){null!=W&&W(l)}})}catch(l){null!=W&&W(l)}}));this.stop();return fa});la=!0}return la};var da=z.stop;z.stop=function(){da.call(this);this.active&&(this.active=!1,null!=L&&(window.clearTimeout(L),L=null),null!=z.status&&null!=z.status.parentNode&&z.status.parentNode.removeChild(z.status),z.status=null)};z.pause=function(){return O};return z};EditorUi.prototype.isCompatibleString=function(c){try{var f=mxUtils.parseXml(c),k=this.editor.extractGraphModel(f.documentElement,!0);return null!=
-k&&0==k.getElementsByTagName("parsererror").length}catch(A){}return!1};EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==
+"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(la.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=ca.substring(ca.length-3,ca.length)&&"!"!=ca.charAt(ca.length-1)&&(ca+="..."),la.innerHTML=mxUtils.htmlEntities(ca),ea.appendChild(la),z.status=la);this.pause=mxUtils.bind(this,function(){var fa=O;this.active&&(ma=Math.max(0,ma-(Date.now()-Y)),fa=mxUtils.bind(this,function(Z){this.spin(ea,ca,V,ma);if(null!=Z)try{Z(),K=mxUtils.bind(this,function(){this.spin(ea,ca,V,
+ma);try{Z()}catch(l){null!=V&&V(l)}})}catch(l){null!=V&&V(l)}}));this.stop();return fa});la=!0}return la};var da=z.stop;z.stop=function(){da.call(this);this.active&&(this.active=!1,null!=L&&(window.clearTimeout(L),L=null),null!=z.status&&null!=z.status.parentNode&&z.status.parentNode.removeChild(z.status),z.status=null)};z.pause=function(){return O};return z};EditorUi.prototype.isCompatibleString=function(c){try{var f=mxUtils.parseXml(c),k=this.editor.extractGraphModel(f.documentElement,!0);return null!=
+k&&0==k.getElementsByTagName("parsererror").length}catch(B){}return!1};EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==
c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=
-function(c){var f=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var k=f.getFunction,A=this.editor.graph,z=this;f.getFunction=function(C){if(A.isSelectionEmpty()&&null!=z.pages&&0<z.pages.length){var I=z.getSelectedPageIndex();if(mxEvent.isShiftDown(C)){if(37==C.keyCode)return function(){0<I&&z.movePage(I,I-1)};if(38==C.keyCode)return function(){0<I&&z.movePage(I,0)};if(39==C.keyCode)return function(){I<z.pages.length-1&&z.movePage(I,I+1)};if(40==C.keyCode)return function(){I<
-z.pages.length-1&&z.movePage(I,z.pages.length-1)}}else if(mxEvent.isControlDown(C)||mxClient.IS_MAC&&mxEvent.isMetaDown(C)){if(37==C.keyCode)return function(){0<I&&z.selectNextPage(!1)};if(38==C.keyCode)return function(){0<I&&z.selectPage(z.pages[0])};if(39==C.keyCode)return function(){I<z.pages.length-1&&z.selectNextPage(!0)};if(40==C.keyCode)return function(){I<z.pages.length-1&&z.selectPage(z.pages[z.pages.length-1])}}}return!(65<=C.keyCode&&90>=C.keyCode)||A.isSelectionEmpty()||mxEvent.isAltDown(C)||
-mxEvent.isShiftDown(C)||mxEvent.isControlDown(C)||mxClient.IS_MAC&&mxEvent.isMetaDown(C)?k.apply(this,arguments):null}}return f};var e=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var f=e.apply(this,arguments);if(null==f)try{var k=c.indexOf("&lt;mxfile ");if(0<=k){var A=c.lastIndexOf("&lt;/mxfile&gt;");A>k&&(f=c.substring(k,A+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else{var z=mxUtils.parseXml(c),
+function(c){var f=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var k=f.getFunction,B=this.editor.graph,z=this;f.getFunction=function(C){if(B.isSelectionEmpty()&&null!=z.pages&&0<z.pages.length){var I=z.getSelectedPageIndex();if(mxEvent.isShiftDown(C)){if(37==C.keyCode)return function(){0<I&&z.movePage(I,I-1)};if(38==C.keyCode)return function(){0<I&&z.movePage(I,0)};if(39==C.keyCode)return function(){I<z.pages.length-1&&z.movePage(I,I+1)};if(40==C.keyCode)return function(){I<
+z.pages.length-1&&z.movePage(I,z.pages.length-1)}}else if(mxEvent.isControlDown(C)||mxClient.IS_MAC&&mxEvent.isMetaDown(C)){if(37==C.keyCode)return function(){0<I&&z.selectNextPage(!1)};if(38==C.keyCode)return function(){0<I&&z.selectPage(z.pages[0])};if(39==C.keyCode)return function(){I<z.pages.length-1&&z.selectNextPage(!0)};if(40==C.keyCode)return function(){I<z.pages.length-1&&z.selectPage(z.pages[z.pages.length-1])}}}return!(65<=C.keyCode&&90>=C.keyCode)||B.isSelectionEmpty()||mxEvent.isAltDown(C)||
+mxEvent.isShiftDown(C)||mxEvent.isControlDown(C)||mxClient.IS_MAC&&mxEvent.isMetaDown(C)?k.apply(this,arguments):null}}return f};var e=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var f=e.apply(this,arguments);if(null==f)try{var k=c.indexOf("&lt;mxfile ");if(0<=k){var B=c.lastIndexOf("&lt;/mxfile&gt;");B>k&&(f=c.substring(k,B+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else{var z=mxUtils.parseXml(c),
C=this.editor.extractGraphModel(z.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);f=null!=C?mxUtils.getXml(C):""}}catch(I){}return f};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var f=c.indexOf('<meta charset="utf-8">');0<=f&&(c=c.slice(0,f)+'<meta charset="utf-8"/>'+c.slice(f+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.replaceFileData=function(c,f){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",
-f);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var k=null!=c?this.editor.extractGraphModel(c,!0):null;null!=k&&(c=k);if(null!=c){k=this.editor.graph;k.model.beginUpdate();try{var A=null!=this.pages?this.pages.slice():null,z=c.getElementsByTagName("diagram");if(1<z.length||1==z.length&&z[0].hasAttribute("name")){this.fileNode=c;this.pages=null!=this.pages?this.pages:[];for(var C=z.length-1;0<=C;C--){var I=this.updatePageRoot(new DiagramPage(z[C]));null==
+f);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var k=null!=c?this.editor.extractGraphModel(c,!0):null;null!=k&&(c=k);if(null!=c){k=this.editor.graph;k.model.beginUpdate();try{var B=null!=this.pages?this.pages.slice():null,z=c.getElementsByTagName("diagram");if(1<z.length||1==z.length&&z[0].hasAttribute("name")){this.fileNode=c;this.pages=null!=this.pages?this.pages:[];for(var C=z.length-1;0<=C;C--){var I=this.updatePageRoot(new DiagramPage(z[C]));null==
I.getName()&&I.setName(mxResources.get("pageWithNumber",[C+1]));k.model.execute(new ChangePage(this,I,0==C?I:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,
-k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=A)for(C=0;C<A.length;C++)k.model.execute(new ChangePage(this,A[C],null));var L=this.getCurrentFile();null!=L&&L.fileReplaced(f)}finally{k.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca){f=null!=f?f:this.editor.graph;z=null!=z?z:!1;K=null!=K?K:!0;da=null!=da?da:!Editor.defaultCompressed;var W=null;if(null==k||k.getMode()==App.MODE_DEVICE||k.getMode()==App.MODE_BROWSER)var ma=
-"_blank";else W=ma=A;if(null==c)return"";var la=c;if("mxfile"!=la.nodeName.toLowerCase()){if(da){var Y=c.ownerDocument.createElement("diagram");Y.setAttribute("name",mxResources.get("pageWithNumber",[1]));Y.setAttribute("id",Editor.guid());Y.appendChild(c)}else{Y=Graph.zapGremlins(mxUtils.getXml(c));la=Graph.compress(Y);if(Graph.decompress(la)!=Y)return Y;Y=c.ownerDocument.createElement("diagram");Y.setAttribute("name",mxResources.get("pageWithNumber",[1]));Y.setAttribute("id",Editor.guid());mxUtils.setTextContent(Y,
+k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=B)for(C=0;C<B.length;C++)k.model.execute(new ChangePage(this,B[C],null));var L=this.getCurrentFile();null!=L&&L.fileReplaced(f)}finally{k.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca){f=null!=f?f:this.editor.graph;z=null!=z?z:!1;K=null!=K?K:!0;da=null!=da?da:!Editor.defaultCompressed;var V=null;if(null==k||k.getMode()==App.MODE_DEVICE||k.getMode()==App.MODE_BROWSER)var ma=
+"_blank";else V=ma=B;if(null==c)return"";var la=c;if("mxfile"!=la.nodeName.toLowerCase()){if(da){var Y=c.ownerDocument.createElement("diagram");Y.setAttribute("name",mxResources.get("pageWithNumber",[1]));Y.setAttribute("id",Editor.guid());Y.appendChild(c)}else{Y=Graph.zapGremlins(mxUtils.getXml(c));la=Graph.compress(Y);if(Graph.decompress(la)!=Y)return Y;Y=c.ownerDocument.createElement("diagram");Y.setAttribute("name",mxResources.get("pageWithNumber",[1]));Y.setAttribute("id",Editor.guid());mxUtils.setTextContent(Y,
la)}la=c.ownerDocument.createElement("mxfile");la.appendChild(Y)}O?(la=la.cloneNode(!0),la.removeAttribute("modified"),la.removeAttribute("host"),la.removeAttribute("agent"),la.removeAttribute("etag"),la.removeAttribute("userAgent"),la.removeAttribute("version"),la.removeAttribute("editor"),la.removeAttribute("type")):(la.removeAttribute("userAgent"),la.removeAttribute("modified"),la.removeAttribute("version"),la.removeAttribute("editor"),la.removeAttribute("pages"),la.removeAttribute("type"),la.removeAttribute("etag"),
mxClient.IS_CHROMEAPP?la.setAttribute("host","Chrome"):EditorUi.isElectronApp?la.setAttribute("host","Electron"):la.setAttribute("host",window.location.hostname),la.setAttribute("agent",null!=navigator.userAgent?navigator.userAgent:navigator.appVersion),la.setAttribute("version",EditorUi.VERSION),1<la.getElementsByTagName("diagram").length&&null!=this.pages&&la.setAttribute("pages",this.pages.length));null!=ea&&(la=la.cloneNode(!0),la.setAttribute("scale",ea));null!=ca&&(la=la.cloneNode(!0),la.setAttribute("border",
-ca));c=da?mxUtils.getPrettyXml(la):mxUtils.getXml(la);if(!C&&!z&&(I||null!=k&&/(\.html)$/i.test(k.getTitle())))c=this.getHtml2(mxUtils.getXml(la),f,null!=k?k.getTitle():null,ma,W);else if(C||!z&&null!=k&&/(\.svg)$/i.test(k.getTitle()))null==k||k.getMode()!=App.MODE_DEVICE&&k.getMode()!=App.MODE_BROWSER||(A=null),k=this.getSvgFileProperties(la),c=this.getEmbeddedSvg(c,f,A,null,L,K,W,null,null,k.scale,k.border,null,Editor.svgFileTheme);return c};EditorUi.prototype.getXmlFileData=function(c,f,k,A){c=
-null!=c?c:!0;f=null!=f?f:!1;k=null!=k?k:!Editor.defaultCompressed;var z=this.editor.getGraphXml(c,A);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(K){var O=K.getElementsByTagName("mxGraphModel"),da=0<O.length?O[0]:null;O=K;null==da&&k?(da=mxUtils.getNodeValue(K),0<da.length&&(da=Graph.decompress(da),null!=da&&0<da.length&&(O=K.cloneNode(!1),O.appendChild(mxUtils.parseXml(da).documentElement)))):null==da||k?O=K.cloneNode(!0):(O=K.cloneNode(!1),mxUtils.setTextContent(O,Graph.compressNode(da)));
-z.appendChild(O)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(z),z=this.fileNode.cloneNode(!1),f)c(this.currentPage.node);else for(f=0;f<this.pages.length;f++){var C=this.pages[f],I=C.node;if(C!=this.currentPage)if(C.needsUpdate){var L=new mxCodec(mxUtils.createXmlDocument());L=L.encode(new mxGraphModel(C.root));this.editor.graph.saveViewState(C.viewState,L,null,A);EditorUi.removeChildNodes(I);I.appendChild(L);delete C.needsUpdate}else A&&(this.updatePageRoot(C),
+ca));c=da?mxUtils.getPrettyXml(la):mxUtils.getXml(la);if(!C&&!z&&(I||null!=k&&/(\.html)$/i.test(k.getTitle())))c=this.getHtml2(mxUtils.getXml(la),f,null!=k?k.getTitle():null,ma,V);else if(C||!z&&null!=k&&/(\.svg)$/i.test(k.getTitle()))null==k||k.getMode()!=App.MODE_DEVICE&&k.getMode()!=App.MODE_BROWSER||(B=null),k=this.getSvgFileProperties(la),c=this.getEmbeddedSvg(c,f,B,null,L,K,V,null,null,k.scale,k.border,null,Editor.svgFileTheme);return c};EditorUi.prototype.getXmlFileData=function(c,f,k,B){c=
+null!=c?c:!0;f=null!=f?f:!1;k=null!=k?k:!Editor.defaultCompressed;var z=this.editor.getGraphXml(c,B);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(K){var O=K.getElementsByTagName("mxGraphModel"),da=0<O.length?O[0]:null;O=K;null==da&&k?(da=mxUtils.getNodeValue(K),0<da.length&&(da=Graph.decompress(da),null!=da&&0<da.length&&(O=K.cloneNode(!1),O.appendChild(mxUtils.parseXml(da).documentElement)))):null==da||k?O=K.cloneNode(!0):(O=K.cloneNode(!1),mxUtils.setTextContent(O,Graph.compressNode(da)));
+z.appendChild(O)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(z),z=this.fileNode.cloneNode(!1),f)c(this.currentPage.node);else for(f=0;f<this.pages.length;f++){var C=this.pages[f],I=C.node;if(C!=this.currentPage)if(C.needsUpdate){var L=new mxCodec(mxUtils.createXmlDocument());L=L.encode(new mxGraphModel(C.root));this.editor.graph.saveViewState(C.viewState,L,null,B);EditorUi.removeChildNodes(I);I.appendChild(L);delete C.needsUpdate}else B&&(this.updatePageRoot(C),
null!=C.viewState.backgroundImage&&(null!=C.viewState.backgroundImage.originalSrc?C.viewState.backgroundImage=this.createImageForPageLink(C.viewState.backgroundImage.originalSrc,C):Graph.isPageLink(C.viewState.backgroundImage.src)&&(C.viewState.backgroundImage=this.createImageForPageLink(C.viewState.backgroundImage.src,C))),null!=C.viewState.backgroundImage&&null!=C.viewState.backgroundImage.originalSrc&&(L=new mxCodec(mxUtils.createXmlDocument()),L=L.encode(new mxGraphModel(C.root)),this.editor.graph.saveViewState(C.viewState,
-L,null,A),I=I.cloneNode(!1),I.appendChild(L)));c(I)}return z};EditorUi.prototype.anonymizeString=function(c,f){for(var k=[],A=0;A<c.length;A++){var z=c.charAt(A);0<=EditorUi.ignoredAnonymizedChars.indexOf(z)?k.push(z):isNaN(parseInt(z))?z.toLowerCase()!=z?k.push(String.fromCharCode(65+Math.round(25*Math.random()))):z.toUpperCase()!=z?k.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(z)?k.push(" "):k.push("?"):k.push(f?"0":Math.round(9*Math.random()))}return k.join("")};EditorUi.prototype.anonymizePatch=
-function(c){if(null!=c[EditorUi.DIFF_INSERT])for(var f=0;f<c[EditorUi.DIFF_INSERT].length;f++)try{var k=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][f].data).documentElement.cloneNode(!1);null!=k.getAttribute("name")&&k.setAttribute("name",this.anonymizeString(k.getAttribute("name")));c[EditorUi.DIFF_INSERT][f].data=mxUtils.getXml(k)}catch(C){c[EditorUi.DIFF_INSERT][f].data=C.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var A in c[EditorUi.DIFF_UPDATE]){var z=c[EditorUi.DIFF_UPDATE][A];null!=z.name&&
+L,null,B),I=I.cloneNode(!1),I.appendChild(L)));c(I)}return z};EditorUi.prototype.anonymizeString=function(c,f){for(var k=[],B=0;B<c.length;B++){var z=c.charAt(B);0<=EditorUi.ignoredAnonymizedChars.indexOf(z)?k.push(z):isNaN(parseInt(z))?z.toLowerCase()!=z?k.push(String.fromCharCode(65+Math.round(25*Math.random()))):z.toUpperCase()!=z?k.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(z)?k.push(" "):k.push("?"):k.push(f?"0":Math.round(9*Math.random()))}return k.join("")};EditorUi.prototype.anonymizePatch=
+function(c){if(null!=c[EditorUi.DIFF_INSERT])for(var f=0;f<c[EditorUi.DIFF_INSERT].length;f++)try{var k=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][f].data).documentElement.cloneNode(!1);null!=k.getAttribute("name")&&k.setAttribute("name",this.anonymizeString(k.getAttribute("name")));c[EditorUi.DIFF_INSERT][f].data=mxUtils.getXml(k)}catch(C){c[EditorUi.DIFF_INSERT][f].data=C.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var B in c[EditorUi.DIFF_UPDATE]){var z=c[EditorUi.DIFF_UPDATE][B];null!=z.name&&
(z.name=this.anonymizeString(z.name));null!=z.cells&&(f=mxUtils.bind(this,function(C){var I=z.cells[C];if(null!=I){for(var L in I)null!=I[L].value&&(I[L].value="["+I[L].value.length+"]"),null!=I[L].xmlValue&&(I[L].xmlValue="["+I[L].xmlValue.length+"]"),null!=I[L].style&&(I[L].style="["+I[L].style.length+"]"),mxUtils.isEmptyObject(I[L])&&delete I[L];mxUtils.isEmptyObject(I)&&delete z.cells[C]}}),f(EditorUi.DIFF_INSERT),f(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(z.cells)&&delete z.cells);mxUtils.isEmptyObject(z)&&
-delete c[EditorUi.DIFF_UPDATE][A]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,f){if(null!=c.attributes)for(var k=0;k<c.attributes.length;k++)"as"!=c.attributes[k].name&&c.setAttribute(c.attributes[k].name,this.anonymizeString(c.attributes[k].value,f));if(null!=c.childNodes)for(k=0;k<c.childNodes.length;k++)this.anonymizeAttributes(c.childNodes[k],f)};EditorUi.prototype.anonymizeNode=function(c,f){f=c.getElementsByTagName("mxCell");
+delete c[EditorUi.DIFF_UPDATE][B]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,f){if(null!=c.attributes)for(var k=0;k<c.attributes.length;k++)"as"!=c.attributes[k].name&&c.setAttribute(c.attributes[k].name,this.anonymizeString(c.attributes[k].value,f));if(null!=c.childNodes)for(k=0;k<c.childNodes.length;k++)this.anonymizeAttributes(c.childNodes[k],f)};EditorUi.prototype.anonymizeNode=function(c,f){f=c.getElementsByTagName("mxCell");
for(var k=0;k<f.length;k++)null!=f[k].getAttribute("value")&&f[k].setAttribute("value","["+f[k].getAttribute("value").length+"]"),null!=f[k].getAttribute("xmlValue")&&f[k].setAttribute("xmlValue","["+f[k].getAttribute("xmlValue").length+"]"),null!=f[k].getAttribute("style")&&f[k].setAttribute("style","["+f[k].getAttribute("style").length+"]"),null!=f[k].parentNode&&"root"!=f[k].parentNode.nodeName&&null!=f[k].parentNode.parentNode&&(f[k].setAttribute("id",f[k].parentNode.getAttribute("id")),f[k].parentNode.parentNode.replaceChild(f[k],
f[k].parentNode));return c};EditorUi.prototype.synchronizeCurrentFile=function(c){var f=this.getCurrentFile();null!=f&&(f.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&f.invalidChecksum?f.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(f.clearAutosave(),this.editor.setStatus(""),c?f.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){this.spinner.stop();
-f.handleFileError(k,!0)})):f.synchronizeFile(mxUtils.bind(this,function(){f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){f.handleFileError(k,!0)}))))};EditorUi.prototype.getFileData=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca){z=null!=z?z:!0;C=null!=C?C:!1;O=null!=O?O:!Editor.defaultCompressed;var W=this.editor.graph;if((f||!c&&null!=K&&/(\.svg)$/i.test(K.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var ma=W.getGlobalVariable;W=this.createTemporaryGraph(W.getStylesheet());
-W.setBackgroundImage=this.editor.graph.setBackgroundImage;W.background=this.editor.graph.background;var la=null!=this.pages?this.pages[0]:null;null==la||this.currentPage==la?W.setBackgroundImage(this.editor.graph.backgroundImage):null!=la.viewState&&null!=la.viewState&&W.setBackgroundImage(la.viewState.backgroundImage);W.getGlobalVariable=function(Y){return"page"==Y&&null!=la?la.getName():"pagenumber"==Y?1:ma.apply(this,arguments)};document.body.appendChild(W.container);null!=la&&W.model.setRoot(la.root)}I=
-null!=I?I:this.getXmlFileData(z,C,O,da);K=null!=K?K:this.getCurrentFile();c=this.createFileData(I,W,K,window.location.href,c,f,k,A,z,L,O,ea,ca);W!=this.editor.graph&&W.container.parentNode.removeChild(W.container);return c};EditorUi.prototype.getHtml=function(c,f,k,A,z,C){C=null!=C?C:!0;var I=null,L=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=f){I=C?f.getGraphBounds():f.getBoundingBox(f.getSelectionCells());var K=f.view.scale;C=Math.floor(I.x/K-f.view.translate.x);K=Math.floor(I.y/K-f.view.translate.y);
-I=f.background;null==z&&(f=this.getBasenames().join(";"),0<f.length&&(L=EditorUi.drawHost+"/embed.js?s="+f));c.setAttribute("x0",C);c.setAttribute("y0",K)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=A&&c.setAttribute("edit",A));null!=z&&(z=z.replace(/&/g,"&amp;"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";A=Graph.compress(c);Graph.decompress(A)!=c&&(A=encodeURIComponent(c));
+f.handleFileError(k,!0)})):f.synchronizeFile(mxUtils.bind(this,function(){f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){f.handleFileError(k,!0)}))))};EditorUi.prototype.getFileData=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca){z=null!=z?z:!0;C=null!=C?C:!1;O=null!=O?O:!Editor.defaultCompressed;var V=this.editor.graph;if((f||!c&&null!=K&&/(\.svg)$/i.test(K.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var ma=V.getGlobalVariable;V=this.createTemporaryGraph(V.getStylesheet());
+V.setBackgroundImage=this.editor.graph.setBackgroundImage;V.background=this.editor.graph.background;var la=null!=this.pages?this.pages[0]:null;null==la||this.currentPage==la?V.setBackgroundImage(this.editor.graph.backgroundImage):null!=la.viewState&&null!=la.viewState&&V.setBackgroundImage(la.viewState.backgroundImage);V.getGlobalVariable=function(Y){return"page"==Y&&null!=la?la.getName():"pagenumber"==Y?1:ma.apply(this,arguments)};document.body.appendChild(V.container);null!=la&&V.model.setRoot(la.root)}I=
+null!=I?I:this.getXmlFileData(z,C,O,da);K=null!=K?K:this.getCurrentFile();c=this.createFileData(I,V,K,window.location.href,c,f,k,B,z,L,O,ea,ca);V!=this.editor.graph&&V.container.parentNode.removeChild(V.container);return c};EditorUi.prototype.getHtml=function(c,f,k,B,z,C){C=null!=C?C:!0;var I=null,L=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=f){I=C?f.getGraphBounds():f.getBoundingBox(f.getSelectionCells());var K=f.view.scale;C=Math.floor(I.x/K-f.view.translate.x);K=Math.floor(I.y/K-f.view.translate.y);
+I=f.background;null==z&&(f=this.getBasenames().join(";"),0<f.length&&(L=EditorUi.drawHost+"/embed.js?s="+f));c.setAttribute("x0",C);c.setAttribute("y0",K)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=B&&c.setAttribute("edit",B));null!=z&&(z=z.replace(/&/g,"&amp;"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";B=Graph.compress(c);Graph.decompress(B)!=c&&(B=encodeURIComponent(c));
return(null==z?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=z?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==z?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=z?'<meta http-equiv="refresh" content="0;URL=\''+z+"'\"/>\n":"")+"</head>\n<body"+(null==z&&null!=I&&I!=mxConstants.NONE?' style="background-color:'+I+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+
-A+"</div>\n</div>\n"+(null==z?'<script type="text/javascript" src="'+L+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+z+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,f,k,A,z){f=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=z&&(z=z.replace(/&/g,"&amp;"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,
+B+"</div>\n</div>\n"+(null==z?'<script type="text/javascript" src="'+L+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+z+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,f,k,B,z){f=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=z&&(z=z.replace(/&/g,"&amp;"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,
resize:!0,xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==z?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=z?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==z?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=z?'<meta http-equiv="refresh" content="0;URL=\''+
z+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>\n'+(null==z?'<script type="text/javascript" src="'+f+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+z+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.setFileData=
function(c){c=this.validateFileData(c);this.pages=this.fileNode=this.currentPage=null;var f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null,k=Editor.extractParserError(f,mxResources.get("invalidOrMissingFile"));if(k)throw EditorUi.debug("EditorUi.setFileData ParserError",[this],"data",[c],"node",[f],"cause",[k]),Error(mxResources.get("notADiagramFile")+" ("+k+")");c=null!=f?this.editor.extractGraphModel(f,!0):null;null!=c&&(f=c);if(null!=f&&"mxfile"==f.nodeName&&(c=f.getElementsByTagName("diagram"),
-k={},0<c.length)){var A=this.getHashObject(),z=null;this.fileNode=f;this.pages=[];for(var C=0;C<c.length;C++){null==c[C].getAttribute("id")&&c[C].setAttribute("id",C);f=new DiagramPage(c[C]);null==f.getName()&&f.setName(mxResources.get("pageWithNumber",[C+1]));this.pages.push(f);if(null==A.pageId&&null!=urlParams["page-id"]&&f.getId()==urlParams["page-id"]||null!=A.pageId&&f.getId()==A.pageId)z=f;if(null==k[f.getId()])k[f.getId()]=f;else throw Error(f.getId()+": Duplicate page ID");}this.currentPage=
+k={},0<c.length)){var B=this.getHashObject(),z=null;this.fileNode=f;this.pages=[];for(var C=0;C<c.length;C++){null==c[C].getAttribute("id")&&c[C].setAttribute("id",C);f=new DiagramPage(c[C]);null==f.getName()&&f.setName(mxResources.get("pageWithNumber",[C+1]));this.pages.push(f);if(null==B.pageId&&null!=urlParams["page-id"]&&f.getId()==urlParams["page-id"]||null!=B.pageId&&f.getId()==B.pageId)z=f;if(null==k[f.getId()])k[f.getId()]=f;else throw Error(f.getId()+": Duplicate page ID");}this.currentPage=
null!=z?z:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];f=this.currentPage.node}null==this.fileNode&&null!=f&&(this.fileNode=f.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(f.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(f);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),
this.scrollToPage());if(null!=urlParams["layer-ids"])try{var I=decodeURIComponent(urlParams["layer-ids"]).split(" ");f={};for(C=0;C<I.length;C++)f[I[C]]=!0;var L=this.editor.graph.getModel(),K=L.getChildren(L.root);for(C=0;C<K.length;C++){var O=K[C];L.setVisible(O,f[O.id]||!1)}}catch(da){}};EditorUi.prototype.getBaseFilename=function(c){var f=this.getCurrentFile();f=null!=f&&null!=f.getTitle()?f.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(f)||/(\.html)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.png)$/i.test(f))f=
-f.substring(0,f.lastIndexOf("."));/(\.drawio)$/i.test(f)&&(f=f.substring(0,f.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(f=f+"-"+this.currentPage.getName());return f};EditorUi.prototype.downloadFile=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W,ma,la){try{A=null!=A?A:this.editor.graph.isSelectionEmpty();var Y=this.getBaseFilename(!z),fa=Y+("xml"==c||"pdf"==c&&da?".drawio":"")+
-"."+c;if("xml"==c){var Z=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,A,z,null,null,null,f);this.saveData(fa,c,Z,"text/xml")}else if("html"==c)Z=this.getHtml2(this.getFileData(!0),this.editor.graph,Y),this.saveData(fa,c,Z,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==c?fa=Y+".png":"jpeg"==c&&(fa=Y+".jpg"),this.saveRequest(fa,c,mxUtils.bind(this,function(J,V){try{return this.createDownloadRequest(J,c,A,V,I,z,L,K,O,
-da,ea,void 0,void 0,!C,ca,W,ma,la)}catch(aa){this.handleError(aa)}}));else{var l=null,u=mxUtils.bind(this,function(J){J.length<=MAX_REQUEST_SIZE?this.saveData(fa,"svg",J,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(l)}))});if("svg"==c){var H=this.editor.graph.background;if(I||H==mxConstants.NONE)H=null;var U=this.editor.graph.getSvg(H,null,null,null,null,A);k&&this.editor.graph.addSvgShadow(U);this.editor.convertImages(U,
-mxUtils.bind(this,mxUtils.bind(this,function(J){this.spinner.stop();u(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(J))})))}else fa=Y+".svg",l=this.getFileData(!1,!0,null,mxUtils.bind(this,function(J){this.spinner.stop();u(J)}),A)}}catch(J){this.handleError(J)}};EditorUi.prototype.createDownloadRequest=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W,ma,la,Y,fa){c=this.downloadRequestBuilder(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W,ma,la,Y,fa);f="";for(var Z in c)k=c[Z],null!=k&&(f+=Z+"="+encodeURIComponent(k)+
-"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W,ma,la,Y,fa){var Z=this.editor.graph,l=Z.getGraphBounds();k=this.getFileData(!0,null,null,null,k,0==C?!1:"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var u=null,H=null,U=null;if(!EditorUi.isElectronApp&&(l.width*l.height>MAX_AREA||k.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};O=O?"1":"0";"pdf"==f&&(null!=da?(u=da.from,H=da.to):
+f.substring(0,f.lastIndexOf("."));/(\.drawio)$/i.test(f)&&(f=f.substring(0,f.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(f=f+"-"+this.currentPage.getName());return f};EditorUi.prototype.downloadFile=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V,ma,la){try{B=null!=B?B:this.editor.graph.isSelectionEmpty();var Y=this.getBaseFilename(!z),fa=Y+("xml"==c||"pdf"==c&&da?".drawio":"")+
+"."+c;if("xml"==c){var Z=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,B,z,null,null,null,f);this.saveData(fa,c,Z,"text/xml")}else if("html"==c)Z=this.getHtml2(this.getFileData(!0),this.editor.graph,Y),this.saveData(fa,c,Z,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==c?fa=Y+".png":"jpeg"==c&&(fa=Y+".jpg"),this.saveRequest(fa,c,mxUtils.bind(this,function(J,W){try{return this.createDownloadRequest(J,c,B,W,I,z,L,K,O,
+da,ea,void 0,void 0,!C,ca,V,ma,la)}catch(aa){this.handleError(aa)}}));else{var l=null,u=mxUtils.bind(this,function(J){J.length<=MAX_REQUEST_SIZE?this.saveData(fa,"svg",J,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(l)}))});if("svg"==c){var H=this.editor.graph.background;if(I||H==mxConstants.NONE)H=null;var U=this.editor.graph.getSvg(H,null,null,null,null,B);k&&this.editor.graph.addSvgShadow(U);this.editor.convertImages(U,
+mxUtils.bind(this,mxUtils.bind(this,function(J){this.spinner.stop();u(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(J))})))}else fa=Y+".svg",l=this.getFileData(!1,!0,null,mxUtils.bind(this,function(J){this.spinner.stop();u(J)}),B)}}catch(J){this.handleError(J)}};EditorUi.prototype.createDownloadRequest=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V,ma,la,Y,fa){c=this.downloadRequestBuilder(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V,ma,la,Y,fa);f="";for(var Z in c)k=c[Z],null!=k&&(f+=Z+"="+encodeURIComponent(k)+
+"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V,ma,la,Y,fa){var Z=this.editor.graph,l=Z.getGraphBounds();k=this.getFileData(!0,null,null,null,k,0==C?!1:"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var u=null,H=null,U=null;if(!EditorUi.isElectronApp&&(l.width*l.height>MAX_AREA||k.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};O=O?"1":"0";"pdf"==f&&(null!=da?(u=da.from,H=da.to):
0==C&&(U="1"));"xmlpng"==f&&(O="1",f="png");if(("xmlpng"==f||"svg"==f)&&null!=this.pages&&null!=this.currentPage)for(C=0;C<this.pages.length;C++)if(this.pages[C]==this.currentPage){u=C;break}C=Z.background;"png"!=f&&"pdf"!=f&&"svg"!=f||!z?z||null!=C&&C!=mxConstants.NONE||(C="#ffffff"):C=mxConstants.NONE;z={globalVars:Z.getExportVariables()};K&&(z.grid={size:Z.gridSize,steps:Z.view.gridSteps,color:Editor.isDarkMode()&&"pdf"==f?mxGraphView.prototype.defaultGridColor:Z.view.gridColor});Graph.translateDiagram&&
-(z.diagramLanguage=Graph.diagramLanguage);return{format:f,from:u,to:H,allPages:U,bg:null!=C?C:mxConstants.NONE,base64:A,embedXml:O,xml:k,filename:null!=c?c:"",extras:JSON.stringify(z),scale:I,border:L,pageMargin:ma,w:ea&&isFinite(ea)?ea:null,h:ca&&isFinite(ca)?ca:null,crop:null!=W&&W?"1":"0",fit:null!=la&&la?"1":"0",sheetsAcross:Y,sheetsDown:fa}};EditorUi.prototype.setMode=function(c,f){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));
-if(null!=c&&1<c.length){var f=c.indexOf("#");0<=f&&(c=c.substring(0,f))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,f={};if(null!=c&&0<c.length){var k=c.lastIndexOf("#");if(0<k){c=decodeURIComponent(c.substring(k+1));try{f=JSON.parse(c)}catch(A){}}}return f};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};
-EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var f=window.location.hash;if(null==f||""==f)f="#";var k=f.lastIndexOf("#");0<k&&(f=f.substring(0,k));try{null==c||mxUtils.isEmptyObject(c)||(f=f+"#"+encodeURIComponent(JSON.stringify(c)))}catch(A){}0<k&&0<f.lastIndexOf("#")?window.location.hash=f:window.location.replace(f)}};EditorUi.prototype.loadDescriptor=function(c,f,k){var A=window.location.hash,z=mxUtils.bind(this,function(I){var L=null!=c.data?c.data:"";null!=I&&0<I.length&&
-(0<L.length&&(L+="\n"),L+=I);I=new LocalFile(this,"csv"!=c.format&&0<L.length?L:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);I.getHash=function(){return A};this.fileLoaded(I);"csv"==c.format&&this.importCsv(L,mxUtils.bind(this,function(ca){this.editor.undoManager.clear();this.editor.setModified(!1);this.editor.setStatus("")}));if(null!=c.update){var K=null!=c.interval?parseInt(c.interval):6E4,O=null,da=mxUtils.bind(this,function(){var ca=
-this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(W){ca===this.currentPage&&(200<=W.getStatus()&&300>=W.getStatus()?(this.updateDiagram(W.getText()),ea()):this.handleError({message:mxResources.get("error")+" "+W.getStatus()}))}),mxUtils.bind(this,function(W){this.handleError(W)}))}),ea=mxUtils.bind(this,function(){window.clearTimeout(O);O=window.setTimeout(da,K)});this.editor.addListener("pageSelected",mxUtils.bind(this,
-function(){ea();da()}));ea();da()}null!=f&&f()});if(null!=c.url&&0<c.url.length){var C=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(C,mxUtils.bind(this,function(I){z(I)}),mxUtils.bind(this,function(I){null!=k&&k(I)}))}else z("")};EditorUi.prototype.updateDiagram=function(c){function f(l){var u=new mxCellOverlay(l.image||z.warningImage,l.tooltip,l.align,l.valign,l.offset);u.addListener(mxEvent.CLICK,function(H,U){A.alert(l.tooltip)});return u}var k=null,A=this;if(null!=c&&0<c.length&&(k=mxUtils.parseXml(c),
+(z.diagramLanguage=Graph.diagramLanguage);return{format:f,from:u,to:H,allPages:U,bg:null!=C?C:mxConstants.NONE,base64:B,embedXml:O,xml:k,filename:null!=c?c:"",extras:JSON.stringify(z),scale:I,border:L,pageMargin:ma,w:ea&&isFinite(ea)?ea:null,h:ca&&isFinite(ca)?ca:null,crop:null!=V&&V?"1":"0",fit:null!=la&&la?"1":"0",sheetsAcross:Y,sheetsDown:fa}};EditorUi.prototype.setMode=function(c,f){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));
+if(null!=c&&1<c.length){var f=c.indexOf("#");0<=f&&(c=c.substring(0,f))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,f={};if(null!=c&&0<c.length){var k=c.lastIndexOf("#");if(0<k){c=decodeURIComponent(c.substring(k+1));try{f=JSON.parse(c)}catch(B){}}}return f};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};
+EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var f=window.location.hash;if(null==f||""==f)f="#";var k=f.lastIndexOf("#");0<k&&(f=f.substring(0,k));try{null==c||mxUtils.isEmptyObject(c)||(f=f+"#"+encodeURIComponent(JSON.stringify(c)))}catch(B){}0<k&&0<f.lastIndexOf("#")?window.location.hash=f:window.location.replace(f)}};EditorUi.prototype.loadDescriptor=function(c,f,k){var B=window.location.hash,z=mxUtils.bind(this,function(I){var L=null!=c.data?c.data:"";null!=I&&0<I.length&&
+(0<L.length&&(L+="\n"),L+=I);I=new LocalFile(this,"csv"!=c.format&&0<L.length?L:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);I.getHash=function(){return B};this.fileLoaded(I);"csv"==c.format&&this.importCsv(L,mxUtils.bind(this,function(ca){this.editor.undoManager.clear();this.editor.setModified(!1);this.editor.setStatus("")}));if(null!=c.update){var K=null!=c.interval?parseInt(c.interval):6E4,O=null,da=mxUtils.bind(this,function(){var ca=
+this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(V){ca===this.currentPage&&(200<=V.getStatus()&&300>=V.getStatus()?(this.updateDiagram(V.getText()),ea()):this.handleError({message:mxResources.get("error")+" "+V.getStatus()}))}),mxUtils.bind(this,function(V){this.handleError(V)}))}),ea=mxUtils.bind(this,function(){window.clearTimeout(O);O=window.setTimeout(da,K)});this.editor.addListener("pageSelected",mxUtils.bind(this,
+function(){ea();da()}));ea();da()}null!=f&&f()});if(null!=c.url&&0<c.url.length){var C=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(C,mxUtils.bind(this,function(I){z(I)}),mxUtils.bind(this,function(I){null!=k&&k(I)}))}else z("")};EditorUi.prototype.updateDiagram=function(c){function f(l){var u=new mxCellOverlay(l.image||z.warningImage,l.tooltip,l.align,l.valign,l.offset);u.addListener(mxEvent.CLICK,function(H,U){B.alert(l.tooltip)});return u}var k=null,B=this;if(null!=c&&0<c.length&&(k=mxUtils.parseXml(c),
c=null!=k?k.documentElement:null,null!=c&&"updates"==c.nodeName)){var z=this.editor.graph,C=z.getModel();C.beginUpdate();var I=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var L=C.getCell(c.getAttribute("id"));if(null!=L){try{var K=c.getAttribute("value");if(null!=K){var O=mxUtils.parseXml(K).documentElement;if(null!=O)if("1"==O.getAttribute("replace-value"))C.setValue(L,O);else for(var da=O.attributes,ea=0;ea<da.length;ea++)z.setAttributeForCell(L,da[ea].nodeName,0<da[ea].nodeValue.length?
-da[ea].nodeValue:null)}}catch(l){null!=window.console&&console.log("Error in value for "+L.id+": "+l)}try{var ca=c.getAttribute("style");null!=ca&&z.model.setStyle(L,ca)}catch(l){null!=window.console&&console.log("Error in style for "+L.id+": "+l)}try{var W=c.getAttribute("icon");if(null!=W){var ma=0<W.length?JSON.parse(W):null;null!=ma&&ma.append||z.removeCellOverlays(L);null!=ma&&z.addCellOverlay(L,f(ma))}}catch(l){null!=window.console&&console.log("Error in icon for "+L.id+": "+l)}try{var la=c.getAttribute("geometry");
+da[ea].nodeValue:null)}}catch(l){null!=window.console&&console.log("Error in value for "+L.id+": "+l)}try{var ca=c.getAttribute("style");null!=ca&&z.model.setStyle(L,ca)}catch(l){null!=window.console&&console.log("Error in style for "+L.id+": "+l)}try{var V=c.getAttribute("icon");if(null!=V){var ma=0<V.length?JSON.parse(V):null;null!=ma&&ma.append||z.removeCellOverlays(L);null!=ma&&z.addCellOverlay(L,f(ma))}}catch(l){null!=window.console&&console.log("Error in icon for "+L.id+": "+l)}try{var la=c.getAttribute("geometry");
if(null!=la){la=JSON.parse(la);var Y=z.getCellGeometry(L);if(null!=Y){Y=Y.clone();for(key in la){var fa=parseFloat(la[key]);"dx"==key?Y.x+=fa:"dy"==key?Y.y+=fa:"dw"==key?Y.width+=fa:"dh"==key?Y.height+=fa:Y[key]=parseFloat(la[key])}z.model.setGeometry(L,Y)}}}catch(l){null!=window.console&&console.log("Error in icon for "+L.id+": "+l)}}}else if("model"==c.nodeName){for(var Z=c.firstChild;null!=Z&&Z.nodeType!=mxConstants.NODETYPE_ELEMENT;)Z=Z.nextSibling;null!=Z&&(new mxCodec(c.firstChild)).decode(Z,
C)}else if("view"==c.nodeName){if(c.hasAttribute("scale")&&(z.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))z.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==c.nodeName&&(I=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{C.endUpdate()}null!=I&&this.chromelessResize&&this.chromelessResize(!0,I)}return k};EditorUi.prototype.getCopyFilename=function(c,
-f){var k=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var A=k.lastIndexOf(".");0<=A&&(c=k.substring(A),k=k.substring(0,A));if(f){f=k;var z=new Date;k=z.getFullYear();A=z.getMonth()+1;var C=z.getDate(),I=z.getHours(),L=z.getMinutes();z=z.getSeconds();k=f+(" "+(k+"-"+A+"-"+C+"-"+I+"-"+L+"-"+z))}return k=mxResources.get("copyOf",[k])+c};EditorUi.prototype.logIfModified=function(c,f){try{null!=c&&f&&EditorUi.debug("File.closed",[c])}catch(k){}};EditorUi.prototype.fileLoaded=function(c,
-f,k){var A=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var z=!1;this.hideDialog();null!=A&&(A.removeListener(this.descriptorChangedListener),this.logIfModified(A,!0),A.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var C=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=A&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);
+f){var k=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var B=k.lastIndexOf(".");0<=B&&(c=k.substring(B),k=k.substring(0,B));if(f){f=k;var z=new Date;k=z.getFullYear();B=z.getMonth()+1;var C=z.getDate(),I=z.getHours(),L=z.getMinutes();z=z.getSeconds();k=f+(" "+(k+"-"+B+"-"+C+"-"+I+"-"+L+"-"+z))}return k=mxResources.get("copyOf",[k])+c};EditorUi.prototype.logIfModified=function(c,f){try{null!=c&&f&&EditorUi.debug("File.closed",[c])}catch(k){}};EditorUi.prototype.fileLoaded=function(c,
+f,k){var B=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var z=!1;this.hideDialog();null!=B&&(B.removeListener(this.descriptorChangedListener),this.logIfModified(B,!0),B.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var C=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=B&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);
!f&&null!=window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fnameWrapper.style.display="none",this.fname.innerText="",this.fname.setAttribute("title",mxResources.get("rename")));this.editor.setStatus("");this.updateUi();f||this.showSplash()});if(null!=c)try{mxClient.IS_SF&&"min"==uiTheme&&(this.diagramContainer.style.visibility="");this.openingFile=!0;this.setCurrentFile(c);c.addListener("descriptorChanged",this.descriptorChangedListener);c.addListener("contentChanged",
this.descriptorChangedListener);c.open();delete this.openingFile;this.setGraphEnabled(!0);this.setMode(c.getMode());this.editor.graph.model.prefix=Editor.guid()+"-";this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();c.isEditable()?c.isModified()?c.addUnsavedStatus():this.editor.setStatus(""):this.editor.setStatus('<div class="geStatusBox" title="'+mxUtils.htmlEntities(mxResources.get("readOnly"))+'">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</div>");!this.editor.isChromelessView()||
this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=k&&k();this.editor.fireEvent(new mxEventObject("fileLoaded"));z=!0;if(!this.isOffline()&&null!=c.getMode()){var I="1"==urlParams.sketch?"sketch":uiTheme;if(null==I)I="default";else if("sketch"==I||"min"==I)I+=Editor.isDarkMode()?"-dark":"-light"}EditorUi.debug("File.opened",
[c]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==c.getMode()&&c.getMode()!=App.MODE_DEVICE&&null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(L){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(L){}}catch(L){this.fileLoadedError=L;if(null!=c)try{c.close()}catch(K){}c=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,
-mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=A?this.fileLoaded(A)||C():C()});f?c():(null!=L.fallbackFileData&&(L.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var K=new LocalFile(this,L.fallbackFileData,this.defaultFilename,!0);this.fileLoaded(K)})}),this.handleError(L,mxResources.get("errorLoadingFile"),c,!0,null,null,!0))}else C();return z};EditorUi.prototype.getHashValueForPages=function(c,f){var k=
-0,A=new mxGraphModel,z=new mxCodec;null!=f&&(f.byteCount=0,f.attrCount=0,f.eltCount=0,f.nodeCount=0);for(var C=0;C<c.length;C++){this.updatePageRoot(c[C]);var I=c[C].node.cloneNode(!1);I.removeAttribute("name");A.root=c[C].root;var L=z.encode(A);this.editor.graph.saveViewState(c[C].viewState,L,!0);L.removeAttribute("pageWidth");L.removeAttribute("pageHeight");I.appendChild(L);null!=f&&(f.eltCount+=I.getElementsByTagName("*").length,f.nodeCount+=I.getElementsByTagName("mxCell").length);k=(k<<5)-k+
-this.hashValue(I,function(K,O,da,ea){return!ea||"mxGeometry"!=K.nodeName&&"mxPoint"!=K.nodeName||"x"!=O&&"y"!=O&&"width"!=O&&"height"!=O?ea&&"mxCell"==K.nodeName&&"previous"==O?null:da:Math.round(da)},f)<<0}return k};EditorUi.prototype.hashValue=function(c,f,k){var A=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(A^=this.hashValue(c.nodeName,f,k));if(null!=c.attributes){null!=k&&(k.attrCount+=c.attributes.length);
-for(var z=0;z<c.attributes.length;z++){var C=c.attributes[z].name,I=null!=f?f(c,C,c.attributes[z].value,!0):c.attributes[z].value;null!=I&&(A^=this.hashValue(C,f,k)+this.hashValue(I,f,k))}}if(null!=c.childNodes)for(z=0;z<c.childNodes.length;z++)A=(A<<5)-A+this.hashValue(c.childNodes[z],f,k)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);f=0;null!=k&&(k.byteCount+=c.length);for(z=0;z<c.length;z++)f=(f<<5)-f+c.charCodeAt(z)<<0;A^=f}return A};EditorUi.prototype.descriptorChanged=function(){};
-EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,f,k,A,z,C,I){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){null==c&&(c=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
+mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=B?this.fileLoaded(B)||C():C()});f?c():(null!=L.fallbackFileData&&(L.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var K=new LocalFile(this,L.fallbackFileData,this.defaultFilename,!0);this.fileLoaded(K)})}),this.handleError(L,mxResources.get("errorLoadingFile"),c,!0,null,null,!0))}else C();return z};EditorUi.prototype.getHashValueForPages=function(c,f){var k=
+0,B=new mxGraphModel,z=new mxCodec;null!=f&&(f.byteCount=0,f.attrCount=0,f.eltCount=0,f.nodeCount=0);for(var C=0;C<c.length;C++){this.updatePageRoot(c[C]);var I=c[C].node.cloneNode(!1);I.removeAttribute("name");B.root=c[C].root;var L=z.encode(B);this.editor.graph.saveViewState(c[C].viewState,L,!0);L.removeAttribute("pageWidth");L.removeAttribute("pageHeight");I.appendChild(L);null!=f&&(f.eltCount+=I.getElementsByTagName("*").length,f.nodeCount+=I.getElementsByTagName("mxCell").length);k=(k<<5)-k+
+this.hashValue(I,function(K,O,da,ea){return!ea||"mxGeometry"!=K.nodeName&&"mxPoint"!=K.nodeName||"x"!=O&&"y"!=O&&"width"!=O&&"height"!=O?ea&&"mxCell"==K.nodeName&&"previous"==O?null:da:Math.round(da)},f)<<0}return k};EditorUi.prototype.hashValue=function(c,f,k){var B=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(B^=this.hashValue(c.nodeName,f,k));if(null!=c.attributes){null!=k&&(k.attrCount+=c.attributes.length);
+for(var z=0;z<c.attributes.length;z++){var C=c.attributes[z].name,I=null!=f?f(c,C,c.attributes[z].value,!0):c.attributes[z].value;null!=I&&(B^=this.hashValue(C,f,k)+this.hashValue(I,f,k))}}if(null!=c.childNodes)for(z=0;z<c.childNodes.length;z++)B=(B<<5)-B+this.hashValue(c.childNodes[z],f,k)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);f=0;null!=k&&(k.byteCount+=c.length);for(z=0;z<c.length;z++)f=(f<<5)-f+c.charCodeAt(z)<<0;B^=f}return B};EditorUi.prototype.descriptorChanged=function(){};
+EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,f,k,B,z,C,I){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){null==c&&(c=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
EditorUi.prototype.createLibraryDataFromImages=function(c){if(!Editor.defaultCompressed)for(var f=0;f<c.length;f++)null!=c[f].xml&&"<"!=c[f].xml.charAt(0)&&(c[f].xml=mxUtils.trim(Graph.decompress(c[f].xml)));f=mxUtils.createXmlDocument();var k=f.createElement("mxlibrary");mxUtils.setTextContent(k,JSON.stringify(c,null,2));f.appendChild(k);return mxUtils.getXml(f,"\n")};EditorUi.prototype.closeLibrary=function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),
".scratchpad"==c.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(c){var f=this.sidebar.palettes[c];if(null!=f){for(var k=0;k<f.length;k++)f[k].parentNode.removeChild(f[k]);delete this.sidebar.palettes[c]}};EditorUi.prototype.repositionLibrary=function(c,f){var k=this.sidebar.getEntryContainer();if(!this.sidebar.appendCustomLibraries||null!=c||!f){null==c&&(f=this.sidebar.palettes["L.scratchpad"],null==f&&(f=this.sidebar.palettes.search),null!=f&&(c=f[f.length-1].nextSibling));
-c=null!=c?c:k.firstChild.nextSibling.nextSibling;f=k.lastChild;var A=f.previousSibling;k.insertBefore(f,c);k.insertBefore(A,f)}};EditorUi.prototype.loadLibrary=function(c,f){var k=mxUtils.parseXml(c.getData());if("mxlibrary"==k.documentElement.nodeName){var A=JSON.parse(mxUtils.getTextContent(k.documentElement));this.libraryLoaded(c,A,k.documentElement.getAttribute("title"),f)}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(c){return""};EditorUi.prototype.showSidebar=
-function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.libraryLoaded=function(c,f,k,A){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());var z=null;if(c.constructor!=StorageLibrary||".scratchpad"!=c.title){null==this.openLibraries&&(this.openLibraries=[]);for(var C=0;C<this.openLibraries.length;C++)if(this.openLibraries[C].file.getHash()==c.getHash()){mxUtils.remove(this.openLibraries[C],
-this.openLibraries);break}z={file:c,images:f,title:k,expand:A};this.openLibraries.push(z)}else this.scratchpad=c;C=this.sidebar.palettes[c.getHash()];C=null!=C?C[C.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var I=null,L=mxUtils.bind(this,function(fa,Z){0==fa.length&&c.isEditable()?(null==I&&(I=document.createElement("div"),I.className="geDropTarget",mxUtils.write(I,mxResources.get("dragElementsHere"))),Z.appendChild(I)):this.addLibraryEntries(fa,Z)});null!=this.sidebar&&null!=
-f&&this.sidebar.addEntries(f);null==k&&(k=c.getTitle(),null!=k&&/(\.xml)$/i.test(k)&&(k=k.substring(0,k.lastIndexOf("."))));var K=this.sidebar.addPalette(c.getHash(),k,null!=A?A:!0,mxUtils.bind(this,function(fa){L(f,fa)}));null!=z&&(z.div=K);this.repositionLibrary(C,"L.scratchpad"!=c.getHash());A=K.parentNode.previousSibling;k=A.getAttribute("title");null!=k&&0<k.length&&".scratchpad"!=c.title&&A.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+k);var O=document.createElement("div");O.style.backgroundColor=
-"inherit";A.style.position="relative";var da=document.createElement("img");da.className="geAdaptiveAsset";da.setAttribute("src",Editor.crossImage);da.setAttribute("title",mxResources.get("close"));da.setAttribute("valign","absmiddle");da.setAttribute("border","0");da.style.position="relative";da.style.top="2px";da.style.width="14px";da.style.cursor="pointer";da.style.margin="0 3px";var ea=null;if(".scratchpad"!=c.title||this.closableScratchpad)O.appendChild(da),mxEvent.addListener(da,"click",mxUtils.bind(this,
-function(fa){if(!mxEvent.isConsumed(fa)){var Z=mxUtils.bind(this,function(){null!=z&&mxUtils.remove(z,this.openLibraries);this.closeLibrary(c)});null!=ea?this.confirm(mxResources.get("allChangesLost"),null,Z,mxResources.get("cancel"),mxResources.get("discardChanges")):Z();mxEvent.consume(fa)}}));if(c.isEditable()){var ca=this.editor.graph,W=null;k=mxUtils.bind(this,function(fa){this.showLibraryDialog(c.getTitle(),K,f,c,c.getMode());mxEvent.consume(fa)});var ma=mxUtils.bind(this,function(fa){c.setModified(!0);
-c.isAutosave()?(null!=W&&null!=W.parentNode&&W.parentNode.removeChild(W),W=da.cloneNode(!1),W.setAttribute("src",Editor.spinImage),W.setAttribute("title",mxResources.get("saving")),W.style.cursor="default",W.style.marginRight="2px",W.style.marginTop="-2px",O.insertBefore(W,O.firstChild),this.saveLibrary(c.getTitle(),f,c,c.getMode(),!0,!0,function(){null!=W&&null!=W.parentNode&&W.parentNode.removeChild(W)})):null==ea&&(ea=da.cloneNode(!1),ea.setAttribute("src",Editor.saveImage),ea.setAttribute("title",
+c=null!=c?c:k.firstChild.nextSibling.nextSibling;f=k.lastChild;var B=f.previousSibling;k.insertBefore(f,c);k.insertBefore(B,f)}};EditorUi.prototype.loadLibrary=function(c,f){var k=mxUtils.parseXml(c.getData());if("mxlibrary"==k.documentElement.nodeName){var B=JSON.parse(mxUtils.getTextContent(k.documentElement));this.libraryLoaded(c,B,k.documentElement.getAttribute("title"),f)}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(c){return""};EditorUi.prototype.showSidebar=
+function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.libraryLoaded=function(c,f,k,B){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());var z=null;if(c.constructor!=StorageLibrary||".scratchpad"!=c.title){null==this.openLibraries&&(this.openLibraries=[]);for(var C=0;C<this.openLibraries.length;C++)if(this.openLibraries[C].file.getHash()==c.getHash()){mxUtils.remove(this.openLibraries[C],
+this.openLibraries);break}z={file:c,images:f,title:k,expand:B};this.openLibraries.push(z)}else this.scratchpad=c;C=this.sidebar.palettes[c.getHash()];C=null!=C?C[C.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var I=null,L=mxUtils.bind(this,function(fa,Z){0==fa.length&&c.isEditable()?(null==I&&(I=document.createElement("div"),I.className="geDropTarget",mxUtils.write(I,mxResources.get("dragElementsHere"))),Z.appendChild(I)):this.addLibraryEntries(fa,Z)});null!=this.sidebar&&null!=
+f&&this.sidebar.addEntries(f);null==k&&(k=c.getTitle(),null!=k&&/(\.xml)$/i.test(k)&&(k=k.substring(0,k.lastIndexOf("."))));var K=this.sidebar.addPalette(c.getHash(),k,null!=B?B:!0,mxUtils.bind(this,function(fa){L(f,fa)}));null!=z&&(z.div=K);this.repositionLibrary(C,"L.scratchpad"!=c.getHash());B=K.parentNode.previousSibling;k=B.getAttribute("title");null!=k&&0<k.length&&".scratchpad"!=c.title&&B.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+k);var O=document.createElement("div");O.style.backgroundColor=
+"inherit";B.style.position="relative";var da=document.createElement("img");da.className="geAdaptiveAsset";da.setAttribute("src",Editor.crossImage);da.setAttribute("title",mxResources.get("close"));da.setAttribute("valign","absmiddle");da.setAttribute("border","0");da.style.position="relative";da.style.top="2px";da.style.width="14px";da.style.cursor="pointer";da.style.margin="0 3px";var ea=null;if(".scratchpad"!=c.title||this.closableScratchpad)O.appendChild(da),mxEvent.addListener(da,"click",mxUtils.bind(this,
+function(fa){if(!mxEvent.isConsumed(fa)){var Z=mxUtils.bind(this,function(){null!=z&&mxUtils.remove(z,this.openLibraries);this.closeLibrary(c)});null!=ea?this.confirm(mxResources.get("allChangesLost"),null,Z,mxResources.get("cancel"),mxResources.get("discardChanges")):Z();mxEvent.consume(fa)}}));if(c.isEditable()){var ca=this.editor.graph,V=null;k=mxUtils.bind(this,function(fa){this.showLibraryDialog(c.getTitle(),K,f,c,c.getMode());mxEvent.consume(fa)});var ma=mxUtils.bind(this,function(fa){c.setModified(!0);
+c.isAutosave()?(null!=V&&null!=V.parentNode&&V.parentNode.removeChild(V),V=da.cloneNode(!1),V.setAttribute("src",Editor.spinImage),V.setAttribute("title",mxResources.get("saving")),V.style.cursor="default",V.style.marginRight="2px",V.style.marginTop="-2px",O.insertBefore(V,O.firstChild),this.saveLibrary(c.getTitle(),f,c,c.getMode(),!0,!0,function(){null!=V&&null!=V.parentNode&&V.parentNode.removeChild(V)})):null==ea&&(ea=da.cloneNode(!1),ea.setAttribute("src",Editor.saveImage),ea.setAttribute("title",
mxResources.get("save")),O.insertBefore(ea,O.firstChild),mxEvent.addListener(ea,"click",mxUtils.bind(this,function(Z){this.saveLibrary(c.getTitle(),f,c,c.getMode(),c.constructor==LocalLibrary,!0,function(){null==ea||c.isModified()||(ea.parentNode.removeChild(ea),ea=null)});mxEvent.consume(Z)})))}),la=mxUtils.bind(this,function(fa,Z,l,u){fa=ca.cloneCells(mxUtils.sortCells(ca.model.getTopmostCells(fa)));for(var H=0;H<fa.length;H++){var U=ca.getCellGeometry(fa[H]);null!=U&&U.translate(-Z.x,-Z.y)}K.appendChild(this.sidebar.createVertexTemplateFromCells(fa,
Z.width,Z.height,u||"",!0,null,!1));fa=mxUtils.getXml(this.editor.graph.encodeCells(fa));Editor.defaultCompressed&&(fa=Graph.compress(fa));Z={xml:fa,w:Z.width,h:Z.height};null!=u&&(Z.title=u);f.push(Z);ma(l);null!=I&&null!=I.parentNode&&0<f.length&&(I.parentNode.removeChild(I),I=null)}),Y=mxUtils.bind(this,function(fa){if(ca.isSelectionEmpty())ca.getRubberband().isActive()?(ca.getRubberband().execute(fa),ca.getRubberband().reset()):this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),
mxResources.get("ok"));else{var Z=ca.getSelectionCells(),l=ca.view.getBounds(Z);if(null!=l&&0<l.width&&0<l.height){var u=ca.view.scale;l.x/=u;l.y/=u;l.width/=u;l.height/=u;l.x-=ca.view.translate.x;l.y-=ca.view.translate.y;la(Z,l)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(fa)});mxEvent.addGestureListeners(K,function(){},mxUtils.bind(this,function(fa){ca.isMouseDown&&null!=ca.panningManager&&null!=ca.graphHandler.first&&(ca.graphHandler.suspend(),
null!=ca.graphHandler.hint&&(ca.graphHandler.hint.style.visibility="hidden"),K.style.backgroundColor="light-dark(#fefefe, #000000)",K.style.cursor="copy",ca.panningManager.stop(),ca.autoScroll=!1,mxEvent.consume(fa))}),mxUtils.bind(this,function(fa){ca.isMouseDown&&null!=ca.panningManager&&null!=ca.graphHandler&&(K.style.backgroundColor="",K.style.cursor="default",this.sidebar.showTooltips=!0,ca.panningManager.stop(),ca.graphHandler.reset(),ca.isMouseDown=!1,ca.autoScroll=!0,Y(fa),mxEvent.consume(fa))}));
mxEvent.addListener(K,"mouseleave",mxUtils.bind(this,function(fa){ca.isMouseDown&&null!=ca.graphHandler.first&&(ca.graphHandler.resume(),null!=ca.graphHandler.hint&&(ca.graphHandler.hint.style.visibility="visible"),K.style.backgroundColor="",K.style.cursor="",ca.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(K,"dragover",mxUtils.bind(this,function(fa){K.style.backgroundColor="light-dark(#fefefe, #000000)";fa.dataTransfer.dropEffect="copy";K.style.cursor="copy";this.sidebar.hideTooltip();
-fa.stopPropagation();fa.preventDefault()})),mxEvent.addListener(K,"drop",mxUtils.bind(this,function(fa){K.style.cursor="";K.style.backgroundColor="";0<fa.dataTransfer.files.length&&this.importFiles(fa.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(Z,l,u,H,U,J,V,aa,ba){if(null!=Z&&"image/"==l.substring(0,6))Z="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(Z),Z=[new mxCell("",new mxGeometry(0,0,U,J),Z)],Z[0].vertex=
-!0,la(Z,new mxRectangle(0,0,U,J),fa,mxEvent.isAltDown(fa)?null:V.substring(0,V.lastIndexOf(".")).replace(/_/g," ")),null!=I&&null!=I.parentNode&&0<f.length&&(I.parentNode.removeChild(I),I=null);else{var ja=!1,oa=mxUtils.bind(this,function(qa,ra){null!=qa&&"application/pdf"==ra&&(ra=Editor.extractGraphModelFromPdf(qa),null!=ra&&0<ra.length&&(qa=ra));if(null!=qa)if(qa=mxUtils.parseXml(qa),"mxlibrary"==qa.documentElement.nodeName)try{var ua=JSON.parse(mxUtils.getTextContent(qa.documentElement));L(ua,
+fa.stopPropagation();fa.preventDefault()})),mxEvent.addListener(K,"drop",mxUtils.bind(this,function(fa){K.style.cursor="";K.style.backgroundColor="";0<fa.dataTransfer.files.length&&this.importFiles(fa.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(Z,l,u,H,U,J,W,aa,ba){if(null!=Z&&"image/"==l.substring(0,6))Z="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(Z),Z=[new mxCell("",new mxGeometry(0,0,U,J),Z)],Z[0].vertex=
+!0,la(Z,new mxRectangle(0,0,U,J),fa,mxEvent.isAltDown(fa)?null:W.substring(0,W.lastIndexOf(".")).replace(/_/g," ")),null!=I&&null!=I.parentNode&&0<f.length&&(I.parentNode.removeChild(I),I=null);else{var ja=!1,oa=mxUtils.bind(this,function(qa,ra){null!=qa&&"application/pdf"==ra&&(ra=Editor.extractGraphModelFromPdf(qa),null!=ra&&0<ra.length&&(qa=ra));if(null!=qa)if(qa=mxUtils.parseXml(qa),"mxlibrary"==qa.documentElement.nodeName)try{var ua=JSON.parse(mxUtils.getTextContent(qa.documentElement));L(ua,
K);f=f.concat(ua);ma(fa);this.spinner.stop();ja=!0}catch(La){}else if("mxfile"==qa.documentElement.nodeName)try{var za=qa.documentElement.getElementsByTagName("diagram");for(ua=0;ua<za.length;ua++){var Ba=this.stringToCells(Editor.getDiagramNodeXml(za[ua])),Ca=this.editor.graph.getBoundingBoxFromGeometry(Ba);null!=Ca&&la(Ba,new mxRectangle(0,0,Ca.width,Ca.height),fa)}ja=!0}catch(La){null!=window.console&&console.log("error in drop handler:",La)}ja||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));
-null!=I&&null!=I.parentNode&&0<f.length&&(I.parentNode.removeChild(I),I=null)});null!=ba&&null!=V&&EditorUi.isVisioFilename(V)?this.importVisio(ba,function(qa){oa(qa,"text/xml")},null,V):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(Z,V)&&null!=ba?this.isExternalDataComms()?this.parseFile(ba,mxUtils.bind(this,function(qa){4==qa.readyState&&(this.spinner.stop(),200<=qa.status&&299>=qa.status?oa(qa.responseText,"text/xml"):this.handleError({message:mxResources.get(413==qa.status?"drawingTooLarge":
+null!=I&&null!=I.parentNode&&0<f.length&&(I.parentNode.removeChild(I),I=null)});null!=ba&&null!=W&&EditorUi.isVisioFilename(W)?this.importVisio(ba,function(qa){oa(qa,"text/xml")},null,W):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(Z,W)&&null!=ba?this.isExternalDataComms()?this.parseFile(ba,mxUtils.bind(this,function(qa){4==qa.readyState&&(this.spinner.stop(),200<=qa.status&&299>=qa.status?oa(qa.responseText,"text/xml"):this.handleError({message:mxResources.get(413==qa.status?"drawingTooLarge":
"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):oa(Z,l)}}));fa.stopPropagation();fa.preventDefault()})),mxEvent.addListener(K,"dragleave",function(fa){K.style.cursor="";K.style.backgroundColor="";fa.stopPropagation();fa.preventDefault()}));da=da.cloneNode(!1);da.setAttribute("src",Editor.editImage);da.setAttribute("title",mxResources.get("edit"));O.insertBefore(da,O.firstChild);mxEvent.addListener(da,
-"click",k);k=da.cloneNode(!1);k.setAttribute("src",Editor.plusImage);k.setAttribute("title",mxResources.get("add"));O.insertBefore(k,O.firstChild);mxEvent.addListener(k,"click",Y);".scratchpad"==c.title&&(this.addSelectionToScratchpad=Y);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(k=this.createHelpIcon(EditorUi.scratchpadHelpLink),C=k.getElementsByTagName("img")[0],k.style.marginRight="1px",C.style.marginTop="-2px",C.style.opacity="",O.insertBefore(k,O.firstChild))}A.appendChild(O);
-this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,f){for(var k=0;k<c.length;k++)try{var A=c[k],z=A.data;if(null!=z){z="data:"==z.substring(0,5)?this.convertDataUri(z):z;var C="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==A.aspect&&(C+="aspect=fixed;");C=C+"image="+z+";";null!=A.style&&(C+=A.style);f.appendChild(this.sidebar.createVertexTemplate(C,A.w,A.h,"",A.title||"",!1,null,!0))}else if(null!=A.xml){var I=
-this.stringToCells("<"==A.xml.charAt(0)?A.xml:Graph.decompress(A.xml)),L=0==I.length?mxResources.get("drawingEmpty"):null!=A.title?A.title:"";f.appendChild(this.sidebar.createVertexTemplateFromCells(I,A.w,A.h,L,!0,null,!0))}}catch(K){L=null!=K.message?mxResources.get("error")+": "+K.message:String(K),C=this.sidebar.createVertexTemplateFromCells(null,A.w,A.h,L,!0,null,!0),f.appendChild(C)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};EditorUi.prototype.footerHeight=
+"click",k);k=da.cloneNode(!1);k.setAttribute("src",Editor.plusImage);k.setAttribute("title",mxResources.get("add"));O.insertBefore(k,O.firstChild);mxEvent.addListener(k,"click",Y);".scratchpad"==c.title&&(this.addSelectionToScratchpad=Y);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(k=this.createHelpIcon(EditorUi.scratchpadHelpLink),C=k.getElementsByTagName("img")[0],k.style.marginRight="1px",C.style.marginTop="-2px",C.style.opacity="",O.insertBefore(k,O.firstChild))}B.appendChild(O);
+this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,f){for(var k=0;k<c.length;k++)try{var B=c[k],z=B.data;if(null!=z){z="data:"==z.substring(0,5)?this.convertDataUri(z):z;var C="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==B.aspect&&(C+="aspect=fixed;");C=C+"image="+z+";";null!=B.style&&(C+=B.style);f.appendChild(this.sidebar.createVertexTemplate(C,B.w,B.h,"",B.title||"",!1,null,!0))}else if(null!=B.xml){var I=
+this.stringToCells("<"==B.xml.charAt(0)?B.xml:Graph.decompress(B.xml)),L=0==I.length?mxResources.get("drawingEmpty"):null!=B.title?B.title:"";f.appendChild(this.sidebar.createVertexTemplateFromCells(I,B.w,B.h,L,!0,null,!0))}}catch(K){L=null!=K.message?mxResources.get("error")+": "+K.message:String(K),C=this.sidebar.createVertexTemplateFromCells(null,B.w,B.h,L,!0,null,!0),f.appendChild(C)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};EditorUi.prototype.footerHeight=
0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(mxClient.link("stylesheet",STYLE_PATH+"/atlas.css"),"undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground="linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=
-41,EditorUi.prototype.toolbarHeight=38);"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(c,f,k,A,z,C,I){c=new ImageDialog(this,c,f,k,A,z,C,I);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,f,k,A,z,C){var I=localStorage.getItem(f);c=new TextareaDialog(this,
-c,null!=I?JSON.stringify(JSON.parse(I),null,2):"",mxUtils.bind(this,function(L){if(null!=L)try{if(null!=C&&C(L),L==I)this.hideDialog();else{if(0<L.length){var K=JSON.parse(L);localStorage.setItem(f,JSON.stringify(K))}else localStorage.removeItem(f);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(O){this.handleError(O)}}),null,mxResources.get("close"),null,null,null,!0,null,null,z,k,A);this.showDialog(c.container,660,480,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=
-function(c,f,k,A){c=null!=c?c:mxUtils.bind(this,function(z,C,I,L){C||(z=new ChangePageSetup(this,A?I:null,z),z.ignoreColor=!A,null!=L&&A&&(z.shadowVisible=L),this.editor.graph.model.execute(z))});c=new BackgroundImageDialog(this,c,f,k,A);this.showDialog(c.container,400,A?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,f,k,A,z){c=new LibraryDialog(this,c,f,k,A,z);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(C){C&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&
-this.showSplash()}));c.init()};var g=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var f=g.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(k){this.editor.graph.isSelectionEmpty()&&f.refresh()}));return f};EditorUi.prototype.handleError=function(c,f,k,A,z,C,I){var L=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},K=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&
+41,EditorUi.prototype.toolbarHeight=38);"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(c,f,k,B,z,C,I){c=new ImageDialog(this,c,f,k,B,z,C,I);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,f,k,B,z,C){var I=localStorage.getItem(f);c=new TextareaDialog(this,
+c,null!=I?JSON.stringify(JSON.parse(I),null,2):"",mxUtils.bind(this,function(L){if(null!=L)try{if(null!=C&&C(L),L==I)this.hideDialog();else{if(0<L.length){var K=JSON.parse(L);localStorage.setItem(f,JSON.stringify(K))}else localStorage.removeItem(f);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(O){this.handleError(O)}}),null,mxResources.get("close"),null,null,null,!0,null,null,z,k,B);this.showDialog(c.container,660,480,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=
+function(c,f,k,B){c=null!=c?c:mxUtils.bind(this,function(z,C,I,L){C||(z=new ChangePageSetup(this,B?I:null,z),z.ignoreColor=!B,null!=L&&B&&(z.shadowVisible=L),this.editor.graph.model.execute(z))});c=new BackgroundImageDialog(this,c,f,k,B);this.showDialog(c.container,400,B?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,f,k,B,z){c=new LibraryDialog(this,c,f,k,B,z);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(C){C&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&
+this.showSplash()}));c.init()};var g=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var f=g.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(k){this.editor.graph.isSelectionEmpty()&&f.refresh()}));return f};EditorUi.prototype.handleError=function(c,f,k,B,z,C,I){var L=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},K=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&
null!=c.message)try{I||EditorUi.logError("Caught: "+(""==c.message&&null!=c.name)?c.name:c.message,c.filename,c.lineNumber,c.columnNumber,c,"INFO"),"1"!=urlParams.test&&!I||null==window.console||console.error("EditorUi.handleError:",c)}catch(ca){}if(null!=K||null!=f){I=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var O=mxResources.get("ok"),da=null;f=null!=f?f:mxResources.get("error");if(null!=K){null!=K.retry&&(O=mxResources.get("cancel"),da=function(){L();K.retry()});if(404==K.code||
404==K.status||403==K.code){I=403==K.code?null!=K.message?mxUtils.htmlEntities(K.message,!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),!1):null!=z?z:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?" ("+this.drive.user.email+")":""),!1);var ea=null!=z?null:null!=C?C:window.location.hash;if(null!=ea&&("#G"==ea.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==ea.substring(0,45))&&(null!=c&&null!=c.error&&(null!=c.error.errors&&
-0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||404==K.code||404==K.status)){ea="#U"==ea.substring(0,2)?ea.substring(45,ea.lastIndexOf("%26ex")):ea.substring(2);this.showError(f,I,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+ea);null!=A&&A()}),da,mxResources.get("changeUser"),mxUtils.bind(this,function(){function ca(){Y.innerText=
-"";for(var fa=0;fa<W.length;fa++){var Z=document.createElement("option");mxUtils.write(Z,W[fa].displayName);Z.value=fa;Y.appendChild(Z);Z=document.createElement("option");Z.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(Z,"<"+W[fa].email+">");Z.setAttribute("disabled","disabled");Y.appendChild(Z)}Z=document.createElement("option");mxUtils.write(Z,mxResources.get("addAccount"));Z.value=W.length;Y.appendChild(Z)}var W=this.drive.getUsersList(),ma=document.createElement("div"),la=document.createElement("div");
-la.style.marginBottom="6px";mxUtils.write(la,mxResources.get("changeUser")+": ");ma.appendChild(la);var Y=document.createElement("select");Y.style.width="100%";ca();mxEvent.addListener(Y,"change",mxUtils.bind(this,function(){var fa=Y.value,Z=W.length!=fa;Z&&this.drive.setUser(W[fa]);this.drive.authorize(Z,mxUtils.bind(this,function(){Z||(W=this.drive.getUsersList(),ca())}),mxUtils.bind(this,function(l){this.handleError(l)}),!0)}));ma.appendChild(Y);ma=new CustomDialog(this,ma,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),
+0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||404==K.code||404==K.status)){ea="#U"==ea.substring(0,2)?ea.substring(45,ea.lastIndexOf("%26ex")):ea.substring(2);this.showError(f,I,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+ea);null!=B&&B()}),da,mxResources.get("changeUser"),mxUtils.bind(this,function(){function ca(){Y.innerText=
+"";for(var fa=0;fa<V.length;fa++){var Z=document.createElement("option");mxUtils.write(Z,V[fa].displayName);Z.value=fa;Y.appendChild(Z);Z=document.createElement("option");Z.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(Z,"<"+V[fa].email+">");Z.setAttribute("disabled","disabled");Y.appendChild(Z)}Z=document.createElement("option");mxUtils.write(Z,mxResources.get("addAccount"));Z.value=V.length;Y.appendChild(Z)}var V=this.drive.getUsersList(),ma=document.createElement("div"),la=document.createElement("div");
+la.style.marginBottom="6px";mxUtils.write(la,mxResources.get("changeUser")+": ");ma.appendChild(la);var Y=document.createElement("select");Y.style.width="100%";ca();mxEvent.addListener(Y,"change",mxUtils.bind(this,function(){var fa=Y.value,Z=V.length!=fa;Z&&this.drive.setUser(V[fa]);this.drive.authorize(Z,mxUtils.bind(this,function(){Z||(V=this.drive.getUsersList(),ca())}),mxUtils.bind(this,function(l){this.handleError(l)}),!0)}));ma.appendChild(Y);ma=new CustomDialog(this,ma,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),
!0)}));this.showDialog(ma.container,300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=k&&k()}),520,150);return}}null!=K.message?I=""==K.message&&null!=K.name?mxUtils.htmlEntities(K.name,!1):mxUtils.htmlEntities(K.message,!1):null!=K.response&&null!=K.response.error?I=mxUtils.htmlEntities(K.response.error,!1):"undefined"!==typeof window.App&&(K.code==App.ERROR_TIMEOUT?I=mxUtils.htmlEntities(mxResources.get("timeout"),!1):K.code==App.ERROR_BUSY?I=mxUtils.htmlEntities(mxResources.get("busy"),
!1):"string"===typeof K&&0<K.length&&(I=mxUtils.htmlEntities(K,!1)))}z=c=null;null!=K&&null!=K.helpLink?(c=mxResources.get("help"),z=mxUtils.bind(this,function(){return this.editor.graph.openLink(K.helpLink)})):null!=K&&null!=K.ownerEmail?(c=mxResources.get("contactOwner"),I+=mxUtils.htmlEntities(" ("+c+": "+K.ownerEmail+")",!1),z=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(K.ownerEmail))})):null!=K&&null!=K.alternateAction&&(c=K.alternateAction.label,z=K.alternateAction.funct);
-this.showError(f,I,O,k,da,null,null,c,z,null,null,null,A?k:null)}else null!=k&&k()};EditorUi.prototype.alert=function(c,f,k){c=new ErrorDialog(this,null,c,mxResources.get("ok"),f);this.showDialog(c.container,k||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,f,k,A,z,C){c=null!=c?c:"";var I=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},L=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){I();null!=f&&f()},function(){I();
-null!=k&&k()},A,z,null,null,null,null,L);this.showDialog(c.container,340,46+L,!0,C);c.init()};EditorUi.prototype.showBanner=function(c,f,k,A,z,C,I,L,K){var O=!1;if(!(this.bannerShowing||this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){C=null!=C?C:"bottom:10px;left:50%;";I=null!=I?I:"translate(-50%,120%)";L=null!=L?L:"translate(-50%,0%)";var da=z?500:1E3;O=z?"padding:4px;border-radius:6px;font-size:11px;height:12px;font-weight:normal;":"font-size:16px;padding:18px 34px 12px 20px;font-weight:bold;";
+this.showError(f,I,O,k,da,null,null,c,z,null,null,null,B?k:null)}else null!=k&&k()};EditorUi.prototype.alert=function(c,f,k){c=new ErrorDialog(this,null,c,mxResources.get("ok"),f);this.showDialog(c.container,k||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,f,k,B,z,C){c=null!=c?c:"";var I=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},L=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){I();null!=f&&f()},function(){I();
+null!=k&&k()},B,z,null,null,null,null,L);this.showDialog(c.container,340,46+L,!0,C);c.init()};EditorUi.prototype.showBanner=function(c,f,k,B,z,C,I,L,K){var O=!1;if(!(this.bannerShowing||this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){C=null!=C?C:"bottom:10px;left:50%;";I=null!=I?I:"translate(-50%,120%)";L=null!=L?L:"translate(-50%,0%)";var da=z?500:1E3;O=z?"padding:4px;border-radius:6px;font-size:11px;height:12px;font-weight:normal;":"font-size:16px;padding:18px 34px 12px 20px;font-weight:bold;";
var ea=document.createElement("div");ea.style.cssText="position:absolute;"+C+";max-width:90%;white-space:nowrap;cursor:pointer;z-index:"+mxPopupMenu.prototype.zIndex+";"+O;mxUtils.setPrefixedStyle(ea.style,"transform",I);mxUtils.setPrefixedStyle(ea.style,"transition","all "+da+"ms ease");ea.className="geBtn gePrimaryBtn"+(z?" geSmallBanner":"");Editor.isDarkMode()||mxUtils.setPrefixedStyle(ea.style,"box-shadow","1px 1px 2px 0px #ddd");null!=K&&mxUtils.setPrefixedStyle(ea.style,"transform-origin",
-K);if(!z){var ca=document.createElement("img");ca.setAttribute("src",IMAGE_PATH+"/logo.png");ca.setAttribute("border","0");ca.setAttribute("align","absmiddle");ca.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;";ea.appendChild(ca);ca=document.createElement("img");ca.setAttribute("src",Dialog.prototype.closeImage);ca.setAttribute("title",mxResources.get(A?"doNotShowAgain":"close"));ca.setAttribute("border","0");ca.style.cssText=(z?"right:6px;top:9px;":"right:10px;top:12px;")+
-"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;";ea.appendChild(ca)}mxUtils.write(ea,f);document.body.appendChild(ea);this.bannerShowing=!0;f=document.createElement("div");f.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var W=document.createElement("input");W.setAttribute("type","checkbox");W.setAttribute("id","geDoNotShowAgainCheckbox");W.style.marginRight="6px";if(!A){f.appendChild(W);
-var ma=document.createElement("label");ma.setAttribute("for","geDoNotShowAgainCheckbox");mxUtils.write(ma,mxResources.get("doNotShowAgain"));f.appendChild(ma);ea.style.paddingBottom=z?"16px":"30px";ea.appendChild(f)}var la=mxUtils.bind(this,function(){null!=ea.parentNode&&(ea.parentNode.removeChild(ea),this.bannerShowing=!1,W.checked||A)&&(this["hideBanner"+c]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=ca&&mxEvent.addListener(ca,
-"click",mxUtils.bind(this,function(fa){mxEvent.consume(fa);la()}));var Y=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(ea.style,"transform",I);window.setTimeout(mxUtils.bind(this,function(){la()}),da)});mxEvent.addListener(ea,"click",mxUtils.bind(this,function(fa){var Z=mxEvent.getSource(fa);Z!=W&&Z!=ma?(null!=k&&k(),la(),mxEvent.consume(fa)):Y()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(ea.style,"transform",L)}),da/2);window.setTimeout(Y,z?4E3:3E4);O=!0}return O};
-EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(c,f,k,A){c=c.toDataURL("image/"+k);if(null!=c&&6<c.length)null!=f&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(f))),0<A&&(c=Editor.writeGraphModelToPng(c,"pHYs","dpi",A));else throw{message:mxResources.get("unknownError")};
-return c};EditorUi.prototype.saveCanvas=function(c,f,k,A,z){var C="jpeg"==k?"jpg":k;A=this.getBaseFilename(A)+(null!=f?".drawio":"")+"."+C;c=this.createImageDataUri(c,f,k,z);this.saveData(A,C,c.substring(c.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||
-mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,f){c=new TextareaDialog(this,c,f,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,f,k,A,z,C){"text/xml"!=k||/(\.drawio)$/i.test(f)||/(\.xml)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.html)$/i.test(f)||(f=f+"."+(null!=C?C:"drawio"));if(window.Blob&&navigator.msSaveOrOpenBlob)c=A?this.base64ToBlob(c,
-k):new Blob([c],{type:k}),navigator.msSaveOrOpenBlob(c,f);else if(mxClient.IS_IE)k=window.open("about:blank","_blank"),null==k?mxUtils.popup(c,!0):(k.document.write(c),k.document.close(),k.document.execCommand("SaveAs",!0,f),k.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==k||"image/"!=k.substring(0,6)?this.showTextDialog(f+":",c):this.openInNewWindow(c,k,A);else{var I=document.createElement("a");C=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&
-"undefined"!==typeof I.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var L=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);C=65==(L?parseInt(L[2],10):!1)?!1:C}if(C||this.isOffline()){I.href=URL.createObjectURL(A?this.base64ToBlob(c,k):new Blob([c],{type:k}));C?I.download=f:I.setAttribute("target","_blank");document.body.appendChild(I);try{window.setTimeout(function(){URL.revokeObjectURL(I.href)},2E4),I.click(),I.parentNode.removeChild(I)}catch(K){}}else this.createEchoRequest(c,f,k,
-A,z).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,f,k,A,z,C){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,c+(null!=k?"&mime="+k:"")+(null!=z?"&format="+z:"")+(null!=C?"&base64="+C:"")+(null!=f?"&filename="+encodeURIComponent(f):"")+(A?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(c,f,k,A,z,C,I,L){C=null!=C?C:!1;I=null!=I?I:"vsdx"!=z&&(!mxClient.IS_IOS||!navigator.standalone);var K=mxUtils.bind(this,function(da,ea,ca,W){try{if("_blank"==
-ea)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(c,k,A);else if(null!=k&&"text/html"==k.substring(0,9)){var ma=new EmbedDialog(this,c);this.showDialog(ma.container,450,240,!0,!0);ma.init()}else{var la=window.open("about:blank");null==la?mxUtils.popup(c,!0):(la.document.write("<pre>"+mxUtils.htmlEntities(c,!1)+"</pre>"),la.document.close())}else if(ea==App.MODE_DEVICE||"download"==ea)this.doSaveLocalFile(c,da,k,A,null,L);else if(null!=da&&0<da.length){var Y=mxUtils.bind(this,function(fa){try{this.exportFile(c,
-da,k,A,ea,fa)}catch(Z){this.handleError(Z)}});null!=W?Y(W):this.pickFolder(ea,Y)}}catch(fa){this.handleError(fa)}});z=[];C||z.push(App.MODE_BROWSER);I||z.push("_blank");var O=new SaveDialog(this,f,mxUtils.bind(this,function(da,ea,ca){K(da.value,ea,da,ca);this.hideDialog(null,null,O.container)}),z,c,k,A);this.showDialog(O.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));O.init()};EditorUi.prototype.openInNewWindow=function(c,f,k){var A=window.open("about:blank");if(null==A||
-null==A.document)mxUtils.popup(c,!0);else{var z="background: light-dark(rgb(255, 255, 255), rgb(18, 18, 18))";if("image/svg+xml"==f){var C=mxUtils.parseXml(c).documentElement.style.backgroundColor;""!=C&&(z="background: "+C+";")}z='<html><head><meta charset="UTF-8"></head><body style="color-scheme: light dark; '+z+'">';"image/svg+xml"!=f||mxClient.IS_SVG?"image/svg+xml"!=f||k?(C=k?c:btoa(unescape(encodeURIComponent(c))),A.document.write(z+'<img style="max-width:100%;" src="data:'+f+";base64,"+C+'"/></body></html>')):
-A.document.write(z+c+"</body></html>"):A.document.write(z+"<pre>"+mxUtils.htmlEntities(c,!1)+"</pre></body></html>");A.document.close()}};var m=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(c){if(null!=urlParams.tags){this.tagsDialog=this.tagsComponent=
-null;var f=c(mxUtils.bind(this,function(A){null==this.tagsComponent&&(this.tagsComponent=this.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return null!=this.tagsDialog}),!0),this.tagsComponent.div.getElementsByTagName("div")[0].style.position="",mxUtils.setPrefixedStyle(this.tagsComponent.div.style,"borderRadius","5px"),this.tagsComponent.div.className="geScrollable",this.tagsComponent.div.style.maxHeight="160px",this.tagsComponent.div.style.maxWidth="120px",this.tagsComponent.div.style.padding=
+K);if(!z){var ca=document.createElement("img");ca.setAttribute("src",IMAGE_PATH+"/logo.png");ca.setAttribute("border","0");ca.setAttribute("align","absmiddle");ca.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;";ea.appendChild(ca);ca=document.createElement("img");ca.setAttribute("src",Dialog.prototype.closeImage);ca.setAttribute("title",mxResources.get(B?"doNotShowAgain":"close"));ca.setAttribute("border","0");ca.style.cssText=(z?"right:6px;top:9px;":"right:10px;top:12px;")+
+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;";ea.appendChild(ca)}mxUtils.write(ea,f);document.body.appendChild(ea);this.bannerShowing=!0;f=document.createElement("div");f.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var V=document.createElement("input");V.setAttribute("type","checkbox");V.setAttribute("id","geDoNotShowAgainCheckbox");V.style.marginRight="6px";if(!B){f.appendChild(V);
+var ma=document.createElement("label");ma.setAttribute("for","geDoNotShowAgainCheckbox");mxUtils.write(ma,mxResources.get("doNotShowAgain"));f.appendChild(ma);ea.style.paddingBottom=z?"16px":"30px";ea.appendChild(f)}var la=mxUtils.bind(this,function(){null!=ea.parentNode&&(ea.parentNode.removeChild(ea),this.bannerShowing=!1,V.checked||B)&&(this["hideBanner"+c]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=ca&&mxEvent.addListener(ca,
+"click",mxUtils.bind(this,function(fa){mxEvent.consume(fa);la()}));var Y=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(ea.style,"transform",I);window.setTimeout(mxUtils.bind(this,function(){la()}),da)});mxEvent.addListener(ea,"click",mxUtils.bind(this,function(fa){var Z=mxEvent.getSource(fa);Z!=V&&Z!=ma?(null!=k&&k(),la(),mxEvent.consume(fa)):Y()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(ea.style,"transform",L)}),da/2);window.setTimeout(Y,z?4E3:3E4);O=!0}return O};
+EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(c,f,k,B){c=c.toDataURL("image/"+k);if(null!=c&&6<c.length)null!=f&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(f))),0<B&&(c=Editor.writeGraphModelToPng(c,"pHYs","dpi",B));else throw{message:mxResources.get("unknownError")};
+return c};EditorUi.prototype.saveCanvas=function(c,f,k,B,z){var C="jpeg"==k?"jpg":k;B=this.getBaseFilename(B)+(null!=f?".drawio":"")+"."+C;c=this.createImageDataUri(c,f,k,z);this.saveData(B,C,c.substring(c.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||
+mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,f){c=new TextareaDialog(this,c,f,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,f,k,B,z,C){"text/xml"!=k||/(\.drawio)$/i.test(f)||/(\.xml)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.html)$/i.test(f)||(f=f+"."+(null!=C?C:"drawio"));if(window.Blob&&navigator.msSaveOrOpenBlob)c=B?this.base64ToBlob(c,
+k):new Blob([c],{type:k}),navigator.msSaveOrOpenBlob(c,f);else if(mxClient.IS_IE)k=window.open("about:blank","_blank"),null==k?mxUtils.popup(c,!0):(k.document.write(c),k.document.close(),k.document.execCommand("SaveAs",!0,f),k.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==k||"image/"!=k.substring(0,6)?this.showTextDialog(f+":",c):this.openInNewWindow(c,k,B);else{var I=document.createElement("a");C=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&
+"undefined"!==typeof I.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var L=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);C=65==(L?parseInt(L[2],10):!1)?!1:C}if(C||this.isOffline()){I.href=URL.createObjectURL(B?this.base64ToBlob(c,k):new Blob([c],{type:k}));C?I.download=f:I.setAttribute("target","_blank");document.body.appendChild(I);try{window.setTimeout(function(){URL.revokeObjectURL(I.href)},2E4),I.click(),I.parentNode.removeChild(I)}catch(K){}}else this.createEchoRequest(c,f,k,
+B,z).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,f,k,B,z,C){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,c+(null!=k?"&mime="+k:"")+(null!=z?"&format="+z:"")+(null!=C?"&base64="+C:"")+(null!=f?"&filename="+encodeURIComponent(f):"")+(B?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(c,f,k,B,z,C,I,L){C=null!=C?C:!1;I=null!=I?I:"vsdx"!=z&&(!mxClient.IS_IOS||!navigator.standalone);var K=mxUtils.bind(this,function(da,ea,ca,V){try{if("_blank"==
+ea)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(c,k,B);else if(null!=k&&"text/html"==k.substring(0,9)){var ma=new EmbedDialog(this,c);this.showDialog(ma.container,450,240,!0,!0);ma.init()}else{var la=window.open("about:blank");null==la?mxUtils.popup(c,!0):(la.document.write("<pre>"+mxUtils.htmlEntities(c,!1)+"</pre>"),la.document.close())}else if(ea==App.MODE_DEVICE||"download"==ea)this.doSaveLocalFile(c,da,k,B,null,L);else if(null!=da&&0<da.length){var Y=mxUtils.bind(this,function(fa){try{this.exportFile(c,
+da,k,B,ea,fa)}catch(Z){this.handleError(Z)}});null!=V?Y(V):this.pickFolder(ea,Y)}}catch(fa){this.handleError(fa)}});z=[];C||z.push(App.MODE_BROWSER);I||z.push("_blank");var O=new SaveDialog(this,f,mxUtils.bind(this,function(da,ea,ca){K(da.value,ea,da,ca);this.hideDialog(null,null,O.container)}),z,c,k,B);this.showDialog(O.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));O.init()};EditorUi.prototype.openInNewWindow=function(c,f,k){var B=window.open("about:blank");if(null==B||
+null==B.document)mxUtils.popup(c,!0);else{var z="background: light-dark(rgb(255, 255, 255), rgb(18, 18, 18))";if("image/svg+xml"==f){var C=mxUtils.parseXml(c).documentElement.style.backgroundColor;""!=C&&(z="background: "+C+";")}z='<html><head><meta charset="UTF-8"></head><body style="color-scheme: light dark; '+z+'">';"image/svg+xml"!=f||mxClient.IS_SVG?"image/svg+xml"!=f||k?(C=k?c:btoa(unescape(encodeURIComponent(c))),B.document.write(z+'<img style="max-width:100%;" src="data:'+f+";base64,"+C+'"/></body></html>')):
+B.document.write(z+c+"</body></html>"):B.document.write(z+"<pre>"+mxUtils.htmlEntities(c,!1)+"</pre></body></html>");B.document.close()}};var m=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(c){if(null!=urlParams.tags){this.tagsDialog=this.tagsComponent=
+null;var f=c(mxUtils.bind(this,function(B){null==this.tagsComponent&&(this.tagsComponent=this.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return null!=this.tagsDialog}),!0),this.tagsComponent.div.getElementsByTagName("div")[0].style.position="",mxUtils.setPrefixedStyle(this.tagsComponent.div.style,"borderRadius","5px"),this.tagsComponent.div.className="geScrollable",this.tagsComponent.div.style.maxHeight="160px",this.tagsComponent.div.style.maxWidth="120px",this.tagsComponent.div.style.padding=
"4px",this.tagsComponent.div.style.overflow="auto",this.tagsComponent.div.style.height="auto",this.tagsComponent.div.style.position="fixed",this.tagsComponent.div.style.fontFamily=Editor.defaultHtmlFont,mxClient.IS_IE||mxClient.IS_IE11?(this.tagsComponent.div.style.backgroundColor="#ffffff",this.tagsComponent.div.style.border="2px solid black",this.tagsComponent.div.style.color="#000000"):(this.tagsComponent.div.style.backgroundColor="#000000",this.tagsComponent.div.style.color="#ffffff",mxUtils.setOpacity(this.tagsComponent.div,
80)));if(null!=this.tagsDialog)this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null;else{this.tagsDialog=this.tagsComponent.div;mxEvent.addListener(this.tagsDialog,"mouseleave",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));var z=f.getBoundingClientRect();this.tagsDialog.style.left=z.left+"px";this.tagsDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+
-4+"px";z=mxUtils.getCurrentStyle(this.editor.graph.container);this.tagsDialog.style.zIndex=z.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(A)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var A=this.editor.graph.getAllTags();f.style.display=0<A.length?"":"none"}))}m.apply(this,arguments);this.editor.addListener("tagsDialogShown",
+4+"px";z=mxUtils.getCurrentStyle(this.editor.graph.container);this.tagsDialog.style.zIndex=z.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(B)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var B=this.editor.graph.getAllTags();f.style.display=0<B.length?"":"none"}))}m.apply(this,arguments);this.editor.addListener("tagsDialogShown",
mxUtils.bind(this,function(){null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));this.editor.addListener("layersDialogShown",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));this.editor.addListener("pageSelected",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&
(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));mxEvent.addListener(this.editor.graph.container,"click",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));if(this.isExportToCanvas()&&this.isChromelessImageExportEnabled()){this.exportDialog=null;var k=c(mxUtils.bind(this,
-function(A){var z=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",z);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)z.apply(this);else{this.exportDialog=document.createElement("div");var C=k.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign="center";
+function(B){var z=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",z);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)z.apply(this);else{this.exportDialog=document.createElement("div");var C=k.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign="center";
this.exportDialog.style.fontFamily=Editor.defaultHtmlFont;this.exportDialog.style.backgroundColor="#000000";this.exportDialog.style.width="50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding="4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,80);this.exportDialog.style.left=C.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";C=mxUtils.getCurrentStyle(this.editor.graph.container);
this.exportDialog.style.zIndex=C.zIndex;var I=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});I.spin(this.exportDialog);document.body.appendChild(this.exportDialog);mxEvent.addListener(this.editor.graph.container,"click",z);this.editor.exportToCanvas(mxUtils.bind(this,function(L){I.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding=
"10px";var K=this.createImageDataUri(L,null,"png");L=document.createElement("img");L.style.maxWidth="140px";L.style.maxHeight="140px";L.style.cursor="pointer";L.style.backgroundColor="white";L.setAttribute("title",mxResources.get("openInNewWindow"));L.setAttribute("border","0");L.setAttribute("src",K);this.exportDialog.appendChild(L);mxEvent.addListener(L,"click",mxUtils.bind(this,function(){this.openInNewWindow(K.substring(K.indexOf(",")+1),"image/png",!0);z.apply(this,arguments)}))}),null,this.thumbImageCache,
-null,mxUtils.bind(this,function(L){I.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(L)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(A)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,f,k,A,z){this.isLocalFileSave()?this.saveLocalFile(k,c,A,z,f):this.saveRequest(c,f,mxUtils.bind(this,function(C,I){return this.createEchoRequest(k,
-C,A,z,f,I)}),k,z,A)};EditorUi.prototype.saveRequest=function(c,f,k,A,z,C,I){I=null!=I?I:!mxClient.IS_IOS||!navigator.standalone;var L=mxUtils.bind(this,function(O,da,ea,ca){if("_blank"==da||null!=O&&0<O.length){var W=k("_blank"==da?null:O,da==App.MODE_DEVICE||"download"==da||null==da||"_blank"==da?"0":"1");null!=W&&(da==App.MODE_DEVICE||"download"==da||"_blank"==da?W.simulate(document,"_blank"):(ea=mxUtils.bind(this,function(ma){C=null!=C?C:"pdf"==f?"application/pdf":"image/"+f;if(null!=A)try{this.exportFile(A,
-O,C,!0,da,ma)}catch(la){this.handleError(la)}else this.spinner.spin(document.body,mxResources.get("saving"))&&W.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=W.getStatus()&&299>=W.getStatus())try{this.exportFile(W.getText(),O,C,!0,da,ma)}catch(la){this.handleError(la)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(la){this.spinner.stop();this.handleError(la)}))}),null!=ca?ea(ca):this.pickFolder(da,ea)))}});z=[App.MODE_BROWSER];I||z.push("_blank");
-var K=new SaveDialog(this,c,mxUtils.bind(this,function(O,da,ea){L(O.value,da,O,ea);this.hideDialog(null,null,K.container)}),z,null,"application/pdf");this.showDialog(K.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));K.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,f,k,A,z,C){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=
-function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,f,k){f(null)};EditorUi.prototype.exportSvg=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(J){Editor.addRetryToError(J,mxUtils.bind(this,function(){this.exportSvg(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W)}));this.handleError(J)})))try{var ma=this.editor.graph.isSelectionEmpty();k=null!=k?k:ma;var la=f?null:this.editor.graph.background;la==mxConstants.NONE&&
-(la=null);null==la&&0==f&&(la=this.editor.graph.shapeBackgroundColor);var Y=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var fa=this.editor.graph.createSvgImageExport(z),Z=this.editor.graph.getSvg(la,c,I,L,null,k,null,fa,"blank"==O?"_blank":"self"==O?"_top":null,null,!ca,da,ea);this.editor.graph.addForeignObjectWarning=Y;A&&this.editor.graph.addSvgShadow(Z);var l=this.getBaseFilename()+(z?".drawio":"")+".svg";W=null!=
-W?W:mxUtils.bind(this,function(J){this.isLocalFileSave()||J.length<=MAX_REQUEST_SIZE?this.saveData(l,"svg",J,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(J)}))});var u=mxUtils.bind(this,function(J){this.spinner.stop();z&&J.setAttribute("content",this.getFileData(!0,null,null,null,k,K,null,null,null,null,null,c,I));W(Graph.xmlDeclaration+"\n"+(z?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+
+null,mxUtils.bind(this,function(L){I.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(L)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(B)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,f,k,B,z){this.isLocalFileSave()?this.saveLocalFile(k,c,B,z,f):this.saveRequest(c,f,mxUtils.bind(this,function(C,I){return this.createEchoRequest(k,
+C,B,z,f,I)}),k,z,B)};EditorUi.prototype.saveRequest=function(c,f,k,B,z,C,I){I=null!=I?I:!mxClient.IS_IOS||!navigator.standalone;var L=mxUtils.bind(this,function(O,da,ea,ca){if("_blank"==da||null!=O&&0<O.length){var V=k("_blank"==da?null:O,da==App.MODE_DEVICE||"download"==da||null==da||"_blank"==da?"0":"1");null!=V&&(da==App.MODE_DEVICE||"download"==da||"_blank"==da?V.simulate(document,"_blank"):(ea=mxUtils.bind(this,function(ma){C=null!=C?C:"pdf"==f?"application/pdf":"image/"+f;if(null!=B)try{this.exportFile(B,
+O,C,!0,da,ma)}catch(la){this.handleError(la)}else this.spinner.spin(document.body,mxResources.get("saving"))&&V.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=V.getStatus()&&299>=V.getStatus())try{this.exportFile(V.getText(),O,C,!0,da,ma)}catch(la){this.handleError(la)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(la){this.spinner.stop();this.handleError(la)}))}),null!=ca?ea(ca):this.pickFolder(da,ea)))}});z=[App.MODE_BROWSER];I||z.push("_blank");
+var K=new SaveDialog(this,c,mxUtils.bind(this,function(O,da,ea){L(O.value,da,O,ea);this.hideDialog(null,null,K.container)}),z,null,"application/pdf");this.showDialog(K.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));K.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,f,k,B,z,C){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=
+function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,f,k){f(null)};EditorUi.prototype.exportSvg=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(J){Editor.addRetryToError(J,mxUtils.bind(this,function(){this.exportSvg(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V)}));this.handleError(J)})))try{var ma=this.editor.graph.isSelectionEmpty();k=null!=k?k:ma;var la=f?null:this.editor.graph.background;la==mxConstants.NONE&&
+(la=null);null==la&&0==f&&(la=this.editor.graph.shapeBackgroundColor);var Y=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var fa=this.editor.graph.createSvgImageExport(z),Z=this.editor.graph.getSvg(la,c,I,L,null,k,null,fa,"blank"==O?"_blank":"self"==O?"_top":null,null,!ca,da,ea);this.editor.graph.addForeignObjectWarning=Y;B&&this.editor.graph.addSvgShadow(Z);var l=this.getBaseFilename()+(z?".drawio":"")+".svg";V=null!=
+V?V:mxUtils.bind(this,function(J){this.isLocalFileSave()||J.length<=MAX_REQUEST_SIZE?this.saveData(l,"svg",J,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(J)}))});var u=mxUtils.bind(this,function(J){this.spinner.stop();z&&J.setAttribute("content",this.getFileData(!0,null,null,null,k,K,null,null,null,null,null,c,I));V(Graph.xmlDeclaration+"\n"+(z?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+
mxUtils.getXml(J))});this.editor.graph.mathEnabled&&this.editor.addMathCss(Z);var H=mxUtils.bind(this,function(J){Editor.replaceSvgDataUris&&C&&EditorUi.embedSvgImages(J);Editor.foreignObjectImages&&ca?this.replaceAlternateContent(J,da,u):u(J)}),U=mxUtils.bind(this,function(J){C&&!this.isOffline()&&this.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(J,H,this.thumbImageCache)):H(J)});ca?this.embedFonts(Z,U):(this.editor.addFontCss(Z),U(Z))}catch(J){this.handleError(J)}};
-EditorUi.prototype.replaceAlternateContent=function(c,f,k){function A(ea,ca,W,ma,la){var Y=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");Y.setAttribute("x",ca);Y.setAttribute("y",W+.5);Y.setAttribute("width",ma.width);Y.setAttribute("height",ma.height);null==Y.setAttributeNS?Y.setAttribute("xlink:href",la):Y.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",la);ea.replaceChild(Y,ea.lastChild);L()}function z(){if(I<da.length)da[I++](z)}var C="";f=c.getElementsByTagName("style");
-for(var I=0;I<f.length;I++)C+=f[I].innerHTML;f=c.getElementsByTagName("switch");counter=f.length;var L=mxUtils.bind(this,function(){counter--;0==counter&&k(c)}),K={},O={},da=[];for(I=0;I<f.length;I++)mxUtils.bind(this,function(ea){var ca=ea.getElementsByTagName("div");if(0<ca.length)try{var W=ca[0].cloneNode(!0),ma=parseInt(W.style.marginLeft),la=parseInt(W.style.paddingTop),Y=W.getElementsByTagName("div")[1],fa=ca=!1,Z=W.style.alignItems,l=W.style.justifyContent;if(null!=W.style.writingMode){var u=
-W.style.writingMode;fa="vertical-"==u.substring(0,9);ca="-rl"==u.substring(u.length-3)}var H=!fa&&"1px"==W.style.width||fa&&"1px"==W.style.height;if(!fa&&"1px"==W.style.height||fa&&"1px"==W.style.width)W.style.alignItems=fa&&ca?"unsafe flex-end":"unsafe flex-start";H&&(W.style.justifyContent="unsafe flex-start");W.style.paddingTop="";W.style.marginLeft="";var U=W.outerHTML,J=K[U];null==J&&(W.style.position="absolute",W.style.visibility="hidden",document.body.appendChild(W),u=1,u="1px"==W.style.width?
-Y.offsetWidth:parseInt(W.style.width),H=1,H="1px"==W.style.height?Y.offsetHeight:parseInt(W.style.height),document.body.removeChild(W),J=new mxRectangle(ma,la,u,H),K[U]=J);"1px"==W.style.height&&("unsafe center"==Z?la-=J.height/2:"unsafe flex-end"==Z&&(la-=J.height));if("1px"==W.style.width)if(!fa&&"unsafe center"==l||fa&&"unsafe center"==Z)ma-=J.width/2;else if(!fa&&"unsafe flex-end"==l||fa&&(!ca&&"unsafe flex-end"==Z||ca&&"unsafe flex-start"==Z))ma-=J.width;J=new mxRectangle(ma,la,J.width,J.height+
-parseInt(Y.style.fontSize)/4);da.push(mxUtils.bind(this,function(V){var aa=O[U];null==aa?Graph.htmlToPng(U,J.width,J.height,mxUtils.bind(this,function(ba){A(ea,ma,la,J,ba);O[U]=ba;V()}),C):(A(ea,ma,la,J,aa),V())}))}catch(V){L()}else L()})(f[I]);0==counter&&k(c);I=0;z()};EditorUi.prototype.addRadiobox=function(c,f,k,A,z,C,I){return this.addCheckbox(c,k,A,z,C,I,!0,f)};EditorUi.prototype.addCheckbox=function(c,f,k,A,z,C,I,L){C=null!=C?C:!0;var K=document.createElement("input");K.style.marginRight="8px";
-K.style.marginTop="16px";K.setAttribute("type",I?"radio":"checkbox");I="geCheckbox-"+Editor.guid();K.id=I;null!=L&&K.setAttribute("name",L);k&&(K.setAttribute("checked","checked"),K.defaultChecked=!0);A&&K.setAttribute("disabled","disabled");C&&(c.appendChild(K),k=document.createElement("label"),mxUtils.write(k,f),k.setAttribute("for",I),c.appendChild(k),z||mxUtils.br(c));return K};EditorUi.prototype.addEditButton=function(c,f){var k=this.addCheckbox(c,mxResources.get("edit")+":",!0,null,!0);k.style.marginLeft=
-"24px";var A=this.getCurrentFile(),z="";null!=A&&A.getMode()!=App.MODE_DEVICE&&A.getMode()!=App.MODE_BROWSER&&(z=window.location.href);var C=document.createElement("select");C.style.maxWidth="200px";C.style.width="auto";C.style.marginLeft="8px";C.style.marginRight="10px";C.className="geBtn";A=document.createElement("option");A.setAttribute("value","blank");mxUtils.write(A,mxResources.get("makeCopy"));C.appendChild(A);var I=document.createElement("option");I.setAttribute("value","custom");mxUtils.write(I,
+EditorUi.prototype.replaceAlternateContent=function(c,f,k){function B(ea,ca,V,ma,la){var Y=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");Y.setAttribute("x",ca);Y.setAttribute("y",V+.5);Y.setAttribute("width",ma.width);Y.setAttribute("height",ma.height);null==Y.setAttributeNS?Y.setAttribute("xlink:href",la):Y.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",la);ea.replaceChild(Y,ea.lastChild);L()}function z(){if(I<da.length)da[I++](z)}var C="";f=c.getElementsByTagName("style");
+for(var I=0;I<f.length;I++)C+=f[I].innerHTML;f=c.getElementsByTagName("switch");counter=f.length;var L=mxUtils.bind(this,function(){counter--;0==counter&&k(c)}),K={},O={},da=[];for(I=0;I<f.length;I++)mxUtils.bind(this,function(ea){var ca=ea.getElementsByTagName("div");if(0<ca.length)try{var V=ca[0].cloneNode(!0),ma=parseInt(V.style.marginLeft),la=parseInt(V.style.paddingTop),Y=V.getElementsByTagName("div")[1],fa=ca=!1,Z=V.style.alignItems,l=V.style.justifyContent;if(null!=V.style.writingMode){var u=
+V.style.writingMode;fa="vertical-"==u.substring(0,9);ca="-rl"==u.substring(u.length-3)}var H=!fa&&"1px"==V.style.width||fa&&"1px"==V.style.height;if(!fa&&"1px"==V.style.height||fa&&"1px"==V.style.width)V.style.alignItems=fa&&ca?"unsafe flex-end":"unsafe flex-start";H&&(V.style.justifyContent="unsafe flex-start");V.style.paddingTop="";V.style.marginLeft="";var U=V.outerHTML,J=K[U];null==J&&(V.style.position="absolute",V.style.visibility="hidden",document.body.appendChild(V),u=1,u="1px"==V.style.width?
+Y.offsetWidth:parseInt(V.style.width),H=1,H="1px"==V.style.height?Y.offsetHeight:parseInt(V.style.height),document.body.removeChild(V),J=new mxRectangle(ma,la,u,H),K[U]=J);"1px"==V.style.height&&("unsafe center"==Z?la-=J.height/2:"unsafe flex-end"==Z&&(la-=J.height));if("1px"==V.style.width)if(!fa&&"unsafe center"==l||fa&&"unsafe center"==Z)ma-=J.width/2;else if(!fa&&"unsafe flex-end"==l||fa&&(!ca&&"unsafe flex-end"==Z||ca&&"unsafe flex-start"==Z))ma-=J.width;J=new mxRectangle(ma,la,J.width,J.height+
+parseInt(Y.style.fontSize)/4);da.push(mxUtils.bind(this,function(W){var aa=O[U];null==aa?Graph.htmlToPng(U,J.width,J.height,mxUtils.bind(this,function(ba){B(ea,ma,la,J,ba);O[U]=ba;W()}),C):(B(ea,ma,la,J,aa),W())}))}catch(W){L()}else L()})(f[I]);0==counter&&k(c);I=0;z()};EditorUi.prototype.addRadiobox=function(c,f,k,B,z,C,I){return this.addCheckbox(c,k,B,z,C,I,!0,f)};EditorUi.prototype.addCheckbox=function(c,f,k,B,z,C,I,L){C=null!=C?C:!0;var K=document.createElement("input");K.style.marginRight="8px";
+K.style.marginTop="16px";K.setAttribute("type",I?"radio":"checkbox");I="geCheckbox-"+Editor.guid();K.id=I;null!=L&&K.setAttribute("name",L);k&&(K.setAttribute("checked","checked"),K.defaultChecked=!0);B&&K.setAttribute("disabled","disabled");C&&(c.appendChild(K),k=document.createElement("label"),mxUtils.write(k,f),k.setAttribute("for",I),c.appendChild(k),z||mxUtils.br(c));return K};EditorUi.prototype.addEditButton=function(c,f){var k=this.addCheckbox(c,mxResources.get("edit")+":",!0,null,!0);k.style.marginLeft=
+"24px";var B=this.getCurrentFile(),z="";null!=B&&B.getMode()!=App.MODE_DEVICE&&B.getMode()!=App.MODE_BROWSER&&(z=window.location.href);var C=document.createElement("select");C.style.maxWidth="200px";C.style.width="auto";C.style.marginLeft="8px";C.style.marginRight="10px";C.className="geBtn";B=document.createElement("option");B.setAttribute("value","blank");mxUtils.write(B,mxResources.get("makeCopy"));C.appendChild(B);var I=document.createElement("option");I.setAttribute("value","custom");mxUtils.write(I,
mxResources.get("custom")+"...");C.appendChild(I);c.appendChild(C);mxEvent.addListener(C,"change",mxUtils.bind(this,function(){if("custom"==C.value){var L=new FilenameDialog(this,z,mxResources.get("ok"),function(K){null!=K?(z=K,I.setAttribute("title",K)):(C.value="blank",I.removeAttribute("title"))},mxResources.get("url"),null,null,null,null,function(){C.value="blank"});this.showDialog(L.container,300,80,!0,!1);L.init()}}));mxEvent.addListener(k,"change",mxUtils.bind(this,function(){k.checked&&(null==
f||f.checked)?C.removeAttribute("disabled"):C.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return k.checked?"blank"===C.value?"_blank":z:null},getEditInput:function(){return k},getEditSelect:function(){return C}}};EditorUi.prototype.addLinkSection=function(c,f){function k(){var L=document.createElement("div");L.style.width="100%";L.style.height="100%";L.style.boxSizing="border-box";null!=C&&C!=mxConstants.NONE?(L.style.border="1px solid black",L.style.backgroundColor=
-C):(L.style.backgroundPosition="center center",L.style.backgroundRepeat="no-repeat",L.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");I.innerText="";I.appendChild(L)}mxUtils.write(c,mxResources.get("links")+":");var A=document.createElement("select");A.style.width="100px";A.style.padding="0px";A.style.marginLeft="8px";A.style.marginRight="10px";A.className="geBtn";var z=document.createElement("option");z.setAttribute("value","auto");mxUtils.write(z,mxResources.get("automatic"));A.appendChild(z);
-z=document.createElement("option");z.setAttribute("value","blank");mxUtils.write(z,mxResources.get("openInNewWindow"));A.appendChild(z);z=document.createElement("option");z.setAttribute("value","self");mxUtils.write(z,mxResources.get("openInThisWindow"));A.appendChild(z);f&&(f=document.createElement("option"),f.setAttribute("value","frame"),mxUtils.write(f,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),A.appendChild(f));c.appendChild(A);mxUtils.write(c,mxResources.get("borderColor")+
-":");var C="#0000ff",I=null;I=mxUtils.button("",mxUtils.bind(this,function(L){this.pickColor(C||"none",function(K){C=K;k()});mxEvent.consume(L)}));k();I.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";I.style.marginLeft="4px";I.style.height="22px";I.style.width="22px";I.style.position="relative";I.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";I.className="geColorBtn";c.appendChild(I);mxUtils.br(c);return{getColor:function(){return C},getTarget:function(){return A.value},
-focus:function(){A.focus()}}};EditorUi.prototype.createUrlParameters=function(c,f,k,A,z,C){C=null!=C?C:[];k&&(C.push("lightbox=1"),"auto"!=c&&C.push("target="+c),null!=f&&f!=mxConstants.NONE&&C.push("highlight="+("#"==f.charAt(0)?f.substring(1):f)),null!=A&&0<A.length&&C.push("edit="+encodeURIComponent(A)),z&&C.push("layers=1"),this.editor.graph.foldingEnabled&&C.push("nav=1"));return C};EditorUi.prototype.createLink=function(c,f,k,A,z,C,I,L,K,O,da){var ea=this.getCurrentFile();K=this.createUrlParameters(c,
-f,A,z,C,K);c=!0;null!=I?k="#U"+encodeURIComponent(I):L||null==ea||""==ea.getHash()?k="#R"+encodeURIComponent(k?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(k="#"+ea.getHash(),c=!1);c&&null!=ea&&null!=ea.getTitle()&&ea.getTitle()!=this.defaultFilename&&K.push("title="+encodeURIComponent(ea.getTitle()));O&&1<k.length&&(K.push("open="+k.substring(1)),k="");da&&null!=this.currentPage&&K.push("page-id="+this.currentPage.getId());
-return(A&&(null!=I||null!=ea&&ea.getMode()!=App.MODE_GITHUB&&ea.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<K.length?"?"+K.join("&"):"")+k};EditorUi.prototype.createHtml=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca){this.getBasenames();var W={};""!=z&&z!=mxConstants.NONE&&(W.highlight=z);"auto"!==A&&(W.target=A);O||(W.lightbox=!1);W.nav=this.editor.graph.foldingEnabled;
-k=parseInt(k);isNaN(k)||100==k||(W.zoom=k/100);k=[];I&&(k.push("pages"),W.resize=!0,null!=this.pages&&null!=this.currentPage&&(W.page=mxUtils.indexOf(this.pages,this.currentPage)));f&&(k.push("zoom"),W.resize=!0);L&&k.push("layers");K&&k.push("tags");null!=ca&&(W["dark-mode"]=ca);0<k.length&&(O&&k.push("lightbox"),W.toolbar=k.join(" "));null!=da&&0<da.length&&(W.edit=da);null!=c?W.url=c:W.xml=this.getFileData(!0,null,null,null,null,!I);f='<div class="mxgraph" style="'+(C?"max-width:100%;":"")+(""!=
-k?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(W))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";ea(f,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=
-function(c,f,k,A){var z=document.createElement("div");z.style.whiteSpace="nowrap";var C=document.createElement("h3");mxUtils.write(C,mxResources.get("html"));C.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";z.appendChild(C);var I=document.createElement("div");I.style.cssText="border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var L=document.createElement("input");L.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";L.setAttribute("value",
+C):(L.style.backgroundPosition="center center",L.style.backgroundRepeat="no-repeat",L.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");I.innerText="";I.appendChild(L)}mxUtils.write(c,mxResources.get("links")+":");var B=document.createElement("select");B.style.width="100px";B.style.padding="0px";B.style.marginLeft="8px";B.style.marginRight="10px";B.className="geBtn";var z=document.createElement("option");z.setAttribute("value","auto");mxUtils.write(z,mxResources.get("automatic"));B.appendChild(z);
+z=document.createElement("option");z.setAttribute("value","blank");mxUtils.write(z,mxResources.get("openInNewWindow"));B.appendChild(z);z=document.createElement("option");z.setAttribute("value","self");mxUtils.write(z,mxResources.get("openInThisWindow"));B.appendChild(z);f&&(f=document.createElement("option"),f.setAttribute("value","frame"),mxUtils.write(f,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),B.appendChild(f));c.appendChild(B);mxUtils.write(c,mxResources.get("borderColor")+
+":");var C="#0000ff",I=null;I=mxUtils.button("",mxUtils.bind(this,function(L){this.pickColor(C||"none",function(K){C=K;k()});mxEvent.consume(L)}));k();I.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";I.style.marginLeft="4px";I.style.height="22px";I.style.width="22px";I.style.position="relative";I.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";I.className="geColorBtn";c.appendChild(I);mxUtils.br(c);return{getColor:function(){return C},getTarget:function(){return B.value},
+focus:function(){B.focus()}}};EditorUi.prototype.createUrlParameters=function(c,f,k,B,z,C){C=null!=C?C:[];k&&(C.push("lightbox=1"),"auto"!=c&&C.push("target="+c),null!=f&&f!=mxConstants.NONE&&C.push("highlight="+("#"==f.charAt(0)?f.substring(1):f)),null!=B&&0<B.length&&C.push("edit="+encodeURIComponent(B)),z&&C.push("layers=1"),this.editor.graph.foldingEnabled&&C.push("nav=1"));return C};EditorUi.prototype.createLink=function(c,f,k,B,z,C,I,L,K,O,da){var ea=this.getCurrentFile();K=this.createUrlParameters(c,
+f,B,z,C,K);c=!0;null!=I?k="#U"+encodeURIComponent(I):L||null==ea||""==ea.getHash()?k="#R"+encodeURIComponent(k?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(k="#"+ea.getHash(),c=!1);c&&null!=ea&&null!=ea.getTitle()&&ea.getTitle()!=this.defaultFilename&&K.push("title="+encodeURIComponent(ea.getTitle()));O&&1<k.length&&(K.push("open="+k.substring(1)),k="");da&&null!=this.currentPage&&K.push("page-id="+this.currentPage.getId());
+return(B&&(null!=I||null!=ea&&ea.getMode()!=App.MODE_GITHUB&&ea.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<K.length?"?"+K.join("&"):"")+k};EditorUi.prototype.createHtml=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca){this.getBasenames();var V={};""!=z&&z!=mxConstants.NONE&&(V.highlight=z);"auto"!==B&&(V.target=B);O||(V.lightbox=!1);V.nav=this.editor.graph.foldingEnabled;
+k=parseInt(k);isNaN(k)||100==k||(V.zoom=k/100);k=[];I&&(k.push("pages"),V.resize=!0,null!=this.pages&&null!=this.currentPage&&(V.page=mxUtils.indexOf(this.pages,this.currentPage)));f&&(k.push("zoom"),V.resize=!0);L&&k.push("layers");K&&k.push("tags");null!=ca&&(V["dark-mode"]=ca);0<k.length&&(O&&k.push("lightbox"),V.toolbar=k.join(" "));null!=da&&0<da.length&&(V.edit=da);null!=c?V.url=c:V.xml=this.getFileData(!0,null,null,null,null,!I);f='<div class="mxgraph" style="'+(C?"max-width:100%;":"")+(""!=
+k?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(V))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";ea(f,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=
+function(c,f,k,B){var z=document.createElement("div");z.style.whiteSpace="nowrap";var C=document.createElement("h3");mxUtils.write(C,mxResources.get("html"));C.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";z.appendChild(C);var I=document.createElement("div");I.style.cssText="border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var L=document.createElement("input");L.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";L.setAttribute("value",
"url");L.setAttribute("type","radio");L.setAttribute("name","type-embedhtmldialog");C=L.cloneNode(!0);C.setAttribute("value","copy");I.appendChild(C);var K=document.createElement("span");mxUtils.write(K,mxResources.get("includeCopyOfMyDiagram"));I.appendChild(K);mxUtils.br(I);I.appendChild(L);K=document.createElement("span");mxUtils.write(K,mxResources.get("publicDiagramUrl"));I.appendChild(K);var O=this.getCurrentFile();null==k&&null!=O&&O.constructor==window.DriveFile&&(K=document.createElement("a"),
K.style.paddingLeft="12px",K.style.color="gray",K.style.cursor="pointer",mxUtils.write(K,mxResources.get("share")),I.appendChild(K),mxEvent.addListener(K,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(O.getId(),O)})));C.setAttribute("checked","checked");null==k&&L.setAttribute("disabled","disabled");z.appendChild(I);I=380;var da=this.addLinkSection(z),ea=document.createElement("select");ea.style.maxWidth="260px";ea.style.marginLeft="8px";ea.style.marginTop="16px";
K=document.createElement("option");K.setAttribute("value","light");mxUtils.write(K,mxResources.get("light"));ea.appendChild(K);K=document.createElement("option");K.setAttribute("value","dark");mxUtils.write(K,mxResources.get("dark"));ea.appendChild(K);K=document.createElement("option");K.setAttribute("value","auto");mxUtils.write(K,mxResources.get("automatic"));K.setAttribute("selected","selected");ea.appendChild(K);K.setAttribute("selected","selected");mxUtils.write(z,mxResources.get("appearance")+
-":");z.appendChild(ea);mxUtils.br(z);I+=26;var ca=this.addCheckbox(z,mxResources.get("zoom"),!0,null,!0);mxUtils.write(z,":");var W=document.createElement("input");W.setAttribute("type","text");W.style.marginRight="16px";W.style.width="60px";W.style.marginLeft="4px";W.style.marginRight="12px";W.value="100%";z.appendChild(W);var ma=this.addCheckbox(z,mxResources.get("fit"),!0);K=null!=this.pages&&1<this.pages.length;var la=la=this.addCheckbox(z,mxResources.get("allPages"),K,!K),Y=this.addCheckbox(z,
+":");z.appendChild(ea);mxUtils.br(z);I+=26;var ca=this.addCheckbox(z,mxResources.get("zoom"),!0,null,!0);mxUtils.write(z,":");var V=document.createElement("input");V.setAttribute("type","text");V.style.marginRight="16px";V.style.width="60px";V.style.marginLeft="4px";V.style.marginRight="12px";V.value="100%";z.appendChild(V);var ma=this.addCheckbox(z,mxResources.get("fit"),!0);K=null!=this.pages&&1<this.pages.length;var la=la=this.addCheckbox(z,mxResources.get("allPages"),K,!K),Y=this.addCheckbox(z,
mxResources.get("layers"),!0),fa=this.addCheckbox(z,mxResources.get("tags"),!0),Z=this.addCheckbox(z,mxResources.get("lightbox"),!0),l=null;if(EditorUi.enableHtmlEditOption){l=this.addEditButton(z,Z);var u=l.getEditInput();u.style.marginBottom="16px";I+=50;mxEvent.addListener(Z,"change",function(){Z.checked?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled");u.checked&&Z.checked?l.getEditSelect().removeAttribute("disabled"):l.getEditSelect().setAttribute("disabled","disabled")})}c=
-new CustomDialog(this,z,mxUtils.bind(this,function(){A(L.checked?k:null,ca.checked,W.value,da.getTarget(),da.getColor(),ma.checked,la.checked,Y.checked,fa.checked,Z.checked,null!=l?l.getLink():null,null!=ea?ea.value:null)}),null,c,f);this.showDialog(c.container,340,I,!0,!0);C.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,f,k,A,z,C,I,L,K){var O=document.createElement("div");O.style.whiteSpace="nowrap";var da=document.createElement("h3");mxUtils.write(da,c||mxResources.get("publish"));
+new CustomDialog(this,z,mxUtils.bind(this,function(){B(L.checked?k:null,ca.checked,V.value,da.getTarget(),da.getColor(),ma.checked,la.checked,Y.checked,fa.checked,Z.checked,null!=l?l.getLink():null,null!=ea?ea.value:null)}),null,c,f);this.showDialog(c.container,340,I,!0,!0);C.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,f,k,B,z,C,I,L,K){var O=document.createElement("div");O.style.whiteSpace="nowrap";var da=document.createElement("h3");mxUtils.write(da,c||mxResources.get("publish"));
da.style.width="100%";da.style.textAlign="center";da.style.marginTop="2px";da.style.marginBottom="20px";O.appendChild(da);var ea=document.createElement("select");c=30;ea.className="geBtn";ea.style.marginBottom="8px";ea.style.marginLeft="0px";ea.style.width="100%";ea.style.boxSizing="border-box";if(null==L||""==L.getHash())z=null!=z?z:"https://www.drawio.com/doc/faq/publish-diagram-as-link",da=document.createElement("option"),mxUtils.write(da,mxResources.get("makeCopy")),da.setAttribute("value","copy"),
ea.appendChild(da);da=document.createElement("option");mxUtils.write(da,mxResources.get("authorizationRequired"));da.setAttribute("value","auth");ea.appendChild(da);null!=L&&""!=L.getHash()||da.setAttribute("disabled","disabled");L=document.createElement("option");L.setAttribute("value","public");ea.appendChild(L);null!=I?(mxUtils.write(L,mxResources.get("publicDiagramUrl")),L.setAttribute("title",I),ea.value="public"):(mxUtils.write(L,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+
-")"),L.setAttribute("disabled","disabled"));O.appendChild(ea);mxUtils.br(O);ea.focus();var ca=null,W=null;if(null!=f||null!=k)c+=30,mxUtils.write(O,mxResources.get("width")+":"),ca=document.createElement("input"),ca.setAttribute("type","text"),ca.style.marginRight="16px",ca.style.width="50px",ca.style.marginLeft="6px",ca.style.marginRight="16px",ca.style.marginBottom="10px",ca.value="100%",O.appendChild(ca),mxUtils.write(O,mxResources.get("height")+":"),W=document.createElement("input"),W.setAttribute("type",
-"text"),W.style.width="50px",W.style.marginLeft="6px",W.style.marginBottom="10px",W.value=k+"px",O.appendChild(W),mxUtils.br(O);var ma=this.addLinkSection(O,A),la=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(c+=30,f=null!=this.currentPage?this.currentPage.getName():"",16<f.length&&(f=f.substring(0,16)+"..."),la=this.addCheckbox(O,mxResources.get("selectedPage")+": "+f));var Y=this.addCheckbox(O,mxResources.get("lightbox"),!0,null,null,!A),fa=this.addEditButton(O,
-Y),Z=fa.getEditInput();A&&(Z.style.marginLeft=Y.style.marginLeft,Y.style.display="none",c-=20);var l=this.addCheckbox(O,mxResources.get("layers"),!0);l.style.marginLeft=Z.style.marginLeft;l.style.marginTop="8px";var u=this.addCheckbox(O,mxResources.get("tags"),!0);u.style.marginLeft=Z.style.marginLeft;u.style.marginBottom="16px";u.style.marginTop="16px";mxEvent.addListener(Y,"change",function(){Y.checked?(l.removeAttribute("disabled"),Z.removeAttribute("disabled"),u.removeAttribute("disabled")):(l.setAttribute("disabled",
-"disabled"),Z.setAttribute("disabled","disabled"),u.setAttribute("disabled","disabled"));Z.checked&&Y.checked?fa.getEditSelect().removeAttribute("disabled"):fa.getEditSelect().setAttribute("disabled","disabled")});A=new CustomDialog(this,O,mxUtils.bind(this,function(){K(ma.getTarget(),ma.getColor(),null==la?!1:la.checked,Y.checked,fa.getLink(),l.checked,null!=ca?ca.value:null,null!=W?W.value:null,u.checked,ea.value)}),null,mxResources.get("create"),z,C);this.showDialog(A.container,340,296+c,!0,!0);
-null!=ca?(ca.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?ca.select():document.execCommand("selectAll",!1,null)):null==ea.parentNode;ma.focus()};EditorUi.prototype.showRemoteExportDialog=function(c,f,k,A,z){var C=document.createElement("div");C.style.whiteSpace="nowrap";var I=document.createElement("h3");mxUtils.write(I,mxResources.get("image"));I.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(z?"10":"4")+"px";C.appendChild(I);if(z){mxUtils.write(C,
+")"),L.setAttribute("disabled","disabled"));O.appendChild(ea);mxUtils.br(O);ea.focus();var ca=null,V=null;if(null!=f||null!=k)c+=30,mxUtils.write(O,mxResources.get("width")+":"),ca=document.createElement("input"),ca.setAttribute("type","text"),ca.style.marginRight="16px",ca.style.width="50px",ca.style.marginLeft="6px",ca.style.marginRight="16px",ca.style.marginBottom="10px",ca.value="100%",O.appendChild(ca),mxUtils.write(O,mxResources.get("height")+":"),V=document.createElement("input"),V.setAttribute("type",
+"text"),V.style.width="50px",V.style.marginLeft="6px",V.style.marginBottom="10px",V.value=k+"px",O.appendChild(V),mxUtils.br(O);var ma=this.addLinkSection(O,B),la=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(c+=30,f=null!=this.currentPage?this.currentPage.getName():"",16<f.length&&(f=f.substring(0,16)+"..."),la=this.addCheckbox(O,mxResources.get("selectedPage")+": "+f));var Y=this.addCheckbox(O,mxResources.get("lightbox"),!0,null,null,!B),fa=this.addEditButton(O,
+Y),Z=fa.getEditInput();B&&(Z.style.marginLeft=Y.style.marginLeft,Y.style.display="none",c-=20);var l=this.addCheckbox(O,mxResources.get("layers"),!0);l.style.marginLeft=Z.style.marginLeft;l.style.marginTop="8px";var u=this.addCheckbox(O,mxResources.get("tags"),!0);u.style.marginLeft=Z.style.marginLeft;u.style.marginBottom="16px";u.style.marginTop="16px";mxEvent.addListener(Y,"change",function(){Y.checked?(l.removeAttribute("disabled"),Z.removeAttribute("disabled"),u.removeAttribute("disabled")):(l.setAttribute("disabled",
+"disabled"),Z.setAttribute("disabled","disabled"),u.setAttribute("disabled","disabled"));Z.checked&&Y.checked?fa.getEditSelect().removeAttribute("disabled"):fa.getEditSelect().setAttribute("disabled","disabled")});B=new CustomDialog(this,O,mxUtils.bind(this,function(){K(ma.getTarget(),ma.getColor(),null==la?!1:la.checked,Y.checked,fa.getLink(),l.checked,null!=ca?ca.value:null,null!=V?V.value:null,u.checked,ea.value)}),null,mxResources.get("create"),z,C);this.showDialog(B.container,340,296+c,!0,!0);
+null!=ca?(ca.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?ca.select():document.execCommand("selectAll",!1,null)):null==ea.parentNode;ma.focus()};EditorUi.prototype.showRemoteExportDialog=function(c,f,k,B,z){var C=document.createElement("div");C.style.whiteSpace="nowrap";var I=document.createElement("h3");mxUtils.write(I,mxResources.get("image"));I.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(z?"10":"4")+"px";C.appendChild(I);if(z){mxUtils.write(C,
mxResources.get("zoom")+":");var L=document.createElement("input");L.setAttribute("type","text");L.style.marginRight="16px";L.style.width="60px";L.style.marginLeft="4px";L.style.marginRight="12px";L.value=this.lastExportZoom||"100%";C.appendChild(L);mxUtils.write(C,mxResources.get("borderWidth")+":");var K=document.createElement("input");K.setAttribute("type","text");K.style.marginRight="16px";K.style.width="60px";K.style.marginLeft="4px";K.value=this.lastExportBorder||"0";C.appendChild(K);mxUtils.br(C)}var O=
-this.addCheckbox(C,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),da=A?null:this.addCheckbox(C,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);I=this.editor.graph;var ea=A?null:this.addCheckbox(C,mxResources.get("transparentBackground"),I.background==mxConstants.NONE||null==I.background);null!=ea&&(ea.style.marginBottom="16px");c=new CustomDialog(this,C,mxUtils.bind(this,function(){var ca=parseInt(L.value)/100||1,W=parseInt(K.value)||0;k(!O.checked,
-null!=da?da.checked:!1,null!=ea?ea.checked:!1,ca,W)}),null,c,f);this.showDialog(c.container,300,(z?25:0)+(A?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(c,f,k,A,z,C,I,L,K){I=null!=I?I:Editor.defaultIncludeDiagram;var O=document.createElement("div");O.style.whiteSpace="nowrap";var da=this.editor.graph,ea="jpeg"==L||"webp"==L?220:320,ca=document.createElement("h3");mxUtils.write(ca,c);ca.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";O.appendChild(ca);
-mxUtils.write(O,mxResources.get("zoom")+":");var W=document.createElement("input");W.setAttribute("type","text");W.style.marginRight="16px";W.style.width="60px";W.style.marginLeft="4px";W.style.marginRight="12px";W.value=this.lastExportZoom||"100%";O.appendChild(W);mxUtils.write(O,mxResources.get("borderWidth")+":");var ma=document.createElement("input");ma.setAttribute("type","text");ma.style.marginRight="16px";ma.style.width="60px";ma.style.marginLeft="4px";ma.value=this.lastExportBorder||"0";O.appendChild(ma);
+this.addCheckbox(C,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),da=B?null:this.addCheckbox(C,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);I=this.editor.graph;var ea=B?null:this.addCheckbox(C,mxResources.get("transparentBackground"),I.background==mxConstants.NONE||null==I.background);null!=ea&&(ea.style.marginBottom="16px");c=new CustomDialog(this,C,mxUtils.bind(this,function(){var ca=parseInt(L.value)/100||1,V=parseInt(K.value)||0;k(!O.checked,
+null!=da?da.checked:!1,null!=ea?ea.checked:!1,ca,V)}),null,c,f);this.showDialog(c.container,300,(z?25:0)+(B?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(c,f,k,B,z,C,I,L,K){I=null!=I?I:Editor.defaultIncludeDiagram;var O=document.createElement("div");O.style.whiteSpace="nowrap";var da=this.editor.graph,ea="jpeg"==L||"webp"==L?220:320,ca=document.createElement("h3");mxUtils.write(ca,c);ca.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";O.appendChild(ca);
+mxUtils.write(O,mxResources.get("zoom")+":");var V=document.createElement("input");V.setAttribute("type","text");V.style.marginRight="16px";V.style.width="60px";V.style.marginLeft="4px";V.style.marginRight="12px";V.value=this.lastExportZoom||"100%";O.appendChild(V);mxUtils.write(O,mxResources.get("borderWidth")+":");var ma=document.createElement("input");ma.setAttribute("type","text");ma.style.marginRight="16px";ma.style.width="60px";ma.style.marginLeft="4px";ma.value=this.lastExportBorder||"0";O.appendChild(ma);
mxUtils.br(O);var la=this.addCheckbox(O,mxResources.get("selectionOnly"),!1,da.isSelectionEmpty()),Y=document.createElement("input");Y.style.marginTop="16px";Y.style.marginRight="8px";Y.style.marginLeft="24px";Y.setAttribute("disabled","disabled");Y.setAttribute("type","checkbox");var fa=document.createElement("select");fa.style.marginTop="16px";fa.style.marginLeft="8px";c=["selectionOnly","diagram","page"];for(ca=0;ca<c.length;ca++)if(!da.isSelectionEmpty()||"selectionOnly"!=c[ca]){var Z=document.createElement("option");
mxUtils.write(Z,mxResources.get(c[ca]));Z.setAttribute("value",c[ca]);fa.appendChild(Z)}K?(mxUtils.write(O,mxResources.get("size")+":"),O.appendChild(fa),mxUtils.br(O),ea+=26,mxEvent.addListener(fa,"change",function(){"selectionOnly"==fa.value&&(la.checked=!0)})):C&&(O.appendChild(Y),mxUtils.write(O,mxResources.get("crop")),mxUtils.br(O),ea+=30,mxEvent.addListener(la,"change",function(){la.checked?Y.removeAttribute("disabled"):Y.setAttribute("disabled","disabled")}));da.isSelectionEmpty()?K&&(la.style.display=
"none",la.nextSibling.style.display="none",la.nextSibling.nextSibling.style.display="none",ea-=30):(fa.value="diagram",Y.setAttribute("checked","checked"),Y.defaultChecked=!0,mxEvent.addListener(la,"change",function(){fa.value=la.checked?"selectionOnly":"diagram"}));var l=this.addCheckbox(O,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=L&&"webp"!=L),u=document.createElement("select");u.style.maxWidth="260px";u.style.marginLeft="8px";u.style.marginTop="16px";C=document.createElement("option");
C.setAttribute("value","light");mxUtils.write(C,mxResources.get("light"));u.appendChild(C);K=document.createElement("option");K.setAttribute("value","dark");mxUtils.write(K,mxResources.get("dark"));u.appendChild(K);"svg"==L?(C=document.createElement("option"),C.setAttribute("value","auto"),mxUtils.write(C,mxResources.get("automatic")),C.setAttribute("selected","selected"),u.appendChild(C)):Editor.isDarkMode()?K.setAttribute("selected","selected"):C.setAttribute("selected","selected");mxUtils.write(O,
-mxResources.get("appearance")+":");O.appendChild(u);mxUtils.br(O);ea+=26;var H=this.addCheckbox(O,mxResources.get("shadow"),da.shadowVisible),U=null;if("png"==L||"jpeg"==L||"webp"==L)U=this.addCheckbox(O,mxResources.get("grid"),!1,this.isOffline()||!this.canvasSupported,!1,!0),ea+=30;var J=this.addCheckbox(O,mxResources.get("includeCopyOfMyDiagram")+":",I,null,null,"jpeg"!=L&&"webp"!=L),V=document.createElement("select");V.style.maxWidth="260px";V.style.marginLeft="28px";"png"==L||"svg"==L?(I=function(){J.checked?
-V.removeAttribute("disabled"):V.setAttribute("disabled","disabled")},da=document.createElement("option"),da.setAttribute("value","allPages"),mxUtils.write(da,mxResources.get("allPages")),V.appendChild(da),da=document.createElement("option"),da.setAttribute("value","currentPage"),mxUtils.write(da,mxResources.get("currentPage")),V.appendChild(da),J.style.marginBottom="12px",V.style.marginBottom="16px",O.appendChild(V),mxUtils.br(O),ea+=20,null!=this.lastEmbedInclude&&(V.value=this.lastEmbedInclude),
+mxResources.get("appearance")+":");O.appendChild(u);mxUtils.br(O);ea+=26;var H=this.addCheckbox(O,mxResources.get("shadow"),da.shadowVisible),U=null;if("png"==L||"jpeg"==L||"webp"==L)U=this.addCheckbox(O,mxResources.get("grid"),!1,this.isOffline()||!this.canvasSupported,!1,!0),ea+=30;var J=this.addCheckbox(O,mxResources.get("includeCopyOfMyDiagram")+":",I,null,null,"jpeg"!=L&&"webp"!=L),W=document.createElement("select");W.style.maxWidth="260px";W.style.marginLeft="28px";"png"==L||"svg"==L?(I=function(){J.checked?
+W.removeAttribute("disabled"):W.setAttribute("disabled","disabled")},da=document.createElement("option"),da.setAttribute("value","allPages"),mxUtils.write(da,mxResources.get("allPages")),W.appendChild(da),da=document.createElement("option"),da.setAttribute("value","currentPage"),mxUtils.write(da,mxResources.get("currentPage")),W.appendChild(da),J.style.marginBottom="12px",W.style.marginBottom="16px",O.appendChild(W),mxUtils.br(O),ea+=20,null!=this.lastEmbedInclude&&(W.value=this.lastEmbedInclude),
mxEvent.addListener(J,"change",I),I()):J.style.marginBottom="16px";var aa=document.createElement("input");aa.style.marginBottom="16px";aa.style.marginRight="8px";aa.setAttribute("type","checkbox");var ba=document.createElement("input");ba.style.marginBottom="16px";ba.style.marginRight="8px";ba.setAttribute("type","checkbox");f&&(aa.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,O.appendChild(aa),mxUtils.write(O,mxResources.get("embedImages")),mxUtils.br(O),ba.checked=null!=this.lastEmbedFonts?
this.lastEmbedImages:!0,O.appendChild(ba),mxUtils.write(O,mxResources.get("embedFonts")),mxUtils.br(O),ea+=50);var ja=document.createElement("select");ja.style.maxWidth="260px";ja.style.marginLeft="8px";C=document.createElement("option");C.setAttribute("value","auto");mxUtils.write(C,mxResources.get("automatic"));ja.appendChild(C);I=document.createElement("option");I.setAttribute("value","blank");mxUtils.write(I,mxResources.get("openInNewWindow"));ja.appendChild(I);I=document.createElement("option");
-I.setAttribute("value","self");mxUtils.write(I,mxResources.get("openInThisWindow"));ja.appendChild(I);I=document.createElement("div");mxUtils.write(I,mxResources.get("LinksLost"));I.style.margin="7px";I.style.display="none";"svg"==L&&(mxUtils.write(O,mxResources.get("links")+":"),O.appendChild(ja),O.appendChild(I),mxUtils.br(O),mxUtils.br(O),ea+=50);k=new CustomDialog(this,O,mxUtils.bind(this,function(){this.lastExportBorder=ma.value;this.lastExportZoom=W.value;this.lastEmbedImages=aa.checked;this.lastEmbedFonts=
-ba.checked;this.lastEmbedInclude=V.value;z(W.value,l.checked,!la.checked,H.checked,J.checked,aa.checked&&f,ma.value,Y.checked,("png"==L||"svg"==L)&&"currentPage"==V.value,ja.value,null!=U?U.checked:null,null!=u?u.value:null,fa.value,ba.checked)}),null,k,A);this.showDialog(k.container,340,ea,!0,!0,null,null,null,null,!0);W.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?W.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,f,k,A,z){var C=
-document.createElement("div");C.style.whiteSpace="nowrap";var I=this.editor.graph;if(null!=f){var L=document.createElement("h3");mxUtils.write(L,f);L.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";C.appendChild(L)}var K=this.addCheckbox(C,mxResources.get("fit"),!0),O=this.addCheckbox(C,mxResources.get("shadow"),I.shadowVisible&&A,!A),da=this.addCheckbox(C,k),ea=this.addCheckbox(C,mxResources.get("lightbox"),!0),ca=this.addEditButton(C,ea),W=ca.getEditInput(),ma=1<I.model.getChildCount(I.model.getRoot()),
-la=this.addCheckbox(C,mxResources.get("layers"),ma,!ma);la.style.marginLeft=W.style.marginLeft;la.style.marginBottom="12px";la.style.marginTop="8px";mxEvent.addListener(ea,"change",function(){ea.checked?(ma&&la.removeAttribute("disabled"),W.removeAttribute("disabled")):(la.setAttribute("disabled","disabled"),W.setAttribute("disabled","disabled"));W.checked&&ea.checked?ca.getEditSelect().removeAttribute("disabled"):ca.getEditSelect().setAttribute("disabled","disabled")});f=new CustomDialog(this,C,
-mxUtils.bind(this,function(){c(K.checked,O.checked,da.checked,ea.checked,ca.getLink(),la.checked)}),null,mxResources.get("embed"),z);this.showDialog(f.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,f,k,A,z,C,I,L){function K(W){var ma=" ",la="";A&&(ma=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
-EditorUi.lightboxHost+"/?client=1"+(null!=da?"&page="+da:"")+(z?"&edit=_blank":"")+(C?"&layers=1":"")+"');}})(this);\"",la+="cursor:pointer;");c&&(la+="max-width:100%;");var Y="";k&&(Y=' width="'+Math.round(O.width)+'" height="'+Math.round(O.height)+'"');I('<img src="'+W+'"'+Y+(""!=la?' style="'+la+'"':"")+ma+"/>")}var O=this.editor.graph.getGraphBounds(),da=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(W){var ma=A?this.getFileData(!0):
-null;W=this.createImageDataUri(W,ma,"png");K(W)}),null,null,null,mxUtils.bind(this,function(W){L({message:mxResources.get("unknownError")})}),null,!0,k?2:1,null,f,null,null,Editor.defaultBorder);else if(f=this.getFileData(!0),O.width*O.height<=MAX_AREA&&f.length<=MAX_REQUEST_SIZE){var ea="";k&&(ea="&w="+Math.round(2*O.width)+"&h="+Math.round(2*O.height));var ca=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(A?"1":"0")+ea+"&xml="+encodeURIComponent(f));ca.send(mxUtils.bind(this,function(){200<=
-ca.getStatus()&&299>=ca.getStatus()?K("data:image/png;base64,"+ca.getText()):L({message:mxResources.get("unknownError")})}))}else L({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,f,k,A,z,C,I){var L=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!k,"auto"),K=L.getElementsByTagName("a");if(null!=K)for(var O=0;O<K.length;O++){var da=K[O].getAttribute("href");null!=da&&"#"==da.charAt(0)&&"_blank"==K[O].getAttribute("target")&&K[O].removeAttribute("target")}A&&
-L.setAttribute("content",this.getFileData(!0));f&&this.editor.graph.addSvgShadow(L);if(k){var ea=" ",ca="";A&&(ea="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(z?"&edit=_blank":"")+(C?"&layers=1":
-"")+"');}})(this);\"",ca+="cursor:pointer;");c&&(ca+="max-width:100%;");this.editor.convertImages(L,mxUtils.bind(this,function(W){I('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(W))+'"'+(""!=ca?' style="'+ca+'"':"")+ea+"/>")}))}else ca="",A&&(f=this.getSelectedPageIndex(),L.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
+I.setAttribute("value","self");mxUtils.write(I,mxResources.get("openInThisWindow"));ja.appendChild(I);I=document.createElement("div");mxUtils.write(I,mxResources.get("LinksLost"));I.style.margin="7px";I.style.display="none";"svg"==L&&(mxUtils.write(O,mxResources.get("links")+":"),O.appendChild(ja),O.appendChild(I),mxUtils.br(O),mxUtils.br(O),ea+=50);k=new CustomDialog(this,O,mxUtils.bind(this,function(){this.lastExportBorder=ma.value;this.lastExportZoom=V.value;this.lastEmbedImages=aa.checked;this.lastEmbedFonts=
+ba.checked;this.lastEmbedInclude=W.value;z(V.value,l.checked,!la.checked,H.checked,J.checked,aa.checked&&f,ma.value,Y.checked,("png"==L||"svg"==L)&&"currentPage"==W.value,ja.value,null!=U?U.checked:null,null!=u?u.value:null,fa.value,ba.checked)}),null,k,B);this.showDialog(k.container,340,ea,!0,!0,null,null,null,null,!0);V.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?V.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,f,k,B,z){var C=
+document.createElement("div");C.style.whiteSpace="nowrap";var I=this.editor.graph;if(null!=f){var L=document.createElement("h3");mxUtils.write(L,f);L.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";C.appendChild(L)}var K=this.addCheckbox(C,mxResources.get("fit"),!0),O=this.addCheckbox(C,mxResources.get("shadow"),I.shadowVisible&&B,!B),da=this.addCheckbox(C,k),ea=this.addCheckbox(C,mxResources.get("lightbox"),!0),ca=this.addEditButton(C,ea),V=ca.getEditInput(),ma=1<I.model.getChildCount(I.model.getRoot()),
+la=this.addCheckbox(C,mxResources.get("layers"),ma,!ma);la.style.marginLeft=V.style.marginLeft;la.style.marginBottom="12px";la.style.marginTop="8px";mxEvent.addListener(ea,"change",function(){ea.checked?(ma&&la.removeAttribute("disabled"),V.removeAttribute("disabled")):(la.setAttribute("disabled","disabled"),V.setAttribute("disabled","disabled"));V.checked&&ea.checked?ca.getEditSelect().removeAttribute("disabled"):ca.getEditSelect().setAttribute("disabled","disabled")});f=new CustomDialog(this,C,
+mxUtils.bind(this,function(){c(K.checked,O.checked,da.checked,ea.checked,ca.getLink(),la.checked)}),null,mxResources.get("embed"),z);this.showDialog(f.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,f,k,B,z,C,I,L){function K(V){var ma=" ",la="";B&&(ma=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
+EditorUi.lightboxHost+"/?client=1"+(null!=da?"&page="+da:"")+(z?"&edit=_blank":"")+(C?"&layers=1":"")+"');}})(this);\"",la+="cursor:pointer;");c&&(la+="max-width:100%;");var Y="";k&&(Y=' width="'+Math.round(O.width)+'" height="'+Math.round(O.height)+'"');I('<img src="'+V+'"'+Y+(""!=la?' style="'+la+'"':"")+ma+"/>")}var O=this.editor.graph.getGraphBounds(),da=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(V){var ma=B?this.getFileData(!0):
+null;V=this.createImageDataUri(V,ma,"png");K(V)}),null,null,null,mxUtils.bind(this,function(V){L({message:mxResources.get("unknownError")})}),null,!0,k?2:1,null,f,null,null,Editor.defaultBorder);else if(f=this.getFileData(!0),O.width*O.height<=MAX_AREA&&f.length<=MAX_REQUEST_SIZE){var ea="";k&&(ea="&w="+Math.round(2*O.width)+"&h="+Math.round(2*O.height));var ca=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(B?"1":"0")+ea+"&xml="+encodeURIComponent(f));ca.send(mxUtils.bind(this,function(){200<=
+ca.getStatus()&&299>=ca.getStatus()?K("data:image/png;base64,"+ca.getText()):L({message:mxResources.get("unknownError")})}))}else L({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,f,k,B,z,C,I){var L=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!k,"auto"),K=L.getElementsByTagName("a");if(null!=K)for(var O=0;O<K.length;O++){var da=K[O].getAttribute("href");null!=da&&"#"==da.charAt(0)&&"_blank"==K[O].getAttribute("target")&&K[O].removeAttribute("target")}B&&
+L.setAttribute("content",this.getFileData(!0));f&&this.editor.graph.addSvgShadow(L);if(k){var ea=" ",ca="";B&&(ea="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(z?"&edit=_blank":"")+(C?"&layers=1":
+"")+"');}})(this);\"",ca+="cursor:pointer;");c&&(ca+="max-width:100%;");this.editor.convertImages(L,mxUtils.bind(this,function(V){I('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(V))+'"'+(""!=ca?' style="'+ca+'"':"")+ea+"/>")}))}else ca="",B&&(f=this.getSelectedPageIndex(),L.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
EditorUi.lightboxHost+"/?client=1"+(null!=f?"&page="+f:"")+(z?"&edit=_blank":"")+(C?"&layers=1":"")+"');}}})(this);"),ca+="cursor:pointer;"),c&&(c=parseInt(L.getAttribute("width")),z=parseInt(L.getAttribute("height")),L.setAttribute("viewBox","-0.5 -0.5 "+c+" "+z),ca+="max-width:100%;max-height:"+z+"px;",L.removeAttribute("height")),""!=ca&&L.setAttribute("style",ca),this.editor.addFontCss(L),this.editor.graph.mathEnabled&&this.editor.addMathCss(L),I(mxUtils.getXml(L))};EditorUi.prototype.timeSince=
function(c){c=Math.floor((new Date-c)/1E3);var f=Math.floor(c/31536E3);if(1<f)return f+" "+mxResources.get("years");f=Math.floor(c/2592E3);if(1<f)return f+" "+mxResources.get("months");f=Math.floor(c/86400);if(1<f)return f+" "+mxResources.get("days");f=Math.floor(c/3600);if(1<f)return f+" "+mxResources.get("hours");f=Math.floor(c/60);return 1<f?f+" "+mxResources.get("minutes"):1==f?f+" "+mxResources.get("minute"):null};EditorUi.prototype.decodeNodeIntoGraph=function(c,f){if(null!=c){var k=null;if("diagram"==
-c.nodeName)k=c;else if("mxfile"==c.nodeName){var A=c.getElementsByTagName("diagram");if(0<A.length){k=A[0];var z=f.getGlobalVariable;f.getGlobalVariable=function(C){return"page"==C?k.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==C?1:z.apply(this,arguments)}}}null!=k&&(c=Editor.parseDiagramNode(k))}A=this.editor.graph;try{this.editor.graph=f,this.editor.setGraphXml(c)}catch(C){}finally{this.editor.graph=A}return c};EditorUi.prototype.getSvgFileProperties=function(c){return this.getPngFileProperties(c)};
-EditorUi.prototype.getPngFileProperties=function(c){var f=1,k=0;if(null!=c){if(c.hasAttribute("scale")){var A=parseFloat(c.getAttribute("scale"));!isNaN(A)&&0<A&&(f=A)}c.hasAttribute("border")&&(A=parseInt(c.getAttribute("border")),!isNaN(A)&&0<A&&(k=A))}return{scale:f,border:k}};EditorUi.prototype.getEmbeddedPng=function(c,f,k,A,z){try{var C=this.editor.graph,I=null;if(null!=k&&0<k.length)C=this.createTemporaryGraph(C.getStylesheet()),document.body.appendChild(C.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(k).documentElement,
+c.nodeName)k=c;else if("mxfile"==c.nodeName){var B=c.getElementsByTagName("diagram");if(0<B.length){k=B[0];var z=f.getGlobalVariable;f.getGlobalVariable=function(C){return"page"==C?k.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==C?1:z.apply(this,arguments)}}}null!=k&&(c=Editor.parseDiagramNode(k))}B=this.editor.graph;try{this.editor.graph=f,this.editor.setGraphXml(c)}catch(C){}finally{this.editor.graph=B}return c};EditorUi.prototype.getSvgFileProperties=function(c){return this.getPngFileProperties(c)};
+EditorUi.prototype.getPngFileProperties=function(c){var f=1,k=0;if(null!=c){if(c.hasAttribute("scale")){var B=parseFloat(c.getAttribute("scale"));!isNaN(B)&&0<B&&(f=B)}c.hasAttribute("border")&&(B=parseInt(c.getAttribute("border")),!isNaN(B)&&0<B&&(k=B))}return{scale:f,border:k}};EditorUi.prototype.getEmbeddedPng=function(c,f,k,B,z){try{var C=this.editor.graph,I=null;if(null!=k&&0<k.length)C=this.createTemporaryGraph(C.getStylesheet()),document.body.appendChild(C.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(k).documentElement,
!0),C),I=k;else if(null!=this.pages&&this.currentPage!=this.pages[0]){C=this.createTemporaryGraph(C.getStylesheet());var L=C.getGlobalVariable;C.setBackgroundImage=this.editor.graph.setBackgroundImage;var K=this.pages[0];this.currentPage==K?C.setBackgroundImage(this.editor.graph.backgroundImage):null!=K.viewState&&null!=K.viewState&&C.setBackgroundImage(K.viewState.backgroundImage);C.getGlobalVariable=function(O){return"page"==O?K.getName():"pagenumber"==O?1:L.apply(this,arguments)};document.body.appendChild(C.container);
-C.model.setRoot(K.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(O){try{null==I&&(I=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var da=O.toDataURL("image/png");da=Editor.writeGraphModelToPng(da,"tEXt","mxfile",encodeURIComponent(I));c(da.substring(da.lastIndexOf(",")+1));C!=this.editor.graph&&C.container.parentNode.removeChild(C.container)}catch(ea){null!=f&&f(ea)}}),null,null,null,mxUtils.bind(this,function(O){null!=f&&f(O)}),null,null,A,null,C.shadowVisible,null,
-C,z,null,null,null,"diagram",null)}catch(O){null!=f&&f(O)}};EditorUi.prototype.getEmbeddedSvg=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca){L=null!=L?L:!0;da=null!=da?da:0;I=null!=K?K:f.background;I==mxConstants.NONE&&(I=null);null==I&&"none"==f.getAdaptiveColors()&&(I="#ffffff");K=this.editor.graph.createSvgImageExport(null!=c);C=f.getSvg(I,O,da,null,null,C,null,K,null,f.shadowVisible||ea,null,ca,"diagram");(f.shadowVisible||ea)&&f.addSvgShadow(C,null,null,0==da);null!=c&&C.setAttribute("content",c);null!=
-k&&C.setAttribute("resource",k);var W=mxUtils.bind(this,function(ma){ma=(A?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(ma);null!=z&&z(ma);return ma});f.mathEnabled&&this.editor.addMathCss(C);if(null!=z)this.embedFonts(C,mxUtils.bind(this,function(ma){L?this.editor.convertImages(ma,mxUtils.bind(this,function(la){W(la)})):W(ma)}));else return W(C)};EditorUi.prototype.embedFonts=function(c,f){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=
-this.editor.resolvedFontCss&&this.editor.addFontCss(c,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(c,k),f(c)}catch(A){f(c)}}))}catch(k){f(c)}}))};EditorUi.prototype.exportImage=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca){K=null!=K?K:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(ma){Editor.addRetryToError(ma,mxUtils.bind(this,function(){this.exportImage(c,f,k,A,z,C,I,L,K,O,da,ea,
-ca)}));this.handleError(ma)}))){var W=this.editor.graph.isSelectionEmpty();k=null!=k?k:W;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(ma){this.spinner.stop();try{this.saveCanvas(ma,z?this.getFileData(!0,null,null,null,k,L,null,null,null,null,null,c,C):null,K,null==this.pages||0==this.pages.length,da)}catch(la){this.handleError(la)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(ma){this.spinner.stop();this.handleError(ma)}),
-null,k,c||1,f,A,null,null,C,I,O,ea,ca)}catch(ma){this.spinner.stop(),this.handleError(ma)}}};EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var f=0;f<this.pages.length;f++)c[this.pages[f].getId()]=this.pages[f].getId();return c};EditorUi.prototype.importXml=function(c,f,k,A,z,C,I){f=null!=f?f:0;k=null!=k?k:0;var L=[];try{var K=this.editor.graph;if(null!=c&&0<
+C.model.setRoot(K.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(O){try{null==I&&(I=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var da=O.toDataURL("image/png");da=Editor.writeGraphModelToPng(da,"tEXt","mxfile",encodeURIComponent(I));c(da.substring(da.lastIndexOf(",")+1));C!=this.editor.graph&&C.container.parentNode.removeChild(C.container)}catch(ea){null!=f&&f(ea)}}),null,null,null,mxUtils.bind(this,function(O){null!=f&&f(O)}),null,null,B,null,C.shadowVisible,null,
+C,z,null,null,null,"diagram",null)}catch(O){null!=f&&f(O)}};EditorUi.prototype.getEmbeddedSvg=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca){L=null!=L?L:!0;da=null!=da?da:0;I=null!=K?K:f.background;I==mxConstants.NONE&&(I=null);null==I&&"none"==f.getAdaptiveColors()&&(I="#ffffff");K=this.editor.graph.createSvgImageExport(null!=c);C=f.getSvg(I,O,da,null,null,C,null,K,null,f.shadowVisible||ea,null,ca,"diagram");(f.shadowVisible||ea)&&f.addSvgShadow(C,null,null,0==da);null!=c&&C.setAttribute("content",c);null!=
+k&&C.setAttribute("resource",k);var V=mxUtils.bind(this,function(ma){ma=(B?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(ma);null!=z&&z(ma);return ma});f.mathEnabled&&this.editor.addMathCss(C);if(null!=z)this.embedFonts(C,mxUtils.bind(this,function(ma){L?this.editor.convertImages(ma,mxUtils.bind(this,function(la){V(la)})):V(ma)}));else return V(C)};EditorUi.prototype.embedFonts=function(c,f){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=
+this.editor.resolvedFontCss&&this.editor.addFontCss(c,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(c,k),f(c)}catch(B){f(c)}}))}catch(k){f(c)}}))};EditorUi.prototype.exportImage=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca){K=null!=K?K:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(ma){Editor.addRetryToError(ma,mxUtils.bind(this,function(){this.exportImage(c,f,k,B,z,C,I,L,K,O,da,ea,
+ca)}));this.handleError(ma)}))){var V=this.editor.graph.isSelectionEmpty();k=null!=k?k:V;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(ma){this.spinner.stop();try{this.saveCanvas(ma,z?this.getFileData(!0,null,null,null,k,L,null,null,null,null,null,c,C):null,K,null==this.pages||0==this.pages.length,da)}catch(la){this.handleError(la)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(ma){this.spinner.stop();this.handleError(ma)}),
+null,k,c||1,f,B,null,null,C,I,O,ea,ca)}catch(ma){this.spinner.stop(),this.handleError(ma)}}};EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var f=0;f<this.pages.length;f++)c[this.pages[f].getId()]=this.pages[f].getId();return c};EditorUi.prototype.importXml=function(c,f,k,B,z,C,I){f=null!=f?f:0;k=null!=k?k:0;var L=[];try{var K=this.editor.graph;if(null!=c&&0<
c.length){K.model.beginUpdate();try{var O=mxUtils.parseXml(c);c={};var da=this.editor.extractGraphModel(O.documentElement,null!=this.pages);if(null!=da&&"mxfile"==da.nodeName&&null!=this.pages){var ea=da.getElementsByTagName("diagram");if(1==ea.length&&!C){if(da=Editor.parseDiagramNode(ea[0]),null!=this.currentPage&&(c[ea[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var ca=ea[0].getAttribute("name");null!=ca&&""!=ca&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,
-ca))}}else if(0<ea.length){C=[];var W=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(c[ea[0].getAttribute("id")]=this.pages[0].getId(),ca=ea[0].getAttribute("name"),null!=ca&&""!=ca&&this.editor.graph.model.execute(new RenamePage(this,this.pages[0],ca)),da=Editor.parseDiagramNode(ea[0]),A=!1,W=1);for(;W<ea.length;W++){var ma=ea[W].getAttribute("id");ea[W].removeAttribute("id");var la=this.updatePageRoot(new DiagramPage(ea[W]));c[ma]=ea[W].getAttribute("id");var Y=this.pages.length;
-null==la.getName()&&la.setName(mxResources.get("pageWithNumber",[Y+1]));K.model.execute(new ChangePage(this,la,la,Y,!0));C.push(la)}this.updatePageLinks(c,C)}}if(null!=da&&"mxGraphModel"===da.nodeName){L=K.importGraphModel(da,f,k,A);if(null!=L)for(this.addLocalPagesToMapping(c),W=0;W<L.length;W++)this.updatePageLinksForCell(c,L[W]);var fa=K.parseBackgroundImage(da.getAttribute("backgroundImage"));if(null!=fa&&null!=fa.originalSrc){this.updateBackgroundPageLink(c,fa);var Z=new ChangePageSetup(this,
+ca))}}else if(0<ea.length){C=[];var V=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(c[ea[0].getAttribute("id")]=this.pages[0].getId(),ca=ea[0].getAttribute("name"),null!=ca&&""!=ca&&this.editor.graph.model.execute(new RenamePage(this,this.pages[0],ca)),da=Editor.parseDiagramNode(ea[0]),B=!1,V=1);for(;V<ea.length;V++){var ma=ea[V].getAttribute("id");ea[V].removeAttribute("id");var la=this.updatePageRoot(new DiagramPage(ea[V]));c[ma]=ea[V].getAttribute("id");var Y=this.pages.length;
+null==la.getName()&&la.setName(mxResources.get("pageWithNumber",[Y+1]));K.model.execute(new ChangePage(this,la,la,Y,!0));C.push(la)}this.updatePageLinks(c,C)}}if(null!=da&&"mxGraphModel"===da.nodeName){L=K.importGraphModel(da,f,k,B);if(null!=L)for(this.addLocalPagesToMapping(c),V=0;V<L.length;V++)this.updatePageLinksForCell(c,L[V]);var fa=K.parseBackgroundImage(da.getAttribute("backgroundImage"));if(null!=fa&&null!=fa.originalSrc){this.updateBackgroundPageLink(c,fa);var Z=new ChangePageSetup(this,
null,fa);Z.ignoreColor=!0;K.model.execute(Z)}}I&&K.pasteCellStyles(K.includeDescendants(L),K.defaultVertexStyle,K.defaultEdgeStyle)}finally{K.model.endUpdate()}}}catch(l){if(z)throw l;this.handleError(l)}return L};EditorUi.prototype.updatePageLinks=function(c,f){for(var k=0;k<f.length;k++)this.updatePageLinksForCell(c,f[k].root),null!=f[k].viewState&&this.updateBackgroundPageLink(c,f[k].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(c,f){try{if(null!=f&&Graph.isPageLink(f.originalSrc)){var k=
-c[f.originalSrc.substring(f.originalSrc.indexOf(",")+1)];null!=k&&(f.originalSrc="data:page/id,"+k)}}catch(A){}};EditorUi.prototype.updatePageLinksForCell=function(c,f){var k=document.createElement("div"),A=this.editor.graph,z=A.getLinkForCell(f);null!=z&&A.setLinkForCell(f,this.updatePageLink(c,z));if(A.isHtmlLabel(f)){k.innerHTML=Graph.sanitizeHtml(A.getLabel(f));for(var C=k.getElementsByTagName("a"),I=!1,L=0;L<C.length;L++)z=C[L].getAttribute("href"),null!=z&&(C[L].setAttribute("href",this.updatePageLink(c,
-z)),I=!0);I&&A.labelChanged(f,k.innerHTML)}for(L=0;L<A.model.getChildCount(f);L++)this.updatePageLinksForCell(c,A.model.getChildAt(f,L))};EditorUi.prototype.updatePageLink=function(c,f){if(Graph.isPageLink(f)){var k=c[f.substring(f.indexOf(",")+1)];f=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==f.substring(0,17))try{var A=JSON.parse(f.substring(17));if(null!=A.actions){for(var z=0;z<A.actions.length;z++){var C=A.actions[z];if(null!=C.open&&Graph.isPageLink(C.open)){var I=C.open.substring(C.open.indexOf(",")+
-1);k=c[I];null!=k?C.open="data:page/id,"+k:null==this.getPageById(I)&&delete C.open}}f="data:action/json,"+JSON.stringify(A)}}catch(L){}return f};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,f,k,A,z){var C=mxUtils.bind(this,function(I){this.loadingExtensions=!1;null!=k?k(I):this.handleError(I)});this.createTimeout(null,mxUtils.bind(this,function(I){A=null!=A?A:c.name;var L=mxUtils.bind(this,
-function(O){I.clear()&&C(O)}),K=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var O=this.isRemoteVisioFormat(A);try{var da=A.lastIndexOf(".");if(0<=da&&da<A.length)A.substring(da+1).toUpperCase();else{var ea=A.lastIndexOf("/");0<=ea&&ea<A.length&&(A=A.substring(ea+1))}}catch(W){}if(O)if(null==VSD_CONVERT_URL||this.isOffline())L({message:"draw.io"!=this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{O=new FormData;
-O.append("file1",c,A);var ca=new XMLHttpRequest;ca.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(A)?"?stencil=1":""));ca.responseType="blob";this.addRemoteServiceSecurityCheck(ca);null!=z&&ca.setRequestHeader("x-convert-custom",z);ca.onreadystatechange=mxUtils.bind(this,function(){if(4==ca.readyState&&I.clear())if(200<=ca.status&&299>=ca.status)try{var W=ca.response;if("text/xml"==W.type){var ma=new FileReader;ma.onload=mxUtils.bind(this,function(la){try{f(la.target.result)}catch(Y){L({message:mxResources.get("errorLoadingFile")})}});
-ma.readAsText(W)}else this.doImportVisio(W,f,L,A)}catch(la){L(la)}else try{""==ca.responseType||"text"==ca.responseType?L({message:ca.responseText}):(ma=new FileReader,ma.onload=function(){try{L({message:JSON.parse(ma.result).Message})}catch(la){L(la)}},ma.readAsText(ca.response))}catch(la){L({})}});ca.send(O)}else if(I.clear())try{this.doImportVisio(c,f,L,A)}catch(W){L(W)}}else L({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?
-K():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",K,null,null,null,L))}),C)};EditorUi.prototype.importGraphML=function(c,f,k){var A=mxUtils.bind(this,function(z){this.loadingExtensions=!1;null!=k?k(z):this.handleError(z)});this.createTimeout(null,mxUtils.bind(this,function(z){var C=mxUtils.bind(this,function(L){z.clear()&&A(L)}),I=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(z.clear())if(this.doImportGraphML)try{this.doImportGraphML(c,f,A)}catch(L){C(L)}else C({message:mxResources.get("serviceUnavailableOrBlocked")})});
-this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?I():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",I,null,null,null,C))}),A)};EditorUi.prototype.exportVisio=function(c){if(this.spinner.spin(document.body,mxResources.get("loading"))){var f=mxUtils.bind(this,function(k){this.loadingExtensions=!1;this.handleError(k)});this.createTimeout(null,mxUtils.bind(this,function(k){var A=mxUtils.bind(this,function(C){k.clear()&&f(C)}),z=mxUtils.bind(this,function(){this.loadingExtensions=
-!1;if(k.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),(new VsdxExport(this)).exportCurrentDiagrams(c)||A({message:mxResources.get("unknownError")})}catch(C){A(C)}else A({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(z,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,A))}),f)}};EditorUi.prototype.convertLucidChart=function(c,
-f,k){var A=mxUtils.bind(this,function(z){this.loadingExtensions=!1;null!=k?k(z):this.handleError(z)});this.createTimeout(null,mxUtils.bind(this,function(z){var C=mxUtils.bind(this,function(L){z.clear()&&A(L)}),I=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(z.clear())if("undefined"!==typeof window.LucidImporter)try{var L=JSON.parse(c);f(LucidImporter.importState(L));try{if(null!=window.console&&"1"==urlParams.test){var K=[(new Date).toISOString(),"convertLucidChart",L];null!=L.state&&
+c[f.originalSrc.substring(f.originalSrc.indexOf(",")+1)];null!=k&&(f.originalSrc="data:page/id,"+k)}}catch(B){}};EditorUi.prototype.updatePageLinksForCell=function(c,f){var k=document.createElement("div"),B=this.editor.graph,z=B.getLinkForCell(f);null!=z&&B.setLinkForCell(f,this.updatePageLink(c,z));if(B.isHtmlLabel(f)){k.innerHTML=Graph.sanitizeHtml(B.getLabel(f));for(var C=k.getElementsByTagName("a"),I=!1,L=0;L<C.length;L++)z=C[L].getAttribute("href"),null!=z&&(C[L].setAttribute("href",this.updatePageLink(c,
+z)),I=!0);I&&B.labelChanged(f,k.innerHTML)}for(L=0;L<B.model.getChildCount(f);L++)this.updatePageLinksForCell(c,B.model.getChildAt(f,L))};EditorUi.prototype.updatePageLink=function(c,f){if(Graph.isPageLink(f)){var k=c[f.substring(f.indexOf(",")+1)];f=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==f.substring(0,17))try{var B=JSON.parse(f.substring(17));if(null!=B.actions){for(var z=0;z<B.actions.length;z++){var C=B.actions[z];if(null!=C.open&&Graph.isPageLink(C.open)){var I=C.open.substring(C.open.indexOf(",")+
+1);k=c[I];null!=k?C.open="data:page/id,"+k:null==this.getPageById(I)&&delete C.open}}f="data:action/json,"+JSON.stringify(B)}}catch(L){}return f};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,f,k,B,z){var C=mxUtils.bind(this,function(I){this.loadingExtensions=!1;null!=k?k(I):this.handleError(I)});this.createTimeout(null,mxUtils.bind(this,function(I){B=null!=B?B:c.name;var L=mxUtils.bind(this,
+function(O){I.clear()&&C(O)}),K=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var O=this.isRemoteVisioFormat(B);try{var da=B.lastIndexOf(".");if(0<=da&&da<B.length)B.substring(da+1).toUpperCase();else{var ea=B.lastIndexOf("/");0<=ea&&ea<B.length&&(B=B.substring(ea+1))}}catch(V){}if(O)if(null==VSD_CONVERT_URL||this.isOffline())L({message:"draw.io"!=this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{O=new FormData;
+O.append("file1",c,B);var ca=new XMLHttpRequest;ca.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(B)?"?stencil=1":""));ca.responseType="blob";this.addRemoteServiceSecurityCheck(ca);null!=z&&ca.setRequestHeader("x-convert-custom",z);ca.onreadystatechange=mxUtils.bind(this,function(){if(4==ca.readyState&&I.clear())if(200<=ca.status&&299>=ca.status)try{var V=ca.response;if("text/xml"==V.type){var ma=new FileReader;ma.onload=mxUtils.bind(this,function(la){try{f(la.target.result)}catch(Y){L({message:mxResources.get("errorLoadingFile")})}});
+ma.readAsText(V)}else this.doImportVisio(V,f,L,B)}catch(la){L(la)}else try{""==ca.responseType||"text"==ca.responseType?L({message:ca.responseText}):(ma=new FileReader,ma.onload=function(){try{L({message:JSON.parse(ma.result).Message})}catch(la){L(la)}},ma.readAsText(ca.response))}catch(la){L({})}});ca.send(O)}else if(I.clear())try{this.doImportVisio(c,f,L,B)}catch(V){L(V)}}else L({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?
+K():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",K,null,null,null,L))}),C)};EditorUi.prototype.importGraphML=function(c,f,k){var B=mxUtils.bind(this,function(z){this.loadingExtensions=!1;null!=k?k(z):this.handleError(z)});this.createTimeout(null,mxUtils.bind(this,function(z){var C=mxUtils.bind(this,function(L){z.clear()&&B(L)}),I=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(z.clear())if(this.doImportGraphML)try{this.doImportGraphML(c,f,B)}catch(L){C(L)}else C({message:mxResources.get("serviceUnavailableOrBlocked")})});
+this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?I():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",I,null,null,null,C))}),B)};EditorUi.prototype.exportVisio=function(c){if(this.spinner.spin(document.body,mxResources.get("loading"))){var f=mxUtils.bind(this,function(k){this.loadingExtensions=!1;this.handleError(k)});this.createTimeout(null,mxUtils.bind(this,function(k){var B=mxUtils.bind(this,function(C){k.clear()&&f(C)}),z=mxUtils.bind(this,function(){this.loadingExtensions=
+!1;if(k.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),(new VsdxExport(this)).exportCurrentDiagrams(c)||B({message:mxResources.get("unknownError")})}catch(C){B(C)}else B({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(z,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,B))}),f)}};EditorUi.prototype.convertLucidChart=function(c,
+f,k){var B=mxUtils.bind(this,function(z){this.loadingExtensions=!1;null!=k?k(z):this.handleError(z)});this.createTimeout(null,mxUtils.bind(this,function(z){var C=mxUtils.bind(this,function(L){z.clear()&&B(L)}),I=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(z.clear())if("undefined"!==typeof window.LucidImporter)try{var L=JSON.parse(c);f(LucidImporter.importState(L));try{if(null!=window.console&&"1"==urlParams.test){var K=[(new Date).toISOString(),"convertLucidChart",L];null!=L.state&&
K.push(JSON.parse(L.state));if(null!=L.svgThumbs)for(var O=0;O<L.svgThumbs.length;O++)K.push(Editor.createSvgDataUri(L.svgThumbs[O]));null!=L.thumb&&K.push(L.thumb);console.log.apply(console,K)}}catch(da){}}catch(da){null!=window.console&&console.error(da),C(da)}else C({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(I,0):(this.loadingExtensions=!0,"1"==urlParams.dev?mxscript("js/diagramly/Extensions.js",
-function(){mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",I,null,null,null,C)},null,null,null,C)},null,null,null,C)},null,null,null,C)},null,null,null,C):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",I,null,null,null,C))}),A)};EditorUi.prototype.createMermaidXml=function(c,f,k,A,z,C){var I=new Graph(document.createElement("div"));
-k=I.insertVertex(null,null,null,0,0,A,z,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+k+";");I.setAttributeForCell(k,"mermaidData",JSON.stringify({data:c,config:f},null,2));null!=C&&I.setAttributeForCell(k,"templatePrompt",C);c=(new mxCodec).encode(I.getModel());return mxUtils.getXml(c)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(c,f,k){var A=0,z=mxUtils.bind(this,function(){this.createTimeout(1E4,mxUtils.bind(this,function(C){var I=new mxXmlRequest("https://www.draw.io/generate/v2",
-c,"POST"),L=mxUtils.bind(this,function(K){C.clear()&&k(K)});I.send(mxUtils.bind(this,function(K){if(C.isAlive())if(200<=K.getStatus()&&299>=K.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var da=mxUtils.trim(K.getText());this.generateMermaidImage(da,null,mxUtils.bind(this,function(ea,ca,W){this.tryAndHandle(mxUtils.bind(this,function(){C.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",c,"\nresult:",da),f(da,ea,ca,W))}),L)}),L,mxUtils.bind(this,function(ea){3>
-A++?C.clear()&&z():L(ea)}))}),L);else{var O={message:mxResources.get("error")+" "+K.getStatus()};try{O=JSON.parse(K.getText()),O=O.error}catch(da){}L(O)}}),L)}),k)});z()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=mxUtils.trim(c);"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var f=c.split("```");f=1<f.length?f:c.split("<pre>");f=1<f.length?f:c.split("~~~");f=1<f.length?f:c.split("%%");f=1<f.length?f:c.split("(Begins)");c=mxUtils.trim(1>=f.length?c:f[1]);f=c.split("\n");var k=1<f.length?
-f[1]:null;if(null!=k){var A=k.indexOf("-");0<A&&(k=k.substring(0,A))}if(0<f.length&&"mermaid"==mxUtils.trim(f[0])||null!=k&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k))f.shift(),c=mxUtils.trim(f.join("\n")),f=c.split("\n");k=f[0].split(" ")[0].replace(/:$/,"");A=k.indexOf("-");0<A&&(k=k.substring(0,A));try{"mindmap"==k&&2<f.length&&(c=extractMermaidMindmap(f))}catch(z){}0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k)&&(c=null);return c};EditorUi.prototype.generateMermaidImage=function(c,
-f,k,A,z){var C=mxUtils.bind(this,function(L){this.loadingMermaid=!1;null!=A?A(L):this.handleError(L)}),I=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;f=null!=f?f:mxUtils.clone(EditorUi.defaultMermaidConfig);f.securityLevel="strict";f.startOnLoad=!1;"undefined"!==typeof mxMermaidToDrawio&&f.flowchart&&0<=c.indexOf("$$")&&(f.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(f.theme="dark");var L=mxUtils.bind(this,function(K){try{if(mxClient.IS_IE||mxClient.IS_IE11)K=
-K.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var O=mxUtils.parseXml(K).getElementsByTagName("svg");if(0<O.length&&"error"!=O[0].getAttribute("aria-roledescription")){var da=parseFloat(O[0].getAttribute("width")),ea=parseFloat(O[0].getAttribute("height"));if(isNaN(da)||isNaN(ea))try{var ca=O[0].getAttribute("viewBox").split(/\s+/);da=parseFloat(ca[2]);ea=parseFloat(ca[3])}catch(W){da=da||100,ea=ea||100}k(this.convertDataUri(Editor.createSvgDataUri(K)),
-da,ea)}else null!=z?z():A({message:mxResources.get("invalidInput")})}catch(W){A(W)}});mermaid.mermaidAPI.initialize(f);mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),c).then(function(K){L(K.svg)}).catch(function(K){null!=z?z(K):A(K)})}catch(K){A(K)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(I,0):(this.loadingMermaid=!0,"1"==urlParams.dev?("1"==urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(L){this.importXml(L,
-null,null,null,null,null,!0)})),mxscript("js/mermaid/mermaid.min.js",I,null,null,null,C)):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",I,null,null,null,C))};EditorUi.prototype.generatePlantUmlImage=function(c,f,k,A){function z(L,K,O){c1=L>>2;c2=(L&3)<<4|K>>4;c3=(K&15)<<2|O>>6;c4=O&63;r="";r+=C(c1&63);r+=C(c2&63);r+=C(c3&63);return r+=C(c4&63)}function C(L){if(10>L)return String.fromCharCode(48+L);L-=10;if(26>L)return String.fromCharCode(65+L);L-=26;if(26>L)return String.fromCharCode(97+
+function(){mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",I,null,null,null,C)},null,null,null,C)},null,null,null,C)},null,null,null,C)},null,null,null,C):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",I,null,null,null,C))}),B)};EditorUi.prototype.createMermaidXml=function(c,f,k,B,z,C){var I=new Graph(document.createElement("div"));
+k=I.insertVertex(null,null,null,0,0,B,z,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+k+";");I.setAttributeForCell(k,"mermaidData",JSON.stringify({data:c,config:f},null,2));null!=C&&I.setAttributeForCell(k,"templatePrompt",C);c=(new mxCodec).encode(I.getModel());return mxUtils.getXml(c)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(c,f,k){var B=0,z=mxUtils.bind(this,function(){this.createTimeout(1E4,mxUtils.bind(this,function(C){var I=new mxXmlRequest("https://www.draw.io/generate/v2",
+c,"POST"),L=mxUtils.bind(this,function(K){C.clear()&&k(K)});I.send(mxUtils.bind(this,function(K){if(C.isAlive())if(200<=K.getStatus()&&299>=K.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var da=mxUtils.trim(K.getText());this.generateMermaidImage(da,null,mxUtils.bind(this,function(ea,ca,V){this.tryAndHandle(mxUtils.bind(this,function(){C.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",c,"\nresult:",da),f(da,ea,ca,V))}),L)}),L,mxUtils.bind(this,function(ea){3>
+B++?C.clear()&&z():L(ea)}))}),L);else{var O={message:mxResources.get("error")+" "+K.getStatus()};try{O=JSON.parse(K.getText()),O=O.error}catch(da){}L(O)}}),L)}),k)});z()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=mxUtils.trim(c);"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var f=c.split("```");f=1<f.length?f:c.split("<pre>");f=1<f.length?f:c.split("~~~");f=1<f.length?f:c.split("%%");f=1<f.length?f:c.split("(Begins)");c=mxUtils.trim(1>=f.length?c:f[1]);f=c.split("\n");var k=1<f.length?
+f[1]:null;if(null!=k){var B=k.indexOf("-");0<B&&(k=k.substring(0,B))}if(0<f.length&&"mermaid"==mxUtils.trim(f[0])||null!=k&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k))f.shift(),c=mxUtils.trim(f.join("\n")),f=c.split("\n");k=f[0].split(" ")[0].replace(/:$/,"");B=k.indexOf("-");0<B&&(k=k.substring(0,B));try{"mindmap"==k&&2<f.length&&(c=extractMermaidMindmap(f))}catch(z){}0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k)&&(c=null);return c};EditorUi.prototype.generateMermaidImage=function(c,
+f,k,B,z){var C=mxUtils.bind(this,function(L){this.loadingMermaid=!1;null!=B?B(L):this.handleError(L)}),I=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;f=null!=f?f:mxUtils.clone(EditorUi.defaultMermaidConfig);f.securityLevel="strict";f.startOnLoad=!1;"undefined"!==typeof mxMermaidToDrawio&&f.flowchart&&0<=c.indexOf("$$")&&(f.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(f.theme="dark");var L=mxUtils.bind(this,function(K){try{if(mxClient.IS_IE||mxClient.IS_IE11)K=
+K.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var O=mxUtils.parseXml(K).getElementsByTagName("svg");if(0<O.length&&"error"!=O[0].getAttribute("aria-roledescription")){var da=parseFloat(O[0].getAttribute("width")),ea=parseFloat(O[0].getAttribute("height"));if(isNaN(da)||isNaN(ea))try{var ca=O[0].getAttribute("viewBox").split(/\s+/);da=parseFloat(ca[2]);ea=parseFloat(ca[3])}catch(V){da=da||100,ea=ea||100}k(this.convertDataUri(Editor.createSvgDataUri(K)),
+da,ea)}else null!=z?z():B({message:mxResources.get("invalidInput")})}catch(V){B(V)}});mermaid.mermaidAPI.initialize(f);mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),c).then(function(K){L(K.svg)}).catch(function(K){null!=z?z(K):B(K)})}catch(K){B(K)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(I,0):(this.loadingMermaid=!0,"1"==urlParams.dev?("1"==urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(L){this.importXml(L,
+null,null,null,null,null,!0)})),mxscript("js/mermaid/mermaid.min.js",I,null,null,null,C)):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",I,null,null,null,C))};EditorUi.prototype.generatePlantUmlImage=function(c,f,k,B){function z(L,K,O){c1=L>>2;c2=(L&3)<<4|K>>4;c3=(K&15)<<2|O>>6;c4=O&63;r="";r+=C(c1&63);r+=C(c2&63);r+=C(c3&63);return r+=C(c4&63)}function C(L){if(10>L)return String.fromCharCode(48+L);L-=10;if(26>L)return String.fromCharCode(65+L);L-=26;if(26>L)return String.fromCharCode(97+
L);L-=26;return 0==L?"-":1==L?"_":"?"}var I=new XMLHttpRequest;I.open("GET",("txt"==f?PLANT_URL+"/txt/":"png"==f?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(L){r="";for(i=0;i<L.length;i+=3)r=i+2==L.length?r+z(L.charCodeAt(i),L.charCodeAt(i+1),0):i+1==L.length?r+z(L.charCodeAt(i),0,0):r+z(L.charCodeAt(i),L.charCodeAt(i+1),L.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),!0);"txt"!=f&&(I.responseType="blob");I.onload=function(L){if(200<=this.status&&300>this.status)if("txt"==
-f)k(this.response);else{var K=new FileReader;K.readAsDataURL(this.response);K.onloadend=function(O){var da=new Image;da.onload=function(){try{var ea=da.width,ca=da.height;if(0==ea&&0==ca){var W=K.result,ma=W.indexOf(","),la=decodeURIComponent(escape(atob(W.substring(ma+1)))),Y=mxUtils.parseXml(la).getElementsByTagName("svg");0<Y.length&&(ea=parseFloat(Y[0].getAttribute("width")),ca=parseFloat(Y[0].getAttribute("height")))}k(K.result,ea,ca)}catch(fa){A(fa)}};da.src=K.result};K.onerror=function(O){A(O)}}else A(L)};
-I.onerror=function(L){A(L)};I.send()};EditorUi.prototype.insertAsPreText=function(c,f,k){var A=this.editor.graph,z=null;A.getModel().beginUpdate();try{z=A.insertVertex(null,null,"<pre>"+c+"</pre>",f,k,1,1,"text;html=1;align=left;verticalAlign=top;"),A.updateCellSize(z,!0)}finally{A.getModel().endUpdate()}return z};EditorUi.prototype.insertTextAt=function(c,f,k,A,z,C,I,L){C=null!=C?C:!0;I=null!=I?I:!0;if(null!=c)if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c))this.isOffline()?
+f)k(this.response);else{var K=new FileReader;K.readAsDataURL(this.response);K.onloadend=function(O){var da=new Image;da.onload=function(){try{var ea=da.width,ca=da.height;if(0==ea&&0==ca){var V=K.result,ma=V.indexOf(","),la=decodeURIComponent(escape(atob(V.substring(ma+1)))),Y=mxUtils.parseXml(la).getElementsByTagName("svg");0<Y.length&&(ea=parseFloat(Y[0].getAttribute("width")),ca=parseFloat(Y[0].getAttribute("height")))}k(K.result,ea,ca)}catch(fa){B(fa)}};da.src=K.result};K.onerror=function(O){B(O)}}else B(L)};
+I.onerror=function(L){B(L)};I.send()};EditorUi.prototype.insertAsPreText=function(c,f,k){var B=this.editor.graph,z=null;B.getModel().beginUpdate();try{z=B.insertVertex(null,null,"<pre>"+c+"</pre>",f,k,1,1,"text;html=1;align=left;verticalAlign=top;"),B.updateCellSize(z,!0)}finally{B.getModel().endUpdate()}return z};EditorUi.prototype.insertTextAt=function(c,f,k,B,z,C,I,L){C=null!=C?C:!0;I=null!=I?I:!0;if(null!=c)if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c))this.isOffline()?
this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(c.replace(/\s+/g," "),mxUtils.bind(this,function(ca){4==ca.readyState&&200<=ca.status&&299>=ca.status&&this.editor.graph.setSelectionCells(this.insertTextAt(ca.responseText,f,k,!0))}));else if("data:"==c.substring(0,5)||!this.isOffline()&&(z||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c))){var K=this.editor.graph;if("data:application/pdf;base64,"==c.substring(0,28)){var O=Editor.extractGraphModelFromPdf(c);if(null!=
O&&0<O.length)return this.importXml(O,f,k,C,!0,L)}if(Editor.isPngDataUrl(c)&&(O=Editor.extractGraphModelFromPng(c),null!=O&&0<O.length))return this.importXml(O,f,k,C,!0,L);if("data:image/svg+xml;"==c.substring(0,19))try{O=null;"data:image/svg+xml;base64,"==c.substring(0,26)?(O=c.substring(c.indexOf(",")+1),O=window.atob&&!mxClient.IS_SF?atob(O):Base64.decode(O,!0)):O=decodeURIComponent(c.substring(c.indexOf(",")+1));var da=this.importXml(O,f,k,C,!0,L);if(0<da.length)return da}catch(ca){}this.loadImage(c,
-mxUtils.bind(this,function(ca){if("data:"==c.substring(0,5))this.resizeImage(ca,c,mxUtils.bind(this,function(la,Y,fa){K.setSelectionCell(K.insertVertex(null,null,"",K.snap(f),K.snap(k),Y,fa,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(la)+";"))}),I,this.maxImageSize);else{var W=Math.min(1,Math.min(this.maxImageSize/ca.width,this.maxImageSize/ca.height)),ma=Math.round(ca.width*W);ca=Math.round(ca.height*
-W);K.setSelectionCell(K.insertVertex(null,null,"",K.snap(f),K.snap(k),ma,ca,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+c+";"))}}),mxUtils.bind(this,function(){var ca=null;K.getModel().beginUpdate();try{ca=K.insertVertex(K.getDefaultParent(),null,c,K.snap(f),K.snap(k),1,1,"text;"+(A?"html=1;":"")),K.updateCellSize(ca),K.fireEvent(new mxEventObject("textInserted","cells",[ca]))}finally{K.getModel().endUpdate()}K.setSelectionCell(ca)}))}else{c=
-Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,f,k,C,null,L);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,function(ca){this.editor.graph.setSelectionCells(this.importXml(ca,f,k,C,null,L))}),mxUtils.bind(this,function(ca){this.handleError(ca)}));else{K=this.editor.graph;z=null;K.getModel().beginUpdate();try{z=K.insertVertex(K.getDefaultParent(),null,"",K.snap(f),K.snap(k),1,1,"text;whiteSpace=wrap;"+(A?"html=1;":""));
-K.fireEvent(new mxEventObject("textInserted","cells",[z]));A&&(c=K.sanitizeHtml(c));c.length>this.maxTextBytes&&(c=c.substring(0,this.maxTextBytes)+"...");z.value=c;K.updateCellSize(z);if(0<this.maxTextWidth&&z.geometry.width>this.maxTextWidth){var ea=K.getPreferredSizeForCell(z,this.maxTextWidth);z.geometry.width=ea.width;z.geometry.height=ea.height}Graph.isLink(z.value)&&K.setLinkForCell(z,z.value);z.geometry.width+=K.gridSize;z.geometry.height+=K.gridSize}finally{K.getModel().endUpdate()}return[z]}}return[]};
+mxUtils.bind(this,function(ca){if("data:"==c.substring(0,5))this.resizeImage(ca,c,mxUtils.bind(this,function(la,Y,fa){K.setSelectionCell(K.insertVertex(null,null,"",K.snap(f),K.snap(k),Y,fa,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(la)+";"))}),I,this.maxImageSize);else{var V=Math.min(1,Math.min(this.maxImageSize/ca.width,this.maxImageSize/ca.height)),ma=Math.round(ca.width*V);ca=Math.round(ca.height*
+V);K.setSelectionCell(K.insertVertex(null,null,"",K.snap(f),K.snap(k),ma,ca,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+c+";"))}}),mxUtils.bind(this,function(){var ca=null;K.getModel().beginUpdate();try{ca=K.insertVertex(K.getDefaultParent(),null,c,K.snap(f),K.snap(k),1,1,"text;"+(B?"html=1;":"")),K.updateCellSize(ca),K.fireEvent(new mxEventObject("textInserted","cells",[ca]))}finally{K.getModel().endUpdate()}K.setSelectionCell(ca)}))}else{c=
+Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,f,k,C,null,L);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,function(ca){this.editor.graph.setSelectionCells(this.importXml(ca,f,k,C,null,L))}),mxUtils.bind(this,function(ca){this.handleError(ca)}));else{K=this.editor.graph;z=null;K.getModel().beginUpdate();try{z=K.insertVertex(K.getDefaultParent(),null,"",K.snap(f),K.snap(k),1,1,"text;whiteSpace=wrap;"+(B?"html=1;":""));
+K.fireEvent(new mxEventObject("textInserted","cells",[z]));B&&(c=K.sanitizeHtml(c));c.length>this.maxTextBytes&&(c=c.substring(0,this.maxTextBytes)+"...");z.value=c;K.updateCellSize(z);if(0<this.maxTextWidth&&z.geometry.width>this.maxTextWidth){var ea=K.getPreferredSizeForCell(z,this.maxTextWidth);z.geometry.width=ea.width;z.geometry.height=ea.height}Graph.isLink(z.value)&&K.setLinkForCell(z,z.value);z.geometry.width+=K.gridSize;z.geometry.height+=K.gridSize}finally{K.getModel().endUpdate()}return[z]}}return[]};
EditorUi.prototype.formatFileSize=function(c){var f=-1;do c/=1024,f++;while(1024<c);return Math.max(c,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[f]};EditorUi.prototype.convertDataUri=function(c){if("data:"==c.substring(0,5)){var f=c.indexOf(";");0<f&&(c=c.substring(0,f)+c.substring(c.indexOf(",",f+1)))}return c};EditorUi.prototype.isRemoteFileFormat=function(c,f){return/("contentType":\s*"application\/gliffy\+json")/.test(c)};EditorUi.prototype.isLucidChartData=function(c){return null!=
c&&('{"state":"{\\"Properties\\":'==c.substring(0,26)||'{"Properties":'==c.substring(0,14))};EditorUi.prototype.importLocalFile=function(c,f){if(c&&Graph.fileSupport){if(null==this.importFileInputElt){var k=document.createElement("input");k.setAttribute("type","file");mxEvent.addListener(k,"change",mxUtils.bind(this,function(){null!=k.files&&(this.importFiles(k.files,null,null,this.maxImageSize),k.type="",k.type="file",k.value="")}));k.style.display="none";document.body.appendChild(k);this.importFileInputElt=
-k}this.importFileInputElt.click()}else{window.openNew=!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(I,L){StorageFile.listFiles(this,"F",I,L)});window.openBrowserFile=mxUtils.bind(this,function(I,L,K){StorageFile.getFileContent(this,I,L,K)});window.deleteBrowserFile=mxUtils.bind(this,function(I,L,K){StorageFile.deleteFile(this,I,L,K)});if(!f){var A=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(I){this.hideDialog(I)}));
+k}this.importFileInputElt.click()}else{window.openNew=!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(I,L){StorageFile.listFiles(this,"F",I,L)});window.openBrowserFile=mxUtils.bind(this,function(I,L,K){StorageFile.getFileContent(this,I,L,K)});window.deleteBrowserFile=mxUtils.bind(this,function(I,L,K){StorageFile.deleteFile(this,I,L,K)});if(!f){var B=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(I){this.hideDialog(I)}));
window.openFile.setConsumer(mxUtils.bind(this,function(I,L){null!=L&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(L)?(I=new Blob([I],{type:"application/octet-stream"}),this.importVisio(I,mxUtils.bind(this,function(K){this.importXml(K,0,0,!0)}),null,L)):this.editor.graph.setSelectionCells(this.importXml(I,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!f){var z=this.dialog,C=z.close;
-this.dialog.close=mxUtils.bind(this,function(I){Editor.useLocalStorage=A;C.apply(z,arguments);I&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(c,f,k){var A=this,z=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(C){if(mxUtils.isEmptyObject(C.files))k();else{var I=0,L,K=!1;C.forEach(function(O,da){O=da.name.toLowerCase();"diagram/diagram.xml"==O?(K=!0,da.async("string").then(function(ea){0==
-ea.indexOf("<mxfile ")?f(ea):k()})):0==O.indexOf("versions/")&&(O=parseInt(O.substr(9)),O>I&&(I=O,L=da))});0<I?L.async("string").then(function(O){(new XMLHttpRequest).upload&&A.isRemoteFileFormat(O,c.name)?A.isOffline()?A.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,k):A.parseFileData(O,mxUtils.bind(this,function(da){4==da.readyState&&(200<=da.status&&299>=da.status?f(da.responseText):k())}),c.name):k()}):K||k()}},function(C){k(C)}):k()});"undefined"!==typeof JSZip||this.loadingExtensions||
-this.isOffline(!0)?z():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,k))};EditorUi.prototype.importFile=function(c,f,k,A,z,C,I,L,K,O,da,ea){O=null!=O?O:!0;var ca=!1,W=null,ma=mxUtils.bind(this,function(la){var Y=null;null!=la&&"<mxlibrary"==la.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,la,I)),this.showSidebar()):Y=this.importXml(la,k,A,O,null,null!=ea?mxEvent.isControlDown(ea):null);null!=L&&L(Y)});"image"==f.substring(0,5)?(K=!1,
-"image/png"==f.substring(0,9)&&(da=da?null:this.extractGraphModelFromPng(c),null!=da&&0<da.length&&(W=this.importXml(da,k,A,O,null,null!=ea?mxEvent.isControlDown(ea):null),K=!0)),K||(K=this.editor.graph,da=c.indexOf(";"),0<da&&(c=c.substring(0,da)+c.substring(c.indexOf(",",da+1))),O&&K.isGridEnabled()&&(k=K.snap(k),A=K.snap(A)),da="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==f.substring(0,9)&&(da+="editableCssRules=.*;"),
-W=[K.insertVertex(null,null,"",k,A,z,C,da+"image="+c+";")])):/(\.*<graphml )/.test(c)?(ca=!0,this.importGraphML(c,ma)):null!=K&&null!=I&&EditorUi.isVisioFilename(I)?(ca=!0,this.importVisio(K,ma)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,I)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(ca=!0,f=mxUtils.bind(this,function(la){4==la.readyState&&(200<=la.status&&299>=la.status?ma(la.responseText):null!=L&&(L(null),this.showError(mxResources.get("error"),
-413==la.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),null!=c?this.parseFileData(c,f,I):this.parseFile(K,f,I)):0==c.indexOf("PK")&&null!=K?(ca=!0,this.importZipFile(K,ma,mxUtils.bind(this,function(){W=this.insertTextAt(this.validateFileData(c),k,A,!0,null,O);L(W)}))):/(\.v(sd|dx))($|\?)/i.test(I)||/(\.vs(s|x))($|\?)/i.test(I)||(W=this.insertTextAt(this.validateFileData(c),k,A,!0,null,O,null,null!=ea?mxEvent.isControlDown(ea):null));ca||null==L||L(W);return W};EditorUi.prototype.importFiles=
-function(c,f,k,A,z,C,I,L,K,O,da,ea,ca){A=null!=A?A:this.maxImageSize;O=null!=O?O:this.maxImageBytes;var W=null!=f&&null!=k,ma=!0;f=null!=f?f:0;k=null!=k?k:0;var la=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var Y=da||this.resampleThreshold,fa=0;fa<c.length;fa++)if("image/svg"!==c[fa].type.substring(0,9)&&"image/"===c[fa].type.substring(0,6)&&c[fa].size>Y){la=!0;break}var Z=mxUtils.bind(this,function(){var l=this.editor.graph,u=l.gridSize;z=null!=z?z:mxUtils.bind(this,function(ba,ja,oa,qa,ra,ua,za,
-Ba,Ca){try{if(null!=ba&&"<mxlibrary"==ba.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,ba,za)),this.showSidebar(),null;this.isCompatibleString(ba)&&1==c.length&&null!=ca&&"drop"==ca.type&&this.isBlankFile()&&!this.canUndo()&&(W=!1,qa=oa=0);return this.importFile(ba,ja,oa,qa,ra,ua,za,Ba,Ca,W,ea,ca)}catch(La){return this.handleError(La),null}});C=null!=C?C:mxUtils.bind(this,function(ba){l.setSelectionCells(ba)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var H=
-c.length,U=H,J=[],V=mxUtils.bind(this,function(ba,ja){J[ba]=ja;if(0==--U){this.spinner.stop();if(null!=L)L(J);else{var oa=[];l.getModel().beginUpdate();try{for(ba=0;ba<J.length;ba++){var qa=J[ba]();null!=qa&&(oa=oa.concat(qa))}}finally{l.getModel().endUpdate()}}C(oa)}}),aa=0;aa<H;aa++)mxUtils.bind(this,function(ba){var ja=c[ba];if(null!=ja){var oa=new FileReader;oa.onload=mxUtils.bind(this,function(qa){if(null==I||I(ja))try{if("image/"==ja.type.substring(0,6))if("image/svg"==ja.type.substring(0,9)){var ra=
-Graph.clipSvgDataUri(qa.target.result),ua=ra.indexOf(","),za=decodeURIComponent(escape(atob(ra.substring(ua+1)))),Ba=mxUtils.parseXml(za),Ca=Ba.getElementsByTagName("svg");if(0<Ca.length){var La=Ca[0],sa=ea?null:La.getAttribute("content");null!=sa&&"<"!=sa.charAt(0)&&"%"!=sa.charAt(0)&&(sa=unescape(window.atob?atob(sa):Base64.decode(sa,!0)));null!=sa&&"%"==sa.charAt(0)&&(sa=decodeURIComponent(sa));null==sa||"<mxfile "!==sa.substring(0,8)&&"<mxGraphModel "!==sa.substring(0,14)?V(ba,mxUtils.bind(this,
+this.dialog.close=mxUtils.bind(this,function(I){Editor.useLocalStorage=B;C.apply(z,arguments);I&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(c,f,k){var B=this,z=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(C){if(mxUtils.isEmptyObject(C.files))k();else{var I=0,L,K=!1;C.forEach(function(O,da){O=da.name.toLowerCase();"diagram/diagram.xml"==O?(K=!0,da.async("string").then(function(ea){0==
+ea.indexOf("<mxfile ")?f(ea):k()})):0==O.indexOf("versions/")&&(O=parseInt(O.substr(9)),O>I&&(I=O,L=da))});0<I?L.async("string").then(function(O){(new XMLHttpRequest).upload&&B.isRemoteFileFormat(O,c.name)?B.isOffline()?B.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,k):B.parseFileData(O,mxUtils.bind(this,function(da){4==da.readyState&&(200<=da.status&&299>=da.status?f(da.responseText):k())}),c.name):k()}):K||k()}},function(C){k(C)}):k()});"undefined"!==typeof JSZip||this.loadingExtensions||
+this.isOffline(!0)?z():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,k))};EditorUi.prototype.importFile=function(c,f,k,B,z,C,I,L,K,O,da,ea){O=null!=O?O:!0;var ca=!1,V=null,ma=mxUtils.bind(this,function(la){var Y=null;null!=la&&"<mxlibrary"==la.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,la,I)),this.showSidebar()):Y=this.importXml(la,k,B,O,null,null!=ea?mxEvent.isControlDown(ea):null);null!=L&&L(Y)});"image"==f.substring(0,5)?(K=!1,
+"image/png"==f.substring(0,9)&&(da=da?null:this.extractGraphModelFromPng(c),null!=da&&0<da.length&&(V=this.importXml(da,k,B,O,null,null!=ea?mxEvent.isControlDown(ea):null),K=!0)),K||(K=this.editor.graph,da=c.indexOf(";"),0<da&&(c=c.substring(0,da)+c.substring(c.indexOf(",",da+1))),O&&K.isGridEnabled()&&(k=K.snap(k),B=K.snap(B)),da="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==f.substring(0,9)&&(da+="editableCssRules=.*;"),
+V=[K.insertVertex(null,null,"",k,B,z,C,da+"image="+c+";")])):/(\.*<graphml )/.test(c)?(ca=!0,this.importGraphML(c,ma)):null!=K&&null!=I&&EditorUi.isVisioFilename(I)?(ca=!0,this.importVisio(K,ma)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,I)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(ca=!0,f=mxUtils.bind(this,function(la){4==la.readyState&&(200<=la.status&&299>=la.status?ma(la.responseText):null!=L&&(L(null),this.showError(mxResources.get("error"),
+413==la.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),null!=c?this.parseFileData(c,f,I):this.parseFile(K,f,I)):0==c.indexOf("PK")&&null!=K?(ca=!0,this.importZipFile(K,ma,mxUtils.bind(this,function(){V=this.insertTextAt(this.validateFileData(c),k,B,!0,null,O);L(V)}))):/(\.v(sd|dx))($|\?)/i.test(I)||/(\.vs(s|x))($|\?)/i.test(I)||(V=this.insertTextAt(this.validateFileData(c),k,B,!0,null,O,null,null!=ea?mxEvent.isControlDown(ea):null));ca||null==L||L(V);return V};EditorUi.prototype.importFiles=
+function(c,f,k,B,z,C,I,L,K,O,da,ea,ca){B=null!=B?B:this.maxImageSize;O=null!=O?O:this.maxImageBytes;var V=null!=f&&null!=k,ma=!0;f=null!=f?f:0;k=null!=k?k:0;var la=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var Y=da||this.resampleThreshold,fa=0;fa<c.length;fa++)if("image/svg"!==c[fa].type.substring(0,9)&&"image/"===c[fa].type.substring(0,6)&&c[fa].size>Y){la=!0;break}var Z=mxUtils.bind(this,function(){var l=this.editor.graph,u=l.gridSize;z=null!=z?z:mxUtils.bind(this,function(ba,ja,oa,qa,ra,ua,za,
+Ba,Ca){try{if(null!=ba&&"<mxlibrary"==ba.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,ba,za)),this.showSidebar(),null;this.isCompatibleString(ba)&&1==c.length&&null!=ca&&"drop"==ca.type&&this.isBlankFile()&&!this.canUndo()&&(V=!1,qa=oa=0);return this.importFile(ba,ja,oa,qa,ra,ua,za,Ba,Ca,V,ea,ca)}catch(La){return this.handleError(La),null}});C=null!=C?C:mxUtils.bind(this,function(ba){l.setSelectionCells(ba)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var H=
+c.length,U=H,J=[],W=mxUtils.bind(this,function(ba,ja){J[ba]=ja;if(0==--U){this.spinner.stop();if(null!=L)L(J);else{var oa=[];l.getModel().beginUpdate();try{for(ba=0;ba<J.length;ba++){var qa=J[ba]();null!=qa&&(oa=oa.concat(qa))}}finally{l.getModel().endUpdate()}}C(oa)}}),aa=0;aa<H;aa++)mxUtils.bind(this,function(ba){var ja=c[ba];if(null!=ja){var oa=new FileReader;oa.onload=mxUtils.bind(this,function(qa){if(null==I||I(ja))try{if("image/"==ja.type.substring(0,6))if("image/svg"==ja.type.substring(0,9)){var ra=
+Graph.clipSvgDataUri(qa.target.result),ua=ra.indexOf(","),za=decodeURIComponent(escape(atob(ra.substring(ua+1)))),Ba=mxUtils.parseXml(za),Ca=Ba.getElementsByTagName("svg");if(0<Ca.length){var La=Ca[0],sa=ea?null:La.getAttribute("content");null!=sa&&"<"!=sa.charAt(0)&&"%"!=sa.charAt(0)&&(sa=unescape(window.atob?atob(sa):Base64.decode(sa,!0)));null!=sa&&"%"==sa.charAt(0)&&(sa=decodeURIComponent(sa));null==sa||"<mxfile "!==sa.substring(0,8)&&"<mxGraphModel "!==sa.substring(0,14)?W(ba,mxUtils.bind(this,
function(){try{if(null!=Ba){var Ka=Ba.getElementsByTagName("svg");if(0<Ka.length){var Ma=Ka[0],ya=Ma.getAttribute("width"),Wa=Ma.getAttribute("height");ya=null!=ya&&"%"!=ya.charAt(ya.length-1)?parseFloat(ya):NaN;Wa=null!=Wa&&"%"!=Wa.charAt(Wa.length-1)?parseFloat(Wa):NaN;var Ia=Ma.getAttribute("viewBox");if(null==Ia||0==Ia.length)Ma.setAttribute("viewBox","0 0 "+ya+" "+Wa);else if(isNaN(ya)||isNaN(Wa)){var Xa=Ia.split(" ");3<Xa.length&&(ya=parseFloat(Xa[2]),Wa=parseFloat(Xa[3]))}ra=Editor.createSvgDataUri(mxUtils.getXml(Ma));
-var Pa=Math.min(1,Math.min(A/Math.max(1,ya)),A/Math.max(1,Wa)),t=z(ra,ja.type,f+ba*u,k+ba*u,Math.max(1,Math.round(ya*Pa)),Math.max(1,Math.round(Wa*Pa)),ja.name);if(null!=t&&(isNaN(ya)||isNaN(Wa))){var N=new Image;N.onload=mxUtils.bind(this,function(){ya=Math.max(1,N.width);Wa=Math.max(1,N.height);t[0].geometry.width=ya;t[0].geometry.height=Wa;Ma.setAttribute("viewBox","0 0 "+ya+" "+Wa);ra=Editor.createSvgDataUri(mxUtils.getXml(Ma));var Q=ra.indexOf(";");0<Q&&(ra=ra.substring(0,Q)+ra.substring(ra.indexOf(",",
-Q+1)));l.setCellStyles("image",ra,[t[0]])});N.src=Editor.createSvgDataUri(mxUtils.getXml(Ma))}return t}}}catch(Q){}return null})):V(ba,mxUtils.bind(this,function(){return z(sa,"text/xml",f+ba*u,k+ba*u,0,0,ja.name)}))}else V(ba,mxUtils.bind(this,function(){return null}))}else{ua=!1;if("image/png"==ja.type){var Aa=ea?null:this.extractGraphModelFromPng(qa.target.result);if(null!=Aa&&0<Aa.length){var Ea=new Image;Ea.src=qa.target.result;V(ba,mxUtils.bind(this,function(){return z(Aa,"text/xml",f+ba*u,
-k+ba*u,Ea.width,Ea.height,ja.name)}));ua=!0}}ua||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(qa.target.result,mxUtils.bind(this,function(Ka){this.resizeImage(Ka,qa.target.result,mxUtils.bind(this,function(Ma,ya,Wa){V(ba,mxUtils.bind(this,function(){if(null!=
-Ma&&Ma.length<O){var Ia=ma&&this.isResampleImageSize(ja.size,da)?Math.min(1,Math.min(A/ya,A/Wa)):1;return z(Ma,ja.type,f+ba*u,k+ba*u,Math.round(ya*Ia),Math.round(Wa*Ia),ja.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),ma,A,da,ja.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else ra=qa.target.result,z(ra,ja.type,f+ba*u,k+ba*u,240,160,ja.name,function(Ka){V(ba,function(){return Ka})},ja)}catch(Ka){V(ba,
-mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(Ka,ja)}else V(ba,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(ja.name)?z(null,ja.type,f+ba*u,k+ba*u,240,160,ja.name,function(qa){V(ba,function(){return qa})},ja):"image"==ja.type.substring(0,5)||"application/pdf"==ja.type?oa.readAsDataURL(ja):oa.readAsText(ja)}})(aa)});if(la){la=[];for(fa=0;fa<c.length;fa++)la.push(c[fa]);c=la;this.confirmImageResize(function(l){ma=l;Z()},K)}else Z()};EditorUi.prototype.isBlankFile=
-function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,f){f=null!=f?f:!1;var k=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},A=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,z=function(C,I){if(C||f)mxSettings.setResizeImages(C?I:null),mxSettings.save();k();c(I)};null==A||f?this.showDialog((new ConfirmDialog(this,
-mxResources.get("resizeLargeImages"),function(C){z(C,!0)},function(C){z(C,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):z(!1,A)};EditorUi.prototype.parseFile=function(c,f,k){k=null!=k?k:c.name;var A=new FileReader;A.onload=mxUtils.bind(this,function(){this.parseFileData(A.result,
-f,k)});A.readAsText(c)};EditorUi.prototype.parseFileData=function(c,f,k){var A=new XMLHttpRequest;A.open("POST",OPEN_URL);A.setRequestHeader("Content-Type","application/x-www-form-urlencoded");A.onreadystatechange=function(){f(A)};A.send("format=xml&filename="+encodeURIComponent(k)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(z){}};EditorUi.prototype.isResampleImageSize=function(c,f){f=null!=f?f:this.resampleThreshold;return c>
-f};EditorUi.prototype.resizeImage=function(c,f,k,A,z,C,I){z=null!=z?z:this.maxImageSize;var L=Math.max(1,c.width),K=Math.max(1,c.height),O=f;if(A&&this.isResampleImageSize(null!=I?I:f.length,C))try{var da=Math.max(L/z,K/z);if(1<da){var ea=Math.round(L/da),ca=Math.round(K/da),W=document.createElement("canvas");W.width=ea;W.height=ca;W.getContext("2d").drawImage(c,0,0,ea,ca);var ma=W.toDataURL();if(ma.length<f.length){var la=document.createElement("canvas");la.width=ea;la.height=ca;var Y=la.toDataURL();
-ma!==Y&&(f=ma,L=ea,K=ca)}}}catch(fa){}A&&O!=f&&z>this.maxImageSize/2&&f.length>this.maxImageBytes?this.resizeImage(c,f,k,A,z/1.5,C,I):k(f,L,K)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,f,k){try{var A=new Image;A.onload=function(){A.width=0<A.width?A.width:120;A.height=0<A.height?A.height:120;f(A)};null!=k&&(A.onerror=k);A.src=c}catch(z){if(null!=k)k(z);else throw z;}};EditorUi.prototype.getDefaultSketchMode=
+var Pa=Math.min(1,Math.min(B/Math.max(1,ya)),B/Math.max(1,Wa)),t=z(ra,ja.type,f+ba*u,k+ba*u,Math.max(1,Math.round(ya*Pa)),Math.max(1,Math.round(Wa*Pa)),ja.name);if(null!=t&&(isNaN(ya)||isNaN(Wa))){var N=new Image;N.onload=mxUtils.bind(this,function(){ya=Math.max(1,N.width);Wa=Math.max(1,N.height);t[0].geometry.width=ya;t[0].geometry.height=Wa;Ma.setAttribute("viewBox","0 0 "+ya+" "+Wa);ra=Editor.createSvgDataUri(mxUtils.getXml(Ma));var Q=ra.indexOf(";");0<Q&&(ra=ra.substring(0,Q)+ra.substring(ra.indexOf(",",
+Q+1)));l.setCellStyles("image",ra,[t[0]])});N.src=Editor.createSvgDataUri(mxUtils.getXml(Ma))}return t}}}catch(Q){}return null})):W(ba,mxUtils.bind(this,function(){return z(sa,"text/xml",f+ba*u,k+ba*u,0,0,ja.name)}))}else W(ba,mxUtils.bind(this,function(){return null}))}else{ua=!1;if("image/png"==ja.type){var Aa=ea?null:this.extractGraphModelFromPng(qa.target.result);if(null!=Aa&&0<Aa.length){var Ea=new Image;Ea.src=qa.target.result;W(ba,mxUtils.bind(this,function(){return z(Aa,"text/xml",f+ba*u,
+k+ba*u,Ea.width,Ea.height,ja.name)}));ua=!0}}ua||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(qa.target.result,mxUtils.bind(this,function(Ka){this.resizeImage(Ka,qa.target.result,mxUtils.bind(this,function(Ma,ya,Wa){W(ba,mxUtils.bind(this,function(){if(null!=
+Ma&&Ma.length<O){var Ia=ma&&this.isResampleImageSize(ja.size,da)?Math.min(1,Math.min(B/ya,B/Wa)):1;return z(Ma,ja.type,f+ba*u,k+ba*u,Math.round(ya*Ia),Math.round(Wa*Ia),ja.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),ma,B,da,ja.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else ra=qa.target.result,z(ra,ja.type,f+ba*u,k+ba*u,240,160,ja.name,function(Ka){W(ba,function(){return Ka})},ja)}catch(Ka){W(ba,
+mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(Ka,ja)}else W(ba,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(ja.name)?z(null,ja.type,f+ba*u,k+ba*u,240,160,ja.name,function(qa){W(ba,function(){return qa})},ja):"image"==ja.type.substring(0,5)||"application/pdf"==ja.type?oa.readAsDataURL(ja):oa.readAsText(ja)}})(aa)});if(la){la=[];for(fa=0;fa<c.length;fa++)la.push(c[fa]);c=la;this.confirmImageResize(function(l){ma=l;Z()},K)}else Z()};EditorUi.prototype.isBlankFile=
+function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,f){f=null!=f?f:!1;var k=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},B=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,z=function(C,I){if(C||f)mxSettings.setResizeImages(C?I:null),mxSettings.save();k();c(I)};null==B||f?this.showDialog((new ConfirmDialog(this,
+mxResources.get("resizeLargeImages"),function(C){z(C,!0)},function(C){z(C,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):z(!1,B)};EditorUi.prototype.parseFile=function(c,f,k){k=null!=k?k:c.name;var B=new FileReader;B.onload=mxUtils.bind(this,function(){this.parseFileData(B.result,
+f,k)});B.readAsText(c)};EditorUi.prototype.parseFileData=function(c,f,k){var B=new XMLHttpRequest;B.open("POST",OPEN_URL);B.setRequestHeader("Content-Type","application/x-www-form-urlencoded");B.onreadystatechange=function(){f(B)};B.send("format=xml&filename="+encodeURIComponent(k)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(z){}};EditorUi.prototype.isResampleImageSize=function(c,f){f=null!=f?f:this.resampleThreshold;return c>
+f};EditorUi.prototype.resizeImage=function(c,f,k,B,z,C,I){z=null!=z?z:this.maxImageSize;var L=Math.max(1,c.width),K=Math.max(1,c.height),O=f;if(B&&this.isResampleImageSize(null!=I?I:f.length,C))try{var da=Math.max(L/z,K/z);if(1<da){var ea=Math.round(L/da),ca=Math.round(K/da),V=document.createElement("canvas");V.width=ea;V.height=ca;V.getContext("2d").drawImage(c,0,0,ea,ca);var ma=V.toDataURL();if(ma.length<f.length){var la=document.createElement("canvas");la.width=ea;la.height=ca;var Y=la.toDataURL();
+ma!==Y&&(f=ma,L=ea,K=ca)}}}catch(fa){}B&&O!=f&&z>this.maxImageSize/2&&f.length>this.maxImageBytes?this.resizeImage(c,f,k,B,z/1.5,C,I):k(f,L,K)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,f,k){try{var B=new Image;B.onload=function(){B.width=0<B.width?B.width:120;B.height=0<B.height?B.height:120;f(B)};null!=k&&(B.onerror=k);B.src=c}catch(z){if(null!=k)k(z);else throw z;}};EditorUi.prototype.getDefaultSketchMode=
function(){var c="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var v=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());v.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?
mxSettings.settings.sketchMode:this.getDefaultSketchMode())};var p=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var c=this,f=this.editor.graph,k=f.isEnabled;f.isEnabled=function(){return k.apply(this,arguments)&&!c.isLocked()};Graph.touchStyle&&(f.panningHandler.isPanningTrigger=function(u){var H=u.getEvent();return null==u.getState()&&!mxEvent.isMouseEvent(H)&&!f.freehand.isDrawing()||mxEvent.isPopupTrigger(H)&&
-(null==u.getState()||mxEvent.isControlDown(H)||mxEvent.isShiftDown(H))});f.cellEditor.editPlantUmlData=function(u,H,U){var J=JSON.parse(U);H=new TextareaDialog(c,mxResources.get("plantUml")+":",J.data,function(V){null!=V&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(V,J.format,function(aa,ba,ja){c.spinner.stop();f.getModel().beginUpdate();try{if("txt"==J.format)f.labelChanged(u,"<pre>"+aa+"</pre>"),f.updateCellSize(u,!0);else{f.setCellStyles("image",c.convertDataUri(aa),
-[u]);var oa=f.model.getGeometry(u);null!=oa&&(oa=oa.clone(),oa.width=ba,oa.height=ja,f.cellsResized([u],[oa],!1))}f.setAttributeForCell(u,"plantUmlData",JSON.stringify({data:V,format:J.format}))}finally{f.getModel().endUpdate()}},function(aa){c.handleError(aa)})},null,null,400,220);c.showDialog(H.container,420,300,!0,!0);H.init()};f.cellEditor.editMermaidData=function(u,H,U){var J=JSON.parse(U);H=new TextareaDialog(c,mxResources.get("mermaid")+":",J.data,function(V){null!=V&&c.spinner.spin(document.body,
-mxResources.get("inserting"))&&c.generateMermaidImage(V,J.config,function(aa,ba,ja){c.spinner.stop();f.getModel().beginUpdate();try{f.setCellStyles("image",aa,[u]);var oa=f.model.getGeometry(u);null!=oa&&(oa=oa.clone(),oa.width=Math.max(oa.width,ba),oa.height=Math.max(oa.height,ja),f.cellsResized([u],[oa],!1));f.setAttributeForCell(u,"mermaidData",JSON.stringify({data:V,config:J.config},null,2))}finally{f.getModel().endUpdate()}},function(aa){c.handleError(aa)})},null,null,400,220);c.showDialog(H.container,
-420,300,!0,!0);H.init()};var A=f.cellEditor.startEditing;f.cellEditor.startEditing=function(u,H){try{var U=this.graph.getAttributeForCell(u,"plantUmlData");if(null!=U)this.editPlantUmlData(u,H,U);else if(U=this.graph.getAttributeForCell(u,"mermaidData"),null!=U&&window.isMermaidEnabled)this.editMermaidData(u,H,U);else{var J=f.getCellStyle(u);"1"==mxUtils.getValue(J,"metaEdit","0")?c.showDataDialog(u):A.apply(this,arguments)}}catch(V){c.handleError(V)}};f.getLinkTitle=function(u){return c.getLinkTitle(u)};
-f.customLinkClicked=function(u,H){var U=!1;try{var J=this.getGraphBounds();c.handleCustomLink(u,H);U=!0;c.chromelessResize&&!J.equals(this.getGraphBounds())&&(c.chromelessResize(),this.scrollCellToVisible(H))}catch(V){c.handleError(V)}return U};var z=f.parseBackgroundImage;f.parseBackgroundImage=function(u){var H=z.apply(this,arguments);null!=H&&null!=H.src&&Graph.isPageLink(H.src)&&(H={originalSrc:H.src});return H};var C=f.setBackgroundImage;f.setBackgroundImage=function(u){null!=u&&null!=u.originalSrc&&
+(null==u.getState()||mxEvent.isControlDown(H)||mxEvent.isShiftDown(H))});f.cellEditor.editPlantUmlData=function(u,H,U){var J=JSON.parse(U);H=new TextareaDialog(c,mxResources.get("plantUml")+":",J.data,function(W){null!=W&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(W,J.format,function(aa,ba,ja){c.spinner.stop();f.getModel().beginUpdate();try{if("txt"==J.format)f.labelChanged(u,"<pre>"+aa+"</pre>"),f.updateCellSize(u,!0);else{f.setCellStyles("image",c.convertDataUri(aa),
+[u]);var oa=f.model.getGeometry(u);null!=oa&&(oa=oa.clone(),oa.width=ba,oa.height=ja,f.cellsResized([u],[oa],!1))}f.setAttributeForCell(u,"plantUmlData",JSON.stringify({data:W,format:J.format}))}finally{f.getModel().endUpdate()}},function(aa){c.handleError(aa)})},null,null,400,220);c.showDialog(H.container,420,300,!0,!0);H.init()};f.cellEditor.editMermaidData=function(u,H,U){var J=JSON.parse(U);H=new TextareaDialog(c,mxResources.get("mermaid")+":",J.data,function(W){null!=W&&c.spinner.spin(document.body,
+mxResources.get("inserting"))&&c.generateMermaidImage(W,J.config,function(aa,ba,ja){c.spinner.stop();f.getModel().beginUpdate();try{f.setCellStyles("image",aa,[u]);var oa=f.model.getGeometry(u);null!=oa&&(oa=oa.clone(),oa.width=Math.max(oa.width,ba),oa.height=Math.max(oa.height,ja),f.cellsResized([u],[oa],!1));f.setAttributeForCell(u,"mermaidData",JSON.stringify({data:W,config:J.config},null,2))}finally{f.getModel().endUpdate()}},function(aa){c.handleError(aa)})},null,null,400,220);c.showDialog(H.container,
+420,300,!0,!0);H.init()};var B=f.cellEditor.startEditing;f.cellEditor.startEditing=function(u,H){try{var U=this.graph.getAttributeForCell(u,"plantUmlData");if(null!=U)this.editPlantUmlData(u,H,U);else if(U=this.graph.getAttributeForCell(u,"mermaidData"),null!=U&&window.isMermaidEnabled)this.editMermaidData(u,H,U);else{var J=f.getCellStyle(u);"1"==mxUtils.getValue(J,"metaEdit","0")?c.showDataDialog(u):B.apply(this,arguments)}}catch(W){c.handleError(W)}};f.getLinkTitle=function(u){return c.getLinkTitle(u)};
+f.customLinkClicked=function(u,H){var U=!1;try{var J=this.getGraphBounds();c.handleCustomLink(u,H);U=!0;c.chromelessResize&&!J.equals(this.getGraphBounds())&&(c.chromelessResize(),this.scrollCellToVisible(H))}catch(W){c.handleError(W)}return U};var z=f.parseBackgroundImage;f.parseBackgroundImage=function(u){var H=z.apply(this,arguments);null!=H&&null!=H.src&&Graph.isPageLink(H.src)&&(H={originalSrc:H.src});return H};var C=f.setBackgroundImage;f.setBackgroundImage=function(u){null!=u&&null!=u.originalSrc&&
(u=c.createImageForPageLink(u.originalSrc,c.currentPage,this));C.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(u,H){u=null!=f.backgroundImage?f.backgroundImage.originalSrc:null;if(null!=u){var U=u.indexOf(",");if(0<U)for(u=u.substring(U+1),H=H.getProperty("patches"),
U=0;U<H.length;U++)if(null!=H[U][EditorUi.DIFF_UPDATE]&&null!=H[U][EditorUi.DIFF_UPDATE][u]||null!=H[U][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(H[U][EditorUi.DIFF_REMOVE],u)){f.refreshBackgroundImage();break}}}));var I=f.getBackgroundImageObject;f.getBackgroundImageObject=function(u,H){var U=I.apply(this,arguments);null!=U&&null!=U.originalSrc&&(U=H?c.createImageForPageLink(U.originalSrc,null,null,!0):{src:U.originalSrc});return U};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink=
-"https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var L=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(u){u=null!=u?u:"";"1"==urlParams.dev&&(u+=(0<u.length?"&":"?")+"dev=1");return L.apply(this,arguments)};var K=f.addClickHandler;f.addClickHandler=function(u,H,U){var J=H;H=function(V,aa,ba){if(null==aa){var ja=
-mxEvent.getSource(V);"a"==ja.nodeName.toLowerCase()&&(aa=ja.getAttribute("href"))}null!=aa&&f.isCustomLink(aa)&&(mxEvent.isTouchEvent(V)||!mxEvent.isPopupTrigger(V))&&f.customLinkClicked(aa,ba)&&mxEvent.consume(V);null!=J&&J(V,aa,ba)};K.call(this,u,H,U)};p.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var O=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(u,H,U){f.isSelectionEmpty()&&"simple"==
+"https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var L=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(u){u=null!=u?u:"";"1"==urlParams.dev&&(u+=(0<u.length?"&":"?")+"dev=1");return L.apply(this,arguments)};var K=f.addClickHandler;f.addClickHandler=function(u,H,U){var J=H;H=function(W,aa,ba){if(null==aa){var ja=
+mxEvent.getSource(W);"a"==ja.nodeName.toLowerCase()&&(aa=ja.getAttribute("href"))}null!=aa&&f.isCustomLink(aa)&&(mxEvent.isTouchEvent(W)||!mxEvent.isPopupTrigger(W))&&f.customLinkClicked(aa,ba)&&mxEvent.consume(W);null!=J&&J(W,aa,ba)};K.call(this,u,H,U)};p.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var O=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(u,H,U){f.isSelectionEmpty()&&"simple"==
Editor.currentTheme&&this.addMenuItems(u,["zoomIn","zoomOut","-"],null,U);O.apply(this,arguments);f.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(u,["-","addToScratchpad"],null,U);f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(u,["-","exitGroup","home"],null,U)};var da=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(u,H,U){if(c.editor.graph.isSelectionEmpty())da.apply(this,arguments),c.menus.addMenuItems(u,["copyAsImage"],
null,U);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(u,H,U):this.addPopupMenuArrangeItems(u,H,U),this.addMenuItems(u,"- cut copy copyAsImage duplicate -".split(" "),null,U),this.isShowCellEditItems()||this.addPopupDeleteItem(u,H,U),this.addMenuItems(u,["lockUnlock","-"],null,U),!this.isShowStyleItems()){if(1==f.getSelectionCount()&&!f.isCellLocked(H)&&f.isCellEditable(H)&&(this.addSubmenu("editCell",u,null,mxResources.get("edit")),u.addSeparator(),f.getModel().isEdge(H))){this.addSubmenu("line",
u);var J=f.getModel().getGeometry(H);null!=J&&null!=J.points&&0<J.points.length&&this.addMenuItems(u,["clearWaypoints"],null,U)}1==f.getSelectionCount()&&this.addMenuItems(u,["enterGroup"],null,U);J=c.getSelectionState();null!=J.mergeCell?this.addMenuItem(u,"mergeCells"):(1<J.style.colspan||1<J.style.rowspan)&&this.addMenuItem(u,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=
function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}this.defaultFilename=mxResources.get("untitledDiagram");var ea=f.getExportVariables;f.getExportVariables=function(){var u=ea.apply(this,arguments),H=c.getCurrentFile();null!=H&&(u.filename=H.getTitle());u.pagecount=null!=c.pages?c.pages.length:1;u.page=null!=c.currentPage?c.currentPage.getName():"";u.pagenumber=null!=c.pages&&null!=c.currentPage?
-mxUtils.indexOf(c.pages,c.currentPage)+1:1;return u};var ca=f.getGlobalVariable;f.getGlobalVariable=function(u){var H=c.getCurrentFile();return"filename"==u&&null!=H?H.getTitle():"page"==u&&null!=c.currentPage?c.currentPage.getName():"pagenumber"==u?null!=c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1:"pagecount"==u?null!=c.pages?c.pages.length:1:ca.apply(this,arguments)};var W=null,ma=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var u=this.getCurrentFile(),
-H=null!=u&&null!=u.getTitle()?u.getTitle():this.defaultFilename;W!=H&&u==ma&&(f.invalidateDescendantsWithPlaceholders(f.model.getRoot()),f.view.validate());W=H;ma=u}));var la=f.labelLinkClicked;f.labelLinkClicked=function(u,H,U){var J=H.getAttribute("href");if(null==J||!f.isCustomLink(J)||!mxEvent.isTouchEvent(U)&&mxEvent.isPopupTrigger(U))la.apply(this,arguments);else{if(!f.isEnabled()||null!=u&&f.isCellLocked(u.cell))f.customLinkClicked(J),f.getRubberband().reset();mxEvent.consume(U)}};this.editor.getOrCreateFilename=
+mxUtils.indexOf(c.pages,c.currentPage)+1:1;return u};var ca=f.getGlobalVariable;f.getGlobalVariable=function(u){var H=c.getCurrentFile();return"filename"==u&&null!=H?H.getTitle():"page"==u&&null!=c.currentPage?c.currentPage.getName():"pagenumber"==u?null!=c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1:"pagecount"==u?null!=c.pages?c.pages.length:1:ca.apply(this,arguments)};var V=null,ma=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var u=this.getCurrentFile(),
+H=null!=u&&null!=u.getTitle()?u.getTitle():this.defaultFilename;V!=H&&u==ma&&(f.invalidateDescendantsWithPlaceholders(f.model.getRoot()),f.view.validate());V=H;ma=u}));var la=f.labelLinkClicked;f.labelLinkClicked=function(u,H,U){var J=H.getAttribute("href");if(null==J||!f.isCustomLink(J)||!mxEvent.isTouchEvent(U)&&mxEvent.isPopupTrigger(U))la.apply(this,arguments);else{if(!f.isEnabled()||null!=u&&f.isCellLocked(u.cell))f.customLinkClicked(J),f.getRubberband().reset();mxEvent.consume(U)}};this.editor.getOrCreateFilename=
function(){var u=c.defaultFilename,H=c.getCurrentFile();null!=H&&(u=null!=H.getTitle()?H.getTitle():u);return u};var Y=this.actions.get("print");Y.setEnabled(!mxClient.IS_IOS||!navigator.standalone);Y.visible=Y.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1,"insertText"),this.keyHandler.bindAction(83,!1,"insertNote"),
this.keyHandler.bindAction(68,!1,"insertRectangle"),this.keyHandler.bindAction(70,!1,"insertEllipse"),this.keyHandler.bindAction(76,!1,"insertLink"),this.keyHandler.bindAction(82,!1,"insertRhombus"),this.keyHandler.bindAction(67,!1,"insertEdge"),this.keyHandler.bindAction(88,!1,"insertFreehand"),this.keyHandler.bindAction(75,!0,"toggleShapes",!0),this.keyHandler.bindAction(54,!0,"adaptiveColors",!0),this.altShiftActions[81]="copyStyle",this.altShiftActions[87]="pasteStyle",this.altShiftActions[83]=
"synchronize","1"==urlParams.embedInline&&f.addListener(mxEvent.ESCAPE,function(u,H){null!=H&&f.isEnabled()&&!f.isEditing()&&null!=H.getProperty("event")&&c.actions.get("exit").funct()}),this.installImagePasteHandler(),this.installNativeClipboardHandler();this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateUserElement()}));this.spinner=this.createSpinner(null,null,24);Graph.fileSupport&&f.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(u){var H=f.cellEditor.text2,
U=null;null!=H&&(mxEvent.addListener(H,"dragleave",function(J){null!=U&&(U.parentNode.removeChild(U),U=null);J.stopPropagation();J.preventDefault()}),mxEvent.addListener(H,"dragover",mxUtils.bind(this,function(J){null==U&&(!mxClient.IS_IE||10<document.documentMode)&&(U=this.highlightElement(H));J.stopPropagation();J.preventDefault()})),mxEvent.addListener(H,"drop",mxUtils.bind(this,function(J){null!=U&&(U.parentNode.removeChild(U),U=null);if(0<J.dataTransfer.files.length)this.importFiles(J.dataTransfer.files,
-0,0,this.maxImageSize,function(aa,ba,ja,oa,qa,ra){f.insertImage(aa,qa,ra)},function(){},function(aa){return"image/"==aa.type.substring(0,6)},function(aa){for(var ba=0;ba<aa.length;ba++)aa[ba]()},mxEvent.isControlDown(J));else if(0<=mxUtils.indexOf(J.dataTransfer.types,"text/uri-list")){var V=J.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(V)?this.loadImage(decodeURIComponent(V),mxUtils.bind(this,function(aa){var ba=Math.max(1,aa.width);aa=Math.max(1,aa.height);var ja=
-this.maxImageSize;ja=Math.min(1,Math.min(ja/Math.max(1,ba)),ja/Math.max(1,aa));f.insertImage(decodeURIComponent(V),ba*ja,aa*ja)})):document.execCommand("insertHTML",!1,J.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(J.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,J.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(J.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,J.dataTransfer.getData("text/plain"));J.stopPropagation();J.preventDefault()})))}));
+0,0,this.maxImageSize,function(aa,ba,ja,oa,qa,ra){f.insertImage(aa,qa,ra)},function(){},function(aa){return"image/"==aa.type.substring(0,6)},function(aa){for(var ba=0;ba<aa.length;ba++)aa[ba]()},mxEvent.isControlDown(J));else if(0<=mxUtils.indexOf(J.dataTransfer.types,"text/uri-list")){var W=J.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(W)?this.loadImage(decodeURIComponent(W),mxUtils.bind(this,function(aa){var ba=Math.max(1,aa.width);aa=Math.max(1,aa.height);var ja=
+this.maxImageSize;ja=Math.min(1,Math.min(ja/Math.max(1,ba)),ja/Math.max(1,aa));f.insertImage(decodeURIComponent(W),ba*ja,aa*ja)})):document.execCommand("insertHTML",!1,J.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(J.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,J.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(J.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,J.dataTransfer.getData("text/plain"));J.stopPropagation();J.preventDefault()})))}));
if(Editor.isSettingsEnabled()){Y=this.editor.graph.view;var fa=mxSettings.getUnit();Y.setUnit(fa);Editor.pageSizeUnit=fa==mxConstants.METERS?mxConstants.MILLIMETERS:fa;Y.addListener("unitChanged",function(u,H){u=H.getProperty("unit");mxSettings.setUnit(u);mxSettings.save();Editor.pageSizeUnit=u==mxConstants.METERS?mxConstants.MILLIMETERS:u});this.ruler=!this.canvasSupported||9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?
null:new mxDualRuler(this,Y.unit);this.refresh()}if("1"==urlParams.styledev){Y=document.getElementById("geFooter");null!=Y&&(this.styleInput=document.createElement("input"),this.styleInput.setAttribute("type","text"),this.styleInput.style.position="absolute",this.styleInput.style.top="14px",this.styleInput.style.left="2px",this.styleInput.style.width="98%",this.styleInput.style.visibility="hidden",this.styleInput.style.opacity="0.9",mxEvent.addListener(this.styleInput,"change",mxUtils.bind(this,function(){this.editor.graph.getModel().setStyle(this.editor.graph.getSelectionCell(),
this.styleInput.value)})),Y.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(u,H){0<this.editor.graph.getSelectionCount()?(u=this.editor.graph.getSelectionCell(),u=this.editor.graph.getModel().getStyle(u),this.styleInput.value=u||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var Z=this.isSelectionAllowed;this.isSelectionAllowed=function(u){return mxEvent.getSource(u)==this.styleInput?
!0:Z.apply(this,arguments)}}Y=document.getElementById("geInfo");null!=Y&&Y.parentNode.removeChild(Y);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var l=null;mxEvent.addListener(f.container,"dragleave",function(u){f.isEnabled()&&(null!=l&&(l.parentNode.removeChild(l),l=null),u.stopPropagation(),u.preventDefault())});mxEvent.addListener(f.container,"dragover",mxUtils.bind(this,function(u){null==l&&(!mxClient.IS_IE||10<document.documentMode)&&(l=this.highlightElement(f.container));
-null!=this.sidebar&&this.sidebar.hideTooltip();u.stopPropagation();u.preventDefault()}));mxEvent.addListener(f.container,"drop",mxUtils.bind(this,function(u){null!=l&&(l.parentNode.removeChild(l),l=null);if(f.isEnabled()){var H=mxUtils.convertPoint(f.container,mxEvent.getClientX(u),mxEvent.getClientY(u)),U=u.dataTransfer.files,J=f.view.translate,V=f.view.scale,aa=H.x/V-J.x,ba=H.y/V-J.y;if(0<U.length)"1"!=urlParams.embed&&mxEvent.isShiftDown(u)?(this.isBlankFile()&&!this.canUndo()&&null!=this.getCurrentFile()&&
+null!=this.sidebar&&this.sidebar.hideTooltip();u.stopPropagation();u.preventDefault()}));mxEvent.addListener(f.container,"drop",mxUtils.bind(this,function(u){null!=l&&(l.parentNode.removeChild(l),l=null);if(f.isEnabled()){var H=mxUtils.convertPoint(f.container,mxEvent.getClientX(u),mxEvent.getClientY(u)),U=u.dataTransfer.files,J=f.view.translate,W=f.view.scale,aa=H.x/W-J.x,ba=H.y/W-J.y;if(0<U.length)"1"!=urlParams.embed&&mxEvent.isShiftDown(u)?(this.isBlankFile()&&!this.canUndo()&&null!=this.getCurrentFile()&&
this.fileLoaded(null),this.openFiles(U,!0)):(mxEvent.isAltDown(u)&&(ba=aa=null),this.importFiles(U,aa,ba,this.maxImageSize,null,null,null,null,mxEvent.isControlDown(u),null,null,mxEvent.isShiftDown(u),u));else{mxEvent.isAltDown(u)&&(ba=aa=0);var ja=0<=mxUtils.indexOf(u.dataTransfer.types,"text/uri-list")?u.dataTransfer.getData("text/uri-list"):null;H=this.extractGraphModelFromEvent(u,null!=this.pages);if(null!=H)f.setSelectionCells(this.importXml(H,aa,ba,!0));else if(0<=mxUtils.indexOf(u.dataTransfer.types,
"text/html")){var oa=u.dataTransfer.getData("text/html");H=document.createElement("div");H.innerHTML=Graph.sanitizeHtml(oa);var qa=null;U=H.getElementsByTagName("img");null!=U&&1==U.length?(oa=U[0].getAttribute("src"),null==oa&&(oa=U[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(oa)||(qa=!0)):(U=H.getElementsByTagName("a"),null!=U&&1==U.length?oa=U[0].getAttribute("href"):(H=H.getElementsByTagName("pre"),null!=H&&1==H.length&&(oa=mxUtils.getTextContent(H[0]))));var ra=!0,ua=mxUtils.bind(this,
function(){f.setSelectionCells(this.insertTextAt(oa,aa,ba,!0,qa,null,ra,mxEvent.isControlDown(u)))});qa&&null!=oa&&oa.length>this.resampleThreshold?this.confirmImageResize(function(za){ra=za;ua()},mxEvent.isControlDown(u)):ua()}else null!=ja&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(ja)?this.loadImage(decodeURIComponent(ja),mxUtils.bind(this,function(za){var Ba=Math.max(1,za.width);za=Math.max(1,za.height);var Ca=this.maxImageSize;Ca=Math.min(1,Math.min(Ca/Math.max(1,Ba)),Ca/Math.max(1,za));f.setSelectionCell(f.insertVertex(null,
null,"",aa,ba,Ba*Ca,za*Ca,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+ja+";"))}),mxUtils.bind(this,function(za){f.setSelectionCells(this.insertTextAt(ja,aa,ba,!0))})):0<=mxUtils.indexOf(u.dataTransfer.types,"text/plain")&&f.setSelectionCells(this.insertTextAt(u.dataTransfer.getData("text/plain"),aa,ba,!0))}}u.stopPropagation();u.preventDefault()}),!1)}this.initPages();"1"==urlParams.embed&&this.initializeEmbedMode();this.addListener("currentThemeChanged",
mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();this.refresh()}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&f.view.validateBackground()});f.addListener("enabledChanged",mxUtils.bind(this,function(){f.isEnabled()||this.hideShapePicker()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var u=parseInt(this.div.offsetLeft),H=
-parseInt(this.div.offsetWidth),U=c.embedViewport.x+c.embedViewport.width,J=parseInt(this.div.offsetTop),V=parseInt(this.div.offsetHeight),aa=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(u,U-H))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(J,aa-V))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};
+parseInt(this.div.offsetWidth),U=c.embedViewport.x+c.embedViewport.width,J=parseInt(this.div.offsetTop),W=parseInt(this.div.offsetHeight),aa=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(u,U-H))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(J,aa-W))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};
if(!this.editor.chromeless||this.editor.editable)if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme)Y=Editor.currentTheme,Editor.currentTheme="",this.doSetCurrentTheme(Y,mxUtils.bind(this,function(){"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<Editor.smallScreenWidth&&this.toggleFormatPanel(!1);this.fireEvent(new mxEventObject("themeInitialized"))}));Y=!1;null!=urlParams.dark?Y=urlParams.dark:
-"dark"==Editor.currentTheme?Y=!0:Editor.isSettingsEnabled()&&"1"!=urlParams.embed&&(Y=mxSettings.settings.darkMode);"auto"==Y&&this.isAutoDarkModeSupported()&&(Y=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===typeof Y?"1"==Y:Y);if(this.isAutoDarkModeSupported())try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(u){this.isAutoDarkMode()&&this.setDarkMode(u.matches)}))}catch(u){this.actions.get("autoMode").setEnabled(!1)}"1"==
+(Y="dark"==Editor.currentTheme,!Editor.isSettingsEnabled()||"1"==urlParams.embed||Y&&"auto"!=mxSettings.settings.darkMode||(Y=mxSettings.settings.darkMode));"auto"==Y&&this.isAutoDarkModeSupported()&&(Y=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===typeof Y?"1"==Y:Y);if(this.isAutoDarkModeSupported())try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(u){this.isAutoDarkMode()&&this.setDarkMode(u.matches)}))}catch(u){this.actions.get("autoMode").setEnabled(!1)}"1"==
urlParams["high-contrast"]?this.setHighContrast(!0):Editor.isSettingsEnabled()&&!this.editor.graph.isLightboxView()&&null!=mxSettings.settings.highContrast&&this.setHighContrast(mxSettings.settings.highContrast);this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(u,H){f.enableFlowAnimation=Editor.enableAnimations;f.refresh()}));f.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&
-c.editor.loadFonts()};var B=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,f=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=f&&c<f?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<f&&c>=f&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));this.lastWindowWidth=
-c}B.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var c=this.sketchFooterMenuElt,f=this.sketchMainMenuElt,k=this.sketchPickerMenuElt,A=this.editor.graph;k.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(O){mxEvent.getSource(O)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(O),mxEvent.getClientY(O)),this.sendEmbeddedSvgExport())}));document.body.style.cursor="text";var z=
-document.createElement("div");z.style.position="absolute";z.style.width="10px";z.style.height="10px";z.style.borderRadius="5px";z.style.border="1px solid gray";z.style.background="#ffffff";z.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(z);this.bottomResizer=z;var C=null,I=null,L=null,K=null;mxEvent.addGestureListeners(z,mxUtils.bind(this,function(O){K=parseInt(this.diagramContainer.style.height);I=mxEvent.getClientY(O);A.popupMenuHandler.hideMenu();mxEvent.consume(O)}));
-z=z.cloneNode(!1);z.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(z);this.rightResizer=z;mxEvent.addGestureListeners(z,mxUtils.bind(this,function(O){L=parseInt(this.diagramContainer.style.width);C=mxEvent.getClientX(O);A.popupMenuHandler.hideMenu();mxEvent.consume(O)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(O){var da=!1;null!=C&&(this.diagramContainer.style.width=Math.max(20,L+mxEvent.getClientX(O)-C)+"px",da=!0);null!=I&&(this.diagramContainer.style.height=
+c.editor.loadFonts()};var A=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,f=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=f&&c<f?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<f&&c>=f&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));this.lastWindowWidth=
+c}A.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var c=this.sketchFooterMenuElt,f=this.sketchMainMenuElt,k=this.sketchPickerMenuElt,B=this.editor.graph;k.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(O){mxEvent.getSource(O)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(O),mxEvent.getClientY(O)),this.sendEmbeddedSvgExport())}));document.body.style.cursor="text";var z=
+document.createElement("div");z.style.position="absolute";z.style.width="10px";z.style.height="10px";z.style.borderRadius="5px";z.style.border="1px solid gray";z.style.background="#ffffff";z.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(z);this.bottomResizer=z;var C=null,I=null,L=null,K=null;mxEvent.addGestureListeners(z,mxUtils.bind(this,function(O){K=parseInt(this.diagramContainer.style.height);I=mxEvent.getClientY(O);B.popupMenuHandler.hideMenu();mxEvent.consume(O)}));
+z=z.cloneNode(!1);z.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(z);this.rightResizer=z;mxEvent.addGestureListeners(z,mxUtils.bind(this,function(O){L=parseInt(this.diagramContainer.style.width);C=mxEvent.getClientX(O);B.popupMenuHandler.hideMenu();mxEvent.consume(O)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(O){var da=!1;null!=C&&(this.diagramContainer.style.width=Math.max(20,L+mxEvent.getClientX(O)-C)+"px",da=!0);null!=I&&(this.diagramContainer.style.height=
Math.max(20,K+mxEvent.getClientY(O)-I)+"px",da=!0);da&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}),function(O){null==C&&null==I||mxEvent.consume(O);I=C=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius="4px";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility=
"hidden";this.sketchMenubarElt.style.display="none";f.style.visibility="hidden";c.style.visibility="hidden";k.style.display="none";this.addListener("editInlineStart",mxUtils.bind(this,function(O){this.inlineSizeChanged();this.fitWindows()}));this.addListener("editInlineStop",mxUtils.bind(this,function(O){this.diagramContainer.style.width="10px";this.diagramContainer.style.height="10px";this.diagramContainer.style.border="";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility=
-"hidden";f.style.visibility="hidden";c.style.visibility="hidden";k.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var c=this.editor.graph;c.container.addEventListener("paste",mxUtils.bind(this,function(f){if(!mxEvent.isConsumed(f))try{for(var k=f.clipboardData||f.originalEvent.clipboardData,A=!1,z=0;z<k.types.length;z++)if("text/"===k.types[z].substring(0,5)){A=!0;break}if(!A){var C=
-k.items;for(index in C){var I=C[index];if("file"===I.kind){if(c.isEditing())this.importFiles([I.getAsFile()],0,0,this.maxImageSize,function(K,O,da,ea,ca,W){c.insertImage(K,ca,W)},function(){},function(K){return"image/"==K.type.substring(0,6)},function(K){for(var O=0;O<K.length;O++)K[O]()});else{var L=this.editor.graph.getInsertPoint();this.importFiles([I.getAsFile()],L.x,L.y,this.maxImageSize);mxEvent.consume(f)}break}}}}catch(K){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=function(){function c(){window.setTimeout(function(){k.innerHTML=
+"hidden";f.style.visibility="hidden";c.style.visibility="hidden";k.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var c=this.editor.graph;c.container.addEventListener("paste",mxUtils.bind(this,function(f){if(!mxEvent.isConsumed(f))try{for(var k=f.clipboardData||f.originalEvent.clipboardData,B=!1,z=0;z<k.types.length;z++)if("text/"===k.types[z].substring(0,5)){B=!0;break}if(!B){var C=
+k.items;for(index in C){var I=C[index];if("file"===I.kind){if(c.isEditing())this.importFiles([I.getAsFile()],0,0,this.maxImageSize,function(K,O,da,ea,ca,V){c.insertImage(K,ca,V)},function(){},function(K){return"image/"==K.type.substring(0,6)},function(K){for(var O=0;O<K.length;O++)K[O]()});else{var L=this.editor.graph.getInsertPoint();this.importFiles([I.getAsFile()],L.x,L.y,this.maxImageSize);mxEvent.consume(f)}break}}}}catch(K){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=function(){function c(){window.setTimeout(function(){k.innerHTML=
"&nbsp;";k.focus();document.execCommand("selectAll",!1,null)},0)}var f=this.editor.graph,k=document.createElement("div");k.setAttribute("autocomplete","off");k.setAttribute("autocorrect","off");k.setAttribute("autocapitalize","off");k.setAttribute("spellcheck","false");k.style.textRendering="optimizeSpeed";k.style.fontFamily="monospace";k.style.wordBreak="break-all";k.style.background="transparent";k.style.color="transparent";k.style.position="absolute";k.style.whiteSpace="nowrap";k.style.overflow=
-"hidden";k.style.display="block";k.style.fontSize="1";k.style.zIndex="-1";k.style.resize="none";k.style.outline="none";k.style.width="1px";k.style.height="1px";mxUtils.setOpacity(k,0);k.contentEditable=!0;k.innerHTML="&nbsp;";var A=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(C){var I=mxEvent.getSource(C);null==f.container||!f.isEnabled()||f.isMouseDown||
-f.isEditing()||null!=this.dialog||"INPUT"==I.nodeName||"TEXTAREA"==I.nodeName||"true"==I.contentEditable||224!=C.keyCode&&(mxClient.IS_MAC||17!=C.keyCode)&&(!mxClient.IS_MAC||91!=C.keyCode&&93!=C.keyCode)||A||(k.style.left=f.container.scrollLeft+10+"px",k.style.top=f.container.scrollTop+10+"px",C=f.container.scrollLeft,I=f.container.scrollTop,f.container.appendChild(k),A=!0,k.focus(),document.execCommand("selectAll",!1,null),f.container.scrollLeft=C,f.container.scrollTop=I)}));mxEvent.addListener(document,
-"keyup",mxUtils.bind(this,function(C){var I=C.keyCode;window.setTimeout(mxUtils.bind(this,function(){!A||224!=I&&17!=I&&91!=I&&93!=I||(A=!1,f.isEditing()||null!=this.dialog||null==f.container||f.container.focus(),k.parentNode.removeChild(k),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(k,"copy",mxUtils.bind(this,function(C){if(f.isEnabled())try{mxClipboard.copy(f),this.copyCells(k),c()}catch(I){this.handleError(I)}}));mxEvent.addListener(k,"cut",mxUtils.bind(this,function(C){if(f.isEnabled())try{mxClipboard.copy(f),
+"hidden";k.style.display="block";k.style.fontSize="1";k.style.zIndex="-1";k.style.resize="none";k.style.outline="none";k.style.width="1px";k.style.height="1px";mxUtils.setOpacity(k,0);k.contentEditable=!0;k.innerHTML="&nbsp;";var B=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(C){var I=mxEvent.getSource(C);null==f.container||!f.isEnabled()||f.isMouseDown||
+f.isEditing()||null!=this.dialog||"INPUT"==I.nodeName||"TEXTAREA"==I.nodeName||"true"==I.contentEditable||224!=C.keyCode&&(mxClient.IS_MAC||17!=C.keyCode)&&(!mxClient.IS_MAC||91!=C.keyCode&&93!=C.keyCode)||B||(k.style.left=f.container.scrollLeft+10+"px",k.style.top=f.container.scrollTop+10+"px",C=f.container.scrollLeft,I=f.container.scrollTop,f.container.appendChild(k),B=!0,k.focus(),document.execCommand("selectAll",!1,null),f.container.scrollLeft=C,f.container.scrollTop=I)}));mxEvent.addListener(document,
+"keyup",mxUtils.bind(this,function(C){var I=C.keyCode;window.setTimeout(mxUtils.bind(this,function(){!B||224!=I&&17!=I&&91!=I&&93!=I||(B=!1,f.isEditing()||null!=this.dialog||null==f.container||f.container.focus(),k.parentNode.removeChild(k),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(k,"copy",mxUtils.bind(this,function(C){if(f.isEnabled())try{mxClipboard.copy(f),this.copyCells(k),c()}catch(I){this.handleError(I)}}));mxEvent.addListener(k,"cut",mxUtils.bind(this,function(C){if(f.isEnabled())try{mxClipboard.copy(f),
this.copyCells(k,!0),c()}catch(I){this.handleError(I)}}));mxEvent.addListener(k,"paste",mxUtils.bind(this,function(C){if(f.isEnabled()&&!f.isCellLocked(f.getDefaultParent()))try{if(k.innerHTML="&nbsp;",k.focus(),null!=C.clipboardData&&(Graph.removePasteFormatting(k.firstChild),this.pasteCells(C,k,!0,!0)),!mxEvent.isConsumed(C)){var I=f.container.scrollLeft,L=f.container.scrollTop;window.setTimeout(mxUtils.bind(this,function(){try{f.container.scrollLeft=I,f.container.scrollTop=L,Graph.removePasteFormatting(k.firstChild),
this.pasteCells(C,k,!1,!0)}catch(K){this.handleError(K)}}),0)}}catch(K){this.handleError(K)}}),!0);var z=this.isSelectionAllowed;this.isSelectionAllowed=function(C){return mxEvent.getSource(C)==k?!0:z.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,f){mxSettings.setUi(c);(f=this.doSetCurrentTheme(c)||f)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(c){return""==c||"dark"==c||"default"==c||"kennedy"==c||null==c};EditorUi.prototype.doSetCurrentTheme=
-function(c,f){function k(L){return"simple"==L||"sketch"==L}var A=Editor.currentTheme,z=k(A)&&this.isDefaultTheme(c)||this.isDefaultTheme(A)&&k(c),C=z&&"sketch"!=c&&"sketch"!=A;if(z&&!this.themeSwitching){var I=this.saveScrollState();this.editor.graph.stopEditing(!1);this.container.style.opacity=0;Editor.currentTheme=c;this.themeSwitching=!0;window.setTimeout(mxUtils.bind(this,function(){k(A)&&this.isDefaultTheme(c)?(this.menubarContainer.style.display="",this.toolbarContainer.style.display="block",
-this.tabContainer.style.display="flex",this.hsplit.style.display="block",this.menubarHeight=App.prototype.menubarHeight):this.isDefaultTheme(A)&&k(c)&&(this.menubarContainer.style.display="none",this.toolbarContainer.style.display="none",this.menubarHeight=0,"simple"!=c?(this.tabContainer.style.display="none",this.hsplit.style.display="none",this.hsplitPosition=0):this.tabContainer.style.display="flex");this.switchTheme(c);this.fireEvent(new mxEventObject("currentThemeChanged"));this.editor.fireEvent(new mxEventObject("statusChanged"));
+function(c,f){function k(L){return"simple"==L||"sketch"==L}var B=Editor.currentTheme,z=k(B)&&this.isDefaultTheme(c)||this.isDefaultTheme(B)&&k(c),C=z&&"sketch"!=c&&"sketch"!=B;if(z&&!this.themeSwitching){var I=this.saveScrollState();this.editor.graph.stopEditing(!1);this.container.style.opacity=0;Editor.currentTheme=c;this.themeSwitching=!0;window.setTimeout(mxUtils.bind(this,function(){k(B)&&this.isDefaultTheme(c)?(this.menubarContainer.style.display="",this.toolbarContainer.style.display="block",
+this.tabContainer.style.display="flex",this.hsplit.style.display="block",this.menubarHeight=App.prototype.menubarHeight):this.isDefaultTheme(B)&&k(c)&&(this.menubarContainer.style.display="none",this.toolbarContainer.style.display="none",this.menubarHeight=0,"simple"!=c?(this.tabContainer.style.display="none",this.hsplit.style.display="none",this.hsplitPosition=0):this.tabContainer.style.display="flex");this.switchTheme(c);this.fireEvent(new mxEventObject("currentThemeChanged"));this.editor.fireEvent(new mxEventObject("statusChanged"));
this.editor.graph.refresh();this.restoreScrollState(I);this.container.style.opacity="";delete this.themeSwitching;isLocalStorage&&k(c)&&this.setTabContainerVisible(null!=mxSettings.settings.pages?mxSettings.settings.pages:!0);null!=f&&f()}),0)}return C};EditorUi.prototype.saveScrollState=function(){var c=this.editor.graph.view.translate,f=this.diagramContainer.scrollLeft,k=this.diagramContainer.scrollTop;null!=this.embedViewport&&(Editor.inlineFullscreen?(f-=this.embedViewport.x,k-=this.embedViewport.y):
(f+=this.embedViewport.x,k+=this.embedViewport.y));return{x:f,y:k,tx:c.x,ty:c.y}};EditorUi.prototype.restoreScrollState=function(c){var f=this.editor.graph.view.scale,k=this.editor.graph.view.translate;this.diagramContainer.scrollLeft=c.x+(k.x-c.tx)*f;this.diagramContainer.scrollTop=c.y+(k.y-c.ty)*f};EditorUi.prototype.installStatusMinimizer=function(c){c=null!=c?c:this.statusContainer.parentNode;var f=!1;mxEvent.addListener(c,"mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&
-""!=this.editor.getStatus()&&(this.statusContainer.style.display="inline-flex")}));mxEvent.addListener(c,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||f||(this.statusContainer.style.display="none")}));var k=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var A=null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:null;f=null!=A&&null!=A.getAttribute("class");if(!f&&null!=A){A=
-A.getAttribute("title");var z=this.getCurrentFile();z=null!=z?z.savingStatusKey:DrawioFile.prototype.savingStatusKey;A==mxResources.get(z)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(z))+'..."src="'+Editor.tailSpin+'"></div>',f=!0)}this.statusContainer.style.display="none";A=32>=c.clientWidth;c.style.visibility=A&&""==this.editor.getStatus()?"hidden":"";if(A||f)this.statusContainer.style.display="inline-flex",f=!0}else"simple"==Editor.currentTheme?
+""!=this.editor.getStatus()&&(this.statusContainer.style.display="inline-flex")}));mxEvent.addListener(c,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||f||(this.statusContainer.style.display="none")}));var k=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var B=null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:null;f=null!=B&&null!=B.getAttribute("class");if(!f&&null!=B){B=
+B.getAttribute("title");var z=this.getCurrentFile();z=null!=z?z.savingStatusKey:DrawioFile.prototype.savingStatusKey;B==mxResources.get(z)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(z))+'..."src="'+Editor.tailSpin+'"></div>',f=!0)}this.statusContainer.style.display="none";B=32>=c.clientWidth;c.style.visibility=B&&""==this.editor.getStatus()?"hidden":"";if(B||f)this.statusContainer.style.display="inline-flex",f=!0}else"simple"==Editor.currentTheme?
(this.statusContainer.style.display="inline-flex",this.statusContainer.style.display=0==this.statusContainer.clientWidth?"none":"inline-flex"):this.statusContainer.style.display="inline-flex"});this.editor.addListener("statusChanged",k);k()};EditorUi.prototype.switchTheme=function(c){this.isDefaultTheme(c)&&null!=this.formatContainer&&(this.formatContainer.style.left="",this.formatContainer.style.zIndex="1",this.formatContainer.style.border="",null!=this.footerContainer&&this.footerContainer.parentNode!=
this.formatContainer.parentNode&&this.footerContainer.parentNode.insertBefore(this.formatContainer,this.footerContainer),null!=this.sidebarContainer&&this.formatContainer.parentNode!=this.sidebarContainer.parentNode&&this.formatContainer.parentNode.insertBefore(this.sidebarContainer,this.formatContainer));this.destroyWindows();this.updateUserElement();this.updateDefaultStyles();this.switchThemeConstants(c);this.switchCssForTheme(c);this.createWrapperForTheme(c);this.createMainMenuForTheme(c);this.createFooterMenuForTheme(c);
this.createPickerMenuForTheme(c);this.createMenubarForTheme(c);this.sidebarContainer.style.display="";if("sketch"==c){this.createFormatWindow();this.formatContainer.style.left="0px";this.formatContainer.style.top="0px";this.formatContainer.style.width="";this.formatContainer.style.zIndex="";this.formatContainer.style.border="none";var f=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);this.createShapesWindow();this.sidebarContainer.className="";this.sidebarContainer.style.position=
@@ -3809,32 +3824,32 @@ EditorUi.prototype.createWrapperForTheme=function(c){null!=this.sketchWrapperElt
function(c){};EditorUi.prototype.createPickerMenuForTheme=function(c){};EditorUi.prototype.getNetworkStatus=function(){var c=null;if(this.isOffline(!0))c=mxResources.get("offline");else{var f=this.getCurrentFile();null!=f&&(f.invalidChecksum?c=mxResources.get("error")+": "+mxResources.get("checksum"):null==f.sync||f.sync.enabled&&f.sync.isRealtimeActive()||"atlassian"==this.getServiceName()?null==f.sync||f.sync.isConnected()?f.isRealtimeEnabled()&&f.isRealtimeSupported()&&1<f.getRealtimeState()&&
(c=f.getRealtimeError(),c=mxResources.get("realtimeCollaboration")+": "+(null!=c&&null!=c.message?c.message:mxResources.get("error"))):c=mxResources.get("notConnected"):c=mxResources.get("realtimeCollaboration")+": "+mxResources.get("disabled"))}return c};EditorUi.prototype.createMenubarForTheme=function(c){null!=this.statusContainer&&(this.statusContainer.style.flexGrow="",this.statusContainer.style.flexShrink="",this.statusContainer.style.width="",this.statusContainer.style.marginTop="",this.statusContainer.style.justifyContent=
"",this.statusContainer.style.opacity="",this.menubar.container.appendChild(this.statusContainer));null!=this.userElement&&this.menubarContainer.appendChild(this.userElement);c=this.menubar.langIcon;null!=c&&(c.style.position="absolute",c.style.height="18px",c.style.width="18px",c.style.flexShrink="",c.style.opacity="",this.menubarContainer.parentNode.insertBefore(c,this.menubarContainer));null!=this.buttonContainer&&(this.buttonContainer.style.display="",this.buttonContainer.style.padding="",this.menubar.container.appendChild(this.buttonContainer))};
-EditorUi.prototype.createMenu=function(c,f,k,A){k=null!=k?k:"geToolbarButton";var z=this.menus.get(c);A=this.menubar.addMenu(mxResources.get(c),z.funct,null,A);A.className=k;A.style.display="inline-block";A.style.cursor="pointer";A.style.height="24px";A.setAttribute("title",mxResources.get(c));this.menus.menuCreated(z,A,k);null!=f&&(A.style.backgroundImage="url("+f+")",A.style.backgroundPosition="center center",A.style.backgroundRepeat="no-repeat",A.style.backgroundSize="100% 100%",A.style.width=
-"24px",A.innerText="");return A};EditorUi.prototype.createToolbarButton=function(c,f,k,A){A=null!=A?A:24;var z=document.createElement("a");z.className="geToolbarButton geAdaptiveAsset";z.setAttribute("title",f);z.style.backgroundImage="url("+c+")";z.style.backgroundPosition="center center";z.style.backgroundRepeat="no-repeat";z.style.backgroundSize="100% 100%";z.style.display="inline-block";z.style.cursor="pointer";z.style.marginLeft="6px";z.style.width=A+"px";z.style.height=A+"px";z.style.flexShrink=
-"0";z.style.flexGrow="0";null!=k&&(mxEvent.addListener(z,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(C){C.preventDefault()})),mxEvent.addListener(z,"click",function(C){"disabled"!=z.getAttribute("disabled")&&k(C);mxEvent.consume(C)}));return z};EditorUi.prototype.createMenuItem=function(c,f,k){var A=this.actions.get(c),z=null!=A?A.funct:null,C=this.createToolbarButton(f,mxResources.get(c)+(null!=A&&null!=A.shortcut?" ("+A.shortcut+")":""),z);null==A||k||(c=function(){A.isEnabled()?
-(C.removeAttribute("disabled"),C.style.cursor="pointer"):(C.setAttribute("disabled","disabled"),C.style.cursor="default");C.style.opacity=A.isEnabled()?"":"0.2"},this.editor.graph.addListener("enabledChanged",c),A.addListener("stateChanged",c),c());return C};EditorUi.prototype.createFormatWindow=function(){if(null==this.formatWindow){var c=Math.max(10,this.diagramContainer.parentNode.clientWidth-256),f="1"==urlParams.embedInline?580:"1"==urlParams.sketch?580:Math.min(566,this.editor.graph.container.clientHeight-
-10);this.formatWindow=new WrapperWindow(this,mxResources.get("format"),c,60,240,f,mxUtils.bind(this,function(z){z.appendChild(this.formatContainer)}));this.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.formatWindow.window.fit()}));var k=this.formatWindow.window.toggleMinimized,A=240;this.formatWindow.window.toggleMinimized=function(){k.apply(this,arguments);this.minimized?(A=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",
-this.div.style.left=parseInt(this.div.style.left)+A-140+"px"):(this.div.style.width=A+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-A+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(z){mxEvent.getSource(z)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}));this.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80);"sketch"==Editor.currentTheme?
+EditorUi.prototype.createMenu=function(c,f,k,B){k=null!=k?k:"geToolbarButton";var z=this.menus.get(c);B=this.menubar.addMenu(mxResources.get(c),z.funct,null,B);B.className=k;B.style.display="inline-block";B.style.cursor="pointer";B.style.height="24px";B.setAttribute("title",mxResources.get(c));this.menus.menuCreated(z,B,k);null!=f&&(B.style.backgroundImage="url("+f+")",B.style.backgroundPosition="center center",B.style.backgroundRepeat="no-repeat",B.style.backgroundSize="100% 100%",B.style.width=
+"24px",B.innerText="");return B};EditorUi.prototype.createToolbarButton=function(c,f,k,B){B=null!=B?B:24;var z=document.createElement("a");z.className="geToolbarButton geAdaptiveAsset";z.setAttribute("title",f);z.style.backgroundImage="url("+c+")";z.style.backgroundPosition="center center";z.style.backgroundRepeat="no-repeat";z.style.backgroundSize="100% 100%";z.style.display="inline-block";z.style.cursor="pointer";z.style.marginLeft="6px";z.style.width=B+"px";z.style.height=B+"px";z.style.flexShrink=
+"0";z.style.flexGrow="0";null!=k&&(mxEvent.addListener(z,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(C){C.preventDefault()})),mxEvent.addListener(z,"click",function(C){"disabled"!=z.getAttribute("disabled")&&k(C);mxEvent.consume(C)}));return z};EditorUi.prototype.createMenuItem=function(c,f,k){var B=this.actions.get(c),z=null!=B?B.funct:null,C=this.createToolbarButton(f,mxResources.get(c)+(null!=B&&null!=B.shortcut?" ("+B.shortcut+")":""),z);null==B||k||(c=function(){B.isEnabled()?
+(C.removeAttribute("disabled"),C.style.cursor="pointer"):(C.setAttribute("disabled","disabled"),C.style.cursor="default");C.style.opacity=B.isEnabled()?"":"0.2"},this.editor.graph.addListener("enabledChanged",c),B.addListener("stateChanged",c),c());return C};EditorUi.prototype.createFormatWindow=function(){if(null==this.formatWindow){var c=Math.max(10,this.diagramContainer.parentNode.clientWidth-256),f="1"==urlParams.embedInline?580:"1"==urlParams.sketch?580:Math.min(566,this.editor.graph.container.clientHeight-
+10);this.formatWindow=new WrapperWindow(this,mxResources.get("format"),c,60,240,f,mxUtils.bind(this,function(z){z.appendChild(this.formatContainer)}));this.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.formatWindow.window.fit()}));var k=this.formatWindow.window.toggleMinimized,B=240;this.formatWindow.window.toggleMinimized=function(){k.apply(this,arguments);this.minimized?(B=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",
+this.div.style.left=parseInt(this.div.style.left)+B-140+"px"):(this.div.style.width=B+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-B+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(z){mxEvent.getSource(z)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}));this.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80);"sketch"==Editor.currentTheme?
(c=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,(1200>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>c)&&this.formatWindow.window.toggleMinimized()):this.formatWindow.window.setVisible(!1)}};var G=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(c){var f=this.formatWindow;null!=f?f.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):G.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=
-function(c){if(this.isShapesPanelVisible()!=c){var f=EditorUi.prototype.hsplitPosition;0==f&&(f=this.defaultSidebarWidth);var k=this.hsplitPosition,A=mxUtils.bind(this,function(){this.hsplitPosition=z;this.refresh();this.diagramContainer.scrollLeft-=k-this.hsplitPosition}),z=c?f:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==z?"translateX(0)":"translateX(-100%)");0!=z&&A();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",
-0==z?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==z&&A()}),
+function(c){if(this.isShapesPanelVisible()!=c){var f=EditorUi.prototype.hsplitPosition;0==f&&(f=this.defaultSidebarWidth);var k=this.hsplitPosition,B=mxUtils.bind(this,function(){this.hsplitPosition=z;this.refresh();this.diagramContainer.scrollLeft-=k-this.hsplitPosition}),z=c?f:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==z?"translateX(0)":"translateX(-100%)");0!=z&&B();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",
+0==z?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==z&&B()}),
300)}),10)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var S=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():S.apply(this,arguments)};var F=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(c){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){c=null!=c?c:!0;if("1"!=urlParams.embedInline){var f=this.container.clientWidth;this.container==
-document.body&&(f=document.body.clientWidth||document.documentElement.clientWidth);var k=this.getDiagramContainerOffset();var A=k.x;var z=k.y;"simple"==Editor.currentTheme&&(z+=this.sketchMainMenuElt.offsetHeight);this.diagramContainer.style.top=z+"px";this.diagramContainer.style.bottom="0";"simple"==Editor.currentTheme?(this.hsplit.style.top=this.sketchMainMenuElt.offsetHeight+"px",this.sidebarContainer.style.top=this.hsplit.style.top,this.formatContainer.style.top=this.hsplit.style.top,f=Math.max(0,
-Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-this.formatWidth,Math.min(this.hsplitPosition,f-this.splitSize-40))),this.sidebarContainer.style.width=f+"px",this.diagramContainer.style.left=f+A+"px",this.tabContainer.style.left=f+"px",this.tabContainer.style.right=this.formatWidth+1+"px",this.sketchMainMenuElt.style.left="0px",this.sketchMainMenuElt.style.right="0px",this.hsplit.style.left=f+"px",this.diagramContainer.style.right=this.formatWidth+"px",
-this.formatContainer.style.width=this.formatWidth+"px",this.hsplit.style.bottom=this.tabContainer.offsetHeight+"px",this.diagramContainer.style.bottom=this.hsplit.style.bottom,this.checkTabScrollerOverflow()):(this.diagramContainer.style.left=k.x+"px",this.diagramContainer.style.right="0")}c&&this.editor.graph.sizeDidChange()}else F.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(c){var f=mxUtils.bind(this,function(A){A=this.createMenu(A,null,"geTitle");A.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";
-c.appendChild(A);return A});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=this.actions.get("newLibrary"))f=document.createElement("div"),f.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;",f.className="geTitle",mxUtils.write(f,mxResources.get("newLibrary")),c.appendChild(f),mxEvent.addListener(f,
+document.body&&(f=document.body.clientWidth||document.documentElement.clientWidth);var k=this.getDiagramContainerOffset();var B=k.x;var z=k.y;"simple"==Editor.currentTheme&&(z+=this.sketchMainMenuElt.offsetHeight);this.diagramContainer.style.top=z+"px";this.diagramContainer.style.bottom="0";"simple"==Editor.currentTheme?(this.hsplit.style.top=this.sketchMainMenuElt.offsetHeight+"px",this.sidebarContainer.style.top=this.hsplit.style.top,this.formatContainer.style.top=this.hsplit.style.top,f=Math.max(0,
+Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-this.formatWidth,Math.min(this.hsplitPosition,f-this.splitSize-40))),this.sidebarContainer.style.width=f+"px",this.diagramContainer.style.left=f+B+"px",this.tabContainer.style.left=f+"px",this.tabContainer.style.right=this.formatWidth+1+"px",this.sketchMainMenuElt.style.left="0px",this.sketchMainMenuElt.style.right="0px",this.hsplit.style.left=f+"px",this.diagramContainer.style.right=this.formatWidth+"px",
+this.formatContainer.style.width=this.formatWidth+"px",this.hsplit.style.bottom=this.tabContainer.offsetHeight+"px",this.diagramContainer.style.bottom=this.hsplit.style.bottom,this.checkTabScrollerOverflow()):(this.diagramContainer.style.left=k.x+"px",this.diagramContainer.style.right="0")}c&&this.editor.graph.sizeDidChange()}else F.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(c){var f=mxUtils.bind(this,function(B){B=this.createMenu(B,null,"geTitle");B.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";
+c.appendChild(B);return B});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=this.actions.get("newLibrary"))f=document.createElement("div"),f.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;",f.className="geTitle",mxUtils.write(f,mxResources.get("newLibrary")),c.appendChild(f),mxEvent.addListener(f,
"click",this.actions.get("newLibrary").funct),f=f.cloneNode(!1),f.style.left="50%",f.style.borderLeftStyle="solid",mxUtils.write(f,mxResources.get("openLibrary")),c.appendChild(f),mxEvent.addListener(f,"click",this.actions.get("openLibrary").funct);else{var k=f("newLibrary");k.style.fontSize="11px";k.style.left="0";k=f("openLibraryFrom");k.style.borderLeftStyle="solid";k.style.fontSize="11px";k.style.left="50%"}c.appendChild(this.sidebarContainer);c.style.overflow="hidden"};EditorUi.prototype.createShapesWindow=
-function(){if(null==this.sidebarWindow){var c=Math.min(this.diagramContainer.parentNode.clientWidth-10,218),f="1"==urlParams.embedInline?650:Math.min(this.diagramContainer.parentNode.clientHeight,650),k="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;this.sidebarWindow=new WrapperWindow(this,mxResources.get("shapes"),k&&"1"!=urlParams.embedInline?66:10,k&&"1"!=urlParams.embedInline?Math.max(30,(this.diagramContainer.parentNode.clientHeight-f)/2):56,c-6,f-6,mxUtils.bind(this,function(A){this.createShapesPanel(A)}));
+function(){if(null==this.sidebarWindow){var c=Math.min(this.diagramContainer.parentNode.clientWidth-10,218),f="1"==urlParams.embedInline?650:Math.min(this.diagramContainer.parentNode.clientHeight,650),k="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;this.sidebarWindow=new WrapperWindow(this,mxResources.get("shapes"),k&&"1"!=urlParams.embedInline?66:10,k&&"1"!=urlParams.embedInline?Math.max(30,(this.diagramContainer.parentNode.clientHeight-f)/2):56,c-6,f-6,mxUtils.bind(this,function(B){this.createShapesPanel(B)}));
this.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.sidebarWindow.window.fit()}));this.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90);this.sidebarWindow.window.setVisible(!1)}};EditorUi.prototype.setSketchMode=function(c){this.spinner.spin(document.body,mxResources.get("working")+"...")&&window.setTimeout(mxUtils.bind(this,function(){this.spinner.stop();this.doSetSketchMode(c);null==urlParams.rough&&(mxSettings.settings.sketchMode=c,mxSettings.save());
this.fireEvent(new mxEventObject("sketchModeChanged"))}),0)};EditorUi.prototype.setAndPersistDarkMode=function(c){var f=c;"auto"==c&&(f=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode(f);mxSettings.settings.darkMode=c;mxSettings.save();c=mxSettings.getUi();null==urlParams.ui&&"dark"==c&&this.setCurrentTheme("kennedy",!0)};EditorUi.prototype.setAndPersistLanguage=function(c){mxSettings.setLanguage(c);mxSettings.save();mxClient.language=c;mxResources.loadDefaultBundle=
!1;mxResources.add(RESOURCE_BASE)};EditorUi.prototype.setAndPersistHighContrast=function(c){this.setHighContrast(c);Editor.isSettingsEnabled()&&(mxSettings.settings.highContrast=c,mxSettings.save())};EditorUi.prototype.isHighContrast=function(){var c=document.getElementById("high-contrast-stylesheet");return null!=c&&window.matchMedia?(c=c.getAttribute("media"),"all"==c||"not all"!=c&&window.matchMedia("(forced-colors: active)").matches):!1};EditorUi.prototype.setHighContrast=function(c){var f=document.getElementById("high-contrast-stylesheet");
-if(null!=f&&window.matchMedia){var k=window.matchMedia("(forced-colors: active)").matches,A=f.getAttribute("media");(A="all"==A||"not all"!=A&&k)&&!c?f.setAttribute("media",k?"not all":"(forced-colors: active)"):!A&&c&&f.setAttribute("media",k?"(forced-colors: active)":"all")}};EditorUi.prototype.isRulerVisible=function(){return null!=this.ruler};EditorUi.prototype.setRulerVisible=function(c){var f=this.getDiagramContainerOffset();mxSettings.setRulerOn(c);mxSettings.save();c||null==this.ruler?c&&
+if(null!=f&&window.matchMedia){var k=window.matchMedia("(forced-colors: active)").matches,B=f.getAttribute("media");(B="all"==B||"not all"!=B&&k)&&!c?f.setAttribute("media",k?"not all":"(forced-colors: active)"):!B&&c&&f.setAttribute("media",k?"(forced-colors: active)":"all")}};EditorUi.prototype.isRulerVisible=function(){return null!=this.ruler};EditorUi.prototype.setRulerVisible=function(c){var f=this.getDiagramContainerOffset();mxSettings.setRulerOn(c);mxSettings.save();c||null==this.ruler?c&&
null==this.ruler&&(this.ruler=new mxDualRuler(this,this.editor.graph.view.unit)):(this.ruler.destroy(),this.ruler=null);this.refresh();this.fireEvent(new mxEventObject("rulerVisibleChanged"));c=this.getDiagramContainerOffset();this.diagramContainer.scrollLeft+=c.x-f.x;this.diagramContainer.scrollTop+=c.x-f.x};EditorUi.prototype.isAutoDarkModeSupported=function(){return null!=window.matchMedia};EditorUi.prototype.isAutoDarkMode=function(c){return!c&&"auto"==urlParams.dark||Editor.isSettingsEnabled()&&
"auto"==mxSettings.settings.darkMode};EditorUi.prototype.setDarkMode=function(c){Editor.darkMode=c;c=mxUtils.isAncestorNode(document.body,this.container)||null==this.editor?this.container:this.editor.graph.container;mxConstants.DROP_TARGET_COLOR=Editor.isDarkMode()?"#00ff00":"#0000ff";null!=c&&(Editor.isDarkMode()?(c.classList.add("geDarkMode"),c.style.colorScheme="dark"):(c.classList.remove("geDarkMode"),c.style.colorScheme="light"));null!=this.ruler&&this.ruler.updateStyle();this.fireEvent(new mxEventObject("darkModeChanged"))};
EditorUi.prototype.setPagesVisible=function(c){Editor.pagesVisible!=c&&(Editor.pagesVisible=c,mxSettings.settings.pagesVisible=c,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototype.setSidebarTitles=function(c,f){this.sidebar.sidebarTitles!=c&&(this.sidebar.sidebarTitles=c,this.sidebar.refresh(),Editor.isSettingsEnabled()&&f&&(mxSettings.settings.sidebarTitles=c,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.setInlineFullscreen=
-function(c){Editor.inlineFullscreen!=c&&(this.diagramContainer.setAttribute("data-scrollState",JSON.stringify(this.saveScrollState())),(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:c,rect:this.diagramContainer.getBoundingClientRect()}),"*"))};EditorUi.prototype.inlineSizeChanged=function(){var c=this.sketchFooterMenuElt,f=this.sketchMainMenuElt,k=this.sketchPickerMenuElt,A=this.editor.graph;if(Editor.inlineFullscreen)f.style.left="10px",f.style.top="10px",k.style.left=
+function(c){Editor.inlineFullscreen!=c&&(this.diagramContainer.setAttribute("data-scrollState",JSON.stringify(this.saveScrollState())),(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:c,rect:this.diagramContainer.getBoundingClientRect()}),"*"))};EditorUi.prototype.inlineSizeChanged=function(){var c=this.sketchFooterMenuElt,f=this.sketchMainMenuElt,k=this.sketchPickerMenuElt,B=this.editor.graph;if(Editor.inlineFullscreen)f.style.left="10px",f.style.top="10px",k.style.left=
"10px",k.style.top="60px",c.style.top="10px",c.style.right="12px",c.style.left="",null==this.diagramContainer.getAttribute("data-bounds")&&(this.diagramContainer.setAttribute("data-bounds",this.diagramContainer.style.top+" "+this.diagramContainer.style.left+" "+this.diagramContainer.style.width+" "+this.diagramContainer.style.height),this.diagramContainer.style.top="0px",this.diagramContainer.style.left="0px",this.diagramContainer.style.bottom="0px",this.diagramContainer.style.right="0px",this.diagramContainer.style.width=
-"",this.diagramContainer.style.height="");else{var z=this.diagramContainer.getAttribute("data-bounds");if(null!=z){this.diagramContainer.removeAttribute("data-bounds");A.getGraphBounds();var C=z.split(" ");A=mxUtils.getDocumentSize();this.diagramContainer.style.top=C[0];this.diagramContainer.style.left=C[1];z=parseInt(C[2]);C=parseInt(C[3]);z=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,z):z,A.width-80);C=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,C):C,A.height-
+"",this.diagramContainer.style.height="");else{var z=this.diagramContainer.getAttribute("data-bounds");if(null!=z){this.diagramContainer.removeAttribute("data-bounds");B.getGraphBounds();var C=z.split(" ");B=mxUtils.getDocumentSize();this.diagramContainer.style.top=C[0];this.diagramContainer.style.left=C[1];z=parseInt(C[2]);C=parseInt(C[3]);z=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,z):z,B.width-80);C=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,C):C,B.height-
80);this.diagramContainer.style.width=z+"px";this.diagramContainer.style.height=C+"px";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",rect:this.diagramContainer.getBoundingClientRect()}),"*")}f.style.left=this.diagramContainer.offsetLeft+"px";f.style.top=this.diagramContainer.offsetTop-f.offsetHeight-4+"px";k.style.display="";k.style.left=this.diagramContainer.offsetLeft-k.offsetWidth-4+"px";k.style.top=
this.diagramContainer.offsetTop+"px";c.style.left=this.diagramContainer.offsetLeft+this.diagramContainer.offsetWidth-c.offsetWidth+"px";c.style.top=f.style.top;c.style.right="";this.bottomResizer.style.left=this.diagramContainer.offsetLeft+(this.diagramContainer.offsetWidth-this.bottomResizer.offsetWidth)/2+"px";this.bottomResizer.style.top=this.diagramContainer.offsetTop+this.diagramContainer.offsetHeight-this.bottomResizer.offsetHeight/2-1+"px";this.rightResizer.style.left=this.diagramContainer.offsetLeft+
this.diagramContainer.offsetWidth-this.rightResizer.offsetWidth/2-1+"px";this.rightResizer.style.top=this.diagramContainer.offsetTop+(this.diagramContainer.offsetHeight-this.bottomResizer.offsetHeight)/2+"px"}this.bottomResizer.style.visibility=Editor.inlineFullscreen?"hidden":"";this.rightResizer.style.visibility=this.bottomResizer.style.visibility;f.style.visibility="";c.style.visibility=""};EditorUi.prototype.doSetSketchMode=function(c){Editor.sketchMode!=c&&(Editor.sketchMode=c,this.updateDefaultStyles())};
@@ -3843,77 +3858,77 @@ EditorUi.prototype.updateDefaultStyles=function(){var c=this.editor.graph;c.defa
"1",c.defaultEdgeStyle.rounded="0",c.defaultEdgeStyle.jettySize="auto",c.defaultEdgeStyle.orthogonalLoop="1",c.defaultEdgeStyle.endArrow="open",c.defaultEdgeStyle.endSize="14",c.defaultEdgeStyle.startSize="14",c.defaultEdgeStyle.sourcePerimeterSpacing="8",c.defaultEdgeStyle.targetPerimeterSpacing="8");if(null==Editor.config||null==Editor.config.defaultFonts){if(null==Editor.config||null==Editor.config.defaultVertexStyle&&null==Editor.config.defaultEdgeStyle){if("sketch"==Editor.currentTheme&&"1"!=
urlParams.embedInline||Editor.sketchMode)c.defaultVertexStyle.fontFamily=Editor.sketchFontFamily,c.defaultVertexStyle.fontSource=Editor.sketchFontSource,c.defaultEdgeStyle.fontFamily=Editor.sketchFontFamily,c.defaultEdgeStyle.fontSource=Editor.sketchFontSource;Editor.sketchMode&&(c.defaultVertexStyle.sketch="1",c.defaultVertexStyle.curveFitting=Editor.sketchDefaultCurveFitting,c.defaultVertexStyle.jiggle=Editor.sketchDefaultJiggle,c.defaultVertexStyle.hachureGap="4",c.defaultEdgeStyle.sketch="1",
c.defaultEdgeStyle.curveFitting=Editor.sketchDefaultCurveFitting,c.defaultEdgeStyle.jiggle=Editor.sketchDefaultJiggle,c.defaultEdgeStyle.hachureGap="4")}this.menus.defaultFonts="sketch"==Editor.currentTheme?Menus.prototype.defaultFonts.concat(Editor.sketchFonts):Menus.prototype.defaultFonts}c.currentVertexStyle=mxUtils.clone(c.defaultVertexStyle);c.currentEdgeStyle=mxUtils.clone(c.defaultEdgeStyle);this.clearDefaultStyle()};EditorUi.prototype.getLinkTitle=function(c){var f=Graph.prototype.getLinkTitle.apply(this,
-arguments);if(Graph.isPageLink(c)){var k=c.indexOf(",");0<k&&(f=this.getPageById(c.substring(k+1)),f=null!=f?f.getName():mxResources.get("pageNotFound"))}else"data:"==c.substring(0,5)&&(f=this.getCustomLinkTitle(c));return f};EditorUi.prototype.getCustomLinkTitle=function(c){var f=mxResources.get("action");if("data:action/json,"==c.substring(0,17))try{var k=JSON.parse(c.substring(17));null!=k&&null!=k.title&&(f=k.title)}catch(A){}return f};EditorUi.prototype.handleCustomLink=function(c,f){if(Graph.isPageLink(c))if(f=
+arguments);if(Graph.isPageLink(c)){var k=c.indexOf(",");0<k&&(f=this.getPageById(c.substring(k+1)),f=null!=f?f.getName():mxResources.get("pageNotFound"))}else"data:"==c.substring(0,5)&&(f=this.getCustomLinkTitle(c));return f};EditorUi.prototype.getCustomLinkTitle=function(c){var f=mxResources.get("action");if("data:action/json,"==c.substring(0,17))try{var k=JSON.parse(c.substring(17));null!=k&&null!=k.title&&(f=k.title)}catch(B){}return f};EditorUi.prototype.handleCustomLink=function(c,f){if(Graph.isPageLink(c))if(f=
c.indexOf(","),c=this.getPageById(c.substring(f+1)))this.selectPage(c);else throw Error(mxResources.get("pageNotFound")||"Page not found");else this.editor.graph.handleCustomLink(c,f)};EditorUi.prototype.installSettings=function(){if(Editor.isSettingsEnabled()){var c=this.editor.graph;Editor.pagesVisible=mxSettings.settings.pagesVisible;ColorDialog.recentColors=mxSettings.getRecentColors();if(isLocalStorage)try{window.addEventListener("storage",mxUtils.bind(this,function(f){f.key==mxSettings.key&&
(mxSettings.load(),ColorDialog.recentColors=mxSettings.getRecentColors(),this.menus.customFonts=mxSettings.getCustomFonts())}),!1)}catch(f){}this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]));this.menus.customFonts=mxSettings.getCustomFonts();this.addListener("customFontsChanged",mxUtils.bind(this,function(f,k){mxSettings.setCustomFonts(this.menus.customFonts);mxSettings.save()}));c.connectionHandler.setCreateTarget(mxSettings.isCreateTarget());this.fireEvent(new mxEventObject("copyConnectChanged"));
this.addListener("copyConnectChanged",mxUtils.bind(this,function(f,k){mxSettings.setCreateTarget(c.connectionHandler.isCreateTarget());mxSettings.save()}));c.pageFormat=null!=c.defaultPageFormat?c.defaultPageFormat:mxSettings.getPageFormat();this.addListener("pageFormatChanged",mxUtils.bind(this,function(f,k){mxSettings.setPageFormat(c.pageFormat);mxSettings.save()}));c.view.defaultDarkGridColor=mxSettings.getGridColor(!0);c.view.defaultGridColor=mxSettings.getGridColor(!1);c.view.gridColor="light-dark("+
c.view.defaultGridColor+", "+c.view.defaultDarkGridColor+")";this.addListener("gridColorChanged",mxUtils.bind(this,function(f,k){mxSettings.setGridColor(c.view.defaultGridColor,!1);mxSettings.setGridColor(c.view.defaultDarkGridColor,!0);mxSettings.save()}));if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(f,k){mxSettings.setAutosave(this.editor.autosave);mxSettings.save()})),this.editor.autosave=mxSettings.getAutosave();if(!this.editor.chromeless||
this.editor.editable)null!=mxSettings.settings.enableAnimations&&(Editor.enableAnimations=mxSettings.settings.enableAnimations),this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(f,k){mxSettings.settings.enableAnimations=Editor.enableAnimations;mxSettings.save()}));null!=this.sidebar&&(null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes?(this.sidebar.searchShapes(decodeURIComponent(urlParams["search-shapes"])),this.sidebar.showEntries("search")):(this.sidebar.showPalette("search",
mxSettings.settings.search),this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()})}};EditorUi.prototype.copyImage=function(c,f,k){try{null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,
-function(A,z){try{this.spinner.stop();var C=this.createImageDataUri(A,f,"png"),I=parseInt(z.getAttribute("width")),L=parseInt(z.getAttribute("height"));this.writeImageToClipboard(C,I,L,mxUtils.bind(this,function(K){this.handleError(K)}))}catch(K){this.handleError(K)}}),null,null,null,mxUtils.bind(this,function(A){this.spinner.stop();this.handleError(A)}),null,null,null!=k?k:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<c.length?
-c:null)}catch(A){this.handleError(A)}};EditorUi.prototype.copyCells=function(c,f){var k=this.editor.graph;if(k.isSelectionEmpty())c.innerText="";else{var A=mxUtils.sortCells(k.model.getTopmostCells(k.getSelectionCells())),z=mxUtils.getXml(k.encodeCells(A));mxUtils.setTextContent(c,encodeURIComponent(z));f?(k.removeCells(A,!1),k.lastPasteXml=null):(k.lastPasteXml=z,k.pasteCounter=0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeCipboard){var f=
-this.editor.graph;f.isSelectionEmpty()||(c=mxUtils.sortCells(f.getExportableCells(f.model.getTopmostCells(f.getSelectionCells()))),f=mxUtils.getXml(f.encodeCells(c)),navigator.clipboard.writeText(f))}return c};EditorUi.prototype.pasteXml=function(c,f,k,A,z){z=null!=z?z:!0;var C=this.editor.graph,I=null;C.lastPasteXml==c?C.pasteCounter++:(C.lastPasteXml=c,C.pasteCounter=0);var L=C.pasteCounter*C.gridSize;if(k||this.isCompatibleString(c))I=this.importXml(c,L,L),C.setSelectionCells(I);else if(f&&1==
-C.getSelectionCount()){z=C.getStartEditingCell(C.getSelectionCell(),A);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&"image"==C.getCurrentCellStyle(z)[mxConstants.STYLE_SHAPE])C.setCellStyles(mxConstants.STYLE_IMAGE,c,[z]);else{C.model.beginUpdate();try{C.labelChanged(z,c),Graph.isLink(c)&&C.setLinkForCell(z,c)}finally{C.model.endUpdate()}}C.setSelectionCell(z)}else I=C.getInsertPoint(),C.isMouseInsertPoint()&&(L=0,C.lastPasteXml==c&&0<C.pasteCounter&&C.pasteCounter--),I=this.insertTextAt(c,I.x+L,
-I.y+L,z),C.setSelectionCells(I);C.isSelectionEmpty()||(C.scrollCellToVisible(C.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(C.view.getState(C.getSelectionCell())));return I};EditorUi.prototype.pasteCells=function(c,f,k,A){if(!mxEvent.isConsumed(c)){var z=f,C=!1;if(k&&null!=c.clipboardData&&c.clipboardData.getData){var I=c.clipboardData.getData("text/plain"),L=!1;if(null!=I&&0<I.length&&"%3CmxGraphModel%3E"==I.substring(0,18))try{var K=decodeURIComponent(I);this.isCompatibleString(K)&&
+function(B,z){try{this.spinner.stop();var C=this.createImageDataUri(B,f,"png"),I=parseInt(z.getAttribute("width")),L=parseInt(z.getAttribute("height"));this.writeImageToClipboard(C,I,L,mxUtils.bind(this,function(K){this.handleError(K)}))}catch(K){this.handleError(K)}}),null,null,null,mxUtils.bind(this,function(B){this.spinner.stop();this.handleError(B)}),null,null,null!=k?k:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<c.length?
+c:null)}catch(B){this.handleError(B)}};EditorUi.prototype.copyCells=function(c,f){var k=this.editor.graph;if(k.isSelectionEmpty())c.innerText="";else{var B=mxUtils.sortCells(k.model.getTopmostCells(k.getSelectionCells())),z=mxUtils.getXml(k.encodeCells(B));mxUtils.setTextContent(c,encodeURIComponent(z));f?(k.removeCells(B,!1),k.lastPasteXml=null):(k.lastPasteXml=z,k.pasteCounter=0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeCipboard){var f=
+this.editor.graph;f.isSelectionEmpty()||(c=mxUtils.sortCells(f.getExportableCells(f.model.getTopmostCells(f.getSelectionCells()))),f=mxUtils.getXml(f.encodeCells(c)),navigator.clipboard.writeText(f))}return c};EditorUi.prototype.pasteXml=function(c,f,k,B,z){z=null!=z?z:!0;var C=this.editor.graph,I=null;C.lastPasteXml==c?C.pasteCounter++:(C.lastPasteXml=c,C.pasteCounter=0);var L=C.pasteCounter*C.gridSize;if(k||this.isCompatibleString(c))I=this.importXml(c,L,L),C.setSelectionCells(I);else if(f&&1==
+C.getSelectionCount()){z=C.getStartEditingCell(C.getSelectionCell(),B);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&"image"==C.getCurrentCellStyle(z)[mxConstants.STYLE_SHAPE])C.setCellStyles(mxConstants.STYLE_IMAGE,c,[z]);else{C.model.beginUpdate();try{C.labelChanged(z,c),Graph.isLink(c)&&C.setLinkForCell(z,c)}finally{C.model.endUpdate()}}C.setSelectionCell(z)}else I=C.getInsertPoint(),C.isMouseInsertPoint()&&(L=0,C.lastPasteXml==c&&0<C.pasteCounter&&C.pasteCounter--),I=this.insertTextAt(c,I.x+L,
+I.y+L,z),C.setSelectionCells(I);C.isSelectionEmpty()||(C.scrollCellToVisible(C.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(C.view.getState(C.getSelectionCell())));return I};EditorUi.prototype.pasteCells=function(c,f,k,B){if(!mxEvent.isConsumed(c)){var z=f,C=!1;if(k&&null!=c.clipboardData&&c.clipboardData.getData){var I=c.clipboardData.getData("text/plain"),L=!1;if(null!=I&&0<I.length&&"%3CmxGraphModel%3E"==I.substring(0,18))try{var K=decodeURIComponent(I);this.isCompatibleString(K)&&
(L=!0,I=K)}catch(ma){}L=L?null:c.clipboardData.getData("text/html");null!=L&&0<L.length?(z=this.parseHtmlData(L),C="text/plain"!=z.getAttribute("data-type")):null!=I&&0<I.length&&(z=document.createElement("div"),mxUtils.setTextContent(z,L))}I=z.getElementsByTagName("span");if(null!=I&&0<I.length&&"application/vnd.lucid.chart.objects"===I[0].getAttribute("data-lucid-type"))k=I[0].getAttribute("data-lucid-content"),null!=k&&0<k.length&&(this.convertLucidChart(k,mxUtils.bind(this,function(ma){var la=
this.editor.graph;la.lastPasteXml==ma?la.pasteCounter++:(la.lastPasteXml=ma,la.pasteCounter=0);var Y=la.pasteCounter*la.gridSize;la.setSelectionCells(this.importXml(ma,Y,Y));la.scrollCellToVisible(la.getSelectionCell())}),mxUtils.bind(this,function(ma){this.handleError(ma)})),mxEvent.consume(c));else{var O=!1,da="";da=C?null!=z.textContent&&"<mxfile"==z.textContent.substring(0,7)&&"</mxfile>"==z.textContent.substring(z.textContent.length-9)||"<mxGraphModel"==z.textContent.substring(0,13)&&"</mxGraphModel>"==
z.textContent.substring(z.textContent.length-15)?z.textContent.replace(/\u00a0/g," "):z.innerHTML:mxUtils.trim(null==z.innerText?mxUtils.getTextContent(z):z.innerText);try{var ea=da.lastIndexOf("%3E");0<=ea&&ea<da.length-3&&(da=da.substring(0,ea+3))}catch(ma){}try{I=z.getElementsByTagName("span"),(K=null!=I&&0<I.length?mxUtils.trim(decodeURIComponent(I[0].textContent)):decodeURIComponent(da))&&(this.isCompatibleString(K)||0==K.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(O=!0,da=
-K)}catch(ma){}try{if(null!=da&&0<da.length){if(0==da.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var ca=mxUtils.bind(this,function(){try{da=(new MiroImporter).importMiroJson(JSON.parse(da)),this.pasteXml(da,A,O,c)}catch(ma){console.log("Miro import error:",ma)}});"undefined"===typeof MiroImporter?mxscript("js/diagramly/miro/MiroImporter.js",ca):ca()}else this.pasteXml(da,A,O,c,C);try{mxEvent.consume(c)}catch(ma){}}else if(!k){var W=this.editor.graph;W.lastPasteXml=null;W.pasteCounter=
-0}}catch(ma){this.handleError(ma)}}}f.innerHTML="&nbsp;"};EditorUi.prototype.showPrintDialog=function(c,f){var k=320;this.editor.graph.isEnabled()&&(k+=40);null!=this.pages&&1<this.pages.length&&(k+=40,this.editor.graph.isEnabled()||(k+=10));null==f||mxClient.IS_CHROMEAPP||"draw.io"!=this.getServiceName()||(k+=20);this.showDialog((new PrintDialog(this,c,f)).container,320,k,!0,!0)};EditorUi.prototype.print=function(c,f){var k=this.editor,A=k.graph,z=this.getPageIndex(this.currentPage),C=null!=z?z+
-1:1,I=mxUtils.bind(this,function(Y,fa,Z,l){var u=Y.useCssTransforms,H=Y.currentTranslate,U=Y.currentScale,J=Y.view.translate,V=Y.view.scale;Y.useCssTransforms&&(Y.useCssTransforms=!1,Y.currentTranslate=new mxPoint(0,0),Y.currentScale=1,Y.view.translate=new mxPoint(0,0),Y.view.scale=1);var aa=Y.getGraphBounds(),ba=0,ja=0,oa=mxRectangle.fromRectangle(Y.pageFormat),qa=f.fit||f.crop||!Y.pageVisible,ra=f.scale;oa.width=Math.ceil(oa.width*Y.pageScale);oa.height=Math.ceil(oa.height*Y.pageScale);var ua=1;
-if(f.fit){ua=f.sheetsAcross;var za=f.sheetsDown;isNaN(ra)||(oa.width=Math.ceil(oa.width*ra),oa.height=Math.ceil(oa.height*ra));ua=Math.min(oa.height*za/(aa.height/Y.view.scale),oa.width*ua/(aa.width/Y.view.scale))}else ua=isNaN(ra)?1:ra;ua*=1;!qa&&Y.pageVisible?(ra=Y.getPageLayout(),ba-=ra.x*oa.width,ja-=ra.y*oa.height):qa=!0;f.crop&&(f.selection&&(aa=A.getBoundingBox(A.getSelectionCells())),oa.width=(aa.width+1)*ua/Y.view.scale,oa.height=(aa.height+1)*ua/Y.view.scale);oa.width=Math.ceil(1*oa.width);
+K)}catch(ma){}try{if(null!=da&&0<da.length){if(0==da.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var ca=mxUtils.bind(this,function(){try{da=(new MiroImporter).importMiroJson(JSON.parse(da)),this.pasteXml(da,B,O,c)}catch(ma){console.log("Miro import error:",ma)}});"undefined"===typeof MiroImporter?mxscript("js/diagramly/miro/MiroImporter.js",ca):ca()}else this.pasteXml(da,B,O,c,C);try{mxEvent.consume(c)}catch(ma){}}else if(!k){var V=this.editor.graph;V.lastPasteXml=null;V.pasteCounter=
+0}}catch(ma){this.handleError(ma)}}}f.innerHTML="&nbsp;"};EditorUi.prototype.showPrintDialog=function(c,f){var k=320;this.editor.graph.isEnabled()&&(k+=40);null!=this.pages&&1<this.pages.length&&(k+=40,this.editor.graph.isEnabled()||(k+=10));null==f||mxClient.IS_CHROMEAPP||"draw.io"!=this.getServiceName()||(k+=20);this.showDialog((new PrintDialog(this,c,f)).container,320,k,!0,!0)};EditorUi.prototype.print=function(c,f){var k=this.editor,B=k.graph,z=this.getPageIndex(this.currentPage),C=null!=z?z+
+1:1,I=mxUtils.bind(this,function(Y,fa,Z,l){var u=Y.useCssTransforms,H=Y.currentTranslate,U=Y.currentScale,J=Y.view.translate,W=Y.view.scale;Y.useCssTransforms&&(Y.useCssTransforms=!1,Y.currentTranslate=new mxPoint(0,0),Y.currentScale=1,Y.view.translate=new mxPoint(0,0),Y.view.scale=1);var aa=Y.getGraphBounds(),ba=0,ja=0,oa=mxRectangle.fromRectangle(Y.pageFormat),qa=f.fit||f.crop||!Y.pageVisible,ra=f.scale;oa.width=Math.ceil(oa.width*Y.pageScale);oa.height=Math.ceil(oa.height*Y.pageScale);var ua=1;
+if(f.fit){ua=f.sheetsAcross;var za=f.sheetsDown;isNaN(ra)||(oa.width=Math.ceil(oa.width*ra),oa.height=Math.ceil(oa.height*ra));ua=Math.min(oa.height*za/(aa.height/Y.view.scale),oa.width*ua/(aa.width/Y.view.scale))}else ua=isNaN(ra)?1:ra;ua*=1;!qa&&Y.pageVisible?(ra=Y.getPageLayout(),ba-=ra.x*oa.width,ja-=ra.y*oa.height):qa=!0;f.crop&&(f.selection&&(aa=B.getBoundingBox(B.getSelectionCells())),oa.width=(aa.width+1)*ua/Y.view.scale,oa.height=(aa.height+1)*ua/Y.view.scale);oa.width=Math.ceil(1*oa.width);
oa.height=Math.ceil(1*oa.height);l=null!=l?"page/id,"+l:null;if(null==fa){fa=PrintDialog.createPrintPreview(Y,ua,null,0,ba,ja,qa);fa.title=this.getBaseFilename(!0);fa.pageSelector=!1;fa.mathEnabled=!1;ba=f.border;isNaN(ba)||(fa.pageMargin=ba);f.selection&&(fa.isCellVisible=function(sa){return Y.isCellSelected(sa)});var Ba=fa.writeHead;fa.writeHead=function(sa){Ba.apply(this,arguments);mxClient.IS_GC&&(sa.writeln('<style type="text/css">'),sa.writeln("@media print {"),sa.writeln(".MathJax svg { shape-rendering: crispEdges; }"),
sa.writeln("}"),sa.writeln("</style>"));null!=k.fontCss&&(sa.writeln('<style type="text/css">'),sa.writeln(mxUtils.htmlEntities(k.fontCss,!1,!1,!1)),sa.writeln("</style>"));for(var Aa=Y.getCustomFonts(),Ea=0;Ea<Aa.length;Ea++){var Ka=Aa[Ea].name,Ma=Aa[Ea].url;Graph.isCssFontUrl(Ma)?sa.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(Ma))+'" charset="UTF-8" type="text/css">'):(sa.writeln('<style type="text/css">'),sa.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Ka)+
-'";\nsrc: url("'+mxUtils.htmlEntities(Ma)+'");\n}'),sa.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var Ca=fa.drawBackgroundImage;fa.drawBackgroundImage=function(sa){Ca.apply(this,arguments);null!=sa.node&&(EditorUi.embedSvgImages(sa.node),A.disableSvgLinks(sa.node,function(Aa){Aa.setAttribute("href","javascript:void(0)")}))}}var La=fa.addGraphFragment;fa.addGraphFragment=function(sa,Aa,Ea,Ka,Ma,ya){La.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:Ma.classList.add("geDisableMathJax")};
+'";\nsrc: url("'+mxUtils.htmlEntities(Ma)+'");\n}'),sa.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var Ca=fa.drawBackgroundImage;fa.drawBackgroundImage=function(sa){Ca.apply(this,arguments);null!=sa.node&&(EditorUi.embedSvgImages(sa.node),B.disableSvgLinks(sa.node,function(Aa){Aa.setAttribute("href","javascript:void(0)")}))}}var La=fa.addGraphFragment;fa.addGraphFragment=function(sa,Aa,Ea,Ka,Ma,ya){La.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:Ma.classList.add("geDisableMathJax")};
f.grid&&(fa.gridSize=Y.gridSize,fa.gridSteps=Y.view.gridSteps,fa.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:Y.view.gridColor);fa.open(null,null,Z,!0,l,oa,f.selection?Y.getSelectionCells():null)}else{aa=Y.background;if(null==aa||""==aa||aa==mxConstants.NONE)aa="#ffffff";fa.backgroundColor=aa;fa.autoOrigin=qa;f.grid&&(fa.gridSize=Y.gridSize,fa.gridSteps=Y.view.gridSteps,fa.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:Y.view.gridColor);fa.appendGraph(Y,
ua,ba,ja,Z,!0,l,oa,f.selection?Y.getSelectionCells():null);Z=Y.getCustomFonts();if(null!=fa.wnd)for(oa=0;oa<Z.length;oa++)ba=Z[oa].name,ja=Z[oa].url,Graph.isCssFontUrl(ja)?fa.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(ja)+'" charset="UTF-8" type="text/css">'):(fa.wnd.document.writeln('<style type="text/css">'),fa.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(ba)+'";\nsrc: url("'+mxUtils.htmlEntities(ja)+'");\n}'),fa.wnd.document.writeln("</style>"))}u&&
-(Y.useCssTransforms=u,Y.currentTranslate=H,Y.currentScale=U,Y.view.translate=J,Y.view.scale=V);return fa}),L=f.pagesFrom,K=f.pagesTo,O=!f.allPages;z=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,f);else{O&&(O=f.selection||L==C&&K==C);if(!O&&null!=this.pages&&this.pages.length){O=0;C=this.pages.length-1;f.allPages||(O=parseInt(L)-1,C=parseInt(K)-1);for(var da=O;da<=C;da++){var ea=this.pages[da];L=ea==this.currentPage?A:null;if(null==L){L=this.createTemporaryGraph(A.stylesheet);L.shapeForegroundColor=
-A.shapeForegroundColor;L.shapeBackgroundColor=A.shapeBackgroundColor;K=!0;O=!1;var ca=null,W=null;null==ea.viewState&&null==ea.root&&this.updatePageRoot(ea);null!=ea.viewState&&(K=ea.viewState.pageVisible,O=ea.viewState.mathEnabled,ca=ea.viewState.background,W=ea.viewState.backgroundImage,L.pageFormat=ea.viewState.pageFormat,L.gridSize=ea.viewState.gridSize);null!=W&&null!=W.originalSrc&&(W=this.createImageForPageLink(W.originalSrc,ea));L.background=ca;L.backgroundImage=null!=W?new mxImage(W.src,
-W.width,W.height,W.x,W.y):null;L.pageVisible=K;L.mathEnabled=O;var ma=L.getGraphBounds;L.getGraphBounds=function(){var Y=ma.apply(this,arguments),fa=this.backgroundImage;if(null!=fa&&null!=fa.width&&null!=fa.height){var Z=this.view.translate,l=this.view.scale;Y=mxRectangle.fromRectangle(Y);Y.add(new mxRectangle((Z.x+fa.x)*l,(Z.y+fa.y)*l,fa.width*l,fa.height*l))}return Y};var la=L.getGlobalVariable;L.getGlobalVariable=function(Y){return"page"==Y?ea.getName():"pagenumber"==Y?da+1:"pagecount"==Y?null!=
-this.pages?this.pages.length:1:la.apply(this,arguments)};document.body.appendChild(L.container);this.updatePageRoot(ea);L.model.setRoot(ea.root)}z=I(L,z,da!=C,ea.getId());L!=A&&L.container.parentNode.removeChild(L.container)}}else z=I(A);null==z||null==z.wnd?this.handleError({message:mxResources.get("errorUpdatingPreview")}):(z.mathEnabled&&(I=z.wnd.document,c||(z.wnd.IMMEDIATE_PRINT=!0),I.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>')),z.closeDocument(),Graph.rewritePageLinks(z.wnd.document,
-!0),z.mathEnabled||c||PrintDialog.printPreview(z));return z}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var f=null,k=0;k<c.length;k++)mxEvent.addListener(c[k],"dragleave",function(A){null!=f&&(f.parentNode.removeChild(f),f=null);A.stopPropagation();A.preventDefault()}),mxEvent.addListener(c[k],"dragover",mxUtils.bind(this,function(A){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==f&&(!mxClient.IS_IE||10<document.documentMode&&12>document.documentMode)&&
-(f=this.highlightElement());A.stopPropagation();A.preventDefault()})),mxEvent.addListener(c[k],"drop",mxUtils.bind(this,function(A){null!=f&&(f.parentNode.removeChild(f),f=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<A.dataTransfer.files.length)this.hideDialog(),"1"==urlParams.embed?this.importFiles(A.dataTransfer.files,0,0,this.maxImageSize,null,null,null,null,!mxEvent.isControlDown(A)&&!mxEvent.isShiftDown(A)):this.openFiles(A.dataTransfer.files,!0);else{var z=this.extractGraphModelFromEvent(A);
-if(null==z){var C=null!=A.dataTransfer?A.dataTransfer:A.clipboardData;null!=C&&(10==document.documentMode||11==document.documentMode?z=C.getData("Text"):(z=null,z=0<=mxUtils.indexOf(C.types,"text/uri-list")?A.dataTransfer.getData("text/uri-list"):0<=mxUtils.indexOf(C.types,"text/html")?C.getData("text/html"):null,null!=z&&0<z.length?(C=document.createElement("div"),C.innerHTML=Graph.sanitizeHtml(z),C=C.getElementsByTagName("img"),0<C.length&&(z=C[0].getAttribute("src"))):0<=mxUtils.indexOf(C.types,
+(Y.useCssTransforms=u,Y.currentTranslate=H,Y.currentScale=U,Y.view.translate=J,Y.view.scale=W);return fa}),L=f.pagesFrom,K=f.pagesTo,O=!f.allPages;z=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,f);else{O&&(O=f.selection||L==C&&K==C);if(!O&&null!=this.pages&&this.pages.length){O=0;C=this.pages.length-1;f.allPages||(O=parseInt(L)-1,C=parseInt(K)-1);for(var da=O;da<=C;da++){var ea=this.pages[da];L=ea==this.currentPage?B:null;if(null==L){L=this.createTemporaryGraph(B.stylesheet);L.shapeForegroundColor=
+B.shapeForegroundColor;L.shapeBackgroundColor=B.shapeBackgroundColor;K=!0;O=!1;var ca=null,V=null;null==ea.viewState&&null==ea.root&&this.updatePageRoot(ea);null!=ea.viewState&&(K=ea.viewState.pageVisible,O=ea.viewState.mathEnabled,ca=ea.viewState.background,V=ea.viewState.backgroundImage,L.pageFormat=ea.viewState.pageFormat,L.gridSize=ea.viewState.gridSize);null!=V&&null!=V.originalSrc&&(V=this.createImageForPageLink(V.originalSrc,ea));L.background=ca;L.backgroundImage=null!=V?new mxImage(V.src,
+V.width,V.height,V.x,V.y):null;L.pageVisible=K;L.mathEnabled=O;var ma=L.getGraphBounds;L.getGraphBounds=function(){var Y=ma.apply(this,arguments),fa=this.backgroundImage;if(null!=fa&&null!=fa.width&&null!=fa.height){var Z=this.view.translate,l=this.view.scale;Y=mxRectangle.fromRectangle(Y);Y.add(new mxRectangle((Z.x+fa.x)*l,(Z.y+fa.y)*l,fa.width*l,fa.height*l))}return Y};var la=L.getGlobalVariable;L.getGlobalVariable=function(Y){return"page"==Y?ea.getName():"pagenumber"==Y?da+1:"pagecount"==Y?null!=
+this.pages?this.pages.length:1:la.apply(this,arguments)};document.body.appendChild(L.container);this.updatePageRoot(ea);L.model.setRoot(ea.root)}z=I(L,z,da!=C,ea.getId());L!=B&&L.container.parentNode.removeChild(L.container)}}else z=I(B);null==z||null==z.wnd?this.handleError({message:mxResources.get("errorUpdatingPreview")}):(z.mathEnabled&&(I=z.wnd.document,c||(z.wnd.IMMEDIATE_PRINT=!0),I.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>')),z.closeDocument(),Graph.rewritePageLinks(z.wnd.document,
+!0),z.mathEnabled||c||PrintDialog.printPreview(z));return z}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var f=null,k=0;k<c.length;k++)mxEvent.addListener(c[k],"dragleave",function(B){null!=f&&(f.parentNode.removeChild(f),f=null);B.stopPropagation();B.preventDefault()}),mxEvent.addListener(c[k],"dragover",mxUtils.bind(this,function(B){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==f&&(!mxClient.IS_IE||10<document.documentMode&&12>document.documentMode)&&
+(f=this.highlightElement());B.stopPropagation();B.preventDefault()})),mxEvent.addListener(c[k],"drop",mxUtils.bind(this,function(B){null!=f&&(f.parentNode.removeChild(f),f=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<B.dataTransfer.files.length)this.hideDialog(),"1"==urlParams.embed?this.importFiles(B.dataTransfer.files,0,0,this.maxImageSize,null,null,null,null,!mxEvent.isControlDown(B)&&!mxEvent.isShiftDown(B)):this.openFiles(B.dataTransfer.files,!0);else{var z=this.extractGraphModelFromEvent(B);
+if(null==z){var C=null!=B.dataTransfer?B.dataTransfer:B.clipboardData;null!=C&&(10==document.documentMode||11==document.documentMode?z=C.getData("Text"):(z=null,z=0<=mxUtils.indexOf(C.types,"text/uri-list")?B.dataTransfer.getData("text/uri-list"):0<=mxUtils.indexOf(C.types,"text/html")?C.getData("text/html"):null,null!=z&&0<z.length?(C=document.createElement("div"),C.innerHTML=Graph.sanitizeHtml(z),C=C.getElementsByTagName("img"),0<C.length&&(z=C[0].getAttribute("src"))):0<=mxUtils.indexOf(C.types,
"text/plain")&&(z=C.getData("text/plain"))),null!=z&&(Editor.isPngDataUrl(z)?(z=Editor.extractGraphModelFromPng(z),null!=z&&0<z.length&&this.openLocalFile(z,null,!0)):this.isRemoteFileFormat(z)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(new mxXmlRequest(OPEN_URL,"format=xml&data="+encodeURIComponent(z))).send(mxUtils.bind(this,function(I){200<=I.getStatus()&&299>=I.getStatus()?this.openLocalFile(I.getText(),null,!0):this.showError(mxResources.get("error"),
-413==I.getStatus()?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))})):/^https?:\/\//.test(z)&&(null==this.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(z):window.geOpenWindow((mxClient.IS_CHROMEAPP?EditorUi.drawHost+"/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(z)))))}else this.openLocalFile(z,null,!0)}A.stopPropagation();A.preventDefault()}))};EditorUi.prototype.highlightElement=function(c){var f=0,k=0;if(null==c){var A=document.body;
-var z=document.documentElement;var C=(A.clientWidth||z.clientWidth)-3;A=Math.max(A.clientHeight||0,z.clientHeight)-3}else f=c.offsetTop,k=c.offsetLeft,C=c.clientWidth,A=c.clientHeight;z=document.createElement("div");z.style.zIndex=mxPopupMenu.prototype.zIndex+2;z.style.border="3px dotted rgb(254, 137, 12)";z.style.pointerEvents="none";z.style.position="absolute";z.style.top=f+"px";z.style.left=k+"px";z.style.width=Math.max(0,C-3)+"px";z.style.height=Math.max(0,A-3)+"px";null!=c&&c.parentNode==this.editor.graph.container?
-this.editor.graph.container.appendChild(z):document.body.appendChild(z);return z};EditorUi.prototype.stringToCells=function(c){c=mxUtils.parseXml(c);var f=this.editor.extractGraphModel(c.documentElement);c=[];if(null!=f){var k=new mxCodec(f.ownerDocument),A=new mxGraphModel;k.decode(f,A);f=A.getChildAt(A.getRoot(),0);for(k=0;k<A.getChildCount(f);k++)c.push(A.getChildAt(f,k))}return c};EditorUi.prototype.openFileHandle=function(c,f,k,A,z,C){if(null!=f&&0<f.length){if(!this.useCanvasForExport&&/(\.png)$/i.test(f)||
-/(\.pdf)$/i.test(f))f=f.substring(0,f.length-4),/(\.drawio)$/i.test(f)||(f+=".drawio");var I=mxUtils.bind(this,function(K){f=0<=f.lastIndexOf(".")?f.substring(0,f.lastIndexOf("."))+".drawio":f+".drawio";if("<mxlibrary"==K.substring(0,10)){null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,A);try{this.loadLibrary(new LocalLibrary(this,K,f)),this.showSidebar()}catch(O){this.handleError(O,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(K,
-f,A)});if(EditorUi.isVisioFilename(f))this.importVisio(k,mxUtils.bind(this,function(K){this.spinner.stop();I(K)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(K){this.spinner.stop();I(K)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,f))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(k,mxUtils.bind(this,function(K){4==K.readyState&&(this.spinner.stop(),
-200<=K.status&&299>=K.status?I(K.responseText):this.handleError({message:mxResources.get(413==K.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(c))/(\.json)$/i.test(f)&&(f=f.substring(0,f.length-5)+".drawio"),this.convertLucidChart(c,mxUtils.bind(this,function(K){this.spinner.stop();this.openLocalFile(K,f,A)}),mxUtils.bind(this,function(K){this.spinner.stop();this.handleError(K)}));else if("<mxlibrary"==c.substring(0,10)){this.spinner.stop();
-null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,A);try{this.loadLibrary(new LocalLibrary(this,c,k.name)),this.showSidebar()}catch(K){this.handleError(K,mxResources.get("errorLoadingFile"))}}else if(0==c.indexOf("PK"))this.importZipFile(k,mxUtils.bind(this,function(K){this.spinner.stop();I(K)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,f,A)}));else{if("image/png"==k.type.substring(0,9))c=this.extractGraphModelFromPng(c);
-else if("application/pdf"==k.type){var L=Editor.extractGraphModelFromPdf(c);null!=L&&(z=null,A=!0,c=L)}this.spinner.stop();this.openLocalFile(c,f,A,z,null!=z?k:null,C)}}};EditorUi.prototype.openFiles=function(c,f){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var k=0;k<c.length;k++)mxUtils.bind(this,function(A){var z=new FileReader;z.onload=mxUtils.bind(this,function(C){try{this.openFileHandle(C.target.result,A.name,A,f)}catch(I){this.handleError(I)}});z.onerror=mxUtils.bind(this,
-function(C){this.spinner.stop();this.handleError(C);window.openFile=null});"image"!==A.type.substring(0,5)&&"application/pdf"!==A.type||"image/svg"===A.type.substring(0,9)?z.readAsText(A):z.readAsDataURL(A)})(c[k])};EditorUi.prototype.openLocalFile=function(c,f,k,A,z,C){var I=this.getCurrentFile(),L=mxUtils.bind(this,function(){window.openFile=null;if(null==f&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var K=mxUtils.parseXml(c);null!=K&&(this.editor.setGraphXml(K.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,
-c,f||this.defaultFilename,k,A,z,C))});if(null!=c&&0<c.length)null==I||!I.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=A)?L():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=A)&&null!=I&&I.isModified()?this.confirm(mxResources.get("allChangesLost"),null,L,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(c,f),window.geOpenWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=
+413==I.getStatus()?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))})):/^https?:\/\//.test(z)&&(null==this.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(z):window.geOpenWindow((mxClient.IS_CHROMEAPP?EditorUi.drawHost+"/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(z)))))}else this.openLocalFile(z,null,!0)}B.stopPropagation();B.preventDefault()}))};EditorUi.prototype.highlightElement=function(c){var f=0,k=0;if(null==c){var B=document.body;
+var z=document.documentElement;var C=(B.clientWidth||z.clientWidth)-3;B=Math.max(B.clientHeight||0,z.clientHeight)-3}else f=c.offsetTop,k=c.offsetLeft,C=c.clientWidth,B=c.clientHeight;z=document.createElement("div");z.style.zIndex=mxPopupMenu.prototype.zIndex+2;z.style.border="3px dotted rgb(254, 137, 12)";z.style.pointerEvents="none";z.style.position="absolute";z.style.top=f+"px";z.style.left=k+"px";z.style.width=Math.max(0,C-3)+"px";z.style.height=Math.max(0,B-3)+"px";null!=c&&c.parentNode==this.editor.graph.container?
+this.editor.graph.container.appendChild(z):document.body.appendChild(z);return z};EditorUi.prototype.stringToCells=function(c){c=mxUtils.parseXml(c);var f=this.editor.extractGraphModel(c.documentElement);c=[];if(null!=f){var k=new mxCodec(f.ownerDocument),B=new mxGraphModel;k.decode(f,B);f=B.getChildAt(B.getRoot(),0);for(k=0;k<B.getChildCount(f);k++)c.push(B.getChildAt(f,k))}return c};EditorUi.prototype.openFileHandle=function(c,f,k,B,z,C){if(null!=f&&0<f.length){if(!this.useCanvasForExport&&/(\.png)$/i.test(f)||
+/(\.pdf)$/i.test(f))f=f.substring(0,f.length-4),/(\.drawio)$/i.test(f)||(f+=".drawio");var I=mxUtils.bind(this,function(K){f=0<=f.lastIndexOf(".")?f.substring(0,f.lastIndexOf("."))+".drawio":f+".drawio";if("<mxlibrary"==K.substring(0,10)){null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,B);try{this.loadLibrary(new LocalLibrary(this,K,f)),this.showSidebar()}catch(O){this.handleError(O,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(K,
+f,B)});if(EditorUi.isVisioFilename(f))this.importVisio(k,mxUtils.bind(this,function(K){this.spinner.stop();I(K)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(K){this.spinner.stop();I(K)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,f))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(k,mxUtils.bind(this,function(K){4==K.readyState&&(this.spinner.stop(),
+200<=K.status&&299>=K.status?I(K.responseText):this.handleError({message:mxResources.get(413==K.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(c))/(\.json)$/i.test(f)&&(f=f.substring(0,f.length-5)+".drawio"),this.convertLucidChart(c,mxUtils.bind(this,function(K){this.spinner.stop();this.openLocalFile(K,f,B)}),mxUtils.bind(this,function(K){this.spinner.stop();this.handleError(K)}));else if("<mxlibrary"==c.substring(0,10)){this.spinner.stop();
+null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,B);try{this.loadLibrary(new LocalLibrary(this,c,k.name)),this.showSidebar()}catch(K){this.handleError(K,mxResources.get("errorLoadingFile"))}}else if(0==c.indexOf("PK"))this.importZipFile(k,mxUtils.bind(this,function(K){this.spinner.stop();I(K)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,f,B)}));else{if("image/png"==k.type.substring(0,9))c=this.extractGraphModelFromPng(c);
+else if("application/pdf"==k.type){var L=Editor.extractGraphModelFromPdf(c);null!=L&&(z=null,B=!0,c=L)}this.spinner.stop();this.openLocalFile(c,f,B,z,null!=z?k:null,C)}}};EditorUi.prototype.openFiles=function(c,f){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var k=0;k<c.length;k++)mxUtils.bind(this,function(B){var z=new FileReader;z.onload=mxUtils.bind(this,function(C){try{this.openFileHandle(C.target.result,B.name,B,f)}catch(I){this.handleError(I)}});z.onerror=mxUtils.bind(this,
+function(C){this.spinner.stop();this.handleError(C);window.openFile=null});"image"!==B.type.substring(0,5)&&"application/pdf"!==B.type||"image/svg"===B.type.substring(0,9)?z.readAsText(B):z.readAsDataURL(B)})(c[k])};EditorUi.prototype.openLocalFile=function(c,f,k,B,z,C){var I=this.getCurrentFile(),L=mxUtils.bind(this,function(){window.openFile=null;if(null==f&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var K=mxUtils.parseXml(c);null!=K&&(this.editor.setGraphXml(K.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,
+c,f||this.defaultFilename,k,B,z,C))});if(null!=c&&0<c.length)null==I||!I.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=B)?L():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=B)&&null!=I&&I.isModified()?this.confirm(mxResources.get("allChangesLost"),null,L,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(c,f),window.geOpenWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=
I&&I.isModified()?this.confirm(mxResources.get("allChangesLost"),null,L,mxResources.get("cancel"),mxResources.get("discardChanges")):L()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var f=0;f<this.pages.length;f++)this.updatePageRoot(this.pages[f]),this.addBasenamesForCell(this.pages[f].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);f=[];for(var k in c)f.push(k);return f};EditorUi.prototype.addBasenamesForCell=
-function(c,f){function k(I){if(null!=I){var L=I.lastIndexOf(".");0<L&&(I=I.substring(L+1,I.length));null==f[I]&&(f[I]=!0)}}var A=this.editor.graph,z=A.getCellStyle(c);k(mxStencilRegistry.getBasenameForStencil(z[mxConstants.STYLE_SHAPE]));A.model.isEdge(c)&&(k(mxMarker.getPackageForType(z[mxConstants.STYLE_STARTARROW])),k(mxMarker.getPackageForType(z[mxConstants.STYLE_ENDARROW])));z=A.model.getChildCount(c);for(var C=0;C<z;C++)this.addBasenamesForCell(A.model.getChildAt(c,C),f)};EditorUi.prototype.setGraphEnabled=
+function(c,f){function k(I){if(null!=I){var L=I.lastIndexOf(".");0<L&&(I=I.substring(L+1,I.length));null==f[I]&&(f[I]=!0)}}var B=this.editor.graph,z=B.getCellStyle(c);k(mxStencilRegistry.getBasenameForStencil(z[mxConstants.STYLE_SHAPE]));B.model.isEdge(c)&&(k(mxMarker.getPackageForType(z[mxConstants.STYLE_STARTARROW])),k(mxMarker.getPackageForType(z[mxConstants.STYLE_ENDARROW])));z=B.model.getChildCount(c);for(var C=0;C<z;C++)this.addBasenamesForCell(B.model.getChildAt(c,C),f)};EditorUi.prototype.setGraphEnabled=
function(c){this.diagramContainer.style.visibility=c?"":"hidden";this.formatContainer.style.visibility=c?"":"hidden";this.sidebarContainer.style.display=c?"":"none";this.hsplit.style.display=c&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme?"":"none";this.editor.graph.setEnabled(c);null!=this.tabContainer&&(this.tabContainer.style.visibility=c&&0<parseInt(this.tabContainer.style.height)?"":"hidden");null!=this.ruler&&(this.ruler.hRuler.container.style.visibility=c?"":"hidden",this.ruler.vRuler.container.style.visibility=
-c?"":"hidden");c||this.hideWindows()};EditorUi.prototype.initializeEmbedMode=function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=!1;this.installMessageHandler(mxUtils.bind(this,function(f,k,A,z){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==f||0==f.length)f=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,f,{}));this.mode=App.MODE_EMBED;
+c?"":"hidden");c||this.hideWindows()};EditorUi.prototype.initializeEmbedMode=function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=!1;this.installMessageHandler(mxUtils.bind(this,function(f,k,B,z){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==f||0==f.length)f=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,f,{}));this.mode=App.MODE_EMBED;
this.setFileData(f);if(z)try{var C=this.editor.graph;C.setGridEnabled(!1);C.pageVisible=!1;var I=C.model.cells,L;for(L in I){var K=I[L];null!=K&&null!=K.style&&(K.style+=";sketch=1;"+(-1==K.style.indexOf("fontFamily=")||-1<K.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(O){console.log(O)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();
-this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();this.editor.modified=null!=A?A:!1;this.updateUi();window.self!==window.top&&window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(c,
+this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();this.editor.modified=null!=B?B:!1;this.updateUi();window.self!==window.top&&window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(c,
f){null!=c?this.spinner.spin(document.body,mxResources.get("loading"))&&c.getPublicUrl(mxUtils.bind(this,function(k){this.spinner.stop();f(k)})):f(null)};EditorUi.prototype.createLoadMessage=function(c){var f=this.editor.graph;return{event:c,pageVisible:f.pageVisible,translate:f.view.translate,bounds:f.getGraphBounds(),currentPage:this.getSelectedPageIndex(),scale:f.view.scale,page:f.view.getBackgroundPageBounds()}};EditorUi.prototype.sendEmbeddedSvgExport=function(c){try{var f=this.editor.graph;
-f.isEditing()&&f.stopEditing(!f.isInvokesStopCellEditing());var k=window.opener||window.parent;if(this.editor.modified){var A=f.background;if(null==A||A==mxConstants.NONE)A=this.embedExportBackground;this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),f,null,!0,mxUtils.bind(this,function(z){k.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=c?!c:!0,data:Editor.createSvgDataUri(z)}),"*")}),null,null,!0,A,1,this.embedExportBorder,null,this.embedExportTheme)}else c||
-k.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),"*");c||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,f.model.clear(),this.editor.undoManager.clear(),this.setBackgroundImage(null),this.editor.modified=!1,"1"!=urlParams.embed&&this.fireEvent(new mxEventObject("editInlineStop")))}catch(z){c||this.handleError(z)}};EditorUi.prototype.installMessageHandler=function(c){var f=null,k=!1,A=!1,z=null,C=mxUtils.bind(this,function(K,O){this.editor.modified&&
+f.isEditing()&&f.stopEditing(!f.isInvokesStopCellEditing());var k=window.opener||window.parent;if(this.editor.modified){var B=f.background;if(null==B||B==mxConstants.NONE)B=this.embedExportBackground;this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),f,null,!0,mxUtils.bind(this,function(z){k.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=c?!c:!0,data:Editor.createSvgDataUri(z)}),"*")}),null,null,!0,B,1,this.embedExportBorder,null,this.embedExportTheme)}else c||
+k.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),"*");c||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,f.model.clear(),this.editor.undoManager.clear(),this.setBackgroundImage(null),this.editor.modified=!1,"1"!=urlParams.embed&&this.fireEvent(new mxEventObject("editInlineStop")))}catch(z){c||this.handleError(z)}};EditorUi.prototype.installMessageHandler=function(c){var f=null,k=!1,B=!1,z=null,C=mxUtils.bind(this,function(K,O){this.editor.modified&&
"0"!=urlParams.modified?null!=urlParams.modified&&this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified))):this.editor.setStatus("")});this.editor.graph.model.addListener(mxEvent.CHANGE,C);mxEvent.addListener(window,"message",mxUtils.bind(this,function(K){if(K.source==(window.opener||window.parent)){var O=K.data,da=null,ea=mxUtils.bind(this,function(sa){if(null!=sa&&"function"===typeof sa.charAt&&"<"!=sa.charAt(0))try{Editor.isPngDataUrl(sa)?sa=Editor.extractGraphModelFromPng(sa):
"data:image/svg+xml;base64,"==sa.substring(0,26)?sa=atob(sa.substring(26)):"data:image/svg+xml;utf8,"==sa.substring(0,24)&&(sa=sa.substring(24)),null!=sa&&(""==sa.trim()?sa=null:"%"==sa.charAt(0)?sa=decodeURIComponent(sa):"<"!=sa.charAt(0)&&(sa=Graph.decompress(sa)))}catch(Aa){}return sa});if("json"==urlParams.proto){var ca=!1;try{O=JSON.parse(O),EditorUi.debug("EditorUi.installMessageHandler",[this],"evt",[K],"data",[O])}catch(sa){O=null}try{if(null==O)return;if("dialog"==O.action){this.showError(null!=
-O.titleKey?mxResources.get(O.titleKey):O.title,null!=O.messageKey?mxResources.get(O.messageKey):mxUtils.htmlEntities(O.message),null!=O.buttonKey?mxResources.get(O.buttonKey):O.button);null!=O.modified&&(this.editor.modified=O.modified);return}if("layout"==O.action){this.executeLayouts(this.editor.graph.createLayouts(O.layouts));return}if("prompt"==O.action){this.spinner.stop();var W=new FilenameDialog(this,O.defaultValue||"",null!=O.okKey?mxResources.get(O.okKey):O.ok,function(sa){null!=sa?I.postMessage(JSON.stringify({event:"prompt",
-value:sa,message:O}),"*"):I.postMessage(JSON.stringify({event:"prompt-cancel",message:O}),"*")},null!=O.titleKey?mxResources.get(O.titleKey):O.title,null,null,null,null,function(){I.postMessage(JSON.stringify({event:"prompt-cancel",message:O}),"*")});this.showDialog(W.container,300,80,!0,!1);W.init();return}if("draft"==O.action){var ma=ea(O.xml);this.spinner.stop();W=new DraftDialog(this,mxResources.get("draftFound",[O.name||this.defaultFilename]),ma,mxUtils.bind(this,function(){this.hideDialog();
-I.postMessage(JSON.stringify({event:"draft",result:"edit",message:O}),"*")}),mxUtils.bind(this,function(){this.hideDialog();I.postMessage(JSON.stringify({event:"draft",result:"discard",message:O}),"*")}),O.editKey?mxResources.get(O.editKey):null,O.discardKey?mxResources.get(O.discardKey):null,O.ignore?mxUtils.bind(this,function(){this.hideDialog();I.postMessage(JSON.stringify({event:"draft",result:"ignore",message:O}),"*")}):null);this.showDialog(W.container,640,480,!0,!1,mxUtils.bind(this,function(sa){sa&&
-this.actions.get("exit").funct()}));try{W.init()}catch(sa){I.postMessage(JSON.stringify({event:"draft",error:sa.toString(),message:O}),"*")}return}if("template"==O.action){this.spinner.stop();var la=1==O.enableRecent,Y=1==O.enableSearch,fa=1==O.enableCustomTemp;W=new NewDialog(this,!1,O.templatesOnly?!1:null!=O.callback,mxUtils.bind(this,function(sa,Aa,Ea,Ka){sa=sa||this.emptyDiagramXml;null!=O.callback?I.postMessage(JSON.stringify({event:"template",xml:sa,blank:sa==this.emptyDiagramXml,name:Aa,tempUrl:Ea,
+O.titleKey?mxResources.get(O.titleKey):O.title,null!=O.messageKey?mxResources.get(O.messageKey):mxUtils.htmlEntities(O.message),null!=O.buttonKey?mxResources.get(O.buttonKey):O.button);null!=O.modified&&(this.editor.modified=O.modified);return}if("layout"==O.action){this.executeLayouts(this.editor.graph.createLayouts(O.layouts));return}if("prompt"==O.action){this.spinner.stop();var V=new FilenameDialog(this,O.defaultValue||"",null!=O.okKey?mxResources.get(O.okKey):O.ok,function(sa){null!=sa?I.postMessage(JSON.stringify({event:"prompt",
+value:sa,message:O}),"*"):I.postMessage(JSON.stringify({event:"prompt-cancel",message:O}),"*")},null!=O.titleKey?mxResources.get(O.titleKey):O.title,null,null,null,null,function(){I.postMessage(JSON.stringify({event:"prompt-cancel",message:O}),"*")});this.showDialog(V.container,300,80,!0,!1);V.init();return}if("draft"==O.action){var ma=ea(O.xml);this.spinner.stop();V=new DraftDialog(this,mxResources.get("draftFound",[O.name||this.defaultFilename]),ma,mxUtils.bind(this,function(){this.hideDialog();
+I.postMessage(JSON.stringify({event:"draft",result:"edit",message:O}),"*")}),mxUtils.bind(this,function(){this.hideDialog();I.postMessage(JSON.stringify({event:"draft",result:"discard",message:O}),"*")}),O.editKey?mxResources.get(O.editKey):null,O.discardKey?mxResources.get(O.discardKey):null,O.ignore?mxUtils.bind(this,function(){this.hideDialog();I.postMessage(JSON.stringify({event:"draft",result:"ignore",message:O}),"*")}):null);this.showDialog(V.container,640,480,!0,!1,mxUtils.bind(this,function(sa){sa&&
+this.actions.get("exit").funct()}));try{V.init()}catch(sa){I.postMessage(JSON.stringify({event:"draft",error:sa.toString(),message:O}),"*")}return}if("template"==O.action){this.spinner.stop();var la=1==O.enableRecent,Y=1==O.enableSearch,fa=1==O.enableCustomTemp;V=new NewDialog(this,!1,O.templatesOnly?!1:null!=O.callback,mxUtils.bind(this,function(sa,Aa,Ea,Ka){sa=sa||this.emptyDiagramXml;null!=O.callback?I.postMessage(JSON.stringify({event:"template",xml:sa,blank:sa==this.emptyDiagramXml,name:Aa,tempUrl:Ea,
libs:Ka,builtIn:!0,message:O}),"*"):(c(sa,K,sa!=this.emptyDiagramXml,O.toSketch),this.editor.modified||this.editor.setStatus(""))}),null,null,null,null,null,null,null,la?mxUtils.bind(this,function(sa){this.remoteInvoke("getRecentDiagrams",[null],null,sa,function(){sa(null,"Network Error!")})}):null,Y?mxUtils.bind(this,function(sa,Aa){this.remoteInvoke("searchDiagrams",[sa,null],null,Aa,function(){Aa(null,"Network Error!")})}):null,mxUtils.bind(this,function(sa,Aa,Ea){I.postMessage(JSON.stringify({event:"template",
-docUrl:sa,info:Aa,name:Ea}),"*")}),null,null,fa?mxUtils.bind(this,function(sa){this.remoteInvoke("getCustomTemplates",null,null,sa,function(){sa({},0)})}):null,1==O.withoutType);this.showDialog(W.container,620,460,!0,!1,mxUtils.bind(this,function(sa){null!=this.sidebar&&this.sidebar.hideTooltip();sa&&this.actions.get("exit").funct()}));W.init();return}if("textContent"==O.action){var Z=this.getDiagramTextContent();I.postMessage(JSON.stringify({event:"textContent",data:Z,message:O}),"*");return}if("status"==
+docUrl:sa,info:Aa,name:Ea}),"*")}),null,null,fa?mxUtils.bind(this,function(sa){this.remoteInvoke("getCustomTemplates",null,null,sa,function(){sa({},0)})}):null,1==O.withoutType);this.showDialog(V.container,620,460,!0,!1,mxUtils.bind(this,function(sa){null!=this.sidebar&&this.sidebar.hideTooltip();sa&&this.actions.get("exit").funct()}));V.init();return}if("textContent"==O.action){var Z=this.getDiagramTextContent();I.postMessage(JSON.stringify({event:"textContent",data:Z,message:O}),"*");return}if("status"==
O.action){null!=O.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(O.messageKey))):null!=O.message&&this.editor.setStatus(mxUtils.htmlEntities(O.message));null!=O.modified&&(this.editor.modified=O.modified);return}if("spinner"==O.action){var l=null!=O.messageKey?mxResources.get(O.messageKey):O.message;null==O.show||O.show?this.spinner.spin(document.body,l):this.spinner.stop();return}if("exit"==O.action){this.actions.get("exit").funct();return}if("viewport"==O.action){null!=O.viewport&&
-(this.embedViewport=O.viewport,this.editor.graph.refresh(),this.fireEvent(new mxEventObject("embedViewportChanged")));return}if("fullscreenChanged"==O.action){W=null;try{var u=this.diagramContainer.getAttribute("data-scrollState");null!=u&&(this.diagramContainer.removeAttribute("data-scrollState"),W=JSON.parse(u))}catch(sa){}Editor.inlineFullscreen=O.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=W&&this.restoreScrollState(W);return}if("snapshot"==O.action){this.sendEmbeddedSvgExport(!0);
+(this.embedViewport=O.viewport,this.editor.graph.refresh(),this.fireEvent(new mxEventObject("embedViewportChanged")));return}if("fullscreenChanged"==O.action){V=null;try{var u=this.diagramContainer.getAttribute("data-scrollState");null!=u&&(this.diagramContainer.removeAttribute("data-scrollState"),V=JSON.parse(u))}catch(sa){}Editor.inlineFullscreen=O.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=V&&this.restoreScrollState(V);return}if("snapshot"==O.action){this.sendEmbeddedSvgExport(!0);
return}if("export"==O.action){if("png"==O.format||"xmlpng"==O.format){if(null==O.spin&&null==O.spinKey||this.spinner.spin(document.body,null!=O.spinKey?mxResources.get(O.spinKey):O.spin)){var H=null!=O.xml?O.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);var U=this.editor.graph,J=mxUtils.bind(this,function(sa,Aa){if(O.withSvg)O.withSvg=!1,this.getEmbeddedSvg(H,this.editor.graph,null,!0,function(Ka){J(sa,Ka)},null,null,O.embedImages,this.editor.graph.background,O.scale,O.border,O.shadow,
-"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var Ea=this.createLoadMessage("export");Ea.format=O.format;Ea.message=O;Ea.data=sa;Ea.svg=Aa;Ea.xml=H;I.postMessage(JSON.stringify(Ea),"*")}}),V=mxUtils.bind(this,function(sa){null==sa&&(sa=Editor.blankImage);"xmlpng"==O.format&&(sa=Editor.writeGraphModelToPng(sa,"tEXt","mxfile",encodeURIComponent(H)));U!=this.editor.graph&&U.container.parentNode.removeChild(U.container);J(sa)}),aa=O.pageId||(null!=this.pages?O.currentPage?this.currentPage.getId():
+"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var Ea=this.createLoadMessage("export");Ea.format=O.format;Ea.message=O;Ea.data=sa;Ea.svg=Aa;Ea.xml=H;I.postMessage(JSON.stringify(Ea),"*")}}),W=mxUtils.bind(this,function(sa){null==sa&&(sa=Editor.blankImage);"xmlpng"==O.format&&(sa=Editor.writeGraphModelToPng(sa,"tEXt","mxfile",encodeURIComponent(H)));U!=this.editor.graph&&U.container.parentNode.removeChild(U.container);J(sa)}),aa=O.pageId||(null!=this.pages?O.currentPage?this.currentPage.getId():
this.pages[0].getId():null);if(this.isExportToCanvas()){var ba=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=aa){var sa=U.getGlobalVariable;U=this.createTemporaryGraph(U.getStylesheet());for(var Aa,Ea=0;Ea<this.pages.length;Ea++)if(this.pages[Ea].getId()==aa){Aa=this.updatePageRoot(this.pages[Ea]);break}null==Aa&&(Aa=this.currentPage);U.getGlobalVariable=function(Wa){return"page"==Wa?Aa.getName():"pagenumber"==Wa?1:sa.apply(this,arguments)};document.body.appendChild(U.container);
-U.model.setRoot(Aa.root)}if(null!=O.layerIds){var Ka=U.model,Ma=Ka.getChildCells(Ka.getRoot()),ya={};for(Ea=0;Ea<O.layerIds.length;Ea++)ya[O.layerIds[Ea]]=!0;for(Ea=0;Ea<Ma.length;Ea++)Ka.setVisible(Ma[Ea],ya[Ma[Ea].id]||!1)}Ea=null;O.keepTheme&&(Ea=Editor.isDarkMode()?"dark":"light");this.editor.exportToCanvas(mxUtils.bind(this,function(Wa){V(Wa.toDataURL("image/png"))}),O.width,null,O.background,mxUtils.bind(this,function(){V(null)}),null,null,O.scale,O.transparent,O.shadow,null,U,O.border,null,
-O.grid,Ea)});null!=O.xml&&0<O.xml.length&&(k=!0,this.setFileData(H),k=!1);ba()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==O.format?"1":"0")+(null!=aa?"&pageId="+aa:"")+(null!=O.layerIds&&0<O.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:O.layerIds})):"")+(null!=O.scale?"&scale="+O.scale:"")+"&base64=1&xml="+encodeURIComponent(H))).send(mxUtils.bind(this,function(sa){200<=sa.getStatus()&&299>=sa.getStatus()?J("data:image/png;base64,"+sa.getText()):V(null)}),
-mxUtils.bind(this,function(){V(null)}))}}else if(ba=mxUtils.bind(this,function(){var sa=this.createLoadMessage("export");sa.message=O;if("html2"==O.format||"html"==O.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var Aa=this.getXmlFileData();sa.xml=mxUtils.getXml(Aa);sa.data=this.getFileData(null,null,!0,null,null,null,Aa);sa.format=O.format}else if("html"==O.format)Aa=this.editor.getGraphXml(),sa.data=this.getHtml(Aa,this.editor.graph),sa.xml=mxUtils.getXml(Aa),sa.format=
+U.model.setRoot(Aa.root)}if(null!=O.layerIds){var Ka=U.model,Ma=Ka.getChildCells(Ka.getRoot()),ya={};for(Ea=0;Ea<O.layerIds.length;Ea++)ya[O.layerIds[Ea]]=!0;for(Ea=0;Ea<Ma.length;Ea++)Ka.setVisible(Ma[Ea],ya[Ma[Ea].id]||!1)}Ea=null;O.keepTheme&&(Ea=Editor.isDarkMode()?"dark":"light");this.editor.exportToCanvas(mxUtils.bind(this,function(Wa){W(Wa.toDataURL("image/png"))}),O.width,null,O.background,mxUtils.bind(this,function(){W(null)}),null,null,O.scale,O.transparent,O.shadow,null,U,O.border,null,
+O.grid,Ea)});null!=O.xml&&0<O.xml.length&&(k=!0,this.setFileData(H),k=!1);ba()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==O.format?"1":"0")+(null!=aa?"&pageId="+aa:"")+(null!=O.layerIds&&0<O.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:O.layerIds})):"")+(null!=O.scale?"&scale="+O.scale:"")+"&base64=1&xml="+encodeURIComponent(H))).send(mxUtils.bind(this,function(sa){200<=sa.getStatus()&&299>=sa.getStatus()?J("data:image/png;base64,"+sa.getText()):W(null)}),
+mxUtils.bind(this,function(){W(null)}))}}else if(ba=mxUtils.bind(this,function(){var sa=this.createLoadMessage("export");sa.message=O;if("html2"==O.format||"html"==O.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var Aa=this.getXmlFileData();sa.xml=mxUtils.getXml(Aa);sa.data=this.getFileData(null,null,!0,null,null,null,Aa);sa.format=O.format}else if("html"==O.format)Aa=this.editor.getGraphXml(),sa.data=this.getHtml(Aa,this.editor.graph),sa.xml=mxUtils.getXml(Aa),sa.format=
O.format;else{mxSvgCanvas2D.prototype.foAltText=null;Aa=null!=O.background?O.background:this.editor.graph.background;Aa==mxConstants.NONE&&(Aa=null);sa.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);sa.format="svg";var Ea=mxUtils.bind(this,function(Ma){this.editor.graph.setEnabled(!0);this.spinner.stop();sa.data=Editor.createSvgDataUri(Ma);I.postMessage(JSON.stringify(sa),"*")}),Ka="auto";O.keepTheme&&(Ka=Editor.isDarkMode()?"dark":"light");null!=O.theme&&(Ka=O.theme);if("xmlsvg"==
O.format){if(null==O.spin&&null==O.spinKey||this.spinner.spin(document.body,null!=O.spinKey?mxResources.get(O.spinKey):O.spin)){Ka=null;if(this.isAutoDarkMode()||Editor.isDarkMode())Ka="auto";null!=O.theme&&(Ka=O.theme);this.getEmbeddedSvg(sa.xml,this.editor.graph,null,!0,Ea,null,null,O.embedImages,Aa,O.scale,O.border,O.shadow,Ka)}}else if(null==O.spin&&null==O.spinKey||this.spinner.spin(document.body,null!=O.spinKey?mxResources.get(O.spinKey):O.spin))this.editor.graph.setEnabled(!1),Aa=this.editor.graph.getSvg(Aa,
O.scale,O.border,null,null,null,null,null,null,this.editor.graph.shadowVisible||O.shadow,null,Ka),(this.editor.graph.shadowVisible||O.shadow)&&this.editor.graph.addSvgShadow(Aa),this.embedFonts(Aa,mxUtils.bind(this,function(Ma){O.embedImages||null==O.embedImages?this.editor.convertImages(Ma,mxUtils.bind(this,function(ya){Ea(mxUtils.getXml(ya))})):Ea(mxUtils.getXml(Ma))}));return}I.postMessage(JSON.stringify(sa),"*")}),null!=O.xml&&0<O.xml.length){if(this.editor.graph.mathEnabled){var ja=Editor.onMathJaxDone;
-Editor.onMathJaxDone=function(){ja.apply(this,arguments);ba()}}k=!0;this.setFileData(O.xml);k=!1;this.editor.graph.mathEnabled||ba()}else ba();return}if("load"==O.action){ca=O.toSketch;A=1==O.autosave;this.hideDialog();null!=O.modified&&null==urlParams.modified&&(urlParams.modified=O.modified);null!=O.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=O.saveAndExit);if("1"==urlParams.saveAndExit||"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||
+Editor.onMathJaxDone=function(){ja.apply(this,arguments);ba()}}k=!0;this.setFileData(O.xml);k=!1;this.editor.graph.mathEnabled||ba()}else ba();return}if("load"==O.action){ca=O.toSketch;B=1==O.autosave;this.hideDialog();null!=O.modified&&null==urlParams.modified&&(urlParams.modified=O.modified);null!=O.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=O.saveAndExit);if("1"==urlParams.saveAndExit||"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||
this.editor.editable)this.keyHandler.bindAction(83,!0,"saveAndExit"),"1"!=urlParams.noSaveBtn&&(this.actions.get("save").shortcut=Editor.ctrlKey+"+Shift+S",this.keyHandler.bindAction(83,!0,"save",!0));null!=O.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=O.noSaveBtn);if(null!=O.rough){var oa=Editor.sketchMode;this.doSetSketchMode(O.rough);oa!=Editor.sketchMode&&this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=O.dark&&this.setDarkMode(O.dark);null!=O.border&&(this.embedExportBorder=
O.border);null!=O.theme&&(this.embedExportTheme=O.theme);null!=O.background&&(this.embedExportBackground=O.background);null!=O.viewport&&(this.embedViewport=O.viewport);this.embedExitPoint=null;if(null!=O.rect){var qa=this.embedExportBorder;this.diagramContainer.style.left=Math.max(60,O.rect.left)+"px";this.diagramContainer.style.top=Math.max(40,O.rect.top)+"px";this.minInlineWidth=O.minWidth;this.minInlineHeight=O.minHeight;this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.bottom=
"";this.diagramContainer.style.right="";var ra=O.maxFitScale,ua=O.rect.width+2*qa,za=O.rect.height+2*qa;da=mxUtils.bind(this,function(){var sa=mxUtils.getDocumentSize();ua=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,ua):ua,sa.width-80);sa=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,za):za,sa.height-80);this.diagramContainer.style.width=ua+"px";this.diagramContainer.style.height=sa+"px";var Aa=this.editor.graph;sa=Aa.maxFitScale;Aa.maxFitScale=ra;Aa.fit(2*
@@ -3921,103 +3936,103 @@ qa,null,null,null,null,null,za);this.setPageVisible(!1);if(null!=this.minInlineW
(this.formatWindow.window.div.style.top=Aa.container.style.top);var Ka=Aa.getGraphBounds();Aa.container.clientWidth>Ka.width+2*qa&&(Aa.container.scrollLeft=Ka.x+(Ka.width+qa-Aa.container.clientWidth)/2)}),10)})}null!=O.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=O.noExitBtn);null!=O.title&&null!=this.buttonContainer&&(ma=this.createStatusDiv(""),mxUtils.write(ma,O.title),null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan),this.buttonContainer.appendChild(ma),
this.embedFilenameSpan=ma);try{O.libs&&this.sidebar.showEntries(O.libs)}catch(sa){}O=null!=O.xmlpng?this.extractGraphModelFromPng(O.xmlpng):null!=O.descriptor?O.descriptor:O.xml}else{if("merge"==O.action){var Ba=this.getCurrentFile();null!=Ba&&(ma=ea(O.xml),null!=ma&&""!=ma&&Ba.mergeFile(new LocalFile(this,ma),function(){I.postMessage(JSON.stringify({event:"merge",message:O}),"*")},function(sa){I.postMessage(JSON.stringify({event:"merge",message:O,error:sa}),"*")}))}else"remoteInvokeReady"==O.action?
this.handleRemoteInvokeReady(I):"remoteInvoke"==O.action?this.handleRemoteInvoke(O,K.origin):"remoteInvokeResponse"==O.action?this.handleRemoteInvokeResponse(O):I.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(O)}),"*");return}}catch(sa){this.handleError(sa)}}var Ca=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),La=mxUtils.bind(this,function(sa,Aa){k=!0;try{c(sa,
-Aa,null,ca)}catch(Ea){this.handleError(Ea)}k=!1;null!=urlParams.modified&&this.editor.setStatus("");z=Ca();A&&null==f&&(f=mxUtils.bind(this,function(Ea,Ka){Ea=Ca();Ea==z||k||(Ka=this.createLoadMessage("autosave"),Ka.xml=Ea,(window.opener||window.parent).postMessage(JSON.stringify(Ka),"*"));z=Ea}),this.editor.graph.model.addListener(mxEvent.CHANGE,f),this.editor.graph.addListener("gridSizeChanged",f),this.editor.graph.addListener("shadowVisibleChanged",f),this.addListener("pageFormatChanged",f),this.addListener("pageScaleChanged",
+Aa,null,ca)}catch(Ea){this.handleError(Ea)}k=!1;null!=urlParams.modified&&this.editor.setStatus("");z=Ca();B&&null==f&&(f=mxUtils.bind(this,function(Ea,Ka){Ea=Ca();Ea==z||k||(Ka=this.createLoadMessage("autosave"),Ka.xml=Ea,(window.opener||window.parent).postMessage(JSON.stringify(Ka),"*"));z=Ea}),this.editor.graph.model.addListener(mxEvent.CHANGE,f),this.editor.graph.addListener("gridSizeChanged",f),this.editor.graph.addListener("shadowVisibleChanged",f),this.addListener("pageFormatChanged",f),this.addListener("pageScaleChanged",
f),this.addListener("backgroundColorChanged",f),this.addListener("backgroundImageChanged",f),this.addListener("foldingEnabledChanged",f),this.addListener("mathEnabledChanged",f),this.addListener("gridEnabledChanged",f),this.addListener("guidesEnabledChanged",f),this.addListener("pageViewChanged",f));if("1"==urlParams.returnbounds||"json"==urlParams.proto)Aa=this.createLoadMessage("load"),Aa.xml=sa,I.postMessage(JSON.stringify(Aa),"*");null!=da&&da()});null!=O&&"function"===typeof O.substring&&"data:application/vnd.visio;base64,"==
O.substring(0,34)?(ea="0M8R4KGxGuE"==O.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(O.substring(O.indexOf(",")+1)),function(sa){La(sa,K)},mxUtils.bind(this,function(sa){this.handleError(sa)}),ea)):null!=O&&"function"===typeof O.substring&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(O,"")?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(O,mxUtils.bind(this,function(sa){4==sa.readyState&&(200<=sa.status&&
299>=sa.status&&"<mxGraphModel"==sa.responseText.substring(0,13)?La(sa.responseText,K):this.handleError({message:413==sa.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")}))}),""):null!=O&&"function"===typeof O.substring&&this.isLucidChartData(O)?this.convertLucidChart(O,mxUtils.bind(this,function(sa){La(sa)}),mxUtils.bind(this,function(sa){this.handleError(sa)})):null==O||"object"!==typeof O||null==O.format||null==O.data&&null==O.url?(O=ea(O),La(O,K)):this.loadDescriptor(O,
mxUtils.bind(this,function(sa){La(Ca(),K)}),mxUtils.bind(this,function(sa){this.handleError(sa,mxResources.get("errorLoadingFile"))}))}}));var I=window.opener||window.parent;C="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";I.postMessage(C,"*");if("json"==urlParams.proto){var L=this.editor.graph.openLink;this.editor.graph.openLink=function(K,O,da){L.apply(this,arguments);I.postMessage(JSON.stringify({event:"openLink",href:K,target:O,allowOpener:da}),"*")}}};EditorUi.prototype.createEmbedButton=
-function(c,f,k,A){var z="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,C=document.createElement("button");C.setAttribute("title",c+(null!=k?" ("+k+")":""));C.style.marginLeft="6px";mxUtils.write(C,c);z?(C.className=A?"gePrimaryBtn":"",C.style.marginLeft="8px",C.style.padding="6px"):C.className="geBigButton"+(A?"":" geBigStandardButton");mxEvent.addListener(C,"click",f);return C};EditorUi.prototype.addEmbedButtons=function(){var c=document.createElement("div");
+function(c,f,k,B){var z="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,C=document.createElement("button");C.setAttribute("title",c+(null!=k?" ("+k+")":""));C.style.marginLeft="6px";mxUtils.write(C,c);z?(C.className=B?"gePrimaryBtn":"",C.style.marginLeft="8px",C.style.padding="6px"):C.className="geBigButton"+(B?"":" geBigStandardButton");mxEvent.addListener(C,"click",f);return C};EditorUi.prototype.addEmbedButtons=function(){var c=document.createElement("div");
c.style.display="inline-flex";c.style.alignItems="center";c.style.marginLeft="auto";"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme&&(c.style.marginRight="66px",c.style["float"]="right","atlas"==Editor.currentTheme&&(c.style.marginTop="2px"));document.createElement("button").className="geBigButton";"1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&c.appendChild(this.createEmbedButton("1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),
this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S",!0)):(c.appendChild(this.createEmbedButton(mxResources.get("save"),mxUtils.bind(this,function(){this.actions.get("save").funct(!1)}),"1"==urlParams.saveAndExit?Editor.ctrlKey+"+Shift+S":Editor.ctrlKey+"+S",!0)),"1"==urlParams.saveAndExit&&c.appendChild(this.createEmbedButton(mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S")));"1"!=urlParams.noExitBtn&&c.appendChild(this.createEmbedButton("1"==urlParams.publishClose?
mxResources.get("close"):mxResources.get("exit"),this.actions.get("exit").funct));"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||null==this.buttonContainer?null!=this.menubar&&(this.toolbar.container.appendChild(c),this.toolbar.staticElements.push(c)):(this.buttonContainer.appendChild(c),this.editor.fireEvent(new mxEventObject("statusChanged")))};EditorUi.prototype.showImportCsvDialog=function(){null==this.importCsvDialog&&(this.importCsvDialog=new TextareaDialog(this,
mxResources.get("csv")+":",Editor.defaultCsvValue,mxUtils.bind(this,function(c){this.importCsv(c)}),null,null,620,430,null,!0,!0,mxResources.get("import"),this.isOffline()?null:"https://drawio-app.com/import-from-csv-to-drawio/"));this.showDialog(this.importCsvDialog.container,640,520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(c){this.loadOrgChartLayouts(mxUtils.bind(this,function(){var f=new TextareaDialog(this,mxResources.get("layout"),
-c,mxUtils.bind(this,function(k){if(0<k.length)try{var A=JSON.parse(k);this.executeLayouts(this.editor.graph.createLayouts(A));this.customLayoutConfig=A;this.hideDialog()}catch(z){this.handleError(z)}}),null,null,null,null,mxUtils.bind(this,function(k,A){var z=mxUtils.button(mxResources.get("copy"),mxUtils.bind(this,function(){try{var C=A.value;A.value=JSON.stringify(JSON.parse(C));A.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?A.select():document.execCommand("selectAll",!1,null);
-document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));A.value=C}catch(I){this.handleError(I)}}));z.setAttribute("title","copy");z.className="geBtn";k.appendChild(z)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(f.container,620,460,!0,!0);f.init()}))};EditorUi.prototype.loadOrgChartLayouts=function(c){this.createTimeout(null,mxUtils.bind(this,function(f){var k=mxUtils.bind(this,function(){this.loadingOrgChart=!1;f.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),
-this.spinner.stop(),c())}),A=mxUtils.bind(this,function(z){this.loadingOrgChart=!1;f.clear()&&this.handleError(z)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?k():this.spinner.spin(document.body,mxResources.get("loading"))&&(this.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",
-k,null,null,null,A)},null,null,null,A)},null,null,null,A)},null,null,null,A):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",k,null,null,null,A))}),onerror)};EditorUi.prototype.importCsv=function(c,f){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,f)}))};EditorUi.prototype.doImportCsv=function(c,f){try{var k=c.split("\n"),A=[],z=[],C=[],I={};if(0<k.length){var L={},K=this.editor.graph,O=null,da=null,ea=null,ca=null,W=null,ma=null,la=null,Y="whiteSpace=wrap;html=1;",
-fa=null,Z=null,l="",u="auto",H="auto",U=!1,J=null,V=null,aa=40,ba=40,ja=100,oa=0,qa=mxUtils.bind(this,function(){null!=f?f(Da):(K.setSelectionCells(Da),K.scrollCellToVisible(K.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),ra=K.getFreeInsertPoint(),ua=ra.x,za=ra.y;ra=za;var Ba=null,Ca="auto";Z=null;for(var La=[],sa=null,Aa=null,Ea=0;Ea<k.length&&"#"==k[Ea].charAt(0);){c=k[Ea].replace(/\r$/,"");for(Ea++;Ea<k.length&&
-"\\"==c.charAt(c.length-1)&&"#"==k[Ea].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(k[Ea].substring(1)),Ea++;if("#"!=c.charAt(1)){var Ka=c.indexOf(":");if(0<Ka){var Ma=mxUtils.trim(c.substring(1,Ka)),ya=mxUtils.trim(c.substring(Ka+1));"label"==Ma?Ba=Graph.sanitizeHtml(ya):"labelname"==Ma&&0<ya.length&&"-"!=ya?W=ya:"labels"==Ma&&0<ya.length&&"-"!=ya?la=JSON.parse(ya):"style"==Ma?da=ya:"parentstyle"==Ma?Y=ya:"unknownStyle"==Ma&&"-"!=ya?ma=ya:"stylename"==Ma&&0<ya.length&&"-"!=ya?ca=ya:"styles"==
-Ma&&0<ya.length&&"-"!=ya?ea=JSON.parse(ya):"vars"==Ma&&0<ya.length&&"-"!=ya?O=JSON.parse(ya):"identity"==Ma&&0<ya.length&&"-"!=ya?fa=ya:"parent"==Ma&&0<ya.length&&"-"!=ya?Z=ya:"namespace"==Ma&&0<ya.length&&"-"!=ya?l=ya:"width"==Ma?u=ya:"height"==Ma?H=ya:"collapsed"==Ma&&"-"!=ya?U="true"==ya:"left"==Ma&&0<ya.length?J=ya:"top"==Ma&&0<ya.length?V=ya:"ignore"==Ma?Aa=ya.split(","):"connect"==Ma?La.push(JSON.parse(ya)):"link"==Ma?sa=ya:"padding"==Ma?oa=parseFloat(ya):"edgespacing"==Ma?aa=parseFloat(ya):
+c,mxUtils.bind(this,function(k){if(0<k.length)try{var B=JSON.parse(k);this.executeLayouts(this.editor.graph.createLayouts(B));this.customLayoutConfig=B;this.hideDialog()}catch(z){this.handleError(z)}}),null,null,null,null,mxUtils.bind(this,function(k,B){var z=mxUtils.button(mxResources.get("copy"),mxUtils.bind(this,function(){try{var C=B.value;B.value=JSON.stringify(JSON.parse(C));B.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?B.select():document.execCommand("selectAll",!1,null);
+document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));B.value=C}catch(I){this.handleError(I)}}));z.setAttribute("title","copy");z.className="geBtn";k.appendChild(z)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(f.container,620,460,!0,!0);f.init()}))};EditorUi.prototype.loadOrgChartLayouts=function(c){this.createTimeout(null,mxUtils.bind(this,function(f){var k=mxUtils.bind(this,function(){this.loadingOrgChart=!1;f.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),
+this.spinner.stop(),c())}),B=mxUtils.bind(this,function(z){this.loadingOrgChart=!1;f.clear()&&this.handleError(z)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?k():this.spinner.spin(document.body,mxResources.get("loading"))&&(this.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",
+k,null,null,null,B)},null,null,null,B)},null,null,null,B)},null,null,null,B):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",k,null,null,null,B))}),onerror)};EditorUi.prototype.importCsv=function(c,f){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,f)}))};EditorUi.prototype.doImportCsv=function(c,f){try{var k=c.split("\n"),B=[],z=[],C=[],I={};if(0<k.length){var L={},K=this.editor.graph,O=null,da=null,ea=null,ca=null,V=null,ma=null,la=null,Y="whiteSpace=wrap;html=1;",
+fa=null,Z=null,l="",u="auto",H="auto",U=!1,J=null,W=null,aa=40,ba=40,ja=100,oa=0,qa=mxUtils.bind(this,function(){null!=f?f(Da):(K.setSelectionCells(Da),K.scrollCellToVisible(K.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),ra=K.getFreeInsertPoint(),ua=ra.x,za=ra.y;ra=za;var Ba=null,Ca="auto";Z=null;for(var La=[],sa=null,Aa=null,Ea=0;Ea<k.length&&"#"==k[Ea].charAt(0);){c=k[Ea].replace(/\r$/,"");for(Ea++;Ea<k.length&&
+"\\"==c.charAt(c.length-1)&&"#"==k[Ea].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(k[Ea].substring(1)),Ea++;if("#"!=c.charAt(1)){var Ka=c.indexOf(":");if(0<Ka){var Ma=mxUtils.trim(c.substring(1,Ka)),ya=mxUtils.trim(c.substring(Ka+1));"label"==Ma?Ba=Graph.sanitizeHtml(ya):"labelname"==Ma&&0<ya.length&&"-"!=ya?V=ya:"labels"==Ma&&0<ya.length&&"-"!=ya?la=JSON.parse(ya):"style"==Ma?da=ya:"parentstyle"==Ma?Y=ya:"unknownStyle"==Ma&&"-"!=ya?ma=ya:"stylename"==Ma&&0<ya.length&&"-"!=ya?ca=ya:"styles"==
+Ma&&0<ya.length&&"-"!=ya?ea=JSON.parse(ya):"vars"==Ma&&0<ya.length&&"-"!=ya?O=JSON.parse(ya):"identity"==Ma&&0<ya.length&&"-"!=ya?fa=ya:"parent"==Ma&&0<ya.length&&"-"!=ya?Z=ya:"namespace"==Ma&&0<ya.length&&"-"!=ya?l=ya:"width"==Ma?u=ya:"height"==Ma?H=ya:"collapsed"==Ma&&"-"!=ya?U="true"==ya:"left"==Ma&&0<ya.length?J=ya:"top"==Ma&&0<ya.length?W=ya:"ignore"==Ma?Aa=ya.split(","):"connect"==Ma?La.push(JSON.parse(ya)):"link"==Ma?sa=ya:"padding"==Ma?oa=parseFloat(ya):"edgespacing"==Ma?aa=parseFloat(ya):
"nodespacing"==Ma?ba=parseFloat(ya):"levelspacing"==Ma?ja=parseFloat(ya):"layout"==Ma&&(Ca=ya)}}}if(null==k[Ea])throw Error(mxResources.get("invalidOrMissingFile"));var Wa=this.editor.csvToArray(k[Ea].replace(/\r$/,""));Ka=c=null;Ma=[];for(ya=0;ya<Wa.length;ya++)fa==Wa[ya]&&(c=ya),Z==Wa[ya]&&(Ka=ya),Ma.push(mxUtils.trim(Wa[ya]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==Ba&&(Ba="%"+Ma[0]+"%");if(null!=La)for(var Ia=0;Ia<La.length;Ia++)null==L[La[Ia].to]&&(L[La[Ia].to]=
-{});fa=[];for(ya=Ea+1;ya<k.length;ya++){var Xa=this.editor.csvToArray(k[ya].replace(/\r$/,""));if(null==Xa){var Pa=40<k[ya].length?k[ya].substring(0,40)+"...":k[ya];throw Error(Pa+" ("+ya+"):\n"+mxResources.get("containsValidationErrors"));}0<Xa.length&&fa.push(Xa)}K.model.beginUpdate();try{for(ya=0;ya<fa.length;ya++){Xa=fa[ya];var t=null,N=null!=c?l+Xa[c]:null;k=!1;null!=N&&(t=K.model.getCell(N),k=null==t||0<=mxUtils.indexOf(A,t));var Q=new mxCell(Ba,new mxGeometry(ua,ra,0,0),da||"whiteSpace=wrap;html=1;");
-Q.collapsed=U;Q.vertex=!0;Q.id=N;null==t||k||K.model.setCollapsed(t,U);for(var X=0;X<Xa.length;X++)K.setAttributeForCell(Q,Ma[X],Xa[X]),null==t||k||K.setAttributeForCell(t,Ma[X],Xa[X]);if(null!=W&&null!=la){var ia=la[Q.getAttribute(W)];null!=ia&&(K.labelChanged(Q,ia),null==t||k||K.cellLabelChanged(t,ia))}if(null!=ca&&null!=ea){var ka=ea[Q.getAttribute(ca)];null!=ka&&(Q.style=ka)}K.setAttributeForCell(Q,"placeholders","1");Q.style=K.replacePlaceholders(Q,Q.style,O);null==t||k?K.fireEvent(new mxEventObject("cellsInserted",
+{});fa=[];for(ya=Ea+1;ya<k.length;ya++){var Xa=this.editor.csvToArray(k[ya].replace(/\r$/,""));if(null==Xa){var Pa=40<k[ya].length?k[ya].substring(0,40)+"...":k[ya];throw Error(Pa+" ("+ya+"):\n"+mxResources.get("containsValidationErrors"));}0<Xa.length&&fa.push(Xa)}K.model.beginUpdate();try{for(ya=0;ya<fa.length;ya++){Xa=fa[ya];var t=null,N=null!=c?l+Xa[c]:null;k=!1;null!=N&&(t=K.model.getCell(N),k=null==t||0<=mxUtils.indexOf(B,t));var Q=new mxCell(Ba,new mxGeometry(ua,ra,0,0),da||"whiteSpace=wrap;html=1;");
+Q.collapsed=U;Q.vertex=!0;Q.id=N;null==t||k||K.model.setCollapsed(t,U);for(var X=0;X<Xa.length;X++)K.setAttributeForCell(Q,Ma[X],Xa[X]),null==t||k||K.setAttributeForCell(t,Ma[X],Xa[X]);if(null!=V&&null!=la){var ia=la[Q.getAttribute(V)];null!=ia&&(K.labelChanged(Q,ia),null==t||k||K.cellLabelChanged(t,ia))}if(null!=ca&&null!=ea){var ka=ea[Q.getAttribute(ca)];null!=ka&&(Q.style=ka)}K.setAttributeForCell(Q,"placeholders","1");Q.style=K.replacePlaceholders(Q,Q.style,O);null==t||k?K.fireEvent(new mxEventObject("cellsInserted",
"cells",[Q])):(K.model.setStyle(t,Q.style),0>mxUtils.indexOf(C,t)&&C.push(t),K.fireEvent(new mxEventObject("cellsInserted","cells",[t])));k=null!=t;t=Q;if(!k)for(Ia=0;Ia<La.length;Ia++)L[La[Ia].to][t.getAttribute(La[Ia].to)]=t;null!=sa&&"link"!=sa&&(K.setLinkForCell(t,t.getAttribute(sa)),K.setAttributeForCell(t,sa,null));var pa=this.editor.graph.getPreferredSizeForCell(t);Z=null!=Ka?K.model.getCell(l+Xa[Ka]):null;if(t.vertex){Pa=null!=Z?0:ua;Ea=null!=Z?0:za;null!=J&&null!=t.getAttribute(J)&&(t.geometry.x=
-Pa+parseFloat(t.getAttribute(J)));null!=V&&null!=t.getAttribute(V)&&(t.geometry.y=Ea+parseFloat(t.getAttribute(V)));var xa="@"==u.charAt(0)?t.getAttribute(u.substring(1)):null;t.geometry.width=null!=xa&&"auto"!=xa?parseFloat(t.getAttribute(u.substring(1))):"auto"==u||"auto"==xa?pa.width+oa:parseFloat(u);var ta="@"==H.charAt(0)?t.getAttribute(H.substring(1)):null;t.geometry.height=null!=ta&&"auto"!=ta&&"width"!=H?parseFloat(ta):"auto"==H||"auto"==ta?pa.height+oa:"width"==H?t.geometry.width:parseFloat(H);
-ra+=t.geometry.height+ba}k?(null==I[N]&&(I[N]=[]),I[N].push(t)):(A.push(t),null!=Z?(Z.style=K.replacePlaceholders(Z,Y,O),K.addCell(t,Z),z.push(Z)):C.push(K.addCell(t)))}for(ya=0;ya<z.length;ya++)xa="@"==u.charAt(0)?z[ya].getAttribute(u.substring(1)):null,ta="@"==H.charAt(0)?z[ya].getAttribute(H.substring(1)):null,"auto"!=u&&"auto"!=xa||"auto"!=H&&"auto"!=ta||K.updateGroupBounds([z[ya]],oa,!0);var va=C.slice(),Da=C.slice();for(Ia=0;Ia<La.length;Ia++){var Na=La[Ia];for(ya=0;ya<A.length;ya++){t=A[ya];
+Pa+parseFloat(t.getAttribute(J)));null!=W&&null!=t.getAttribute(W)&&(t.geometry.y=Ea+parseFloat(t.getAttribute(W)));var xa="@"==u.charAt(0)?t.getAttribute(u.substring(1)):null;t.geometry.width=null!=xa&&"auto"!=xa?parseFloat(t.getAttribute(u.substring(1))):"auto"==u||"auto"==xa?pa.width+oa:parseFloat(u);var ta="@"==H.charAt(0)?t.getAttribute(H.substring(1)):null;t.geometry.height=null!=ta&&"auto"!=ta&&"width"!=H?parseFloat(ta):"auto"==H||"auto"==ta?pa.height+oa:"width"==H?t.geometry.width:parseFloat(H);
+ra+=t.geometry.height+ba}k?(null==I[N]&&(I[N]=[]),I[N].push(t)):(B.push(t),null!=Z?(Z.style=K.replacePlaceholders(Z,Y,O),K.addCell(t,Z),z.push(Z)):C.push(K.addCell(t)))}for(ya=0;ya<z.length;ya++)xa="@"==u.charAt(0)?z[ya].getAttribute(u.substring(1)):null,ta="@"==H.charAt(0)?z[ya].getAttribute(H.substring(1)):null,"auto"!=u&&"auto"!=xa||"auto"!=H&&"auto"!=ta||K.updateGroupBounds([z[ya]],oa,!0);var va=C.slice(),Da=C.slice();for(Ia=0;Ia<La.length;Ia++){var Na=La[Ia];for(ya=0;ya<B.length;ya++){t=B[ya];
var Ya=mxUtils.bind(this,function(nb,lb,db){var mb=lb.getAttribute(db.from);if(null!=mb&&""!=mb){mb=mb.split(",");for(var ub=0;ub<mb.length;ub++){var eb=L[db.to][mb[ub]];if(null==eb&&null!=ma){eb=new mxCell(mb[ub],new mxGeometry(ua,za,0,0),ma);eb.style=K.replacePlaceholders(lb,eb.style,O);var ob=this.editor.graph.getPreferredSizeForCell(eb);eb.geometry.width=ob.width+oa;eb.geometry.height=ob.height+oa;L[db.to][mb[ub]]=eb;eb.vertex=!0;eb.id=mb[ub];C.push(K.addCell(eb))}if(null!=eb){ob=db.label;null!=
db.fromlabel&&(ob=(lb.getAttribute(db.fromlabel)||"")+(ob||""));null!=db.sourcelabel&&(ob=K.replacePlaceholders(lb,db.sourcelabel,O)+(ob||""));null!=db.tolabel&&(ob=(ob||"")+(eb.getAttribute(db.tolabel)||""));null!=db.targetlabel&&(ob=(ob||"")+K.replacePlaceholders(eb,db.targetlabel,O));var tb="target"==db.placeholders==!db.invert?eb:nb;tb=null!=db.style?K.replacePlaceholders(tb,db.style,O):K.createCurrentEdgeStyle();ob=K.insertEdge(null,null,ob||"",db.invert?eb:nb,db.invert?nb:eb,tb);if(null!=db.labels)for(tb=
0;tb<db.labels.length;tb++){var pb=db.labels[tb],wb=new mxCell(pb.label||tb,new mxGeometry(null!=pb.x?pb.x:0,null!=pb.y?pb.y:0,0,0),"resizable=0;html=1;");wb.vertex=!0;wb.connectable=!1;wb.geometry.relative=!0;null!=pb.placeholders&&(wb.value=K.replacePlaceholders("target"==pb.placeholders==!db.invert?eb:nb,wb.value,O));if(null!=pb.dx||null!=pb.dy)wb.geometry.offset=new mxPoint(null!=pb.dx?pb.dx:0,null!=pb.dy?pb.dy:0);ob.insert(wb)}if(null!=db.data)for(var vb in db.data)K.setAttributeForCell(ob,vb,
-db.data[vb]);Da.push(ob);mxUtils.remove(db.invert?nb:eb,va)}}}});Ya(t,t,Na);if(null!=I[t.id])for(X=0;X<I[t.id].length;X++)Ya(t,I[t.id][X],Na)}}if(null!=Aa)for(ya=0;ya<A.length;ya++)for(t=A[ya],X=0;X<Aa.length;X++)K.setAttributeForCell(t,mxUtils.trim(Aa[X]),null);if(0<C.length){var Za=new mxParallelEdgeLayout(K);Za.spacing=aa;Za.checkOverlap=!0;var ab=function(){0<Za.spacing&&Za.execute(K.getDefaultParent());for(var nb=0;nb<C.length;nb++){var lb=K.getCellGeometry(C[nb]);lb.x=Math.round(K.snap(lb.x));
+db.data[vb]);Da.push(ob);mxUtils.remove(db.invert?nb:eb,va)}}}});Ya(t,t,Na);if(null!=I[t.id])for(X=0;X<I[t.id].length;X++)Ya(t,I[t.id][X],Na)}}if(null!=Aa)for(ya=0;ya<B.length;ya++)for(t=B[ya],X=0;X<Aa.length;X++)K.setAttributeForCell(t,mxUtils.trim(Aa[X]),null);if(0<C.length){var Za=new mxParallelEdgeLayout(K);Za.spacing=aa;Za.checkOverlap=!0;var ab=function(){0<Za.spacing&&Za.execute(K.getDefaultParent());for(var nb=0;nb<C.length;nb++){var lb=K.getCellGeometry(C[nb]);lb.x=Math.round(K.snap(lb.x));
lb.y=Math.round(K.snap(lb.y));"auto"==u&&(lb.width=Math.round(K.snap(lb.width)));"auto"==H&&(lb.height=Math.round(K.snap(lb.height)))}};if("["==Ca.charAt(0)){var Ra=qa;K.view.validate();this.executeLayouts(K.createLayouts(JSON.parse(Ca)),function(){ab();Ra()});qa=null}else if("circle"==Ca){var Oa=new mxCircleLayout(K);Oa.disableEdgeStyle=!1;Oa.resetEdges=!1;var kb=Oa.isVertexIgnored;Oa.isVertexIgnored=function(nb){return kb.apply(this,arguments)||0>mxUtils.indexOf(C,nb)};this.executeLayout(function(){Oa.execute(K.getDefaultParent());
ab()},!0,qa);qa=null}else if("horizontaltree"==Ca||"verticaltree"==Ca||"auto"==Ca&&Da.length==2*C.length-1&&1==va.length){K.view.validate();var cb=new mxCompactTreeLayout(K,"horizontaltree"==Ca);cb.levelDistance=ba;cb.edgeRouting=!1;cb.resetEdges=!1;cb.sortEdges=!0;this.executeLayout(function(){cb.execute(K.getDefaultParent(),0<va.length?va[0]:null)},!0,qa);qa=null}else if("horizontalflow"==Ca||"verticalflow"==Ca||"auto"==Ca&&1==va.length){K.view.validate();var $a=new mxHierarchicalLayout(K,"horizontalflow"==
Ca?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);$a.intraCellSpacing=ba;$a.parallelEdgeSpacing=aa;$a.interRankCellSpacing=ja;$a.disableEdgeStyle=!1;this.executeLayout(function(){$a.execute(K.getDefaultParent(),Da);K.moveCells(Da,ua,za)},!0,qa);qa=null}else if("orgchart"==Ca){K.view.validate();var fb=new mxOrgChartLayout(K,2,ja,ba),jb=fb.isVertexIgnored;fb.isVertexIgnored=function(nb){return jb.apply(this,arguments)||0>mxUtils.indexOf(C,nb)};this.executeLayout(function(){fb.execute(K.getDefaultParent());
ab()},!0,qa);qa=null}else if("organic"==Ca||"auto"==Ca&&Da.length>C.length){K.view.validate();var sb=new mxFastOrganicLayout(K);sb.forceConstant=3*ba;sb.disableEdgeStyle=!1;sb.resetEdges=!1;var Ab=sb.isVertexIgnored;sb.isVertexIgnored=function(nb){return Ab.apply(this,arguments)||0>mxUtils.indexOf(C,nb)};this.executeLayout(function(){sb.execute(K.getDefaultParent());ab()},!0,qa);qa=null}}this.hideDialog()}finally{K.model.endUpdate()}null!=qa&&qa()}}catch(nb){this.handleError(nb)}};EditorUi.prototype.getSearch=
-function(c){var f="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var k="?",A;for(A in urlParams)0>mxUtils.indexOf(c,A)&&null!=urlParams[A]&&(f+=k+A+"="+urlParams[A],k="&")}else f=window.location.search;return f};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var f=0<c.indexOf("?")?1:0;if("1"==urlParams.offline)c+=window.location.search;else{var k="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),
-A;for(A in urlParams)0>mxUtils.indexOf(k,A)&&(c=0==f?c+"?":c+"&",null!=urlParams[A]&&(c+=A+"="+urlParams[A],f++))}return c};EditorUi.prototype.showLinkDialog=function(c,f,k,A,z){c=new LinkDialog(this,c,f,k,!0,A,z);this.showDialog(c.container,440,120,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var f=1;null==this.drive&&"function"!==typeof window.DriveClient||f++;null==this.dropbox&&"function"!==typeof window.DropboxClient||f++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||
+function(c){var f="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var k="?",B;for(B in urlParams)0>mxUtils.indexOf(c,B)&&null!=urlParams[B]&&(f+=k+B+"="+urlParams[B],k="&")}else f=window.location.search;return f};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var f=0<c.indexOf("?")?1:0;if("1"==urlParams.offline)c+=window.location.search;else{var k="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),
+B;for(B in urlParams)0>mxUtils.indexOf(k,B)&&(c=0==f?c+"?":c+"&",null!=urlParams[B]&&(c+=B+"="+urlParams[B],f++))}return c};EditorUi.prototype.showLinkDialog=function(c,f,k,B,z){c=new LinkDialog(this,c,f,k,!0,B,z);this.showDialog(c.container,440,120,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var f=1;null==this.drive&&"function"!==typeof window.DriveClient||f++;null==this.dropbox&&"function"!==typeof window.DropboxClient||f++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||
f++;null!=this.gitHub&&f++;null!=this.gitLab&&f++;c&&isLocalStorage&&"1"==urlParams.browser&&f++;return f};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var c=this.getCurrentFile(),f=null!=c||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(f);this.menus.get("viewZoom").setEnabled(f);var k=("1"!=urlParams.embed||"1"==urlParams.embedRT||!this.editor.graph.isEnabled())&&(null==c||c.isRestricted());this.actions.get("makeCopy").setEnabled(!k);
this.actions.get("print").setEnabled(!k);this.menus.get("exportAs").setEnabled(!k);this.menus.get("embed").setEnabled(!k);k="1"!=urlParams.embed||this.editor.graph.isEnabled();this.menus.get("extras").setEnabled(k);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(k),this.menus.get("newLibrary").setEnabled(k));c="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=c&&c.isEditable();this.actions.get("image").setEnabled(f);this.actions.get("zoomIn").setEnabled(f);this.actions.get("zoomOut").setEnabled(f);
this.actions.get("smartFit").setEnabled(f);this.actions.get("resetView").setEnabled(f);this.actions.get("darkMode").setEnabled("atlas"!=Editor.currentTheme);this.actions.get("lightMode").setEnabled("atlas"!=Editor.currentTheme);k=this.actions.get("autoMode");k.setEnabled(k.isEnabled()&&"atlas"!=Editor.currentTheme);this.menus.get("edit").setEnabled(f);this.menus.get("view").setEnabled(f);this.menus.get("importFrom").setEnabled(c);this.menus.get("arrange").setEnabled(c);null!=this.toolbar&&(null!=
this.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(c),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(c));this.updateUserElement()};EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.updateUserElement=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var c=this.getCurrentFile();return null!=c&&c.isEditable()||"1"==urlParams.embed&&
this.editor.graph.isEnabled()};var P=EditorUi.prototype.createSidebar;EditorUi.prototype.createSidebar=function(c){var f=P.apply(this,arguments),k=mxUtils.bind(this,function(){f.refresh();this.restoreOpenLibraries()});this.addListener("sketchModeChanged",k);this.addListener("currentThemeChanged",k);return f};EditorUi.prototype.restoreOpenLibraries=function(){var c=this.openLibraries;this.openLibraries=null;if(null!=c)for(var f=0;f<c.length;f++)this.libraryLoaded(c[f].file,c[f].images,c[f].title,null!=
-c[f].div?"none"!=c[f].div.style.display:c[f].expand)};var R=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){R.apply(this,arguments);var c=this.editor.graph,f=this.getCurrentFile(),k=this.getSelectionState(),A=this.isDiagramActive(),z="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=f&&f.isEditable();this.actions.get("undo").setEnabled(this.canUndo()&&z);this.actions.get("redo").setEnabled(this.canRedo()&&z);this.actions.get("autosave").setEnabled(null!=
-f&&f.isEditable()&&f.isAutosaveOptional());this.actions.get("guides").setEnabled(A);this.actions.get("editData").setEnabled(c.isEnabled());this.actions.get("editConnectionPoints").setEnabled(A&&0==k.edges.length&&1==k.vertices.length);this.actions.get("editImage").setEnabled(A&&k.image&&0<k.cells.length);this.actions.get("crop").setEnabled(A&&k.image&&0<k.cells.length);this.actions.get("pageSetup").setEnabled(A);this.actions.get("shadowVisible").setEnabled(A);this.actions.get("connectionArrows").setEnabled(A);
-this.actions.get("connectionPoints").setEnabled(A);this.actions.get("copyStyle").setEnabled(A&&!c.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(null!=this.copiedStyle&&A&&0<k.cells.length);this.actions.get("editGeometry").setEnabled(0<k.vertices.length);this.actions.get("createShape").setEnabled(A);this.actions.get("createRevision").setEnabled(A);this.actions.get("moveToFolder").setEnabled(null!=f);this.actions.get("makeCopy").setEnabled(null!=f&&!f.isRestricted());this.actions.get("editDiagram").setEnabled(A&&
+c[f].div?"none"!=c[f].div.style.display:c[f].expand)};var R=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){R.apply(this,arguments);var c=this.editor.graph,f=this.getCurrentFile(),k=this.getSelectionState(),B=this.isDiagramActive(),z="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=f&&f.isEditable();this.actions.get("undo").setEnabled(this.canUndo()&&z);this.actions.get("redo").setEnabled(this.canRedo()&&z);this.actions.get("autosave").setEnabled(null!=
+f&&f.isEditable()&&f.isAutosaveOptional());this.actions.get("guides").setEnabled(B);this.actions.get("editData").setEnabled(c.isEnabled());this.actions.get("editConnectionPoints").setEnabled(B&&0==k.edges.length&&1==k.vertices.length);this.actions.get("editImage").setEnabled(B&&k.image&&0<k.cells.length);this.actions.get("crop").setEnabled(B&&k.image&&0<k.cells.length);this.actions.get("pageSetup").setEnabled(B);this.actions.get("shadowVisible").setEnabled(B);this.actions.get("connectionArrows").setEnabled(B);
+this.actions.get("connectionPoints").setEnabled(B);this.actions.get("copyStyle").setEnabled(B&&!c.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(null!=this.copiedStyle&&B&&0<k.cells.length);this.actions.get("editGeometry").setEnabled(0<k.vertices.length);this.actions.get("createShape").setEnabled(B);this.actions.get("createRevision").setEnabled(B);this.actions.get("moveToFolder").setEnabled(null!=f);this.actions.get("makeCopy").setEnabled(null!=f&&!f.isRestricted());this.actions.get("editDiagram").setEnabled(B&&
(null==f||!f.isRestricted()));this.actions.get("publishLink").setEnabled(null!=f&&!f.isRestricted());this.actions.get("removeFormat").setEnabled(c.isEnabled()&&!c.isSelectionEmpty()&&!c.isEditing());this.actions.get("tags").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("layers").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("outline").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("rename").setEnabled(null!=
-f&&f.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=f);this.actions.get("properties").setEnabled(null!=f);this.menus.get("publish").setEnabled(null!=f&&!f.isRestricted());f=this.actions.get("findReplace");f.setEnabled("hidden"!=this.diagramContainer.style.visibility);f.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(A&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};
-var T=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);T.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,f,k,A,z,C,I,L){var K=c.editor.graph;if("xml"==k)c.hideDialog(),c.saveData(f,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==k)c.hideDialog(),c.saveData(f,
-"svg",mxUtils.getXml(K.getSvg(A,z,C)),"image/svg+xml");else{var O=c.getFileData(!0,null,null,null,null,!0),da=K.getGraphBounds(),ea=Math.floor(da.width*z/K.view.scale),ca=Math.floor(da.height*z/K.view.scale);if(O.length<=MAX_REQUEST_SIZE&&ea*ca<MAX_AREA)if(c.hideDialog(),"png"!=k&&"jpg"!=k&&"jpeg"!=k||!c.isExportToCanvas()){var W={globalVars:K.getExportVariables()};L&&(W.grid={size:K.gridSize,steps:K.view.gridSteps,color:K.view.gridColor});c.saveRequest(f,k,function(ma,la){return new mxXmlRequest(EXPORT_URL,
-"format="+k+"&base64="+(la||"0")+(null!=ma?"&filename="+encodeURIComponent(ma):"")+"&extras="+encodeURIComponent(JSON.stringify(W))+(0<I?"&dpi="+I:"")+"&bg="+(null!=A?A:"none")+"&w="+ea+"&h="+ca+"&border="+C+"&xml="+encodeURIComponent(O))})}else"png"==k?c.exportImage(z,null==A||"none"==A,!0,!1,!1,C,!0,!1,null,L,I):c.exportImage(z,!1,!0,!1,!1,C,!0,!1,"jpeg",L);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);
-var c=this.editor.graph,f="";if(null!=this.pages)for(var k=0;k<this.pages.length;k++){var A=c;this.currentPage!=this.pages[k]&&(A=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[k]),A.model.setRoot(this.pages[k].root));f+=this.pages[k].getName()+" "+A.getIndexableText()+" "}else f=c.getIndexableText();this.editor.graph.setEnabled(!0);return f};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var f={},k=document.createElement("div");k.style.whiteSpace="nowrap";var A=
-document.createElement("h3");mxUtils.write(A,mxUtils.htmlEntities(c));A.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";k.appendChild(A);var z=document.createElement("div");z.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";z.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var C={};try{var I=mxSettings.getCustomLibraries();for(c=0;c<I.length;c++){var L=I[c];if("R"==L.substring(0,1)){var K=JSON.parse(decodeURIComponent(L.substring(1)));
-C[K[0]]={id:K[0],title:K[1],downloadUrl:K[2]}}}}catch(O){}this.remoteInvoke("getCustomLibraries",null,null,function(O){z.innerText="";if(0==O.length)z.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var da=0;da<O.length;da++){var ea=O[da];C[ea.id]&&(f[ea.id]=ea);var ca=this.addCheckbox(z,ea.title,C[ea.id]);(function(W,ma){mxEvent.addListener(ma,"change",function(){this.checked?f[W.id]=W:delete f[W.id]})})(ea,
+f&&f.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=f);this.actions.get("properties").setEnabled(null!=f);this.menus.get("publish").setEnabled(null!=f&&!f.isRestricted());f=this.actions.get("findReplace");f.setEnabled("hidden"!=this.diagramContainer.style.visibility);f.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(B&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};
+var T=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);T.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,f,k,B,z,C,I,L){var K=c.editor.graph;if("xml"==k)c.hideDialog(),c.saveData(f,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==k)c.hideDialog(),c.saveData(f,
+"svg",mxUtils.getXml(K.getSvg(B,z,C)),"image/svg+xml");else{var O=c.getFileData(!0,null,null,null,null,!0),da=K.getGraphBounds(),ea=Math.floor(da.width*z/K.view.scale),ca=Math.floor(da.height*z/K.view.scale);if(O.length<=MAX_REQUEST_SIZE&&ea*ca<MAX_AREA)if(c.hideDialog(),"png"!=k&&"jpg"!=k&&"jpeg"!=k||!c.isExportToCanvas()){var V={globalVars:K.getExportVariables()};L&&(V.grid={size:K.gridSize,steps:K.view.gridSteps,color:K.view.gridColor});c.saveRequest(f,k,function(ma,la){return new mxXmlRequest(EXPORT_URL,
+"format="+k+"&base64="+(la||"0")+(null!=ma?"&filename="+encodeURIComponent(ma):"")+"&extras="+encodeURIComponent(JSON.stringify(V))+(0<I?"&dpi="+I:"")+"&bg="+(null!=B?B:"none")+"&w="+ea+"&h="+ca+"&border="+C+"&xml="+encodeURIComponent(O))})}else"png"==k?c.exportImage(z,null==B||"none"==B,!0,!1,!1,C,!0,!1,null,L,I):c.exportImage(z,!1,!0,!1,!1,C,!0,!1,"jpeg",L);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);
+var c=this.editor.graph,f="";if(null!=this.pages)for(var k=0;k<this.pages.length;k++){var B=c;this.currentPage!=this.pages[k]&&(B=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[k]),B.model.setRoot(this.pages[k].root));f+=this.pages[k].getName()+" "+B.getIndexableText()+" "}else f=c.getIndexableText();this.editor.graph.setEnabled(!0);return f};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var f={},k=document.createElement("div");k.style.whiteSpace="nowrap";var B=
+document.createElement("h3");mxUtils.write(B,mxUtils.htmlEntities(c));B.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";k.appendChild(B);var z=document.createElement("div");z.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";z.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var C={};try{var I=mxSettings.getCustomLibraries();for(c=0;c<I.length;c++){var L=I[c];if("R"==L.substring(0,1)){var K=JSON.parse(decodeURIComponent(L.substring(1)));
+C[K[0]]={id:K[0],title:K[1],downloadUrl:K[2]}}}}catch(O){}this.remoteInvoke("getCustomLibraries",null,null,function(O){z.innerText="";if(0==O.length)z.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var da=0;da<O.length;da++){var ea=O[da];C[ea.id]&&(f[ea.id]=ea);var ca=this.addCheckbox(z,ea.title,C[ea.id]);(function(V,ma){mxEvent.addListener(ma,"change",function(){this.checked?f[V.id]=V:delete f[V.id]})})(ea,
ca)}},mxUtils.bind(this,function(O){z.innerText="";var da=document.createElement("div");da.style.padding="8px";da.style.textAlign="center";mxUtils.write(da,mxResources.get("error")+": ");mxUtils.write(da,null!=O&&null!=O.message?O.message:mxResources.get("unknownError"));z.appendChild(da)}));k.appendChild(z);k=new CustomDialog(this,k,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var O=0,da;for(da in f)null==C[da]&&(O++,mxUtils.bind(this,function(ea){this.remoteInvoke("getFileContent",
-[ea.downloadUrl],null,mxUtils.bind(this,function(ca){O--;0==O&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,ca,ea)),this.showSidebar()}catch(W){this.handleError(W,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){O--;0==O&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(f[da]));for(da in C)f[da]||this.closeLibrary(new RemoteLibrary(this,null,C[da]));0==O&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");
+[ea.downloadUrl],null,mxUtils.bind(this,function(ca){O--;0==O&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,ca,ea)),this.showSidebar()}catch(V){this.handleError(V,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){O--;0==O&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(f[da]));for(da in C)f[da]||this.closeLibrary(new RemoteLibrary(this,null,C[da]));0==O&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");
this.showDialog(k.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(c){this.remoteWin=
-c;for(var f=0;f<this.remoteInvokeQueue.length;f++)c.postMessage(this.remoteInvokeQueue[f],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var f=c.msgMarkers,k=this.remoteInvokeCallbacks[f.callbackId];if(null==k)throw Error("No callback for "+(null!=f?f.callbackId:"null"));c.error?k.error&&k.error(c.error.errResp):k.callback&&k.callback.apply(this,c.resp);this.remoteInvokeCallbacks[f.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,f,k,A,z){var C=
-!0,I=window.setTimeout(mxUtils.bind(this,function(){C=!1;z({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),L=mxUtils.bind(this,function(){window.clearTimeout(I);C&&A.apply(this,arguments)}),K=mxUtils.bind(this,function(){window.clearTimeout(I);C&&z.apply(this,arguments)});k=k||{};k.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:L,error:K});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:f,msgMarkers:k});null!=this.remoteWin?
-this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,f){var k=mxUtils.bind(this,function(O,da){var ea={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=da?ea.error={errResp:da}:null!=O&&(ea.resp=O);this.remoteWin.postMessage(JSON.stringify(ea),"*")});try{var A=c.funtionName,z=this.remoteInvokableFns[A];if(null!=z&&"function"===typeof this[A]){if(z.allowedDomains){for(var C=!1,I=0;I<z.allowedDomains.length;I++)if(f=="https://"+
-z.allowedDomains[I]){C=!0;break}if(!C){k(null,"Invalid Call: "+A+" is not allowed.");return}}var L=c.functionArgs;Array.isArray(L)||(L=[]);if(z.isAsync)L.push(function(){k(Array.prototype.slice.apply(arguments))}),L.push(function(O){k(null,O||"Unkown Error")}),this[A].apply(this,L);else{var K=this[A].apply(this,L);k([K])}}else k(null,"Invalid Call: "+A+" is not found.")}catch(O){k(null,"Invalid Call: An error occurred, "+O.message)}};EditorUi.prototype.openDatabase=function(c,f){if(null==this.database){var k=
-window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=k)try{var A=k.open("database",2);A.onupgradeneeded=function(z){try{var C=A.result;1>z.oldVersion&&C.createObjectStore("objects",{keyPath:"key"});2>z.oldVersion&&(C.createObjectStore("files",{keyPath:"title"}),C.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(I){null!=f&&f(I)}};A.onsuccess=mxUtils.bind(this,function(z){try{var C=A.result;this.database=C;EditorUi.migrateStorageFiles&&
+c;for(var f=0;f<this.remoteInvokeQueue.length;f++)c.postMessage(this.remoteInvokeQueue[f],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var f=c.msgMarkers,k=this.remoteInvokeCallbacks[f.callbackId];if(null==k)throw Error("No callback for "+(null!=f?f.callbackId:"null"));c.error?k.error&&k.error(c.error.errResp):k.callback&&k.callback.apply(this,c.resp);this.remoteInvokeCallbacks[f.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,f,k,B,z){var C=
+!0,I=window.setTimeout(mxUtils.bind(this,function(){C=!1;z({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),L=mxUtils.bind(this,function(){window.clearTimeout(I);C&&B.apply(this,arguments)}),K=mxUtils.bind(this,function(){window.clearTimeout(I);C&&z.apply(this,arguments)});k=k||{};k.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:L,error:K});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:f,msgMarkers:k});null!=this.remoteWin?
+this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,f){var k=mxUtils.bind(this,function(O,da){var ea={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=da?ea.error={errResp:da}:null!=O&&(ea.resp=O);this.remoteWin.postMessage(JSON.stringify(ea),"*")});try{var B=c.funtionName,z=this.remoteInvokableFns[B];if(null!=z&&"function"===typeof this[B]){if(z.allowedDomains){for(var C=!1,I=0;I<z.allowedDomains.length;I++)if(f=="https://"+
+z.allowedDomains[I]){C=!0;break}if(!C){k(null,"Invalid Call: "+B+" is not allowed.");return}}var L=c.functionArgs;Array.isArray(L)||(L=[]);if(z.isAsync)L.push(function(){k(Array.prototype.slice.apply(arguments))}),L.push(function(O){k(null,O||"Unkown Error")}),this[B].apply(this,L);else{var K=this[B].apply(this,L);k([K])}}else k(null,"Invalid Call: "+B+" is not found.")}catch(O){k(null,"Invalid Call: An error occurred, "+O.message)}};EditorUi.prototype.openDatabase=function(c,f){if(null==this.database){var k=
+window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=k)try{var B=k.open("database",2);B.onupgradeneeded=function(z){try{var C=B.result;1>z.oldVersion&&C.createObjectStore("objects",{keyPath:"key"});2>z.oldVersion&&(C.createObjectStore("files",{keyPath:"title"}),C.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(I){null!=f&&f(I)}};B.onsuccess=mxUtils.bind(this,function(z){try{var C=B.result;this.database=C;EditorUi.migrateStorageFiles&&
(StorageFile.migrate(C),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(I){if(!I||"1"==urlParams.forceMigration){var L=document.createElement("iframe");L.style.display="none";L.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(L);var K=!0,O=!1,da,ea=0,ca=mxUtils.bind(this,function(){O=
-!0;this.setDatabaseItem(".drawioMigrated3",!0);L.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),W=mxUtils.bind(this,function(){ea++;ma()}),ma=mxUtils.bind(this,function(){try{if(ea>=da.length)ca();else{var Y=da[ea];StorageFile.getFileContent(this,Y,mxUtils.bind(this,function(fa){null==fa||".scratchpad"==Y&&fa==this.emptyLibraryXml?L.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[Y]}),
-"*"):W()}),W)}}catch(fa){console.log(fa)}}),la=mxUtils.bind(this,function(Y){try{this.setDatabaseItem(null,[{title:Y.title,size:Y.data.length,lastModified:Date.now(),type:Y.isLib?"L":"F"},{title:Y.title,data:Y.data}],W,W,["filesInfo","files"])}catch(fa){console.log(fa)}});I=mxUtils.bind(this,function(Y){try{if(Y.source==L.contentWindow){var fa={};try{fa=JSON.parse(Y.data)}catch(Z){}"init"==fa.event?(L.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),L.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",
-funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=fa.event||O||(K?null!=fa.resp&&0<fa.resp.length&&null!=fa.resp[0]?(da=fa.resp[0],K=!1,ma()):ca():null!=fa.resp&&0<fa.resp.length&&null!=fa.resp[0]?la(fa.resp[0]):W())}}catch(Z){console.log(Z)}});window.addEventListener("message",I)}})));c(C);C.onversionchange=function(){C.close()}}catch(I){null!=f?f(I):null!=window.console&&console.warn(I)}});A.onerror=f;A.onblocked=function(){}}catch(z){null!=f?f(z):null!=window.console&&console.error(z)}else null!=
-f&&f(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,f,k,A,z){this.openDatabase(mxUtils.bind(this,function(C){try{z=z||"objects";Array.isArray(z)||(z=[z],c=[c],f=[f]);var I=C.transaction(z,"readwrite");I.oncomplete=k;I.onerror=A;for(C=0;C<z.length;C++)I.objectStore(z[C]).put(null!=c&&null!=c[C]?{key:c[C],data:f[C]}:f[C])}catch(L){null!=A&&A(L)}}),A)};EditorUi.prototype.removeDatabaseItem=function(c,f,k,A){this.openDatabase(mxUtils.bind(this,function(z){try{A=
-A||"objects";Array.isArray(A)||(A=[A],c=[c]);var C=z.transaction(A,"readwrite");C.oncomplete=f;C.onerror=k;for(z=0;z<A.length;z++)C.objectStore(A[z]).delete(c[z])}catch(I){null!=k&&k(I)}}),k)};EditorUi.prototype.getDatabaseItem=function(c,f,k,A){this.openDatabase(mxUtils.bind(this,function(z){try{A=A||"objects";var C=z.transaction([A],"readonly").objectStore(A).get(c);C.onsuccess=function(){f(C.result)};C.onerror=k}catch(I){null!=k&&k(I)}}),k)};EditorUi.prototype.getDatabaseItems=function(c,f,k){this.openDatabase(mxUtils.bind(this,
-function(A){try{k=k||"objects";var z=A.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)),C=[];z.onsuccess=function(I){null==I.target.result?c(C):(C.push(I.target.result.value),I.target.result.continue())};z.onerror=f}catch(I){null!=f&&f(I)}}),f)};EditorUi.prototype.getDatabaseItemKeys=function(c,f,k){this.openDatabase(mxUtils.bind(this,function(A){try{k=k||"objects";var z=A.transaction([k],"readonly").objectStore(k).getAllKeys();z.onsuccess=function(){c(z.result)};z.onerror=
+!0;this.setDatabaseItem(".drawioMigrated3",!0);L.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),V=mxUtils.bind(this,function(){ea++;ma()}),ma=mxUtils.bind(this,function(){try{if(ea>=da.length)ca();else{var Y=da[ea];StorageFile.getFileContent(this,Y,mxUtils.bind(this,function(fa){null==fa||".scratchpad"==Y&&fa==this.emptyLibraryXml?L.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[Y]}),
+"*"):V()}),V)}}catch(fa){console.log(fa)}}),la=mxUtils.bind(this,function(Y){try{this.setDatabaseItem(null,[{title:Y.title,size:Y.data.length,lastModified:Date.now(),type:Y.isLib?"L":"F"},{title:Y.title,data:Y.data}],V,V,["filesInfo","files"])}catch(fa){console.log(fa)}});I=mxUtils.bind(this,function(Y){try{if(Y.source==L.contentWindow){var fa={};try{fa=JSON.parse(Y.data)}catch(Z){}"init"==fa.event?(L.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),L.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",
+funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=fa.event||O||(K?null!=fa.resp&&0<fa.resp.length&&null!=fa.resp[0]?(da=fa.resp[0],K=!1,ma()):ca():null!=fa.resp&&0<fa.resp.length&&null!=fa.resp[0]?la(fa.resp[0]):V())}}catch(Z){console.log(Z)}});window.addEventListener("message",I)}})));c(C);C.onversionchange=function(){C.close()}}catch(I){null!=f?f(I):null!=window.console&&console.warn(I)}});B.onerror=f;B.onblocked=function(){}}catch(z){null!=f?f(z):null!=window.console&&console.error(z)}else null!=
+f&&f(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,f,k,B,z){this.openDatabase(mxUtils.bind(this,function(C){try{z=z||"objects";Array.isArray(z)||(z=[z],c=[c],f=[f]);var I=C.transaction(z,"readwrite");I.oncomplete=k;I.onerror=B;for(C=0;C<z.length;C++)I.objectStore(z[C]).put(null!=c&&null!=c[C]?{key:c[C],data:f[C]}:f[C])}catch(L){null!=B&&B(L)}}),B)};EditorUi.prototype.removeDatabaseItem=function(c,f,k,B){this.openDatabase(mxUtils.bind(this,function(z){try{B=
+B||"objects";Array.isArray(B)||(B=[B],c=[c]);var C=z.transaction(B,"readwrite");C.oncomplete=f;C.onerror=k;for(z=0;z<B.length;z++)C.objectStore(B[z]).delete(c[z])}catch(I){null!=k&&k(I)}}),k)};EditorUi.prototype.getDatabaseItem=function(c,f,k,B){this.openDatabase(mxUtils.bind(this,function(z){try{B=B||"objects";var C=z.transaction([B],"readonly").objectStore(B).get(c);C.onsuccess=function(){f(C.result)};C.onerror=k}catch(I){null!=k&&k(I)}}),k)};EditorUi.prototype.getDatabaseItems=function(c,f,k){this.openDatabase(mxUtils.bind(this,
+function(B){try{k=k||"objects";var z=B.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)),C=[];z.onsuccess=function(I){null==I.target.result?c(C):(C.push(I.target.result.value),I.target.result.continue())};z.onerror=f}catch(I){null!=f&&f(I)}}),f)};EditorUi.prototype.getDatabaseItemKeys=function(c,f,k){this.openDatabase(mxUtils.bind(this,function(B){try{k=k||"objects";var z=B.transaction([k],"readonly").objectStore(k).getAllKeys();z.onsuccess=function(){c(z.result)};z.onerror=
f}catch(C){null!=f&&f(C)}}),f)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,f){var k=this.getCurrentFile();null!=k?k.getComments(c,f):c([])};EditorUi.prototype.addComment=
-function(c,f,k){var A=this.getCurrentFile();null!=A?A.addComment(c,f,k):f(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.newComment=function(c,f){var k=this.getCurrentFile();return null!=k?k.newComment(c,f):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,f)};EditorUi.prototype.isRevisionHistorySupported=
+function(c,f,k){var B=this.getCurrentFile();null!=B?B.addComment(c,f,k):f(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.newComment=function(c,f){var k=this.getCurrentFile();return null!=k?k.newComment(c,f):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,f)};EditorUi.prototype.isRevisionHistorySupported=
function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(c,f){var k=this.getCurrentFile();null!=k&&k.getRevisions?k.getRevisions(c,f):f({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=
-function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,f,k,A,z,C,I,L){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,f,k,A,z,C,I,L)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=
-function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,f)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W,ma,la){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W,ma,la)};EditorUi.prototype.createImageUrlConverter=
-function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,f,k,A){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,f,k,A)};EditorUi.prototype.convertImageToDataUri=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,f)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");
-return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,f,k,A){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,f,k,A)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,f,k,A,z){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,f,k,A,z)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==
-localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],f=0;f<localStorage.length;f++){var k=localStorage.key(f),A=localStorage.getItem(k);if(0<k.length&&(".scratchpad"==k||"."!=k.charAt(0))&&0<A.length){var z="<mxfile "===A.substring(0,8)||"<?xml"===A.substring(0,5)||"\x3c!--[if IE]>"===A.substring(0,12);A="<mxlibrary>"===A.substring(0,11);(z||A)&&c.push(k)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&
+function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,f,k,B,z,C,I,L){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,f,k,B,z,C,I,L)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=
+function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,f)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V,ma,la){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V,ma,la)};EditorUi.prototype.createImageUrlConverter=
+function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,f,k,B){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,f,k,B)};EditorUi.prototype.convertImageToDataUri=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,f)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");
+return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,f,k,B){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,f,k,B)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,f,k,B,z){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,f,k,B,z)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==
+localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],f=0;f<localStorage.length;f++){var k=localStorage.key(f),B=localStorage.getItem(k);if(0<k.length&&(".scratchpad"==k||"."!=k.charAt(0))&&0<B.length){var z="<mxfile "===B.substring(0,8)||"<?xml"===B.substring(0,5)||"\x3c!--[if IE]>"===B.substring(0,12);B="<mxlibrary>"===B.substring(0,11);(z||B)&&c.push(k)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&
"1"!=urlParams.forceMigration)return null;var f=localStorage.getItem(c);return{title:c,data:f,isLib:"<mxlibrary>"===f.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();
-var CommentsWindow=function(b,e,g,m,v,p){function B(){for(var W=C.getElementsByTagName("div"),ma=0,la=0;la<W.length;la++)"none"!=W[la].style.display&&W[la].parentNode==C&&ma++;I.style.display=0==ma?"block":"none"}function G(W,ma,la,Y){function fa(){ma.removeChild(u);ma.removeChild(H);l.style.display="block";Z.style.display="block"}k={div:ma,comment:W,saveCallback:la,deleteOnCancel:Y};var Z=ma.querySelector(".geCommentTxt"),l=ma.querySelector(".geCommentActionsList"),u=document.createElement("textarea");
-u.className="geCommentEditTxtArea";u.style.minHeight=Z.offsetHeight+"px";u.value=W.content;ma.insertBefore(u,Z);var H=document.createElement("div");H.className="geCommentEditBtns";var U=mxUtils.button(mxResources.get("cancel"),function(){Y?(ma.parentNode.removeChild(ma),B()):fa();k=null});U.className="geCommentEditBtn";H.appendChild(U);var J=mxUtils.button(mxResources.get("save"),function(){Z.innerText="";W.content=u.value;mxUtils.write(Z,W.content);fa();la(W);k=null});mxEvent.addListener(u,"keydown",
-mxUtils.bind(this,function(V){mxEvent.isConsumed(V)||((mxEvent.isControlDown(V)||mxClient.IS_MAC&&mxEvent.isMetaDown(V))&&13==V.keyCode?(J.click(),mxEvent.consume(V)):27==V.keyCode&&(U.click(),mxEvent.consume(V)))}));J.focus();J.className="geCommentEditBtn gePrimaryBtn";H.appendChild(J);ma.insertBefore(H,Z);l.style.display="none";Z.style.display="none";u.focus()}function S(W,ma){ma.innerText="";W=new Date(W.modifiedDate);var la=b.timeSince(W);null==la&&(la=mxResources.get("lessThanAMinute"));mxUtils.write(ma,
-mxResources.get("timeAgo",[la],"{1} ago"));ma.setAttribute("title",W.toLocaleDateString()+" "+W.toLocaleTimeString())}function F(W){var ma=document.createElement("img");ma.className="geCommentBusyImg";ma.src=IMAGE_PATH+"/spin.gif";W.appendChild(ma);W.busyImg=ma}function P(W){W.style.border="1px solid red";W.busyImg.parentNode==W&&W.removeChild(W.busyImg)}function R(W){W.style.border="";W.busyImg.parentNode==W&&W.removeChild(W.busyImg)}function T(W,ma,la,Y,fa){function Z(ba,ja,oa){var qa=document.createElement("li");
-qa.className="geCommentAction";var ra=document.createElement("a");ra.className="geCommentActionLnk";mxUtils.write(ra,ba);qa.appendChild(ra);mxEvent.addListener(ra,"click",function(ua){ja(ua,W);ua.preventDefault();mxEvent.consume(ua)});aa.appendChild(qa);oa&&(qa.style.display="none")}function l(){function ba(qa){ja.push(oa);if(null!=qa.replies)for(var ra=0;ra<qa.replies.length;ra++)oa=oa.nextSibling,ba(qa.replies[ra])}var ja=[],oa=H;ba(W);return{pdiv:oa,replies:ja}}function u(ba,ja,oa,qa,ra){function ua(){F(La);
-W.addReply(Ca,function(sa){Ca.id=sa;W.replies.push(Ca);R(La);oa&&oa()},function(sa){za();P(La);b.handleError(sa,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},qa,ra)}function za(){G(Ca,La,function(sa){ua()},!0)}var Ba=l().pdiv,Ca=b.newComment(ba,b.getCurrentUser());Ca.pCommentId=W.id;null==W.replies&&(W.replies=[]);var La=T(Ca,W.replies,Ba,Y+1);ja?za():ua()}if(fa||!W.isResolved){I.style.display="none";var H=document.createElement("div");H.className="geCommentContainer";H.setAttribute("data-commentId",
-W.id);H.style.marginLeft=20*Y+5+"px";W.isResolved&&(A.style.opacity="0.7");var U=document.createElement("div");U.className="geCommentHeader";var J=document.createElement("img");J.className="geCommentUserImg";J.src=null!=W.user&&null!=W.user.pictureUrl?W.user.pictureUrl:Editor.userImage;U.appendChild(J);J=document.createElement("div");J.className="geCommentHeaderTxt";U.appendChild(J);var V=document.createElement("div");V.className="geCommentUsername";mxUtils.write(V,null!=W.user?W.user.displayName:
-mxResources.get("unknownUser"));J.appendChild(V);V=document.createElement("div");V.className="geCommentDate";V.setAttribute("data-commentId",W.id);S(W,V);J.appendChild(V);H.appendChild(U);U=document.createElement("div");U.className="geCommentTxt";mxUtils.write(U,W.content||"");H.appendChild(U);W.isLocked&&(H.style.opacity="0.5");U=document.createElement("div");U.className="geCommentActions";var aa=document.createElement("ul");aa.className="geCommentActionsList";U.appendChild(aa);c||W.isLocked||0!=
-Y&&!f||Z(mxResources.get("reply"),function(){u("",!0)},W.isResolved);J=b.getCurrentUser();null==J||null==W.user||J.id!=W.user.id||c||W.isLocked||(Z(mxResources.get("edit"),function(){function ba(){G(W,H,function(){F(H);W.editComment(W.content,function(){R(H)},function(ja){P(H);ba();b.handleError(ja,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}ba()},W.isResolved),Z(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){F(H);W.deleteComment(function(ba){if(!0===
-ba){ba=H.querySelector(".geCommentTxt");ba.innerText="";mxUtils.write(ba,mxResources.get("msgDeleted"));var ja=H.querySelectorAll(".geCommentAction");for(ba=0;ba<ja.length;ba++)ja[ba].parentNode.removeChild(ja[ba]);R(H);H.style.opacity="0.5"}else{ja=l(W).replies;for(ba=0;ba<ja.length;ba++)C.removeChild(ja[ba]);for(ba=0;ba<ma.length;ba++)if(ma[ba]==W){ma.splice(ba,1);break}I.style.display=0==C.getElementsByTagName("div").length?"block":"none"}},function(ba){P(H);b.handleError(ba,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},
-W.isResolved));c||W.isLocked||0!=Y||Z(W.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(ba){function ja(){var oa=ba.target;oa.innerText="";W.isResolved=!W.isResolved;mxUtils.write(oa,W.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var qa=W.isResolved?"none":"",ra=l(W).replies,ua="light-dark("+(W.isResolved?"ghostWhite":"white")+", transparent)",za=0;za<ra.length;za++){ra[za].style.backgroundColor=ua;for(var Ba=ra[za].querySelectorAll(".geCommentAction"),
-Ca=0;Ca<Ba.length;Ca++)Ba[Ca]!=oa.parentNode&&(Ba[Ca].style.display=qa);da||(ra[za].style.display="none")}B()}W.isResolved?u(mxResources.get("reOpened")+": ",!0,ja,!1,!0):u(mxResources.get("markedAsResolved"),!1,ja,!0)});H.appendChild(U);null!=la?C.insertBefore(H,la.nextSibling):C.appendChild(H);for(la=0;null!=W.replies&&la<W.replies.length;la++)U=W.replies[la],U.isResolved=W.isResolved,T(U,W.replies,null,Y+1,fa);null!=k&&(k.comment.id==W.id?(fa=W.content,W.content=k.comment.content,G(W,H,k.saveCallback,
-k.deleteOnCancel),W.content=fa):null==k.comment.id&&k.comment.pCommentId==W.id&&(C.appendChild(k.div),G(k.comment,k.div,k.saveCallback,k.deleteOnCancel)));return H}}var c=!b.canComment(),f=b.canReplyToReplies(),k=null,A=document.createElement("div");A.className="geCommentsWin";A.style.background="light-dark(whiteSmoke, "+Editor.darkColor+")";var z=EditorUi.compactUi?"26px":"30px",C=document.createElement("div");C.className="geCommentsList";C.style.backgroundColor="light-dark(whiteSmoke, "+Editor.darkColor+
-")";C.style.bottom=parseInt(z)+7+"px";A.appendChild(C);var I=document.createElement("span");I.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(I,mxResources.get("noCommentsFound"));var L=document.createElement("div");L.className="geToolbarContainer geCommentsToolbar";L.style.height=z;L.style.padding="3px 4px 4px 4px";z=document.createElement("a");z.className="geToolbarButton geAdaptiveAsset geToggleItem";z.style.width="16px";z.style.height="18px";z.style.backgroundPosition=
-"center center";z.style.backgroundRepeat="no-repeat";z.style.backgroundSize="20px";z.style.margin="0 2px";z.style.display="inline-block";z.style.cursor="pointer";if(!c){var K=z.cloneNode();K.style.backgroundImage="url("+Editor.plusImage+")";K.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(K,"click",function(W){function ma(){G(la,Y,function(fa){F(Y);b.addComment(fa,function(Z){fa.id=Z;ea.push(fa);R(Y)},function(Z){P(Y);ma();b.handleError(Z,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},
-!0)}var la=b.newComment("",b.getCurrentUser()),Y=T(la,ea,null,0);ma();W.preventDefault();mxEvent.consume(W)});L.appendChild(K)}var O=z.cloneNode();O.classList.add("geToggleItem");O.style.backgroundImage="url("+Editor.checkImage+")";O.setAttribute("title",mxResources.get("showResolved"));var da=!1;mxEvent.addListener(O,"click",function(W){(da=!da)?O.classList.add("geActiveItem"):O.classList.remove("geActiveItem");ca();W.preventDefault();mxEvent.consume(W)});L.appendChild(O);b.commentsRefreshNeeded()&&
-(K=z.cloneNode(),K.style.backgroundImage="url("+Editor.refreshImage+")",K.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(K,"click",function(W){ca();W.preventDefault();mxEvent.consume(W)}),L.appendChild(K));b.commentsSaveNeeded()&&(z=z.cloneNode(),z.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',z.setAttribute("title",mxResources.get("save")),z.className="geButton geAdaptiveAsset",mxEvent.addListener(z,"click",function(W){p();W.preventDefault();
-mxEvent.consume(W)}),L.appendChild(z));A.appendChild(L);var ea=[],ca=mxUtils.bind(this,function(){this.hasError=!1;if(null!=k)try{k.div=k.div.cloneNode(!0);var W=k.div.querySelector(".geCommentEditTxtArea"),ma=k.div.querySelector(".geCommentEditBtns");k.comment.content=W.value;W.parentNode.removeChild(W);ma.parentNode.removeChild(ma)}catch(la){b.handleError(la)}C.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+
+var CommentsWindow=function(b,e,g,m,v,p){function A(){for(var V=C.getElementsByTagName("div"),ma=0,la=0;la<V.length;la++)"none"!=V[la].style.display&&V[la].parentNode==C&&ma++;I.style.display=0==ma?"block":"none"}function G(V,ma,la,Y){function fa(){ma.removeChild(u);ma.removeChild(H);l.style.display="block";Z.style.display="block"}k={div:ma,comment:V,saveCallback:la,deleteOnCancel:Y};var Z=ma.querySelector(".geCommentTxt"),l=ma.querySelector(".geCommentActionsList"),u=document.createElement("textarea");
+u.className="geCommentEditTxtArea";u.style.minHeight=Z.offsetHeight+"px";u.value=V.content;ma.insertBefore(u,Z);var H=document.createElement("div");H.className="geCommentEditBtns";var U=mxUtils.button(mxResources.get("cancel"),function(){Y?(ma.parentNode.removeChild(ma),A()):fa();k=null});U.className="geCommentEditBtn";H.appendChild(U);var J=mxUtils.button(mxResources.get("save"),function(){Z.innerText="";V.content=u.value;mxUtils.write(Z,V.content);fa();la(V);k=null});mxEvent.addListener(u,"keydown",
+mxUtils.bind(this,function(W){mxEvent.isConsumed(W)||((mxEvent.isControlDown(W)||mxClient.IS_MAC&&mxEvent.isMetaDown(W))&&13==W.keyCode?(J.click(),mxEvent.consume(W)):27==W.keyCode&&(U.click(),mxEvent.consume(W)))}));J.focus();J.className="geCommentEditBtn gePrimaryBtn";H.appendChild(J);ma.insertBefore(H,Z);l.style.display="none";Z.style.display="none";u.focus()}function S(V,ma){ma.innerText="";V=new Date(V.modifiedDate);var la=b.timeSince(V);null==la&&(la=mxResources.get("lessThanAMinute"));mxUtils.write(ma,
+mxResources.get("timeAgo",[la],"{1} ago"));ma.setAttribute("title",V.toLocaleDateString()+" "+V.toLocaleTimeString())}function F(V){var ma=document.createElement("img");ma.className="geCommentBusyImg";ma.src=IMAGE_PATH+"/spin.gif";V.appendChild(ma);V.busyImg=ma}function P(V){V.style.border="1px solid red";V.busyImg.parentNode==V&&V.removeChild(V.busyImg)}function R(V){V.style.border="";V.busyImg.parentNode==V&&V.removeChild(V.busyImg)}function T(V,ma,la,Y,fa){function Z(ba,ja,oa){var qa=document.createElement("li");
+qa.className="geCommentAction";var ra=document.createElement("a");ra.className="geCommentActionLnk";mxUtils.write(ra,ba);qa.appendChild(ra);mxEvent.addListener(ra,"click",function(ua){ja(ua,V);ua.preventDefault();mxEvent.consume(ua)});aa.appendChild(qa);oa&&(qa.style.display="none")}function l(){function ba(qa){ja.push(oa);if(null!=qa.replies)for(var ra=0;ra<qa.replies.length;ra++)oa=oa.nextSibling,ba(qa.replies[ra])}var ja=[],oa=H;ba(V);return{pdiv:oa,replies:ja}}function u(ba,ja,oa,qa,ra){function ua(){F(La);
+V.addReply(Ca,function(sa){Ca.id=sa;V.replies.push(Ca);R(La);oa&&oa()},function(sa){za();P(La);b.handleError(sa,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},qa,ra)}function za(){G(Ca,La,function(sa){ua()},!0)}var Ba=l().pdiv,Ca=b.newComment(ba,b.getCurrentUser());Ca.pCommentId=V.id;null==V.replies&&(V.replies=[]);var La=T(Ca,V.replies,Ba,Y+1);ja?za():ua()}if(fa||!V.isResolved){I.style.display="none";var H=document.createElement("div");H.className="geCommentContainer";H.setAttribute("data-commentId",
+V.id);H.style.marginLeft=20*Y+5+"px";V.isResolved&&(B.style.opacity="0.7");var U=document.createElement("div");U.className="geCommentHeader";var J=document.createElement("img");J.className="geCommentUserImg";J.src=null!=V.user&&null!=V.user.pictureUrl?V.user.pictureUrl:Editor.userImage;U.appendChild(J);J=document.createElement("div");J.className="geCommentHeaderTxt";U.appendChild(J);var W=document.createElement("div");W.className="geCommentUsername";mxUtils.write(W,null!=V.user?V.user.displayName:
+mxResources.get("unknownUser"));J.appendChild(W);W=document.createElement("div");W.className="geCommentDate";W.setAttribute("data-commentId",V.id);S(V,W);J.appendChild(W);H.appendChild(U);U=document.createElement("div");U.className="geCommentTxt";mxUtils.write(U,V.content||"");H.appendChild(U);V.isLocked&&(H.style.opacity="0.5");U=document.createElement("div");U.className="geCommentActions";var aa=document.createElement("ul");aa.className="geCommentActionsList";U.appendChild(aa);c||V.isLocked||0!=
+Y&&!f||Z(mxResources.get("reply"),function(){u("",!0)},V.isResolved);J=b.getCurrentUser();null==J||null==V.user||J.id!=V.user.id||c||V.isLocked||(Z(mxResources.get("edit"),function(){function ba(){G(V,H,function(){F(H);V.editComment(V.content,function(){R(H)},function(ja){P(H);ba();b.handleError(ja,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}ba()},V.isResolved),Z(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){F(H);V.deleteComment(function(ba){if(!0===
+ba){ba=H.querySelector(".geCommentTxt");ba.innerText="";mxUtils.write(ba,mxResources.get("msgDeleted"));var ja=H.querySelectorAll(".geCommentAction");for(ba=0;ba<ja.length;ba++)ja[ba].parentNode.removeChild(ja[ba]);R(H);H.style.opacity="0.5"}else{ja=l(V).replies;for(ba=0;ba<ja.length;ba++)C.removeChild(ja[ba]);for(ba=0;ba<ma.length;ba++)if(ma[ba]==V){ma.splice(ba,1);break}I.style.display=0==C.getElementsByTagName("div").length?"block":"none"}},function(ba){P(H);b.handleError(ba,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},
+V.isResolved));c||V.isLocked||0!=Y||Z(V.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(ba){function ja(){var oa=ba.target;oa.innerText="";V.isResolved=!V.isResolved;mxUtils.write(oa,V.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var qa=V.isResolved?"none":"",ra=l(V).replies,ua="light-dark("+(V.isResolved?"ghostWhite":"white")+", transparent)",za=0;za<ra.length;za++){ra[za].style.backgroundColor=ua;for(var Ba=ra[za].querySelectorAll(".geCommentAction"),
+Ca=0;Ca<Ba.length;Ca++)Ba[Ca]!=oa.parentNode&&(Ba[Ca].style.display=qa);da||(ra[za].style.display="none")}A()}V.isResolved?u(mxResources.get("reOpened")+": ",!0,ja,!1,!0):u(mxResources.get("markedAsResolved"),!1,ja,!0)});H.appendChild(U);null!=la?C.insertBefore(H,la.nextSibling):C.appendChild(H);for(la=0;null!=V.replies&&la<V.replies.length;la++)U=V.replies[la],U.isResolved=V.isResolved,T(U,V.replies,null,Y+1,fa);null!=k&&(k.comment.id==V.id?(fa=V.content,V.content=k.comment.content,G(V,H,k.saveCallback,
+k.deleteOnCancel),V.content=fa):null==k.comment.id&&k.comment.pCommentId==V.id&&(C.appendChild(k.div),G(k.comment,k.div,k.saveCallback,k.deleteOnCancel)));return H}}var c=!b.canComment(),f=b.canReplyToReplies(),k=null,B=document.createElement("div");B.className="geCommentsWin";B.style.background="light-dark(whiteSmoke, "+Editor.darkColor+")";var z=EditorUi.compactUi?"26px":"30px",C=document.createElement("div");C.className="geCommentsList";C.style.backgroundColor="light-dark(whiteSmoke, "+Editor.darkColor+
+")";C.style.bottom=parseInt(z)+7+"px";B.appendChild(C);var I=document.createElement("span");I.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(I,mxResources.get("noCommentsFound"));var L=document.createElement("div");L.className="geToolbarContainer geCommentsToolbar";L.style.height=z;L.style.padding="3px 4px 4px 4px";z=document.createElement("a");z.className="geToolbarButton geAdaptiveAsset geToggleItem";z.style.width="16px";z.style.height="18px";z.style.backgroundPosition=
+"center center";z.style.backgroundRepeat="no-repeat";z.style.backgroundSize="20px";z.style.margin="0 2px";z.style.display="inline-block";z.style.cursor="pointer";if(!c){var K=z.cloneNode();K.style.backgroundImage="url("+Editor.plusImage+")";K.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(K,"click",function(V){function ma(){G(la,Y,function(fa){F(Y);b.addComment(fa,function(Z){fa.id=Z;ea.push(fa);R(Y)},function(Z){P(Y);ma();b.handleError(Z,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},
+!0)}var la=b.newComment("",b.getCurrentUser()),Y=T(la,ea,null,0);ma();V.preventDefault();mxEvent.consume(V)});L.appendChild(K)}var O=z.cloneNode();O.classList.add("geToggleItem");O.style.backgroundImage="url("+Editor.checkImage+")";O.setAttribute("title",mxResources.get("showResolved"));var da=!1;mxEvent.addListener(O,"click",function(V){(da=!da)?O.classList.add("geActiveItem"):O.classList.remove("geActiveItem");ca();V.preventDefault();mxEvent.consume(V)});L.appendChild(O);b.commentsRefreshNeeded()&&
+(K=z.cloneNode(),K.style.backgroundImage="url("+Editor.refreshImage+")",K.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(K,"click",function(V){ca();V.preventDefault();mxEvent.consume(V)}),L.appendChild(K));b.commentsSaveNeeded()&&(z=z.cloneNode(),z.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',z.setAttribute("title",mxResources.get("save")),z.className="geButton geAdaptiveAsset",mxEvent.addListener(z,"click",function(V){p();V.preventDefault();
+mxEvent.consume(V)}),L.appendChild(z));B.appendChild(L);var ea=[],ca=mxUtils.bind(this,function(){this.hasError=!1;if(null!=k)try{k.div=k.div.cloneNode(!0);var V=k.div.querySelector(".geCommentEditTxtArea"),ma=k.div.querySelector(".geCommentEditBtns");k.comment.content=V.value;V.parentNode.removeChild(V);ma.parentNode.removeChild(ma)}catch(la){b.handleError(la)}C.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+
"...</div>";f=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(la){function Y(fa){if(null!=fa){fa.sort(function(l,u){return new Date(l.modifiedDate)-new Date(u.modifiedDate)});for(var Z=0;Z<fa.length;Z++)Y(fa[Z].replies)}}la.sort(function(fa,Z){return new Date(fa.modifiedDate)-new Date(Z.modifiedDate)});C.innerText="";C.appendChild(I);I.style.display="block";ea=la;for(la=0;la<ea.length;la++)Y(ea[la].replies),T(ea[la],ea,null,0,da);null!=k&&null==k.comment.id&&null==k.comment.pCommentId&&
-(C.appendChild(k.div),G(k.comment,k.div,k.saveCallback,k.deleteOnCancel))},mxUtils.bind(this,function(la){C.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(la&&la.message?": "+la.message:""));this.hasError=!0})):C.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});ca();this.refreshComments=ca;L=mxUtils.bind(this,function(){function W(Z){var l=la[Z.id];if(null!=l)for(S(Z,l),l=0;null!=Z.replies&&l<Z.replies.length;l++)W(Z.replies[l])}if(this.window.isVisible()){for(var ma=C.querySelectorAll(".geCommentDate"),
-la={},Y=0;Y<ma.length;Y++){var fa=ma[Y];la[fa.getAttribute("data-commentId")]=fa}for(Y=0;Y<ea.length;Y++)W(ea[Y])}});setInterval(L,6E4);this.refreshCommentsTime=L;this.window=new mxWindow(mxResources.get("comments"),A,e,g,m,v,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));
-b.installResizeHandler(this,!0)},ConfirmDialog=function(b,e,g,m,v,p,B,G,S,F,P){var R=document.createElement("div");R.style.textAlign="center";P=null!=P?P:44;var T=document.createElement("div");T.style.padding="6px";T.style.overflow="auto";T.style.maxHeight=P+"px";T.style.lineHeight="1.2em";mxUtils.write(T,e);R.appendChild(T);null!=F&&(T=document.createElement("div"),T.style.padding="6px 0 6px 0",e=document.createElement("img"),e.setAttribute("src",F),T.appendChild(e),R.appendChild(T));F=document.createElement("div");
+(C.appendChild(k.div),G(k.comment,k.div,k.saveCallback,k.deleteOnCancel))},mxUtils.bind(this,function(la){C.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(la&&la.message?": "+la.message:""));this.hasError=!0})):C.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});ca();this.refreshComments=ca;L=mxUtils.bind(this,function(){function V(Z){var l=la[Z.id];if(null!=l)for(S(Z,l),l=0;null!=Z.replies&&l<Z.replies.length;l++)V(Z.replies[l])}if(this.window.isVisible()){for(var ma=C.querySelectorAll(".geCommentDate"),
+la={},Y=0;Y<ma.length;Y++){var fa=ma[Y];la[fa.getAttribute("data-commentId")]=fa}for(Y=0;Y<ea.length;Y++)V(ea[Y])}});setInterval(L,6E4);this.refreshCommentsTime=L;this.window=new mxWindow(mxResources.get("comments"),B,e,g,m,v,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));
+b.installResizeHandler(this,!0)},ConfirmDialog=function(b,e,g,m,v,p,A,G,S,F,P){var R=document.createElement("div");R.style.textAlign="center";P=null!=P?P:44;var T=document.createElement("div");T.style.padding="6px";T.style.overflow="auto";T.style.maxHeight=P+"px";T.style.lineHeight="1.2em";mxUtils.write(T,e);R.appendChild(T);null!=F&&(T=document.createElement("div"),T.style.padding="6px 0 6px 0",e=document.createElement("img"),e.setAttribute("src",F),T.appendChild(e),R.appendChild(T));F=document.createElement("div");
F.style.textAlign="center";F.style.whiteSpace="nowrap";var c=document.createElement("input");c.setAttribute("type","checkbox");p=mxUtils.button(p||mxResources.get("cancel"),function(){b.hideDialog();null!=m&&m(c.checked)});p.className="geBtn";null!=G&&(p.innerHTML=G+"<br>"+p.innerHTML,p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&F.appendChild(p);var f=mxUtils.button(v||mxResources.get("ok"),function(){b.hideDialog();null!=g&&
-g(c.checked)});F.appendChild(f);null!=B?(f.innerHTML=B+"<br>"+f.innerHTML+"<br>",f.style.paddingBottom="8px",f.style.paddingTop="8px",f.style.height="auto",f.className="geBtn",f.style.width="40%"):f.className="geBtn gePrimaryBtn";b.editor.cancelFirst||F.appendChild(p);R.appendChild(F);S?(F.style.marginTop="10px",T=document.createElement("p"),T.style.marginTop="20px",T.style.marginBottom="0px",T.appendChild(c),v=document.createElement("span"),mxUtils.write(v," "+mxResources.get("rememberThisSetting")),
+g(c.checked)});F.appendChild(f);null!=A?(f.innerHTML=A+"<br>"+f.innerHTML+"<br>",f.style.paddingBottom="8px",f.style.paddingTop="8px",f.style.height="auto",f.className="geBtn",f.style.width="40%"):f.className="geBtn gePrimaryBtn";b.editor.cancelFirst||F.appendChild(p);R.appendChild(F);S?(F.style.marginTop="10px",T=document.createElement("p"),T.style.marginTop="20px",T.style.marginBottom="0px",T.appendChild(c),v=document.createElement("span"),mxUtils.write(v," "+mxResources.get("rememberThisSetting")),
T.appendChild(v),R.appendChild(T),mxEvent.addListener(v,"click",function(k){c.checked=!c.checked;mxEvent.consume(k)})):F.style.marginTop="12px";this.init=function(){f.focus()};this.container=R},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};
HeadlessEditorUi.prototype.updateActionStates=function(){};function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.diagramModified=!1;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
DiagramPage.prototype.setName=function(b){null==b?this.node.removeAttribute("name"):this.node.setAttribute("name",b)};DiagramPage.prototype.setDiagramModified=function(b){this.diagramModified=b};DiagramPage.prototype.isDiagramModified=function(){return this.diagramModified};function RenamePage(b,e,g){this.ui=b;this.page=e;this.previous=this.name=g}
@@ -4032,16 +4047,16 @@ EditorUi.prototype.getSelectedPageIndex=function(){return this.getPageIndex(this
EditorUi.prototype.createImageForPageLink=function(b,e,g,m){var v=b.indexOf(","),p=null;0<v&&(v=this.getPageById(b.substring(v+1)),null!=v&&v!=e&&(p=this.getImageForPage(v,e,g,m),p.originalSrc=b));null==p&&(p={originalSrc:b});return p};
EditorUi.prototype.pageSelected=function(){var b=this.editor.graph,e=this.currentPage;null!=e&&(b.tooltipHandler.hide(),null==e.viewState||null==e.viewState.scrollTop||null==e.viewState.scrollLeft?(b.selectUnlockedLayer(),this.resetScrollbars(),b.isLightboxView()&&this.lightboxFit(),null!=this.chromelessResize&&(b.container.scrollleft=0,b.container.scrollTop=0,this.chromelessResize())):b.setScrollbarPositions(e.viewState,b.view.translate.x,b.view.translate.y),this.updateTabContainer(),this.scrollToPage())};
EditorUi.prototype.getImageForPage=function(b,e,g,m){g=null!=g?g:this.editor.graph;var v=g.getGlobalVariable;g=this.createTemporaryGraph(g.getStylesheet());var p=this.getPageIndex(null!=e?e:this.currentPage);g.getGlobalVariable=function(G){return"pagenumber"==G?p+1:"page"==G&&null!=e?e.getName():v.apply(this,arguments)};document.body.appendChild(g.container);this.updatePageRoot(b);g.setAdaptiveColors(b.viewState.adaptiveColors);g.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText=
-"";m=g.getSvg(null,null,null,null,null,null,null,null,null,null,m,null,null,null,!0,!0);var B=g.getGraphBounds();document.body.removeChild(g.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(m)),B.width,B.height,B.x,B.y)};
-EditorUi.prototype.initPages=function(){if(!this.editor.graph.standalone){this.actions.addAction("previousPage",mxUtils.bind(this,function(){this.selectNextPage(!1)}));this.actions.addAction("nextPage",mxUtils.bind(this,function(){this.selectNextPage(!0)}));this.isPagesEnabled()&&(this.keyHandler.bindAction(33,!0,"previousPage",!0),this.keyHandler.bindAction(34,!0,"nextPage",!0));var b=this.editor.graph,e=b.view.validateBackground;b.view.validateBackground=mxUtils.bind(this,function(){if(null!=this.tabContainer){var B=
-this.tabContainer.style.height;this.tabContainer.style.height=null==this.fileNode||null==this.pages||1==this.pages.length&&"0"==urlParams.pages?"0px":this.tabContainerHeight+"px";this.tabContainer.style.visibility=0==parseInt(this.tabContainer.style.height)?"hidden":"";B!=this.tabContainer.style.height&&this.refresh(!1)}e.apply(b.view,arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,
-function(B,G){B=G.getProperty("edit").changes;for(G=0;G<B.length;G++)if(B[G]instanceof RenamePage||B[G]instanceof ChangePage||B[G]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==B.length&&B[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var g=b.sizeDidChange,m=null,v=this;b.sizeDidChange=function(){var B=g.apply(this,arguments);null!=v.currentPage&&m!=v.currentPage&&(m=v.currentPage,v.pageSelected());return B};b.addListener(mxEvent.ROOT,mxUtils.bind(this,
-function(){b.checkDefaultParent()}));var p=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",p);this.editor.addListener("pagesPatched",p);this.editor.addListener("pageRenamed",p);this.editor.addListener("pageMoved",p);this.editor.addListener("fileLoaded",p);this.editor.addListener("pageSelected",mxUtils.bind(this,function(B,G){this.scrollToPage();this.updateHashObject();this.updateTabContainer();this.updateDocumentTitle();null!=
-this.toolbar&&this.toolbar.updateZoom()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(B,G){this.scrollToPage();this.updateHashObject()}));mxEvent.addListener(window,"resize",mxUtils.bind(this,function(){this.checkTabScrollerOverflow()}))}};
+"";m=g.getSvg(null,null,null,null,null,null,null,null,null,null,m,null,null,null,!0,!0);var A=g.getGraphBounds();document.body.removeChild(g.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(m)),A.width,A.height,A.x,A.y)};
+EditorUi.prototype.initPages=function(){if(!this.editor.graph.standalone){this.actions.addAction("previousPage",mxUtils.bind(this,function(){this.selectNextPage(!1)}));this.actions.addAction("nextPage",mxUtils.bind(this,function(){this.selectNextPage(!0)}));this.isPagesEnabled()&&(this.keyHandler.bindAction(33,!0,"previousPage",!0),this.keyHandler.bindAction(34,!0,"nextPage",!0));var b=this.editor.graph,e=b.view.validateBackground;b.view.validateBackground=mxUtils.bind(this,function(){if(null!=this.tabContainer){var A=
+this.tabContainer.style.height;this.tabContainer.style.height=null==this.fileNode||null==this.pages||1==this.pages.length&&"0"==urlParams.pages?"0px":this.tabContainerHeight+"px";this.tabContainer.style.visibility=0==parseInt(this.tabContainer.style.height)?"hidden":"";A!=this.tabContainer.style.height&&this.refresh(!1)}e.apply(b.view,arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,
+function(A,G){A=G.getProperty("edit").changes;for(G=0;G<A.length;G++)if(A[G]instanceof RenamePage||A[G]instanceof ChangePage||A[G]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==A.length&&A[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var g=b.sizeDidChange,m=null,v=this;b.sizeDidChange=function(){var A=g.apply(this,arguments);null!=v.currentPage&&m!=v.currentPage&&(m=v.currentPage,v.pageSelected());return A};b.addListener(mxEvent.ROOT,mxUtils.bind(this,
+function(){b.checkDefaultParent()}));var p=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",p);this.editor.addListener("pagesPatched",p);this.editor.addListener("pageRenamed",p);this.editor.addListener("pageMoved",p);this.editor.addListener("fileLoaded",p);this.editor.addListener("pageSelected",mxUtils.bind(this,function(A,G){this.scrollToPage();this.updateHashObject();this.updateTabContainer();this.updateDocumentTitle();null!=
+this.toolbar&&this.toolbar.updateZoom()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(A,G){this.scrollToPage();this.updateHashObject()}));mxEvent.addListener(window,"resize",mxUtils.bind(this,function(){this.checkTabScrollerOverflow()}))}};
EditorUi.prototype.scrollToPage=function(b,e){var g=null!=b?this.getPageIndex(b):this.getSelectedPageIndex(),m=null!=b?b:this.currentPage;null!=g&&null!=this.tabScroller&&this.tabScroller.children.length>g&&null!=this.tabScroller.children[g]&&(m!=this.lastScrollPage||e)&&(this.tabScroller.children[g].scrollIntoView({block:"nearest",inline:null!=b?"nearest":"center"}),this.tabScroller.children[g].className="geTab gePageTab geActivePage",this.lastScrollPage=m)};
EditorUi.prototype.restoreViewState=function(b,e,g){b=null!=b?this.getPageById(b.getId()):null;var m=this.editor.graph;null!=b&&null!=this.currentPage&&null!=this.pages&&(b!=this.currentPage?this.selectPage(b,!0,e):(m.setViewState(e),this.editor.updateGraphComponents(),m.view.revalidate(),m.sizeDidChange()),m.container.scrollLeft=m.view.translate.x*m.view.scale+e.scrollLeft,m.container.scrollTop=m.view.translate.y*m.view.scale+e.scrollTop,m.restoreSelection(g))};
-Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),g=parseFloat(b.getAttribute("pageScale")),m=parseFloat(b.getAttribute("pageWidth")),v=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),B=this.parseBackgroundImage(b.getAttribute("backgroundImage")),G=b.getAttribute("extFonts");if(G)try{G=G.split("|").map(function(S){S=S.split("^");return{name:S[0],url:S[1]}})}catch(S){console.log("ExtFonts format error: "+S.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),
-gridSize:parseFloat(b.getAttribute("gridSize"))||mxGraph.prototype.gridSize,guidesEnabled:"0"!=b.getAttribute("guides"),foldingEnabled:"0"!=b.getAttribute("fold"),shadowVisible:"1"==b.getAttribute("shadow"),pageVisible:this.isLightboxView()?!1:null!=e?"0"!=e:this.defaultPageVisible,background:null!=p&&0<p.length?p:null,backgroundImage:B,pageScale:isNaN(g)?mxGraph.prototype.pageScale:g,pageFormat:isNaN(m)||isNaN(v)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:
+Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),g=parseFloat(b.getAttribute("pageScale")),m=parseFloat(b.getAttribute("pageWidth")),v=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),A=this.parseBackgroundImage(b.getAttribute("backgroundImage")),G=b.getAttribute("extFonts");if(G)try{G=G.split("|").map(function(S){S=S.split("^");return{name:S[0],url:S[1]}})}catch(S){console.log("ExtFonts format error: "+S.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),
+gridSize:parseFloat(b.getAttribute("gridSize"))||mxGraph.prototype.gridSize,guidesEnabled:"0"!=b.getAttribute("guides"),foldingEnabled:"0"!=b.getAttribute("fold"),shadowVisible:"1"==b.getAttribute("shadow"),pageVisible:this.isLightboxView()?!1:null!=e?"0"!=e:this.defaultPageVisible,background:null!=p&&0<p.length?p:null,backgroundImage:A,pageScale:isNaN(g)?mxGraph.prototype.pageScale:g,pageFormat:isNaN(m)||isNaN(v)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:
mxSettings.getPageFormat():new mxRectangle(0,0,m,v),tooltips:"0"!=b.getAttribute("tooltips"),connect:"0"!=b.getAttribute("connect"),arrows:"0"!=b.getAttribute("arrows"),mathEnabled:"1"==b.getAttribute("math"),adaptiveColors:b.getAttribute("adaptiveColors"),selectionCells:null,defaultParent:null,scrollbars:this.defaultScrollbars,scale:1,hiddenTags:[],extFonts:G||[]}};
Graph.prototype.saveViewState=function(b,e,g,m){g||(e.setAttribute("grid",(null==b?this.defaultGridEnabled:b.gridEnabled)?"1":"0"),e.setAttribute("page",(null==b?this.defaultPageVisible:b.pageVisible)?"1":"0"),e.setAttribute("gridSize",null!=b?b.gridSize:mxGraph.prototype.gridSize),e.setAttribute("guides",null==b||b.guidesEnabled?"1":"0"),e.setAttribute("tooltips",null==b||b.tooltips?"1":"0"),e.setAttribute("connect",null==b||b.connect?"1":"0"),e.setAttribute("arrows",null==b||b.arrows?"1":"0"),e.setAttribute("fold",
null==b||b.foldingEnabled?"1":"0"));e.setAttribute("pageScale",null!=b&&null!=b.pageScale?b.pageScale:mxGraph.prototype.pageScale);g=null!=b?b.pageFormat:"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat();null!=g&&(e.setAttribute("pageWidth",g.width),e.setAttribute("pageHeight",g.height));null!=b&&(null!=b.background&&e.setAttribute("background",b.background),m=this.getBackgroundImageObject(b.backgroundImage,m),null!=m&&e.setAttribute("backgroundImage",
@@ -4058,19 +4073,19 @@ m=!0;for(v=0;v<g.length;v++)if(g[v].name==b){m=!1;break}m&&this.extFonts.push({n
EditorUi.prototype.updatePageRoot=function(b,e){if(null==b.root){e=this.editor.extractGraphModel(b.node,null,e);var g=Editor.extractParserError(e);if(g)throw Error(g);null!=e?(b.graphModelNode=e,b.viewState=this.editor.graph.createViewState(e),g=new mxCodec(e.ownerDocument),b.root=g.decode(e).root):(b.root=this.editor.graph.model.createRoot(),b.root.setId("0"),b.root.children[0].setId("1"),b.needsUpdate=!0)}else if(null==b.viewState){if(null==b.graphModelNode){e=this.editor.extractGraphModel(b.node);
if(g=Editor.extractParserError(e))throw Error(g);null!=e&&(b.graphModelNode=e)}null!=b.graphModelNode&&(b.viewState=this.editor.graph.createViewState(b.graphModelNode))}if(null==b.root.children||0==b.root.children.length)e=new mxCell,e.setId("1"),b.root.insert(e),b.needsUpdate=!0;return b};EditorUi.prototype.getDiagramSnapshot=function(){return{node:this.editor.getGraphXml(),page:this.currentPage}};
EditorUi.prototype.updateDiagramData=function(b,e){if(null==this.getPageIndex(b.page))this.insertPage(null,null,e);else{var g=new mxCodec(b.node.ownerDocument),m=new mxGraphModel;g.decode(b.node,m);g=new mxCodec(e.ownerDocument);var v=new mxGraphModel;g.decode(e,v);this.selectPage(b.page);e=this.diffCells(m.root,v.root);this.patchPage(b.page,e,null,!0)}};EditorUi.prototype.replaceDiagramData=function(b){this.editor.graph.model.execute(new ReplaceDiagram(this,mxUtils.parseXml(b).documentElement))};
-EditorUi.prototype.selectPage=function(b,e,g){try{if(b!=this.currentPage){var m=this.editor.graph;m.isEditing()&&m.stopEditing(!1);e=null!=e?e:!1;m.isMouseDown=!1;m.reset();var v=m.model.createUndoableEdit();v.ignoreEdit=!0;var p=new SelectPage(this,b,g);p.execute();v.add(p);v.notify();e||m.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",v))}}catch(B){this.handleError(B)}};
+EditorUi.prototype.selectPage=function(b,e,g){try{if(b!=this.currentPage){var m=this.editor.graph;m.isEditing()&&m.stopEditing(!1);e=null!=e?e:!1;m.isMouseDown=!1;m.reset();var v=m.model.createUndoableEdit();v.ignoreEdit=!0;var p=new SelectPage(this,b,g);p.execute();v.add(p);v.notify();e||m.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",v))}}catch(A){this.handleError(A)}};
EditorUi.prototype.selectNextPage=function(b){var e=this.currentPage;null!=e&&null!=this.pages&&(e=mxUtils.indexOf(this.pages,e),b?this.selectPage(this.pages[mxUtils.mod(e+1,this.pages.length)]):b||this.selectPage(this.pages[mxUtils.mod(e-1,this.pages.length)]))};
EditorUi.prototype.insertPage=function(b,e,g){this.editor.graph.isEnabled()&&(this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1),b=null!=b?b:this.createPage(null,this.createPageId(),g),e=null!=e?e:this.pages.length,e=new ChangePage(this,b,b,e),this.editor.graph.model.execute(e));return b};EditorUi.prototype.createPageId=function(){do var b=Editor.guid();while(null!=this.getPageById(b));return b};
EditorUi.prototype.createPage=function(b,e,g){e=new DiagramPage((null!=this.fileNode?this.fileNode.ownerDocument:document).createElement("diagram"),e);e.setName(null!=b?b:this.createPageName());this.initDiagramNode(e,g);return e};EditorUi.prototype.createPageName=function(){for(var b={},e=0;e<this.pages.length;e++){var g=this.pages[e].getName();null!=g&&0<g.length&&(b[g]=g)}e=this.pages.length;do g=mxResources.get("pageWithNumber",[++e]);while(null!=b[g]);return g};
EditorUi.prototype.removePage=function(b){try{var e=this.editor.graph,g=mxUtils.indexOf(this.pages,b);if(e.isEnabled()&&0<=g){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);e.model.beginUpdate();try{var m=this.currentPage;m==b&&1<this.pages.length?(g==this.pages.length-1?g--:g++,m=this.pages[g]):1>=this.pages.length&&(m=this.insertPage(),e.model.execute(new RenamePage(this,m,mxResources.get("pageWithNumber",[1]))));e.model.execute(new ChangePage(this,b,m))}finally{e.model.endUpdate()}}}catch(v){this.handleError(v)}return b};
-EditorUi.prototype.duplicatePage=function(b,e){var g=null;try{var m=this.editor.graph;if(m.isEnabled()){m.isEditing()&&m.stopEditing();var v=b.node.cloneNode(!1);v.removeAttribute("id");var p={},B=m.createCellLookup([m.model.root]);g=new DiagramPage(v);g.root=m.cloneCell(m.model.root,null,p);var G=new mxGraphModel;G.prefix=Editor.guid()+"-";G.setRoot(g.root);m.updateCustomLinks(m.createCellMapping(p,B),[g.root]);g.viewState=b==this.currentPage?m.getViewState():b.viewState;this.initDiagramNode(g);
+EditorUi.prototype.duplicatePage=function(b,e){var g=null;try{var m=this.editor.graph;if(m.isEnabled()){m.isEditing()&&m.stopEditing();var v=b.node.cloneNode(!1);v.removeAttribute("id");var p={},A=m.createCellLookup([m.model.root]);g=new DiagramPage(v);g.root=m.cloneCell(m.model.root,null,p);var G=new mxGraphModel;G.prefix=Editor.guid()+"-";G.setRoot(g.root);m.updateCustomLinks(m.createCellMapping(p,A),[g.root]);g.viewState=b==this.currentPage?m.getViewState():b.viewState;this.initDiagramNode(g);
g.viewState.scale=1;delete g.viewState.scrollLeft;delete g.viewState.scrollTop;delete g.viewState.currentRoot;delete g.viewState.defaultParent;g.setName(e);g=this.insertPage(g,mxUtils.indexOf(this.pages,b)+1)}}catch(S){this.handleError(S)}return g};EditorUi.prototype.initDiagramNode=function(b,e){null==e&&(e=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root)));this.editor.graph.saveViewState(b.viewState,e);EditorUi.removeChildNodes(b.node);b.node.appendChild(e)};
EditorUi.prototype.clonePages=function(b){for(var e=[],g=[],m=0;m<b.length;m++)try{g.push(this.clonePage(b[m]))}catch(v){e.push(mxResources.get("pageWithNumber",[m+1])+": "+v.toString())}if(0<e.length){b=Error(e.join("\n"));try{0<g.length&&(b.fallbackFileData=this.getXmlForPages(g))}catch(v){}throw b;}return g};
EditorUi.prototype.clonePage=function(b){this.updatePageRoot(b);var e=new DiagramPage(b.node.cloneNode(!0)),g=b==this.currentPage?this.editor.graph.getViewState():b.viewState;e.viewState=mxUtils.clone(g,EditorUi.transientViewStateProperties);e.root=this.editor.graph.model.cloneCell(b.root,null,!0);e.diagramModified=b.diagramModified;return e};
EditorUi.prototype.renamePage=function(b){if(this.editor.graph.isEnabled()){var e=new FilenameDialog(this,b.getName(),mxResources.get("rename"),mxUtils.bind(this,function(g){null!=g&&0<g.length&&this.editor.graph.model.execute(new RenamePage(this,b,g))}),mxResources.get("rename"));this.showDialog(e.container,300,80,!0,!0);e.init()}return b};EditorUi.prototype.movePage=function(b,e){this.editor.graph.model.execute(new MovePage(this,b,e))};
EditorUi.prototype.createTabContainer=function(){var b=document.createElement("div");b.className="geTabContainer geTabItem";return b};
-EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&null!=this.pages){var b=this.editor.graph,e=document.createElement("div");e.className="geTabScroller";for(var g=null,m=0;m<this.pages.length;m++)mxUtils.bind(this,function(v,p){p.className=this.pages[v]==this.currentPage?"geTab gePageTab geActivePage":"geTab gePageTab geInactivePage";p.setAttribute("draggable","true");mxEvent.addListener(p,"dragstart",mxUtils.bind(this,function(B){b.isEnabled()?(mxClient.IS_FF&&B.dataTransfer.setData("Text",
-"<diagram/>"),g=v):mxEvent.consume(B)}));mxEvent.addListener(p,"dragend",mxUtils.bind(this,function(B){g=null;B.stopPropagation();B.preventDefault()}));mxEvent.addListener(p,"dragover",mxUtils.bind(this,function(B){null!=g&&(B.dataTransfer.dropEffect="move");B.stopPropagation();B.preventDefault()}));mxEvent.addListener(p,"drop",mxUtils.bind(this,function(B){null!=g&&v!=g&&this.movePage(g,v);B.stopPropagation();B.preventDefault()}));e.appendChild(p)})(m,this.createTabForPage(this.pages[m],m+1));m=
+EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&null!=this.pages){var b=this.editor.graph,e=document.createElement("div");e.className="geTabScroller";for(var g=null,m=0;m<this.pages.length;m++)mxUtils.bind(this,function(v,p){p.className=this.pages[v]==this.currentPage?"geTab gePageTab geActivePage":"geTab gePageTab geInactivePage";p.setAttribute("draggable","true");mxEvent.addListener(p,"dragstart",mxUtils.bind(this,function(A){b.isEnabled()?(mxClient.IS_FF&&A.dataTransfer.setData("Text",
+"<diagram/>"),g=v):mxEvent.consume(A)}));mxEvent.addListener(p,"dragend",mxUtils.bind(this,function(A){g=null;A.stopPropagation();A.preventDefault()}));mxEvent.addListener(p,"dragover",mxUtils.bind(this,function(A){null!=g&&(A.dataTransfer.dropEffect="move");A.stopPropagation();A.preventDefault()}));mxEvent.addListener(p,"drop",mxUtils.bind(this,function(A){null!=g&&v!=g&&this.movePage(g,v);A.stopPropagation();A.preventDefault()}));e.appendChild(p)})(m,this.createTabForPage(this.pages[m],m+1));m=
null!=this.tabScroller?this.tabScroller.scrollLeft:0;this.tabContainer.innerText="";"simple"!=Editor.currentTheme&&(this.pageMenuTab=this.createPageMenuTab(),this.tabContainer.appendChild(this.pageMenuTab));this.tabContainer.appendChild(e);this.isPageInsertTabVisible()&&this.tabContainer.appendChild(this.createPageInsertTab());this.leftScrollTab=this.createLeftScrollTab();this.tabContainer.appendChild(this.leftScrollTab);this.rightScrollTab=this.createRightScrollTab();this.tabContainer.appendChild(this.rightScrollTab);
this.tabScroller=e;this.tabScroller.scrollLeft=m;this.checkTabScrollerOverflow();mxEvent.addListener(this.tabScroller,"scroll",mxUtils.bind(this,function(v){this.checkTabScrollerOverflow()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.leftScrollTab.style,"transition","all 0.2s linear");mxUtils.setPrefixedStyle(this.rightScrollTab.style,"transition","all 0.2s linear")}),0)}};
EditorUi.prototype.checkTabScrollerOverflow=function(){null!=this.tabScroller&&null!=this.tabContainer&&2<this.tabContainer.children.length&&(this.tabScroller.scrollWidth>this.tabScroller.offsetWidth?(this.leftScrollTab.style.display="",this.rightScrollTab.style.display="",0==this.tabScroller.scrollLeft?this.leftScrollTab.classList.add("geDisabledControlTab"):this.leftScrollTab.classList.remove("geDisabledControlTab"),Math.ceil(this.tabScroller.scrollLeft)+this.tabScroller.offsetWidth>=this.tabScroller.scrollWidth?
@@ -4082,101 +4097,101 @@ EditorUi.prototype.createLeftScrollTab=function(){return this.createControlTab(n
EditorUi.prototype.createRightScrollTab=function(){return this.createControlTab(null,Editor.thinArrowRightImage,mxUtils.bind(this,function(b){var e=Math.max(60,this.tabScroller.clientWidth/2);null!=this.tabScroller.scrollBy?this.tabScroller.scrollBy({left:e,top:0,behavior:"smooth"}):this.tabScroller.scrollLeft+=e;mxEvent.consume(b)}))};
EditorUi.prototype.createPageMenuTab=function(){return this.createControlTab(mxResources.get("pages"),Editor.verticalDotsImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var e=new mxPopupMenu(mxUtils.bind(this,function(v,p){this.menus.get("pages").funct(v,p)}));e.div.className+=" geMenubarMenu";e.smartSeparators=!0;e.showDisabled=!0;e.autoExpand=!0;e.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(e,arguments);e.destroy()});var g=mxEvent.getClientX(b),
m=mxEvent.getClientY(b);e.popup(g,m,null,b);this.setCurrentMenu(e);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,e){var g=this.createTab(),m=b.getName()||mxResources.get("untitled"),v=b.getId();g.setAttribute("title",m+(null!=v?" ("+v+")":"")+" ["+e+"]");e=document.createElement("span");e.style.maxWidth="160px";e.style.textOverflow="ellipsis";e.style.overflow="hidden";mxUtils.write(e,m);g.appendChild(e);this.addTabListeners(b,g);return g};
-EditorUi.prototype.addTabListeners=function(b,e){mxEvent.disableContextMenu(e);var g=this.editor.graph;mxEvent.addListener(e,"dblclick",mxUtils.bind(this,function(S){this.renamePage(b);mxEvent.consume(S)}));var m=document.createElement("div");m.className="geTabMenuButton";m.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";m.style.backgroundPosition="center center";m.style.backgroundRepeat="no-repeat";m.style.backgroundSize="10px";e.appendChild(m);var v=!1,p=!1,B=mxUtils.bind(this,
+EditorUi.prototype.addTabListeners=function(b,e){mxEvent.disableContextMenu(e);var g=this.editor.graph;mxEvent.addListener(e,"dblclick",mxUtils.bind(this,function(S){this.renamePage(b);mxEvent.consume(S)}));var m=document.createElement("div");m.className="geTabMenuButton";m.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";m.style.backgroundPosition="center center";m.style.backgroundRepeat="no-repeat";m.style.backgroundSize="10px";e.appendChild(m);var v=!1,p=!1,A=mxUtils.bind(this,
function(S){v=null!=this.currentMenu;p=b==this.currentPage;this.scrollToPage(b);g.isMouseDown||p||this.selectPage(b)}),G=mxUtils.bind(this,function(S){if(g.isEnabled()&&!g.isMouseDown&&(p&&(mxEvent.isTouchEvent(S)||mxEvent.getSource(S)==m)||mxEvent.isPopupTrigger(S))&&(g.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(S)||!v)){var F=new mxPopupMenu(this.createPageMenu(b));F.div.className+=" geMenubarMenu";F.smartSeparators=!0;F.showDisabled=!0;F.autoExpand=!0;F.hideMenu=mxUtils.bind(this,
-function(){mxPopupMenu.prototype.hideMenu.apply(F,arguments);this.resetCurrentMenu();F.destroy()});var P=mxEvent.getClientX(S),R=mxEvent.getClientY(S);F.popup(P,R,null,S);this.setCurrentMenu(F,e)}mxEvent.consume(S)});mxEvent.addGestureListeners(m,B,null,G);mxEvent.addGestureListeners(e,B,null,G)};
+function(){mxPopupMenu.prototype.hideMenu.apply(F,arguments);this.resetCurrentMenu();F.destroy()});var P=mxEvent.getClientX(S),R=mxEvent.getClientY(S);F.popup(P,R,null,S);this.setCurrentMenu(F,e)}mxEvent.consume(S)});mxEvent.addGestureListeners(m,A,null,G);mxEvent.addGestureListeners(e,A,null,G)};
EditorUi.prototype.createPageMenu=function(b,e){return mxUtils.bind(this,function(g,m){1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=this.getServiceName()||g.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){this.editor.editAsNew(this.getFileData(!0,null,null,null,!0,!0))}),m));g.addItem(mxResources.get("duplicate"),null,mxUtils.bind(this,function(){this.duplicatePage(b,mxResources.get("copyOf",[b.getName()]))}),m);g.addSeparator(m);this.currentPage==
b&&1<this.pages.length&&this.menus.addSubmenu("movePage",g,m,mxResources.get("move"));g.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){this.removePage(b)}),m);g.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){this.renamePage(b,e)}),m)})};(function(){mxCodecRegistry.getCodec(ChangePageSetup).exclude.push("page")})();
(function(){var b=new mxObjectCodec(new MovePage,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){e=m.oldIndex;m.oldIndex=m.newIndex;m.newIndex=e;return m};mxCodecRegistry.register(b)})();(function(){var b=new mxObjectCodec(new RenamePage,["ui","page"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){e=m.previous;m.previous=m.name;m.name=e;return m};mxCodecRegistry.register(b)})();
(function(){var b=new mxObjectCodec(new ChangePage,["ui","relatedPage","index","page","previousPage"]);b.afterEncode=function(e,g,m){m.setAttribute("relatedPage",g.relatedPage.getId());null==g.index&&(m.setAttribute("name",g.relatedPage.getName()),null!=g.relatedPage.viewState&&m.setAttribute("viewState",JSON.stringify(g.relatedPage.viewState,function(v,p){return 0>mxUtils.indexOf(EditorUi.transientViewStateProperties,v)?p:void 0})),null!=g.relatedPage.root&&e.encodeCell(g.relatedPage.root,m));return m};
b.beforeDecode=function(e,g,m){m.ui=e.ui;m.relatedPage=m.ui.getPageById(g.getAttribute("relatedPage"));if(null==m.relatedPage){var v=g.ownerDocument.createElement("diagram");v.setAttribute("id",g.getAttribute("relatedPage"));v.setAttribute("name",g.getAttribute("name"));m.relatedPage=new DiagramPage(v);v=g.getAttribute("viewState");null!=v&&(m.relatedPage.viewState=JSON.parse(v),g.removeAttribute("viewState"));g=g.cloneNode(!0);v=g.firstChild;if(null!=v)for(m.relatedPage.root=e.decodeCell(v,!1),m=
-v.nextSibling,v.parentNode.removeChild(v),v=m;null!=v;){m=v.nextSibling;if(v.nodeType==mxConstants.NODETYPE_ELEMENT){var p=v.getAttribute("id");null==e.lookup(p)&&e.decodeCell(v)}v.parentNode.removeChild(v);v=m}}return g};b.afterDecode=function(e,g,m){m.index=m.previousIndex;return m};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(m,v,p,B,G){v=null!=v?v:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),m));this.stopEditing();this.model.beginUpdate();try{for(var S=p.slice(),F=0;F<p.length;F++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[F]),"treeFolding","0")&&this.foldTreeCell(m,p[F]);p=S;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(m,v){this.model.beginUpdate();try{var p=
-[];this.traverse(v,!0,mxUtils.bind(this,function(G,S){var F=null!=S&&this.isTreeEdge(S);F&&p.push(S);G==v||null!=S&&!F||p.push(G);return(null==S||F)&&(G==v||!this.model.isCollapsed(G))}));this.model.setCollapsed(v,m);for(var B=0;B<p.length;B++)this.model.setVisible(p[B],!m)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(m){return!this.isEdgeIgnored(m)};Graph.prototype.getTreeEdges=function(m,v,p,B,G,S){return this.model.filterCells(this.getEdges(m,v,p,B,G,S),mxUtils.bind(this,
+v.nextSibling,v.parentNode.removeChild(v),v=m;null!=v;){m=v.nextSibling;if(v.nodeType==mxConstants.NODETYPE_ELEMENT){var p=v.getAttribute("id");null==e.lookup(p)&&e.decodeCell(v)}v.parentNode.removeChild(v);v=m}}return g};b.afterDecode=function(e,g,m){m.index=m.previousIndex;return m};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(m,v,p,A,G){v=null!=v?v:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),m));this.stopEditing();this.model.beginUpdate();try{for(var S=p.slice(),F=0;F<p.length;F++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[F]),"treeFolding","0")&&this.foldTreeCell(m,p[F]);p=S;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(m,v){this.model.beginUpdate();try{var p=
+[];this.traverse(v,!0,mxUtils.bind(this,function(G,S){var F=null!=S&&this.isTreeEdge(S);F&&p.push(S);G==v||null!=S&&!F||p.push(G);return(null==S||F)&&(G==v||!this.model.isCollapsed(G))}));this.model.setCollapsed(v,m);for(var A=0;A<p.length;A++)this.model.setVisible(p[A],!m)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(m){return!this.isEdgeIgnored(m)};Graph.prototype.getTreeEdges=function(m,v,p,A,G,S){return this.model.filterCells(this.getEdges(m,v,p,A,G,S),mxUtils.bind(this,
function(F){return this.isTreeEdge(F)}))};Graph.prototype.getIncomingTreeEdges=function(m,v){return this.getTreeEdges(m,v,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(m,v){return this.getTreeEdges(m,v,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function m(Y){return k.isVertex(Y)&&p(Y)}function v(Y){var fa=!1;null!=Y&&(fa=
-"1"==f.getCurrentCellStyle(Y).treeMoving);return fa}function p(Y){var fa=!1;null!=Y&&(Y=k.getParent(Y),fa=f.view.getState(Y),fa="tree"==(null!=fa?fa.style:f.getCellStyle(Y)).containerType);return fa}function B(Y){var fa=!1;null!=Y&&(Y=k.getParent(Y),fa=f.view.getState(Y),f.view.getState(Y),fa=null!=(null!=fa?fa.style:f.getCellStyle(Y)).childLayout);return fa}function G(Y){Y=f.view.getState(Y);if(null!=Y){var fa=f.getIncomingTreeEdges(Y.cell);if(0<fa.length&&(fa=f.view.getState(fa[0]),null!=fa&&(fa=
+"1"==f.getCurrentCellStyle(Y).treeMoving);return fa}function p(Y){var fa=!1;null!=Y&&(Y=k.getParent(Y),fa=f.view.getState(Y),fa="tree"==(null!=fa?fa.style:f.getCellStyle(Y)).containerType);return fa}function A(Y){var fa=!1;null!=Y&&(Y=k.getParent(Y),fa=f.view.getState(Y),f.view.getState(Y),fa=null!=(null!=fa?fa.style:f.getCellStyle(Y)).childLayout);return fa}function G(Y){Y=f.view.getState(Y);if(null!=Y){var fa=f.getIncomingTreeEdges(Y.cell);if(0<fa.length&&(fa=f.view.getState(fa[0]),null!=fa&&(fa=
fa.absolutePoints,null!=fa&&0<fa.length&&(fa=fa[fa.length-1],null!=fa)))){if(fa.y==Y.y&&Math.abs(fa.x-Y.getCenterX())<Y.width/2)return mxConstants.DIRECTION_SOUTH;if(fa.y==Y.y+Y.height&&Math.abs(fa.x-Y.getCenterX())<Y.width/2)return mxConstants.DIRECTION_NORTH;if(fa.x>Y.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function S(Y,fa){fa=null!=fa?fa:!0;f.model.beginUpdate();try{var Z=f.model.getParent(Y),l=f.getIncomingTreeEdges(Y),u=f.cloneCells([l[0],Y]);f.model.setTerminal(u[0],
-f.model.getTerminal(l[0],!0),!0);var H=G(Y),U=Z.geometry;H==mxConstants.DIRECTION_SOUTH||H==mxConstants.DIRECTION_NORTH?u[1].geometry.x+=fa?Y.geometry.width+10:-u[1].geometry.width-10:u[1].geometry.y+=fa?Y.geometry.height+10:-u[1].geometry.height-10;f.view.currentRoot!=Z&&(u[1].geometry.x-=U.x,u[1].geometry.y-=U.y);var J=f.view.getState(Y),V=f.view.scale;if(null!=J){var aa=mxRectangle.fromRectangle(J);H==mxConstants.DIRECTION_SOUTH||H==mxConstants.DIRECTION_NORTH?aa.x+=(fa?Y.geometry.width+10:-u[1].geometry.width-
-10)*V:aa.y+=(fa?Y.geometry.height+10:-u[1].geometry.height-10)*V;var ba=f.getOutgoingTreeEdges(f.model.getTerminal(l[0],!0));if(null!=ba){for(var ja=H==mxConstants.DIRECTION_SOUTH||H==mxConstants.DIRECTION_NORTH,oa=U=l=0;oa<ba.length;oa++){var qa=f.model.getTerminal(ba[oa],!1);if(H==G(qa)){var ra=f.view.getState(qa);qa!=Y&&null!=ra&&(ja&&fa!=ra.getCenterX()<J.getCenterX()||!ja&&fa!=ra.getCenterY()<J.getCenterY())&&mxUtils.intersects(aa,ra)&&(l=10+Math.max(l,(Math.min(aa.x+aa.width,ra.x+ra.width)-
-Math.max(aa.x,ra.x))/V),U=10+Math.max(U,(Math.min(aa.y+aa.height,ra.y+ra.height)-Math.max(aa.y,ra.y))/V))}}ja?U=0:l=0;for(oa=0;oa<ba.length;oa++)if(qa=f.model.getTerminal(ba[oa],!1),H==G(qa)&&(ra=f.view.getState(qa),qa!=Y&&null!=ra&&(ja&&fa!=ra.getCenterX()<J.getCenterX()||!ja&&fa!=ra.getCenterY()<J.getCenterY()))){var ua=[];f.traverse(ra.cell,!0,function(za,Ba){var Ca=null!=Ba&&f.isTreeEdge(Ba);Ca&&ua.push(Ba);(null==Ba||Ca)&&ua.push(za);return null==Ba||Ca});f.moveCells(ua,(fa?1:-1)*l,(fa?1:-1)*
+f.model.getTerminal(l[0],!0),!0);var H=G(Y),U=Z.geometry;H==mxConstants.DIRECTION_SOUTH||H==mxConstants.DIRECTION_NORTH?u[1].geometry.x+=fa?Y.geometry.width+10:-u[1].geometry.width-10:u[1].geometry.y+=fa?Y.geometry.height+10:-u[1].geometry.height-10;f.view.currentRoot!=Z&&(u[1].geometry.x-=U.x,u[1].geometry.y-=U.y);var J=f.view.getState(Y),W=f.view.scale;if(null!=J){var aa=mxRectangle.fromRectangle(J);H==mxConstants.DIRECTION_SOUTH||H==mxConstants.DIRECTION_NORTH?aa.x+=(fa?Y.geometry.width+10:-u[1].geometry.width-
+10)*W:aa.y+=(fa?Y.geometry.height+10:-u[1].geometry.height-10)*W;var ba=f.getOutgoingTreeEdges(f.model.getTerminal(l[0],!0));if(null!=ba){for(var ja=H==mxConstants.DIRECTION_SOUTH||H==mxConstants.DIRECTION_NORTH,oa=U=l=0;oa<ba.length;oa++){var qa=f.model.getTerminal(ba[oa],!1);if(H==G(qa)){var ra=f.view.getState(qa);qa!=Y&&null!=ra&&(ja&&fa!=ra.getCenterX()<J.getCenterX()||!ja&&fa!=ra.getCenterY()<J.getCenterY())&&mxUtils.intersects(aa,ra)&&(l=10+Math.max(l,(Math.min(aa.x+aa.width,ra.x+ra.width)-
+Math.max(aa.x,ra.x))/W),U=10+Math.max(U,(Math.min(aa.y+aa.height,ra.y+ra.height)-Math.max(aa.y,ra.y))/W))}}ja?U=0:l=0;for(oa=0;oa<ba.length;oa++)if(qa=f.model.getTerminal(ba[oa],!1),H==G(qa)&&(ra=f.view.getState(qa),qa!=Y&&null!=ra&&(ja&&fa!=ra.getCenterX()<J.getCenterX()||!ja&&fa!=ra.getCenterY()<J.getCenterY()))){var ua=[];f.traverse(ra.cell,!0,function(za,Ba){var Ca=null!=Ba&&f.isTreeEdge(Ba);Ca&&ua.push(Ba);(null==Ba||Ca)&&ua.push(za);return null==Ba||Ca});f.moveCells(ua,(fa?1:-1)*l,(fa?1:-1)*
U)}}}return f.addCells(u,Z)}finally{f.model.endUpdate()}}function F(Y){f.model.beginUpdate();try{var fa=G(Y),Z=f.getIncomingTreeEdges(Y),l=f.cloneCells([Z[0],Y]);f.model.setTerminal(Z[0],l[1],!1);f.model.setTerminal(l[0],l[1],!0);f.model.setTerminal(l[0],Y,!1);var u=f.model.getParent(Y),H=u.geometry,U=[];f.view.currentRoot!=u&&(l[1].geometry.x-=H.x,l[1].geometry.y-=H.y);f.traverse(Y,!0,function(aa,ba){var ja=null!=ba&&f.isTreeEdge(ba);ja&&U.push(ba);(null==ba||ja)&&U.push(aa);return null==ba||ja});
-var J=Y.geometry.width+40,V=Y.geometry.height+40;fa==mxConstants.DIRECTION_SOUTH?J=0:fa==mxConstants.DIRECTION_NORTH?(J=0,V=-V):fa==mxConstants.DIRECTION_WEST?(J=-J,V=0):fa==mxConstants.DIRECTION_EAST&&(V=0);f.moveCells(U,J,V);return f.addCells(l,u)}finally{f.model.endUpdate()}}function P(Y,fa){f.model.beginUpdate();try{var Z=f.model.getParent(Y),l=f.getIncomingTreeEdges(Y),u=G(Y);0==l.length&&(l=[f.createEdge(Z,null,"",null,null,f.createCurrentEdgeStyle())],u=fa);var H=f.cloneCells([l[0],Y]);f.model.setTerminal(H[0],
-Y,!0);null==f.model.getTerminal(H[0],!1)&&(f.model.setTerminal(H[0],H[1],!1),f.applyNewEdgeStyle(H[1],[H[0]],u));l=f.getOutgoingTreeEdges(Y);var U=Z.geometry;fa=[];f.view.currentRoot==Z&&(U=new mxRectangle);for(var J=0;J<l.length;J++){var V=f.model.getTerminal(l[J],!1);null!=V&&fa.push(V)}var aa=f.view.getBounds(fa),ba=f.view.translate,ja=f.view.scale;u==mxConstants.DIRECTION_SOUTH?(H[1].geometry.x=null==aa?Y.geometry.x+(Y.geometry.width-H[1].geometry.width)/2:(aa.x+aa.width)/ja-ba.x-U.x+10,H[1].geometry.y+=
+var J=Y.geometry.width+40,W=Y.geometry.height+40;fa==mxConstants.DIRECTION_SOUTH?J=0:fa==mxConstants.DIRECTION_NORTH?(J=0,W=-W):fa==mxConstants.DIRECTION_WEST?(J=-J,W=0):fa==mxConstants.DIRECTION_EAST&&(W=0);f.moveCells(U,J,W);return f.addCells(l,u)}finally{f.model.endUpdate()}}function P(Y,fa){f.model.beginUpdate();try{var Z=f.model.getParent(Y),l=f.getIncomingTreeEdges(Y),u=G(Y);0==l.length&&(l=[f.createEdge(Z,null,"",null,null,f.createCurrentEdgeStyle())],u=fa);var H=f.cloneCells([l[0],Y]);f.model.setTerminal(H[0],
+Y,!0);null==f.model.getTerminal(H[0],!1)&&(f.model.setTerminal(H[0],H[1],!1),f.applyNewEdgeStyle(H[1],[H[0]],u));l=f.getOutgoingTreeEdges(Y);var U=Z.geometry;fa=[];f.view.currentRoot==Z&&(U=new mxRectangle);for(var J=0;J<l.length;J++){var W=f.model.getTerminal(l[J],!1);null!=W&&fa.push(W)}var aa=f.view.getBounds(fa),ba=f.view.translate,ja=f.view.scale;u==mxConstants.DIRECTION_SOUTH?(H[1].geometry.x=null==aa?Y.geometry.x+(Y.geometry.width-H[1].geometry.width)/2:(aa.x+aa.width)/ja-ba.x-U.x+10,H[1].geometry.y+=
H[1].geometry.height-U.y+40):u==mxConstants.DIRECTION_NORTH?(H[1].geometry.x=null==aa?Y.geometry.x+(Y.geometry.width-H[1].geometry.width)/2:(aa.x+aa.width)/ja-ba.x+-U.x+10,H[1].geometry.y-=H[1].geometry.height+U.y+40):(H[1].geometry.x=u==mxConstants.DIRECTION_WEST?H[1].geometry.x-(H[1].geometry.width+U.x+40):H[1].geometry.x+(H[1].geometry.width-U.x+40),H[1].geometry.y=null==aa?Y.geometry.y+(Y.geometry.height-H[1].geometry.height)/2:(aa.y+aa.height)/ja-ba.y+-U.y+10);return f.addCells(H,Z)}finally{f.model.endUpdate()}}
function R(Y,fa,Z){Y=f.getOutgoingTreeEdges(Y);Z=f.view.getState(Z);var l=[];if(null!=Z&&null!=Y){for(var u=0;u<Y.length;u++){var H=f.view.getState(f.model.getTerminal(Y[u],!1));null!=H&&(!fa&&Math.min(H.x+H.width,Z.x+Z.width)>=Math.max(H.x,Z.x)||fa&&Math.min(H.y+H.height,Z.y+Z.height)>=Math.max(H.y,Z.y))&&l.push(H)}l.sort(function(U,J){return fa?U.x+U.width-J.x-J.width:U.y+U.height-J.y-J.height})}return l}function T(Y,fa){var Z=G(Y),l=fa==mxConstants.DIRECTION_EAST||fa==mxConstants.DIRECTION_WEST;
(Z==mxConstants.DIRECTION_EAST||Z==mxConstants.DIRECTION_WEST)==l&&Z!=fa?c.actions.get("selectParent").funct():Z==fa?(fa=f.getOutgoingTreeEdges(Y),null!=fa&&0<fa.length&&f.setSelectionCell(f.model.getTerminal(fa[0],!1))):(Z=f.getIncomingTreeEdges(Y),null!=Z&&0<Z.length&&(l=R(f.model.getTerminal(Z[0],!0),l,Y),Y=f.view.getState(Y),null!=Y&&(Y=mxUtils.indexOf(l,Y),0<=Y&&(Y+=fa==mxConstants.DIRECTION_NORTH||fa==mxConstants.DIRECTION_WEST?-1:1,0<=Y&&Y<=l.length-1&&f.setSelectionCell(l[Y].cell)))))}var c=
-this,f=c.editor.graph,k=f.getModel(),A=c.menus.createPopupMenu;c.menus.createPopupMenu=function(Y,fa,Z){A.apply(this,arguments);if(1==f.getSelectionCount()){fa=f.getSelectionCell();var l=f.getOutgoingTreeEdges(fa);Y.addSeparator();0<l.length&&(m(f.getSelectionCell())&&this.addMenuItems(Y,["selectChildren"],null,Z),this.addMenuItems(Y,["selectDescendants"],null,Z));m(f.getSelectionCell())?(Y.addSeparator(),0<f.getIncomingTreeEdges(fa).length&&this.addMenuItems(Y,["selectSiblings","selectParent"],null,
+this,f=c.editor.graph,k=f.getModel(),B=c.menus.createPopupMenu;c.menus.createPopupMenu=function(Y,fa,Z){B.apply(this,arguments);if(1==f.getSelectionCount()){fa=f.getSelectionCell();var l=f.getOutgoingTreeEdges(fa);Y.addSeparator();0<l.length&&(m(f.getSelectionCell())&&this.addMenuItems(Y,["selectChildren"],null,Z),this.addMenuItems(Y,["selectDescendants"],null,Z));m(f.getSelectionCell())?(Y.addSeparator(),0<f.getIncomingTreeEdges(fa).length&&this.addMenuItems(Y,["selectSiblings","selectParent"],null,
Z)):0<f.model.getEdgeCount(fa)&&this.addMenuItems(Y,["selectConnections"],null,Z)}};c.actions.addAction("selectChildren",function(Y){if(f.isEnabled()&&1==f.getSelectionCount()){var fa=f.getSelectionCell();Y=mxEvent.isControlDown(Y)?null:f.getOutgoingTreeEdges(fa);if(null!=Y&&0<Y.length){fa=[];for(var Z=0;Z<Y.length;Z++)fa.push(f.model.getTerminal(Y[Z],!1));f.setSelectionCells(fa)}else f.setSelectionCells(f.model.getChildren(fa))}},null,null,"Alt+Shift+C");c.actions.addAction("selectDescendants",function(Y){var fa=
f.getSelectionCell();if(f.isEnabled()&&null!=fa){var Z=[];mxEvent.isControlDown(Y)||f.traverse(fa,!0,function(l,u){var H=null!=u&&f.isTreeEdge(u);H&&mxEvent.isControlDown(Y)&&Z.push(u);(null==u||H)&&Z.push(l);return null==u||H});if(0==Z.length||1==Z.length&&Z[0]==fa)Z=f.model.getDescendants(fa);f.setSelectionCells(Z)}},null,null,"Alt+Shift+X");c.actions.addAction("selectParent",function(Y){var fa=f.getSelectionCell();f.isEnabled()&&null!=fa&&(Y=mxEvent.isControlDown(Y)?null:f.getIncomingTreeEdges(fa),
null!=Y&&0<Y.length?f.setSelectionCell(f.model.getTerminal(Y[0],!0)):f.selectParentCell())},null,null,"Alt+Shift+P");c.actions.addAction("selectSiblings",function(Y){if(f.isEnabled()&&1==f.getSelectionCount()){var fa=f.getSelectionCell(),Z=mxEvent.isControlDown(Y)?null:f.getIncomingTreeEdges(fa);Y=[];if(null!=Z&&0<Z.length&&(Z=f.getOutgoingTreeEdges(f.model.getTerminal(Z[0],!0)),null!=Z))for(var l=0;l<Z.length;l++)Y.push(f.model.getTerminal(Z[l],!1));0==Y.length&&(Y=f.model.getChildren(f.model.getParent(fa)));
-f.setSelectionCells(Y)}},null,null,"Alt+Shift+S");var z=f.removeCells;f.removeCells=function(Y,fa){fa=null!=fa?fa:!0;null==Y&&(Y=this.getDeletableCells(this.getSelectionCells()));fa&&(Y=this.getDeletableCells(this.addAllEdges(Y)));for(var Z=[],l=0;l<Y.length;l++){var u=Y[l];k.isEdge(u)&&p(u)&&(Z.push(u),u=k.getTerminal(u,!1));if(m(u)){var H=[];f.traverse(u,!0,function(U,J){var V=null!=J&&f.isTreeEdge(J);V&&H.push(J);(null==J||V)&&H.push(U);return null==J||V});0<H.length&&(Z=Z.concat(H),u=f.getIncomingTreeEdges(Y[l]),
+f.setSelectionCells(Y)}},null,null,"Alt+Shift+S");var z=f.removeCells;f.removeCells=function(Y,fa){fa=null!=fa?fa:!0;null==Y&&(Y=this.getDeletableCells(this.getSelectionCells()));fa&&(Y=this.getDeletableCells(this.addAllEdges(Y)));for(var Z=[],l=0;l<Y.length;l++){var u=Y[l];k.isEdge(u)&&p(u)&&(Z.push(u),u=k.getTerminal(u,!1));if(m(u)){var H=[];f.traverse(u,!0,function(U,J){var W=null!=J&&f.isTreeEdge(J);W&&H.push(J);(null==J||W)&&H.push(U);return null==J||W});0<H.length&&(Z=Z.concat(H),u=f.getIncomingTreeEdges(Y[l]),
Y=Y.concat(u))}else null!=u&&Z.push(Y[l])}Y=Z;return z.apply(this,arguments)};c.hoverIcons.getStateAt=function(Y,fa,Z){return m(Y.cell)?null:this.graph.view.getState(this.graph.getCellAt(fa,Z))};var C=f.duplicateCells;f.duplicateCells=function(Y,fa){Y=null!=Y?Y:this.getSelectionCells();for(var Z=Y.slice(0),l=0;l<Z.length;l++){var u=f.view.getState(Z[l]);if(null!=u&&m(u.cell)){var H=f.getIncomingTreeEdges(u.cell);for(u=0;u<H.length;u++)mxUtils.remove(H[u],Y)}}this.model.beginUpdate();try{var U=C.call(this,
-Y,fa);if(U.length==Y.length)for(l=0;l<Y.length;l++)if(m(Y[l])){var J=f.getIncomingTreeEdges(U[l]);H=f.getIncomingTreeEdges(Y[l]);if(0==J.length&&0<H.length){var V=this.cloneCell(H[0]);this.addEdge(V,f.getDefaultParent(),this.model.getTerminal(H[0],!0),U[l])}}}finally{this.model.endUpdate()}return U};var I=f.moveCells;f.moveCells=function(Y,fa,Z,l,u,H,U){for(var J=null,V=[],aa=0;aa<Y.length;aa++)(v(Y[aa])||m(Y[aa]))&&!B(Y[aa])&&this.isCellCollapsed(Y[aa])?V=V.concat(this.getSubtree(Y[aa])):V.push(Y[aa]);
-Y=mxUtils.removeDuplicates(V);this.model.beginUpdate();try{V=u;var ba=this.getCurrentCellStyle(u);if(null!=Y&&m(u)&&"1"==mxUtils.getValue(ba,"treeFolding","0")){for(aa=0;aa<Y.length;aa++)if(m(Y[aa])||f.model.isEdge(Y[aa])&&null==f.model.getTerminal(Y[aa],!0)){u=f.model.getParent(Y[aa]);break}if(null!=V&&u!=V&&null!=this.view.getState(Y[0])){var ja=f.getIncomingTreeEdges(Y[0]);if(0<ja.length){var oa=f.view.getState(f.model.getTerminal(ja[0],!0));if(null!=oa){var qa=f.view.getState(V);null!=qa&&(fa=
-(qa.getCenterX()-oa.getCenterX())/f.view.scale,Z=(qa.getCenterY()-oa.getCenterY())/f.view.scale)}}}}J=I.apply(this,arguments);if(null!=J&&null!=Y&&J.length==Y.length)for(aa=0;aa<J.length;aa++)if(this.model.isEdge(J[aa]))m(V)&&0>mxUtils.indexOf(J,this.model.getTerminal(J[aa],!0))&&this.model.setTerminal(J[aa],V,!0);else if(m(Y[aa])&&(ja=f.getIncomingTreeEdges(Y[aa]),0<ja.length))if(!l)m(V)&&0>mxUtils.indexOf(Y,this.model.getTerminal(ja[0],!0))&&this.model.setTerminal(ja[0],V,!0);else if(0==f.getIncomingTreeEdges(J[aa]).length){ba=
-V;if(null==ba||ba==f.model.getParent(Y[aa]))ba=f.model.getTerminal(ja[0],!0);l=this.cloneCell(ja[0]);this.addEdge(l,f.getDefaultParent(),ba,J[aa])}}finally{this.model.endUpdate()}return J};if(null!=c.sidebar){var L=c.sidebar.dropAndConnect;c.sidebar.dropAndConnect=function(Y,fa,Z,l){var u=f.model,H=null;u.beginUpdate();try{if(H=L.apply(this,arguments),m(Y))for(var U=0;U<H.length;U++)if(u.isEdge(H[U])&&null==u.getTerminal(H[U],!0)){u.setTerminal(H[U],Y,!0);var J=f.getCellGeometry(H[U]);J.points=null;
+Y,fa);if(U.length==Y.length)for(l=0;l<Y.length;l++)if(m(Y[l])){var J=f.getIncomingTreeEdges(U[l]);H=f.getIncomingTreeEdges(Y[l]);if(0==J.length&&0<H.length){var W=this.cloneCell(H[0]);this.addEdge(W,f.getDefaultParent(),this.model.getTerminal(H[0],!0),U[l])}}}finally{this.model.endUpdate()}return U};var I=f.moveCells;f.moveCells=function(Y,fa,Z,l,u,H,U){for(var J=null,W=[],aa=0;aa<Y.length;aa++)(v(Y[aa])||m(Y[aa]))&&!A(Y[aa])&&this.isCellCollapsed(Y[aa])?W=W.concat(this.getSubtree(Y[aa])):W.push(Y[aa]);
+Y=mxUtils.removeDuplicates(W);this.model.beginUpdate();try{W=u;var ba=this.getCurrentCellStyle(u);if(null!=Y&&m(u)&&"1"==mxUtils.getValue(ba,"treeFolding","0")){for(aa=0;aa<Y.length;aa++)if(m(Y[aa])||f.model.isEdge(Y[aa])&&null==f.model.getTerminal(Y[aa],!0)){u=f.model.getParent(Y[aa]);break}if(null!=W&&u!=W&&null!=this.view.getState(Y[0])){var ja=f.getIncomingTreeEdges(Y[0]);if(0<ja.length){var oa=f.view.getState(f.model.getTerminal(ja[0],!0));if(null!=oa){var qa=f.view.getState(W);null!=qa&&(fa=
+(qa.getCenterX()-oa.getCenterX())/f.view.scale,Z=(qa.getCenterY()-oa.getCenterY())/f.view.scale)}}}}J=I.apply(this,arguments);if(null!=J&&null!=Y&&J.length==Y.length)for(aa=0;aa<J.length;aa++)if(this.model.isEdge(J[aa]))m(W)&&0>mxUtils.indexOf(J,this.model.getTerminal(J[aa],!0))&&this.model.setTerminal(J[aa],W,!0);else if(m(Y[aa])&&(ja=f.getIncomingTreeEdges(Y[aa]),0<ja.length))if(!l)m(W)&&0>mxUtils.indexOf(Y,this.model.getTerminal(ja[0],!0))&&this.model.setTerminal(ja[0],W,!0);else if(0==f.getIncomingTreeEdges(J[aa]).length){ba=
+W;if(null==ba||ba==f.model.getParent(Y[aa]))ba=f.model.getTerminal(ja[0],!0);l=this.cloneCell(ja[0]);this.addEdge(l,f.getDefaultParent(),ba,J[aa])}}finally{this.model.endUpdate()}return J};if(null!=c.sidebar){var L=c.sidebar.dropAndConnect;c.sidebar.dropAndConnect=function(Y,fa,Z,l){var u=f.model,H=null;u.beginUpdate();try{if(H=L.apply(this,arguments),m(Y))for(var U=0;U<H.length;U++)if(u.isEdge(H[U])&&null==u.getTerminal(H[U],!0)){u.setTerminal(H[U],Y,!0);var J=f.getCellGeometry(H[U]);J.points=null;
null!=J.getTerminalPoint(!0)&&J.setTerminalPoint(null,!0)}}finally{u.endUpdate()}return H}}var K={67:c.actions.get("selectChildren"),88:c.actions.get("selectDescendants"),80:c.actions.get("selectParent"),83:c.actions.get("selectSiblings")},O={67:c.actions.get("copyStyle"),86:c.actions.get("pasteStyle")},da=c.onKeyDown;c.onKeyDown=function(Y){try{var fa=f.getSelectionCell();if(f.isEnabled()&&!f.isEditing()&&null!=fa){var Z=mxEvent.isAltDown(Y)&&mxEvent.isShiftDown(Y)?K[Y.keyCode]:mxEvent.isAltDown(Y)?
O[Y.keyCode]:null;null!=Z?(Z.funct(Y),mxEvent.consume(Y)):m(fa)&&(Z=null,0<f.getIncomingTreeEdges(fa).length&&(9==Y.which?Z=mxEvent.isShiftDown(Y)?F(fa):P(fa):13==Y.which&&(Z=S(fa,!mxEvent.isShiftDown(Y)))),null!=Z&&0<Z.length?(1==Z.length&&f.model.isEdge(Z[0])?f.setSelectionCell(f.model.getTerminal(Z[0],!1)):f.setSelectionCell(Z[Z.length-1]),null!=c.hoverIcons&&c.hoverIcons.update(f.view.getState(fa)),f.startEditingAtCell(fa),mxEvent.consume(Y)):37==Y.keyCode?(T(fa,mxConstants.DIRECTION_WEST),mxEvent.consume(Y)):
-38==Y.keyCode?(T(fa,mxConstants.DIRECTION_NORTH),mxEvent.consume(Y)):39==Y.keyCode?(T(fa,mxConstants.DIRECTION_EAST),mxEvent.consume(Y)):40==Y.keyCode&&(T(fa,mxConstants.DIRECTION_SOUTH),mxEvent.consume(Y)))}}catch(l){c.handleError(l)}mxEvent.isConsumed(Y)||da.apply(this,arguments)};var ea=f.connectVertex;f.connectVertex=function(Y,fa,Z,l,u,H,U){var J=f.getIncomingTreeEdges(Y);if(m(Y)){var V=G(Y),aa=V==mxConstants.DIRECTION_EAST||V==mxConstants.DIRECTION_WEST,ba=fa==mxConstants.DIRECTION_EAST||fa==
-mxConstants.DIRECTION_WEST;return V==fa||0==J.length?P(Y,fa):aa==ba?F(Y):S(Y,fa!=mxConstants.DIRECTION_NORTH&&fa!=mxConstants.DIRECTION_WEST)}return ea.apply(this,arguments)};f.getSubtree=function(Y){var fa=[Y];!v(Y)&&!m(Y)||B(Y)||f.traverse(Y,!0,function(Z,l){var u=null!=l&&f.isTreeEdge(l);u&&0>mxUtils.indexOf(fa,l)&&fa.push(l);(null==l||u)&&0>mxUtils.indexOf(fa,Z)&&fa.push(Z);return null==l||u});return fa};var ca=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ca.apply(this,
-arguments);(v(this.state.cell)||m(this.state.cell))&&!B(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?null==this.moveHandle&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title","Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),
-this.redrawMoveHandle(),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(Y){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(Y),mxEvent.getClientY(Y),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(Y);this.graph.isMouseDown=!0;c.hoverIcons.reset();mxEvent.consume(Y)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var W=mxVertexHandler.prototype.redrawHandles;
-mxVertexHandler.prototype.redrawHandles=function(){W.apply(this,arguments);this.redrawMoveHandle()};mxVertexHandler.prototype.redrawMoveHandle=function(){null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var ma=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(Y){ma.apply(this,arguments);null!=
+38==Y.keyCode?(T(fa,mxConstants.DIRECTION_NORTH),mxEvent.consume(Y)):39==Y.keyCode?(T(fa,mxConstants.DIRECTION_EAST),mxEvent.consume(Y)):40==Y.keyCode&&(T(fa,mxConstants.DIRECTION_SOUTH),mxEvent.consume(Y)))}}catch(l){c.handleError(l)}mxEvent.isConsumed(Y)||da.apply(this,arguments)};var ea=f.connectVertex;f.connectVertex=function(Y,fa,Z,l,u,H,U){var J=f.getIncomingTreeEdges(Y);if(m(Y)){var W=G(Y),aa=W==mxConstants.DIRECTION_EAST||W==mxConstants.DIRECTION_WEST,ba=fa==mxConstants.DIRECTION_EAST||fa==
+mxConstants.DIRECTION_WEST;return W==fa||0==J.length?P(Y,fa):aa==ba?F(Y):S(Y,fa!=mxConstants.DIRECTION_NORTH&&fa!=mxConstants.DIRECTION_WEST)}return ea.apply(this,arguments)};f.getSubtree=function(Y){var fa=[Y];!v(Y)&&!m(Y)||A(Y)||f.traverse(Y,!0,function(Z,l){var u=null!=l&&f.isTreeEdge(l);u&&0>mxUtils.indexOf(fa,l)&&fa.push(l);(null==l||u)&&0>mxUtils.indexOf(fa,Z)&&fa.push(Z);return null==l||u});return fa};var ca=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ca.apply(this,
+arguments);(v(this.state.cell)||m(this.state.cell))&&!A(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?null==this.moveHandle&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title","Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),
+this.redrawMoveHandle(),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(Y){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(Y),mxEvent.getClientY(Y),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(Y);this.graph.isMouseDown=!0;c.hoverIcons.reset();mxEvent.consume(Y)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var V=mxVertexHandler.prototype.redrawHandles;
+mxVertexHandler.prototype.redrawHandles=function(){V.apply(this,arguments);this.redrawMoveHandle()};mxVertexHandler.prototype.redrawMoveHandle=function(){null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var ma=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(Y){ma.apply(this,arguments);null!=
this.moveHandle&&(this.moveHandle.style.display=Y?"":"none")};var la=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(Y,fa){la.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var g=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var m=g.apply(this,arguments),v=this.graph,p=this;return m.concat([this.addEntry("tree container",
-function(){var B=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");B.vertex=!0;var G=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');G.vertex=!0;var S=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
-S.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");F.geometry.relative=!0;F.edge=!0;G.insertEdge(F,!0);S.insertEdge(F,!1);B.insert(F);B.insert(G);B.insert(S);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var B=new mxCell("Mindmap",new mxGeometry(0,
-0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");B.vertex=!0;var G=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');G.vertex=!0;var S=new mxCell("Topic",new mxGeometry(320,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
+function(){var A=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");A.vertex=!0;var G=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');G.vertex=!0;var S=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
+S.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");F.geometry.relative=!0;F.edge=!0;G.insertEdge(F,!0);S.insertEdge(F,!1);A.insert(F);A.insert(G);A.insert(S);return p.createVertexTemplateFromCells([A],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var A=new mxCell("Mindmap",new mxGeometry(0,
+0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");A.vertex=!0;var G=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');G.vertex=!0;var S=new mxCell("Topic",new mxGeometry(320,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
S.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");F.geometry.relative=!0;F.edge=!0;G.insertEdge(F,!0);S.insertEdge(F,!1);var P=new mxCell("Branch",new mxGeometry(320,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
P.vertex=!0;var R=new mxCell("",new mxGeometry(0,0,0,0),F.style);R.geometry.relative=!0;R.edge=!0;G.insertEdge(R,!0);P.insertEdge(R,!1);var T=new mxCell("Topic",new mxGeometry(20,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
T.vertex=!0;var c=new mxCell("",new mxGeometry(0,0,0,0),F.style);c.geometry.relative=!0;c.edge=!0;G.insertEdge(c,!0);T.insertEdge(c,!1);var f=new mxCell("Branch",new mxGeometry(20,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
-f.vertex=!0;var k=new mxCell("",new mxGeometry(0,0,0,0),F.style);k.geometry.relative=!0;k.edge=!0;G.insertEdge(k,!0);f.insertEdge(k,!1);B.insert(F);B.insert(R);B.insert(c);B.insert(k);B.insert(G);B.insert(S);B.insert(P);B.insert(T);B.insert(f);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var B=new mxCell("Central Idea",new mxGeometry(0,0,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};treeFolding=1;treeMoving=1;');
-B.vertex=!0;return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var B=new mxCell("Branch",new mxGeometry(0,0,80,20),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;recursiveResize=0;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
-B.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");G.geometry.setTerminalPoint(new mxPoint(-40,40),!0);G.geometry.relative=!0;G.edge=!0;B.insertEdge(G,!1);return p.createVertexTemplateFromCells([B,G],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var B=new mxCell("Sub Topic",new mxGeometry(0,0,80,26),
-'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');B.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
-G.geometry.setTerminalPoint(new mxPoint(-40,40),!0);G.geometry.relative=!0;G.edge=!0;B.insertEdge(G,!1);return p.createVertexTemplateFromCells([B,G],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree orgchart organization division",function(){var B=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');B.vertex=!0;var G=new mxCell("Organization",new mxGeometry(80,
+f.vertex=!0;var k=new mxCell("",new mxGeometry(0,0,0,0),F.style);k.geometry.relative=!0;k.edge=!0;G.insertEdge(k,!0);f.insertEdge(k,!1);A.insert(F);A.insert(R);A.insert(c);A.insert(k);A.insert(G);A.insert(S);A.insert(P);A.insert(T);A.insert(f);return p.createVertexTemplateFromCells([A],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var A=new mxCell("Central Idea",new mxGeometry(0,0,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};treeFolding=1;treeMoving=1;');
+A.vertex=!0;return p.createVertexTemplateFromCells([A],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var A=new mxCell("Branch",new mxGeometry(0,0,80,20),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;recursiveResize=0;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
+A.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");G.geometry.setTerminalPoint(new mxPoint(-40,40),!0);G.geometry.relative=!0;G.edge=!0;A.insertEdge(G,!1);return p.createVertexTemplateFromCells([A,G],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var A=new mxCell("Sub Topic",new mxGeometry(0,0,80,26),
+'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');A.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
+G.geometry.setTerminalPoint(new mxPoint(-40,40),!0);G.geometry.relative=!0;G.edge=!0;A.insertEdge(G,!1);return p.createVertexTemplateFromCells([A,G],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree orgchart organization division",function(){var A=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');A.vertex=!0;var G=new mxCell("Organization",new mxGeometry(80,
40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');v.setAttributeForCell(G,"treeRoot","1");G.vertex=!0;var S=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');S.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
F.geometry.relative=!0;F.edge=!0;G.insertEdge(F,!0);S.insertEdge(F,!1);var P=new mxCell("Division",new mxGeometry(160,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');P.vertex=!0;var R=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");R.geometry.relative=
-!0;R.edge=!0;G.insertEdge(R,!0);P.insertEdge(R,!1);B.insert(F);B.insert(R);B.insert(G);B.insert(S);B.insert(P);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree root",function(){var B=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');v.setAttributeForCell(B,"treeRoot","1");B.vertex=!0;return p.createVertexTemplateFromCells([B],
-B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree division",function(){var B=new mxCell("Division",new mxGeometry(20,40,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');B.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
-G.geometry.setTerminalPoint(new mxPoint(0,0),!0);G.geometry.relative=!0;G.edge=!0;B.insertEdge(G,!1);return p.createVertexTemplateFromCells([B,G],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree sub sections",function(){var B=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");B.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;targetPortConstraint=eastwest;sourcePortConstraint=northsouth;curved=0;rounded=0;");
-G.geometry.setTerminalPoint(new mxPoint(110,-40),!0);G.geometry.relative=!0;G.edge=!0;B.insertEdge(G,!1);var S=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");S.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),G.style);F.geometry.setTerminalPoint(new mxPoint(110,-40),!0);F.geometry.relative=!0;F.edge=!0;S.insertEdge(F,!1);return p.createVertexTemplateFromCells([G,F,B,S],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
+!0;R.edge=!0;G.insertEdge(R,!0);P.insertEdge(R,!1);A.insert(F);A.insert(R);A.insert(G);A.insert(S);A.insert(P);return p.createVertexTemplateFromCells([A],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree root",function(){var A=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');v.setAttributeForCell(A,"treeRoot","1");A.vertex=!0;return p.createVertexTemplateFromCells([A],
+A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree division",function(){var A=new mxCell("Division",new mxGeometry(20,40,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');A.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
+G.geometry.setTerminalPoint(new mxPoint(0,0),!0);G.geometry.relative=!0;G.edge=!0;A.insertEdge(G,!1);return p.createVertexTemplateFromCells([A,G],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree sub sections",function(){var A=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");A.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;targetPortConstraint=eastwest;sourcePortConstraint=northsouth;curved=0;rounded=0;");
+G.geometry.setTerminalPoint(new mxPoint(110,-40),!0);G.geometry.relative=!0;G.edge=!0;A.insertEdge(G,!1);var S=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");S.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),G.style);F.geometry.setTerminalPoint(new mxPoint(110,-40),!0);F.geometry.relative=!0;F.edge=!0;S.insertEdge(F,!1);return p.createVertexTemplateFromCells([G,F,A,S],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
EditorUi.initMinimalTheme=function(){function b(T,c){if(EditorUi.windowed){var f=T.editor.graph;f.popupMenuHandler.hideMenu();null==T.formatWindow?(c=Math.max(10,T.diagramContainer.clientWidth-248),f=Math.min(566,f.container.clientHeight-10),T.formatWindow=new WrapperWindow(T,mxResources.get("format"),c,60,240,f,function(k){T.createFormat(k).init()}),T.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){T.formatWindow.window.fit()})),T.formatWindow.window.minimumSize=new mxRectangle(0,
0,240,80)):T.formatWindow.window.setVisible(null!=c?c:!T.formatWindow.window.isVisible())}else null==T.formatElt&&(T.formatElt=T.createSidebarContainer(),T.createFormat(T.formatElt).init(),T.formatElt.style.border="none",T.formatElt.style.width="240px",T.formatElt.style.borderLeftWidth="1px",T.formatElt.style.borderLeftStyle="solid",T.formatElt.style.right="0px"),f=T.diagramContainer.parentNode,null!=T.formatElt.parentNode?(T.formatElt.parentNode.removeChild(T.formatElt),f.style.right="0px"):(f.parentNode.appendChild(T.formatElt),
f.style.right=T.formatElt.style.width)}function e(T,c){function f(z,C){var I=T.menus.get(z);z=k.addMenu(C,mxUtils.bind(this,function(){I.funct.apply(this,arguments)}));z.setAttribute("title",C);z.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";z.className="geTitle";c.appendChild(z);return z}var k=new Menubar(T,c);if(Editor.enableCustomLibraries&&
-("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=T.actions.get("newLibrary")){var A=document.createElement("div");A.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";A.className="geTitle";mxUtils.write(A,mxResources.get("newLibrary"));c.appendChild(A);mxEvent.addListener(A,"click",this.actions.get("newLibrary").funct);
-A=A.cloneNode(!1);A.style.left="50%";A.style.borderLeftStyle="solid";mxUtils.write(A,mxResources.get("openLibrary"));c.appendChild(A);mxEvent.addListener(A,"click",this.actions.get("openLibrary").funct)}else A=f("newLibrary",mxResources.get("newLibrary")),A.style.display="block",A.style.fontSize="11px",A.style.left="0",A=f("openLibraryFrom",mxResources.get("openLibraryFrom")),A.style.borderLeftStyle="solid",A.style.display="block",A.style.fontSize="11px",A.style.left="50%";c.appendChild(T.sidebar.container);
+("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=T.actions.get("newLibrary")){var B=document.createElement("div");B.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";B.className="geTitle";mxUtils.write(B,mxResources.get("newLibrary"));c.appendChild(B);mxEvent.addListener(B,"click",this.actions.get("newLibrary").funct);
+B=B.cloneNode(!1);B.style.left="50%";B.style.borderLeftStyle="solid";mxUtils.write(B,mxResources.get("openLibrary"));c.appendChild(B);mxEvent.addListener(B,"click",this.actions.get("openLibrary").funct)}else B=f("newLibrary",mxResources.get("newLibrary")),B.style.display="block",B.style.fontSize="11px",B.style.left="0",B=f("openLibraryFrom",mxResources.get("openLibraryFrom")),B.style.borderLeftStyle="solid",B.style.display="block",B.style.fontSize="11px",B.style.left="50%";c.appendChild(T.sidebar.container);
c.style.overflow="hidden"}function g(T,c){if(EditorUi.windowed){var f=T.editor.graph;f.popupMenuHandler.hideMenu();null==T.sidebarWindow?(c=Math.min(f.container.clientWidth-10,218),f=Math.min(f.container.clientHeight-40,650),T.sidebarWindow=new WrapperWindow(T,mxResources.get("shapes"),10,56,c-6,f-6,function(k){e(T,k)}),T.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){T.sidebarWindow.window.fit()})),T.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90),T.sidebarWindow.window.setVisible(!0),
isLocalStorage&&T.getLocalData("sidebar",function(k){T.sidebar.showEntries(k,null,!0)}),T.restoreLibraries()):T.sidebarWindow.window.setVisible(null!=c?c:!T.sidebarWindow.window.isVisible())}else null==T.sidebarElt&&(T.sidebarElt=T.createSidebarContainer(),e(T,T.sidebarElt),T.sidebarElt.style.border="none",T.sidebarElt.style.width="210px",T.sidebarElt.style.borderRight="1px solid gray"),f=T.diagramContainer.parentNode,null!=T.sidebarElt.parentNode?(T.sidebarElt.parentNode.removeChild(T.sidebarElt),
-f.style.left="0px"):(f.parentNode.appendChild(T.sidebarElt),f.style.left=T.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var m=0;try{m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}catch(T){}Menus.prototype.autoPopup=!1;Editor.checkmarkImage=Graph.createSvgImage(22,18,'<path transform="translate(4 0)" d="M7.181,15.007a1,1,0,0,1-.793-0.391L3.222,10.5A1,1,0,1,1,4.808,9.274L7.132,12.3l6.044-8.86A1,1,0,1,1,14.83,4.569l-6.823,10a1,1,0,0,1-.8.437H7.181Z" fill="#29b6f2"/>').src;
-mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');mxOutline.prototype.sizerImage=null;mxConstants.VERTEX_SELECTION_COLOR="#C0C0C0";mxConstants.EDGE_SELECTION_COLOR="#C0C0C0";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.DEFAULT_VALID_COLOR="#29b6f2";mxConstants.GUIDE_COLOR="#C0C0C0";mxConstants.OUTLINE_COLOR="#29b6f2";
-mxConstants.OUTLINE_HANDLE_FILLCOLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#fff";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowSize="0.6";Graph.prototype.svgShadowBlur="1.2";mxRubberband.prototype.defaultOpacity=50;HoverIcons.prototype.inactiveOpacity=25;Format.prototype.showCloseButton=!1;EditorUi.prototype.closableScratchpad=!1;EditorUi.prototype.toolbarHeight=46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=
-!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var v=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(T){v.apply(this,arguments);null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var p=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){p.apply(this,arguments);this.menus.get("save").setEnabled(null!=
-this.getCurrentFile()||"1"==urlParams.embed)};var B=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(T,c){null!=c.shortcut&&900>m&&!mxClient.IS_IOS?T.firstChild.nextSibling.setAttribute("title",c.shortcut):B.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(T){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=T?T:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||
-null==this.formatWindow&&0<this.formatWidth};var G=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();G.apply(this,arguments)};var S=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(T){S.apply(this,arguments);if(T){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=c&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=c&&this.formatWindow.window.setVisible(!0)}else null!=
-this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};var F=Menus.prototype.init;Menus.prototype.init=function(){F.apply(this,arguments);var T=this.editorUi;EditorUi.enablePlantUml&&!T.isOffline()&&T.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var k=new ParseDialog(T,mxResources.get("plantUml")+"...","plantUml");T.showDialog(k.container,
-620,420,!0,!1);k.init()}));T.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var k=new ParseDialog(T,mxResources.get("mermaid")+"...","mermaid");T.showDialog(k.container,620,420,!0,!1);k.init()}));var c="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),f=function(k,A,z,C){k.addItem(z,null,mxUtils.bind(this,function(){var I=new CreateGraphDialog(T,z,C);T.showDialog(I.container,620,420,!0,!1);I.init()}),A)};this.put("insertLayout",
-new Menu(mxUtils.bind(this,function(k,A){for(var z=0;z<c.length;z++)"-"==c[z]?k.addSeparator(A):f(k,A,mxResources.get(c[z])+"...",c[z])})))};EditorUi.prototype.installFormatToolbar=function(T){var c=this.editor.graph,f=document.createElement("div");f.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,
-function(k,A){0<c.getSelectionCount()?(T.appendChild(f),f.innerHTML="Selected: "+c.getSelectionCount()):null!=f.parentNode&&f.parentNode.removeChild(f)}))};var P=!1;EditorUi.prototype.initFormatWindow=function(){if(!P&&null!=this.formatWindow){P=!0;var T=this.formatWindow.window.toggleMinimized,c=240;this.formatWindow.window.toggleMinimized=function(){T.apply(this,arguments);this.minimized?(c=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=
-parseInt(this.div.style.left)+c-140+"px"):(this.div.style.width=c+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(f){mxEvent.getSource(f)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var R=EditorUi.prototype.init;EditorUi.prototype.init=function(){function T(ja,oa,qa){var ra=C.menus.get(ja),
-ua=O.addMenu(mxResources.get(ja),mxUtils.bind(this,function(){ua.classList.contains("mxDisabled")||ra.funct.apply(this,arguments)}),K);ua.className="geMenuItem";ua.style.display="inline-block";ua.style.boxSizing="border-box";ua.style.top="6px";ua.style.marginRight="6px";ua.style.height="30px";ua.style.paddingTop="6px";ua.style.paddingBottom="6px";ua.style.cursor="pointer";ua.setAttribute("title",mxResources.get(ja));C.menus.menuCreated(ra,ua,"geMenuItem");null!=qa?(ua.style.backgroundImage="url("+
-qa+")",ua.style.backgroundPosition="center center",ua.style.backgroundRepeat="no-repeat",ua.style.backgroundSize="24px 24px",ua.style.width="34px",ua.innerText=""):oa||(ua.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",ua.style.backgroundPosition="right 6px center",ua.style.backgroundRepeat="no-repeat",ua.style.paddingRight="22px");return ua}function c(ja,oa,qa,ra,ua,za){var Ba=document.createElement("a");Ba.className="geMenuItem";Ba.style.display="inline-block";Ba.style.boxSizing=
-"border-box";Ba.style.height="30px";Ba.style.padding="6px";Ba.style.position="relative";Ba.style.verticalAlign="top";Ba.style.top="0px";null!=C.statusContainer?L.insertBefore(Ba,C.statusContainer):L.appendChild(Ba);null!=za?(Ba.style.backgroundImage="url("+za+")",Ba.style.backgroundPosition="center center",Ba.style.backgroundRepeat="no-repeat",Ba.style.backgroundSize="24px 24px",Ba.style.width="34px"):mxUtils.write(Ba,ja);mxEvent.addListener(Ba,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,
-function(Ca){Ca.preventDefault()}));mxEvent.addListener(Ba,"click",function(Ca){"disabled"!=Ba.getAttribute("disabled")&&oa(Ca);mxEvent.consume(Ca)});null==qa&&(Ba.style.marginRight="4px");null!=ra&&Ba.setAttribute("title",ra);null!=ua&&(ja=function(){ua.isEnabled()?(Ba.removeAttribute("disabled"),Ba.style.cursor="pointer"):(Ba.setAttribute("disabled","disabled"),Ba.style.cursor="default")},ua.addListener("stateChanged",ja),I.addListener("enabledChanged",ja),ja());return Ba}function f(ja,oa,qa){qa=
-document.createElement("div");qa.className="geMenuItem";qa.style.display="inline-block";qa.style.verticalAlign="top";qa.style.marginRight="6px";qa.style.padding="0 4px 0 4px";qa.style.height="30px";qa.style.position="relative";qa.style.top="0px";for(var ra=0;ra<ja.length;ra++)null!=ja[ra]&&(ja[ra].style.margin="0px",ja[ra].style.boxShadow="none",qa.appendChild(ja[ra]));null!=oa&&mxUtils.setOpacity(qa,oa);null!=C.statusContainer?L.insertBefore(qa,C.statusContainer):L.appendChild(qa);return qa}function k(){for(var ja=
-L.firstChild;null!=ja;){var oa=ja.nextSibling;"geMenuItem"!=ja.className&&"geItem"!=ja.className||ja.parentNode.removeChild(ja);ja=oa}K=L.firstChild;m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;ja=1E3>m;var qa=null;ja||(qa=T("diagram"));oa=ja?T("diagram",null,Editor.menuImage):null;null!=oa&&(qa=oa);f([qa,c(mxResources.get("shapes"),C.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),C.actions.get("image"),ja?Editor.shapesImage:null),c(mxResources.get("format"),
-C.actions.get("format").funct,null,mxResources.get("format")+" ("+C.actions.get("format").shortcut+")",C.actions.get("image"),ja?Editor.formatImage:null)],ja?60:null);oa=T("insert",!0,ja?ca:null);f([oa,c(mxResources.get("delete"),C.actions.get("delete").funct,null,mxResources.get("delete"),C.actions.get("delete"),ja?Editor.trashImage:null)],ja?60:null);I.isEnabled()||oa.classList.add("mxDisabled");411<=m&&(f([U,J],60),520<=m&&f([V,640<=m?c("",fa.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+
-" +)",fa,Editor.zoomInImage):null,640<=m?c("",Z.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",Z,Editor.zoomOutImage):null],60))}R.apply(this,arguments);var A=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=A&&(A.classList.add("geSimple"),A.classList.add("geMinimal"));A=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);var z=document.createElement("div");z.style.cssText="position:absolute;left:0px;right:0px;top:0px;overflow-y:auto;overflow-x:hidden;";
-z.style.bottom=A?"32px":"0px";this.sidebar=this.createSidebar(z);if(1E3<=m||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])g(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search"));EditorUi.windowed&&1E3<=m&&(b(this,!0),this.formatWindow.window.setVisible(!0));var C=this,I=C.editor.graph;C.toolbar=this.createToolbar(C.createDiv("geToolbar"));
-C.defaultLibraryName=mxResources.get("untitledLibrary");var L=document.createElement("div");L.className="geMenubarContainer";var K=null,O=new Menubar(C,L);C.statusContainer=C.createStatusContainer();C.statusContainer.style.position="relative";C.statusContainer.style.maxWidth="";C.statusContainer.style.cursor="default";var da=C.hideCurrentMenu;C.hideCurrentMenu=function(){da.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var ea=C.descriptorChanged;C.descriptorChanged=function(){ea.apply(this,
-arguments);var ja=C.getCurrentFile();if(null!=ja&&null!=ja.getTitle()){var oa=ja.getMode();"google"==oa?oa="googleDrive":"github"==oa?oa="gitHub":"gitlab"==oa?oa="gitLab":"onedrive"==oa&&(oa="oneDrive");oa=mxResources.get(oa);L.setAttribute("title",ja.getTitle()+(null!=oa?" ("+oa+")":""))}else L.removeAttribute("title")};C.setStatusText(C.editor.getStatus());L.appendChild(C.statusContainer);C.buttonContainer=document.createElement("div");C.buttonContainer.style.cssText="display:flex;justify-content:flex-end;padding-right:10px;gap:6px;white-space:nowrap;background-color:inherit;align-items:center;min-width:0;margin-left:auto;";
-L.appendChild(C.buttonContainer);C.menubarContainer=C.buttonContainer;C.tabContainer=document.createElement("div");C.tabContainer.className="geTabContainer geTabItem";C.tabContainer.style.cssText="position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;visibility:hidden;";A=C.diagramContainer.parentNode;z=document.createElement("div");z.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";C.diagramContainer.style.top="47px";var ca=Editor.addBoxImage;
-if(null!=C.hoverIcons){var W=C.hoverIcons.update;C.hoverIcons.update=function(){I.freehand.isDrawing()||W.apply(this,arguments)}}if(null!=I.freehand){var ma=I.freehand.createStyle;I.freehand.createStyle=function(ja){return ma.apply(this,arguments)+"sketch=0;"}}C.editor.addListener("statusChanged",mxUtils.bind(this,function(){C.setStatusText(C.editor.getStatus())}));C.setStatusText(C.editor.getStatus());var la=C.menus.get("viewZoom");if(null!=la){var Y=function(ja){if(mxEvent.isAltDown(ja))C.hideCurrentMenu(),
-C.actions.get("customZoom").funct(),mxEvent.consume(ja);else if("geMenuItem"==mxEvent.getSource(ja).className||mxEvent.isShiftDown(ja))C.hideCurrentMenu(),C.actions.get("smartFit").funct(),mxEvent.consume(ja)},fa=C.actions.get("zoomIn"),Z=C.actions.get("zoomOut"),l=C.actions.get("resetView"),u=C.actions.get("undo"),H=C.actions.get("redo"),U=c("",u.funct,null,mxResources.get("undo")+" ("+u.shortcut+")",u,Editor.undoImage),J=c("",H.funct,null,mxResources.get("redo")+" ("+H.shortcut+")",H,Editor.redoImage),
-V=c("",Y,!0,mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)",l,Editor.zoomFitImage);L.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";var aa=O.addMenu("100%",la.funct);aa.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)");aa.className="geTabItem";aa.style.height=C.tabContainerHeight+"px";aa.style.position="absolute";aa.style.display="0"!=urlParams.pages?"flex":"none";aa.style.alignItems=
-"center";aa.style.justifyContent="center";aa.style.paddingRight="11px";aa.style.whiteSpace="nowrap";aa.style.overflow="hidden";aa.style.fontSize="11px";aa.style.width="51px";aa.style.right="0px";aa.style.bottom="0px";aa.style.boxSizing="content-box";aa.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";aa.style.backgroundPosition="right 6px top 15px";aa.style.backgroundRepeat="no-repeat";aa.style.backgroundSize="10px";aa.style.zIndex="1";z.appendChild(aa);(function(ja){mxEvent.addListener(ja,
-"click",Y);var oa=mxUtils.bind(this,function(qa,ra,ua){ja.innerText="";mxUtils.write(ja,Math.round(100*C.editor.graph.view.scale*(null!=ua?ua:1))+"%")});C.editor.graph.view.addListener(mxEvent.EVENT_SCALE,oa);C.editor.addListener("resetGraphView",oa);C.editor.addListener("pageSelected",oa);C.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(qa,ra){oa(qa,ra,ra.getProperty("factor"))}))})(aa);var ba=C.setGraphEnabled;C.setGraphEnabled=function(){ba.apply(this,arguments);null!=this.tabContainer&&
-(aa.style.visibility=this.tabContainer.style.visibility,this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}z.appendChild(L);z.appendChild(C.diagramContainer);A.appendChild(z);C.updateTabContainer();!EditorUi.windowed&&1E3<=m&&b(this,!0);z.appendChild(C.tabContainer);k();C.addListener("lockedChanged",k);mxEvent.addListener(window,"resize",function(){k();null!=C.sidebarWindow&&C.sidebarWindow.window.fit();null!=
-C.formatWindow&&C.formatWindow.window.fit();null!=C.actions.outlineWindow&&C.actions.outlineWindow.window.fit();null!=C.actions.layersWindow&&C.actions.layersWindow.window.fit();null!=C.menus.chatWindow&&C.menus.chatWindow.window.fit();null!=C.menus.tagsWindow&&C.menus.tagsWindow.window.fit();null!=C.menus.findWindow&&C.menus.findWindow.window.fit();null!=C.menus.findReplaceWindow&&C.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,v,p,B){this.file=b;this.id=e;this.content=g;this.modifiedDate=m;this.createdDate=v;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,v){e()};DrawioComment.prototype.editComment=function(b,e,g){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DrawioUser=function(b,e,g,m,v){this.id=b;this.email=e;this.displayName=g;this.pictureUrl=m;this.locale=v};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.\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;
+f.style.left="0px"):(f.parentNode.appendChild(T.sidebarElt),f.style.left=T.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var m=0;try{m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}catch(T){}Menus.prototype.autoPopup=!1;mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');
+mxOutline.prototype.sizerImage=null;mxConstants.VERTEX_SELECTION_COLOR="#C0C0C0";mxConstants.EDGE_SELECTION_COLOR="#C0C0C0";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.DEFAULT_VALID_COLOR="#29b6f2";mxConstants.GUIDE_COLOR="#C0C0C0";mxConstants.OUTLINE_COLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#fff";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowSize="0.6";Graph.prototype.svgShadowBlur=
+"1.2";mxRubberband.prototype.defaultOpacity=50;HoverIcons.prototype.inactiveOpacity=25;Format.prototype.showCloseButton=!1;EditorUi.prototype.closableScratchpad=!1;EditorUi.prototype.toolbarHeight=46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var v=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(T){v.apply(this,arguments);
+null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var p=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){p.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var A=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(T,c){null!=c.shortcut&&900>m&&!mxClient.IS_IOS?T.firstChild.nextSibling.setAttribute("title",c.shortcut):
+A.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(T){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=T?T:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};var G=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();G.apply(this,arguments)};var S=EditorUi.prototype.setGraphEnabled;
+EditorUi.prototype.setGraphEnabled=function(T){S.apply(this,arguments);if(T){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=c&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=c&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};
+var F=Menus.prototype.init;Menus.prototype.init=function(){F.apply(this,arguments);var T=this.editorUi;EditorUi.enablePlantUml&&!T.isOffline()&&T.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var k=new ParseDialog(T,mxResources.get("plantUml")+"...","plantUml");T.showDialog(k.container,620,420,!0,!1);k.init()}));T.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var k=new ParseDialog(T,mxResources.get("mermaid")+"...","mermaid");T.showDialog(k.container,
+620,420,!0,!1);k.init()}));var c="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),f=function(k,B,z,C){k.addItem(z,null,mxUtils.bind(this,function(){var I=new CreateGraphDialog(T,z,C);T.showDialog(I.container,620,420,!0,!1);I.init()}),B)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(k,B){for(var z=0;z<c.length;z++)"-"==c[z]?k.addSeparator(B):f(k,B,mxResources.get(c[z])+"...",c[z])})))};EditorUi.prototype.installFormatToolbar=function(T){var c=
+this.editor.graph,f=document.createElement("div");f.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(k,B){0<c.getSelectionCount()?(T.appendChild(f),f.innerHTML="Selected: "+c.getSelectionCount()):null!=f.parentNode&&f.parentNode.removeChild(f)}))};var P=!1;EditorUi.prototype.initFormatWindow=
+function(){if(!P&&null!=this.formatWindow){P=!0;var T=this.formatWindow.window.toggleMinimized,c=240;this.formatWindow.window.toggleMinimized=function(){T.apply(this,arguments);this.minimized?(c=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+c-140+"px"):(this.div.style.width=c+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};
+mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(f){mxEvent.getSource(f)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var R=EditorUi.prototype.init;EditorUi.prototype.init=function(){function T(ja,oa,qa){var ra=C.menus.get(ja),ua=O.addMenu(mxResources.get(ja),mxUtils.bind(this,function(){ua.classList.contains("mxDisabled")||ra.funct.apply(this,arguments)}),K);ua.className="geMenuItem";ua.style.display="inline-block";ua.style.boxSizing=
+"border-box";ua.style.top="6px";ua.style.marginRight="6px";ua.style.height="30px";ua.style.paddingTop="6px";ua.style.paddingBottom="6px";ua.style.cursor="pointer";ua.setAttribute("title",mxResources.get(ja));C.menus.menuCreated(ra,ua,"geMenuItem");null!=qa?(ua.style.backgroundImage="url("+qa+")",ua.style.backgroundPosition="center center",ua.style.backgroundRepeat="no-repeat",ua.style.backgroundSize="24px 24px",ua.style.width="34px",ua.innerText=""):oa||(ua.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+
+")",ua.style.backgroundPosition="right 6px center",ua.style.backgroundRepeat="no-repeat",ua.style.paddingRight="22px");return ua}function c(ja,oa,qa,ra,ua,za){var Ba=document.createElement("a");Ba.className="geMenuItem";Ba.style.display="inline-block";Ba.style.boxSizing="border-box";Ba.style.height="30px";Ba.style.padding="6px";Ba.style.position="relative";Ba.style.verticalAlign="top";Ba.style.top="0px";null!=C.statusContainer?L.insertBefore(Ba,C.statusContainer):L.appendChild(Ba);null!=za?(Ba.style.backgroundImage=
+"url("+za+")",Ba.style.backgroundPosition="center center",Ba.style.backgroundRepeat="no-repeat",Ba.style.backgroundSize="24px 24px",Ba.style.width="34px"):mxUtils.write(Ba,ja);mxEvent.addListener(Ba,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(Ca){Ca.preventDefault()}));mxEvent.addListener(Ba,"click",function(Ca){"disabled"!=Ba.getAttribute("disabled")&&oa(Ca);mxEvent.consume(Ca)});null==qa&&(Ba.style.marginRight="4px");null!=ra&&Ba.setAttribute("title",ra);null!=ua&&(ja=
+function(){ua.isEnabled()?(Ba.removeAttribute("disabled"),Ba.style.cursor="pointer"):(Ba.setAttribute("disabled","disabled"),Ba.style.cursor="default")},ua.addListener("stateChanged",ja),I.addListener("enabledChanged",ja),ja());return Ba}function f(ja,oa,qa){qa=document.createElement("div");qa.className="geMenuItem";qa.style.display="inline-block";qa.style.verticalAlign="top";qa.style.marginRight="6px";qa.style.padding="0 4px 0 4px";qa.style.height="30px";qa.style.position="relative";qa.style.top=
+"0px";for(var ra=0;ra<ja.length;ra++)null!=ja[ra]&&(ja[ra].style.margin="0px",ja[ra].style.boxShadow="none",qa.appendChild(ja[ra]));null!=oa&&mxUtils.setOpacity(qa,oa);null!=C.statusContainer?L.insertBefore(qa,C.statusContainer):L.appendChild(qa);return qa}function k(){for(var ja=L.firstChild;null!=ja;){var oa=ja.nextSibling;"geMenuItem"!=ja.className&&"geItem"!=ja.className||ja.parentNode.removeChild(ja);ja=oa}K=L.firstChild;m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
+ja=1E3>m;var qa=null;ja||(qa=T("diagram"));oa=ja?T("diagram",null,Editor.menuImage):null;null!=oa&&(qa=oa);f([qa,c(mxResources.get("shapes"),C.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),C.actions.get("image"),ja?Editor.shapesImage:null),c(mxResources.get("format"),C.actions.get("format").funct,null,mxResources.get("format")+" ("+C.actions.get("format").shortcut+")",C.actions.get("image"),ja?Editor.formatImage:null)],ja?60:null);oa=T("insert",!0,ja?ca:null);f([oa,c(mxResources.get("delete"),
+C.actions.get("delete").funct,null,mxResources.get("delete"),C.actions.get("delete"),ja?Editor.trashImage:null)],ja?60:null);I.isEnabled()||oa.classList.add("mxDisabled");411<=m&&(f([U,J],60),520<=m&&f([W,640<=m?c("",fa.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",fa,Editor.zoomInImage):null,640<=m?c("",Z.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",Z,Editor.zoomOutImage):null],60))}R.apply(this,arguments);var B=mxUtils.isAncestorNode(document.body,this.container)?
+this.container:this.editor.graph.container;null!=B&&(B.classList.add("geSimple"),B.classList.add("geMinimal"));B=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);var z=document.createElement("div");z.style.cssText="position:absolute;left:0px;right:0px;top:0px;overflow-y:auto;overflow-x:hidden;";z.style.bottom=B?"32px":"0px";this.sidebar=this.createSidebar(z);if(1E3<=m||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])g(this,!0),null!=this.sidebar&&
+null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search"));EditorUi.windowed&&1E3<=m&&(b(this,!0),this.formatWindow.window.setVisible(!0));var C=this,I=C.editor.graph;C.toolbar=this.createToolbar(C.createDiv("geToolbar"));C.defaultLibraryName=mxResources.get("untitledLibrary");var L=document.createElement("div");L.className="geMenubarContainer";var K=null,O=new Menubar(C,L);C.statusContainer=C.createStatusContainer();
+C.statusContainer.style.position="relative";C.statusContainer.style.maxWidth="";C.statusContainer.style.cursor="default";var da=C.hideCurrentMenu;C.hideCurrentMenu=function(){da.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var ea=C.descriptorChanged;C.descriptorChanged=function(){ea.apply(this,arguments);var ja=C.getCurrentFile();if(null!=ja&&null!=ja.getTitle()){var oa=ja.getMode();"google"==oa?oa="googleDrive":"github"==oa?oa="gitHub":"gitlab"==oa?oa="gitLab":"onedrive"==
+oa&&(oa="oneDrive");oa=mxResources.get(oa);L.setAttribute("title",ja.getTitle()+(null!=oa?" ("+oa+")":""))}else L.removeAttribute("title")};C.setStatusText(C.editor.getStatus());L.appendChild(C.statusContainer);C.buttonContainer=document.createElement("div");C.buttonContainer.style.cssText="display:flex;justify-content:flex-end;padding-right:10px;gap:6px;white-space:nowrap;background-color:inherit;align-items:center;min-width:0;margin-left:auto;";L.appendChild(C.buttonContainer);C.menubarContainer=
+C.buttonContainer;C.tabContainer=document.createElement("div");C.tabContainer.className="geTabContainer geTabItem";C.tabContainer.style.cssText="position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;visibility:hidden;";B=C.diagramContainer.parentNode;z=document.createElement("div");z.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";C.diagramContainer.style.top="47px";var ca=Editor.addBoxImage;if(null!=C.hoverIcons){var V=C.hoverIcons.update;
+C.hoverIcons.update=function(){I.freehand.isDrawing()||V.apply(this,arguments)}}if(null!=I.freehand){var ma=I.freehand.createStyle;I.freehand.createStyle=function(ja){return ma.apply(this,arguments)+"sketch=0;"}}C.editor.addListener("statusChanged",mxUtils.bind(this,function(){C.setStatusText(C.editor.getStatus())}));C.setStatusText(C.editor.getStatus());var la=C.menus.get("viewZoom");if(null!=la){var Y=function(ja){if(mxEvent.isAltDown(ja))C.hideCurrentMenu(),C.actions.get("customZoom").funct(),
+mxEvent.consume(ja);else if("geMenuItem"==mxEvent.getSource(ja).className||mxEvent.isShiftDown(ja))C.hideCurrentMenu(),C.actions.get("smartFit").funct(),mxEvent.consume(ja)},fa=C.actions.get("zoomIn"),Z=C.actions.get("zoomOut"),l=C.actions.get("resetView"),u=C.actions.get("undo"),H=C.actions.get("redo"),U=c("",u.funct,null,mxResources.get("undo")+" ("+u.shortcut+")",u,Editor.undoImage),J=c("",H.funct,null,mxResources.get("redo")+" ("+H.shortcut+")",H,Editor.redoImage),W=c("",Y,!0,mxResources.get("fit")+
+" ("+Editor.ctrlKey+"+H)",l,Editor.zoomFitImage);L.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";var aa=O.addMenu("100%",la.funct);aa.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)");aa.className="geTabItem";aa.style.height=C.tabContainerHeight+"px";aa.style.position="absolute";aa.style.display="0"!=urlParams.pages?"flex":"none";aa.style.alignItems="center";aa.style.justifyContent=
+"center";aa.style.paddingRight="11px";aa.style.whiteSpace="nowrap";aa.style.overflow="hidden";aa.style.fontSize="11px";aa.style.width="51px";aa.style.right="0px";aa.style.bottom="0px";aa.style.boxSizing="content-box";aa.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";aa.style.backgroundPosition="right 6px top 15px";aa.style.backgroundRepeat="no-repeat";aa.style.backgroundSize="10px";aa.style.zIndex="1";z.appendChild(aa);(function(ja){mxEvent.addListener(ja,"click",Y);var oa=mxUtils.bind(this,
+function(qa,ra,ua){ja.innerText="";mxUtils.write(ja,Math.round(100*C.editor.graph.view.scale*(null!=ua?ua:1))+"%")});C.editor.graph.view.addListener(mxEvent.EVENT_SCALE,oa);C.editor.addListener("resetGraphView",oa);C.editor.addListener("pageSelected",oa);C.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(qa,ra){oa(qa,ra,ra.getProperty("factor"))}))})(aa);var ba=C.setGraphEnabled;C.setGraphEnabled=function(){ba.apply(this,arguments);null!=this.tabContainer&&(aa.style.visibility=this.tabContainer.style.visibility,
+this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}z.appendChild(L);z.appendChild(C.diagramContainer);B.appendChild(z);C.updateTabContainer();!EditorUi.windowed&&1E3<=m&&b(this,!0);z.appendChild(C.tabContainer);k();C.addListener("lockedChanged",k);mxEvent.addListener(window,"resize",function(){k();null!=C.sidebarWindow&&C.sidebarWindow.window.fit();null!=C.formatWindow&&C.formatWindow.window.fit();null!=C.actions.outlineWindow&&
+C.actions.outlineWindow.window.fit();null!=C.actions.layersWindow&&C.actions.layersWindow.window.fit();null!=C.menus.chatWindow&&C.menus.chatWindow.window.fit();null!=C.menus.tagsWindow&&C.menus.tagsWindow.window.fit();null!=C.menus.findWindow&&C.menus.findWindow.window.fit();null!=C.menus.findReplaceWindow&&C.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,v,p,A){this.file=b;this.id=e;this.content=g;this.modifiedDate=m;this.createdDate=v;this.isResolved=p;this.user=A;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,g,m,v){e()};DrawioComment.prototype.editComment=function(b,e,g){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DrawioUser=function(b,e,g,m,v){this.id=b;this.email=e;this.displayName=g;this.pictureUrl=m;this.locale=v};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.\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=
@@ -4184,16 +4199,16 @@ null!=this.graphConfig["allow-zoom-in"]?this.graphConfig["allow-zoom-in"]:this.a
this.toolbarItems=null!=this.graphConfig.toolbar?this.graphConfig.toolbar.split(" "):[];this.zoomEnabled=0<=mxUtils.indexOf(this.toolbarItems,"zoom");this.layersEnabled=0<=mxUtils.indexOf(this.toolbarItems,"layers");this.tagsEnabled=0<=mxUtils.indexOf(this.toolbarItems,"tags");this.lightboxEnabled=0<=mxUtils.indexOf(this.toolbarItems,"lightbox");this.lightboxClickEnabled=0!=this.graphConfig.lightbox;this.initialOverflow=document.body.style.overflow;this.initialWidth=null!=b?b.style.width:null;this.widthIsEmpty=
null!=this.initialWidth?""==this.initialWidth:!0;this.currentPage=parseInt(this.graphConfig.page)||0;this.responsive=(null!=this.graphConfig.responsive?this.graphConfig.responsive:this.responsive)&&!this.zoomEnabled&&!mxClient.NO_FO&&!mxClient.IS_SF;this.pageId=this.graphConfig.pageId;this.editor=null;var m=this;"inline"==this.graphConfig["toolbar-position"]&&(this.minHeight+=this.toolbarHeight);if(null!=e&&(this.xmlDocument=e.ownerDocument,this.xmlNode=e,this.xml=mxUtils.getXml(e),null!=b)){var v=
mxUtils.bind(this,function(){this.graph=new Graph(b);this.graph.enableFlowAnimation=!0;this.installDarkModeListener();if(this.responsive&&this.graph.dialect==mxConstants.DIALECT_SVG){var G=this.graph.view.getDrawPane().ownerSVGElement;null!=this.graphConfig.border?G.style.padding=this.graphConfig.border+"px":""==b.style.padding&&(G.style.padding="8px");G.style.forcedColorAdjust="none";G.style.boxSizing="border-box";G.style.overflow="visible";this.graph.fit=function(){};this.graph.sizeDidChange=function(){var k=
-this.view.graphBounds,A=this.view.translate;G.setAttribute("viewBox",k.x+A.x-this.panDx+" "+(k.y+A.y-this.panDy)+" "+(k.width+1)+" "+(k.height+1));this.container.style.backgroundColor=G.style.backgroundColor;this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",k))}}this.graphConfig.move&&(this.graph.isMoveCellsEvent=function(k){return!0});this.lightboxClickEnabled&&(b.style.cursor="pointer");this.editor=new Editor(!0,null,null,this.graph);this.editor.editBlankUrl=this.editBlankUrl;this.graph.lightbox=
+this.view.graphBounds,B=this.view.translate;G.setAttribute("viewBox",k.x+B.x-this.panDx+" "+(k.y+B.y-this.panDy)+" "+(k.width+1)+" "+(k.height+1));this.container.style.backgroundColor=G.style.backgroundColor;this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",k))}}this.graphConfig.move&&(this.graph.isMoveCellsEvent=function(k){return!0});this.lightboxClickEnabled&&(b.style.cursor="pointer");this.editor=new Editor(!0,null,null,this.graph);this.editor.editBlankUrl=this.editBlankUrl;this.graph.lightbox=
!0;this.graph.centerZoom=!1;this.graph.autoExtend=!1;this.graph.autoScroll=!1;this.graph.setEnabled(!1);1==this.graphConfig["toolbar-nohide"]&&(this.editor.defaultGraphOverflow="visible");var S=this.editor.extractGraphModel(this.xmlNode,!0);if(null!=S&&S!=e)try{this.xml=mxUtils.getXml(S),this.xmlNode=S,this.xmlDocument=S.ownerDocument}catch(k){}this.graph.getImageFromBundles=function(k){return m.getImageUrl(k)};mxClient.IS_SVG&&this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement,null,!0);
-if("mxfile"==this.xmlNode.nodeName){var F=this.xmlNode.getElementsByTagName("diagram");if(0<F.length){if(null!=this.pageId)for(S=0;S<F.length;S++)if(this.pageId==F[S].getAttribute("id")){this.currentPage=S;break}var P=this.graph.getGlobalVariable;this.graph.getGlobalVariable=function(k){var A=F[m.currentPage];return"page"==k?A.getAttribute("name")||"Page-"+(m.currentPage+1):"pagenumber"==k?m.currentPage+1:"pagecount"==k?F.length:P.apply(this,arguments)}}}this.diagrams=[];var R=null;this.selectPage=
-function(k){this.handlingResize||(this.currentPage=mxUtils.mod(k,this.diagrams.length),this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage])))};this.selectPageById=function(k){k=this.getIndexById(k);var A=0<=k;A&&this.selectPage(k);return A};S=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=R&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),R=this.xmlNode)});var T=this.graph.setBackgroundImage;this.graph.setBackgroundImage=
-function(k){if(null!=k&&Graph.isPageLink(k.src)){var A=k.src,z=A.indexOf(",");0<z&&(z=m.getIndexById(A.substring(z+1)),0<=z&&(k=m.getImageForGraphModel(Editor.parseDiagramNode(m.diagrams[z])),k.originalSrc=A))}T.apply(this,arguments)};var c=this.graph.getGraphBounds;this.graph.getGraphBounds=function(k){var A=c.apply(this,arguments);k=this.backgroundImage;if(null!=k){var z=this.view.translate,C=this.view.scale;A=mxRectangle.fromRectangle(A);A.add(new mxRectangle((z.x+k.x)*C,(z.y+k.y)*C,k.width*C,
-k.height*C))}return A};this.addListener("xmlNodeChanged",S);S();urlParams.page=m.currentPage;S=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),this.graph.view.scale=this.graphConfig.zoom||1,S=this.setLayersVisible(),this.fireEvent(new mxEventObject("graphInitialized")),this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8),this.installBackgroundColorHandler(),GraphViewer.viewerInitialized(this)}finally{this.graph.getModel().endUpdate()}this.responsive||
+if("mxfile"==this.xmlNode.nodeName){var F=this.xmlNode.getElementsByTagName("diagram");if(0<F.length){if(null!=this.pageId)for(S=0;S<F.length;S++)if(this.pageId==F[S].getAttribute("id")){this.currentPage=S;break}var P=this.graph.getGlobalVariable;this.graph.getGlobalVariable=function(k){var B=F[m.currentPage];return"page"==k?B.getAttribute("name")||"Page-"+(m.currentPage+1):"pagenumber"==k?m.currentPage+1:"pagecount"==k?F.length:P.apply(this,arguments)}}}this.diagrams=[];var R=null;this.selectPage=
+function(k){this.handlingResize||(this.currentPage=mxUtils.mod(k,this.diagrams.length),this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage])))};this.selectPageById=function(k){k=this.getIndexById(k);var B=0<=k;B&&this.selectPage(k);return B};S=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=R&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),R=this.xmlNode)});var T=this.graph.setBackgroundImage;this.graph.setBackgroundImage=
+function(k){if(null!=k&&Graph.isPageLink(k.src)){var B=k.src,z=B.indexOf(",");0<z&&(z=m.getIndexById(B.substring(z+1)),0<=z&&(k=m.getImageForGraphModel(Editor.parseDiagramNode(m.diagrams[z])),k.originalSrc=B))}T.apply(this,arguments)};var c=this.graph.getGraphBounds;this.graph.getGraphBounds=function(k){var B=c.apply(this,arguments);k=this.backgroundImage;if(null!=k){var z=this.view.translate,C=this.view.scale;B=mxRectangle.fromRectangle(B);B.add(new mxRectangle((z.x+k.x)*C,(z.y+k.y)*C,k.width*C,
+k.height*C))}return B};this.addListener("xmlNodeChanged",S);S();urlParams.page=m.currentPage;S=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),this.graph.view.scale=this.graphConfig.zoom||1,S=this.setLayersVisible(),this.fireEvent(new mxEventObject("graphInitialized")),this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8),this.installBackgroundColorHandler(),GraphViewer.viewerInitialized(this)}finally{this.graph.getModel().endUpdate()}this.responsive||
(this.graph.panningHandler.isForcePanningEvent=function(k){return!mxEvent.isPopupTrigger(k.getEvent())&&"auto"==this.graph.container.style.overflow},this.graph.panningHandler.useLeftButtonForPanning=!0,this.graph.panningHandler.ignoreCell=!0,this.graph.panningHandler.usePopupTrigger=!1,this.graph.panningHandler.pinchEnabled=!1);this.graph.setPanning(!1);null!=this.graphConfig.toolbar?this.addToolbar():null!=this.graphConfig.title&&this.showTitleAsTooltip&&b.setAttribute("title",this.graphConfig.titleTooltip||
-this.graphConfig.title);this.responsive||this.addSizeHandler();!this.showLayers(this.graph)||this.forceCenter||this.layersEnabled&&!this.autoCrop||this.crop();this.addClickHandler(this.graph);this.graph.setTooltips(0!=this.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};null!=S&&this.setLayersVisible(S);this.graph.customLinkClicked=function(k,A){try{if(Graph.isPageLink(k)){var z=k.indexOf(",");m.selectPageById(k.substring(z+
-1))||alert(mxResources.get("pageNotFound")||"Page not found")}else{var C=this.getGraphBounds();this.handleCustomLink(k,A);C.equals(this.getGraphBounds())||m.crop()}}catch(I){alert(I.message)}return!0};var f=this.graph.foldTreeCell;this.graph.foldTreeCell=mxUtils.bind(this,function(){this.treeCellFolded=!0;return f.apply(this.graph,arguments)});this.fireEvent(new mxEventObject("render"))});g=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(this.checkVisibleState&&
-0==b.offsetWidth&&null==this.getAncestorDetails(b)&&"undefined"!==typeof g){var p=this.getObservableParent(b),B=new g(mxUtils.bind(this,function(G){0<b.offsetWidth&&(B.disconnect(),v())}));B.observe(p,{attributes:!0})}else v()}};
+this.graphConfig.title);this.responsive||this.addSizeHandler();!this.showLayers(this.graph)||this.forceCenter||this.layersEnabled&&!this.autoCrop||this.crop();this.addClickHandler(this.graph);this.graph.setTooltips(0!=this.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};null!=S&&this.setLayersVisible(S);this.graph.customLinkClicked=function(k,B){try{if(Graph.isPageLink(k)){var z=k.indexOf(",");m.selectPageById(k.substring(z+
+1))||alert(mxResources.get("pageNotFound")||"Page not found")}else{var C=this.getGraphBounds();this.handleCustomLink(k,B);C.equals(this.getGraphBounds())||m.crop()}}catch(I){alert(I.message)}return!0};var f=this.graph.foldTreeCell;this.graph.foldTreeCell=mxUtils.bind(this,function(){this.treeCellFolded=!0;return f.apply(this.graph,arguments)});this.fireEvent(new mxEventObject("render"))});g=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(this.checkVisibleState&&
+0==b.offsetWidth&&null==this.getAncestorDetails(b)&&"undefined"!==typeof g){var p=this.getObservableParent(b),A=new g(mxUtils.bind(this,function(G){0<b.offsetWidth&&(A.disconnect(),v())}));A.observe(p,{attributes:!0})}else v()}};
GraphViewer.prototype.installBackgroundColorHandler=function(){var b=this.graph;if(null!=b){null!=GraphViewer.shapeBackgroundColor&&(b.shapeBackgroundColor=GraphViewer.shapeBackgroundColor);b.defaultPageBackgroundColor="transparent";b.diagramBackgroundColor="transparent";b.transparentBackground=!1;var e=b.background,g=mxUtils.bind(this,function(m){"none"==b.getAdaptiveColors()&&null==e&&(this.isDarkMode()?b.background="#ffffff":b.background=null,m&&b.view.validateBackground())});this.addListener("graphChanged",
function(){e=b.background;g(!0)});this.addListener("darkModeChanged",function(){g(!0)});g(!1)}};GraphViewer.prototype.installDarkModeListener=function(){null!=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(){this.darkModeChanged();this.fireEvent(new mxEventObject("darkModeChanged"))}));this.darkModeChanged()};
GraphViewer.prototype.darkModeChanged=function(){if(null!=this.graph){var b=this.graph.container,e=this.isDarkMode();e?b.classList.add("geDarkMode"):b.classList.remove("geDarkMode");b.style.colorScheme=e?"dark":"light"}};GraphViewer.prototype.getAncestorDetails=function(b){for(;null!=b;){if("DETAILS"==b.nodeName)return b;b=b.parentNode}return null};
@@ -4210,21 +4225,21 @@ this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWi
(this.allowZoomIn?null:1),this.graph.fit(null,null,null,null,null,!0),(this.center||0==this.graphConfig.resize&&""!=b.style.height)&&this.graph.center(),this.graph.maxFitScale=null,0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,this.graph.getGraphBounds().height+2*this.graph.border+1)),this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale},v=S,window.setTimeout(mxUtils.bind(this,function(){this.handlingResize=
!1}),0))});GraphViewer.useResizeSensor&&(9>=document.documentMode?(mxEvent.addListener(window,"resize",m),this.graph.addListener("size",m)):new ResizeSensor(this.graph.container,m));if(this.graphConfig.resize||(this.zoomEnabled||!this.autoFit)&&0!=this.graphConfig.resize)this.graph.minimumContainerSize=new mxRectangle(0,0,this.minWidth,this.minHeight),this.graph.resizeContainer=!0;else if(!this.widthIsEmpty||""!=b.style.height&&this.autoFit||this.updateContainerWidth(b,e.width+2*this.graph.border),
0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,e.height+2*this.graph.border+1)),!this.zoomEnabled&&this.autoFit){var p=v=null;m=mxUtils.bind(this,function(){window.clearTimeout(p);this.handlingResize||(p=window.setTimeout(mxUtils.bind(this,this.fitGraph),100))});GraphViewer.useResizeSensor&&(9>=document.documentMode?mxEvent.addListener(window,"resize",m):new ResizeSensor(this.graph.container,m))}else 9>=document.documentMode||this.graph.addListener("size",
-m);var B=mxUtils.bind(this,function(G){var S=b.style.minWidth;this.widthIsEmpty&&(b.style.minWidth="100%");var F=null!=this.graphConfig["max-height"]?this.graphConfig["max-height"]:""!=b.style.height&&this.autoFit?b.offsetHeight:void 0;0<b.offsetWidth&&null==G&&this.allowZoomOut&&(this.allowZoomIn||e.width+2*this.graph.border>b.offsetWidth||e.height+2*this.graph.border>F)?(G=null,null!=F&&e.height+2*this.graph.border>F-2&&(G=(F-2*this.graph.border-2)/e.height),this.fitGraph(G)):this.widthIsEmpty||
-null!=G||0!=this.graphConfig.resize||""==b.style.height?(G=null!=G?G:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-e.x/this.graph.view.scale)+G.x,Math.floor(this.graph.border-e.y/this.graph.view.scale)+G.y),v=b.offsetWidth):this.graph.center((!this.widthIsEmpty||e.width<this.minWidth)&&1!=this.graphConfig.resize);b.style.minWidth=S});8==document.documentMode?window.setTimeout(B,0):B();this.positionGraph=function(G){e=this.graph.getGraphBounds();v=null;B(G)}};
+m);var A=mxUtils.bind(this,function(G){var S=b.style.minWidth;this.widthIsEmpty&&(b.style.minWidth="100%");var F=null!=this.graphConfig["max-height"]?this.graphConfig["max-height"]:""!=b.style.height&&this.autoFit?b.offsetHeight:void 0;0<b.offsetWidth&&null==G&&this.allowZoomOut&&(this.allowZoomIn||e.width+2*this.graph.border>b.offsetWidth||e.height+2*this.graph.border>F)?(G=null,null!=F&&e.height+2*this.graph.border>F-2&&(G=(F-2*this.graph.border-2)/e.height),this.fitGraph(G)):this.widthIsEmpty||
+null!=G||0!=this.graphConfig.resize||""==b.style.height?(G=null!=G?G:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-e.x/this.graph.view.scale)+G.x,Math.floor(this.graph.border-e.y/this.graph.view.scale)+G.y),v=b.offsetWidth):this.graph.center((!this.widthIsEmpty||e.width<this.minWidth)&&1!=this.graphConfig.resize);b.style.minWidth=S});8==document.documentMode?window.setTimeout(A,0):A();this.positionGraph=function(G){e=this.graph.getGraphBounds();v=null;A(G)}};
GraphViewer.prototype.crop=function(){var b=this.graph,e=b.getGraphBounds(),g=b.border,m=b.view.scale;b.view.setTranslate(null!=e.x?Math.floor(b.view.translate.x-e.x/m+g):g,null!=e.y?Math.floor(b.view.translate.y-e.y/m+g):g)};GraphViewer.prototype.updateContainerWidth=function(b,e){b.style.width=e+"px"};GraphViewer.prototype.updateContainerHeight=function(b,e){if(this.forceCenter||this.zoomEnabled||!this.autoFit||"BackCompat"==document.compatMode||8==document.documentMode)b.style.height=e+"px"};
-GraphViewer.prototype.showLayers=function(b,e){var g=this.graphConfig.layers;g=null!=g&&0<g.length?g.split(" "):[];var m=this.graphConfig.layerIds,v=null!=m&&0<m.length,p=!1;if(0<g.length||v||null!=e){e=null!=e?e.getModel():null;b=b.getModel();b.beginUpdate();try{var B=b.getChildCount(b.root);if(null==e){e=!1;p={};if(v)for(var G=0;G<m.length;G++){var S=b.getCell(m[G]);null!=S&&(e=!0,p[S.id]=!0)}else for(G=0;G<g.length;G++)S=b.getChildAt(b.root,parseInt(g[G])),null!=S&&(e=!0,p[S.id]=!0);for(G=0;e&&
-G<B;G++)S=b.getChildAt(b.root,G),b.setVisible(S,p[S.id]||!1)}else for(G=0;G<B;G++)b.setVisible(b.getChildAt(b.root,G),e.isVisible(e.getChildAt(e.root,G)))}finally{b.endUpdate()}p=!0}return p};
+GraphViewer.prototype.showLayers=function(b,e){var g=this.graphConfig.layers;g=null!=g&&0<g.length?g.split(" "):[];var m=this.graphConfig.layerIds,v=null!=m&&0<m.length,p=!1;if(0<g.length||v||null!=e){e=null!=e?e.getModel():null;b=b.getModel();b.beginUpdate();try{var A=b.getChildCount(b.root);if(null==e){e=!1;p={};if(v)for(var G=0;G<m.length;G++){var S=b.getCell(m[G]);null!=S&&(e=!0,p[S.id]=!0)}else for(G=0;G<g.length;G++)S=b.getChildAt(b.root,parseInt(g[G])),null!=S&&(e=!0,p[S.id]=!0);for(G=0;e&&
+G<A;G++)S=b.getChildAt(b.root,G),b.setVisible(S,p[S.id]||!1)}else for(G=0;G<A;G++)b.setVisible(b.getChildAt(b.root,G),e.isVisible(e.getChildAt(e.root,G)))}finally{b.endUpdate()}p=!0}return p};
GraphViewer.prototype.addToolbar=function(){var b=this.graph.container;"bottom"==this.graphConfig["toolbar-position"]?b.style.marginBottom=this.toolbarHeight+"px":"inline"!=this.graphConfig["toolbar-position"]&&(b.style.marginTop=this.toolbarHeight+"px");var e=b.ownerDocument.createElement("div");e.style.display="flex";e.style.alignItems="center";e.style.position="absolute";e.style.overflow="hidden";e.style.boxSizing="border-box";e.style.whiteSpace="nowrap";e.style.textAlign="left";e.style.zIndex=
this.toolbarZIndex;e.style.backgroundColor="light-dark(#eeeeee, "+GraphViewer.darkBackgroundColor+")";e.style.height=this.toolbarHeight+"px";var g=mxUtils.bind(this,function(){this.isDarkMode()?(e.classList.add("geDarkMode"),e.style.colorScheme="dark"):(e.classList.remove("geDarkMode"),e.style.colorScheme="light")});this.addListener("darkModeChanged",g);this.toolbar=e;g();if("inline"==this.graphConfig["toolbar-position"]){mxUtils.setPrefixedStyle(e.style,"transition","opacity 100ms ease-in-out");
-mxUtils.setOpacity(e,30);var m=null,v=null,p=mxUtils.bind(this,function(ea){null!=m&&(window.clearTimeout(m),fadeThead=null);null!=v&&(window.clearTimeout(v),fadeThead2=null);m=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(e,0);m=null;v=window.setTimeout(mxUtils.bind(this,function(){e.style.display="none";v=null}),100)}),ea||200)}),B=mxUtils.bind(this,function(ea){null!=m&&(window.clearTimeout(m),fadeThead=null);null!=v&&(window.clearTimeout(v),fadeThead2=null);e.style.display=
-"";mxUtils.setOpacity(e,ea||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(ea){mxEvent.isTouchEvent(ea)||(B(30),p())}));mxEvent.addListener(e,mxClient.IS_POINTER?"pointermove":"mousemove",function(ea){mxEvent.consume(ea)});mxEvent.addListener(e,"mouseenter",mxUtils.bind(this,function(ea){B(100)}));mxEvent.addListener(e,"mousemove",mxUtils.bind(this,function(ea){B(100);mxEvent.consume(ea)}));mxEvent.addListener(e,"mouseleave",
-mxUtils.bind(this,function(ea){mxEvent.isTouchEvent(ea)||B(30)}));var G=this.graph,S=G.getTolerance();G.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(ea,ca){this.startX=ca.getGraphX();this.startY=ca.getGraphY();this.scrollLeft=G.container.scrollLeft;this.scrollTop=G.container.scrollTop},mouseMove:function(ea,ca){},mouseUp:function(ea,ca){mxEvent.isTouchEvent(ca.getEvent())&&Math.abs(this.scrollLeft-G.container.scrollLeft)<S&&Math.abs(this.scrollTop-G.container.scrollTop)<
-S&&Math.abs(this.startX-ca.getGraphX())<S&&Math.abs(this.startY-ca.getGraphY())<S&&(0<parseFloat(e.style.opacity||0)?p():B(30))}})}g=this.toolbarItems;for(var F=0,P=mxUtils.bind(this,function(ea,ca,W,ma){ea=this.createToolbarButton(ea,ca,W,ma);e.appendChild(ea);F++;return ea}),R=this.graph.getModel(),T=null,c=null,f=null,k=null,A=0;A<g.length;A++){var z=g[A];if("pages"==z){k=b.ownerDocument.createElement("div");k.style.display="inline-flex";k.style.position="relative";k.style.alignItems="center";
+mxUtils.setOpacity(e,30);var m=null,v=null,p=mxUtils.bind(this,function(ea){null!=m&&(window.clearTimeout(m),fadeThead=null);null!=v&&(window.clearTimeout(v),fadeThead2=null);m=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(e,0);m=null;v=window.setTimeout(mxUtils.bind(this,function(){e.style.display="none";v=null}),100)}),ea||200)}),A=mxUtils.bind(this,function(ea){null!=m&&(window.clearTimeout(m),fadeThead=null);null!=v&&(window.clearTimeout(v),fadeThead2=null);e.style.display=
+"";mxUtils.setOpacity(e,ea||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(ea){mxEvent.isTouchEvent(ea)||(A(30),p())}));mxEvent.addListener(e,mxClient.IS_POINTER?"pointermove":"mousemove",function(ea){mxEvent.consume(ea)});mxEvent.addListener(e,"mouseenter",mxUtils.bind(this,function(ea){A(100)}));mxEvent.addListener(e,"mousemove",mxUtils.bind(this,function(ea){A(100);mxEvent.consume(ea)}));mxEvent.addListener(e,"mouseleave",
+mxUtils.bind(this,function(ea){mxEvent.isTouchEvent(ea)||A(30)}));var G=this.graph,S=G.getTolerance();G.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(ea,ca){this.startX=ca.getGraphX();this.startY=ca.getGraphY();this.scrollLeft=G.container.scrollLeft;this.scrollTop=G.container.scrollTop},mouseMove:function(ea,ca){},mouseUp:function(ea,ca){mxEvent.isTouchEvent(ca.getEvent())&&Math.abs(this.scrollLeft-G.container.scrollLeft)<S&&Math.abs(this.scrollTop-G.container.scrollTop)<
+S&&Math.abs(this.startX-ca.getGraphX())<S&&Math.abs(this.startY-ca.getGraphY())<S&&(0<parseFloat(e.style.opacity||0)?p():A(30))}})}g=this.toolbarItems;for(var F=0,P=mxUtils.bind(this,function(ea,ca,V,ma){ea=this.createToolbarButton(ea,ca,V,ma);e.appendChild(ea);F++;return ea}),R=this.graph.getModel(),T=null,c=null,f=null,k=null,B=0;B<g.length;B++){var z=g[B];if("pages"==z){k=b.ownerDocument.createElement("div");k.style.display="inline-flex";k.style.position="relative";k.style.alignItems="center";
k.style.padding="4px";k.style.fontFamily=GraphViewer.cssFontFamily;k.style.fontSize="12px";k.style.cursor="default";k.style.color="light-dark(#000000, #ffffff)";mxUtils.setOpacity(k,70);var C=P(mxUtils.bind(this,function(){this.selectPage(this.currentPage-1)}),Editor.previousImage,mxResources.get("previousPage")||"Previous Page");C.style.borderRightStyle="none";C.style.paddingLeft="0px";C.style.paddingRight="0px";e.appendChild(k);var I=P(mxUtils.bind(this,function(){this.selectPage(this.currentPage+
1)}),Editor.nextImage,mxResources.get("nextPage")||"Next Page");I.style.paddingLeft="0px";I.style.paddingRight="0px";z=mxUtils.bind(this,function(){k.innerText="";mxUtils.write(k,this.currentPage+1+" / "+this.diagrams.length);k.style.display=1<this.diagrams.length?"inline-flex":"none";C.style.display=k.style.display;I.style.display=k.style.display});this.addListener("graphChanged",z);z()}else if("zoom"==z)this.zoomEnabled&&(P(mxUtils.bind(this,function(){this.graph.zoomOut()}),Editor.zoomOutImage,
mxResources.get("zoomOut")||"Zoom Out"),P(mxUtils.bind(this,function(){this.graph.zoomIn()}),Editor.zoomInImage,mxResources.get("zoomIn")||"Zoom In"),P(mxUtils.bind(this,function(){this.graph.view.scaleAndTranslate(this.graph.initialViewState.scale,this.graph.initialViewState.translate.x,this.graph.initialViewState.translate.y)}),Editor.zoomFitImage,mxResources.get("fit")||"Fit"));else if("layers"==z){if(this.layersEnabled){var L=P(mxUtils.bind(this,function(ea){if(null!=T)T.parentNode.removeChild(T),
-T=null;else{T=this.graph.createLayersDialog(mxUtils.bind(this,function(){if(this.autoCrop)this.crop();else if(this.autoOrigin){var W=this.graph.getGraphBounds(),ma=this.graph.view;0>W.x||0>W.y?(this.crop(),this.graph.originalViewState=this.graph.initialViewState,this.graph.initialViewState={translate:ma.translate.clone(),scale:ma.scale}):null!=this.graph.originalViewState&&0<W.x/ma.scale+this.graph.originalViewState.translate.x-ma.translate.x&&0<W.y/ma.scale+this.graph.originalViewState.translate.y-
+T=null;else{T=this.graph.createLayersDialog(mxUtils.bind(this,function(){if(this.autoCrop)this.crop();else if(this.autoOrigin){var V=this.graph.getGraphBounds(),ma=this.graph.view;0>V.x||0>V.y?(this.crop(),this.graph.originalViewState=this.graph.initialViewState,this.graph.initialViewState={translate:ma.translate.clone(),scale:ma.scale}):null!=this.graph.originalViewState&&0<V.x/ma.scale+this.graph.originalViewState.translate.x-ma.translate.x&&0<V.y/ma.scale+this.graph.originalViewState.translate.y-
ma.translate.y&&(ma.setTranslate(this.graph.originalViewState.translate.x,this.graph.originalViewState.translate.y),this.graph.originalViewState=null,this.graph.initialViewState={translate:ma.translate.clone(),scale:ma.scale})}}));mxEvent.addListener(T,"mouseleave",function(){T.parentNode.removeChild(T);T=null});ea=L.getBoundingClientRect();T.style.width="140px";T.style.padding="2px 0px 2px 0px";T.style.border="1px solid #d0d0d0";T.style.backgroundColor="#eee";T.style.fontFamily=GraphViewer.cssFontFamily;
T.style.fontSize="11px";T.style.overflowY="auto";T.style.maxHeight=this.graph.container.clientHeight-this.toolbarHeight-10+"px";T.style.zIndex=this.toolbarZIndex+1;T.style.color="#000";mxUtils.setOpacity(T,85);var ca=mxUtils.getDocumentScrollOrigin(document);T.style.left=ca.x+ea.left-1+"px";T.style.top=ca.y+ea.bottom-2+"px";this.isDarkMode()&&(T.style.filter="invert(93%) hue-rotate(180deg)");document.body.appendChild(T)}}),Editor.layersImage,mxResources.get("layers")||"Layers");R.addListener(mxEvent.CHANGE,
function(){L.style.display=1<R.getChildCount(R.root)?"inline-flex":"none"});L.style.display=1<R.getChildCount(R.root)?"inline-flex":"none"}}else if("tags"==z){if(this.tagsEnabled){var K=P(mxUtils.bind(this,function(ea){null==c&&(c=this.graph.createTagsDialog(mxUtils.bind(this,function(){return!0})),c.div.getElementsByTagName("div")[0].style.position="",c.div.style.maxHeight="160px",c.div.style.maxWidth="120px",c.div.style.padding="2px",c.div.style.overflow="auto",c.div.style.height="auto",c.div.style.position=
@@ -4233,8 +4248,8 @@ ea=K.getBoundingClientRect();var ca=mxUtils.getDocumentScrollOrigin(document);f.
"none"}}else"lightbox"==z?this.lightboxEnabled&&P(mxUtils.bind(this,function(){try{this.showLightbox()}catch(ea){alert(ea.message)}}),Editor.fullscreenImage,mxResources.get("fullscreen")||"Fullscreen"):null!=this.graphConfig["toolbar-buttons"]&&(z=this.graphConfig["toolbar-buttons"][z],null!=z&&(z.elem=P(null==z.enabled||z.enabled?z.handler:function(){},z.image,z.title,z.enabled)))}null!=this.graph.minimumContainerSize&&(this.graph.minimumContainerSize.width=34*F);null!=this.graphConfig.title&&(g=
b.ownerDocument.createElement("div"),g.style.display="inline-flex",g.style.position="relative",g.style.alignItems="center",g.style.padding="6px",g.style.fontFamily=GraphViewer.cssFontFamily,g.style.fontSize="12px",g.style.cursor="default",g.style.color="light-dark(#000000, #ffffff)",g.setAttribute("title",this.graphConfig.titleTooltip||this.graphConfig.title),mxUtils.write(g,this.graphConfig.title),mxUtils.setOpacity(g,70),e.appendChild(g),this.filename=g);this.minToolbarWidth=34*F;var O=b.style.border,
da=mxUtils.bind(this,function(){e.style.width="inline"==this.graphConfig["toolbar-position"]?"auto":Math.max(this.minToolbarWidth,b.offsetWidth)+"px";e.style.border="1px solid #d0d0d0";if(1!=this.graphConfig["toolbar-nohide"]){var ea=b.getBoundingClientRect(),ca=mxUtils.getScrollOrigin(document.body);ca="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-ca.x,top:-ca.y};ea={left:ea.left-ca.left,top:ea.top-ca.top,bottom:ea.bottom-ca.top,right:ea.right-ca.left};e.style.left=
-ea.left+"px";"bottom"==this.graphConfig["toolbar-position"]?e.style.top=ea.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(e.style.marginTop=-this.toolbarHeight+"px",e.style.top=ea.top+1+"px"):e.style.top=ea.top+"px";"1px solid transparent"==O&&(b.style.border="1px solid #d0d0d0");document.body.appendChild(e);var W=mxUtils.bind(this,function(){null!=e.parentNode&&e.parentNode.removeChild(e);null!=f&&(f.parentNode.removeChild(f),f=null);null!=T&&(T.parentNode.removeChild(T),T=null);b.style.border=
-O});mxEvent.addListener(document,"mousemove",function(ma){for(ma=mxEvent.getSource(ma);null!=ma;){if(ma==b||ma==e||ma==T||ma==f)return;ma=ma.parentNode}W()});mxEvent.addListener(document.body,"mouseleave",function(ma){W()})}else e.style.top=-this.toolbarHeight+"px",b.appendChild(e)});1!=this.graphConfig["toolbar-nohide"]?mxEvent.addListener(b,"mouseenter",da):da();this.responsive&&"undefined"!==typeof ResizeObserver&&(new ResizeObserver(function(){null!=e.parentNode&&da()})).observe(b)};
+ea.left+"px";"bottom"==this.graphConfig["toolbar-position"]?e.style.top=ea.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(e.style.marginTop=-this.toolbarHeight+"px",e.style.top=ea.top+1+"px"):e.style.top=ea.top+"px";"1px solid transparent"==O&&(b.style.border="1px solid #d0d0d0");document.body.appendChild(e);var V=mxUtils.bind(this,function(){null!=e.parentNode&&e.parentNode.removeChild(e);null!=f&&(f.parentNode.removeChild(f),f=null);null!=T&&(T.parentNode.removeChild(T),T=null);b.style.border=
+O});mxEvent.addListener(document,"mousemove",function(ma){for(ma=mxEvent.getSource(ma);null!=ma;){if(ma==b||ma==e||ma==T||ma==f)return;ma=ma.parentNode}V()});mxEvent.addListener(document.body,"mouseleave",function(ma){V()})}else e.style.top=-this.toolbarHeight+"px",b.appendChild(e)});1!=this.graphConfig["toolbar-nohide"]?mxEvent.addListener(b,"mouseenter",da):da();this.responsive&&"undefined"!==typeof ResizeObserver&&(new ResizeObserver(function(){null!=e.parentNode&&da()})).observe(b)};
GraphViewer.prototype.createToolbarButton=function(b,e,g,m){var v=document.createElement("div");v.style.borderRight="1px solid #d0d0d0";v.style.display="inline-flex";v.style.alignItems="center";v.style.padding="6px";mxEvent.addListener(v,"click",b);null!=g&&v.setAttribute("title",g);b=document.createElement("img");b.setAttribute("border","0");b.setAttribute("src",e);b.style.width="18px";b.className="geAdaptiveAsset";null==m||m?(mxEvent.addListener(v,"mouseenter",function(){v.style.backgroundColor=
"light-dark(#dddddd,#333333)"}),mxEvent.addListener(v,"mouseleave",function(){v.style.backgroundColor="transparent"}),mxUtils.setOpacity(b,60),v.style.cursor="pointer"):mxUtils.setOpacity(v,30);v.appendChild(b);return v};
GraphViewer.prototype.disableButton=function(b,e){var g=this.graphConfig["toolbar-buttons"]?this.graphConfig["toolbar-buttons"][b]:null;null!=g&&(mxUtils.setOpacity(g.elem,30),mxEvent.removeListener(g.elem,"click",g.handler),mxEvent.addListener(g.elem,"mouseenter",function(){g.elem.style.backgroundColor="#eee"}),e&&g.elem.setAttribute("title",e))};
@@ -4246,8 +4261,8 @@ this.graphConfig.highlight&&(g.highlight=this.graphConfig.highlight.substring(1)
GraphViewer.prototype.showLocalLightbox=function(b){var e=document.createElement("div");e.style.position="fixed";e.style.top="0";e.style.left="0";e.style.bottom="0";e.style.right="0";e.style.zIndex=this.lightboxZIndex;e.style.backgroundColor="#000000";mxUtils.setOpacity(e,70);document.body.appendChild(e);var g=document.createElement("img");g.setAttribute("border","0");g.setAttribute("src",Editor.closeBlackImage);g.style.position="fixed";g.style.top="32px";g.style.right="32px";g.style.cursor="pointer";
g.className="geAdaptiveAsset";var m=mxUtils.bind(this,function(){p.setDarkMode(this.isDarkMode())});mxEvent.addListener(g,"click",mxUtils.bind(this,function(){this.removeListener("darkModeChanged",m);p.destroy()}));urlParams.pages="1";urlParams.page=this.currentPage;urlParams["page-id"]=this.graphConfig.pageId;urlParams["layer-ids"]=null!=this.graphConfig.layerIds&&0<this.graphConfig.layerIds.length?this.graphConfig.layerIds.join(" "):null;urlParams.nav=0!=this.graphConfig.nav?"1":"0";urlParams.layers=
this.layersEnabled?"1":"0";urlParams.dark=this.isDarkMode()?"1":"0";this.tagsEnabled&&(urlParams.tags="{}");if(null!=b)try{var v=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));v.noCloseBtn=!0;urlParams["toolbar-config"]=encodeURIComponent(JSON.stringify(v))}catch(c){}if(null==document.documentMode||10<=document.documentMode)Editor.prototype.editButtonLink=this.graphConfig.edit,Editor.prototype.editButtonFunc=this.graphConfig.editFunc;EditorUi.prototype.updateActionStates=function(){};
-EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=function(){};v=Graph.prototype.shadowId;Graph.prototype.shadowId="lightboxDropShadow";var p=new EditorUi(new Editor(!0),document.createElement("div"),!0);this.addListener("darkModeChanged",m);p.editor.editBlankUrl=this.editBlankUrl;p.editor.graph.shadowId="lightboxDropShadow";Graph.prototype.shadowId=v;p.refresh=function(){};var B=mxUtils.bind(this,function(c){27==c.keyCode&&p.destroy()}),G=this.initialOverflow,
-S=p.destroy;p.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",B),document.body.removeChild(e),document.body.removeChild(g),document.body.style.overflow=G,GraphViewer.resizeSensorEnabled=!0,S.apply(this,arguments))};var F=p.editor.graph,P=F.container;P.style.overflow="hidden";this.lightboxChrome&&null==b?(P.style.border="1px solid #c0c0c0",P.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",B)):(e.style.display="none",g.style.display=
+EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=function(){};v=Graph.prototype.shadowId;Graph.prototype.shadowId="lightboxDropShadow";var p=new EditorUi(new Editor(!0),document.createElement("div"),!0);this.addListener("darkModeChanged",m);p.editor.editBlankUrl=this.editBlankUrl;p.editor.graph.shadowId="lightboxDropShadow";Graph.prototype.shadowId=v;p.refresh=function(){};var A=mxUtils.bind(this,function(c){27==c.keyCode&&p.destroy()}),G=this.initialOverflow,
+S=p.destroy;p.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",A),document.body.removeChild(e),document.body.removeChild(g),document.body.style.overflow=G,GraphViewer.resizeSensorEnabled=!0,S.apply(this,arguments))};var F=p.editor.graph,P=F.container;P.style.overflow="hidden";this.lightboxChrome&&null==b?(P.style.border="1px solid #c0c0c0",P.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",A)):(e.style.display="none",g.style.display=
"none");var R=this;F.getImageFromBundles=function(c){return R.getImageUrl(c)};var T=p.createTemporaryGraph;p.createTemporaryGraph=function(){var c=T.apply(this,arguments);c.getImageFromBundles=function(f){return R.getImageUrl(f)};return c};this.graphConfig.move&&(F.isMoveCellsEvent=function(c){return!0});mxUtils.setPrefixedStyle(P.style,"border-radius","4px");P.style.position="fixed";GraphViewer.resizeSensorEnabled=!1;document.body.style.overflow="hidden";this.addClickHandler(F,p);window.setTimeout(mxUtils.bind(this,
function(){try{mxEvent.addListener(e,"click",function(){p.destroy()}),P.style.outline="none",P.style.zIndex=this.lightboxZIndex,g.style.zIndex=this.lightboxZIndex,null!=b?(b.innerHTML="",b.appendChild(P)):(document.body.appendChild(P),document.body.appendChild(g)),p.setFileData(this.xml),mxUtils.setPrefixedStyle(P.style,"transform","rotateY(0deg)"),p.chromelessToolbar.style.bottom="60px",p.chromelessToolbar.style.zIndex=this.lightboxZIndex,(b||document.body).appendChild(p.chromelessToolbar),p.getEditBlankXml=
mxUtils.bind(this,function(){return this.xml}),this.showLayers(F,this.graph),p.lightboxFit(),p.chromelessResize()}catch(c){p.handleError(c,null,function(){p.destroy()})}}),0);return p};Dialog.prototype.getDocumentSize=function(){return new mxRectangle(0,0,Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0))};
@@ -4258,16 +4273,16 @@ GraphViewer.createViewerForElement=function(b,e){var g=b.getAttribute("data-mxgr
GraphViewer.blockedAncestorFrames=function(){try{if(window.location.ancestorOrigins&&window.location.hostname&&window.location.ancestorOrigins.length&&0<window.location.ancestorOrigins.length){var b=window.location.hostname;b&&1<b.length&&"/"==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1));for(var e="",g=0;g<window.location.ancestorOrigins.length;g++)if(e+=" -> "+window.location.ancestorOrigins[g],e.endsWith("dan6v7pm1f1a1.cloudfront.net")||e.endsWith("confluence-cloud-excalidraw-ll3likebca-uc.a.run.app"))return!0;
(b.endsWith("ac.draw.io")||b.endsWith("aj.draw.io"))&&1==window.location.ancestorOrigins.length&&window.location.ancestorOrigins[0]&&window.location.ancestorOrigins[0].endsWith(".atlassian.net")}}catch(m){}return!1};GraphViewer.darkBackgroundColor=Editor.darkColor;GraphViewer.cssFontFamily=Editor.defaultHtmlFont;GraphViewer.shapeBackgroundColor=null;GraphViewer.viewerInitialized=function(b){};
GraphViewer.initCss=function(){try{null==GraphViewer.styleElement&&(GraphViewer.styleElement=document.createElement("style"),GraphViewer.styleElement.setAttribute("type","text/css"),GraphViewer.styleElement.innerHTML=GraphViewer.getCss(),GraphViewer.blockedAncestorFrames()||document.getElementsByTagName("head")[0].appendChild(GraphViewer.styleElement))}catch(b){}};
-GraphViewer.getCss=function(){return[".geDarkMode img, .geDarkMode .geSprite {\n\tfilter: invert(1);\n}\ndiv.mxTooltip {\n box-shadow: 3px 3px 12px light-dark(#c0c0c0, transparent);"," background: light-dark(#ffffcc, "+GraphViewer.darkBackgroundColor+");"," border-style: solid;\n border-width: 1px;\n border-color: black;"," font-family: "+GraphViewer.cssFontFamily+";"," font-size: 8pt;\n position: absolute;\n cursor: default;\n padding: 4px;\n color: black;\n}\ntd.mxPopupMenuIcon div {\n width: 16px;\n height: 16px;\n}\ndiv.mxPopupMenu {\n box-shadow: 2px 2px 3px light-dark(#d5d5d5, transparent);\n background: white;\n position: absolute;\n border: 3px solid #e7e7e7;\n padding: 3px;\n}\ntable.mxPopupMenu {\n border-collapse: collapse;\n margin: 0px;\n}\ntd.mxPopupMenuItem {\n padding: 7px 30px;",
+GraphViewer.getCss=function(){return[".geDarkMode img {\n\tfilter: invert(1);\n}\ndiv.mxTooltip {\n box-shadow: 3px 3px 12px light-dark(#c0c0c0, transparent);"," background: light-dark(#ffffcc, "+GraphViewer.darkBackgroundColor+");"," border-style: solid;\n border-width: 1px;\n border-color: black;"," font-family: "+GraphViewer.cssFontFamily+";"," font-size: 8pt;\n position: absolute;\n cursor: default;\n padding: 4px;\n color: black;\n}\ntd.mxPopupMenuIcon div {\n width: 16px;\n height: 16px;\n}\ndiv.mxPopupMenu {\n box-shadow: 2px 2px 3px light-dark(#d5d5d5, transparent);\n background: white;\n position: absolute;\n border: 3px solid #e7e7e7;\n padding: 3px;\n}\ntable.mxPopupMenu {\n border-collapse: collapse;\n margin: 0px;\n}\ntd.mxPopupMenuItem {\n padding: 7px 30px;",
" font-family: "+GraphViewer.cssFontFamily+";"," font-size: 10pt;\n}\ntd.mxPopupMenuIcon {"," background-color: light-dark(#ffffff, "+GraphViewer.darkBackgroundColor+");"," padding: 0px;\n}\ntd.mxPopupMenuIcon .geIcon {\n padding: 2px;\n padding-bottom: 4px;\n margin: 2px;\n border: 1px solid transparent;\n opacity: 0.5;\n}\ntd.mxPopupMenuIcon .geIcon:hover {\n border: 1px solid gray;\n border-radius: 2px;\n opacity: 1;\n}\ntr.mxPopupMenuItemHover {\n background-color: #eeeeee;\n color: black;\n}\ntable.mxPopupMenu hr {\n color: #cccccc;\n background-color: #cccccc;\n border: none;\n height: 1px;\n}\ntable.mxPopupMenu tr {\n font-size: 4pt;\n}\n.geDialog, .geDialog table {",
" font-family: "+GraphViewer.cssFontFamily+";"," font-size: 10pt;\n border: none;\n margin: 0px;\n}\n.geDialog {\n position: absolute;"," background: light-dark(#ffffff, "+GraphViewer.darkBackgroundColor+");","\t color: light-dark(#3f3f3f, #c0c0c0);\n box-shadow: 0px 0px 2px 2px light-dark(#d5d5d5, transparent);\n border: 1px solid light-dark(#dadada, #565656);\n overflow: hidden;\n padding: 30px;\n z-index: 2;\n}\n.geDialogClose {\n position: absolute;\n width: 9px;\n height: 9px;\n opacity: 0.5;\n cursor: pointer;\n}\n.geDialogClose:hover {\n opacity: 1;\n}\n.geDialogTitle {\n box-sizing: border-box;\n white-space: nowrap;",
" background: light-dark(#f1f3f4, "+GraphViewer.darkBackgroundColor+");"," border-bottom: 1px solid rgb(192, 192, 192);\n font-size: 15px;\n font-weight: bold;\n text-align: center;\n color: rgb(35, 86, 149);\n}\n.geDialogFooter {"," background: light-dark(#f1f3f4, "+GraphViewer.darkBackgroundColor+");"," white-space: nowrap;\n text-align: right;\n box-sizing: border-box;\n border-top: 1px solid #e5e5e5;\n color: darkGray;\n}\n.geBtn, .mxWindow .geBtn {\n background-color: light-dark(#eeeeee, #1b1d1e);\n border: 1px solid light-dark(#d8d8d8, #333333);\n color: light-dark(#3f3f3f, #c0c0c0);\n font-size: 13px;\n font-weight: 500;\n border-radius: 4px;\n height: 30px;\n margin: 0 0 0 8px;\n min-width: 72px;\n outline: 0;\n padding: 0 8px;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n.geBtn:hover:not(.gePrimaryBtn), .geBtn:focus {\n border: 1px solid light-dark(#c6c6c6, #333333);\n background: light-dark(#dadada, #333333);\n}\n.geBtn:disabled {\n opacity: .5;\n}\n.gePrimaryBtn {\n background: linear-gradient(light-dark(#4d90fe, #003555) 0px, light-dark(#4787ed, #003555) 100%);\n border: 1px solid light-dark(#3079ed, transparent);\n color: light-dark(#ffffff, #c0c0c0);\n}\n.gePrimaryBtn:hover:not([disabled]) {\n background: linear-gradient(light-dark(#4d90fe, #004a77) 0px, light-dark(#357ae8, #004a77) 100%);\n border: 1px solid light-dark(#2f5bb7, transparent);\n}\n.geBtn:disabled {\n opacity: .5;\n}"].join("\n")};
GraphViewer.cachedUrls={};GraphViewer.getUrl=function(b,e,g){if(null!=GraphViewer.cachedUrls[b])e(GraphViewer.cachedUrls[b]);else{var m=null!=navigator.userAgent&&0<navigator.userAgent.indexOf("MSIE 9")?new XDomainRequest:new XMLHttpRequest;m.open("GET",b);m.onload=function(){e(null!=m.getText?m.getText():m.responseText)};m.onerror=g;m.send()}};GraphViewer.resizeSensorEnabled=!0;GraphViewer.useResizeObserver=!0;GraphViewer.useResizeSensor=!0;
-(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(g){return window.setTimeout(g,20)},e=function(g,m){function v(){this.q=[];this.add=function(k){this.q.push(k)};var c,f;this.call=function(){c=0;for(f=this.q.length;c<f;c++)this.q[c].call()}}function p(c,f){return c.currentStyle?c.currentStyle[f]:window.getComputedStyle?window.getComputedStyle(c,null).getPropertyValue(f):c.style[f]}function B(c,f){if(!c.resizedAttached)c.resizedAttached=
+(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(g){return window.setTimeout(g,20)},e=function(g,m){function v(){this.q=[];this.add=function(k){this.q.push(k)};var c,f;this.call=function(){c=0;for(f=this.q.length;c<f;c++)this.q[c].call()}}function p(c,f){return c.currentStyle?c.currentStyle[f]:window.getComputedStyle?window.getComputedStyle(c,null).getPropertyValue(f):c.style[f]}function A(c,f){if(!c.resizedAttached)c.resizedAttached=
new v,c.resizedAttached.add(f);else if(c.resizedAttached){c.resizedAttached.add(f);return}c.resizeSensor=document.createElement("div");c.resizeSensor.className="resize-sensor";c.resizeSensor.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";c.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div class="resize-sensor-shrink" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s; width: 200%; height: 200%"></div></div>';
-c.appendChild(c.resizeSensor);"static"==p(c,"position")&&(c.style.position="relative");var k=c.resizeSensor.childNodes[0],A=k.childNodes[0],z=c.resizeSensor.childNodes[1],C=function(){A.style.width="100000px";A.style.height="100000px";k.scrollLeft=1E5;k.scrollTop=1E5;z.scrollLeft=1E5;z.scrollTop=1E5};C();var I=!1,L=function(){c.resizedAttached&&(I&&(c.resizedAttached.call(),I=!1),b(L))};b(L);var K,O,da,ea;f=function(){if((da=c.offsetWidth)!=K||(ea=c.offsetHeight)!=O)I=!0,K=da,O=ea;C()};var ca=function(W,
-ma,la){W.attachEvent?W.attachEvent("on"+ma,la):W.addEventListener(ma,la)};ca(k,"scroll",f);ca(z,"scroll",f)}var G=function(){GraphViewer.resizeSensorEnabled&&m()};if(GraphViewer.useResizeObserver&&"undefined"!==typeof ResizeObserver){var S=null,F=!1;(new ResizeObserver(function(){F||(null!=S&&window.clearTimeout(S),S=window.setTimeout(function(){F=!0;G();S=null;F=!1},200))})).observe(g)}else{var P=Object.prototype.toString.call(g),R="[object Array]"===P||"[object NodeList]"===P||"[object HTMLCollection]"===
-P||"undefined"!==typeof jQuery&&g instanceof jQuery||"undefined"!==typeof Elements&&g instanceof Elements;if(R){P=0;for(var T=g.length;P<T;P++)B(g[P],G)}else B(g,G);this.detach=function(){if(R)for(var c=0,f=g.length;c<f;c++)e.detach(g[c]);else e.detach(g)}}};e.detach=function(g){g.resizeSensor&&(g.removeChild(g.resizeSensor),delete g.resizeSensor,delete g.resizedAttached)};window.ResizeSensor=e})();
+c.appendChild(c.resizeSensor);"static"==p(c,"position")&&(c.style.position="relative");var k=c.resizeSensor.childNodes[0],B=k.childNodes[0],z=c.resizeSensor.childNodes[1],C=function(){B.style.width="100000px";B.style.height="100000px";k.scrollLeft=1E5;k.scrollTop=1E5;z.scrollLeft=1E5;z.scrollTop=1E5};C();var I=!1,L=function(){c.resizedAttached&&(I&&(c.resizedAttached.call(),I=!1),b(L))};b(L);var K,O,da,ea;f=function(){if((da=c.offsetWidth)!=K||(ea=c.offsetHeight)!=O)I=!0,K=da,O=ea;C()};var ca=function(V,
+ma,la){V.attachEvent?V.attachEvent("on"+ma,la):V.addEventListener(ma,la)};ca(k,"scroll",f);ca(z,"scroll",f)}var G=function(){GraphViewer.resizeSensorEnabled&&m()};if(GraphViewer.useResizeObserver&&"undefined"!==typeof ResizeObserver){var S=null,F=!1;(new ResizeObserver(function(){F||(null!=S&&window.clearTimeout(S),S=window.setTimeout(function(){F=!0;G();S=null;F=!1},200))})).observe(g)}else{var P=Object.prototype.toString.call(g),R="[object Array]"===P||"[object NodeList]"===P||"[object HTMLCollection]"===
+P||"undefined"!==typeof jQuery&&g instanceof jQuery||"undefined"!==typeof Elements&&g instanceof Elements;if(R){P=0;for(var T=g.length;P<T;P++)A(g[P],G)}else A(g,G);this.detach=function(){if(R)for(var c=0,f=g.length;c<f;c++)e.detach(g[c]);else e.detach(g)}}};e.detach=function(g){g.resizeSensor&&(g.removeChild(g.resizeSensor),delete g.resizeSensor,delete g.resizedAttached)};window.ResizeSensor=e})();
function mxBpmnShape(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxBpmnShape,mxShape);
mxBpmnShape.prototype.customProperties=[{name:"symbol",dispName:"Event",type:"enum",defVal:"general",enumList:[{val:"general",dispName:"General"},{val:"message",dispName:"Message"},{val:"timer",dispName:"Timer"},{val:"escalation",dispName:"Escalation"},{val:"conditional",dispName:"Conditional"},{val:"link",dispName:"Link"},{val:"error",dispName:"Error"},{val:"cancel",dispName:"Cancel"},{val:"compensation",dispName:"Compensation"},{val:"signal",dispName:"Signal"},{val:"multiple",dispName:"Multiple"},
{val:"parallelMultiple",dispName:"Parallel Multiple"},{val:"terminate",dispName:"Terminate"},{val:"exclusiveGw",dispName:"Exclusive Gw"},{val:"parallelGw",dispName:"Parallel Gw"},{val:"complexGw",dispName:"Complex Gw"}]},{name:"outline",dispName:"Event Type",type:"enum",defVal:"standard",enumList:[{val:"standard",dispName:"Standard"},{val:"eventInt",dispName:"Interrupting"},{val:"eventNonint",dispName:"Non-Interrupting"},{val:"catching",dispName:"Catching"},{val:"boundInt",dispName:"Bound Interrupting"},
@@ -4334,16 +4349,37 @@ mxShapeBpmn2Task.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.ge
a.translate(.5*-b-f-1,m-1-c),f+=14);d&&(n=mxStencilRegistry.getStencil("mxgraph.bpmn.compensation"),null!=n&&(n.drawShape(a,this,.5*b+f,c-m+1,14,12),f+=14));h&&(a.translate(.5*b+f,c-m),a.rect(0,0,14,14),a.stroke(),a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke(),a.translate(.5*-b-f,m-c),f+=14);e&&(n=mxStencilRegistry.getStencil("mxgraph.bpmn.ad_hoc"),null!=n&&(h=mxUtils.getValue(this.style,"strokeColor","#000000"),k=mxUtils.getValue(this.style,"fillColor","#ffffff"),
a.setStrokeColor("none"),a.setFillColor(h),n.drawShape(a,this,.5*b+f+1,c-m+4,12,6),a.setStrokeColor(h),a.setFillColor(k)));switch(g){case "service":a.setFillColor(mxUtils.getValue(this.style,"fillColor","#ffffff"));n=mxStencilRegistry.getStencil("mxgraph.bpmn.service_task");null!=n&&n.drawShape(a,this,2,2,16,16);break;case "send":h=mxUtils.getValue(this.style,"strokeColor","#000000");k=mxUtils.getValue(this.style,"fillColor","#ffffff");a.setStrokeColor(k);a.setFillColor(h);mxShapeBpmn2SendMarker.prototype.paintVertexShape(a,
4,4,18,13);break;case "receive":mxShapeBpmn2SendMarker.prototype.paintVertexShape(a,4,4,18,13);break;case "user":n=mxStencilRegistry.getStencil("mxgraph.bpmn.user_task");null!=n&&n.drawShape(a,this,2,2,16,16);break;case "manual":n=mxStencilRegistry.getStencil("mxgraph.bpmn.manual_task");null!=n&&n.drawShape(a,this,3,3,18,14);break;case "businessRule":n=mxStencilRegistry.getStencil("mxgraph.bpmn.business_rule_task");null!=n&&n.drawShape(a,this,4,4,18,14);break;case "script":n=mxStencilRegistry.getStencil("mxgraph.bpmn.script_task"),
-null!=n&&n.drawShape(a,this,3,3,19,18)}b=mxUtils.getValue(this.style,"outline","none");c=mxUtils.getValue(this.style,"symbol","standard");mxShapeBpmnEvent.prototype.strictDrawShape.call(this,a,0,0,20,20,b,c)};mxCellRenderer.registerShape(mxShapeBpmn2Task.prototype.cst.TASK,mxShapeBpmn2Task);function mxShapeBpmn2Data(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}
-mxUtils.extend(mxShapeBpmn2Data,mxCellRenderer.prototype.getShape("note"));mxShapeBpmn2Data.prototype.cst={DATA:"mxgraph.bpmn.data"};mxShapeBpmn2Data.prototype.customProperties=[{name:"bpmnTransferType",dispName:"Transfer Type",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"input",dispName:"Input"},{val:"output",dispName:"Output"}]},{name:"isCollection",dispName:"Collection",type:"bool"}];
+null!=n&&n.drawShape(a,this,3,3,19,18)}b=mxUtils.getValue(this.style,"outline","none");c=mxUtils.getValue(this.style,"symbol","standard");mxShapeBpmnEvent.prototype.strictDrawShape.call(this,a,0,0,20,20,b,c)};mxCellRenderer.registerShape(mxShapeBpmn2Task.prototype.cst.TASK,mxShapeBpmn2Task);function mxShapeBpmn2Task2(a,d,e,b){mxCellRenderer.prototype.getShape("mxgraph.basic.rect").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}
+mxUtils.extend(mxShapeBpmn2Task2,mxCellRenderer.prototype.getShape("mxgraph.basic.rect"));
+mxShapeBpmn2Task2.prototype.customProperties=[{name:"bpmnShapeType",dispName:"Type",defVal:"task",type:"enum",enumList:[{val:"task",dispName:"Task"},{val:"transaction",dispName:"Transaction"},{val:"call",dispName:"Call"},{val:"subprocess",dispName:"Sub-Process"}]},{name:"taskMarker",dispName:"Task Marker",defVal:"abstract",type:"enum",enumList:[{val:"abstract",dispName:"Abstract"},{val:"service",dispName:"Service"},{val:"send",dispName:"Send"},{val:"receive",dispName:"Receive"},{val:"user",dispName:"User"},
+{val:"nime",dispName:"Non-Interrupting Message Event"},{val:"manual",dispName:"Manual"},{val:"businessRule",dispName:"Business Rule"},{val:"script",dispName:"Script"}]},{name:"isLoopSub",dispName:"Subprocess",type:"bool"},{name:"isLoopStandard",dispName:"Standard Loop",type:"bool"},{name:"isLoopMultiParallel",dispName:"Multi-Instance Parallel Loop",type:"bool"},{name:"isLoopMultiSeq",dispName:"Multi-Instance Sequential Loop",type:"bool"},{name:"isLoopComp",dispName:"Compensation Loop",type:"bool"},
+{name:"isAdHoc",dispName:"Ad Hoc",type:"bool"}];mxShapeBpmn2Task2.prototype.customProperties=mxShapeBpmn2Task2.prototype.customProperties.concat(mxShapeBpmnEvent.prototype.customProperties);mxShapeBpmn2Task2.prototype.customProperties=mxShapeBpmn2Task2.prototype.customProperties.concat(mxCellRenderer.prototype.getShape("mxgraph.basic.rect").prototype.customProperties);mxShapeBpmn2Task2.prototype.eventTypeEnum=mxShapeBpmnEvent.prototype.eventTypeEnum;mxShapeBpmn2Task2.prototype.eventEnum=mxShapeBpmnEvent.prototype.eventEnum;
+mxShapeBpmn2Task2.prototype.miscEnum=mxShapeBpmnEvent.prototype.miscEnum;mxShapeBpmn2Task2.prototype.cst={TASK:"mxgraph.bpmn.task2"};
+mxShapeBpmn2Task2.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"bpmnShapeType","task"),g=mxUtils.getValue(this.style,"taskMarker","abstract"),h=mxUtils.getValue(this.style,"strokeWidth",1),k=mxUtils.getValue(this.style,"dashed",!1),l=mxUtils.getValue(this.style,"indent",3),m=14+.5*h;"call"==f&&(m=14+2*h);mxUtils.getValue(this.style,"rectOutline","single");a.translate(d,e);d=mxCellRenderer.prototype.getShape("mxgraph.basic.rect");e={};"transaction"==f?(m+=l,e.rectOutline=
+"double",e.indent=3):"subprocess"==f?e.dashed=!0:"call"==f&&(e.strokeWidth=4*h);d.prototype.strictDrawShape.call(this,a,0,0,b,c,e);a.setStrokeWidth(h);a.setDashed(k);"call"==f&&a.setStrokeWidth(h);a.setDashed(!1);a.setShadow(!1);e=mxUtils.getValue(this.style,"isLoopSub",!1);l=mxUtils.getValue(this.style,"isLoopStandard",!1);var n=mxUtils.getValue(this.style,"isLoopMultiParallel",!1),p=mxUtils.getValue(this.style,"isLoopMultiSeq",!1),q=mxUtils.getValue(this.style,"isLoopComp",!1),t=mxUtils.getValue(this.style,
+"isAdHoc",!1);k=0;l&&k++;n&&k++;p&&k++;q&&k++;e&&k++;t&&k++;k*=-7;a.setStrokeWidth(1);l&&(l=mxStencilRegistry.getStencil("mxgraph.bpmn.loop"),null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,.5*b+k+1,c-m+1,12,12),a.setStrokeWidth=d,k+=14));n&&(a.translate(.5*b+k+1,c-m+1),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b-k-1,m-1-c),k+=14);p&&(a.translate(.5*b+k+1,c-m+1),a.begin(),a.moveTo(0,
+2.4),a.lineTo(12,2.4),a.moveTo(0,6),a.lineTo(12,6),a.moveTo(0,9.6),a.lineTo(12,9.6),a.stroke(),a.translate(.5*-b-k-1,m-1-c),k+=14);q&&(l=mxStencilRegistry.getStencil("mxgraph.bpmn.compensation"),null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,.5*b+k,c-m+1,14,12),a.setStrokeWidth=d,k+=14));e&&(a.translate(.5*b+k,c-m),a.rect(0,0,14,14),a.stroke(),a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke(),a.translate(.5*-b-k,m-c),k+=14);t&&(l=mxStencilRegistry.getStencil("mxgraph.bpmn.ad_hoc"),
+null!=l&&(d=mxUtils.getValue(this.style,"strokeColor","#000000"),e=mxUtils.getValue(this.style,"fillColor","#ffffff"),a.setStrokeColor("none"),a.setFillColor(d),l.drawShape(a,this,.5*b+k+1,c-m+4,12,6),k+=14,a.setStrokeColor(d),a.setFillColor(e),a.setStrokeWidth(1)));b=.5*h;"call"==f&&(b=2*h);switch(g){case "service":a.setFillColor(mxUtils.getValue(this.style,"fillColor","#ffffff"));l=mxStencilRegistry.getStencil("mxgraph.bpmn.service_task");null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},
+l.drawShape(a,this,b+2,b+2,16,16),a.setStrokeWidth=d);break;case "send":d=mxUtils.getValue(this.style,"strokeColor","#000000");e=mxUtils.getValue(this.style,"fillColor","#ffffff");a.setStrokeColor(e);a.setFillColor(d);mxShapeBpmn2SendMarker.prototype.paintVertexShape(a,b+4,b+4,18,13);break;case "receive":mxShapeBpmn2SendMarker.prototype.paintVertexShape(a,b+4,b+4,18,13);break;case "user":l=mxStencilRegistry.getStencil("mxgraph.bpmn.user_task");null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},
+l.drawShape(a,this,b+2,b+2,16,16),a.setStrokeWidth=d);break;case "manual":l=mxStencilRegistry.getStencil("mxgraph.bpmn.manual_task");null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,b+3,b+3,18,14),a.setStrokeWidth=d);break;case "businessRule":l=mxStencilRegistry.getStencil("mxgraph.bpmn.business_rule_task");null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,b+4,b+4,18,14),a.setStrokeWidth=d);break;case "script":l=mxStencilRegistry.getStencil("mxgraph.bpmn.script_task"),
+null!=l&&(d=a.setStrokeWidth,a.setStrokeWidth=function(){},l.drawShape(a,this,b+3,b+3,19,18),a.setStrokeWidth=d)}f=mxUtils.getValue(this.style,"outline","none");g=mxUtils.getValue(this.style,"symbol","standard");d=a.setStrokeWidth;a.setStrokeWidth=function(){};mxShapeBpmnEvent.prototype.strictDrawShape.call(this,a,b,b,20,20,f,g);a.setStrokeWidth=d};mxCellRenderer.registerShape(mxShapeBpmn2Task2.prototype.cst.TASK,mxShapeBpmn2Task2);
+function mxShapeBpmn2Data(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeBpmn2Data,mxCellRenderer.prototype.getShape("note"));mxShapeBpmn2Data.prototype.cst={DATA:"mxgraph.bpmn.data"};
+mxShapeBpmn2Data.prototype.customProperties=[{name:"bpmnTransferType",dispName:"Transfer Type",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"input",dispName:"Input"},{val:"output",dispName:"Output"}]},{name:"isCollection",dispName:"Collection",type:"bool"}];
mxShapeBpmn2Data.prototype.paintVertexShape=function(a,d,e,b,c){mxCellRenderer.prototype.getShape("note").prototype.paintVertexShape.call(this,a,d,e,b,c);e=mxUtils.getValue(this.style,"bpmnTransferType","none");d=mxUtils.getValue(this.style,"isCollection",!1);a.setShadow(!1);if("input"===e||"output"===e)if(a.translate(3,3),a.begin(),a.moveTo(0,12*.3),a.lineTo(14*.55,12*.3),a.lineTo(14*.55,0),a.lineTo(14,6),a.lineTo(14*.55,12),a.lineTo(14*.55,12*.7),a.lineTo(0,12*.7),a.close(),a.translate(-3,-3),"input"===
e)a.stroke();else{e=mxUtils.getValue(this.style,"fillColor","#ffffff");var f=mxUtils.getValue(this.style,"strokeColor","#000000");a.setFillColor(f);a.fillAndStroke();a.setFillColor(e)}d&&(a.translate(.5*b-6,c-12),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b+6,-c+12))};mxCellRenderer.registerShape(mxShapeBpmn2Data.prototype.cst.DATA,mxShapeBpmn2Data);Graph.handleFactory[mxShapeBpmn2Data.prototype.cst.DATA]=Graph.handleFactory.note;
-function mxShapeBpmn2Swimlane(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeBpmn2Swimlane,mxSwimlane);mxShapeBpmn2Swimlane.prototype.cst={SWIMLANE:"mxgraph.bpmn.swimlane"};mxShapeBpmn2Swimlane.prototype.customProperties=[{name:"isCollection",dispName:"Collection",type:"bool"}];
-mxShapeBpmn2Swimlane.prototype.paintVertexShape=function(a,d,e,b,c){mxSwimlane.prototype.paintVertexShape.call(this,a,d,e,b,c);d=mxUtils.getValue(this.style,"isCollection",!1);a.setShadow(!1);d&&(a.translate(.5*b-6,c-12),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b+6,-c+12))};mxCellRenderer.registerShape(mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE,mxShapeBpmn2Swimlane);
-Graph.handleFactory[mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE]=Graph.handleFactory.swimlane;function mxShapeBpmn2Conversation(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBpmn2Conversation,mxHexagon);
+function mxShapeBpmn2Data2(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeBpmn2Data2,mxCellRenderer.prototype.getShape("note"));mxShapeBpmn2Data2.prototype.cst={DATA:"mxgraph.bpmn.data2"};
+mxShapeBpmn2Data2.prototype.customProperties=[{name:"bpmnTransferType",dispName:"Transfer Type",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"input",dispName:"Input"},{val:"output",dispName:"Output"}]},{name:"isCollection",dispName:"Collection",type:"bool"}];
+mxShapeBpmn2Data2.prototype.paintVertexShape=function(a,d,e,b,c){mxCellRenderer.prototype.getShape("note").prototype.paintVertexShape.call(this,a,d,e,b,c);var f=mxUtils.getValue(this.style,"bpmnTransferType","none");d=mxUtils.getValue(this.style,"isCollection",!1);e=mxUtils.getValue(this.style,"strokeWidth",1);a.setShadow(!1);a.setStrokeWidth(1);if("input"===f||"output"===f){var g=3+.5*e,h=3+.5*e;a.translate(g,h);a.begin();a.moveTo(0,12*.3);a.lineTo(14*.55,12*.3);a.lineTo(14*.55,0);a.lineTo(14,6);
+a.lineTo(14*.55,12);a.lineTo(14*.55,12*.7);a.lineTo(0,12*.7);a.close();a.translate(-g,-h);"input"===f?a.stroke():(f=mxUtils.getValue(this.style,"fillColor","#ffffff"),g=mxUtils.getValue(this.style,"strokeColor","#000000"),a.setFillColor(g),a.fillAndStroke(),a.setFillColor(f))}d&&(a.translate(.5*b-6,c-12-.5*e),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b+6,-c+12))};
+mxCellRenderer.registerShape(mxShapeBpmn2Data2.prototype.cst.DATA,mxShapeBpmn2Data2);Graph.handleFactory[mxShapeBpmn2Data2.prototype.cst.DATA]=Graph.handleFactory.note;function mxShapeBpmn2Swimlane(a,d,e,b){mxCellRenderer.prototype.getShape("note").call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeBpmn2Swimlane,mxSwimlane);mxShapeBpmn2Swimlane.prototype.cst={SWIMLANE:"mxgraph.bpmn.swimlane"};
+mxShapeBpmn2Swimlane.prototype.customProperties=[{name:"isCollection",dispName:"Collection",type:"bool"}];mxShapeBpmn2Swimlane.prototype.paintVertexShape=function(a,d,e,b,c){mxSwimlane.prototype.paintVertexShape.call(this,a,d,e,b,c);d=mxUtils.getValue(this.style,"isCollection",!1);a.setShadow(!1);d&&(a.translate(.5*b-6,c-12),a.begin(),a.moveTo(2.4,0),a.lineTo(2.4,12),a.moveTo(6,0),a.lineTo(6,12),a.moveTo(9.6,0),a.lineTo(9.6,12),a.stroke(),a.translate(.5*-b+6,-c+12))};
+mxCellRenderer.registerShape(mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE,mxShapeBpmn2Swimlane);Graph.handleFactory[mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE]=Graph.handleFactory.swimlane;function mxShapeBpmn2Conversation(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBpmn2Conversation,mxHexagon);
mxShapeBpmn2Conversation.prototype.customProperties=[{name:"bpmnConversationType",dispName:"Type",defVal:"conv",type:"enum",enumList:[{val:"conv",dispName:"Conversation"},{val:"call",dispName:"Call"}]},{name:"isLoopSub",dispName:"Subprocess",type:"bool"}];mxShapeBpmn2Conversation.prototype.cst={CONVERSATION:"mxgraph.bpmn.conversation"};
mxShapeBpmn2Conversation.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"bpmnConversationType","conv"),g=mxUtils.getValue(this.style,"strokeWidth",1);"call"==f&&a.setStrokeWidth(4*g);a.translate(d,e);a.begin();a.moveTo(0,.5*c);a.lineTo(.25*b,0);a.lineTo(.75*b,0);a.lineTo(b,.5*c);a.lineTo(.75*b,c);a.lineTo(.25*b,c);a.close();a.fillAndStroke();"call"==f&&a.setStrokeWidth(g);mxUtils.getValue(this.style,"isLoopSub",!1)&&(a.translate(.5*b-7,c-14),a.rect(0,0,14,14),a.stroke(),
-a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke())};mxCellRenderer.registerShape(mxShapeBpmn2Conversation.prototype.cst.CONVERSATION,mxShapeBpmn2Conversation);function mxShapeEmoji(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEmoji,mxShape);mxShapeEmoji.prototype.EMOJI_NAME="emoji";
+a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke())};mxCellRenderer.registerShape(mxShapeBpmn2Conversation.prototype.cst.CONVERSATION,mxShapeBpmn2Conversation);function mxShapeBpmn2Conversation2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBpmn2Conversation2,mxHexagon);
+mxShapeBpmn2Conversation2.prototype.customProperties=[{name:"bpmnConversationType",dispName:"Type",defVal:"conv",type:"enum",enumList:[{val:"conv",dispName:"Conversation"},{val:"call",dispName:"Call"}]},{name:"isLoopSub",dispName:"Subprocess",type:"bool"}];mxShapeBpmn2Conversation2.prototype.cst={CONVERSATION:"mxgraph.bpmn.conversation2"};
+mxShapeBpmn2Conversation2.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"bpmnConversationType","conv"),g=mxUtils.getValue(this.style,"strokeWidth",1);"call"==f&&a.setStrokeWidth(4*g);a.translate(d,e);a.begin();a.moveTo(0,.5*c);a.lineTo(.25*b,0);a.lineTo(.75*b,0);a.lineTo(b,.5*c);a.lineTo(.75*b,c);a.lineTo(.25*b,c);a.close();a.fillAndStroke();a.setStrokeWidth(1);mxUtils.getValue(this.style,"isLoopSub",!1)&&("call"==f?a.translate(.5*b-7,c-14-2*g):a.translate(.5*b-
+7,c-14-.5*g),a.rect(0,0,14,14),a.stroke(),a.begin(),a.moveTo(4,7),a.lineTo(10,7),a.moveTo(7,4),a.lineTo(7,10),a.stroke())};mxCellRenderer.registerShape(mxShapeBpmn2Conversation2.prototype.cst.CONVERSATION,mxShapeBpmn2Conversation2);function mxShapeEmoji(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEmoji,mxShape);mxShapeEmoji.prototype.EMOJI_NAME="emoji";
mxShapeEmoji.prototype.emojis={grinning_face:"\ud83d\ude00",grinning_face_with_big_eyes:"\ud83d\ude03",grinning_face_with_smiling_eyes:"\ud83d\ude04",beaming_face_with_smiling_eyes:"\ud83d\ude01",grinning_squinting_face:"\ud83d\ude06",grinning_face_with_sweat:"\ud83d\ude05",rolling_on_the_floor_laughing:"\ud83e\udd23",face_with_tears_of_joy:"\ud83d\ude02",slightly_smiling_face:"\ud83d\ude42",upside_down_face:"\ud83d\ude43",melting_face:"\ud83e\udee0",winking_face:"\ud83d\ude09",smiling_face_with_smiling_eyes:"\ud83d\ude0a",
smiling_face_with_halo:"\ud83d\ude07",smiling_face_with_hearts:"\ud83e\udd70",smiling_face_with_heart_eyes:"\ud83d\ude0d",star_struck:"\ud83e\udd29",face_blowing_a_kiss:"\ud83d\ude18",kissing_face:"\ud83d\ude17",smiling_face:"☺️",kissing_face_with_closed_eyes:"\ud83d\ude1a",kissing_face_with_smiling_eyes:"\ud83d\ude19",smiling_face_with_tear:"\ud83e\udd72",face_savoring_food:"\ud83d\ude0b",face_with_tongue:"\ud83d\ude1b",winking_face_with_tongue:"\ud83d\ude1c",zany_face:"\ud83e\udd2a",squinting_face_with_tongue:"\ud83d\ude1d",
money_mouth_face:"\ud83e\udd11",smiling_face_with_open_hands:"\ud83e\udd17",face_with_hand_over_mouth:"\ud83e\udd2d",face_with_open_eyes_and_hand_over_mouth:"\ud83e\udee2",face_with_peeking_eye:"\ud83e\udee3",shushing_face:"\ud83e\udd2b",thinking_face:"\ud83e\udd14",saluting_face:"\ud83e\udee1",zipper_mouth_face:"\ud83e\udd10",face_with_raised_eyebrow:"\ud83e\udd28",neutral_face:"\ud83d\ude10",expressionless_face:"\ud83d\ude11",face_without_mouth:"\ud83d\ude36",dotted_line_face:"\ud83e\udee5",face_in_clouds:"\ud83d\ude36‍\ud83c\udf2b️",
diff --git a/src/main/webapp/js/viewer.min.js b/src/main/webapp/js/viewer.min.js
index 5918c3176..b0ef52256 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.0.6",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.0.7",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||
@@ -268,15 +268,16 @@ function(){this.scrollbars=mxUtils.hasScrollbars(a.container);this.scrollLeft=a.
this.getDy())}),this.delay)});this.isActive=function(){return active};this.getDx=function(){return Math.round(this.tdx)};this.getDy=function(){return Math.round(this.tdy)};this.start=function(){this.t0x=a.view.translate.x;this.t0y=a.view.translate.y;this.active=!0};this.panTo=function(c,d,e,f){this.active||this.start();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop;var g=a.container;this.dx=c+(null!=e?e:0)-g.scrollLeft-g.clientWidth;this.dx=0>this.dx&&Math.abs(this.dx)<
this.border?this.border+this.dx:this.handleMouseOut?Math.max(this.dx,0):0;0==this.dx&&(this.dx=c-g.scrollLeft,this.dx=0<this.dx&&this.dx<this.border?this.dx-this.border:this.handleMouseOut?Math.min(0,this.dx):0);this.dy=d+(null!=f?f:0)-g.scrollTop-g.clientHeight;this.dy=0>this.dy&&Math.abs(this.dy)<this.border?this.border+this.dy:this.handleMouseOut?Math.max(this.dy,0):0;0==this.dy&&(this.dy=d-g.scrollTop,this.dy=0<this.dy&&this.dy<this.border?this.dy-this.border:this.handleMouseOut?Math.min(0,this.dy):
0);0!=this.dx||0!=this.dy?(this.dx*=this.damper,this.dy*=this.damper,null==this.thread&&(this.thread=b())):null!=this.thread&&(window.clearInterval(this.thread),this.thread=null)};this.stop=function(){if(this.active)if(this.active=!1,null!=this.thread&&(window.clearInterval(this.thread),this.thread=null),this.tdy=this.tdx=0,this.scrollbars)a.panDx=0,a.panDy=0,a.fireEvent(new mxEventObject(mxEvent.PAN));else{var c=a.panDx,d=a.panDy;if(0!=c||0!=d)a.panGraph(0,0),a.view.setTranslate(this.t0x+c/a.view.scale,
-this.t0y+d/a.view.scale)}};this.destroy=function(){a.removeMouseListener(this.mouseListener);mxEvent.removeListener(document,"mouseup",this.mouseUpListener)}}mxPanningManager.prototype.damper=1/6;mxPanningManager.prototype.delay=10;mxPanningManager.prototype.handleMouseOut=!0;mxPanningManager.prototype.border=0;function mxPopupMenu(a){this.factoryMethod=a;null!=a&&this.init()}mxPopupMenu.prototype=new mxEventSource;mxPopupMenu.prototype.constructor=mxPopupMenu;
-mxPopupMenu.prototype.submenuImage=mxClient.imageBasePath+"/submenu.gif";mxPopupMenu.prototype.zIndex=10006;mxPopupMenu.prototype.factoryMethod=null;mxPopupMenu.prototype.useLeftButtonForPopup=!1;mxPopupMenu.prototype.enabled=!0;mxPopupMenu.prototype.itemCount=0;mxPopupMenu.prototype.autoExpand=!1;mxPopupMenu.prototype.smartSeparators=!1;mxPopupMenu.prototype.labels=!0;
+this.t0y+d/a.view.scale)}};this.destroy=function(){a.removeMouseListener(this.mouseListener);mxEvent.removeListener(document,"mouseup",this.mouseUpListener)}}mxPanningManager.prototype.damper=1/6;mxPanningManager.prototype.delay=10;mxPanningManager.prototype.handleMouseOut=!0;mxPanningManager.prototype.border=0;function mxPopupMenu(a){this.factoryMethod=a;null!=a&&this.init()}mxPopupMenu.prototype=new mxEventSource;mxPopupMenu.prototype.constructor=mxPopupMenu;mxPopupMenu.prototype.submenuImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDAwLTI4MHYtNDAwbDIwMCAyMDAtMjAwIDIwMFoiLz48L3N2Zz4=";
+mxPopupMenu.prototype.zIndex=10006;mxPopupMenu.prototype.factoryMethod=null;mxPopupMenu.prototype.useLeftButtonForPopup=!1;mxPopupMenu.prototype.enabled=!0;mxPopupMenu.prototype.itemCount=0;mxPopupMenu.prototype.autoExpand=!1;mxPopupMenu.prototype.smartSeparators=!1;mxPopupMenu.prototype.labels=!0;
mxPopupMenu.prototype.init=function(){this.table=document.createElement("table");this.table.className="mxPopupMenu";this.tbody=document.createElement("tbody");this.table.appendChild(this.tbody);this.div=document.createElement("div");this.div.className="mxPopupMenu";this.div.style.display="inline";this.div.style.zIndex=this.zIndex;this.div.appendChild(this.table);mxEvent.disableContextMenu(this.div)};mxPopupMenu.prototype.isEnabled=function(){return this.enabled};
mxPopupMenu.prototype.setEnabled=function(a){this.enabled=a};mxPopupMenu.prototype.isPopupTrigger=function(a){return a.isPopupTrigger()||this.useLeftButtonForPopup&&mxEvent.isLeftMouseButton(a.getEvent())};
mxPopupMenu.prototype.addItem=function(a,b,c,d,e,f,g,k){d=d||this;this.itemCount++;d.willAddSeparator&&(d.containsItems&&this.addSeparator(d,!0),d.willAddSeparator=!1);d.containsItems=!0;var l=document.createElement("tr");l.className="mxPopupMenuItem";var m=document.createElement("td");m.className="mxPopupMenuIcon";null!=b?(e=document.createElement("img"),e.src=b,m.appendChild(e)):null!=e&&(b=document.createElement("div"),b.className=e,m.appendChild(b));l.appendChild(m);this.labels&&(m=document.createElement("td"),
m.className="mxPopupMenuItem"+(null==f||f?"":" mxDisabled"),mxUtils.write(m,a),m.align="left",l.appendChild(m),a=document.createElement("td"),a.className="mxPopupMenuItem"+(null==f||f?"":" mxDisabled"),a.style.paddingRight="6px",a.style.textAlign="right",l.appendChild(a),null==d.div&&this.createSubmenu(d));d.tbody.appendChild(l);if(0!=g&&0!=f){var n=null;mxEvent.addGestureListeners(l,mxUtils.bind(this,function(p){this.eventReceiver=l;d.activeRow!=l&&d.activeRow!=d&&(null!=d.activeRow&&null!=d.activeRow.div.parentNode&&
this.hideSubmenu(d),null!=l.div&&(this.showSubmenu(d,l),d.activeRow=l));null!=document.selection&&8==document.documentMode&&(n=document.selection.createRange());mxEvent.consume(p)}),mxUtils.bind(this,function(p){d.activeRow!=l&&d.activeRow!=d&&(null!=d.activeRow&&null!=d.activeRow.div.parentNode&&this.hideSubmenu(d),this.autoExpand&&null!=l.div&&(this.showSubmenu(d,l),d.activeRow=l));k||(l.className="mxPopupMenuItemHover")}),mxUtils.bind(this,function(p){if(this.eventReceiver==l){d.activeRow!=l&&
-this.hideMenu();if(null!=n){try{n.select()}catch(q){}n=null}null!=c&&c(p)}this.eventReceiver=null;mxEvent.consume(p)}));k||mxEvent.addListener(l,"mouseout",mxUtils.bind(this,function(p){l.className="mxPopupMenuItem"}))}return l};mxPopupMenu.prototype.addCheckmark=function(a,b){a=a.firstChild.nextSibling;a.style.backgroundImage="url('"+b+"')";a.style.backgroundRepeat="no-repeat";a.style.backgroundPosition="2px 50%"};
-mxPopupMenu.prototype.createSubmenu=function(a){a.table=document.createElement("table");a.table.className="mxPopupMenu";a.tbody=document.createElement("tbody");a.table.appendChild(a.tbody);a.div=document.createElement("div");a.div.className="mxPopupMenu";a.div.style.position="absolute";a.div.style.display="inline";a.div.style.zIndex=this.zIndex;a.div.appendChild(a.table);var b=document.createElement("img");b.setAttribute("src",this.submenuImage);td=a.firstChild.nextSibling.nextSibling;td.appendChild(b)};
+this.hideMenu();if(null!=n){try{n.select()}catch(q){}n=null}null!=c&&c(p)}this.eventReceiver=null;mxEvent.consume(p)}));k||mxEvent.addListener(l,"mouseout",mxUtils.bind(this,function(p){l.className="mxPopupMenuItem"}))}return l};mxPopupMenu.prototype.addCheckmark=function(a,b){a=this.addImage(a.firstChild.nextSibling,b);a.style.marginTop="-2px";a.style.left="6px"};
+mxPopupMenu.prototype.addImage=function(a,b){var c=document.createElement("div");c.style.position="absolute";c.style.display="inline-block";c.style.backgroundRepeat="no-repeat";c.style.backgroundPosition="center center";c.style.backgroundImage="url("+b+")";c.style.backgroundSize="22px";c.style.height="22px";c.style.width="22px";a.appendChild(c);return c};
+mxPopupMenu.prototype.createSubmenu=function(a){a.table=document.createElement("table");a.table.className="mxPopupMenu";a.tbody=document.createElement("tbody");a.table.appendChild(a.tbody);a.div=document.createElement("div");a.div.className="mxPopupMenu";a.div.style.position="absolute";a.div.style.display="inline";a.div.style.zIndex=this.zIndex;a.div.appendChild(a.table);a=this.addImage(a.firstChild.nextSibling.nextSibling,this.submenuImage);a.style.marginLeft="-18px";a.style.marginTop="-11px"};
mxPopupMenu.prototype.showSubmenu=function(a,b){if(null!=b.div){b.div.style.left=a.div.offsetLeft+b.offsetLeft+b.offsetWidth-1+"px";b.div.style.top=a.div.offsetTop+b.offsetTop+"px";document.body.appendChild(b.div);var c=parseInt(b.div.offsetLeft),d=parseInt(b.div.offsetWidth),e=mxUtils.getDocumentScrollOrigin(document),f=document.documentElement;c+d>e.x+(document.body.clientWidth||f.clientWidth)&&(b.div.style.left=Math.max(0,a.div.offsetLeft-d+16)+"px");b.div.style.overflowY="auto";b.div.style.overflowX=
"hidden";b.div.style.maxHeight=Math.max(document.body.clientHeight,document.documentElement.clientHeight)-10+"px";mxUtils.fit(b.div)}};
mxPopupMenu.prototype.addSeparator=function(a,b){a=a||this;if(this.smartSeparators&&!b)a.willAddSeparator=!0;else if(null!=a.tbody){a.willAddSeparator=!1;b=document.createElement("tr");var c=document.createElement("td");c.className="mxPopupMenuIcon";c.style.padding="0 0 0 0px";b.appendChild(c);c=document.createElement("td");c.style.padding="0 0 0 0px";c.setAttribute("colSpan","2");var d=document.createElement("hr");d.setAttribute("size","1");c.appendChild(d);b.appendChild(c);a.tbody.appendChild(b)}};
@@ -1874,8 +1875,8 @@ var mxStylesheetCodec=mxCodecRegistry.register(function(){var a=new mxObjectCode
function(b,c){b=typeof c;"function"==b?c=mxStyleRegistry.getName(c):"object"==b&&(c=null);return c};a.decode=function(b,c,d){d=d||new this.template.constructor;var e=c.getAttribute("id");null!=e&&(b.objects[e]=d);for(c=c.firstChild;null!=c;){if(!this.processInclude(b,c,d)&&"add"==c.nodeName&&(e=c.getAttribute("as"),null!=e)){var f=c.getAttribute("extend"),g=null!=f?mxUtils.clone(d.styles[f]):null;null==g&&(null!=f&&mxLog.warn("mxStylesheetCodec.decode: stylesheet "+f+" not found to extend"),g={});
for(f=c.firstChild;null!=f;){if(f.nodeType==mxConstants.NODETYPE_ELEMENT){var k=f.getAttribute("as");if("add"==f.nodeName){var l=mxUtils.getTextContent(f);null!=l&&0<l.length&&mxStylesheetCodec.allowEval?l=mxUtils.eval(l):(l=f.getAttribute("value"),mxUtils.isNumeric(l)&&(l=parseFloat(l)));null!=l&&(g[k]=l)}else"remove"==f.nodeName&&delete g[k]}f=f.nextSibling}d.putCellStyle(e,g)}c=c.nextSibling}return d};return a}());mxStylesheetCodec.allowEval=!1;
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(b){return b.raw=b};$jscomp.createTemplateTagFirstArgWithRaw=function(b,e){b.raw=e;return b};$jscomp.arrayIteratorImpl=function(b){var e=0;return function(){return e<b.length?{done:!1,value:b[e++]}:{done:!0}}};$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.makeIterator=function(b){var e="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];return e?e.call(b):$jscomp.arrayIterator(b)};
-Editor=function(b,e,g,m,v){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=m||this.createGraph(e,g);this.editable=null!=v?v:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(p,B){this.status=p;this.statusFunction=B;this.fireEvent(new mxEventObject("statusChanged"))};
-this.getStatus=function(){return this.status};this.graphChangeListener=function(p,B){p=null!=B?B.getProperty("edit"):null;null!=p&&p.ignoreEdit||this.setModified(!0)};this.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.graphChangeListener.apply(this,arguments)}));this.graph.resetViewOnRootChange=!1;this.init()};mxConstants.POINTS=1;mxConstants.MILLIMETERS=2;mxConstants.INCHES=3;mxConstants.METERS=4;mxConstants.PIXELS_PER_MM=3.937;mxConstants.PIXELS_PER_INCH=100;
+Editor=function(b,e,g,m,v){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=m||this.createGraph(e,g);this.editable=null!=v?v:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(p,A){this.status=p;this.statusFunction=A;this.fireEvent(new mxEventObject("statusChanged"))};
+this.getStatus=function(){return this.status};this.graphChangeListener=function(p,A){p=null!=A?A.getProperty("edit"):null;null!=p&&p.ignoreEdit||this.setModified(!0)};this.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.graphChangeListener.apply(this,arguments)}));this.graph.resetViewOnRootChange=!1;this.init()};mxConstants.POINTS=1;mxConstants.MILLIMETERS=2;mxConstants.INCHES=3;mxConstants.METERS=4;mxConstants.PIXELS_PER_MM=3.937;mxConstants.PIXELS_PER_INCH=100;
Editor.pageCounter=0;(function(){try{for(var b=window;null!=b.opener&&"undefined"!==typeof b.opener.Editor&&!isNaN(b.opener.Editor.pageCounter)&&b.opener!=b;)b=b.opener;null!=b&&(b.Editor.pageCounter++,Editor.pageCounter=b.Editor.pageCounter)}catch(e){}})();Editor.defaultHtmlFont='-apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, ui-sans-serif, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"';Editor.useLocalStorage="undefined"!=typeof Storage&&mxClient.IS_IOS;
Editor.smallScreenWidth=1024;Editor.helpImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDc4LTI0MHEyMSAwIDM1LjUtMTQuNVQ1MjgtMjkwcTAtMjEtMTQuNS0zNS41VDQ3OC0zNDBxLTIxIDAtMzUuNSAxNC41VDQyOC0yOTBxMCAyMSAxNC41IDM1LjVUNDc4LTI0MFptLTM2LTE1NGg3NHEwLTMzIDcuNS01MnQ0Mi41LTUycTI2LTI2IDQxLTQ5LjV0MTUtNTYuNXEwLTU2LTQxLTg2dC05Ny0zMHEtNTcgMC05Mi41IDMwVDM0Mi02MThsNjYgMjZxNS0xOCAyMi41LTM5dDUzLjUtMjFxMzIgMCA0OCAxNy41dDE2IDM4LjVxMCAyMC0xMiAzNy41VDUwNi01MjZxLTQ0IDM5LTU0IDU5dC0xMCA3M1ptMzggMzE0cS04MyAwLTE1Ni0zMS41VDE5Ny0xOTdxLTU0LTU0LTg1LjUtMTI3VDgwLTQ4MHEwLTgzIDMxLjUtMTU2VDE5Ny03NjNxNTQtNTQgMTI3LTg1LjVUNDgwLTg4MHE4MyAwIDE1NiAzMS41VDc2My03NjNxNTQgNTQgODUuNSAxMjdUODgwLTQ4MHEwIDgzLTMxLjUgMTU2VDc2My0xOTdxLTU0IDU0LTEyNyA4NS41VDQ4MC04MFptMC04MHExMzQgMCAyMjctOTN0OTMtMjI3cTAtMTM0LTkzLTIyN3QtMjI3LTkzcS0xMzQgMC0yMjcgOTN0LTkzIDIyN3EwIDEzNCA5MyAyMjd0MjI3IDkzWm0wLTMyMFoiLz48L3N2Zz4=";
Editor.menuImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjRweCIgZmlsbD0iIzAwMDAwMCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTMgMThoMTh2LTJIM3Yyem0wLTVoMTh2LTJIM3Yyem0wLTd2MmgxOFY2SDN6Ii8+PC9zdmc+";Editor.moveImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI4cHgiIGhlaWdodD0iMjhweCI+PGc+PC9nPjxnPjxnPjxnPjxwYXRoIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIuNCwyLjQpc2NhbGUoMC44KXJvdGF0ZSg0NSwxMiwxMikiIHN0cm9rZT0iIzI5YjZmMiIgZmlsbD0iIzI5YjZmMiIgZD0iTTE1LDNsMi4zLDIuM2wtMi44OSwyLjg3bDEuNDIsMS40MkwxOC43LDYuN0wyMSw5VjNIMTV6IE0zLDlsMi4zLTIuM2wyLjg3LDIuODlsMS40Mi0xLjQyTDYuNyw1LjNMOSwzSDNWOXogTTksMjEgbC0yLjMtMi4zbDIuODktMi44N2wtMS40Mi0xLjQyTDUuMywxNy4zTDMsMTV2Nkg5eiBNMjEsMTVsLTIuMywyLjNsLTIuODctMi44OWwtMS40MiwxLjQybDIuODksMi44N0wxNSwyMWg2VjE1eiIvPjwvZz48L2c+PC9nPjwvc3ZnPgo=";
@@ -1908,33 +1909,43 @@ Editor.colorDropperImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3
Editor.magnifyImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik03ODQtMTIwIDUzMi0zNzJxLTMwIDI0LTY5IDM4dC04MyAxNHEtMTA5IDAtMTg0LjUtNzUuNVQxMjAtNTgwcTAtMTA5IDc1LjUtMTg0LjVUMzgwLTg0MHExMDkgMCAxODQuNSA3NS41VDY0MC01ODBxMCA0NC0xNCA4M3QtMzggNjlsMjUyIDI1Mi01NiA1NlpNMzgwLTQwMHE3NSAwIDEyNy41LTUyLjVUNTYwLTU4MHEwLTc1LTUyLjUtMTI3LjVUMzgwLTc2MHEtNzUgMC0xMjcuNSA1Mi41VDIwMC01ODBxMCA3NSA1Mi41IDEyNy41VDM4MC00MDBaIi8+PC9zdmc+";
Editor.sendImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik0xMjAtMTYwdi02NDBsNzYwIDMyMC03NjAgMzIwWm04MC0xMjAgNDc0LTIwMC00NzQtMjAwdjE0MGwyNDAgNjAtMjQwIDYwdjE0MFptMCAwdi00MDAgNDAwWiIvPjwvc3ZnPg==";Editor.sparklesImage="data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyB3aWR0aD0iODAwcHgiIGhlaWdodD0iODAwcHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0iI2ZjZmY0NyIgZGF0YS1kYXJrcmVhZGVyLWlubGluZS1maWxsPSIiIHN0eWxlPSItLWRhcmtyZWFkZXItaW5saW5lLWZpbGw6ICNkNmQ4NTA7IC0tZGFya3JlYWRlci1pbmxpbmUtc3Ryb2tlOiAjZDZkODUwOyIgc3Ryb2tlPSIjZmNmZjQ3IiBkYXRhLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZT0iIj4KDTxnIGlkPSJTVkdSZXBvX2JnQ2FycmllciIgc3Ryb2tlLXdpZHRoPSIwIi8+Cg08ZyBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KDTxnIGlkPSJTVkdSZXBvX2ljb25DYXJyaWVyIj4KDTxwYXRoIGQ9Ik0yNTkuOTIsMjYyLjkxLDIxNi40LDE0OS43N2E5LDksMCwwLDAtMTYuOCwwTDE1Ni4wOCwyNjIuOTFhOSw5LDAsMCwxLTUuMTcsNS4xN0wzNy43NywzMTEuNmE5LDksMCwwLDAsMCwxNi44bDExMy4xNCw0My41MmE5LDksMCwwLDEsNS4xNyw1LjE3TDE5OS42LDQ5MC4yM2E5LDksMCwwLDAsMTYuOCwwbDQzLjUyLTExMy4xNGE5LDksMCwwLDEsNS4xNy01LjE3TDM3OC4yMywzMjguNGE5LDksMCwwLDAsMC0xNi44TDI2NS4wOSwyNjguMDhBOSw5LDAsMCwxLDI1OS45MiwyNjIuOTFaIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxOS45NjgiIGRhdGEtZGFya3JlYWRlci1pbmxpbmUtc3Ryb2tlPSIiIHN0eWxlPSItLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZTogIzE4MWExYjsiLz4KDTxwb2x5Z29uIHBvaW50cz0iMTA4IDY4IDg4IDE2IDY4IDY4IDE2IDg4IDY4IDEwOCA4OCAxNjAgMTA4IDEwOCAxNjAgODggMTA4IDY4IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxOS45NjgiIGRhdGEtZGFya3JlYWRlci1pbmxpbmUtc3Ryb2tlPSIiIHN0eWxlPSItLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZTogIzE4MWExYjsiLz4KDTxwb2x5Z29uIHBvaW50cz0iNDI2LjY3IDExNy4zMyA0MDAgNDggMzczLjMzIDExNy4zMyAzMDQgMTQ0IDM3My4zMyAxNzAuNjcgNDAwIDI0MCA0MjYuNjcgMTcwLjY3IDQ5NiAxNDQgNDI2LjY3IDExNy4zMyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMTkuOTY4IiBkYXRhLWRhcmtyZWFkZXItaW5saW5lLXN0cm9rZT0iIiBzdHlsZT0iLS1kYXJrcmVhZGVyLWlubGluZS1zdHJva2U6ICMxODFhMWI7Ii8+Cg08L2c+Cg08L3N2Zz4=";
Editor.arrowRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNNDAwLTI4MHYtNDAwbDIwMCAyMDAtMjAwIDIwMFoiLz48L3N2Zz4=";Editor.arrowDownImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNNDgwLTM2MCAyODAtNTYwaDQwMEw0ODAtMzYwWiIvPjwvc3ZnPg==";
-Editor.refreshImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDgwLTE2MHEtMTM0IDAtMjI3LTkzdC05My0yMjdxMC0xMzQgOTMtMjI3dDIyNy05M3E2OSAwIDEzMiAyOC41VDcyMC02OTB2LTExMGg4MHYyODBINTIwdi04MGgxNjhxLTMyLTU2LTg3LjUtODhUNDgwLTcyMHEtMTAwIDAtMTcwIDcwdC03MCAxNzBxMCAxMDAgNzAgMTcwdDE3MCA3MHE3NyAwIDEzOS00NHQ4Ny0xMTZoODRxLTI4IDEwNi0xMTQgMTczdC0xOTYgNjdaIi8+PC9zdmc+";
-Editor.checkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzgyLTI0MCAxNTQtNDY4bDU3LTU3IDE3MSAxNzEgMzY3LTM2NyA1NyA1Ny00MjQgNDI0WiIvPjwvc3ZnPg==";Editor.boldImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjcyLTIwMHYtNTYwaDIyMXE2NSAwIDEyMCA0MHQ1NSAxMTFxMCA1MS0yMyA3OC41VDYwMi00OTFxMjUgMTEgNTUuNSA0MXQzMC41IDkwcTAgODktNjUgMTI0LjVUNTAxLTIwMEgyNzJabTEyMS0xMTJoMTA0cTQ4IDAgNTguNS0yNC41VDU2Ni0zNzJxMC0xMS0xMC41LTM1LjVUNDk0LTQzMkgzOTN2MTIwWm0wLTIyOGg5M3EzMyAwIDQ4LTE3dDE1LTM4cTAtMjQtMTctMzl0LTQ0LTE1aC05NXYxMDlaIi8+PC9zdmc+";
+Editor.arrowUpImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJtMjgwLTQwMCAyMDAtMjAwIDIwMCAyMDBIMjgwWiIvPjwvc3ZnPg==";Editor.refreshImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDgwLTE2MHEtMTM0IDAtMjI3LTkzdC05My0yMjdxMC0xMzQgOTMtMjI3dDIyNy05M3E2OSAwIDEzMiAyOC41VDcyMC02OTB2LTExMGg4MHYyODBINTIwdi04MGgxNjhxLTMyLTU2LTg3LjUtODhUNDgwLTcyMHEtMTAwIDAtMTcwIDcwdC03MCAxNzBxMCAxMDAgNzAgMTcwdDE3MCA3MHE3NyAwIDEzOS00NHQ4Ny0xMTZoODRxLTI4IDEwNi0xMTQgMTczdC0xOTYgNjdaIi8+PC9zdmc+";
+Editor.checkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzgyLTI0MCAxNTQtNDY4bDU3LTU3IDE3MSAxNzEgMzY3LTM2NyA1NyA1Ny00MjQgNDI0WiIvPjwvc3ZnPg==";Editor.dockRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNTYwcTAtMzMgMjMuNS01Ni41VDIwMC04NDBoNTYwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NTYwcTAgMzMtMjMuNSA1Ni41VDc2MC0xMjBIMjAwWm0xMjAtODB2LTU2MEgyMDB2NTYwaDEyMFptODAgMGgzNjB2LTU2MEg0MDB2NTYwWm0tODAgMEgyMDBoMTIwWiIvPjwvc3ZnPg==";
+Editor.toFrontImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzYwLTI4MHEtMzMgMC01Ni41LTIzLjVUMjgwLTM2MHYtNDAwcTAtMzMgMjMuNS01Ni41VDM2MC04NDBoNDAwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NDAwcTAgMzMtMjMuNSA1Ni41VDc2MC0yODBIMzYwWm0wLTgwaDQwMHYtNDAwSDM2MHY0MDBaTTIwMC0yMDB2ODBxLTMzIDAtNTYuNS0yMy41VDEyMC0yMDBoODBabS04MC04MHYtODBoODB2ODBoLTgwWm0wLTE2MHYtODBoODB2ODBoLTgwWm0wLTE2MHYtODBoODB2ODBoLTgwWm0xNjAgNDgwdi04MGg4MHY4MGgtODBabTE2MCAwdi04MGg4MHY4MGgtODBabTE2MCAwdi04MGg4MHY4MGgtODBaIi8+PC9zdmc+";
+Editor.toBackImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNDgwaDgwdjQ4MGg0ODB2ODBIMjAwWm0xNjAtMjQwdjgwcS0zMyAwLTU2LjUtMjMuNVQyODAtMzYwaDgwWm0tODAtODB2LTgwaDgwdjgwaC04MFptMC0xNjB2LTgwaDgwdjgwaC04MFptODAtMTYwaC04MHEwLTMzIDIzLjUtNTYuNVQzNjAtODQwdjgwWm04MCA0ODB2LTgwaDgwdjgwaC04MFptMC00ODB2LTgwaDgwdjgwaC04MFptMTYwIDB2LTgwaDgwdjgwaC04MFptMCA0ODB2LTgwaDgwdjgwaC04MFptMTYwLTQ4MHYtODBxMzMgMCA1Ni41IDIzLjVUODQwLTc2MGgtODBabTAgNDAwaDgwcTAgMzMtMjMuNSA1Ni41VDc2MC0yODB2LTgwWm0wLTgwdi04MGg4MHY4MGgtODBabTAtMTYwdi04MGg4MHY4MGgtODBaIi8+PC9zdmc+";
+Editor.fillColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJtMjQ3LTkwNCA1Ny01NiAzNDMgMzQzcTIzIDIzIDIzIDU3dC0yMyA1N0w0NTctMzEzcS0yMyAyMy01NyAyM3QtNTctMjNMMTUzLTUwM3EtMjMtMjMtMjMtNTd0MjMtNTdsMTkwLTE5MS05Ni05NlptMTUzIDE1M0wyMDktNTYwaDM4Mkw0MDAtNzUxWm0zNjAgNDcxcS0zMyAwLTU2LjUtMjMuNVQ2ODAtMzYwcTAtMjEgMTIuNS00NXQyNy41LTQ1cTktMTIgMTktMjV0MjEtMjVxMTEgMTIgMjEgMjV0MTkgMjVxMTUgMjEgMjcuNSA0NXQxMi41IDQ1cTAgMzMtMjMuNSA1Ni41VDc2MC0yODBaTTgwIDB2LTE2MGg4MDBWMEg4MFoiLz48L3N2Zz4=";
+Editor.strokeColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAgMHYtMTYwaDgwMFYwSDgwWm0xNjAtMzIwaDU2bDMxMi0zMTEtMjktMjktMjgtMjgtMzExIDMxMnY1NlptLTgwIDgwdi0xNzBsNDQ4LTQ0N3ExMS0xMSAyNS41LTE3dDMwLjUtNnExNiAwIDMxIDZ0MjcgMThsNTUgNTZxMTIgMTEgMTcuNSAyNnQ1LjUgMzFxMCAxNS01LjUgMjkuNVQ3NzctNjg3TDMzMC0yNDBIMTYwWm01NjAtNTA0LTU2LTU2IDU2IDU2Wk02MDgtNjMxbC0yOS0yOS0yOC0yOCA1NyA1N1oiLz48L3N2Zz4=";
+Editor.fontColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAgMHYtMTYwaDgwMFYwSDgwWm0xNDAtMjgwIDIxMC01NjBoMTAwbDIxMCA1NjBoLTk2bC01MC0xNDRIMzY4bC01MiAxNDRoLTk2Wm0xNzYtMjI0aDE2OGwtODItMjMyaC00bC04MiAyMzJaIi8+PC9zdmc+";Editor.backgroundColorImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAgMHYtMTYwaDgwMFYwSDgwWm01MDQtNDgwTDQ4MC01ODQgMzIwLTQyNGwxMDMgMTA0IDE2MS0xNjBabS00Ny0xNjAgMTAzIDEwMyAxNjAtMTU5LTEwNC0xMDQtMTU5IDE2MFptLTg0LTI5IDIxNiAyMTYtMTg5IDE5MHEtMjQgMjQtNTYuNSAyNFQzNjctMjYzbC0yNyAyM0gxNDBsMTI2LTEyNXEtMjQtMjQtMjUtNTcuNXQyMy01Ny41bDE4OS0xODlabTAgMCAxODctMTg3cTI0LTI0IDU2LjUtMjR0NTYuNSAyNGwxMDQgMTAzcTI0IDI0IDI0IDU2LjVUODU3LTY0MEw2NjktNDUzIDQ1My02NjlaIi8+PC9zdmc+";
+Editor.shadowImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTgwcS0zMyAwLTU2LjUtMjMuNVQ4MC0xNjB2LTQ4MHEwLTMzIDIzLjUtNTYuNVQxNjAtNzIwaDgwdi04MHEwLTMzIDIzLjUtNTYuNVQzMjAtODgwaDQ4MHEzMyAwIDU2LjUgMjMuNVQ4ODAtODAwdjQ4MHEwIDMzLTIzLjUgNTYuNVQ4MDAtMjQwaC04MHY4MHEwIDMzLTIzLjUgNTYuNVQ2NDAtODBIMTYwWm0xNjAtMjQwaDQ4MHYtNDgwSDMyMHY0ODBaIi8+PC9zdmc+";
+Editor.boldImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjcyLTIwMHYtNTYwaDIyMXE2NSAwIDEyMCA0MHQ1NSAxMTFxMCA1MS0yMyA3OC41VDYwMi00OTFxMjUgMTEgNTUuNSA0MXQzMC41IDkwcTAgODktNjUgMTI0LjVUNTAxLTIwMEgyNzJabTEyMS0xMTJoMTA0cTQ4IDAgNTguNS0yNC41VDU2Ni0zNzJxMC0xMS0xMC41LTM1LjVUNDk0LTQzMkgzOTN2MTIwWm0wLTIyOGg5M3EzMyAwIDQ4LTE3dDE1LTM4cTAtMjQtMTctMzl0LTQ0LTE1aC05NXYxMDlaIi8+PC9zdmc+";
Editor.italicImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTIwMHYtMTAwaDE2MGwxMjAtMzYwSDMyMHYtMTAwaDQwMHYxMDBINTgwTDQ2MC0zMDBoMTQwdjEwMEgyMDBaIi8+PC9zdmc+";Editor.underlineImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHYtODBoNTYwdjgwSDIwMFptMjgwLTE2MHEtMTAxIDAtMTU3LTYzdC01Ni0xNjd2LTMzMGgxMDN2MzM2cTAgNTYgMjggOTF0ODIgMzVxNTQgMCA4Mi0zNXQyOC05MXYtMzM2aDEwM3YzMzBxMCAxMDQtNTYgMTY3dC0xNTcgNjNaIi8+PC9zdmc+";
Editor.strikethroughImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDg2LTE2MHEtNzYgMC0xMzUtNDV0LTg1LTEyM2w4OC0zOHExNCA0OCA0OC41IDc5dDg1LjUgMzFxNDIgMCA3Ni0yMHQzNC02NHEwLTE4LTctMzN0LTE5LTI3aDExMnE1IDE0IDcuNSAyOC41VDY5NC0zNDBxMCA4Ni02MS41IDEzM1Q0ODYtMTYwWk04MC00ODB2LTgwaDgwMHY4MEg4MFptNDAyLTMyNnE2NiAwIDExNS41IDMyLjVUNjc0LTY3NGwtODggMzlxLTktMjktMzMuNS01MlQ0ODQtNzEwcS00MSAwLTY4IDE4LjVUMzg2LTY0MGgtOTZxMi02OSA1NC41LTExNy41VDQ4Mi04MDZaIi8+PC9zdmc+";
-Editor.verticalTextImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjQwLTI0MHYtMjAwcS02NiAwLTExMy00N1Q4MC02MDBxMC02NiA0Ny0xMTN0MTEzLTQ3aDMyMHY4MGgtODB2NDQwaC04MHYtNDQwaC04MHY0NDBoLTgwWm00ODAgODBMNTYwLTMyMGw1Ni01NiA2NCA2M3YtNDQ3aDgwdjQ0N2w2NC02NCA1NiA1Ny0xNjAgMTYwWk0yNDAtNTIwdi0xNjBxLTMzIDAtNTYuNSAyMy41VDE2MC02MDBxMCAzMyAyMy41IDU2LjVUMjQwLTUyMFptMC04MFoiLz48L3N2Zz4=";
-Editor.alignLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDQ4MHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNDgwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";Editor.alignCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";
-Editor.alignRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";Editor.alignJustifyImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";
-Editor.alignTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTc2MHYtODBoNjQwdjgwSDE2MFptMjgwIDY0MHYtNDA4TDMzNi00MjRsLTU2LTU2IDIwMC0yMDAgMjAwIDIwMC01NiA1Ni0xMDQtMTA0djQwOGgtODBaIi8+PC9zdmc+";Editor.alignMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0xNjhsLTY0IDY0LTU2LTU2IDE2MC0xNjAgMTYwIDE2MC01NiA1Ni02NC02NHYxNjhoLTgwWk0xNjAtNDQwdi04MGg2NDB2ODBIMTYwWm0zMjAtMTIwTDMyMC03MjBsNTYtNTYgNjQgNjR2LTE2OGg4MHYxNjhsNjQtNjQgNTYgNTYtMTYwIDE2MFoiLz48L3N2Zz4=";
-Editor.alignBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTEyMHYtODBoNjQwdjgwSDE2MFptMzIwLTE2MEwyODAtNDgwbDU2LTU2IDEwNCAxMDR2LTQwOGg4MHY0MDhsMTA0LTEwNCA1NiA1Ni0yMDAgMjAwWiIvPjwvc3ZnPg==";Editor.alignHorizontalLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwMGg4MHY4MDBIODBabTE2MC0yMDB2LTEyMGg0MDB2MTIwSDI0MFptMC0yODB2LTEyMGg2NDB2MTIwSDI0MFoiLz48L3N2Zz4=";
-Editor.alignHorizontalCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0yMDBIMjQwdi0xMjBoMjAwdi0xNjBIMTIwdi0xMjBoMzIwdi0yMDBoODB2MjAwaDMyMHYxMjBINTIwdjE2MGgyMDB2MTIwSDUyMHYyMDBoLTgwWiIvPjwvc3ZnPg==";Editor.alignHorizontalRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAwLTgwdi04MDBoODB2ODAwaC04MFpNMzIwLTI4MHYtMTIwaDQwMHYxMjBIMzIwWk04MC01NjB2LTEyMGg2NDB2MTIwSDgwWiIvPjwvc3ZnPg==";
-Editor.alignVerticalTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTgwdi02NDBoMTIwdjY0MEgyODBabTI4MC0yNDB2LTQwMGgxMjB2NDAwSDU2MFpNODAtODAwdi04MGg4MDB2ODBIODBaIi8+PC9zdmc+";Editor.alignVerticalMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTEyMHYtMzIwSDgwdi04MGgyMDB2LTMyMGgxMjB2MzIwaDE2MHYtMjAwaDEyMHYyMDBoMjAwdjgwSDY4MHYyMDBINTYwdi0yMDBINDAwdjMyMEgyODBaIi8+PC9zdmc+";
-Editor.alignVerticalBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwaDgwMHY4MEg4MFptMjAwLTE2MHYtNjQwaDEyMHY2NDBIMjgwWm0yODAgMHYtNDAwaDEyMHY0MDBINTYwWiIvPjwvc3ZnPg==";Editor.subscriptImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTE2MHYtODBxMC0xNyAxMS41LTI4LjVUODAwLTI4MGg4MHYtNDBINzYwdi00MGgxMjBxMTcgMCAyOC41IDExLjVUOTIwLTMyMHY0MHEwIDE3LTExLjUgMjguNVQ4ODAtMjQwaC04MHY0MGgxMjB2NDBINzYwWm0tNTI1LTgwIDE4NS0yOTEtMTcyLTI2OWgxMDZsMTI0IDIwMGg0bDEyMy0yMDBoMTA3TDUzOS01MzFsMTg2IDI5MUg2MThMNDgyLTQ1N2gtNEwzNDItMjQwSDIzNVoiLz48L3N2Zz4=";
+Editor.verticalTextImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTE2MGgtODB2LTUyOGwtNDIgNDItNTYtNTYgMTM4LTEzOCAxNDAgMTM4LTU4IDU2LTQyLTQydjUyOFpNNTYwLTI3NiAxMjAtNDQwdi04MGw0NDAtMTY0djc2bC0xMTIgMzh2MTc4bDExMiA0MHY3NlpNMzg0LTQxNHYtMTMybC0xODIgNjR2NGwxODIgNjRaIi8+PC9zdmc+";Editor.alignLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDQ4MHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNDgwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";
+Editor.alignCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMTYwLTE2MHYtODBoNDAwdjgwSDI4MFpNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";Editor.alignRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTc2MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTQ0MHYtODBoNzIwdjgwSDEyMFptMjQwIDE2MHYtODBoNDgwdjgwSDM2MFpNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFoiLz48L3N2Zz4=";
+Editor.alignJustifyImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBabTAtMTYwdi04MGg3MjB2ODBIMTIwWm0wLTE2MHYtODBoNzIwdjgwSDEyMFptMC0xNjB2LTgwaDcyMHY4MEgxMjBaIi8+PC9zdmc+";Editor.alignTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTc2MHYtODBoNjQwdjgwSDE2MFptMjgwIDY0MHYtNDA4TDMzNi00MjRsLTU2LTU2IDIwMC0yMDAgMjAwIDIwMC01NiA1Ni0xMDQtMTA0djQwOGgtODBaIi8+PC9zdmc+";
+Editor.alignMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0xNjhsLTY0IDY0LTU2LTU2IDE2MC0xNjAgMTYwIDE2MC01NiA1Ni02NC02NHYxNjhoLTgwWk0xNjAtNDQwdi04MGg2NDB2ODBIMTYwWm0zMjAtMTIwTDMyMC03MjBsNTYtNTYgNjQgNjR2LTE2OGg4MHYxNjhsNjQtNjQgNTYgNTYtMTYwIDE2MFoiLz48L3N2Zz4=";Editor.alignBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTEyMHYtODBoNjQwdjgwSDE2MFptMzIwLTE2MEwyODAtNDgwbDU2LTU2IDEwNCAxMDR2LTQwOGg4MHY0MDhsMTA0LTEwNCA1NiA1Ni0yMDAgMjAwWiIvPjwvc3ZnPg==";
+Editor.alignHorizontalLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwMGg4MHY4MDBIODBabTE2MC0yMDB2LTEyMGg0MDB2MTIwSDI0MFptMC0yODB2LTEyMGg2NDB2MTIwSDI0MFoiLz48L3N2Zz4=";Editor.alignHorizontalCenterImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTgwdi0yMDBIMjQwdi0xMjBoMjAwdi0xNjBIMTIwdi0xMjBoMzIwdi0yMDBoODB2MjAwaDMyMHYxMjBINTIwdjE2MGgyMDB2MTIwSDUyMHYyMDBoLTgwWiIvPjwvc3ZnPg==";
+Editor.alignHorizontalRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAwLTgwdi04MDBoODB2ODAwaC04MFpNMzIwLTI4MHYtMTIwaDQwMHYxMjBIMzIwWk04MC01NjB2LTEyMGg2NDB2MTIwSDgwWiIvPjwvc3ZnPg==";Editor.alignVerticalTopImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTgwdi02NDBoMTIwdjY0MEgyODBabTI4MC0yNDB2LTQwMGgxMjB2NDAwSDU2MFpNODAtODAwdi04MGg4MDB2ODBIODBaIi8+PC9zdmc+";
+Editor.alignVerticalMiddleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjgwLTEyMHYtMzIwSDgwdi04MGgyMDB2LTMyMGgxMjB2MzIwaDE2MHYtMjAwaDEyMHYyMDBoMjAwdjgwSDY4MHYyMDBINTYwdi0yMDBINDAwdjMyMEgyODBaIi8+PC9zdmc+";Editor.alignVerticalBottomImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAtODB2LTgwaDgwMHY4MEg4MFptMjAwLTE2MHYtNjQwaDEyMHY2NDBIMjgwWm0yODAgMHYtNDAwaDEyMHY0MDBINTYwWiIvPjwvc3ZnPg==";
+Editor.subscriptImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTE2MHYtODBxMC0xNyAxMS41LTI4LjVUODAwLTI4MGg4MHYtNDBINzYwdi00MGgxMjBxMTcgMCAyOC41IDExLjVUOTIwLTMyMHY0MHEwIDE3LTExLjUgMjguNVQ4ODAtMjQwaC04MHY0MGgxMjB2NDBINzYwWm0tNTI1LTgwIDE4NS0yOTEtMTcyLTI2OWgxMDZsMTI0IDIwMGg0bDEyMy0yMDBoMTA3TDUzOS01MzFsMTg2IDI5MUg2MThMNDgyLTQ1N2gtNEwzNDItMjQwSDIzNVoiLz48L3N2Zz4=";
Editor.superscriptImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNzYwLTYwMHYtODBxMC0xNyAxMS41LTI4LjVUODAwLTcyMGg4MHYtNDBINzYwdi00MGgxMjBxMTcgMCAyOC41IDExLjVUOTIwLTc2MHY0MHEwIDE3LTExLjUgMjguNVQ4ODAtNjgwaC04MHY0MGgxMjB2NDBINzYwWk0yMzUtMTYwbDE4NS0yOTEtMTcyLTI2OWgxMDZsMTI0IDIwMGg0bDEyMy0yMDBoMTA3TDUzOS00NTFsMTg2IDI5MUg2MThMNDgyLTM3N2gtNEwzNDItMTYwSDIzNVoiLz48L3N2Zz4=";
Editor.orderedListImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTgwdi02MGgxMDB2LTMwaC02MHYtNjBoNjB2LTMwSDEyMHYtNjBoMTIwcTE3IDAgMjguNSAxMS41VDI4MC0yODB2NDBxMCAxNy0xMS41IDI4LjVUMjQwLTIwMHExNyAwIDI4LjUgMTEuNVQyODAtMTYwdjQwcTAgMTctMTEuNSAyOC41VDI0MC04MEgxMjBabTAtMjgwdi0xMTBxMC0xNyAxMS41LTI4LjVUMTYwLTUxMGg2MHYtMzBIMTIwdi02MGgxMjBxMTcgMCAyOC41IDExLjVUMjgwLTU2MHY3MHEwIDE3LTExLjUgMjguNVQyNDAtNDUwaC02MHYzMGgxMDB2NjBIMTIwWm02MC0yODB2LTE4MGgtNjB2LTYwaDEyMHYyNDBoLTYwWm0xODAgNDQwdi04MGg0ODB2ODBIMzYwWm0wLTI0MHYtODBoNDgwdjgwSDM2MFptMC0yNDB2LTgwaDQ4MHY4MEgzNjBaIi8+PC9zdmc+";
Editor.unorderedListImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzYwLTIwMHYtODBoNDgwdjgwSDM2MFptMC0yNDB2LTgwaDQ4MHY4MEgzNjBabTAtMjQwdi04MGg0ODB2ODBIMzYwWk0yMDAtMTYwcS0zMyAwLTU2LjUtMjMuNVQxMjAtMjQwcTAtMzMgMjMuNS01Ni41VDIwMC0zMjBxMzMgMCA1Ni41IDIzLjVUMjgwLTI0MHEwIDMzLTIzLjUgNTYuNVQyMDAtMTYwWm0wLTI0MHEtMzMgMC01Ni41LTIzLjVUMTIwLTQ4MHEwLTMzIDIzLjUtNTYuNVQyMDAtNTYwcTMzIDAgNTYuNSAyMy41VDI4MC00ODBxMCAzMy0yMy41IDU2LjVUMjAwLTQwMFptMC0yNDBxLTMzIDAtNTYuNS0yMy41VDEyMC03MjBxMC0zMyAyMy41LTU2LjVUMjAwLTgwMHEzMyAwIDU2LjUgMjMuNVQyODAtNzIwcTAgMzMtMjMuNSA1Ni41VDIwMC02NDBaIi8+PC9zdmc+";
Editor.indentImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMzIwLTE2MHYtODBoNDAwdjgwSDQ0MFptMC0xNjB2LTgwaDQwMHY4MEg0NDBabTAtMTYwdi04MGg0MDB2ODBINDQwWk0xMjAtNzYwdi04MGg3MjB2ODBIMTIwWm0wIDQ0MHYtMzIwbDE2MCAxNjAtMTYwIDE2MFoiLz48L3N2Zz4=";Editor.outdentImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTIwLTEyMHYtODBoNzIwdjgwSDEyMFptMzIwLTE2MHYtODBoNDAwdjgwSDQ0MFptMC0xNjB2LTgwaDQwMHY4MEg0NDBabTAtMTYwdi04MGg0MDB2ODBINDQwWk0xMjAtNzYwdi04MGg3MjB2ODBIMTIwWm0xNjAgNDQwTDEyMC00ODBsMTYwLTE2MHYzMjBaIi8+PC9zdmc+";
-Editor.removeFormatImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJtNTI4LTU0Ni05My05My0xMjEtMTIxaDQ4NnYxMjBINTY4bC00MCA5NFpNNzkyLTU2IDQ2MC0zODhsLTgwIDE4OEgyNDlsMTE5LTI4MEw1Ni03OTJsNTYtNTYgNzM2IDczNi01NiA1NloiLz48L3N2Zz4=";Editor.codeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzIwLTI0MCA4MC00ODBsMjQwLTI0MCA1NyA1Ny0xODQgMTg0IDE4MyAxODMtNTYgNTZabTMyMCAwLTU3LTU3IDE4NC0xODQtMTgzLTE4MyA1Ni01NiAyNDAgMjQwLTI0MCAyNDBaIi8+PC9zdmc+";
-Editor.linkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTI4MEgyODBxLTgzIDAtMTQxLjUtNTguNVQ4MC00ODBxMC04MyA1OC41LTE0MS41VDI4MC02ODBoMTYwdjgwSDI4MHEtNTAgMC04NSAzNXQtMzUgODVxMCA1MCAzNSA4NXQ4NSAzNWgxNjB2ODBaTTMyMC00NDB2LTgwaDMyMHY4MEgzMjBabTIwMCAxNjB2LTgwaDE2MHE1MCAwIDg1LTM1dDM1LTg1cTAtNTAtMzUtODV0LTg1LTM1SDUyMHYtODBoMTYwcTgzIDAgMTQxLjUgNTguNVQ4ODAtNDgwcTAgODMtNTguNSAxNDEuNVQ2ODAtMjgwSDUyMFoiLz48L3N2Zz4=";
+Editor.removeFormatImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJtNTI4LTU0Ni05My05My0xMjEtMTIxaDQ4NnYxMjBINTY4bC00MCA5NFpNNzkyLTU2IDQ2MC0zODhsLTgwIDE4OEgyNDlsMTE5LTI4MEw1Ni03OTJsNTYtNTYgNzM2IDczNi01NiA1NloiLz48L3N2Zz4=";Editor.textFormatImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTIwMHYtODBoNTYwdjgwSDIwMFptNzYtMTYwIDE2NC00NDBoODBsMTY0IDQ0MGgtNzZsLTM4LTExMkgzOTJsLTQwIDExMmgtNzZabTEzOC0xNzZoMTMybC02NC0xODJoLTRsLTY0IDE4MloiLz48L3N2Zz4=";
+Editor.codeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMzIwLTI0MCA4MC00ODBsMjQwLTI0MCA1NyA1Ny0xODQgMTg0IDE4MyAxODMtNTYgNTZabTMyMCAwLTU3LTU3IDE4NC0xODQtMTgzLTE4MyA1Ni01NiAyNDAgMjQwLTI0MCAyNDBaIi8+PC9zdmc+";Editor.linkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDQwLTI4MEgyODBxLTgzIDAtMTQxLjUtNTguNVQ4MC00ODBxMC04MyA1OC41LTE0MS41VDI4MC02ODBoMTYwdjgwSDI4MHEtNTAgMC04NSAzNXQtMzUgODVxMCA1MCAzNSA4NXQ4NSAzNWgxNjB2ODBaTTMyMC00NDB2LTgwaDMyMHY4MEgzMjBabTIwMCAxNjB2LTgwaDE2MHE1MCAwIDg1LTM1dDM1LTg1cTAtNTAtMzUtODV0LTg1LTM1SDUyMHYtODBoMTYwcTgzIDAgMTQxLjUgNTguNVQ4ODAtNDgwcTAgODMtNTguNSAxNDEuNVQ2ODAtMjgwSDUyMFoiLz48L3N2Zz4=";
Editor.imageImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNTYwcTAtMzMgMjMuNS01Ni41VDIwMC04NDBoNTYwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NTYwcTAgMzMtMjMuNSA1Ni41VDc2MC0xMjBIMjAwWm0wLTgwaDU2MHYtNTYwSDIwMHY1NjBabTQwLTgwaDQ4MEw1NzAtNDgwIDQ1MC0zMjBsLTkwLTEyMC0xMjAgMTYwWm0tNDAgODB2LTU2MCA1NjBaIi8+PC9zdmc+";
Editor.horizontalRuleImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTQ0MHYtODBoNjQwdjgwSDE2MFoiLz48L3N2Zz4=";Editor.tableImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTEyMHEtMzMgMC01Ni41LTIzLjVUMTIwLTIwMHYtNTYwcTAtMzMgMjMuNS01Ni41VDIwMC04NDBoNTYwcTMzIDAgNTYuNSAyMy41VDg0MC03NjB2NTYwcTAgMzMtMjMuNSA1Ni41VDc2MC0xMjBIMjAwWm0yNDAtMjQwSDIwMHYxNjBoMjQwdi0xNjBabTgwIDB2MTYwaDI0MHYtMTYwSDUyMFptLTgwLTgwdi0xNjBIMjAwdjE2MGgyNDBabTgwIDBoMjQwdi0xNjBINTIwdjE2MFpNMjAwLTY4MGg1NjB2LTgwSDIwMHY4MFoiLz48L3N2Zz4=";
-Editor.autosizeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDAtNDB2LTI0MGg4MHYtNDAwSDQwdi0yNDBoMjQwdjgwaDQwMHYtODBoMjQwdjI0MGgtODB2NDAwaDgwdjI0MEg2ODB2LTgwSDI4MHY4MEg0MFptMjQwLTE2MGg0MDB2LTgwaDgwdi00MDBoLTgwdi04MEgyODB2ODBoLTgwdjQwMGg4MHY4MFptMzItMTIwIDEzNi0zNjBoNjRsMTM2IDM2MGgtNjJsLTMyLTkySDQwOGwtMzIgOTJoLTY0Wm0xMTQtMTQ0aDEwOGwtNTItMTUwaC00bC01MiAxNTBaTTEyMC03NjBoODB2LTgwaC04MHY4MFptNjQwIDBoODB2LTgwaC04MHY4MFptMCA2NDBoODB2LTgwaC04MHY4MFptLTY0MCAwaDgwdi04MGgtODB2ODBabTgwLTY0MFptNTYwIDBabTAgNTYwWm0tNTYwIDBaIi8+PC9zdmc+";
-Editor.checkmarkImage="data:image/gif;base64,R0lGODlhFQAVAMQfAGxsbHx8fIqKioaGhvb29nJycvr6+sDAwJqamltbW5OTk+np6YGBgeTk5Ly8vJiYmP39/fLy8qWlpa6ursjIyOLi4vj4+N/f3+3t7fT09LCwsHZ2dubm5r6+vmZmZv///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IFdpbmRvd3MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OEY4NTZERTQ5QUFBMTFFMUE5MTVDOTM5MUZGMTE3M0QiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OEY4NTZERTU5QUFBMTFFMUE5MTVDOTM5MUZGMTE3M0QiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4Rjg1NkRFMjlBQUExMUUxQTkxNUM5MzkxRkYxMTczRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4Rjg1NkRFMzlBQUExMUUxQTkxNUM5MzkxRkYxMTczRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAB8ALAAAAAAVABUAAAVI4CeOZGmeaKqubKtylktSgCOLRyLd3+QJEJnh4VHcMoOfYQXQLBcBD4PA6ngGlIInEHEhPOANRkaIFhq8SuHCE1Hb8Lh8LgsBADs=";
+Editor.spacingImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjQwLTgwIDgwLTI0MGwxNjAtMTYwIDU3IDU2LTY0IDY0aDQ5NGwtNjMtNjQgNTYtNTYgMTYwIDE2MEw3MjAtODBsLTU3LTU2IDY0LTY0SDIzM2w2MyA2NC01NiA1NlptMzYtMzYwIDE2NC00NDBoODBsMTY0IDQ0MGgtNzZsLTM4LTExMkgzOTJsLTQwIDExMmgtNzZabTEzOC0xNzZoMTMybC02NC0xODJoLTRsLTY0IDE4MloiLz48L3N2Zz4=";Editor.addColumnLeftImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNODAwLTIwMHYtNTYwSDU2MHY1NjBoMjQwWm0tNjQwIDgwdi0xNjBoODB2ODBoMjQwdi01NjBIMjQwdjgwaC04MHYtMTYwaDcyMHY3MjBIMTYwWm0zMjAtMzYwWm04MCAwaC04MCA4MFptMCAwWk0xNjAtMzYwdi04MEg4MHYtODBoODB2LTgwaDgwdjgwaDgwdjgwaC04MHY4MGgtODBaIi8+PC9zdmc+";
+Editor.addColumnRightImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMTYwLTc2MHY1NjBoMjQwdi01NjBIMTYwWk04MC0xMjB2LTcyMGg3MjB2MTYwaC04MHYtODBINDgwdjU2MGgyNDB2LTgwaDgwdjE2MEg4MFptNDAwLTM2MFptLTgwIDBoODAtODBabTAgMFptMzIwIDEyMHYtODBoLTgwdi04MGg4MHYtODBoODB2ODBoODB2ODBoLTgwdjgwaC04MFoiLz48L3N2Zz4=";Editor.removeColumnImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIiB0cmFuc2Zvcm09InJvdGF0ZSg5MCkgc2NhbGUoMSwtMSkiPjxwYXRoIGQ9Ik01NjAtMjgwSDEyMHYtNDAwaDcyMHYxMjBoLTgwdi00MEgyMDB2MjQwaDM2MHY4MFptLTM2MC04MHYtMjQwIDI0MFptNDQwIDEwNCA4NC04NC04NC04NCA1Ni01NiA4NCA4NCA4NC04NCA1NiA1Ni04MyA4NCA4MyA4NC01NiA1Ni04NC04My04NCA4My01Ni01NloiLz48L3N2Zz4=";
+Editor.addRowAboveImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTE2MGg1NjB2LTI0MEgyMDB2MjQwWm02NDAgODBIMTIwdi03MjBoMTYwdjgwaC04MHYyNDBoNTYwdi0yNDBoLTgwdi04MGgxNjB2NzIwWk00ODAtNDgwWm0wIDgwdi04MCA4MFptMCAwWm0tNDAtMjQwdi04MGgtODB2LTgwaDgwdi04MGg4MHY4MGg4MHY4MGgtODB2ODBoLTgwWiIvPjwvc3ZnPg==";Editor.addRowBelowImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjAwLTU2MGg1NjB2LTI0MEgyMDB2MjQwWm0tODAgNDAwdi03MjBoNzIwdjcyMEg2ODB2LTgwaDgwdi0yNDBIMjAwdjI0MGg4MHY4MEgxMjBabTM2MC0zMjBabTAtODB2ODAtODBabTAgMFpNNDQwLTgwdi04MGgtODB2LTgwaDgwdi04MGg4MHY4MGg4MHY4MGgtODB2ODBoLTgwWiIvPjwvc3ZnPg==";
+Editor.removeRowImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNTYwLTI4MEgxMjB2LTQwMGg3MjB2MTIwaC04MHYtNDBIMjAwdjI0MGgzNjB2ODBabS0zNjAtODB2LTI0MCAyNDBabTQ0MCAxMDQgODQtODQtODQtODQgNTYtNTYgODQgODQgODQtODQgNTYgNTYtODMgODQgODMgODQtNTYgNTYtODQtODMtODQgODMtNTYtNTZaIi8+PC9zdmc+";Editor.autosizeImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDAtNDB2LTI0MGg4MHYtNDAwSDQwdi0yNDBoMjQwdjgwaDQwMHYtODBoMjQwdjI0MGgtODB2NDAwaDgwdjI0MEg2ODB2LTgwSDI4MHY4MEg0MFptMjQwLTE2MGg0MDB2LTgwaDgwdi00MDBoLTgwdi04MEgyODB2ODBoLTgwdjQwMGg4MHY4MFptMzItMTIwIDEzNi0zNjBoNjRsMTM2IDM2MGgtNjJsLTMyLTkySDQwOGwtMzIgOTJoLTY0Wm0xMTQtMTQ0aDEwOGwtNTItMTUwaC00bC01MiAxNTBaTTEyMC03NjBoODB2LTgwaC04MHY4MFptNjQwIDBoODB2LTgwaC04MHY4MFptMCA2NDBoODB2LTgwaC04MHY4MFptLTY0MCAwaDgwdi04MGgtODB2ODBabTgwLTY0MFptNTYwIDBabTAgNTYwWm0tNTYwIDBaIi8+PC9zdmc+";
+Editor.checkmarkImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjJweCIgaGVpZ2h0PSIxOHB4IiB2ZXJzaW9uPSIxLjEiPjxwYXRoIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQgMCkiIGQ9Ik03LjE4MSwxNS4wMDdhMSwxLDAsMCwxLS43OTMtMC4zOTFMMy4yMjIsMTAuNUExLDEsMCwxLDEsNC44MDgsOS4yNzRMNy4xMzIsMTIuM2w2LjA0NC04Ljg2QTEsMSwwLDEsMSwxNC44Myw0LjU2OWwtNi44MjMsMTBhMSwxLDAsMCwxLS44LjQzN0g3LjE4MVoiIGZpbGw9IiMwMDAwMDAiLz48L3N2Zz4=";
Editor.roughFillStyles=[{val:"auto",dispName:"Auto"},{val:"hachure",dispName:"Hachure"},{val:"solid",dispName:"Solid"},{val:"zigzag",dispName:"ZigZag"},{val:"cross-hatch",dispName:"Cross Hatch"},{val:"dashed",dispName:"Dashed"},{val:"zigzag-line",dispName:"ZigZag Line"}];
Editor.fillStyles=[{val:"auto",dispName:"Auto"},{val:"hatch",dispName:"Hatch"},{val:"solid",dispName:"Solid"},{val:"dots",dispName:"Dots"},{val:"cross-hatch",dispName:"Cross Hatch"},{val:"dashed",dispName:"Dashed"},{val:"zigzag-line",dispName:"ZigZag Line"}];Editor.themes=[];Editor.ctrlKey=mxClient.IS_MAC?"Cmd":"Ctrl";Editor.hintOffset=20;Editor.shapePickerHoverDelay=300;Editor.fitWindowBorders=null;Editor.popupsAllowed=null!=window.urlParams?"1"!=urlParams.noDevice:!0;Editor.simpleLabels=!1;
Editor.enableNativeCipboard=window==window.top&&!mxClient.IS_FF&&null!=navigator.clipboard;Editor.sketchMode=!1;Editor.darkMode=!1;Editor.currentTheme=uiTheme;Editor.darkColor="#121212";Editor.darkColorVar="--ge-dark-color";Editor.fontSizeUnit="px";Editor.pageSizeUnit=mxConstants.INCHES;Editor.isDarkMode=function(){return Editor.darkMode};Editor.isPngDataUrl=function(b){return null!=b&&"data:image/png;"==b.substring(0,15)};
Editor.isPngData=function(b){return 8<b.length&&137==b.charCodeAt(0)&&80==b.charCodeAt(1)&&78==b.charCodeAt(2)&&71==b.charCodeAt(3)&&13==b.charCodeAt(4)&&10==b.charCodeAt(5)&&26==b.charCodeAt(6)&&10==b.charCodeAt(7)};Editor.convertHtmlToText=function(b){if(null!=b){var e=document.createElement("div");e.innerHTML=Graph.sanitizeHtml(b);return mxUtils.extractTextWithWhitespace(e.childNodes)}return null};
-Editor.extractGraphModelFromPng=function(b){var e=null;try{var g=b.substring(b.indexOf(",")+1),m=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0);EditorUi.parsePng(m,mxUtils.bind(this,function(v,p,B){v=m.substring(v+8,v+8+B);"zTXt"==p?(B=v.indexOf(String.fromCharCode(0)),"mxGraphModel"==v.substring(0,B)&&(v=pako.inflateRaw(Graph.stringToArrayBuffer(v.substring(B+2)),{to:"string"}).replace(/\+/g," "),null!=v&&0<v.length&&(e=v))):"tEXt"==p&&(v=v.split(String.fromCharCode(0)),1<v.length&&("mxGraphModel"==
+Editor.extractGraphModelFromPng=function(b){var e=null;try{var g=b.substring(b.indexOf(",")+1),m=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0);EditorUi.parsePng(m,mxUtils.bind(this,function(v,p,A){v=m.substring(v+8,v+8+A);"zTXt"==p?(A=v.indexOf(String.fromCharCode(0)),"mxGraphModel"==v.substring(0,A)&&(v=pako.inflateRaw(Graph.stringToArrayBuffer(v.substring(A+2)),{to:"string"}).replace(/\+/g," "),null!=v&&0<v.length&&(e=v))):"tEXt"==p&&(v=v.split(String.fromCharCode(0)),1<v.length&&("mxGraphModel"==
v[0]||"mxfile"==v[0])&&(e=v[1]));if(null!=e||"IDAT"==p)return!0}))}catch(v){}null!=e&&"%"==e.charAt(0)&&(e=decodeURIComponent(e));null!=e&&"%"==e.charAt(0)&&(e=decodeURIComponent(e));return e};
Editor.soundex=function(b){if(null==b||0==b.length)return"";var e=[],g=1;e[0]=b[0].toUpperCase();for(var m=1,v=b.length;m<v;m++){var p=b[m].toUpperCase().charCodeAt(0)-65;if(0<=p&&25>=p&&"0"!="01230120022455012603010202"[p]&&("01230120022455012603010202"[p]!=e[g-1]&&(e[g]="01230120022455012603010202"[p],g++),3<g))break}if(3>=g)for(;3>=g;)e[g]="0",g++;return e.join("")};
Editor.selectFilename=function(b){var e=b.value.lastIndexOf(".");if(0<e){var g=b.value.substring(e+1);"drawio"!=g&&0<=mxUtils.indexOf(["png","svg","html","xml","pdf"],g)&&(g=b.value.lastIndexOf(".drawio.",e),0<g&&(e=g))}e=0<e?e:b.value.length;Editor.selectSubstring(b,0,e)};
@@ -1956,15 +1967,15 @@ Editor.prototype.getGraphXml=function(b){if(null!=b?b:1){var e=new mxCodec(mxUti
this.graph.isGridEnabled()?"1":"0");b.setAttribute("gridSize",this.graph.gridSize);b.setAttribute("guides",this.graph.graphHandler.guidesEnabled?"1":"0");b.setAttribute("tooltips",this.graph.tooltipHandler.isEnabled()?"1":"0");b.setAttribute("connect",this.graph.connectionHandler.isEnabled()?"1":"0");b.setAttribute("arrows",this.graph.connectionArrowsEnabled?"1":"0");b.setAttribute("fold",this.graph.foldingEnabled?"1":"0");b.setAttribute("page",this.graph.pageVisible?"1":"0");b.setAttribute("pageScale",
this.graph.pageScale);b.setAttribute("pageWidth",this.graph.pageFormat.width);b.setAttribute("pageHeight",this.graph.pageFormat.height);null!=this.graph.background&&b.setAttribute("background",this.graph.background);return b};Editor.prototype.updateGraphComponents=function(){var b=this.graph;null!=b.container&&(b.view.validateBackground(),b.container.style.overflow=b.scrollbars?"auto":this.defaultGraphOverflow,this.fireEvent(new mxEventObject("updateGraphComponents")))};
Editor.prototype.setModified=function(b){this.modified=b};Editor.prototype.setFilename=function(b){this.filename=b};
-Editor.prototype.createUndoManager=function(){var b=this.graph,e=new mxUndoManager;this.undoListener=function(m,v){e.undoableEditHappened(v.getProperty("edit"))};var g=mxUtils.bind(this,function(m,v){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,g);b.getView().addListener(mxEvent.UNDO,g);g=function(m,v){m=v.getProperty("edit").changes;m=b.getSelectionCellsForChanges(m);v=!1;if(0<m.length){for(var p=[],B=0;B<m.length;B++)null!=b.view.getState(m[B])&&(p.push(m[B]),
-v||(b.scrollCellToVisible(m[B]),v=!0));b.setSelectionCells(p)}};e.addListener(mxEvent.UNDO,g);e.addListener(mxEvent.REDO,g);return e};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};
+Editor.prototype.createUndoManager=function(){var b=this.graph,e=new mxUndoManager;this.undoListener=function(m,v){e.undoableEditHappened(v.getProperty("edit"))};var g=mxUtils.bind(this,function(m,v){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,g);b.getView().addListener(mxEvent.UNDO,g);g=function(m,v){m=v.getProperty("edit").changes;m=b.getSelectionCellsForChanges(m);v=!1;if(0<m.length){for(var p=[],A=0;A<m.length;A++)null!=b.view.getState(m[A])&&(p.push(m[A]),
+v||(b.scrollCellToVisible(m[A]),v=!0));b.setSelectionCells(p)}};e.addListener(mxEvent.UNDO,g);e.addListener(mxEvent.REDO,g);return e};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};
OpenFile.prototype.error=function(b){this.cancel(!0);mxUtils.alert(b)};OpenFile.prototype.execute=function(){null!=this.consumer&&null!=this.args&&(this.cancel(!1),this.consumer.apply(this,this.args))};OpenFile.prototype.cancel=function(b){null!=this.done&&this.done(null!=b?b:!0)};
-function Dialog(b,e,g,m,v,p,B,G,S,F,P){this.editorUi=b;var R=S?57:0,T=g,c=m,f=S?0:64,k=Editor.inlineFullscreen||null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);null==b.embedViewport&&null!=window.innerHeight&&(k.height=window.innerHeight);var A=k.height;k=Math.max(1,Math.round((k.width-g-f)/2));var z=Math.max(1,Math.round((A-m-b.footerHeight)/3));e.style.maxHeight="100%";g=null!=document.body?Math.min(g,document.body.scrollWidth-f):g;m=Math.min(m,A-f);0<b.dialogs.length&&
-(this.zIndex+=2*b.dialogs.length);null==this.bg&&(this.bg=b.createDiv("geBackground"),this.bg.style.position="absolute",this.bg.style.height=A+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));var C=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=C.x+"px";this.bg.style.top=C.y+"px";k+=C.x;z+=C.y;Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px",z+=b.embedViewport.y,k+=b.embedViewport.x);
+function Dialog(b,e,g,m,v,p,A,G,S,F,P){this.editorUi=b;var R=S?57:0,T=g,c=m,f=S?0:64,k=Editor.inlineFullscreen||null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);null==b.embedViewport&&null!=window.innerHeight&&(k.height=window.innerHeight);var B=k.height;k=Math.max(1,Math.round((k.width-g-f)/2));var z=Math.max(1,Math.round((B-m-b.footerHeight)/3));e.style.maxHeight="100%";g=null!=document.body?Math.min(g,document.body.scrollWidth-f):g;m=Math.min(m,B-f);0<b.dialogs.length&&
+(this.zIndex+=2*b.dialogs.length);null==this.bg&&(this.bg=b.createDiv("geBackground"),this.bg.style.position="absolute",this.bg.style.height=B+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));var C=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=C.x+"px";this.bg.style.top=C.y+"px";k+=C.x;z+=C.y;Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px",z+=b.embedViewport.y,k+=b.embedViewport.x);
v&&document.body.appendChild(this.bg);var I=b.createDiv(S?"geTransDialog":"geDialog");v=this.getPosition(k,z,g,m);k=v.x;z=v.y;I.style.width=g+"px";I.style.height=m+"px";I.style.left=k+"px";I.style.top=z+"px";I.style.zIndex=this.zIndex;I.appendChild(e);document.body.appendChild(I);!G&&e.clientHeight>I.clientHeight-f&&(e.style.overflowY="auto");e.style.overflowX="hidden";if(p&&(p=document.createElement("img"),p.setAttribute("src",Dialog.prototype.closeImage),p.setAttribute("title",mxResources.get("close")),
p.className="geDialogClose",p.style.top=z+14+"px",p.style.left=k+g+38-R+"px",p.style.zIndex=this.zIndex,mxEvent.addListener(p,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),document.body.appendChild(p),this.dialogImg=p,!P)){var L=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(K){L=!0}),null,mxUtils.bind(this,function(K){L&&(b.hideDialog(!0),L=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=F){var K=F();null!=K&&(T=g=K.w,c=m=K.h)}K=Editor.inlineFullscreen||
-null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);A=K.height;this.bg.style.height=A+"px";Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px");g=null!=document.body?Math.min(T,document.body.scrollWidth-f):T;m=Math.min(c,A-f);K=Math.max(1,Math.round((K.width-g-f)/2));var O=Math.max(1,Math.round((A-m-b.footerHeight)/3));O=this.getPosition(K,O,g,m);K=O.x;O=O.y;var da=mxUtils.getDocumentScrollOrigin(document);K+=da.x;O+=da.y;
-Editor.inlineFullscreen||null==b.embedViewport||(O+=b.embedViewport.y,K+=b.embedViewport.x);I.style.left=K+"px";I.style.top=O+"px";I.style.width=g+"px";I.style.height=m+"px";!G&&e.clientHeight>I.clientHeight-f&&(e.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=O+14+"px",this.dialogImg.style.left=K+g+38-R+"px")});null!=b.embedViewport?b.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=B;this.container=
+null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);B=K.height;this.bg.style.height=B+"px";Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px");g=null!=document.body?Math.min(T,document.body.scrollWidth-f):T;m=Math.min(c,B-f);K=Math.max(1,Math.round((K.width-g-f)/2));var O=Math.max(1,Math.round((B-m-b.footerHeight)/3));O=this.getPosition(K,O,g,m);K=O.x;O=O.y;var da=mxUtils.getDocumentScrollOrigin(document);K+=da.x;O+=da.y;
+Editor.inlineFullscreen||null==b.embedViewport||(O+=b.embedViewport.y,K+=b.embedViewport.x);I.style.left=K+"px";I.style.top=O+"px";I.style.width=g+"px";I.style.height=m+"px";!G&&e.clientHeight>I.clientHeight-f&&(e.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=O+14+"px",this.dialogImg.style.left=K+g+38-R+"px")});null!=b.embedViewport?b.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=A;this.container=
I;b.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.prototype.zIndex=mxPopupMenu.prototype.zIndex-2;
Dialog.prototype.noColorImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkEzRDlBMUUwODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkEzRDlBMUUxODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QTNEOUExREU4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QTNEOUExREY4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xh3fmAAAABlBMVEX////MzMw46qqDAAAAGElEQVR42mJggAJGKGAYIIGBth8KAAIMAEUQAIElnLuQAAAAAElFTkSuQmCC":IMAGE_PATH+
"/nocolor.png";Dialog.prototype.closeImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAQMAAADaX5RTAAAABlBMVEV7mr3///+wksspAAAAAnRSTlP/AOW3MEoAAAAdSURBVAgdY9jXwCDDwNDRwHCwgeExmASygSL7GgB12QiqNHZZIwAAAABJRU5ErkJggg==":IMAGE_PATH+"/close.png";
@@ -1972,92 +1983,92 @@ Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKA
"/clear.gif";Dialog.prototype.bgOpacity=80;Dialog.prototype.getDocumentSize=function(){return mxUtils.getDocumentSize()};Dialog.prototype.getPosition=function(b,e){return new mxPoint(b,e)};
Dialog.prototype.close=function(b,e){if(null!=this.onDialogClose){if(0==this.onDialogClose(b,e))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&&
this.container.parentNode.removeChild(this.container)};
-var ErrorDialog=function(b,e,g,m,v,p,B,G,S,F,P){S=null!=S?S:!0;var R=document.createElement("div");R.style.textAlign="center";if(null!=e){var T=document.createElement("div");T.style.padding="0px";T.style.margin="0px";T.style.fontSize="18px";T.style.paddingBottom="16px";T.style.marginBottom="10px";T.style.borderBottom="1px solid #c0c0c0";T.style.color="gray";T.style.whiteSpace="nowrap";T.style.textOverflow="ellipsis";T.style.overflow="hidden";mxUtils.write(T,e);T.setAttribute("title",e);R.appendChild(T)}e=
+var ErrorDialog=function(b,e,g,m,v,p,A,G,S,F,P){S=null!=S?S:!0;var R=document.createElement("div");R.style.textAlign="center";if(null!=e){var T=document.createElement("div");T.style.padding="0px";T.style.margin="0px";T.style.fontSize="18px";T.style.paddingBottom="16px";T.style.marginBottom="10px";T.style.borderBottom="1px solid #c0c0c0";T.style.color="gray";T.style.whiteSpace="nowrap";T.style.textOverflow="ellipsis";T.style.overflow="hidden";mxUtils.write(T,e);T.setAttribute("title",e);R.appendChild(T)}e=
document.createElement("div");e.style.lineHeight="1.2em";e.style.padding="6px";"string"===typeof g&&(g=g.replace(/\n/g,"<br/>"));e.innerHTML=Graph.sanitizeHtml(g);R.appendChild(e);g=document.createElement("div");g.style.marginTop="12px";g.style.textAlign="center";null!=p&&(e=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();p()}),e.className="geBtn",g.appendChild(e),g.style.textAlign="center");null!=F&&(F=mxUtils.button(F,function(){null!=P&&P()}),F.className="geBtn",g.appendChild(F));
-var c=mxUtils.button(m,function(){S&&b.hideDialog();null!=v&&v()});c.className="geBtn";g.appendChild(c);null!=B&&(m=mxUtils.button(B,function(){S&&b.hideDialog();null!=G&&G()}),m.className="geBtn gePrimaryBtn",g.appendChild(m));this.init=function(){c.focus()};R.appendChild(g);this.container=R},PrintDialog=function(b,e,g){this.create(b,e,g)};
-PrintDialog.prototype.create=function(b){function e(c){var f=B.checked||F.checked,k=parseInt(R.value)/100;isNaN(k)&&(k=1,R.value="100%");mxClient.IS_SF&&(k*=.75);var A=g.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,z=1/g.pageScale;if(f){var C=B.checked?1:parseInt(P.value);isNaN(C)||(z=mxUtils.getScaleForPageCount(C,g,A))}var I=C=0;A=mxRectangle.fromRectangle(A);A.width=Math.ceil(A.width*k);A.height=Math.ceil(A.height*k);z*=k;!f&&g.pageVisible?(k=g.getPageLayout(),C-=k.x*A.width,I-=k.y*A.height):
-f=!0;f=PrintDialog.createPrintPreview(g,z,A,0,C,I,f);f.open();c&&PrintDialog.printPreview(f)}var g=b.editor.graph,m=document.createElement("table");m.style.width="100%";m.style.height="100%";var v=document.createElement("tbody");var p=document.createElement("tr");var B=document.createElement("input");B.setAttribute("type","checkbox");var G=document.createElement("td");G.setAttribute("colspan","2");G.style.fontSize="10pt";G.appendChild(B);var S=document.createElement("span");mxUtils.write(S," "+mxResources.get("fitPage"));
-G.appendChild(S);mxEvent.addListener(S,"click",function(c){B.checked=!B.checked;F.checked=!B.checked;mxEvent.consume(c)});mxEvent.addListener(B,"change",function(){F.checked=!B.checked});p.appendChild(G);v.appendChild(p);p=p.cloneNode(!1);var F=document.createElement("input");F.setAttribute("type","checkbox");G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(F);S=document.createElement("span");mxUtils.write(S," "+mxResources.get("posterPrint")+":");G.appendChild(S);mxEvent.addListener(S,
-"click",function(c){F.checked=!F.checked;B.checked=!F.checked;mxEvent.consume(c)});p.appendChild(G);var P=document.createElement("input");P.setAttribute("value","1");P.setAttribute("type","number");P.setAttribute("min","1");P.setAttribute("size","4");P.setAttribute("disabled","disabled");P.style.width="50px";G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(P);mxUtils.write(G," "+mxResources.get("pages")+" (max)");p.appendChild(G);v.appendChild(p);mxEvent.addListener(F,"change",
-function(){F.checked?P.removeAttribute("disabled"):P.setAttribute("disabled","disabled");B.checked=!F.checked});p=p.cloneNode(!1);G=document.createElement("td");mxUtils.write(G,mxResources.get("pageScale")+":");p.appendChild(G);G=document.createElement("td");var R=document.createElement("input");R.setAttribute("value","100 %");R.setAttribute("size","5");R.style.width="50px";G.appendChild(R);p.appendChild(G);v.appendChild(p);p=document.createElement("tr");G=document.createElement("td");G.colSpan=2;
+var c=mxUtils.button(m,function(){S&&b.hideDialog();null!=v&&v()});c.className="geBtn";g.appendChild(c);null!=A&&(m=mxUtils.button(A,function(){S&&b.hideDialog();null!=G&&G()}),m.className="geBtn gePrimaryBtn",g.appendChild(m));this.init=function(){c.focus()};R.appendChild(g);this.container=R},PrintDialog=function(b,e,g){this.create(b,e,g)};
+PrintDialog.prototype.create=function(b){function e(c){var f=A.checked||F.checked,k=parseInt(R.value)/100;isNaN(k)&&(k=1,R.value="100%");mxClient.IS_SF&&(k*=.75);var B=g.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,z=1/g.pageScale;if(f){var C=A.checked?1:parseInt(P.value);isNaN(C)||(z=mxUtils.getScaleForPageCount(C,g,B))}var I=C=0;B=mxRectangle.fromRectangle(B);B.width=Math.ceil(B.width*k);B.height=Math.ceil(B.height*k);z*=k;!f&&g.pageVisible?(k=g.getPageLayout(),C-=k.x*B.width,I-=k.y*B.height):
+f=!0;f=PrintDialog.createPrintPreview(g,z,B,0,C,I,f);f.open();c&&PrintDialog.printPreview(f)}var g=b.editor.graph,m=document.createElement("table");m.style.width="100%";m.style.height="100%";var v=document.createElement("tbody");var p=document.createElement("tr");var A=document.createElement("input");A.setAttribute("type","checkbox");var G=document.createElement("td");G.setAttribute("colspan","2");G.style.fontSize="10pt";G.appendChild(A);var S=document.createElement("span");mxUtils.write(S," "+mxResources.get("fitPage"));
+G.appendChild(S);mxEvent.addListener(S,"click",function(c){A.checked=!A.checked;F.checked=!A.checked;mxEvent.consume(c)});mxEvent.addListener(A,"change",function(){F.checked=!A.checked});p.appendChild(G);v.appendChild(p);p=p.cloneNode(!1);var F=document.createElement("input");F.setAttribute("type","checkbox");G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(F);S=document.createElement("span");mxUtils.write(S," "+mxResources.get("posterPrint")+":");G.appendChild(S);mxEvent.addListener(S,
+"click",function(c){F.checked=!F.checked;A.checked=!F.checked;mxEvent.consume(c)});p.appendChild(G);var P=document.createElement("input");P.setAttribute("value","1");P.setAttribute("type","number");P.setAttribute("min","1");P.setAttribute("size","4");P.setAttribute("disabled","disabled");P.style.width="50px";G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(P);mxUtils.write(G," "+mxResources.get("pages")+" (max)");p.appendChild(G);v.appendChild(p);mxEvent.addListener(F,"change",
+function(){F.checked?P.removeAttribute("disabled"):P.setAttribute("disabled","disabled");A.checked=!F.checked});p=p.cloneNode(!1);G=document.createElement("td");mxUtils.write(G,mxResources.get("pageScale")+":");p.appendChild(G);G=document.createElement("td");var R=document.createElement("input");R.setAttribute("value","100 %");R.setAttribute("size","5");R.style.width="50px";G.appendChild(R);p.appendChild(G);v.appendChild(p);p=document.createElement("tr");G=document.createElement("td");G.colSpan=2;
G.style.paddingTop="20px";G.setAttribute("align","right");S=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});S.className="geBtn";b.editor.cancelFirst&&G.appendChild(S);if(PrintDialog.previewEnabled){var T=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();e(!1)});T.className="geBtn";G.appendChild(T)}T=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();e(!0)});T.className="geBtn gePrimaryBtn";G.appendChild(T);b.editor.cancelFirst||
G.appendChild(S);p.appendChild(G);v.appendChild(p);m.appendChild(v);this.container=m};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(e){}};
-PrintDialog.createPrintPreview=function(b,e,g,m,v,p,B){e=new mxPrintPreview(b,e,g,m,v,p);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=B;B=b.background;if(null==B||""==B||B==mxConstants.NONE)B="#ffffff";e.backgroundColor=B;var G=e.isTextLabel;e.isTextLabel=function(F){return"geHint"==!F.className&&G.apply(this,arguments)};var S=e.getLinkForCellState;e.getLinkForCellState=function(F){return b.getAbsoluteUrl(S.apply(this,arguments))};return e};
+PrintDialog.createPrintPreview=function(b,e,g,m,v,p,A){e=new mxPrintPreview(b,e,g,m,v,p);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=A;A=b.background;if(null==A||""==A||A==mxConstants.NONE)A="#ffffff";e.backgroundColor=A;var G=e.isTextLabel;e.isTextLabel=function(F){return"geHint"==!F.className&&G.apply(this,arguments)};var S=e.getLinkForCellState;e.getLinkForCellState=function(F){return b.getAbsoluteUrl(S.apply(this,arguments))};return e};
PrintDialog.previewEnabled=!0;
var PageSetupDialog=function(b){function e(){var k=R;null!=k&&null!=k.originalSrc&&(k=b.createImageForPageLink(k.originalSrc,null));null!=k&&null!=k.src?(P.style.backgroundImage="url("+k.src+")",P.style.display="inline-block"):(P.style.backgroundImage="",P.style.display="none");P.style.backgroundColor="";null!=T&&T!=mxConstants.NONE&&(P.style.backgroundColor=T,P.style.display="inline-block")}var g=b.editor.graph,m=document.createElement("table");m.style.width="100%";m.style.height="100%";var v=document.createElement("tbody");
-var p=document.createElement("tr");var B=document.createElement("td");B.style.verticalAlign="top";B.style.fontSize="10pt";mxUtils.write(B,mxResources.get("paperSize")+":");p.appendChild(B);B=document.createElement("td");B.style.verticalAlign="top";B.style.fontSize="10pt";var G=PageSetupDialog.addPageFormatPanel(B,"pagesetupdialog",g.pageFormat);p.appendChild(B);v.appendChild(p);p=document.createElement("tr");B=document.createElement("td");mxUtils.write(B,mxResources.get("gridSize")+":");p.appendChild(B);
-B=document.createElement("td");B.style.whiteSpace="nowrap";var S=document.createElement("input");S.setAttribute("type","number");S.setAttribute("min","0");S.style.width="40px";S.style.marginLeft="6px";S.value=g.getGridSize();B.appendChild(S);mxEvent.addListener(S,"change",function(){var k=parseInt(S.value);S.value=Math.max(1,isNaN(k)?g.getGridSize():k)});p.appendChild(B);v.appendChild(p);p=document.createElement("tr");B=document.createElement("td");mxUtils.write(B,mxResources.get("background")+":");
-p.appendChild(B);B=document.createElement("td");var F=document.createElement("button");F.className="geBtn";F.style.margin="0px";mxUtils.write(F,mxResources.get("change")+"...");var P=document.createElement("div");P.style.display="inline-block";P.style.verticalAlign="middle";P.style.backgroundPosition="center center";P.style.backgroundRepeat="no-repeat";P.style.backgroundSize="contain";P.style.border="1px solid lightGray";P.style.borderRadius="4px";P.style.marginRight="14px";P.style.height="32px";
-P.style.width="64px";P.style.cursor="pointer";P.style.padding="4px";var R=g.backgroundImage,T=g.background,c=g.shadowVisible,f=function(k){b.showBackgroundImageDialog(function(A,z,C,I){z||(null!=A&&null!=A.src&&Graph.isPageLink(A.src)&&(A={originalSrc:A.src}),R=A,c=I);T=C;e()},R,T,!0);mxEvent.consume(k)};mxEvent.addListener(F,"click",f);mxEvent.addListener(P,"click",f);e();B.appendChild(P);B.appendChild(F);p.appendChild(B);v.appendChild(p);p=document.createElement("tr");B=document.createElement("td");
-B.colSpan=2;B.style.paddingTop="16px";B.setAttribute("align","right");F=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});F.className="geBtn";b.editor.cancelFirst&&B.appendChild(F);f=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var k=parseInt(S.value);isNaN(k)||g.gridSize===k||g.setGridSize(k);k=new ChangePageSetup(b,T,R,G.get());k.ignoreColor=g.background==T;k.ignoreImage=(null!=g.backgroundImage?g.backgroundImage.src:null)===(null!=R?R.src:null);null!=c&&
-(k.shadowVisible=c);g.pageFormat.width==k.previousFormat.width&&g.pageFormat.height==k.previousFormat.height&&k.ignoreColor&&k.ignoreImage&&k.shadowVisible==g.shadowVisible||g.model.execute(k)});f.className="geBtn gePrimaryBtn";B.appendChild(f);b.editor.cancelFirst||B.appendChild(F);p.appendChild(B);v.appendChild(p);m.appendChild(v);this.container=m};
-PageSetupDialog.addPageFormatPanel=function(b,e,g,m){e="format-"+e;var v=document.createElement("input");v.setAttribute("name",e);v.setAttribute("type","radio");v.setAttribute("value","portrait");var p=document.createElement("input");p.setAttribute("name",e);p.setAttribute("type","radio");p.setAttribute("value","landscape");var B=document.createElement("select");B.style.marginBottom="4px";B.style.borderRadius="4px";B.style.borderWidth="1px";B.style.borderStyle="solid";B.style.boxSizing="border-box";
-B.style.padding="2px";B.style.width="210px";var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.marginLeft="4px";G.style.width="210px";G.style.height="24px";v.style.marginRight="6px";G.appendChild(v);e=document.createElement("span");e.style.maxWidth="100px";mxUtils.write(e,mxResources.get("portrait"));G.appendChild(e);p.style.marginLeft="10px";p.style.marginRight="6px";G.appendChild(p);var S=document.createElement("span");S.style.width="100px";mxUtils.write(S,mxResources.get("landscape"));
+var p=document.createElement("tr");var A=document.createElement("td");A.style.verticalAlign="top";A.style.fontSize="10pt";mxUtils.write(A,mxResources.get("paperSize")+":");p.appendChild(A);A=document.createElement("td");A.style.verticalAlign="top";A.style.fontSize="10pt";var G=PageSetupDialog.addPageFormatPanel(A,"pagesetupdialog",g.pageFormat);p.appendChild(A);v.appendChild(p);p=document.createElement("tr");A=document.createElement("td");mxUtils.write(A,mxResources.get("gridSize")+":");p.appendChild(A);
+A=document.createElement("td");A.style.whiteSpace="nowrap";var S=document.createElement("input");S.setAttribute("type","number");S.setAttribute("min","0");S.style.width="40px";S.style.marginLeft="6px";S.value=g.getGridSize();A.appendChild(S);mxEvent.addListener(S,"change",function(){var k=parseInt(S.value);S.value=Math.max(1,isNaN(k)?g.getGridSize():k)});p.appendChild(A);v.appendChild(p);p=document.createElement("tr");A=document.createElement("td");mxUtils.write(A,mxResources.get("background")+":");
+p.appendChild(A);A=document.createElement("td");var F=document.createElement("button");F.className="geBtn";F.style.margin="0px";mxUtils.write(F,mxResources.get("change")+"...");var P=document.createElement("div");P.style.display="inline-block";P.style.verticalAlign="middle";P.style.backgroundPosition="center center";P.style.backgroundRepeat="no-repeat";P.style.backgroundSize="contain";P.style.border="1px solid lightGray";P.style.borderRadius="4px";P.style.marginRight="14px";P.style.height="32px";
+P.style.width="64px";P.style.cursor="pointer";P.style.padding="4px";var R=g.backgroundImage,T=g.background,c=g.shadowVisible,f=function(k){b.showBackgroundImageDialog(function(B,z,C,I){z||(null!=B&&null!=B.src&&Graph.isPageLink(B.src)&&(B={originalSrc:B.src}),R=B,c=I);T=C;e()},R,T,!0);mxEvent.consume(k)};mxEvent.addListener(F,"click",f);mxEvent.addListener(P,"click",f);e();A.appendChild(P);A.appendChild(F);p.appendChild(A);v.appendChild(p);p=document.createElement("tr");A=document.createElement("td");
+A.colSpan=2;A.style.paddingTop="16px";A.setAttribute("align","right");F=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});F.className="geBtn";b.editor.cancelFirst&&A.appendChild(F);f=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var k=parseInt(S.value);isNaN(k)||g.gridSize===k||g.setGridSize(k);k=new ChangePageSetup(b,T,R,G.get());k.ignoreColor=g.background==T;k.ignoreImage=(null!=g.backgroundImage?g.backgroundImage.src:null)===(null!=R?R.src:null);null!=c&&
+(k.shadowVisible=c);g.pageFormat.width==k.previousFormat.width&&g.pageFormat.height==k.previousFormat.height&&k.ignoreColor&&k.ignoreImage&&k.shadowVisible==g.shadowVisible||g.model.execute(k)});f.className="geBtn gePrimaryBtn";A.appendChild(f);b.editor.cancelFirst||A.appendChild(F);p.appendChild(A);v.appendChild(p);m.appendChild(v);this.container=m};
+PageSetupDialog.addPageFormatPanel=function(b,e,g,m){e="format-"+e;var v=document.createElement("input");v.setAttribute("name",e);v.setAttribute("type","radio");v.setAttribute("value","portrait");var p=document.createElement("input");p.setAttribute("name",e);p.setAttribute("type","radio");p.setAttribute("value","landscape");var A=document.createElement("select");A.style.marginBottom="4px";A.style.borderRadius="4px";A.style.borderWidth="1px";A.style.borderStyle="solid";A.style.boxSizing="border-box";
+A.style.padding="2px";A.style.width="210px";var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.marginLeft="4px";G.style.width="210px";G.style.height="24px";v.style.marginRight="6px";G.appendChild(v);e=document.createElement("span");e.style.maxWidth="100px";mxUtils.write(e,mxResources.get("portrait"));G.appendChild(e);p.style.marginLeft="10px";p.style.marginRight="6px";G.appendChild(p);var S=document.createElement("span");S.style.width="100px";mxUtils.write(S,mxResources.get("landscape"));
G.appendChild(S);var F=document.createElement("div");F.style.whiteSpace="nowrap";F.style.marginLeft="4px";F.style.fontSize="12px";F.style.width="210px";F.style.height="24px";var P=document.createElement("input");P.setAttribute("size","7");P.setAttribute("title",mxResources.get("width"));P.style.textAlign="right";F.appendChild(P);mxUtils.write(F," x ");var R=document.createElement("input");R.setAttribute("size","7");R.setAttribute("title",mxResources.get("height"));R.style.textAlign="right";F.appendChild(R);
var T=document.createElement("select");T.style.marginLeft="4px";T.style.maxWidth="78px";T.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}],f=0;f<c.length;f++){var k=document.createElement("option");k.setAttribute("value",c[f].unit);mxUtils.write(k,c[f].label);T.appendChild(k)}T.value=Editor.pageSizeUnit;F.appendChild(T);G.style.display=
-"none";F.style.display="none";var A={},z=PageSetupDialog.getFormats();for(f=0;f<z.length;f++)c=z[f],A[c.key]=c,k=document.createElement("option"),k.setAttribute("value",c.key),mxUtils.write(k,c.title),B.appendChild(k);var C=function(){B.value="custom";for(var L=0;L<z.length;L++){var K=z[L];null!=K.format&&("a4"==K.key?826==g.width?(g=mxRectangle.fromRectangle(g),g.width=827):826==g.height&&(g=mxRectangle.fromRectangle(g),g.height=827):"a5"==K.key&&(584==g.width?(g=mxRectangle.fromRectangle(g),g.width=
-583):584==g.height&&(g=mxRectangle.fromRectangle(g),g.height=583)),g.width==K.format.width&&g.height==K.format.height?(B.value=K.key,v.setAttribute("checked","checked"),v.defaultChecked=!0,v.checked=!0,p.removeAttribute("checked"),p.defaultChecked=!1,p.checked=!1,detected=!0):g.width==K.format.height&&g.height==K.format.width&&(B.value=K.key,v.removeAttribute("checked"),v.defaultChecked=!1,v.checked=!1,p.setAttribute("checked","checked"),p.defaultChecked=!0,detected=p.checked=!0))}"custom"==B.value?
-(P.value=Editor.toUnit(g.width,T.value),R.value=Editor.toUnit(g.height,T.value),v.setAttribute("checked","checked"),B.value="custom",G.style.display="none",F.style.display=""):(G.style.display="",F.style.display="none")};C();b.appendChild(B);mxUtils.br(b);b.appendChild(G);b.appendChild(F);var I=function(L,K){L=A[B.value];null!=L.format?(P.value=Editor.toUnit(p.checked?L.format.height:L.format.width,T.value),R.value=Editor.toUnit(p.checked?L.format.width:L.format.height,T.value),F.style.display="none",
+"none";F.style.display="none";var B={},z=PageSetupDialog.getFormats();for(f=0;f<z.length;f++)c=z[f],B[c.key]=c,k=document.createElement("option"),k.setAttribute("value",c.key),mxUtils.write(k,c.title),A.appendChild(k);var C=function(){A.value="custom";for(var L=0;L<z.length;L++){var K=z[L];null!=K.format&&("a4"==K.key?826==g.width?(g=mxRectangle.fromRectangle(g),g.width=827):826==g.height&&(g=mxRectangle.fromRectangle(g),g.height=827):"a5"==K.key&&(584==g.width?(g=mxRectangle.fromRectangle(g),g.width=
+583):584==g.height&&(g=mxRectangle.fromRectangle(g),g.height=583)),g.width==K.format.width&&g.height==K.format.height?(A.value=K.key,v.setAttribute("checked","checked"),v.defaultChecked=!0,v.checked=!0,p.removeAttribute("checked"),p.defaultChecked=!1,p.checked=!1,detected=!0):g.width==K.format.height&&g.height==K.format.width&&(A.value=K.key,v.removeAttribute("checked"),v.defaultChecked=!1,v.checked=!1,p.setAttribute("checked","checked"),p.defaultChecked=!0,detected=p.checked=!0))}"custom"==A.value?
+(P.value=Editor.toUnit(g.width,T.value),R.value=Editor.toUnit(g.height,T.value),v.setAttribute("checked","checked"),A.value="custom",G.style.display="none",F.style.display=""):(G.style.display="",F.style.display="none")};C();b.appendChild(A);mxUtils.br(b);b.appendChild(G);b.appendChild(F);var I=function(L,K){L=B[A.value];null!=L.format?(P.value=Editor.toUnit(p.checked?L.format.height:L.format.width,T.value),R.value=Editor.toUnit(p.checked?L.format.width:L.format.height,T.value),F.style.display="none",
G.style.display=""):(G.style.display="none",F.style.display="");L=parseFloat(P.value);if(isNaN(L)||0>=L)P.value=Editor.toUnit(g.width,T.value);L=parseFloat(R.value);if(isNaN(L)||0>=L)R.value=Editor.toUnit(g.height,T.value);L=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(P.value),T.value)),Math.floor(Editor.fromUnit(parseFloat(R.value),T.value)));K||L.width==g.width&&L.height==g.height||(g=L,null!=m&&m(g))};mxEvent.addListener(e,"click",function(L){v.checked=!0;I(L);mxEvent.consume(L)});
-mxEvent.addListener(S,"click",function(L){p.checked=!0;I(L);mxEvent.consume(L)});mxEvent.addListener(P,"blur",I);mxEvent.addListener(P,"click",I);mxEvent.addListener(R,"blur",I);mxEvent.addListener(R,"click",I);mxEvent.addListener(p,"change",I);mxEvent.addListener(v,"change",I);mxEvent.addListener(B,"change",function(L){I(L,"custom"==B.value);mxEvent.consume(L)});mxEvent.addListener(T,"change",function(L){P.value=Editor.toUnit(Editor.fromUnit(P.value,Editor.pageSizeUnit),T.value);R.value=Editor.toUnit(Editor.fromUnit(R.value,
+mxEvent.addListener(S,"click",function(L){p.checked=!0;I(L);mxEvent.consume(L)});mxEvent.addListener(P,"blur",I);mxEvent.addListener(P,"click",I);mxEvent.addListener(R,"blur",I);mxEvent.addListener(R,"click",I);mxEvent.addListener(p,"change",I);mxEvent.addListener(v,"change",I);mxEvent.addListener(A,"change",function(L){I(L,"custom"==A.value);mxEvent.consume(L)});mxEvent.addListener(T,"change",function(L){P.value=Editor.toUnit(Editor.fromUnit(P.value,Editor.pageSizeUnit),T.value);R.value=Editor.toUnit(Editor.fromUnit(R.value,
Editor.pageSizeUnit),T.value);Editor.pageSizeUnit=T.value;I(L,!0);mxEvent.consume(L)});I(null,!0);return{set:function(L){g=L;C(null,null,!0)},get:function(){return g},widthInput:P,heightInput:R}};
PageSetupDialog.getFormats=function(){return[{key:"letter",title:'US-Letter (8,5" x 11")',format:mxConstants.PAGE_FORMAT_LETTER_PORTRAIT},{key:"legal",title:'US-Legal (8,5" x 14")',format:new mxRectangle(0,0,850,1400)},{key:"tabloid",title:'US-Tabloid (11" x 17")',format:new mxRectangle(0,0,1100,1700)},{key:"executive",title:'US-Executive (7" x 10")',format:new mxRectangle(0,0,700,1E3)},{key:"a0",title:"A0 (841 mm x 1189 mm)",format:new mxRectangle(0,0,3300,4681)},{key:"a1",title:"A1 (594 mm x 841 mm)",
format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",format:new mxRectangle(0,0,1654,2336)},{key:"a3",title:"A3 (297 mm x 420 mm)",format:new mxRectangle(0,0,1169,1654)},{key:"a4",title:"A4 (210 mm x 297 mm)",format:mxConstants.PAGE_FORMAT_A4_PORTRAIT},{key:"a5",title:"A5 (148 mm x 210 mm)",format:new mxRectangle(0,0,583,827)},{key:"a6",title:"A6 (105 mm x 148 mm)",format:new mxRectangle(0,0,413,583)},{key:"a7",title:"A7 (74 mm x 105 mm)",format:new mxRectangle(0,0,291,413)},
{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(b,e,g,m,v,p,B,G,S,F,P){S=null!=S?S:!0;var R=document.createElement("div"),T=document.createElement("div");T.style.width="100%";T.style.display="grid";T.style.gap="5px 8px";T.style.gridAutoColumns="auto 1fr";T.style.boxSizing="border-box";T.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 f=document.createElement("div");f.style.display="inline-block";
-f.style.textOverflow="ellipsis";f.style.whiteSpace="nowrap";f.style.overflow="hidden";f.style.fontSize="10pt";f.style.padding="2px 0";f.setAttribute("title",v||mxResources.get("filename"));mxUtils.write(f,(v||mxResources.get("filename"))+":");c.appendChild(f);T.appendChild(c);var k=document.createElement("input");k.setAttribute("value",e||"");k.style.flexGrow="1";var A=mxUtils.button(g,function(){if(null==p||p(k.value))S&&b.hideDialog(),m(k.value)});A.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
-v||null==B)if(null!=P?Editor.selectFilename(k):(k.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?k.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var z=T.parentNode;if(null!=z){var C=null;mxEvent.addListener(z,"dragleave",function(I){null!=C&&(C.style.backgroundColor="",C=null);I.stopPropagation();I.preventDefault()});mxEvent.addListener(z,"dragover",mxUtils.bind(this,function(I){null==C&&(!mxClient.IS_IE||10<document.documentMode)&&(C=k,C.style.backgroundColor=
-"#ebf2f9");I.stopPropagation();I.preventDefault()}));mxEvent.addListener(z,"drop",mxUtils.bind(this,function(I){null!=C&&(C.style.backgroundColor="",C=null);0<=mxUtils.indexOf(I.dataTransfer.types,"text/uri-list")&&(k.value=decodeURIComponent(I.dataTransfer.getData("text/uri-list")),A.click());I.stopPropagation();I.preventDefault()}))}}};c=document.createElement("div");c.style.display="inline-flex";c.style.alignItems="center";c.style.gap="4px";c.style.whiteSpace="nowrap";c.appendChild(k);T.appendChild(c);
-null==v&&null!=B||null==P||null==b.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")+":"),T.appendChild(c),c=document.createElement("div"),c.style.display="inline-flex",c.style.alignItems="center",c.style.whiteSpace="nowrap",T.appendChild(c),e=FilenameDialog.createFileTypes(b,k,b.editor.diagramFileTypes),
-e.style.width="100%",c.appendChild(e));null!=B&&T.appendChild(B);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=P?"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(){b.hideDialog();null!=F&&F()});c.className="geBtn";null==G||b.isOffline()||row.appendChild(b.createHelpIcon(G));
-b.editor.cancelFirst&&row.appendChild(c);mxEvent.addListener(k,"keypress",function(z){13==z.keyCode&&A.click()});row.appendChild(A);b.editor.cancelFirst||row.appendChild(c);T.appendChild(row);R.appendChild(T);this.container=R};FilenameDialog.filenameHelpLink=null;
-FilenameDialog.createFileTypes=function(b,e,g){var m=document.createElement("select");for(b=0;b<g.length;b++){var v=document.createElement("option");v.setAttribute("value",b);mxUtils.write(v,mxResources.get(g[b].description)+" (."+g[b].extension+")");m.appendChild(v)}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"in
-document?(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,G=0;G<g.length;G++){var S=g[G].extension,F=null;"drawio"!=S&&(F=S,S=".drawio."+S);if(p.substring(p.length-S.length-1)=="."+S||null!=F&&p.substring(p.length-F.length-1)=="."+F){B=G;break}}m.value=B};mxEvent.addListener(e,"change",b);mxEvent.addListener(e,"keyup",b);b();return m};
-var WrapperWindow=function(b,e,g,m,v,p,B){var G=b.createSidebarContainer();B(G);this.window=new mxWindow(e,G,g,m,v,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)}))};
-(function(){mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph;if(null!=B.container&&!B.transparentBackground){if(B.pageVisible){var G=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(G),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(F){B.dblClick(F)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(F){B.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(F))}),mxUtils.bind(this,function(F){null!=
-B.tooltipHandler&&B.tooltipHandler.isHideOnHover()&&B.tooltipHandler.hide();B.isMouseDown&&!mxEvent.isConsumed(F)&&B.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(F))}),mxUtils.bind(this,function(F){B.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(F))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=G,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};
-mxGraphView.prototype.validateBackgroundStyles=function(B,G,S){var F=this.graph;B=null!=B?B:1;var P=mxUtils.getLightDarkColor(null==F.background||F.background==mxConstants.NONE?F.defaultPageBackgroundColor:F.background).cssText,R=mxUtils.getLightDarkColor(F.defaultPageBorderColor).cssText,T=null!=P&&this.gridColor!=P.toLowerCase()?this.gridColor:"#ffffff",c="none",f="";if(F.isGridEnabled()||F.gridVisible){f=10;mxClient.IS_SVG?(c=unescape(encodeURIComponent(this.createSvgGrid(T,B))),c=window.btoa?
-btoa(c):Base64.encode(c,!0),c="url(data:image/svg+xml;base64,"+c+")",f=F.gridSize*this.scale*this.gridSteps*B):c="url("+this.gridImage+")";var k=T=0;G=null!=G?G-this.translate.x*this.scale:0;S=null!=S?S-this.translate.y*this.scale:0;var A=F.gridSize*this.scale*this.gridSteps,z=G%A;A=S%A;null!=F.view.backgroundPageShape&&(k=this.getBackgroundPageBounds(),T=1+k.x,k=1+k.y);f=-Math.round(f-mxUtils.mod(this.translate.x*this.scale-T+G,f)+z*B)+"px "+-Math.round(f-mxUtils.mod(this.translate.y*this.scale-
-k+S,f)+A*B)+"px"}B=F.view.canvas;null!=B.ownerSVGElement&&(B=B.ownerSVGElement);T=!Editor.isDarkMode()&&F.enableDiagramBackground;null!=F.view.backgroundPageShape?(F.view.backgroundPageShape.node.style.backgroundPosition=f,F.view.backgroundPageShape.node.style.backgroundImage=c,F.view.backgroundPageShape.node.style.backgroundColor=P,F.view.backgroundPageShape.node.style.borderColor=R,F.view.backgroundPageShape.node.style.colorScheme="none"==F.getAdaptiveColors()?"light":"",F.container.classList.add("geDiagramBackdrop"),
-B.style.backgroundImage="none",B.style.backgroundColor="",F.container.style.backgroundColor=T?F.diagramBackgroundColor:""):(F.container.classList.remove("geDiagramBackdrop"),B.style.backgroundPosition=f,B.style.backgroundImage=c,!T||null!=F.background&&F.background!=mxConstants.NONE?B.style.backgroundColor=P:(B.style.backgroundColor=F.diagramBackgroundColor,F.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(B,G){for(var S=this.graph.gridSize*this.scale*(null!=G?G:
-1);S<this.minGridSize;)S*=2;G=this.gridSteps*S;for(var F=[],P=1;P<this.gridSteps;P++){var R=P*S;F.push("M 0 "+R+" L "+G+" "+R+" M "+R+" 0 L "+R+" "+G)}B=mxUtils.getLightDarkColor(B);S="color-scheme: light dark;";mxClient.IS_SF&&(S="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+S+'" width="'+G+'" height="'+G+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+G+'" height="'+G+'" patternUnits="userSpaceOnUse"><path d="'+
-F.join(" ")+'" fill="none" style="stroke:'+mxUtils.htmlEntities(B.cssText)+';" stroke="'+B.light+'" opacity="0.2" stroke-width="1"/><path d="M '+G+" 0 L 0 0 0 "+G+'" fill="none" style="stroke:'+mxUtils.htmlEntities(B.cssText)+';" stroke="'+B.light+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var b=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(B,G){b.apply(this,arguments);if(null!=this.shiftPreview1){var S=this.view.canvas;null!=
-S.ownerSVGElement&&(S=S.ownerSVGElement);var F=this.gridSize*this.view.scale*this.view.gridSteps;F=-Math.round(F-mxUtils.mod(this.view.translate.x*this.view.scale+B,F))+"px "+-Math.round(F-mxUtils.mod(this.view.translate.y*this.view.scale+G,F))+"px";S.style.backgroundPosition=F}};mxGraph.prototype.updatePageBreaks=function(B,G,S){var F=this.view.scale,P=this.view.translate,R=this.pageFormat,T=F*this.pageScale,c=this.view.getBackgroundPageBounds();G=c.width;S=c.height;var f=new mxRectangle(F*P.x,F*
-P.y,R.width*T,R.height*T),k=(B=B&&Math.min(f.width,f.height)>this.minPageBreakDist)?Math.ceil(S/f.height)-1:0,A=B?Math.ceil(G/f.width)-1:0,z=c.x+G,C=c.y+S;null==this.horizontalPageBreaks&&0<k&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<A&&(this.verticalPageBreaks=[]);B=mxUtils.bind(this,function(I){if(null!=I){for(var L=I==this.horizontalPageBreaks?k:A,K=0;K<=L;K++){var O=I==this.horizontalPageBreaks?[new mxPoint(Math.round(c.x),Math.round(c.y+(K+1)*f.height)),new mxPoint(Math.round(z),
-Math.round(c.y+(K+1)*f.height))]:[new mxPoint(Math.round(c.x+(K+1)*f.width),Math.round(c.y)),new mxPoint(Math.round(c.x+(K+1)*f.width),Math.round(C))];null!=I[K]?(I[K].points=O,I[K].redraw()):(O=new mxPolyline(O,this.pageBreakColor),O.dialect=this.dialect,O.isDashed=this.pageBreakDashed,O.pointerEvents=!1,O.init(this.view.backgroundPane),O.redraw(),I[K]=O)}for(K=L;K<I.length;K++)null!=I[K]&&I[K].destroy();I.splice(L,I.length-L)}});B(this.horizontalPageBreaks);B(this.verticalPageBreaks)};var e=mxGraphHandler.prototype.shouldRemoveCellsFromParent;
-mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(B,G,S){for(var F=0;F<G.length;F++){if(this.graph.isTableCell(G[F])||this.graph.isTableRow(G[F]))return!1;if(this.graph.getModel().isVertex(G[F])){var P=this.graph.getCellGeometry(G[F]);if(null!=P&&P.relative)return!1}}return e.apply(this,arguments)};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var B=g.apply(this,arguments);B.intersects=mxUtils.bind(this,function(G,S){return this.isConnecting()?
-!0:mxCellMarker.prototype.intersects.apply(B,arguments)});return B};mxGraphView.prototype.createBackgroundPageShape=function(B){return new mxRectangleShape(B,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var B=this.getGraphBounds(),G=0<B.width?B.x/this.scale-this.translate.x:0,S=0<B.height?B.y/this.scale-this.translate.y:0,F=this.graph.pageFormat,P=this.graph.pageScale,R=F.width*P;F=F.height*P;P=Math.floor(Math.min(0,G)/R);var T=Math.floor(Math.min(0,
-S)/F);return new mxRectangle(this.scale*(this.translate.x+P*R),this.scale*(this.translate.y+T*F),this.scale*(Math.ceil(Math.max(1,G+B.width/this.scale)/R)-P)*R,this.scale*(Math.ceil(Math.max(1,S+B.height/this.scale)/F)-T)*F)};var m=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(B,G){m.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=
-B+"px",this.view.backgroundPageShape.node.style.marginTop=G+"px")};var v=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(B,G,S,F,P,R){var T=v.apply(this,arguments);null==R||R||mxEvent.addListener(T,"mousedown",function(c){mxEvent.consume(c)});return T};var p=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(B,G,S){var F=this.graph.model.getParent(B);if(G){var P=this.graph.model.isEdge(B)?null:this.graph.getCellGeometry(B);
-P=!this.graph.model.isEdge(F)&&!this.graph.isSiblingSelected(B)&&(null!=P&&P.relative||!this.graph.isContainer(F)||this.graph.isPart(B))}else if(P=p.apply(this,arguments),this.graph.isTableCell(B)||this.graph.isTableRow(B))P=F,this.graph.isTable(P)||(P=this.graph.model.getParent(P)),P=!this.graph.selectionCellsHandler.isHandled(P)||this.graph.isCellSelected(P)&&this.graph.isToggleEvent(S.getEvent())||this.graph.isCellSelected(B)&&!this.graph.isToggleEvent(S.getEvent())||this.graph.isTableCell(B)&&
-this.graph.isCellSelected(F);return P};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(B){B=B.getCell();for(var G=this.graph.getModel(),S=G.getParent(B),F=this.graph.view.getState(S),P=this.graph.isCellSelected(B);null!=F&&(G.isVertex(S)||G.isEdge(S));){var R=this.graph.isCellSelected(S);P=P||R;if(R||!P&&(this.graph.isTableCell(B)||this.graph.isTableRow(B)))B=S;S=G.getParent(S)}return B}})();EditorUi=function(b,e,g){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=e||document.body;var m=this,v=this.editor.graph;v.lightbox=g;var p=v.getGraphBounds;v.getGraphBounds=function(){var ca=p.apply(this,arguments),W=this.backgroundImage;if(null!=W&&null!=W.width&&null!=W.height){var ma=this.view.translate,la=this.view.scale;ca=mxRectangle.fromRectangle(ca);ca.add(new mxRectangle((ma.x+W.x)*la,(ma.y+W.y)*la,W.width*la,W.height*la))}return ca};v.useCssTransforms&&
-(this.lazyZoomDelay=0);mxPopupMenu.prototype.submenuImage=Graph.createSvgImage(10,10,'<path d="M3,1L8,5L3,9Z" fill="light-dark(#3F3F3F, #C0C0C0)"/>').src;Editor.checkmarkImage=Graph.createSvgImage(22,18,'<path transform="translate(4 0)" d="M7.181,15.007a1,1,0,0,1-.793-0.391L3.222,10.5A1,1,0,1,1,4.808,9.274L7.132,12.3l6.044-8.86A1,1,0,1,1,14.83,4.569l-6.823,10a1,1,0,0,1-.8.437H7.181Z" fill="light-dark(#3F3F3F, #C0C0C0)"/>').src;this.selectionStateListener=mxUtils.bind(this,function(ca,W){this.clearSelectionState()});
-v.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);v.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);v.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);v.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);v.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){this.footerHeight=0;v.isEnabled=function(){return!1};v.panningHandler.isForcePanningEvent=function(ca){for(var W=
-ca.getSource();null!=W&&W!=v.container;){if("foreignObject"===W.nodeName||"text"===W.nodeName)return!1;W=W.parentNode}return!mxEvent.isPopupTrigger(ca.getEvent())};var B=v.panningHandler.start;v.panningHandler.start=function(){B.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!v.standalone){var G=!1,S=!1;this.setDefaultStyle=function(ca){try{v.getModel().isEdge(ca)?S=v.pasteEdgeStyle=!1:G=!1;var W=v.getCellStyle(ca,!1),ma=[],la=[],Y;
-for(Y in W)ma.push(W[Y]),la.push(Y);v.getModel().isEdge(ca)?v.currentEdgeStyle={}:v.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",ma,"cells",[ca],"force",!0));v.getModel().isEdge(ca)?S=v.pasteEdgeStyle=!0:G=!0}catch(fa){this.handleError(fa)}};this.clearDefaultStyle=function(){v.currentEdgeStyle=mxUtils.clone(v.defaultEdgeStyle);v.currentVertexStyle=mxUtils.clone(v.defaultVertexStyle);G=S=v.pasteEdgeStyle=!1;this.fireEvent(new mxEventObject("styleChanged",
-"keys",[],"values",[],"cells",[]))};v.addListener("cellsInserted",function(ca,W){v.pasteCellStyles(v.includeDescendants(W.getProperty("cells")))});v.addListener("textInserted",function(ca,W){v.pasteCellStyles(W.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var F=mxUtils.bind(this,function(ca){null==ca&&(ca=window.event);return v.isEditing()||null!=ca&&this.isSelectionAllowed(ca)});this.container!=document.body||this.editor.chromeless&&!this.editor.editable||(this.menubarContainer.onselectstart=
-F,this.menubarContainer.onmousedown=F,this.toolbarContainer.onselectstart=F,this.toolbarContainer.onmousedown=F,this.diagramContainer.onselectstart=F,this.diagramContainer.onmousedown=F,this.sidebarContainer.onselectstart=F,this.sidebarContainer.onmousedown=F,this.formatContainer.onselectstart=F,this.formatContainer.onmousedown=F,this.footerContainer.onselectstart=F,this.footerContainer.onmousedown=F,null!=this.tabContainer&&(this.tabContainer.onselectstart=F),mxClient.IS_IOS&&(e=function(){var ca=
-null;if(/iP(hone|od|ad)/.test(navigator.platform)){var W=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{ca=[parseInt(W[1],10),parseInt(W[2],10),parseInt(W[3]||0,10)]}catch(ma){}}return ca}(),null!=e&&16<=e[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.formatContainer.style,"userSelect",
-"none"),mxUtils.setPrefixedStyle(this.footerContainer.style,"userSelect","none"),null!=this.tabContainer&&mxUtils.setPrefixedStyle(this.tabContainer.style,"userSelect","none"))));!this.editor.chromeless||this.editor.editable?(e=function(ca){if(null!=ca){var W=mxEvent.getSource(ca);if("A"==W.nodeName)for(;null!=W;){if("geHint"==W.className)return!0;W=W.parentNode}}return F(ca)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?mxEvent.addListener(this.diagramContainer,
-"contextmenu",e):this.diagramContainer.oncontextmenu=e):v.panningHandler.usePopupTrigger=!1;v.init(this.diagramContainer);mxClient.IS_SVG&&null!=v.view.getDrawPane()&&(e=v.view.getDrawPane().ownerSVGElement,null!=e&&(e.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=v.graphHandler){var P=v.graphHandler.start;v.graphHandler.start=function(){null!=m.hoverIcons&&m.hoverIcons.reset();P.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,
-function(ca){var W=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(ca)-W.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(ca)-W.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var R=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(ca,W){return m.isSpaceDown()||R.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(ca){16==ca.which?
-this.shiftDown=!0:32!=ca.which||v.isEditing()?mxEvent.isConsumed(ca)||27!=ca.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),v.container.style.cursor="move",v.isEditing()||mxEvent.getSource(ca)!=v.container||mxEvent.consume(ca))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(ca){v.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var T=v.panningHandler.isForcePanningEvent;
-v.panningHandler.isForcePanningEvent=function(ca){return T.apply(this,arguments)||m.isSpaceDown()||mxEvent.isMouseEvent(ca.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(ca.getEvent()))&&(!mxEvent.isControlDown(ca.getEvent())&&mxEvent.isRightMouseButton(ca.getEvent())||mxEvent.isMiddleMouseButton(ca.getEvent()))};var c=v.cellEditor.isStopEditingEvent;v.cellEditor.isStopEditingEvent=function(ca){return c.apply(this,arguments)||13==ca.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(ca)||
-mxClient.IS_MAC&&mxEvent.isMetaDown(ca)||mxClient.IS_SF&&mxEvent.isShiftDown(ca))};var f=v.isZoomWheelEvent;v.isZoomWheelEvent=function(){return m.isSpaceDown()||f.apply(this,arguments)};var k=!1,A=null,z=null,C=null,I=mxUtils.bind(this,function(){if(null!=this.toolbar&&k!=v.cellEditor.isContentEditing()){for(var ca=this.toolbar.container.firstChild,W=[];null!=ca;){var ma=ca.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,ca)&&(ca.parentNode.removeChild(ca),W.push(ca));ca=ma}ca=this.toolbar.fontMenu;
-ma=this.toolbar.sizeMenu;if(null==C)this.toolbar.createTextToolbar();else{for(var la=0;la<C.length;la++)this.toolbar.container.appendChild(C[la]);this.toolbar.fontMenu=A;this.toolbar.sizeMenu=z}k=v.cellEditor.isContentEditing();A=ca;z=ma;C=W}}),L=v.cellEditor.startEditing;v.cellEditor.startEditing=function(){L.apply(this,arguments);I();if(v.cellEditor.isContentEditing()){var ca=!1,W=function(){ca||(ca=!0,window.setTimeout(function(){var ma=v.getSelectedEditingElement();null!=ma&&(ma=mxUtils.getCurrentStyle(ma),
-null!=ma&&null!=m.toolbar&&(m.toolbar.setFontName(mxUtils.getCssFontFamily(ma.fontFamily)),m.toolbar.setFontSize(parseInt(ma.fontSize))));ca=!1},0))};mxEvent.addListener(v.cellEditor.textarea,"input",W);mxEvent.addListener(v.cellEditor.textarea,"touchend",W);mxEvent.addListener(v.cellEditor.textarea,"mouseup",W);mxEvent.addListener(v.cellEditor.textarea,"keyup",W);W()}};var K=v.cellEditor.stopEditing;v.cellEditor.stopEditing=function(ca,W){try{K.apply(this,arguments),I()}catch(ma){m.handleError(ma)}};
-v.container.setAttribute("tabindex","0");v.container.style.cursor="default";if(window.self===window.top&&null!=v.container.parentNode)try{v.container.focus()}catch(ca){}var O=v.fireMouseEvent;v.fireMouseEvent=function(ca,W,ma){try{ca==mxEvent.MOUSE_DOWN&&this.container.focus(),O.apply(this,arguments)}catch(la){m.handleError(la)}};var da=v.foldCells;v.foldCells=function(ca,W,ma,la,Y){try{da.apply(this,arguments)}catch(fa){m.handleError(fa)}};v.popupMenuHandler.autoExpand=!0;null!=this.menus&&(v.popupMenuHandler.factoryMethod=
-mxUtils.bind(this,function(ca,W,ma){this.menus.createPopupMenu(ca,W,ma)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(ca){v.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};v.connectionHandler.addListener(mxEvent.CONNECT,function(ca,W){var ma=[W.getProperty("cell")];W.getProperty("terminalInserted")&&(ma.push(W.getProperty("terminal")),window.setTimeout(function(){null!=m.hoverIcons&&m.hoverIcons.update(v.view.getState(ma[ma.length-
-1]))},0));v.pasteCellStyles(ma)});this.addListener("styleChanged",mxUtils.bind(this,function(ca,W){ca=W.getProperty("force");(this.updateDefaultStyle||ca)&&v.copyCellStyles(W.getProperty("cells"),W.getProperty("keys"),W.getProperty("values"),v.currentVertexStyle,v.currentEdgeStyle,G,S);null!=this.toolbar&&(this.toolbar.setFontName(v.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(v.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&
-(this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0].className="orthogonalEdgeStyle"==v.currentEdgeStyle.edgeStyle&&"1"==v.currentEdgeStyle.curved?"geSprite geSprite-curved":"straight"==v.currentEdgeStyle.edgeStyle||"none"==v.currentEdgeStyle.edgeStyle||null==v.currentEdgeStyle.edgeStyle?"geSprite geSprite-straight":"entityRelationEdgeStyle"==v.currentEdgeStyle.edgeStyle?"geSprite geSprite-entity":"elbowEdgeStyle"==v.currentEdgeStyle.edgeStyle?"geSprite geSprite-"+("vertical"==v.currentEdgeStyle.elbow?
-"verticalelbow":"horizontalelbow"):"isometricEdgeStyle"==v.currentEdgeStyle.edgeStyle?"geSprite geSprite-"+("vertical"==v.currentEdgeStyle.elbow?"verticalisometric":"horizontalisometric"):"geSprite geSprite-orthogonal"),null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0].className="link"==v.currentEdgeStyle.shape?"geSprite geSprite-linkedge":"flexArrow"==v.currentEdgeStyle.shape?"geSprite geSprite-arrow":"arrow"==v.currentEdgeStyle.shape?"geSprite geSprite-simplearrow":
-"geSprite geSprite-connection"))}));null!=this.toolbar&&(b=mxUtils.bind(this,function(){var ca=v.currentVertexStyle.fontFamily||"Helvetica",W=String(v.currentVertexStyle.fontSize||"12"),ma=v.getView().getState(v.getSelectionCell());null!=ma&&(ca=ma.style[mxConstants.STYLE_FONTFAMILY]||ca,W=ma.style[mxConstants.STYLE_FONTSIZE]||W,10<ca.length&&(ca=ca.substring(0,8)+"..."));this.toolbar.setFontName(ca);this.toolbar.setFontSize(W)}),v.getSelectionModel().addListener(mxEvent.CHANGE,b),v.getModel().addListener(mxEvent.CHANGE,
-b));v.addListener(mxEvent.CELLS_ADDED,function(ca,W){ca=W.getProperty("cells");W=W.getProperty("parent");null!=W&&v.getModel().isLayer(W)&&!v.isCellVisible(W)&&null!=ca&&0<ca.length&&v.getModel().setVisible(W,!0)});Graph.selectParentLayer&&v.selectionModel.addListener(mxEvent.CHANGE,function(){if(v.isEnabled()&&!v.isSelectionEmpty()){var ca=v.getLayerForCells(v.getSelectionCells());null!=ca&&v.setDefaultParent(ca)}});this.gestureHandler=mxUtils.bind(this,function(ca){null!=this.currentMenu&&mxEvent.getSource(ca)!=
+var FilenameDialog=function(b,e,g,m,v,p,A,G,S,F,P){S=null!=S?S:!0;var R=document.createElement("div"),T=document.createElement("div");T.style.width="100%";T.style.display="grid";T.style.gap="5px 8px";T.style.gridAutoColumns="auto 1fr";T.style.boxSizing="border-box";T.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 f=document.createElement("div");f.style.display="inline-block";
+f.style.textOverflow="ellipsis";f.style.whiteSpace="nowrap";f.style.overflow="hidden";f.style.fontSize="10pt";f.style.padding="2px 0";f.setAttribute("title",v||mxResources.get("filename"));mxUtils.write(f,(v||mxResources.get("filename"))+":");c.appendChild(f);T.appendChild(c);var k=document.createElement("input");k.setAttribute("value",e||"");k.style.flexGrow="1";var B=mxUtils.button(g,function(){if(null==p||p(k.value))S&&b.hideDialog(),m(k.value)});B.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
+v||null==A)if(null!=P?Editor.selectFilename(k):(k.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?k.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var z=T.parentNode;if(null!=z){var C=null;mxEvent.addListener(z,"dragleave",function(I){null!=C&&(C.style.backgroundColor="",C=null);I.stopPropagation();I.preventDefault()});mxEvent.addListener(z,"dragover",mxUtils.bind(this,function(I){null==C&&(!mxClient.IS_IE||10<document.documentMode)&&(C=k,C.style.backgroundColor=
+"#ebf2f9");I.stopPropagation();I.preventDefault()}));mxEvent.addListener(z,"drop",mxUtils.bind(this,function(I){null!=C&&(C.style.backgroundColor="",C=null);0<=mxUtils.indexOf(I.dataTransfer.types,"text/uri-list")&&(k.value=decodeURIComponent(I.dataTransfer.getData("text/uri-list")),B.click());I.stopPropagation();I.preventDefault()}))}}};c=document.createElement("div");c.style.display="inline-flex";c.style.alignItems="center";c.style.gap="4px";c.style.whiteSpace="nowrap";c.appendChild(k);T.appendChild(c);
+null==v&&null!=A||null==P||null==b.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")+":"),T.appendChild(c),c=document.createElement("div"),c.style.display="inline-flex",c.style.alignItems="center",c.style.whiteSpace="nowrap",T.appendChild(c),e=FilenameDialog.createFileTypes(b,k,b.editor.diagramFileTypes),
+e.style.width="100%",c.appendChild(e));null!=A&&T.appendChild(A);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=P?"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(){b.hideDialog();null!=F&&F()});c.className="geBtn";null==G||b.isOffline()||row.appendChild(b.createHelpIcon(G));
+b.editor.cancelFirst&&row.appendChild(c);mxEvent.addListener(k,"keypress",function(z){13==z.keyCode&&B.click()});row.appendChild(B);b.editor.cancelFirst||row.appendChild(c);T.appendChild(row);R.appendChild(T);this.container=R};FilenameDialog.filenameHelpLink=null;
+FilenameDialog.createFileTypes=function(b,e,g){var m=document.createElement("select");for(b=0;b<g.length;b++){var v=document.createElement("option");v.setAttribute("value",b);mxUtils.write(v,mxResources.get(g[b].description)+" (."+g[b].extension+")");m.appendChild(v)}mxEvent.addListener(m,"change",function(p){p=g[m.value].extension;var A=e.value.lastIndexOf(".drawio.");A=0<A?A:e.value.lastIndexOf(".");"drawio"!=p&&(p="drawio."+p);e.value=0<A?e.value.substring(0,A+1)+p:e.value+"."+p;"createEvent"in
+document?(p=document.createEvent("HTMLEvents"),p.initEvent("change",!1,!0),e.dispatchEvent(p)):e.fireEvent("onchange")});b=function(p){p=e.value.toLowerCase();for(var A=0,G=0;G<g.length;G++){var S=g[G].extension,F=null;"drawio"!=S&&(F=S,S=".drawio."+S);if(p.substring(p.length-S.length-1)=="."+S||null!=F&&p.substring(p.length-F.length-1)=="."+F){A=G;break}}m.value=A};mxEvent.addListener(e,"change",b);mxEvent.addListener(e,"keyup",b);b();return m};
+var WrapperWindow=function(b,e,g,m,v,p,A){var G=b.createSidebarContainer();A(G);this.window=new mxWindow(e,G,g,m,v,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)}))};
+(function(){mxGraphView.prototype.validateBackgroundPage=function(){var A=this.graph;if(null!=A.container&&!A.transparentBackground){if(A.pageVisible){var G=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var S=A.container.firstChild;null!=S&&S.nodeType!=mxConstants.NODETYPE_ELEMENT;)S=S.nextSibling;null!=S&&(this.backgroundPageShape=this.createBackgroundPageShape(G),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
+this.backgroundPageShape.init(A.container),S.style.position="absolute",A.container.insertBefore(this.backgroundPageShape.node,S),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(F){A.dblClick(F)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(F){A.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(F))}),mxUtils.bind(this,function(F){null!=
+A.tooltipHandler&&A.tooltipHandler.isHideOnHover()&&A.tooltipHandler.hide();A.isMouseDown&&!mxEvent.isConsumed(F)&&A.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(F))}),mxUtils.bind(this,function(F){A.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(F))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=G,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};
+mxGraphView.prototype.validateBackgroundStyles=function(A,G,S){var F=this.graph;A=null!=A?A:1;var P=mxUtils.getLightDarkColor(null==F.background||F.background==mxConstants.NONE?F.defaultPageBackgroundColor:F.background).cssText,R=mxUtils.getLightDarkColor(F.defaultPageBorderColor).cssText,T=null!=P&&this.gridColor!=P.toLowerCase()?this.gridColor:"#ffffff",c="none",f="";if(F.isGridEnabled()||F.gridVisible){f=10;mxClient.IS_SVG?(c=unescape(encodeURIComponent(this.createSvgGrid(T,A))),c=window.btoa?
+btoa(c):Base64.encode(c,!0),c="url(data:image/svg+xml;base64,"+c+")",f=F.gridSize*this.scale*this.gridSteps*A):c="url("+this.gridImage+")";var k=T=0;G=null!=G?G-this.translate.x*this.scale:0;S=null!=S?S-this.translate.y*this.scale:0;var B=F.gridSize*this.scale*this.gridSteps,z=G%B;B=S%B;null!=F.view.backgroundPageShape&&(k=this.getBackgroundPageBounds(),T=1+k.x,k=1+k.y);f=-Math.round(f-mxUtils.mod(this.translate.x*this.scale-T+G,f)+z*A)+"px "+-Math.round(f-mxUtils.mod(this.translate.y*this.scale-
+k+S,f)+B*A)+"px"}A=F.view.canvas;null!=A.ownerSVGElement&&(A=A.ownerSVGElement);T=!Editor.isDarkMode()&&F.enableDiagramBackground;null!=F.view.backgroundPageShape?(F.view.backgroundPageShape.node.style.backgroundPosition=f,F.view.backgroundPageShape.node.style.backgroundImage=c,F.view.backgroundPageShape.node.style.backgroundColor=P,F.view.backgroundPageShape.node.style.borderColor=R,F.view.backgroundPageShape.node.style.colorScheme="none"==F.getAdaptiveColors()?"light":"",F.container.classList.add("geDiagramBackdrop"),
+A.style.backgroundImage="none",A.style.backgroundColor="",F.container.style.backgroundColor=T?F.diagramBackgroundColor:""):(F.container.classList.remove("geDiagramBackdrop"),A.style.backgroundPosition=f,A.style.backgroundImage=c,!T||null!=F.background&&F.background!=mxConstants.NONE?A.style.backgroundColor=P:(A.style.backgroundColor=F.diagramBackgroundColor,F.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(A,G){for(var S=this.graph.gridSize*this.scale*(null!=G?G:
+1);S<this.minGridSize;)S*=2;G=this.gridSteps*S;for(var F=[],P=1;P<this.gridSteps;P++){var R=P*S;F.push("M 0 "+R+" L "+G+" "+R+" M "+R+" 0 L "+R+" "+G)}A=mxUtils.getLightDarkColor(A);S="color-scheme: light dark;";mxClient.IS_SF&&(S="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+S+'" width="'+G+'" height="'+G+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+G+'" height="'+G+'" patternUnits="userSpaceOnUse"><path d="'+
+F.join(" ")+'" fill="none" style="stroke:'+mxUtils.htmlEntities(A.cssText)+';" stroke="'+A.light+'" opacity="0.2" stroke-width="1"/><path d="M '+G+" 0 L 0 0 0 "+G+'" fill="none" style="stroke:'+mxUtils.htmlEntities(A.cssText)+';" stroke="'+A.light+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var b=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(A,G){b.apply(this,arguments);if(null!=this.shiftPreview1){var S=this.view.canvas;null!=
+S.ownerSVGElement&&(S=S.ownerSVGElement);var F=this.gridSize*this.view.scale*this.view.gridSteps;F=-Math.round(F-mxUtils.mod(this.view.translate.x*this.view.scale+A,F))+"px "+-Math.round(F-mxUtils.mod(this.view.translate.y*this.view.scale+G,F))+"px";S.style.backgroundPosition=F}};mxGraph.prototype.updatePageBreaks=function(A,G,S){var F=this.view.scale,P=this.view.translate,R=this.pageFormat,T=F*this.pageScale,c=this.view.getBackgroundPageBounds();G=c.width;S=c.height;var f=new mxRectangle(F*P.x,F*
+P.y,R.width*T,R.height*T),k=(A=A&&Math.min(f.width,f.height)>this.minPageBreakDist)?Math.ceil(S/f.height)-1:0,B=A?Math.ceil(G/f.width)-1:0,z=c.x+G,C=c.y+S;null==this.horizontalPageBreaks&&0<k&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<B&&(this.verticalPageBreaks=[]);A=mxUtils.bind(this,function(I){if(null!=I){for(var L=I==this.horizontalPageBreaks?k:B,K=0;K<=L;K++){var O=I==this.horizontalPageBreaks?[new mxPoint(Math.round(c.x),Math.round(c.y+(K+1)*f.height)),new mxPoint(Math.round(z),
+Math.round(c.y+(K+1)*f.height))]:[new mxPoint(Math.round(c.x+(K+1)*f.width),Math.round(c.y)),new mxPoint(Math.round(c.x+(K+1)*f.width),Math.round(C))];null!=I[K]?(I[K].points=O,I[K].redraw()):(O=new mxPolyline(O,this.pageBreakColor),O.dialect=this.dialect,O.isDashed=this.pageBreakDashed,O.pointerEvents=!1,O.init(this.view.backgroundPane),O.redraw(),I[K]=O)}for(K=L;K<I.length;K++)null!=I[K]&&I[K].destroy();I.splice(L,I.length-L)}});A(this.horizontalPageBreaks);A(this.verticalPageBreaks)};var e=mxGraphHandler.prototype.shouldRemoveCellsFromParent;
+mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(A,G,S){for(var F=0;F<G.length;F++){if(this.graph.isTableCell(G[F])||this.graph.isTableRow(G[F]))return!1;if(this.graph.getModel().isVertex(G[F])){var P=this.graph.getCellGeometry(G[F]);if(null!=P&&P.relative)return!1}}return e.apply(this,arguments)};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var A=g.apply(this,arguments);A.intersects=mxUtils.bind(this,function(G,S){return this.isConnecting()?
+!0:mxCellMarker.prototype.intersects.apply(A,arguments)});return A};mxGraphView.prototype.createBackgroundPageShape=function(A){return new mxRectangleShape(A,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var A=this.getGraphBounds(),G=0<A.width?A.x/this.scale-this.translate.x:0,S=0<A.height?A.y/this.scale-this.translate.y:0,F=this.graph.pageFormat,P=this.graph.pageScale,R=F.width*P;F=F.height*P;P=Math.floor(Math.min(0,G)/R);var T=Math.floor(Math.min(0,
+S)/F);return new mxRectangle(this.scale*(this.translate.x+P*R),this.scale*(this.translate.y+T*F),this.scale*(Math.ceil(Math.max(1,G+A.width/this.scale)/R)-P)*R,this.scale*(Math.ceil(Math.max(1,S+A.height/this.scale)/F)-T)*F)};var m=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(A,G){m.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=
+A+"px",this.view.backgroundPageShape.node.style.marginTop=G+"px")};var v=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(A,G,S,F,P,R){var T=v.apply(this,arguments);null==R||R||mxEvent.addListener(T,"mousedown",function(c){mxEvent.consume(c)});return T};var p=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(A,G,S){var F=this.graph.model.getParent(A);if(G){var P=this.graph.model.isEdge(A)?null:this.graph.getCellGeometry(A);
+P=!this.graph.model.isEdge(F)&&!this.graph.isSiblingSelected(A)&&(null!=P&&P.relative||!this.graph.isContainer(F)||this.graph.isPart(A))}else if(P=p.apply(this,arguments),this.graph.isTableCell(A)||this.graph.isTableRow(A))P=F,this.graph.isTable(P)||(P=this.graph.model.getParent(P)),P=!this.graph.selectionCellsHandler.isHandled(P)||this.graph.isCellSelected(P)&&this.graph.isToggleEvent(S.getEvent())||this.graph.isCellSelected(A)&&!this.graph.isToggleEvent(S.getEvent())||this.graph.isTableCell(A)&&
+this.graph.isCellSelected(F);return P};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(A){A=A.getCell();for(var G=this.graph.getModel(),S=G.getParent(A),F=this.graph.view.getState(S),P=this.graph.isCellSelected(A);null!=F&&(G.isVertex(S)||G.isEdge(S));){var R=this.graph.isCellSelected(S);P=P||R;if(R||!P&&(this.graph.isTableCell(A)||this.graph.isTableRow(A)))A=S;S=G.getParent(S)}return A}})();EditorUi=function(b,e,g){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=e||document.body;var m=this,v=this.editor.graph;v.lightbox=g;var p=v.getGraphBounds;v.getGraphBounds=function(){var ca=p.apply(this,arguments),V=this.backgroundImage;if(null!=V&&null!=V.width&&null!=V.height){var ma=this.view.translate,la=this.view.scale;ca=mxRectangle.fromRectangle(ca);ca.add(new mxRectangle((ma.x+V.x)*la,(ma.y+V.y)*la,V.width*la,V.height*la))}return ca};v.useCssTransforms&&
+(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(ca,V){this.clearSelectionState()});v.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);v.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);v.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);v.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);v.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){this.footerHeight=
+0;v.isEnabled=function(){return!1};v.panningHandler.isForcePanningEvent=function(ca){for(var V=ca.getSource();null!=V&&V!=v.container;){if("foreignObject"===V.nodeName||"text"===V.nodeName)return!1;V=V.parentNode}return!mxEvent.isPopupTrigger(ca.getEvent())};var A=v.panningHandler.start;v.panningHandler.start=function(){A.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!v.standalone){var G=!1,S=!1;this.setDefaultStyle=function(ca){try{v.getModel().isEdge(ca)?
+S=v.pasteEdgeStyle=!1:G=!1;var V=v.getCellStyle(ca,!1),ma=[],la=[],Y;for(Y in V)ma.push(V[Y]),la.push(Y);v.getModel().isEdge(ca)?v.currentEdgeStyle={}:v.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",ma,"cells",[ca],"force",!0));v.getModel().isEdge(ca)?S=v.pasteEdgeStyle=!0:G=!0}catch(fa){this.handleError(fa)}};this.clearDefaultStyle=function(){v.currentEdgeStyle=mxUtils.clone(v.defaultEdgeStyle);v.currentVertexStyle=mxUtils.clone(v.defaultVertexStyle);G=
+S=v.pasteEdgeStyle=!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};v.addListener("cellsInserted",function(ca,V){v.pasteCellStyles(v.includeDescendants(V.getProperty("cells")))});v.addListener("textInserted",function(ca,V){v.pasteCellStyles(V.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var F=mxUtils.bind(this,function(ca){null==ca&&(ca=window.event);return v.isEditing()||null!=ca&&this.isSelectionAllowed(ca)});this.container!=document.body||
+this.editor.chromeless&&!this.editor.editable||(this.menubarContainer.onselectstart=F,this.menubarContainer.onmousedown=F,this.toolbarContainer.onselectstart=F,this.toolbarContainer.onmousedown=F,this.diagramContainer.onselectstart=F,this.diagramContainer.onmousedown=F,this.sidebarContainer.onselectstart=F,this.sidebarContainer.onmousedown=F,this.formatContainer.onselectstart=F,this.formatContainer.onmousedown=F,this.footerContainer.onselectstart=F,this.footerContainer.onmousedown=F,null!=this.tabContainer&&
+(this.tabContainer.onselectstart=F),mxClient.IS_IOS&&(e=function(){var ca=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var V=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{ca=[parseInt(V[1],10),parseInt(V[2],10),parseInt(V[3]||0,10)]}catch(ma){}}return ca}(),null!=e&&16<=e[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect",
+"none"),mxUtils.setPrefixedStyle(this.formatContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.footerContainer.style,"userSelect","none"),null!=this.tabContainer&&mxUtils.setPrefixedStyle(this.tabContainer.style,"userSelect","none"))));!this.editor.chromeless||this.editor.editable?(e=function(ca){if(null!=ca){var V=mxEvent.getSource(ca);if("A"==V.nodeName)for(;null!=V;){if("geHint"==V.className)return!0;V=V.parentNode}}return F(ca)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||
+9>document.documentMode)?mxEvent.addListener(this.diagramContainer,"contextmenu",e):this.diagramContainer.oncontextmenu=e):v.panningHandler.usePopupTrigger=!1;v.init(this.diagramContainer);mxClient.IS_SVG&&null!=v.view.getDrawPane()&&(e=v.view.getDrawPane().ownerSVGElement,null!=e&&(e.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=v.graphHandler){var P=v.graphHandler.start;v.graphHandler.start=function(){null!=m.hoverIcons&&m.hoverIcons.reset();P.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,
+"mousemove",mxUtils.bind(this,function(ca){var V=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(ca)-V.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(ca)-V.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var R=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(ca,V){return m.isSpaceDown()||R.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,
+function(ca){16==ca.which?this.shiftDown=!0:32!=ca.which||v.isEditing()?mxEvent.isConsumed(ca)||27!=ca.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),v.container.style.cursor="move",v.isEditing()||mxEvent.getSource(ca)!=v.container||mxEvent.consume(ca))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(ca){v.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);
+var T=v.panningHandler.isForcePanningEvent;v.panningHandler.isForcePanningEvent=function(ca){return T.apply(this,arguments)||m.isSpaceDown()||mxEvent.isMouseEvent(ca.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(ca.getEvent()))&&(!mxEvent.isControlDown(ca.getEvent())&&mxEvent.isRightMouseButton(ca.getEvent())||mxEvent.isMiddleMouseButton(ca.getEvent()))};var c=v.cellEditor.isStopEditingEvent;v.cellEditor.isStopEditingEvent=function(ca){return c.apply(this,arguments)||13==ca.keyCode&&
+(!mxClient.IS_SF&&mxEvent.isControlDown(ca)||mxClient.IS_MAC&&mxEvent.isMetaDown(ca)||mxClient.IS_SF&&mxEvent.isShiftDown(ca))};var f=v.isZoomWheelEvent;v.isZoomWheelEvent=function(){return m.isSpaceDown()||f.apply(this,arguments)};var k=!1,B=null,z=null,C=null,I=mxUtils.bind(this,function(){if(null!=this.toolbar&&k!=v.cellEditor.isContentEditing()){for(var ca=this.toolbar.container.firstChild,V=[];null!=ca;){var ma=ca.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,ca)&&(ca.parentNode.removeChild(ca),
+V.push(ca));ca=ma}ca=this.toolbar.fontMenu;ma=this.toolbar.sizeMenu;if(null==C)this.toolbar.createTextToolbar();else{for(var la=0;la<C.length;la++)this.toolbar.container.appendChild(C[la]);this.toolbar.fontMenu=B;this.toolbar.sizeMenu=z}k=v.cellEditor.isContentEditing();B=ca;z=ma;C=V}}),L=v.cellEditor.startEditing;v.cellEditor.startEditing=function(){L.apply(this,arguments);I();if(v.cellEditor.isContentEditing()){var ca=!1,V=function(){ca||(ca=!0,window.setTimeout(function(){var ma=v.getSelectedEditingElement();
+null!=ma&&(ma=mxUtils.getCurrentStyle(ma),null!=ma&&null!=m.toolbar&&(m.toolbar.setFontName(mxUtils.getCssFontFamily(ma.fontFamily)),m.toolbar.setFontSize(parseInt(ma.fontSize))));ca=!1},0))};mxEvent.addListener(v.cellEditor.textarea,"input",V);mxEvent.addListener(v.cellEditor.textarea,"touchend",V);mxEvent.addListener(v.cellEditor.textarea,"mouseup",V);mxEvent.addListener(v.cellEditor.textarea,"keyup",V);V()}};var K=v.cellEditor.stopEditing;v.cellEditor.stopEditing=function(ca,V){try{K.apply(this,
+arguments),I()}catch(ma){m.handleError(ma)}};v.container.setAttribute("tabindex","0");v.container.style.cursor="default";if(window.self===window.top&&null!=v.container.parentNode)try{v.container.focus()}catch(ca){}var O=v.fireMouseEvent;v.fireMouseEvent=function(ca,V,ma){try{ca==mxEvent.MOUSE_DOWN&&this.container.focus(),O.apply(this,arguments)}catch(la){m.handleError(la)}};var da=v.foldCells;v.foldCells=function(ca,V,ma,la,Y){try{da.apply(this,arguments)}catch(fa){m.handleError(fa)}};v.popupMenuHandler.autoExpand=
+!0;null!=this.menus&&(v.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(ca,V,ma){this.menus.createPopupMenu(ca,V,ma)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(ca){v.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};v.connectionHandler.addListener(mxEvent.CONNECT,function(ca,V){var ma=[V.getProperty("cell")];V.getProperty("terminalInserted")&&(ma.push(V.getProperty("terminal")),window.setTimeout(function(){null!=
+m.hoverIcons&&m.hoverIcons.update(v.view.getState(ma[ma.length-1]))},0));v.pasteCellStyles(ma)});this.addListener("styleChanged",mxUtils.bind(this,function(ca,V){ca=V.getProperty("force");(this.updateDefaultStyle||ca)&&v.copyCellStyles(V.getProperty("cells"),V.getProperty("keys"),V.getProperty("values"),v.currentVertexStyle,v.currentEdgeStyle,G,S);null!=this.toolbar&&(this.toolbar.setFontName(v.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(v.currentVertexStyle.fontSize||
+Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&(V=this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0],V.style.backgroundPosition="left center",V.style.backgroundRepeat="no-repeat",V.className="geAdaptiveAsset",V.style.height="100%",V.style.width="100%",V.style.backgroundImage="orthogonalEdgeStyle"==v.currentEdgeStyle.edgeStyle&&"1"==v.currentEdgeStyle.curved?"url("+Format.curvedImage.src+")":"straight"==v.currentEdgeStyle.edgeStyle||"none"==v.currentEdgeStyle.edgeStyle||
+null==v.currentEdgeStyle.edgeStyle?"url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==v.currentEdgeStyle.edgeStyle?"url("+Format.entityImage.src+")":"elbowEdgeStyle"==v.currentEdgeStyle.edgeStyle?"vertical"==v.currentEdgeStyle.elbow?"url("+Format.verticalElbowImage.src+")":"url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==v.currentEdgeStyle.edgeStyle?"vertical"==v.currentEdgeStyle.elbow?"url("+Format.verticalIsometricImage.src+")":"url("+Format.horizontalIsometricImage.src+
+")":"url("+Format.orthogonalImage.src+")"),null!=this.toolbar.edgeShapeMenu&&(V=this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0],V.style.backgroundPosition="left center",V.style.backgroundRepeat="no-repeat",V.className="geAdaptiveAsset",V.style.height="100%",V.style.width="100%",V.style.backgroundImage="link"==v.currentEdgeStyle.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==v.currentEdgeStyle.shape?"url("+Format.arrowImage.src+")":"arrow"==v.currentEdgeStyle.shape?"url("+Format.simpleArrowImage.src+
+")":"url("+Format.connectionImage.src+")"))}));null!=this.toolbar&&(b=mxUtils.bind(this,function(){var ca=v.currentVertexStyle.fontFamily||"Helvetica",V=String(v.currentVertexStyle.fontSize||"12"),ma=v.getView().getState(v.getSelectionCell());null!=ma&&(ca=ma.style[mxConstants.STYLE_FONTFAMILY]||ca,V=ma.style[mxConstants.STYLE_FONTSIZE]||V,10<ca.length&&(ca=ca.substring(0,8)+"..."));this.toolbar.setFontName(ca);this.toolbar.setFontSize(V)}),v.getSelectionModel().addListener(mxEvent.CHANGE,b),v.getModel().addListener(mxEvent.CHANGE,
+b));v.addListener(mxEvent.CELLS_ADDED,function(ca,V){ca=V.getProperty("cells");V=V.getProperty("parent");null!=V&&v.getModel().isLayer(V)&&!v.isCellVisible(V)&&null!=ca&&0<ca.length&&v.getModel().setVisible(V,!0)});Graph.selectParentLayer&&v.selectionModel.addListener(mxEvent.CHANGE,function(){if(v.isEnabled()&&!v.isSelectionEmpty()){var ca=v.getLayerForCells(v.getSelectionCells());null!=ca&&v.setDefaultParent(ca)}});this.gestureHandler=mxUtils.bind(this,function(ca){null!=this.currentMenu&&mxEvent.getSource(ca)!=
this.currentMenu.div&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var ea=null;this.resizeHandler=mxUtils.bind(this,function(){null!=ea&&window.clearTimeout(ea);ea=window.setTimeout(mxUtils.bind(this,function(){ea=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&
!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){v.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){v.view.validateBackground()}));v.addListener("gridSizeChanged",
mxUtils.bind(this,function(){v.isGridEnabled()&&v.view.validateBackground()}));this.editor.resetGraph()}this.init();v.standalone||this.open()};EditorUi.compactUi=!0;
-EditorUi.parsePng=function(b,e,g){function m(G,S){var F=p;p+=S;return G.substring(F,p)}function v(G){G=m(G,4);return G.charCodeAt(3)+(G.charCodeAt(2)<<8)+(G.charCodeAt(1)<<16)+(G.charCodeAt(0)<<24)}var p=0;if(m(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=g&&g();else if(m(b,4),"IHDR"!=m(b,4))null!=g&&g();else{m(b,17);do{g=v(b);var B=m(b,4);if(null!=e&&e(p-8,B,g))break;value=m(b,g);m(b,4);if("IEND"==B)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);
+EditorUi.parsePng=function(b,e,g){function m(G,S){var F=p;p+=S;return G.substring(F,p)}function v(G){G=m(G,4);return G.charCodeAt(3)+(G.charCodeAt(2)<<8)+(G.charCodeAt(1)<<16)+(G.charCodeAt(0)<<24)}var p=0;if(m(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=g&&g();else if(m(b,4),"IHDR"!=m(b,4))null!=g&&g();else{m(b,17);do{g=v(b);var A=m(b,4);if(null!=e&&e(p-8,A,g))break;value=m(b,g);m(b,4);if("IEND"==A)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);
EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.menubarHeight=30;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.toolbarHeight=38;EditorUi.prototype.footerHeight=28;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?212:240);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;
EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;EditorUi.prototype.hsplitClickEnabled=!1;EditorUi.prototype.updateDefaultStyle=!1;EditorUi.prototype.spaceDown=!1;EditorUi.prototype.shiftDown=!1;
EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"!=urlParams["shape-picker"]&&this.installShapePicker();mxEvent.addListener(b.container,"scroll",mxUtils.bind(this,function(){b.tooltipHandler.hide();null!=b.connectionHandler&&null!=b.connectionHandler.constraintHandler&&b.connectionHandler.constraintHandler.reset()}));b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){b.tooltipHandler.hide();var m=b.getRubberband();null!=m&&m.cancel()}));mxEvent.addListener(b.container,
@@ -2065,30 +2076,31 @@ EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"
arguments);g.updateActionStates()};b.showLinkDialog=mxUtils.bind(g,g.showLinkDialog);b.editLink=g.actions.get("editLink").funct;this.updateActionStates();this.initClipboard();this.initCanvas();null!=this.format&&this.format.init()}};EditorUi.prototype.clearSelectionState=function(){this.selectionState=null};EditorUi.prototype.getSelectionState=function(){null==this.selectionState&&(this.selectionState=this.createSelectionState());return this.selectionState};
EditorUi.prototype.createSelectionState=function(){for(var b=this.editor.graph,e=b.getSelectionCells(),g=this.initSelectionState(),m=!0,v=0;v<e.length;v++){var p=b.getCurrentCellStyle(e[v]);"0"!=mxUtils.getValue(p,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(g,e[v],e,m),m=!1)}this.updateSelectionStateForTableCells(g);return g};
EditorUi.prototype.initSelectionState=function(){return{vertices:[],edges:[],cells:[],x:null,y:null,width:null,height:null,style:{},containsImage:!1,containsLabel:!1,fill:!0,glass:!0,html:!0,rounded:!0,autoSize:!1,image:!1,shadow:!0,lineJumps:!0,resizable:!0,table:!1,cell:!1,row:!1,movable:!0,rotatable:!0,stroke:!0,swimlane:!1,unlocked:this.editor.graph.isEnabled(),connections:!1}};
-EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){var e=mxUtils.sortCells(b.cells),g=this.editor.graph.model,m=g.getParent(e[0]),v=g.getParent(m);if(null!=m&&null!=v){for(var p=m.getIndex(e[0]),B=v.getIndex(m),G=null,S=1,F=1,P=0,R=B<v.getChildCount()-1?g.getChildAt(g.getChildAt(v,B+1),p):null;P<e.length-1;){var T=e[++P];null==R||R!=T||null!=G&&S!=G||(G=S,S=0,F++,m=g.getParent(R),R=B+F<v.getChildCount()?g.getChildAt(g.getChildAt(v,B+F),p):null);var c=this.editor.graph.view.getState(T);
+EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){var e=mxUtils.sortCells(b.cells),g=this.editor.graph.model,m=g.getParent(e[0]),v=g.getParent(m);if(null!=m&&null!=v){for(var p=m.getIndex(e[0]),A=v.getIndex(m),G=null,S=1,F=1,P=0,R=A<v.getChildCount()-1?g.getChildAt(g.getChildAt(v,A+1),p):null;P<e.length-1;){var T=e[++P];null==R||R!=T||null!=G&&S!=G||(G=S,S=0,F++,m=g.getParent(R),R=A+F<v.getChildCount()?g.getChildAt(g.getChildAt(v,A+F),p):null);var c=this.editor.graph.view.getState(T);
if(T==g.getChildAt(m,p+S)&&null!=c&&1==mxUtils.getValue(c.style,"colspan",1)&&1==mxUtils.getValue(c.style,"rowspan",1))S++;else break}P==F*S-1&&(b.mergeCell=e[0],b.colspan=S,b.rowspan=F)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),0)};
-EditorUi.prototype.createTimeout=function(b,e,g){var m=!0,v=null,p=mxUtils.bind(this,function(G){v.clear()&&(m=!1,G=null!=G?G:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,e,g)})},null!=g?g(G):this.handleError(G))}),B=window.setTimeout(p,null!=b?b:this.timeout);v={clear:function(){window.clearTimeout(B);return m},isAlive:function(){return m}};null!=e&&this.tryAndHandle(mxUtils.bind(this,function(){e(v)}),p);return v};
+EditorUi.prototype.createTimeout=function(b,e,g){var m=!0,v=null,p=mxUtils.bind(this,function(G){v.clear()&&(m=!1,G=null!=G?G:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,e,g)})},null!=g?g(G):this.handleError(G))}),A=window.setTimeout(p,null!=b?b:this.timeout);v={clear:function(){window.clearTimeout(A);return m},isAlive:function(){return m}};null!=e&&this.tryAndHandle(mxUtils.bind(this,function(){e(v)}),p);return v};
EditorUi.prototype.tryAndHandle=function(b,e){try{b()}catch(g){null!=e?e(g):this.handleError(g)}};
-EditorUi.prototype.removeUserDefinedDarkColors=function(b,e,g){var m=this.editor.graph;b=null!=b?b:m.getSelectionCells();var v=Graph.colorStyles,p=document.createElement("div");m.model.beginUpdate();try{for(var B=0;B<b.length;B++)if(m.model.isEdge(b[B])||m.model.isVertex(b[B])){var G=m.getCellStyle(b[B],!1);if(null!=G)for(var S=0;S<v.length;S++)try{var F=G[v[S]];if(mxUtils.isLightDarkColor(F)){var P=mxUtils.getLightDarkColor(F);m.setCellStyles(v[S],P.light,[b[B]])}}catch(T){}e&&m.isHtmlLabel(b[B])&&
-"0"!=mxUtils.getValue(G,"html","0")&&(p.innerHTML=Graph.sanitizeHtml(m.getLabel(b[B])),Graph.addLightDarkColors(p,null,null,function(T,c,f){return mxUtils.isLightDarkColor(f)?(f=mxUtils.getLightDarkColor(f),T.style.setProperty(c,f.light),!0):!1})&&m.cellLabelChanged(b[B],p.innerHTML))}if(g&&mxUtils.isLightDarkColor(m.background)){P=mxUtils.getLightDarkColor(m.background);var R=new ChangePageSetup(this,P.light);R.ignoreImage=!0;m.model.execute(R)}}finally{m.model.endUpdate()}return b};
+EditorUi.prototype.removeUserDefinedDarkColors=function(b,e,g){var m=this.editor.graph;b=null!=b?b:m.getSelectionCells();var v=Graph.colorStyles,p=document.createElement("div");m.model.beginUpdate();try{for(var A=0;A<b.length;A++)if(m.model.isEdge(b[A])||m.model.isVertex(b[A])){var G=m.getCellStyle(b[A],!1);if(null!=G)for(var S=0;S<v.length;S++)try{var F=G[v[S]];if(mxUtils.isLightDarkColor(F)){var P=mxUtils.getLightDarkColor(F);m.setCellStyles(v[S],P.light,[b[A]])}}catch(T){}e&&m.isHtmlLabel(b[A])&&
+"0"!=mxUtils.getValue(G,"html","0")&&(p.innerHTML=Graph.sanitizeHtml(m.getLabel(b[A])),Graph.addLightDarkColors(p,null,null,function(T,c,f){return mxUtils.isLightDarkColor(f)?(f=mxUtils.getLightDarkColor(f),T.style.setProperty(c,f.light),!0):!1})&&m.cellLabelChanged(b[A],p.innerHTML))}if(g&&mxUtils.isLightDarkColor(m.background)){P=mxUtils.getLightDarkColor(m.background);var R=new ChangePageSetup(this,P.light);R.ignoreImage=!0;m.model.execute(R)}}finally{m.model.endUpdate()}return b};
EditorUi.prototype.updateSelectionStateForCell=function(b,e,g,m){g=this.editor.graph;b.cells.push(e);if(g.getModel().isVertex(e)){b.connections=0<g.model.getEdgeCount(e);b.unlocked=b.unlocked&&!g.isCellLocked(e);b.resizable=b.resizable&&g.isCellResizable(e);b.rotatable=b.rotatable&&g.isCellRotatable(e);b.movable=b.movable&&g.isCellMovable(e)&&!g.isTableRow(e)&&!g.isTableCell(e);b.swimlane=b.swimlane||g.isSwimlane(e);b.table=b.table||g.isTable(e);b.cell=b.cell||g.isTableCell(e);b.row=b.row||g.isTableRow(e);
b.vertices.push(e);var v=g.getCellGeometry(e);if(null!=v&&(0<v.width?null==b.width?b.width=v.width:b.width!=v.width&&(b.width=""):b.containsLabel=!0,0<v.height?null==b.height?b.height=v.height:b.height!=v.height&&(b.height=""):b.containsLabel=!0,!v.relative||null!=v.offset)){var p=v.relative?v.offset.x:v.x;v=v.relative?v.offset.y:v.y;null==b.x?b.x=p:b.x!=p&&(b.x="");null==b.y?b.y=v:b.y!=v&&(b.y="")}}else g.getModel().isEdge(e)&&(b.edges.push(e),b.connections=!0,b.resizable=!1,b.rotatable=!1,b.movable=
!1);p=g.view.getState(e);null!=p&&(b.html=b.html&&g.isHtmlLabel(e),b.autoSize=b.autoSize||g.isAutoSizeState(p),b.glass=b.glass&&g.isGlassState(p),b.rounded=b.rounded&&g.isRoundedState(p),b.lineJumps=b.lineJumps&&g.isLineJumpState(p),b.image=b.image||g.isImageState(p),b.shadow=b.shadow&&g.isShadowState(p),b.fill=b.fill&&g.isFillState(p),b.gradient=b.fill&&g.isGradientState(p),b.stroke=b.stroke&&g.isStrokeState(p),e=mxUtils.getValue(p.style,mxConstants.STYLE_SHAPE,null),b.containsImage=b.containsImage||
"image"==e,g.mergeStyle(p.style,b.style,m))};
EditorUi.prototype.installShapePicker=function(){var b=this.editor.graph,e=this;b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(S,F){"mouseDown"==F.getProperty("eventName")&&e.hideShapePicker()}));var g=mxUtils.bind(this,function(){e.hideShapePicker(!0)});b.addListener("wheel",g);b.addListener(mxEvent.ESCAPE,g);b.view.addListener(mxEvent.SCALE,g);b.view.addListener(mxEvent.SCALE_AND_TRANSLATE,g);b.getSelectionModel().addListener(mxEvent.CHANGE,g);var m=b.popupMenuHandler.isMenuShowing;
b.popupMenuHandler.isMenuShowing=function(){return m.apply(this,arguments)||null!=e.shapePicker||null!=e.currentMenu};var v=b.dblClick;b.dblClick=function(S,F){if(this.isEnabled())if(null!=F||null==e.sidebar||mxEvent.isShiftDown(S)||b.isCellLocked(b.getDefaultParent()))v.apply(this,arguments);else{var P=mxUtils.convertPoint(this.container,mxEvent.getClientX(S),mxEvent.getClientY(S));mxEvent.consume(S);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.x,P.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
-g);var p=this.hoverIcons.drag;this.hoverIcons.drag=function(){e.hideShapePicker();p.apply(this,arguments)};var B=this.hoverIcons.execute;this.hoverIcons.execute=function(S,F,P){var R=P.getEvent();this.graph.isCloneEvent(R)||mxEvent.isShiftDown(R)?B.apply(this,arguments):this.graph.connectVertex(S.cell,F,this.graph.defaultEdgeLength,R,null,null,mxUtils.bind(this,function(T,c,f){var k=b.getCompositeParent(S.cell);T=b.getCellGeometry(k);for(P.consume();null!=k&&b.model.isVertex(k)&&null!=T&&T.relative;)cell=
-k,k=b.model.getParent(cell),T=b.getCellGeometry(k);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.getGraphX(),P.getGraphY(),k,mxUtils.bind(this,function(A){f(A);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(A))}),F)}),30)}),mxUtils.bind(this,function(T){this.graph.selectCellsForConnectVertex(T,R,this)}))};var G=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(S,F){null!=G&&window.clearTimeout(G);G=window.setTimeout(mxUtils.bind(this,function(){var P=
-F.getProperty("arrow"),R=F.getProperty("direction"),T=F.getProperty("event");P=P.getBoundingClientRect();var c=mxUtils.getOffset(b.container),f=b.container.scrollLeft+P.x-c.x;c=b.container.scrollTop+P.y-c.y;var k=b.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),A=e.showShapePicker(f,c,k,mxUtils.bind(this,function(z){null!=z&&b.connectVertex(k,R,b.defaultEdgeLength,T,!0,!1,function(C,I,L){L(z);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(z))},
-function(C){b.selectCellsForConnectVertex(C)},T,this.hoverIcons)}),R,!0);null!=A&&(this.centerShapePicker(A,P,f,c,R),mxUtils.setOpacity(A,30),mxEvent.addListener(A,"mouseenter",function(){mxUtils.setOpacity(A,100)}),mxEvent.addListener(A,"mouseleave",function(){e.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(S,F){null!=G&&window.clearTimeout(G)}))}};
+g);var p=this.hoverIcons.drag;this.hoverIcons.drag=function(){e.hideShapePicker();p.apply(this,arguments)};var A=this.hoverIcons.execute;this.hoverIcons.execute=function(S,F,P){var R=P.getEvent();this.graph.isCloneEvent(R)||mxEvent.isShiftDown(R)?A.apply(this,arguments):this.graph.connectVertex(S.cell,F,this.graph.defaultEdgeLength,R,null,null,mxUtils.bind(this,function(T,c,f){var k=b.getCompositeParent(S.cell);T=b.getCellGeometry(k);for(P.consume();null!=k&&b.model.isVertex(k)&&null!=T&&T.relative;)cell=
+k,k=b.model.getParent(cell),T=b.getCellGeometry(k);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(P.getGraphX(),P.getGraphY(),k,mxUtils.bind(this,function(B){f(B);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(B))}),F)}),30)}),mxUtils.bind(this,function(T){this.graph.selectCellsForConnectVertex(T,R,this)}))};var G=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(S,F){null!=G&&window.clearTimeout(G);G=window.setTimeout(mxUtils.bind(this,function(){var P=
+F.getProperty("arrow"),R=F.getProperty("direction"),T=F.getProperty("event");P=P.getBoundingClientRect();var c=mxUtils.getOffset(b.container),f=b.container.scrollLeft+P.x-c.x;c=b.container.scrollTop+P.y-c.y;var k=b.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),B=e.showShapePicker(f,c,k,mxUtils.bind(this,function(z){null!=z&&b.connectVertex(k,R,b.defaultEdgeLength,T,!0,!1,function(C,I,L){L(z);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(z))},
+function(C){b.selectCellsForConnectVertex(C)},T,this.hoverIcons)}),R,!0);null!=B&&(this.centerShapePicker(B,P,f,c,R),mxUtils.setOpacity(B,30),mxEvent.addListener(B,"mouseenter",function(){mxUtils.setOpacity(B,100)}),mxEvent.addListener(B,"mouseleave",function(){e.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(S,F){null!=G&&window.clearTimeout(G)}))}};
EditorUi.prototype.centerShapePicker=function(b,e,g,m,v){if(v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST)b.style.width="40px";var p=b.getBoundingClientRect();v==mxConstants.DIRECTION_NORTH?(g-=p.width/2-10,m-=p.height+6):v==mxConstants.DIRECTION_SOUTH?(g-=p.width/2-10,m+=e.height+6):v==mxConstants.DIRECTION_WEST?(g-=p.width+6,m-=p.height/2-10):v==mxConstants.DIRECTION_EAST&&(g+=e.width+6,m-=p.height/2-10);b.style.left=g+"px";b.style.top=m+"px"};
-EditorUi.prototype.showShapePicker=function(b,e,g,m,v,p,B,G,S){var F=null;this.editor.graph.freehand.isDrawing()||(G=G||null==g,F=this.createShapePicker(b,e,g,m,v,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(g,p,G),p,B,G,S),null!=F&&(null==this.hoverIcons||p||this.hoverIcons.reset(),b=this.editor.graph,b.popupMenuHandler.hideMenu(),b.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=m,this.shapePicker=F));return F};
-EditorUi.prototype.createShapePicker=function(b,e,g,m,v,p,B,G,S,F,P){P=null!=P?P:!0;var R=this.editor.graph,T=null;S=null!=S?S:function(k){k=k[0];var A=0,z=0,C=k.geometry;null!=C&&(R.model.isEdge(k)&&(k=C.getTerminalPoint(!1),C=new mxRectangle(0,0,k.x,k.y)),A=C.width/2,z=C.height/2);return new mxPoint(R.snap(Math.round(b/R.view.scale)-R.view.translate.x-A),R.snap(Math.round(e/R.view.scale)-R.view.translate.y-z))};if(null!=B&&0<B.length){var c=this;R=this.editor.graph;T=document.createElement("div");
-v=R.view.getState(g);var f=null==g||null!=v&&R.isTransparentState(v)?null:R.copyStyle(g);v=6>B.length?35*B.length:140;T.className="geToolbarContainer geSidebarContainer geShapePicker";T.setAttribute("title",mxResources.get("sidebarTooltip"));T.style.left=Math.round(b)+"px";T.style.top=Math.round(e)+"px";T.style.width=v+"px";mxClient.IS_POINTER&&(T.style.touchAction="none");G||mxUtils.setPrefixedStyle(T.style,"transform","translate(-22px,-22px)");R.container.appendChild(T);v=mxUtils.bind(this,function(k){var A=
-document.createElement("a");A.className="geItem";A.style.display="inline-block";A.style.position="relative";A.style.overflow="hidden";A.style.cursor="pointer";A.style.width="30px";A.style.height="30px";A.style.padding="1px";T.appendChild(A);null!=f&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(f,[k]):this.sidebar.graph.pasteCellStyles([k],R.currentVertexStyle,R.currentEdgeStyle);var z=k.geometry;R.model.isEdge(k)&&(z=z.getTerminalPoint(!1),z=new mxRectangle(0,0,z.x,z.y));null!=z&&A.appendChild(this.sidebar.createVertexTemplateFromCells([k],
-z.width,z.height,"",!0,!1,null,!1,mxUtils.bind(this,function(C){if(!mxEvent.isShiftDown(C)||null==g&&R.isSelectionEmpty()){var I=R.cloneCell(k);if(null!=m)m(I);else{var L=S([I]);R.model.isEdge(I)?I.geometry.translate(L.x,L.y):(I.geometry.x=L.x,I.geometry.y=L.y);R.model.beginUpdate();try{R.addCell(I),R.model.isVertex(I)&&R.isAutoSizeCell(I)&&R.updateCellSize(I)}finally{R.model.endUpdate()}R.setSelectionCell(I);R.scrollCellToVisible(I);P&&R.startEditing(I);null!=c.hoverIcons&&c.hoverIcons.update(R.view.getState(I))}}else I=
-R.getEditableCells(null!=g?[g]:R.getSelectionCells()),R.updateShapes(k,I);null!=p&&p(C);mxEvent.consume(C)}),25,25,null,null,g))});for(F=0;F<(G?Math.min(B.length,4):B.length);F++)v(B[F]);B=T.offsetTop+T.clientHeight-(R.container.scrollTop+R.container.offsetHeight);0<B&&(T.style.top=Math.max(R.container.scrollTop+22,e-B)+"px");B=T.offsetLeft+T.clientWidth-(R.container.scrollLeft+R.container.offsetWidth);0<B&&(T.style.left=Math.max(R.container.scrollLeft+22,b-B)+"px")}return T};
-EditorUi.prototype.getCellsForShapePicker=function(b,e,g){var m=this.editor.graph,v=mxUtils.bind(this,function(p,B,G,S){return m.createVertex(null,null,S||"",0,0,B||120,G||60,p,!1)});e=mxUtils.bind(this,function(p,B,G){p=new mxCell(G||"",new mxGeometry(0,0,m.defaultEdgeLength+20,0),p);p.geometry.setTerminalPoint(new mxPoint(0,0),!0);p.geometry.setTerminalPoint(new mxPoint(p.geometry.width,null!=B?B:0),!1);p.geometry.points=null!=B?[new mxPoint(p.geometry.width/2,B)]:[];p.geometry.relative=!0;p.edge=
+EditorUi.prototype.showShapePicker=function(b,e,g,m,v,p,A,G,S){var F=null;this.editor.graph.freehand.isDrawing()||(G=G||null==g,F=this.createShapePicker(b,e,g,m,v,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(g,p,G),p,A,G,S),null!=F&&(null==this.hoverIcons||p||this.hoverIcons.reset(),b=this.editor.graph,b.popupMenuHandler.hideMenu(),b.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=m,this.shapePicker=F));return F};
+EditorUi.prototype.createShapePicker=function(b,e,g,m,v,p,A,G,S,F,P){P=null!=P?P:!0;var R=this.editor.graph,T=null;S=null!=S?S:function(k){k=k[0];var B=0,z=0,C=k.geometry;null!=C&&(R.model.isEdge(k)&&(k=C.getTerminalPoint(!1),C=new mxRectangle(0,0,k.x,k.y)),B=C.width/2,z=C.height/2);return new mxPoint(R.snap(Math.round(b/R.view.scale)-R.view.translate.x-B),R.snap(Math.round(e/R.view.scale)-R.view.translate.y-z))};if(null!=A&&0<A.length){var c=this;R=this.editor.graph;T=document.createElement("div");
+v=R.view.getState(g);var f=null==g||null!=v&&R.isTransparentState(v)?null:R.copyStyle(g);v=6>A.length?35*A.length:140;T.className="geToolbarContainer geSidebarContainer geShapePicker";T.setAttribute("title",mxResources.get("sidebarTooltip"));T.style.left=Math.round(b)+"px";T.style.top=Math.round(e)+"px";T.style.width=v+"px";mxClient.IS_POINTER&&(T.style.touchAction="none");G||mxUtils.setPrefixedStyle(T.style,"transform","translate(-22px,-22px)");R.container.appendChild(T);v=mxUtils.bind(this,function(k){var B=
+document.createElement("a");B.className="geToolbarButton";B.style.display="inline-block";B.style.position="relative";B.style.overflow="hidden";B.style.cursor="pointer";B.style.width="30px";B.style.height="30px";B.style.padding="1px";T.appendChild(B);null!=f&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(f,[k]):this.sidebar.graph.pasteCellStyles([k],R.currentVertexStyle,R.currentEdgeStyle);var z=k.geometry;R.model.isEdge(k)&&(z=z.getTerminalPoint(!1),z=new mxRectangle(0,0,z.x,z.y));null!=z&&
+B.appendChild(this.sidebar.createVertexTemplateFromCells([k],z.width,z.height,"",!0,!1,null,!1,mxUtils.bind(this,function(C){if(!mxEvent.isShiftDown(C)||null==g&&R.isSelectionEmpty()){var I=R.cloneCell(k);if(null!=m)m(I);else{var L=S([I]);R.model.isEdge(I)?I.geometry.translate(L.x,L.y):(I.geometry.x=L.x,I.geometry.y=L.y);R.model.beginUpdate();try{R.addCell(I),R.model.isVertex(I)&&R.isAutoSizeCell(I)&&R.updateCellSize(I)}finally{R.model.endUpdate()}R.setSelectionCell(I);R.scrollCellToVisible(I);P&&
+R.startEditing(I);null!=c.hoverIcons&&c.hoverIcons.update(R.view.getState(I))}}else I=R.getEditableCells(null!=g?[g]:R.getSelectionCells()),R.updateShapes(k,I);null!=p&&p(C);mxEvent.consume(C)}),25,25,null,null,g))});for(F=0;F<(G?Math.min(A.length,4):A.length);F++)v(A[F]);A=T.offsetTop+T.clientHeight-(R.container.scrollTop+R.container.offsetHeight);0<A&&(T.style.top=Math.max(R.container.scrollTop+22,e-A)+"px");A=T.offsetLeft+T.clientWidth-(R.container.scrollLeft+R.container.offsetWidth);0<A&&(T.style.left=
+Math.max(R.container.scrollLeft+22,b-A)+"px")}return T};
+EditorUi.prototype.getCellsForShapePicker=function(b,e,g){var m=this.editor.graph,v=mxUtils.bind(this,function(p,A,G,S){return m.createVertex(null,null,S||"",0,0,A||120,G||60,p,!1)});e=mxUtils.bind(this,function(p,A,G){p=new mxCell(G||"",new mxGeometry(0,0,m.defaultEdgeLength+20,0),p);p.geometry.setTerminalPoint(new mxPoint(0,0),!0);p.geometry.setTerminalPoint(new mxPoint(p.geometry.width,null!=A?A:0),!1);p.geometry.points=null!=A?[new mxPoint(p.geometry.width/2,A)]:[];p.geometry.relative=!0;p.edge=
!0;return p});if(null!=b)try{b=m.cloneCell(b),m.model.isVertex(b)&&null!=b.geometry&&(b.geometry.x=0,b.geometry.y=0)}catch(p){b=null}null==b&&(b=v(m.appendFontSize("text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;",m.vertexFontSize),40,20,"Text"),m.model.isVertex(b)&&m.isAutoSizeCell(b)&&Graph.createOffscreenGraph(m.getStylesheet()).updateCellSize(b));b=[b,v("whiteSpace=wrap;html=1;"),v("ellipse;whiteSpace=wrap;html=1;",80,80),v("rhombus;whiteSpace=wrap;html=1;",
80,80),v("rounded=1;whiteSpace=wrap;html=1;"),v("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),v("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),v("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),v("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),v("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),v("triangle;whiteSpace=wrap;html=1;",
60,80),v("shape=document;whiteSpace=wrap;html=1;boundedLbl=1;",120,80),v("shape=tape;whiteSpace=wrap;html=1;",120,100),v("ellipse;shape=cloud;whiteSpace=wrap;html=1;",120,80),v("shape=singleArrow;whiteSpace=wrap;html=1;arrowWidth=0.4;arrowSize=0.4;",80,60),v("shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;",20,20)];g&&(b=b.concat([e("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),e("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;endArrow=classic;startArrow=classic;endSize=8;startSize=8;"),
@@ -2097,54 +2109,54 @@ EditorUi.prototype.hideShapePicker=function(b){null!=this.shapePicker&&(this.sha
EditorUi.prototype.onKeyDown=function(b){var e=this.editor.graph;if(9==b.which&&e.isEnabled()&&!mxEvent.isControlDown(b)){if(e.isEditing())if(mxEvent.isAltDown(b))e.stopEditing(!1);else try{var g=e.cellEditor.isContentEditing()&&e.cellEditor.isTextSelected();if(window.getSelection&&e.cellEditor.isContentEditing()&&!g&&!mxClient.IS_IE&&!mxClient.IS_IE11){var m=window.getSelection(),v=0<m.rangeCount?m.getRangeAt(0).commonAncestorContainer:null;g=null!=v&&("LI"==v.nodeName||null!=v.parentNode&&"LI"==
v.parentNode.nodeName)}g?document.execCommand(mxEvent.isShiftDown(b)?"outdent":"indent",!1,null):mxEvent.isShiftDown(b)?e.stopEditing(!1):e.cellEditor.insertTab(e.cellEditor.isContentEditing()?null:4)}catch(p){}else mxEvent.isAltDown(b)?e.selectParentCell():e.selectCell(!mxEvent.isShiftDown(b));mxEvent.consume(b)}};
EditorUi.prototype.onKeyPress=function(b){var e=this.editor.graph;!this.isImmediateEditingEvent(b)||e.isEditing()||e.isSelectionEmpty()||0===b.which||27===b.which||mxEvent.isAltDown(b)||mxEvent.isControlDown(b)||mxEvent.isMetaDown(b)||(e.escape(),e.startEditing(null,String.fromCharCode(b.which)))};EditorUi.prototype.isImmediateEditingEvent=function(b){return!0};
-EditorUi.prototype.updateCssForMarker=function(b,e,g,m,v){b.style.display="inline-flex";b.style.alignItems="center";b.style.justifyContent="center";b.innerText="";"flexArrow"==g?b.className=null!=m&&m!=mxConstants.NONE?"geSprite geSprite-"+e+"blocktrans":"geSprite geSprite-noarrow":(g=this.getImageForMarker(m,v),null!=g?(m=document.createElement("img"),m.className="geAdaptiveAsset",m.setAttribute("src",g),b.className="","end"==e&&mxUtils.setPrefixedStyle(m.style,"transform","scaleX(-1)"),b.appendChild(m)):
-(b.className="geSprite geSprite-noarrow",b.innerHTML=mxUtils.htmlEntities(mxResources.get("none")),b.style.backgroundImage="none",b.style.fontSize="11px",b.style.filter="none"))};
-EditorUi.prototype.getImageForMarker=function(b,e){var g=null;b==mxConstants.ARROW_CLASSIC?g="1"!=e?Format.classicMarkerImage.src:Format.classicFilledMarkerImage.src:b==mxConstants.ARROW_CLASSIC_THIN?g="1"!=e?Format.classicThinMarkerImage.src:Format.openThinFilledMarkerImage.src:b==mxConstants.ARROW_OPEN?g=Format.openFilledMarkerImage.src:b==mxConstants.ARROW_OPEN_THIN?g=Format.openThinFilledMarkerImage.src:b==mxConstants.ARROW_BLOCK?g="1"!=e?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:
-b==mxConstants.ARROW_BLOCK_THIN?g="1"!=e?Format.blockThinMarkerImage.src:Format.blockThinFilledMarkerImage.src:b==mxConstants.ARROW_OVAL?g="1"!=e?Format.ovalMarkerImage.src:Format.ovalFilledMarkerImage.src:b==mxConstants.ARROW_DIAMOND?g="1"!=e?Format.diamondMarkerImage.src:Format.diamondFilledMarkerImage.src:b==mxConstants.ARROW_DIAMOND_THIN?g="1"!=e?Format.diamondThinMarkerImage.src:Format.diamondThinFilledMarkerImage.src:"doubleBlock"==b?g="1"!=e?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:
-"box"==b?g=Format.boxMarkerImage.src:"halfCircle"==b?g=Format.halfCircleMarkerImage.src:"openAsync"==b?g=Format.openAsyncFilledMarkerImage.src:"async"==b?g="1"!=e?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==b?g=Format.dashMarkerImage.src:"baseDash"==b?g=Format.baseDashMarkerImage.src:"cross"==b?g=Format.crossMarkerImage.src:"circle"==b?g=Format.circleMarkerImage.src:"circlePlus"==b?g=Format.circlePlusMarkerImage.src:"ERone"==b?g=Format.EROneMarkerImage.src:"ERmandOne"==b?
-g=Format.ERmandOneMarkerImage.src:"ERmany"==b?g=Format.ERmanyMarkerImage.src:"ERoneToMany"==b?g=Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==b?g=Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==b&&(g=Format.ERzeroToManyMarkerImage.src);return g};EditorUi.prototype.createMenus=function(){return null};
+EditorUi.prototype.updateCssForMarker=function(b,e,g,m,v){b.style.display="inline-flex";b.style.alignItems="center";b.style.justifyContent="center";b.innerText="";g=this.getImageForMarker(m,v,g);null==g?(b.innerHTML=mxUtils.htmlEntities(mxResources.get("none")),b.style.backgroundImage="none",b.style.fontSize="11px",b.style.filter="none"):(m=document.createElement("img"),m.className="geAdaptiveAsset",m.setAttribute("src",g),b.className="","end"==e&&mxUtils.setPrefixedStyle(m.style,"transform","scaleX(-1)"),
+b.appendChild(m))};
+EditorUi.prototype.getImageForMarker=function(b,e,g){return"flexArrow"==g?null!=b&&b!=mxConstants.NONE?Format.blockMarkerImage.src:null:b==mxConstants.ARROW_CLASSIC?"1"!=e?Format.classicMarkerImage.src:Format.classicFilledMarkerImage.src:b==mxConstants.ARROW_CLASSIC_THIN?"1"!=e?Format.classicThinMarkerImage.src:Format.openThinFilledMarkerImage.src:b==mxConstants.ARROW_OPEN?Format.openFilledMarkerImage.src:b==mxConstants.ARROW_OPEN_THIN?Format.openThinFilledMarkerImage.src:b==mxConstants.ARROW_BLOCK?"1"!=
+e?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:b==mxConstants.ARROW_BLOCK_THIN?"1"!=e?Format.blockThinMarkerImage.src:Format.blockThinFilledMarkerImage.src:b==mxConstants.ARROW_OVAL?"1"!=e?Format.ovalMarkerImage.src:Format.ovalFilledMarkerImage.src:b==mxConstants.ARROW_DIAMOND?"1"!=e?Format.diamondMarkerImage.src:Format.diamondFilledMarkerImage.src:b==mxConstants.ARROW_DIAMOND_THIN?"1"!=e?Format.diamondThinMarkerImage.src:Format.diamondThinFilledMarkerImage.src:"doubleBlock"==b?"1"!=
+e?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:"box"==b?Format.boxMarkerImage.src:"halfCircle"==b?Format.halfCircleMarkerImage.src:"openAsync"==b?Format.openAsyncFilledMarkerImage.src:"async"==b?"1"!=e?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==b?Format.dashMarkerImage.src:"baseDash"==b?Format.baseDashMarkerImage.src:"cross"==b?Format.crossMarkerImage.src:"circle"==b?Format.circleMarkerImage.src:"circlePlus"==b?Format.circlePlusMarkerImage.src:
+"ERone"==b?Format.EROneMarkerImage.src:"ERmandOne"==b?Format.ERmandOneMarkerImage.src:"ERmany"==b?Format.ERmanyMarkerImage.src:"ERoneToMany"==b?Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==b?Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==b?Format.ERzeroToManyMarkerImage.src:null};EditorUi.prototype.createMenus=function(){return null};
EditorUi.prototype.updatePasteActionStates=function(){var b=this.editor.graph,e=this.actions.get("paste"),g=this.actions.get("pasteHere");e.setEnabled(this.editor.graph.cellEditor.isContentEditing()||(!mxClient.IS_FF&&null!=navigator.clipboard||!mxClipboard.isEmpty())&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent()));g.setEnabled(e.isEnabled())};
-EditorUi.prototype.initClipboard=function(){var b=this,e=mxClipboard.cut;mxClipboard.cut=function(p){p.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):e.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(p){var B=null;if(p.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{B=B||p.getSelectionCells();B=p.getExportableCells(p.model.getTopmostCells(B));for(var G={},S=p.createCellLookup(B),F=p.cloneCells(B,null,G),P=new mxGraphModel,R=P.getChildAt(P.getRoot(),
-0),T=0;T<F.length;T++){P.add(R,F[T]);var c=p.view.getState(B[T]);if(null!=c){var f=p.getCellGeometry(F[T]);null!=f&&f.relative&&!P.isEdge(B[T])&&null==S[mxObjectIdentity.get(P.getParent(B[T]))]&&(f.offset=null,f.relative=!1,f.x=c.x/c.view.scale-c.view.translate.x,f.y=c.y/c.view.scale-c.view.translate.y)}}p.updateCustomLinks(p.createCellMapping(G,S),F);mxClipboard.insertCount=1;mxClipboard.setCells(F)}b.updatePasteActionStates();return B};var g=mxClipboard.paste;mxClipboard.paste=function(p){var B=
-null;p.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):B=g.apply(this,arguments);b.updatePasteActionStates();return B};var m=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){m.apply(this,arguments);b.updatePasteActionStates()};var v=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(p,B){v.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
+EditorUi.prototype.initClipboard=function(){var b=this,e=mxClipboard.cut;mxClipboard.cut=function(p){p.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):e.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(p){var A=null;if(p.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{A=A||p.getSelectionCells();A=p.getExportableCells(p.model.getTopmostCells(A));for(var G={},S=p.createCellLookup(A),F=p.cloneCells(A,null,G),P=new mxGraphModel,R=P.getChildAt(P.getRoot(),
+0),T=0;T<F.length;T++){P.add(R,F[T]);var c=p.view.getState(A[T]);if(null!=c){var f=p.getCellGeometry(F[T]);null!=f&&f.relative&&!P.isEdge(A[T])&&null==S[mxObjectIdentity.get(P.getParent(A[T]))]&&(f.offset=null,f.relative=!1,f.x=c.x/c.view.scale-c.view.translate.x,f.y=c.y/c.view.scale-c.view.translate.y)}}p.updateCustomLinks(p.createCellMapping(G,S),F);mxClipboard.insertCount=1;mxClipboard.setCells(F)}b.updatePasteActionStates();return A};var g=mxClipboard.paste;mxClipboard.paste=function(p){var A=
+null;p.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):A=g.apply(this,arguments);b.updatePasteActionStates();return A};var m=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){m.apply(this,arguments);b.updatePasteActionStates()};var v=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(p,A){v.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=500;EditorUi.prototype.buttonZoomDelay=600;
-EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var J=this.graph.getPageLayout(),V=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+J.x*V.width),this.scale*(this.translate.y+J.y*V.height),this.scale*J.width*V.width,
-this.scale*J.height*V.height)};b.getPreferredPageSize=function(J,V,aa){J=this.getPageLayout();V=this.getPageSize();return new mxRectangle(0,0,J.width*V.width,J.height*V.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(J,V,aa,ba){if(null!=b.container&&!b.isViewer()){aa=null!=aa?aa:0;ba=null!=ba?ba:0;var ja=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),oa=mxUtils.hasScrollbars(b.container),qa=b.view.translate,ra=b.view.scale,
-ua=mxRectangle.fromRectangle(ja);ua.x=ua.x/ra-qa.x;ua.y=ua.y/ra-qa.y;ua.width/=ra;ua.height/=ra;qa=b.container.scrollTop;var za=b.container.scrollLeft,Ba=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)Ba+=3;var Ca=b.container.offsetWidth-Ba;Ba=b.container.offsetHeight-Ba;J=J?Math.max(.3,Math.min(V||1,Ca/ua.width)):ra;V=(Ca-J*ua.width)/2/J;var La=0==this.lightboxVerticalDivider?0:(Ba-J*ua.height)/this.lightboxVerticalDivider/J;oa&&(V=Math.max(V,0),La=Math.max(La,
-0));if(oa||ja.width<Ca||ja.height<Ba)b.view.scaleAndTranslate(J,Math.floor(V-ua.x),Math.floor(La-ua.y)),b.container.scrollTop=qa*J/ra,b.container.scrollLeft=za*J/ra;else if(0!=aa||0!=ba)ja=b.view.translate,b.view.setTranslate(Math.floor(ja.x+aa/ra),Math.floor(ja.y+ba/ra))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var m=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",m);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
+EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var J=this.graph.getPageLayout(),W=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+J.x*W.width),this.scale*(this.translate.y+J.y*W.height),this.scale*J.width*W.width,
+this.scale*J.height*W.height)};b.getPreferredPageSize=function(J,W,aa){J=this.getPageLayout();W=this.getPageSize();return new mxRectangle(0,0,J.width*W.width,J.height*W.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(J,W,aa,ba){if(null!=b.container&&!b.isViewer()){aa=null!=aa?aa:0;ba=null!=ba?ba:0;var ja=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),oa=mxUtils.hasScrollbars(b.container),qa=b.view.translate,ra=b.view.scale,
+ua=mxRectangle.fromRectangle(ja);ua.x=ua.x/ra-qa.x;ua.y=ua.y/ra-qa.y;ua.width/=ra;ua.height/=ra;qa=b.container.scrollTop;var za=b.container.scrollLeft,Ba=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)Ba+=3;var Ca=b.container.offsetWidth-Ba;Ba=b.container.offsetHeight-Ba;J=J?Math.max(.3,Math.min(W||1,Ca/ua.width)):ra;W=(Ca-J*ua.width)/2/J;var La=0==this.lightboxVerticalDivider?0:(Ba-J*ua.height)/this.lightboxVerticalDivider/J;oa&&(W=Math.max(W,0),La=Math.max(La,
+0));if(oa||ja.width<Ca||ja.height<Ba)b.view.scaleAndTranslate(J,Math.floor(W-ua.x),Math.floor(La-ua.y)),b.container.scrollTop=qa*J/ra,b.container.scrollLeft=za*J/ra;else if(0!=aa||0!=ba)ja=b.view.translate,b.view.setTranslate(Math.floor(ja.x+aa/ra),Math.floor(ja.y+ba/ra))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var m=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",m);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
"resize",m)});this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(J){b.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(J){b.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var v=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));this.chromelessToolbar=document.createElement("div");this.chromelessToolbar.style.position=
"fixed";this.chromelessToolbar.style.overflow="hidden";this.chromelessToolbar.style.boxSizing="border-box";this.chromelessToolbar.style.whiteSpace="nowrap";this.chromelessToolbar.style.padding="10px 10px 8px 10px";this.chromelessToolbar.style.left=b.isViewer()?"0":"50%";mxClient.IS_IE||mxClient.IS_IE11?(this.chromelessToolbar.style.backgroundColor="#ffffff",this.chromelessToolbar.style.border="3px solid black"):this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,
-"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var p=mxUtils.bind(this,function(){var J=mxUtils.getCurrentStyle(b.container);b.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=J?parseInt(J["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",p);p();var B=0;p=mxUtils.bind(this,function(J,V,aa){B++;
-var ba=document.createElement("span");ba.style.paddingLeft="8px";ba.style.paddingRight="8px";ba.style.cursor="pointer";mxEvent.addListener(ba,"click",J);null!=aa&&ba.setAttribute("title",aa);J=document.createElement("img");J.setAttribute("border","0");J.setAttribute("src",V);J.style.width="36px";J.style.filter="invert(100%)";ba.appendChild(J);this.chromelessToolbar.appendChild(ba);return ba});if(null!=v.backBtn){var G=Graph.sanitizeLink(v.backBtn.url);null!=G&&p(mxUtils.bind(this,function(J){window.location.href=
+"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var p=mxUtils.bind(this,function(){var J=mxUtils.getCurrentStyle(b.container);b.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=J?parseInt(J["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",p);p();var A=0;p=mxUtils.bind(this,function(J,W,aa){A++;
+var ba=document.createElement("span");ba.style.paddingLeft="8px";ba.style.paddingRight="8px";ba.style.cursor="pointer";mxEvent.addListener(ba,"click",J);null!=aa&&ba.setAttribute("title",aa);J=document.createElement("img");J.setAttribute("border","0");J.setAttribute("src",W);J.style.width="36px";J.style.filter="invert(100%)";ba.appendChild(J);this.chromelessToolbar.appendChild(ba);return ba});if(null!=v.backBtn){var G=Graph.sanitizeLink(v.backBtn.url);null!=G&&p(mxUtils.bind(this,function(J){window.location.href=
G;mxEvent.consume(J)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var S=p(mxUtils.bind(this,function(J){this.actions.get("previousPage").funct();mxEvent.consume(J)}),Editor.previousImage,mxResources.get("previousPage")),F=document.createElement("div");F.style.fontFamily=Editor.defaultHtmlFont;F.style.display="inline-block";F.style.verticalAlign="top";F.style.fontWeight="bold";F.style.marginTop="8px";F.style.fontSize="14px";F.style.cursor="default";F.style.color=
mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(F);var P=p(mxUtils.bind(this,function(J){this.actions.get("nextPage").funct();mxEvent.consume(J)}),Editor.nextImage,mxResources.get("nextPage")),R=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){F.innerText="";var J=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(F,J+1+" / "+this.pages.length);F.setAttribute("title",mxResources.get("currentPage")+": "+this.currentPage.getName());
S.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(J-1,this.pages.length)].getName());P.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(J+1,this.pages.length)].getName())}});S.style.paddingLeft="0px";S.style.paddingRight="4px";P.style.paddingLeft="4px";P.style.paddingRight="0px";var T=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(P.style.display="",S.style.display="",F.style.display="inline-block"):
-(P.style.display="none",S.style.display="none",F.style.display="none");R()});if(null!=this.menus){var c=this.menus.get("pages");null!=c&&mxEvent.addListener(F,"click",mxUtils.bind(this,function(J){var V=new mxPopupMenu(c.funct);V.div.className+=" geMenubarMenu";V.smartSeparators=!0;V.showDisabled=!0;V.autoExpand=!0;V.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(V,arguments);V.destroy()});var aa=mxUtils.getOffset(F);V.popup(aa.x,aa.y+F.offsetHeight,null,J);mxEvent.addListener(V.div,
-"mouseleave",mxUtils.bind(this,function(){V.hideMenu()}))}))}this.editor.addListener("resetGraphView",T);this.editor.addListener("pageSelected",R)}p(mxUtils.bind(this,function(J){this.actions.get("zoomOut").funct();mxEvent.consume(J)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(J){this.actions.get("zoomIn").funct();mxEvent.consume(J)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(J){b.isLightboxView()?
-(1==b.view.scale?this.lightboxFit():b.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(J)}),Editor.zoomFitImage,mxResources.get("fit"));var f=null,k=null,A=mxUtils.bind(this,function(J){null!=f&&(window.clearTimeout(f),f=null);null!=k&&(window.clearTimeout(k),k=null);f=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);f=null;k=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";k=null}),
+(P.style.display="none",S.style.display="none",F.style.display="none");R()});if(null!=this.menus){var c=this.menus.get("pages");null!=c&&mxEvent.addListener(F,"click",mxUtils.bind(this,function(J){var W=new mxPopupMenu(c.funct);W.div.className+=" geMenubarMenu";W.smartSeparators=!0;W.showDisabled=!0;W.autoExpand=!0;W.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(W,arguments);W.destroy()});var aa=mxUtils.getOffset(F);W.popup(aa.x,aa.y+F.offsetHeight,null,J);mxEvent.addListener(W.div,
+"mouseleave",mxUtils.bind(this,function(){W.hideMenu()}))}))}this.editor.addListener("resetGraphView",T);this.editor.addListener("pageSelected",R)}p(mxUtils.bind(this,function(J){this.actions.get("zoomOut").funct();mxEvent.consume(J)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(J){this.actions.get("zoomIn").funct();mxEvent.consume(J)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");p(mxUtils.bind(this,function(J){b.isLightboxView()?
+(1==b.view.scale?this.lightboxFit():b.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(J)}),Editor.zoomFitImage,mxResources.get("fit"));var f=null,k=null,B=mxUtils.bind(this,function(J){null!=f&&(window.clearTimeout(f),f=null);null!=k&&(window.clearTimeout(k),k=null);f=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);f=null;k=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";k=null}),
600)}),J||200)}),z=mxUtils.bind(this,function(J){null!=f&&(window.clearTimeout(f),f=null);null!=k&&(window.clearTimeout(k),k=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,J||30)});if("1"==urlParams.layers){this.layersDialog=null;var C=p(mxUtils.bind(this,function(J){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=b.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 V=C.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=
-V.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));V=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=
-V.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(J)}),Editor.layersImage,mxResources.get("layers")),I=b.getModel();I.addListener(mxEvent.CHANGE,function(){C.style.display=1<I.getChildCount(I.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(p);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||p(mxUtils.bind(this,function(J){null!=this.editor.editButtonFunc?
+this.chromelessResize()}),!0);mxEvent.addListener(this.layersDialog,"mouseleave",mxUtils.bind(this,function(){this.layersDialog.parentNode.removeChild(this.layersDialog);this.layersDialog=null}));var W=C.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=
+W.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));W=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=
+W.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(J)}),Editor.layersImage,mxResources.get("layers")),I=b.getModel();I.addListener(mxEvent.CHANGE,function(){C.style.display=1<I.getChildCount(I.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(p);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||p(mxUtils.bind(this,function(J){null!=this.editor.editButtonFunc?
this.editor.editButtonFunc():"_blank"==this.editor.editButtonLink?this.editor.editAsNew(this.getEditBlankXml()):b.openLink(this.editor.editButtonLink,"editWindow");mxEvent.consume(J)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(T=0;T<this.lightboxToolbarActions.length;T++){var L=this.lightboxToolbarActions[T];L.elem=p(L.fn,L.icon,L.tooltip)}if(null!=v.refreshBtn){var K=null==v.refreshBtn.url?null:Graph.sanitizeLink(v.refreshBtn.url);p(mxUtils.bind(this,function(J){null!=
K?window.location.href=K:window.location.reload();mxEvent.consume(J)}),Editor.refreshImage,mxResources.get("refresh",null,"Refresh"))}null!=v.fullscreenBtn&&window.self!==window.top&&p(mxUtils.bind(this,function(J){v.fullscreenBtn.url?b.openLink(v.fullscreenBtn.url):b.openLink(window.location.href);mxEvent.consume(J)}),Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));!v.noCloseBtn&&(v.closeBtn&&window.self===window.top||b.lightbox&&("1"==urlParams.close||this.container!=
document.body))&&p(mxUtils.bind(this,function(J){"1"==urlParams.close||v.closeBtn?window.close():(this.destroy(),mxEvent.consume(J))}),Editor.closeImage,mxResources.get("close")+" (Escape)");this.chromelessToolbar.style.display="none";b.isViewer()||mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transform","translate(-50%,0)");b.container.appendChild(this.chromelessToolbar);mxEvent.addListener(b.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(J){mxEvent.isTouchEvent(J)||
-(mxEvent.isShiftDown(J)||z(30),A())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(J){mxEvent.consume(J)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(J){b.tooltipHandler.resetTimer();b.tooltipHandler.hideTooltip();mxEvent.isShiftDown(J)?A():z(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(J){mxEvent.isShiftDown(J)?A():z(100);mxEvent.consume(J)}));mxEvent.addListener(this.chromelessToolbar,
-"mouseleave",mxUtils.bind(this,function(J){mxEvent.isTouchEvent(J)||z(30)}));var O=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(J,V){this.startX=V.getGraphX();this.startY=V.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(J,V){},mouseUp:function(J,V){mxEvent.isTouchEvent(V.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<O&&Math.abs(this.scrollTop-b.container.scrollTop)<O&&
-Math.abs(this.startX-V.getGraphX())<O&&Math.abs(this.startY-V.getGraphY())<O&&(0<parseFloat(g.chromelessToolbar.style.opacity||0)?A():z(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var da=b.view.validate,ea=new mxPoint,ca=!1,W=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=g.currentPage&&W!=g.currentPage){W=g.currentPage;ca=!0;var J=b.getBoundingBoxFromGeometry(b.model.getCells(),!0,null,!0);null==
-J&&(J=new mxRectangle(b.view.translate.x*b.view.scale,b.view.translate.y*b.view.scale));J=b.getPageLayout(J,ea,1);var V=b.getDefaultTranslate(J);this.x0=J.x;this.y0=J.y;if(V.x!=this.translate.x||V.y!=this.translate.y)this.invalidate(),this.translate.x=V.x,this.translate.y=V.y}V=b.getPagePadding();var aa=b.getPageSize();J=V.x-(this.x0||0)*aa.width;V=V.y-(this.y0||0)*aa.height;if(this.translate.x!=J||this.translate.y!=V)this.invalidate(),this.translate.x=J,this.translate.y=V}da.apply(this,arguments)};
-if(!b.isViewer()){var ma=b.sizeDidChange;b.sizeDidChange=function(){var J=ca;ca=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var V=this.getPageLayout(),aa=this.getDefaultTranslate(V),ba=this.view.translate.x,ja=this.view.translate.y;if(aa.x!=ba||aa.y!=ja){this.view.x0=V.x;this.view.y0=V.y;this.autoTranslate=!0;this.view.setTranslate(aa.x,aa.y);this.autoTranslate=!1;J||(this.container.scrollLeft+=Math.round((aa.x-ba)*this.view.scale),
+(mxEvent.isShiftDown(J)||z(30),B())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(J){mxEvent.consume(J)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(J){b.tooltipHandler.resetTimer();b.tooltipHandler.hideTooltip();mxEvent.isShiftDown(J)?B():z(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(J){mxEvent.isShiftDown(J)?B():z(100);mxEvent.consume(J)}));mxEvent.addListener(this.chromelessToolbar,
+"mouseleave",mxUtils.bind(this,function(J){mxEvent.isTouchEvent(J)||z(30)}));var O=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(J,W){this.startX=W.getGraphX();this.startY=W.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(J,W){},mouseUp:function(J,W){mxEvent.isTouchEvent(W.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<O&&Math.abs(this.scrollTop-b.container.scrollTop)<O&&
+Math.abs(this.startX-W.getGraphX())<O&&Math.abs(this.startY-W.getGraphY())<O&&(0<parseFloat(g.chromelessToolbar.style.opacity||0)?B():z(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var da=b.view.validate,ea=new mxPoint,ca=!1,V=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=g.currentPage&&V!=g.currentPage){V=g.currentPage;ca=!0;var J=b.getBoundingBoxFromGeometry(b.model.getCells(),!0,null,!0);null==
+J&&(J=new mxRectangle(b.view.translate.x*b.view.scale,b.view.translate.y*b.view.scale));J=b.getPageLayout(J,ea,1);var W=b.getDefaultTranslate(J);this.x0=J.x;this.y0=J.y;if(W.x!=this.translate.x||W.y!=this.translate.y)this.invalidate(),this.translate.x=W.x,this.translate.y=W.y}W=b.getPagePadding();var aa=b.getPageSize();J=W.x-(this.x0||0)*aa.width;W=W.y-(this.y0||0)*aa.height;if(this.translate.x!=J||this.translate.y!=W)this.invalidate(),this.translate.x=J,this.translate.y=W}da.apply(this,arguments)};
+if(!b.isViewer()){var ma=b.sizeDidChange;b.sizeDidChange=function(){var J=ca;ca=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var W=this.getPageLayout(),aa=this.getDefaultTranslate(W),ba=this.view.translate.x,ja=this.view.translate.y;if(aa.x!=ba||aa.y!=ja){this.view.x0=W.x;this.view.y0=W.y;this.autoTranslate=!0;this.view.setTranslate(aa.x,aa.y);this.autoTranslate=!1;J||(this.container.scrollLeft+=Math.round((aa.x-ba)*this.view.scale),
this.container.scrollTop+=Math.round((aa.y-ja)*this.view.scale));return}}ma.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var la=b.view.getBackgroundPane(),Y=b.view.getDrawPane();b.cumulativeZoomFactor=1;var fa=null,Z=null,l=null,u=null,H=null,U=function(J){null!=fa&&window.clearTimeout(fa);0<=J&&window.setTimeout(function(){if(!b.isMouseDown||u)fa=window.setTimeout(mxUtils.bind(this,function(){b.isFastZoomEnabled()&&(null!=b.view.backgroundPageShape&&
null!=b.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform",null)),Y.style.transformOrigin="",la.style.transformOrigin="",mxClient.IS_SF?(Y.style.transform="scale(1)",la.style.transform="scale(1)",window.setTimeout(function(){Y.style.transform="";la.style.transform=""},0)):(Y.style.transform="",la.style.transform=""),b.view.getDecoratorPane().style.opacity=
-"",b.view.getOverlayPane().style.opacity="");var V=new mxPoint(b.container.scrollLeft,b.container.scrollTop),aa=mxUtils.getOffset(b.container),ba=b.view.scale,ja=0,oa=0;null!=Z&&(ja=b.container.offsetWidth/2-Z.x+aa.x,oa=b.container.offsetHeight/2-Z.y+aa.y);b.zoom(b.cumulativeZoomFactor,null,b.isFastZoomEnabled()?20:null);b.view.scale!=ba&&(null!=l&&(ja+=V.x-l.x,oa+=V.y-l.y),null!=e&&g.chromelessResize(!1,null,ja*(b.cumulativeZoomFactor-1),oa*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||
-0==ja&&0==oa||(b.container.scrollLeft-=ja*(b.cumulativeZoomFactor-1),b.container.scrollTop-=oa*(b.cumulativeZoomFactor-1)));null!=H&&Y.setAttribute("filter",H);b.cumulativeZoomFactor=1;H=u=Z=l=fa=null}),null!=J?J:b.isFastZoomEnabled()?g.wheelZoomDelay:g.lazyZoomDelay)},0)};b.lazyZoom=function(J,V,aa,ba){ba=null!=ba?ba:this.zoomFactor;(V=V||!b.scrollbars)&&(Z=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));J?.15>=this.view.scale*this.cumulativeZoomFactor?
+"",b.view.getOverlayPane().style.opacity="");var W=new mxPoint(b.container.scrollLeft,b.container.scrollTop),aa=mxUtils.getOffset(b.container),ba=b.view.scale,ja=0,oa=0;null!=Z&&(ja=b.container.offsetWidth/2-Z.x+aa.x,oa=b.container.offsetHeight/2-Z.y+aa.y);b.zoom(b.cumulativeZoomFactor,null,b.isFastZoomEnabled()?20:null);b.view.scale!=ba&&(null!=l&&(ja+=W.x-l.x,oa+=W.y-l.y),null!=e&&g.chromelessResize(!1,null,ja*(b.cumulativeZoomFactor-1),oa*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||
+0==ja&&0==oa||(b.container.scrollLeft-=ja*(b.cumulativeZoomFactor-1),b.container.scrollTop-=oa*(b.cumulativeZoomFactor-1)));null!=H&&Y.setAttribute("filter",H);b.cumulativeZoomFactor=1;H=u=Z=l=fa=null}),null!=J?J:b.isFastZoomEnabled()?g.wheelZoomDelay:g.lazyZoomDelay)},0)};b.lazyZoom=function(J,W,aa,ba){ba=null!=ba?ba:this.zoomFactor;(W=W||!b.scrollbars)&&(Z=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));J?.15>=this.view.scale*this.cumulativeZoomFactor?
this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=ba,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale-.05)/this.view.scale:(this.cumulativeZoomFactor/=ba,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale);this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*
-this.cumulativeZoomFactor,160))/this.view.scale;if(b.isFastZoomEnabled()){null==H&&""!=Y.getAttribute("filter")&&(H=Y.getAttribute("filter"),Y.removeAttribute("filter"));l=new mxPoint(b.container.scrollLeft,b.container.scrollTop);J=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);ba=V||null==Z?b.container.scrollLeft+b.container.clientWidth/2:Z.x+b.container.scrollLeft-b.container.offsetLeft;var ja=V||null==Z?b.container.scrollTop+b.container.clientHeight/
-2:Z.y+b.container.scrollTop-b.container.offsetTop;Y.style.transformOrigin=ba+"px "+ja+"px";Y.style.transform="scale("+J+")";la.style.transformOrigin=ba+"px "+ja+"px";la.style.transform="scale("+J+")";null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node?(ba=b.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(ba.style,"transform-origin",(V||null==Z?b.container.clientWidth/2+b.container.scrollLeft-ba.offsetLeft+"px":Z.x+b.container.scrollLeft-ba.offsetLeft-b.container.offsetLeft+
-"px")+" "+(V||null==Z?b.container.clientHeight/2+b.container.scrollTop-ba.offsetTop+"px":Z.y+b.container.scrollTop-ba.offsetTop-b.container.offsetTop+"px")),mxUtils.setPrefixedStyle(ba.style,"transform","scale("+J+")")):b.view.validateBackgroundStyles(J,ba,ja);b.view.getDecoratorPane().style.opacity="0";b.view.getOverlayPane().style.opacity="0";null!=g.hoverIcons&&g.hoverIcons.reset();b.fireEvent(new mxEventObject("zoomPreview","factor",J))}U(b.isFastZoomEnabled()?aa:0)};mxEvent.addGestureListeners(b.container,
-function(J){null!=fa&&window.clearTimeout(fa)},null,function(J){1!=b.cumulativeZoomFactor&&U(0)});mxEvent.addListener(b.container,"scroll",function(J){null==fa||b.isMouseDown||1==b.cumulativeZoomFactor||U(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(J,V,aa,ba,ja){b.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!aa&&b.isScrollWheelEvent(J))aa=b.view.getTranslate(),ba=40/b.view.scale,mxEvent.isShiftDown(J)?b.view.setTranslate(aa.x+
-(V?-ba:ba),aa.y):b.view.setTranslate(aa.x,aa.y+(V?ba:-ba));else if(aa||b.isZoomWheelEvent(J))for(var oa=mxEvent.getSource(J);null!=oa;){if(oa==b.container)return b.tooltipHandler.hideTooltip(),Z=null!=ba&&null!=ja?new mxPoint(ba,ja):new mxPoint(mxEvent.getClientX(J),mxEvent.getClientY(J)),u=aa,aa=b.zoomFactor,ba=null,J.ctrlKey&&null!=J.deltaY&&40>Math.abs(J.deltaY)&&Math.round(J.deltaY)!=J.deltaY?aa=1+Math.abs(J.deltaY)/20*(aa-1):null!=J.movementY&&"pointermove"==J.type&&(aa=1+Math.max(1,Math.abs(J.movementY))/
-20*(aa-1),ba=-1),b.lazyZoom(V,null,ba,aa),mxEvent.consume(J),!1;oa=oa.parentNode}}),b.container);b.panningHandler.zoomGraph=function(J){b.cumulativeZoomFactor=J.scale;b.lazyZoom(0<J.scale,!0);mxEvent.consume(J)}};EditorUi.prototype.addChromelessToolbarItems=function(b){b(mxUtils.bind(this,function(e){this.actions.get("print").funct();mxEvent.consume(e)}),Editor.printImage,mxResources.get("print"))};EditorUi.prototype.isPagesEnabled=function(){return this.editor.editable||"1"!=urlParams["hide-pages"]};
+this.cumulativeZoomFactor,160))/this.view.scale;if(b.isFastZoomEnabled()){null==H&&""!=Y.getAttribute("filter")&&(H=Y.getAttribute("filter"),Y.removeAttribute("filter"));l=new mxPoint(b.container.scrollLeft,b.container.scrollTop);J=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);ba=W||null==Z?b.container.scrollLeft+b.container.clientWidth/2:Z.x+b.container.scrollLeft-b.container.offsetLeft;var ja=W||null==Z?b.container.scrollTop+b.container.clientHeight/
+2:Z.y+b.container.scrollTop-b.container.offsetTop;Y.style.transformOrigin=ba+"px "+ja+"px";Y.style.transform="scale("+J+")";la.style.transformOrigin=ba+"px "+ja+"px";la.style.transform="scale("+J+")";null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node?(ba=b.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(ba.style,"transform-origin",(W||null==Z?b.container.clientWidth/2+b.container.scrollLeft-ba.offsetLeft+"px":Z.x+b.container.scrollLeft-ba.offsetLeft-b.container.offsetLeft+
+"px")+" "+(W||null==Z?b.container.clientHeight/2+b.container.scrollTop-ba.offsetTop+"px":Z.y+b.container.scrollTop-ba.offsetTop-b.container.offsetTop+"px")),mxUtils.setPrefixedStyle(ba.style,"transform","scale("+J+")")):b.view.validateBackgroundStyles(J,ba,ja);b.view.getDecoratorPane().style.opacity="0";b.view.getOverlayPane().style.opacity="0";null!=g.hoverIcons&&g.hoverIcons.reset();b.fireEvent(new mxEventObject("zoomPreview","factor",J))}U(b.isFastZoomEnabled()?aa:0)};mxEvent.addGestureListeners(b.container,
+function(J){null!=fa&&window.clearTimeout(fa)},null,function(J){1!=b.cumulativeZoomFactor&&U(0)});mxEvent.addListener(b.container,"scroll",function(J){null==fa||b.isMouseDown||1==b.cumulativeZoomFactor||U(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(J,W,aa,ba,ja){b.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!aa&&b.isScrollWheelEvent(J))aa=b.view.getTranslate(),ba=40/b.view.scale,mxEvent.isShiftDown(J)?b.view.setTranslate(aa.x+
+(W?-ba:ba),aa.y):b.view.setTranslate(aa.x,aa.y+(W?ba:-ba));else if(aa||b.isZoomWheelEvent(J))for(var oa=mxEvent.getSource(J);null!=oa;){if(oa==b.container)return b.tooltipHandler.hideTooltip(),Z=null!=ba&&null!=ja?new mxPoint(ba,ja):new mxPoint(mxEvent.getClientX(J),mxEvent.getClientY(J)),u=aa,aa=b.zoomFactor,ba=null,J.ctrlKey&&null!=J.deltaY&&40>Math.abs(J.deltaY)&&Math.round(J.deltaY)!=J.deltaY?aa=1+Math.abs(J.deltaY)/20*(aa-1):null!=J.movementY&&"pointermove"==J.type&&(aa=1+Math.max(1,Math.abs(J.movementY))/
+20*(aa-1),ba=-1),b.lazyZoom(W,null,ba,aa),mxEvent.consume(J),!1;oa=oa.parentNode}}),b.container);b.panningHandler.zoomGraph=function(J){b.cumulativeZoomFactor=J.scale;b.lazyZoom(0<J.scale,!0);mxEvent.consume(J)}};EditorUi.prototype.addChromelessToolbarItems=function(b){b(mxUtils.bind(this,function(e){this.actions.get("print").funct();mxEvent.consume(e)}),Editor.printImage,mxResources.get("print"))};EditorUi.prototype.isPagesEnabled=function(){return this.editor.editable||"1"!=urlParams["hide-pages"]};
EditorUi.prototype.createTemporaryGraph=function(b){return Graph.createOffscreenGraph(b)};EditorUi.prototype.addChromelessClickHandler=function(){var b=urlParams.highlight;null!=b&&0<b.length&&(b="#"+b);this.editor.graph.addClickHandler(b)};EditorUi.prototype.toggleFormatPanel=function(b){b=null!=b?b:0==this.formatWidth;null!=this.format&&(this.formatWidth=b?240:0,this.formatContainer.style.width=this.formatWidth+"px",this.refresh(),this.format.refresh(),this.fireEvent(new mxEventObject("formatWidthChanged")))};
EditorUi.prototype.isFormatPanelVisible=function(){return 0<this.formatWidth};EditorUi.prototype.lightboxFit=function(b){if(this.isDiagramEmpty())this.editor.graph.view.setScale(1);else{var e=urlParams.border,g=60;null!=e&&(g=parseInt(e));this.editor.graph.maxFitScale=this.lightboxMaxFitScale;this.editor.graph.fit(g,null,null,null,null,null,b);this.editor.graph.maxFitScale=null}};
EditorUi.prototype.isDiagramEmpty=function(){var b=this.editor.graph.getModel();return 1==b.getChildCount(b.root)&&0==b.getChildCount(b.getChildAt(b.root,0))};EditorUi.prototype.isSelectionAllowed=function(b){return"SELECT"==mxEvent.getSource(b).nodeName||"INPUT"==mxEvent.getSource(b).nodeName&&mxUtils.isAncestorNode(this.formatContainer,mxEvent.getSource(b))};EditorUi.prototype.addBeforeUnloadListener=function(){window.onbeforeunload=mxUtils.bind(this,function(){if(!this.editor.isChromelessView())return this.onBeforeUnload()})};
@@ -2164,8 +2176,8 @@ e.clientWidth&&(e.scrollLeft=Math.min(g.x+g.width-e.clientWidth,g.x-10)),g.y>e.s
e.scrollTop=Math.floor(Math.max(0,g.y-Math.max(20,(e.clientHeight-m)/4)))}else{g=mxRectangle.fromRectangle(b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds());m=b.view.translate;var v=b.view.scale;g.x=g.x/v-m.x;g.y=g.y/v-m.y;g.width/=v;g.height/=v;b.view.setTranslate(Math.floor(Math.max(0,(e.clientWidth-g.width)/2)-g.x+2),Math.floor((b.pageVisible?0:Math.max(0,(e.clientHeight-g.height)/4))-g.y+1))}};
EditorUi.prototype.setPageVisible=function(b){var e=this.editor.graph,g=mxUtils.hasScrollbars(e.container),m=0,v=0;g&&(m=e.view.translate.x*e.view.scale-e.container.scrollLeft,v=e.view.translate.y*e.view.scale-e.container.scrollTop);e.pageVisible=b;e.pageBreaksVisible=b;e.preferPageSize=b;e.view.validateBackground();if(g){var p=e.getSelectionCells();e.clearSelection();e.setSelectionCells(p)}e.sizeDidChange();g&&(e.container.scrollLeft=e.view.translate.x*e.view.scale-m,e.container.scrollTop=e.view.translate.y*
e.view.scale-v);e.defaultPageVisible=b;this.fireEvent(new mxEventObject("pageViewChanged"))};
-EditorUi.prototype.installResizeHandler=function(b,e,g){e&&(b.window.setSize=function(v,p){if(!this.minimized){var B=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;v=Math.min(v,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());p=Math.min(p,B-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});b.window.setLocation=function(v,p){var B=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
-G=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,S=parseInt(this.div.style.width),F=parseInt(this.div.style.height);v=Math.max(0,Math.min(v,B-S));p=Math.max(0,Math.min(p,G-F));this.getX()==v&&this.getY()==p||mxWindow.prototype.setLocation.apply(this,arguments);e&&!this.minimized&&this.setSize(S,F)};var m=mxUtils.bind(this,function(){var v=b.window.getX(),p=b.window.getY();b.window.setLocation(v,p)});mxEvent.addListener(window,"resize",m);b.destroy=function(){mxEvent.removeListener(window,
+EditorUi.prototype.installResizeHandler=function(b,e,g){e&&(b.window.setSize=function(v,p){if(!this.minimized){var A=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;v=Math.min(v,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());p=Math.min(p,A-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});b.window.setLocation=function(v,p){var A=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
+G=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,S=parseInt(this.div.style.width),F=parseInt(this.div.style.height);v=Math.max(0,Math.min(v,A-S));p=Math.max(0,Math.min(p,G-F));this.getX()==v&&this.getY()==p||mxWindow.prototype.setLocation.apply(this,arguments);e&&!this.minimized&&this.setSize(S,F)};var m=mxUtils.bind(this,function(){var v=b.window.getX(),p=b.window.getY();b.window.setLocation(v,p)});mxEvent.addListener(window,"resize",m);b.destroy=function(){mxEvent.removeListener(window,
"resize",m);b.window.destroy();null!=g&&g()}};function ChangeGridColor(b,e){this.ui=b;this.color=e}ChangeGridColor.prototype.execute=function(){var b=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=b};(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);mxCodecRegistry.register(b)})();
function ChangePageSetup(b,e,g,m,v){this.ui=b;this.previousColor=this.color=e;this.previousImage=this.image=g;this.previousFormat=this.format=m;this.previousPageScale=this.pageScale=v;this.ignoreImage=this.ignoreColor=!1}
ChangePageSetup.prototype.execute=function(){var b=this.ui.editor.graph;if(!this.ignoreColor){this.color=this.previousColor;var e=b.background;this.ui.setBackgroundColor(this.previousColor);this.previousColor=e}if(!this.ignoreImage){this.image=this.previousImage;e=b.backgroundImage;var g=this.previousImage;null!=g&&Graph.isPageLink(g.src)&&(g=this.ui.createImageForPageLink(g.src,this.ui.currentPage));this.ui.setBackgroundImage(g);this.previousImage=e}null!=this.previousFormat&&(this.format=this.previousFormat,
@@ -2186,8 +2198,8 @@ this.actions.get("expand").setEnabled(m);this.actions.get("collapse").setEnabled
EditorUi.prototype.zeroOffset=new mxPoint(0,0);EditorUi.prototype.getDiagramContainerOffset=function(){return this.zeroOffset};
EditorUi.prototype.refresh=function(b){b=null!=b?b:!0;var e=this.container.clientWidth;this.container==document.body&&(e=document.body.clientWidth||document.documentElement.clientWidth);var g=0;mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&window.innerHeight!=document.documentElement.clientHeight&&(g=document.documentElement.clientHeight-window.innerHeight,window.scrollTo(0,0));var m=Math.max(0,Math.min(this.hsplitPosition,e-this.splitSize-40));e=0;null!=this.menubar&&
(this.menubarContainer.style.height=this.menubarHeight+"px",e+=this.menubarHeight);null!=this.toolbar&&(this.toolbarContainer.style.top=this.menubarHeight+"px",this.toolbarContainer.style.height=this.toolbarHeight+"px",e+=this.toolbarHeight);0<e&&(e+=1);var v=null!=this.format?this.formatWidth:0;this.sidebarContainer.style.top=e+"px";this.sidebarContainer.style.width=m+"px";this.formatContainer.style.top=e+"px";this.formatContainer.style.width=v+"px";this.formatContainer.style.display=null!=this.format?
-"":"none";var p=this.getDiagramContainerOffset(),B=null!=this.hsplit.parentNode?m:0;this.footerContainer.style.height=this.footerHeight+"px";this.hsplit.style.top=this.sidebarContainer.style.top;this.hsplit.style.left=m+"px";this.footerContainer.style.display=0==this.footerHeight?"none":"";null!=this.tabContainer?(this.tabContainer.style.left=B+"px",this.hsplit.style.bottom=this.tabContainer.offsetHeight+"px"):this.hsplit.style.bottom=this.footerHeight+g+"px";0<this.footerHeight&&(this.footerContainer.style.bottom=
-g+"px");m=0;null!=this.tabContainer&&(this.tabContainer.style.bottom=this.footerHeight+g+"px",this.tabContainer.style.right=v+"px",m=this.tabContainer.clientHeight,this.checkTabScrollerOverflow());this.sidebarContainer.style.bottom=this.footerHeight+g+"px";this.formatContainer.style.bottom=this.footerHeight+g+"px";this.diagramContainer.style.left=B+p.x+"px";this.diagramContainer.style.top=e+p.y+"px";this.diagramContainer.style.right=v+"px";this.diagramContainer.style.bottom=this.footerHeight+g+m+
+"":"none";var p=this.getDiagramContainerOffset(),A=null!=this.hsplit.parentNode?m:0;this.footerContainer.style.height=this.footerHeight+"px";this.hsplit.style.top=this.sidebarContainer.style.top;this.hsplit.style.left=m+"px";this.footerContainer.style.display=0==this.footerHeight?"none":"";null!=this.tabContainer?(this.tabContainer.style.left=A+"px",this.hsplit.style.bottom=this.tabContainer.offsetHeight+"px"):this.hsplit.style.bottom=this.footerHeight+g+"px";0<this.footerHeight&&(this.footerContainer.style.bottom=
+g+"px");m=0;null!=this.tabContainer&&(this.tabContainer.style.bottom=this.footerHeight+g+"px",this.tabContainer.style.right=v+"px",m=this.tabContainer.clientHeight,this.checkTabScrollerOverflow());this.sidebarContainer.style.bottom=this.footerHeight+g+"px";this.formatContainer.style.bottom=this.footerHeight+g+"px";this.diagramContainer.style.left=A+p.x+"px";this.diagramContainer.style.top=e+p.y+"px";this.diagramContainer.style.right=v+"px";this.diagramContainer.style.bottom=this.footerHeight+g+m+
"px";b&&this.editor.graph.sizeDidChange()};EditorUi.prototype.createTabContainer=function(){return null};
EditorUi.prototype.createDivs=function(){this.menubarContainer=this.createDiv("geMenubarContainer");this.toolbarContainer=this.createDiv("geToolbarContainer");this.sidebarContainer=this.createDiv("geSidebarContainer");this.formatContainer=this.createDiv("geSidebarContainer geFormatContainer");this.diagramContainer=this.createDiv("geDiagramContainer");this.footerContainer=this.createDiv("geFooterContainer");this.hsplit=this.createDiv("geHsplit");this.menubarContainer.style.top="0px";this.menubarContainer.style.left=
"0px";this.menubarContainer.style.right="0px";this.toolbarContainer.style.left="0px";this.toolbarContainer.style.right="0px";this.sidebarContainer.style.left="0px";this.sidebarContainer.style.zIndex="1";this.formatContainer.style.right="0px";this.formatContainer.style.zIndex="1";this.diagramContainer.style.right=(null!=this.format?this.formatWidth:0)+"px";this.footerContainer.style.left="0px";this.footerContainer.style.right="0px";this.footerContainer.style.bottom="0px";this.footerContainer.style.zIndex=
@@ -2201,22 +2213,22 @@ EditorUi.prototype.setStatusText=function(b){this.statusContainer.innerHTML=Grap
"transition","all 0.2s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(g,100);mxUtils.setPrefixedStyle(g.style,"transform","scaleX(1)");mxUtils.setPrefixedStyle(g.style,"transition","all 1s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(g.style,"transform","scaleX(0)");mxUtils.setOpacity(g,0);window.setTimeout(mxUtils.bind(this,function(){null!=g.parentNode&&g.parentNode.removeChild(g)}),1E3)}),Editor.updateStatusInterval/2)}),0)})(b[e])};
EditorUi.prototype.createStatusDiv=function(b){var e=document.createElement("div");e.style.textOverflow="ellipsis";e.style.display="inline-block";e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.style.minWidth="0";e.setAttribute("title",b);e.innerHTML=Graph.sanitizeHtml(b);return e};EditorUi.prototype.createToolbar=function(b){return new Toolbar(this,b)};EditorUi.prototype.createSidebar=function(b){return new Sidebar(this,b)};
EditorUi.prototype.createFormat=function(b){return new Format(this,b)};EditorUi.prototype.createFooter=function(){return this.createDiv("geFooter")};EditorUi.prototype.createDiv=function(b){var e=document.createElement("div");e.className=b;return e};
-EditorUi.prototype.addSplitHandler=function(b,e,g,m){function v(R){if(null!=B){var T=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R));m(Math.max(0,G+(e?T.x-B.x:B.y-T.y)-g));mxEvent.consume(R);G!=P()&&(S=!0,F=null)}}function p(R){v(R);B=G=null}var B=null,G=null,S=!0,F=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var P=mxUtils.bind(this,function(){var R=parseInt(e?b.style.left:b.style.bottom);e||(R=R+g-this.footerHeight);return R});mxEvent.addGestureListeners(b,function(R){B=new mxPoint(mxEvent.getClientX(R),
+EditorUi.prototype.addSplitHandler=function(b,e,g,m){function v(R){if(null!=A){var T=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R));m(Math.max(0,G+(e?T.x-A.x:A.y-T.y)-g));mxEvent.consume(R);G!=P()&&(S=!0,F=null)}}function p(R){v(R);A=G=null}var A=null,G=null,S=!0,F=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var P=mxUtils.bind(this,function(){var R=parseInt(e?b.style.left:b.style.bottom);e||(R=R+g-this.footerHeight);return R});mxEvent.addGestureListeners(b,function(R){A=new mxPoint(mxEvent.getClientX(R),
mxEvent.getClientY(R));G=P();S=!1;mxEvent.consume(R)});mxEvent.addListener(b,"click",mxUtils.bind(this,function(R){if(!S&&this.hsplitClickEnabled){var T=null!=F?F-g:0;F=P();m(T);mxEvent.consume(R)}}));mxEvent.addGestureListeners(document,null,v,p);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,v,p)})};
EditorUi.prototype.prompt=function(b,e,g){b=new FilenameDialog(this,e,mxResources.get("apply"),function(m){g(parseFloat(m))},b);this.showDialog(b.container,300,80,!0,!0);b.init()};
EditorUi.prototype.handleError=function(b,e,g,m,v){b=null!=b&&null!=b.error?b.error:b;if(null!=b||null!=e){v=mxUtils.htmlEntities(mxResources.get("unknownError"));var p=mxResources.get("ok");e=null!=e?e:mxResources.get("error");null!=b&&null!=b.message&&(v=mxUtils.htmlEntities(b.message));this.showError(e,v,p,g,null,null,null,null,null,null,null,null,m?g:null)}else null!=g&&g()};
-EditorUi.prototype.showError=function(b,e,g,m,v,p,B,G,S,F,P,R,T){b=new ErrorDialog(this,b,e,g||mxResources.get("ok"),m,v,p,B,R,G,S);e=Math.ceil(null!=e?e.length/50:1);this.showDialog(b.container,F||340,P||100+20*e,!0,!1,T);b.init()};EditorUi.prototype.showDialog=function(b,e,g,m,v,p,B,G,S,F){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,e,g,m,v,p,B,G,S,F);this.dialogs.push(this.dialog)};
+EditorUi.prototype.showError=function(b,e,g,m,v,p,A,G,S,F,P,R,T){b=new ErrorDialog(this,b,e,g||mxResources.get("ok"),m,v,p,A,R,G,S);e=Math.ceil(null!=e?e.length/50:1);this.showDialog(b.container,F||340,P||100+20*e,!0,!1,T);b.init()};EditorUi.prototype.showDialog=function(b,e,g,m,v,p,A,G,S,F){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,e,g,m,v,p,A,G,S,F);this.dialogs.push(this.dialog)};
EditorUi.prototype.hideDialog=function(b,e,g){var m=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var v=this.dialogs.length-1;0<=v;v--)if(!this.dialogs[v].closing){m=this.dialogs[v];break}null==m||null!=g&&g!=this.dialog.container.firstChild||(m.closing=!0,0==m.close(b,e)?delete m.closing:(delete m.closing,b=mxUtils.lastIndexOf(this.dialogs,m),0<=b&&this.dialogs.splice(b,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog",
"dialog",m)),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null==this.editor||null!=this.dialogs&&0!=this.dialogs.length||(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};
-EditorUi.prototype.ctrlEnter=function(){var b=this.editor.graph;if(b.isEnabled())try{for(var e=b.getSelectionCells(),g=new mxDictionary,m=[],v=0;v<e.length;v++){var p=b.isTableCell(e[v])?b.model.getParent(e[v]):e[v];null==p||g.get(p)||(g.put(p,!0),m.push(p))}b.setSelectionCells(b.duplicateCells(m,!1))}catch(B){this.handleError(B)}};
-EditorUi.prototype.pickColor=function(b,e,g,m,v){var p=this.editor.graph,B=p.cellEditor.saveSelection(),G=(v?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,b,function(S){p.cellEditor.restoreSelection(B);e(S)},function(){p.cellEditor.restoreSelection(B)},g,m,v);this.showDialog(b.container,230,G,!0,!1);b.init()};
+EditorUi.prototype.ctrlEnter=function(){var b=this.editor.graph;if(b.isEnabled())try{for(var e=b.getSelectionCells(),g=new mxDictionary,m=[],v=0;v<e.length;v++){var p=b.isTableCell(e[v])?b.model.getParent(e[v]):e[v];null==p||g.get(p)||(g.put(p,!0),m.push(p))}b.setSelectionCells(b.duplicateCells(m,!1))}catch(A){this.handleError(A)}};
+EditorUi.prototype.pickColor=function(b,e,g,m,v){var p=this.editor.graph,A=p.cellEditor.saveSelection(),G=(v?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,b,function(S){p.cellEditor.restoreSelection(A);e(S)},function(){p.cellEditor.restoreSelection(A)},g,m,v);this.showDialog(b.container,230,G,!0,!1);b.init()};
EditorUi.prototype.openFile=function(){window.openFile=new OpenFile(mxUtils.bind(this,function(b){this.hideDialog(b)}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:320,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null})};
-EditorUi.prototype.base64ToBlob=function(b,e){e=e||"";b=atob(b);for(var g=b.length,m=Math.ceil(g/1024),v=Array(m),p=0;p<m;++p){for(var B=1024*p,G=Math.min(B+1024,g),S=Array(G-B),F=0;B<G;++F,++B)S[F]=b[B].charCodeAt(0);v[p]=new Uint8Array(S)}return new Blob(v,{type:e})};
+EditorUi.prototype.base64ToBlob=function(b,e){e=e||"";b=atob(b);for(var g=b.length,m=Math.ceil(g/1024),v=Array(m),p=0;p<m;++p){for(var A=1024*p,G=Math.min(A+1024,g),S=Array(G-A),F=0;A<G;++F,++A)S[F]=b[A].charCodeAt(0);v[p]=new Uint8Array(S)}return new Blob(v,{type:e})};
EditorUi.prototype.writeImageToClipboard=function(b,e,g,m){var v=this.base64ToBlob(b.substring(b.indexOf(",")+1),"image/png");b=new ClipboardItem({"image/png":v,"text/html":new Blob(['<img src="'+b+'" width="'+e+'" height="'+g+'">'],{type:"text/html"})});navigator.clipboard.write([b])["catch"](m)};EditorUi.prototype.writeHtmlToClipboard=function(b,e){b=new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(b)],{type:"text/plain"}),"text/html":new Blob([b],{type:"text/html"})});navigator.clipboard.write([b])["catch"](e)};
EditorUi.prototype.writeTextToClipboard=function(b,e){navigator.clipboard.writeText(b)["catch"](e)};EditorUi.prototype.extractGraphModelFromHtml=function(b){var e=null;try{var g=b.indexOf("&lt;mxGraphModel ");if(0<=g){var m=b.lastIndexOf("&lt;/mxGraphModel&gt;");m>g&&(e=b.substring(g,m+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(v){}return e};
EditorUi.prototype.readGraphModelFromClipboard=function(b){this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(e){null!=e?b(e):this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(g){if(null!=g){var m=decodeURIComponent(g);this.isCompatibleString(m)&&(g=m)}b(g)}),"text")}),"html")};
-EditorUi.prototype.readGraphModelFromClipboardWithType=function(b,e){navigator.clipboard.read().then(mxUtils.bind(this,function(g){if(null!=g&&0<g.length&&"html"==e&&0<=mxUtils.indexOf(g[0].types,"text/html"))g[0].getType("text/html").then(mxUtils.bind(this,function(m){m.text().then(mxUtils.bind(this,function(v){try{var p=this.parseHtmlData(v),B="text/plain"!=p.getAttribute("data-type")?p.innerHTML:mxUtils.trim(null==p.innerText?mxUtils.getTextContent(p):p.innerText);try{var G=B.lastIndexOf("%3E");
-0<=G&&G<B.length-3&&(B=B.substring(0,G+3))}catch(P){}try{var S=p.getElementsByTagName("span"),F=null!=S&&0<S.length?mxUtils.trim(decodeURIComponent(S[0].textContent)):decodeURIComponent(B);this.isCompatibleString(F)&&(B=F)}catch(P){}}catch(P){}b(this.isCompatibleString(B)?B:null)}))["catch"](function(v){b(null)})}))["catch"](function(m){b(null)});else if(null!=g&&0<g.length&&"text"==e&&0<=mxUtils.indexOf(g[0].types,"text/plain"))g[0].getType("text/plain").then(function(m){m.text().then(function(v){b(v)})["catch"](function(){b(null)})})["catch"](function(){b(null)});
+EditorUi.prototype.readGraphModelFromClipboardWithType=function(b,e){navigator.clipboard.read().then(mxUtils.bind(this,function(g){if(null!=g&&0<g.length&&"html"==e&&0<=mxUtils.indexOf(g[0].types,"text/html"))g[0].getType("text/html").then(mxUtils.bind(this,function(m){m.text().then(mxUtils.bind(this,function(v){try{var p=this.parseHtmlData(v),A="text/plain"!=p.getAttribute("data-type")?p.innerHTML:mxUtils.trim(null==p.innerText?mxUtils.getTextContent(p):p.innerText);try{var G=A.lastIndexOf("%3E");
+0<=G&&G<A.length-3&&(A=A.substring(0,G+3))}catch(P){}try{var S=p.getElementsByTagName("span"),F=null!=S&&0<S.length?mxUtils.trim(decodeURIComponent(S[0].textContent)):decodeURIComponent(A);this.isCompatibleString(F)&&(A=F)}catch(P){}}catch(P){}b(this.isCompatibleString(A)?A:null)}))["catch"](function(v){b(null)})}))["catch"](function(m){b(null)});else if(null!=g&&0<g.length&&"text"==e&&0<=mxUtils.indexOf(g[0].types,"text/plain"))g[0].getType("text/plain").then(function(m){m.text().then(function(v){b(v)})["catch"](function(){b(null)})})["catch"](function(){b(null)});
else b(null)}))["catch"](function(g){b(null)})};
EditorUi.prototype.parseHtmlData=function(b){var e=null;if(null!=b&&0<b.length){var g="<meta "==b.substring(0,6);e=document.createElement("div");e.innerHTML=(g?'<meta charset="utf-8">':"")+Graph.sanitizeHtml(b);asHtml=!0;b=e.getElementsByTagName("style");if(null!=b)for(;0<b.length;)b[0].parentNode.removeChild(b[0]);null!=e.firstChild&&e.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=e.firstChild.nextSibling&&e.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==e.firstChild.nodeName&&
"A"==e.firstChild.nextSibling.nodeName&&null==e.firstChild.nextSibling.nextSibling&&(b=null==e.firstChild.nextSibling.innerText?mxUtils.getTextContent(e.firstChild.nextSibling):e.firstChild.nextSibling.innerText,b==e.firstChild.nextSibling.getAttribute("href")&&(mxUtils.setTextContent(e,b),asHtml=!1));g=g&&null!=e.firstChild?e.firstChild.nextSibling:e.firstChild;null!=g&&null==g.nextSibling&&g.nodeType==mxConstants.NODETYPE_ELEMENT&&"IMG"==g.nodeName?(b=g.getAttribute("src"),null!=b&&(Editor.isPngDataUrl(b)&&
@@ -2227,16 +2239,16 @@ EditorUi.prototype.save=function(b){if(null!=b){this.editor.graph.isEditing()&&t
"_blank");else{mxUtils.alert(mxResources.get("drawingTooLarge"));mxUtils.popup(e);return}this.editor.setModified(!1);this.editor.setFilename(b);this.updateDocumentTitle()}catch(g){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get("errorSavingFile")))}}};
EditorUi.prototype.executeLayouts=function(b,e){this.executeLayout(mxUtils.bind(this,function(){var g=new mxCompositeLayout(this.editor.graph,b),m=this.editor.graph.getSelectionCells();g.execute(this.editor.graph.getDefaultParent(),0==m.length?null:m)}),!0,e)};
EditorUi.prototype.executeLayout=function(b,e,g){var m=this.editor.graph;m.getModel().beginUpdate();try{b()}catch(v){throw v;}finally{this.allowAnimation&&e&&m.isEnabled()?(b=new mxMorphing(m),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){m.getModel().endUpdate();null!=g&&g()})),b.startAnimation()):(m.getModel().endUpdate(),null!=g&&g())}};
-EditorUi.prototype.showImageDialog=function(b,e,g,m){m=this.editor.graph.cellEditor;var v=m.saveSelection(),p=mxUtils.prompt(b,e);m.restoreSelection(v);if(null!=p&&0<p.length){var B=new Image;B.onload=function(){g(p,B.width,B.height)};B.onerror=function(){g(null);mxUtils.alert(mxResources.get("fileNotFound"))};B.src=p}else g(null)};EditorUi.prototype.showLinkDialog=function(b,e,g){b=new LinkDialog(this,b,e,g);this.showDialog(b.container,420,90,!0,!0);b.init()};
+EditorUi.prototype.showImageDialog=function(b,e,g,m){m=this.editor.graph.cellEditor;var v=m.saveSelection(),p=mxUtils.prompt(b,e);m.restoreSelection(v);if(null!=p&&0<p.length){var A=new Image;A.onload=function(){g(p,A.width,A.height)};A.onerror=function(){g(null);mxUtils.alert(mxResources.get("fileNotFound"))};A.src=p}else g(null)};EditorUi.prototype.showLinkDialog=function(b,e,g){b=new LinkDialog(this,b,e,g);this.showDialog(b.container,420,90,!0,!0);b.init()};
EditorUi.prototype.showDataDialog=function(b){null!=b&&"undefined"!==typeof window.EditDataDialog&&(b=new EditDataDialog(this,b),this.showDialog(b.container,480,420,!0,!1,null,!1),b.init())};
EditorUi.prototype.showBackgroundImageDialog=function(b,e){b=null!=b?b:mxUtils.bind(this,function(m){m=new ChangePageSetup(this,null,m);m.ignoreColor=!0;this.editor.graph.model.execute(m)});var g=mxUtils.prompt(mxResources.get("backgroundImage"),null!=e?e.src:"");null!=g&&0<g.length?(e=new Image,e.onload=function(){b(new mxImage(g,e.width,e.height),!1)},e.onerror=function(){b(null,!0);mxUtils.alert(mxResources.get("fileNotFound"))},e.src=g):b(null)};
EditorUi.prototype.setBackgroundImage=function(b){this.editor.graph.setBackgroundImage(b);this.editor.graph.view.validateBackgroundImage();this.fireEvent(new mxEventObject("backgroundImageChanged"))};EditorUi.prototype.confirm=function(b,e,g){mxUtils.confirm(b)?null!=e&&e():null!=g&&g()};EditorUi.prototype.createOutline=function(b){var e=new mxOutline(this.editor.graph);mxEvent.addListener(window,"resize",function(){e.update(!1)});return e};
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(b){function e(R,T,c){if(!m.isSelectionEmpty()&&m.isEnabled()){T=null!=T?T:1;var f=m.getCompositeParents(m.getSelectionCells()),k=0<f.length?f[0]:null;if(null!=k)if(c){m.getModel().beginUpdate();try{for(k=0;k<f.length;k++)if(m.getModel().isVertex(f[k])&&m.isCellResizable(f[k])){var A=m.getCellGeometry(f[k]);null!=A&&(A=A.clone(),37==R?A.width=Math.max(0,A.width-T):38==R?A.height=Math.max(0,A.height-T):39==R?A.width+=T:40==R&&(A.height+=T),m.getModel().setGeometry(f[k],
-A))}}finally{m.getModel().endUpdate()}}else{A=m.model.getParent(k);var z=m.getView().scale;c=null;1==m.getSelectionCount()&&m.model.isVertex(k)&&null!=m.layoutManager&&!m.isCellLocked(k)&&(c=m.layoutManager.getLayout(A));if(null!=c&&c.constructor==mxStackLayout)T=A.getIndex(k),37==R||38==R?m.model.add(A,k,Math.max(0,T-1)):(39==R||40==R)&&m.model.add(A,k,Math.min(m.model.getChildCount(A),T+1));else{var C=m.graphHandler;null!=C&&(null==C.first&&C.start(k,0,0,m.getMovableCells(f)),null!=C.first&&(k=
-f=0,37==R?f=-T:38==R?k=-T:39==R?f=T:40==R&&(k=T),C.currentDx+=f*z,C.currentDy+=k*z,C.checkPreview(),C.updatePreview()),null!=B&&window.clearTimeout(B),B=window.setTimeout(function(){if(null!=C.first){var I=C.roundLength(C.currentDx/z),L=C.roundLength(C.currentDy/z);C.moveCells(C.cells,I,L);C.reset()}},400))}}}}var g=this,m=this.editor.graph,v=new mxKeyHandler(m),p=v.isEventIgnored;v.isEventIgnored=function(R){return!(mxEvent.isShiftDown(R)&&9==R.keyCode)&&(!this.isControlDown(R)||mxEvent.isShiftDown(R)||
+EditorUi.prototype.createKeyHandler=function(b){function e(R,T,c){if(!m.isSelectionEmpty()&&m.isEnabled()){T=null!=T?T:1;var f=m.getCompositeParents(m.getSelectionCells()),k=0<f.length?f[0]:null;if(null!=k)if(c){m.getModel().beginUpdate();try{for(k=0;k<f.length;k++)if(m.getModel().isVertex(f[k])&&m.isCellResizable(f[k])){var B=m.getCellGeometry(f[k]);null!=B&&(B=B.clone(),37==R?B.width=Math.max(0,B.width-T):38==R?B.height=Math.max(0,B.height-T):39==R?B.width+=T:40==R&&(B.height+=T),m.getModel().setGeometry(f[k],
+B))}}finally{m.getModel().endUpdate()}}else{B=m.model.getParent(k);var z=m.getView().scale;c=null;1==m.getSelectionCount()&&m.model.isVertex(k)&&null!=m.layoutManager&&!m.isCellLocked(k)&&(c=m.layoutManager.getLayout(B));if(null!=c&&c.constructor==mxStackLayout)T=B.getIndex(k),37==R||38==R?m.model.add(B,k,Math.max(0,T-1)):(39==R||40==R)&&m.model.add(B,k,Math.min(m.model.getChildCount(B),T+1));else{var C=m.graphHandler;null!=C&&(null==C.first&&C.start(k,0,0,m.getMovableCells(f)),null!=C.first&&(k=
+f=0,37==R?f=-T:38==R?k=-T:39==R?f=T:40==R&&(k=T),C.currentDx+=f*z,C.currentDy+=k*z,C.checkPreview(),C.updatePreview()),null!=A&&window.clearTimeout(A),A=window.setTimeout(function(){if(null!=C.first){var I=C.roundLength(C.currentDx/z),L=C.roundLength(C.currentDy/z);C.moveCells(C.cells,I,L);C.reset()}},400))}}}}var g=this,m=this.editor.graph,v=new mxKeyHandler(m),p=v.isEventIgnored;v.isEventIgnored=function(R){return!(mxEvent.isShiftDown(R)&&9==R.keyCode)&&(!this.isControlDown(R)||mxEvent.isShiftDown(R)||
90!=R.keyCode&&89!=R.keyCode&&188!=R.keyCode&&190!=R.keyCode&&85!=R.keyCode)&&(66!=R.keyCode&&73!=R.keyCode||!this.isControlDown(R)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=R.keyCode&&107!=R.keyCode||!this.isControlDown(R)&&!mxEvent.isShiftDown(R)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&p.apply(this,arguments)};v.isEnabledForEvent=function(R){return!mxEvent.isConsumed(R)&&this.isGraphEvent(R)&&this.isEnabled()&&(null==
-g.dialogs||0==g.dialogs.length)};v.isControlDown=function(R){return mxEvent.isControlDown(R)||mxClient.IS_MAC&&R.metaKey};var B=null,G={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},S=v.getFunction;mxKeyHandler.prototype.getFunction=function(R){if(m.isEnabled()){var T=null;mxEvent.isShiftDown(R)&&this.isControlDown(R)&&mxEvent.isAltDown(R)?T=g.actions.get(g.ctrlAltShiftActions[R.keyCode]):mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)?
+g.dialogs||0==g.dialogs.length)};v.isControlDown=function(R){return mxEvent.isControlDown(R)||mxClient.IS_MAC&&R.metaKey};var A=null,G={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},S=v.getFunction;mxKeyHandler.prototype.getFunction=function(R){if(m.isEnabled()){var T=null;mxEvent.isShiftDown(R)&&this.isControlDown(R)&&mxEvent.isAltDown(R)?T=g.actions.get(g.ctrlAltShiftActions[R.keyCode]):mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)?
T=g.actions.get(g.altShiftActions[R.keyCode]):this.isControlDown(R)&&mxEvent.isAltDown(R)&&(T=g.actions.get(g.ctrlAltActions[R.keyCode]));if(null!=T)return T.funct;if(null!=G[R.keyCode]&&!m.isSelectionEmpty())if(!this.isControlDown(R)&&mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)){if(m.model.isVertex(m.getSelectionCell()))return function(){var c=m.connectVertex(m.getSelectionCell(),G[R.keyCode],m.defaultEdgeLength,R,!0);null!=c&&0<c.length&&(1==c.length&&m.model.isEdge(c[0])?m.setSelectionCell(m.model.getTerminal(c[0],
!1)):m.setSelectionCell(c[c.length-1]),m.scrollCellToVisible(m.getSelectionCell()),null!=g.hoverIcons&&g.hoverIcons.update(m.view.getState(m.getSelectionCell())))}}else return this.isControlDown(R)?function(){e(R.keyCode,mxEvent.isShiftDown(R)?m.gridSize:null,!0)}:function(){e(R.keyCode,mxEvent.isShiftDown(R)?m.gridSize:null)}}return S.apply(this,arguments)};v.bindAction=mxUtils.bind(this,function(R,T,c,f){var k=this.actions.get(c);null!=k&&(c=function(){k.isEnabled()&&k.funct.apply(this,arguments)},
T?f?v.bindControlShiftKey(R,c):v.bindControlKey(R,c):f?v.bindShiftKey(R,c):v.bindKey(R,c))});var F=this,P=v.escape;v.escape=function(R){P.apply(this,arguments)};v.enter=function(){};v.bindControlShiftKey(36,function(){m.exitGroup()});v.bindControlShiftKey(35,function(){m.enterGroup()});v.bindShiftKey(36,function(){m.home()});v.bindKey(35,function(){m.refresh()});v.bindAction(80,!0,"print");v.bindAction(107,!0,"zoomIn");v.bindAction(109,!0,"zoomOut");v.bindAction(61,!0,"zoomIn");v.bindAction(187,!0,
@@ -2249,45 +2261,46 @@ mxEvent.addListener(e,"click",mxUtils.bind(this,function(m){this.hideCurrentMenu
EditorUi.prototype.destroy=function(){var b=this.editor.graph;null!=b&&null!=this.selectionStateListener&&(b.getSelectionModel().removeListener(this.selectionStateListener),b.getModel().removeListener(this.selectionStateListener),b.getView().removeListener(this.selectionStateListener),b.removeListener(this.selectionStateListener),this.selectionStateListener=null);null!=this.editor&&(this.editor.destroy(),this.editor=null);null!=this.menubar&&(this.menubar.destroy(),this.menubar=null);null!=this.toolbar&&
(this.toolbar.destroy(),this.toolbar=null);null!=this.sidebar&&(this.sidebar.destroy(),this.sidebar=null);null!=this.keyHandler&&(this.keyHandler.destroy(),this.keyHandler=null);null!=this.keydownHandler&&(mxEvent.removeListener(document,"keydown",this.keydownHandler),this.keydownHandler=null);null!=this.keyupHandler&&(mxEvent.removeListener(document,"keyup",this.keyupHandler),this.keyupHandler=null);null!=this.resizeHandler&&(mxEvent.removeListener(window,"resize",this.resizeHandler),this.resizeHandler=
null);null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null);null!=this.orientationChangeHandler&&(mxEvent.removeListener(window,"orientationchange",this.orientationChangeHandler),this.orientationChangeHandler=null);null!=this.scrollHandler&&(mxEvent.removeListener(window,"scroll",this.scrollHandler),this.scrollHandler=null);if(null!=this.destroyFunctions){for(b=0;b<this.destroyFunctions.length;b++)this.destroyFunctions[b]();this.destroyFunctions=
-null}var e=[this.menubarContainer,this.toolbarContainer,this.sidebarContainer,this.formatContainer,this.diagramContainer,this.footerContainer,this.chromelessToolbar,this.hsplit,this.layersDialog];for(b=0;b<e.length;b++)null!=e[b]&&null!=e[b].parentNode&&e[b].parentNode.removeChild(e[b])};(function(){var b=[["nbsp","160"],["shy","173"]],e=mxUtils.parseXml;mxUtils.parseXml=function(m){for(var v=0;v<b.length;v++)m=m.replace(new RegExp("&"+b[v][0]+";","g"),"&#"+b[v][1]+";");return e(m)};var g=mxUtils.getSizeForString;mxUtils.getSizeForString=function(m,v,p,B){return g(Graph.sanitizeHtml(m),v,p,B)}})();
+null}var e=[this.menubarContainer,this.toolbarContainer,this.sidebarContainer,this.formatContainer,this.diagramContainer,this.footerContainer,this.chromelessToolbar,this.hsplit,this.layersDialog];for(b=0;b<e.length;b++)null!=e[b]&&null!=e[b].parentNode&&e[b].parentNode.removeChild(e[b])};(function(){var b=[["nbsp","160"],["shy","173"]],e=mxUtils.parseXml;mxUtils.parseXml=function(m){for(var v=0;v<b.length;v++)m=m.replace(new RegExp("&"+b[v][0]+";","g"),"&#"+b[v][1]+";");return e(m)};var g=mxUtils.getSizeForString;mxUtils.getSizeForString=function(m,v,p,A){return g(Graph.sanitizeHtml(m),v,p,A)}})();
Date.prototype.toISOString||function(){function b(e){e=String(e);1===e.length&&(e="0"+e);return e}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1E3).toFixed(3)).slice(2,5)+"Z"}}();Date.now||(Date.now=function(){return(new Date).getTime()});
-Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,e=function(m){return"function"===typeof m||"[object Function]"===b.call(m)},g=Math.pow(2,53)-1;return function(m){var v=Object(m);if(null==m)throw new TypeError("Array.from requires an array-like object - not null or undefined");var p=1<arguments.length?arguments[1]:void 0,B;if("undefined"!==typeof p){if(!e(p))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(B=
-arguments[2])}var G=Number(v.length);G=isNaN(G)?0:0!==G&&isFinite(G)?(0<G?1:-1)*Math.floor(Math.abs(G)):G;G=Math.min(Math.max(G,0),g);for(var S=e(this)?Object(new this(G)):Array(G),F=0,P;F<G;)P=v[F],S[F]=p?"undefined"===typeof B?p(P,F):p.call(B,P,F):P,F+=1;S.length=G;return S}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
+Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,e=function(m){return"function"===typeof m||"[object Function]"===b.call(m)},g=Math.pow(2,53)-1;return function(m){var v=Object(m);if(null==m)throw new TypeError("Array.from requires an array-like object - not null or undefined");var p=1<arguments.length?arguments[1]:void 0,A;if("undefined"!==typeof p){if(!e(p))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(A=
+arguments[2])}var G=Number(v.length);G=isNaN(G)?0:0!==G&&isFinite(G)?(0<G?1:-1)*Math.floor(Math.abs(G)):G;G=Math.min(Math.max(G,0),g);for(var S=e(this)?Object(new this(G)):Array(G),F=0,P;F<G;)P=v[F],S[F]=p?"undefined"===typeof A?p(P,F):p.call(A,P,F):P,F+=1;S.length=G;return S}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
mxGraph.prototype.pageBreakColor="#c0c0c0";mxGraph.prototype.pageScale=1;(function(){try{if(null!=navigator&&null!=navigator.language){var b=navigator.language.toLowerCase();mxGraph.prototype.pageFormat="en-us"===b||"en-ca"===b||"es-mx"===b?mxConstants.PAGE_FORMAT_LETTER_PORTRAIT:mxConstants.PAGE_FORMAT_A4_PORTRAIT}}catch(e){}})();mxText.prototype.baseSpacingTop=5;mxText.prototype.baseSpacingBottom=1;mxGraphModel.prototype.ignoreRelativeEdgeParent=!1;
mxGraphView.prototype.gridImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhCgAKAJEAAAAAAP///8zMzP///yH5BAEAAAMALAAAAAAKAAoAAAIJ1I6py+0Po2wFADs=":IMAGE_PATH+"/grid.gif";mxGraphView.prototype.gridSteps=4;mxGraphView.prototype.minGridSize=4;mxGraphView.prototype.defaultGridColor="#d0d0d0";mxGraphView.prototype.defaultDarkGridColor="#424242";mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultGridColor;mxGraphView.prototype.unit=mxConstants.POINTS;
mxGraphView.prototype.setUnit=function(b){this.unit!=b&&(this.unit=b,this.graph.refresh(),this.fireEvent(new mxEventObject("unitChanged","unit",b)))};mxSvgCanvas2D.prototype.foAltText="[Not supported by viewer]";mxShape.prototype.getConstraints=function(b,e,g){return null};
mxImageShape.prototype.getImageDataUri=function(){var b=String(this.image);if("data:image/svg+xml;base64,"==b.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=b)this.clippedSvg=Graph.clipSvgDataUri(b,!0),this.clippedImage=b;b=this.clippedSvg}return b};
(function(){var b=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(e,g,m,v,p){return"default"==v&&null!=p?"fillcolor"==m.nodeName?p.shapeBackgroundColor:p.shapeForegroundColor:b.apply(this,arguments)}})();(function(){var b=mxResources.get;mxResources.get=function(e,g,m){null==m&&(m=e);return b.apply(this,[e,g,m])}})();
+(function(){var b=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(e,g,m,v,p,A,G,S){var F=b.apply(this,arguments);if(null!=g){var P=F.getElementsByTagName("img");0<P.length&&(P[0].className="geToolbarButton geAdaptiveAsset",P[0].style.margin="4px",P[0].style.width="18px")}return F}})();
Graph=function(b,e,g,m,v,p){mxGraph.call(this,b,e,g,m);this.themes=v||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=p?p:!1;b=this.baseUrl;e=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<e&&(e=b.indexOf("/",e+2),0<e&&(this.domainUrl=b.substring(0,e)),e=b.lastIndexOf("/"),0<e&&(this.domainPathUrl=b.substring(0,e+1)));this.isHtmlLabel=function(Z){Z=this.getCurrentCellStyle(Z);
-return null!=Z?"1"==Z.html||"wrap"==Z[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var B=null,G=null,S=null,F=null,P=!1,R=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(Z,l){if("mouseDown"==l.getProperty("eventName")&&this.isEnabled()){Z=l.getProperty("event");var u=Z.getState();l=this.view.scale;if(!mxEvent.isAltDown(Z.getEvent())&&null!=u&&(R=this.isCellSelected(u.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(Z.getEvent()))){var H=this.selectionCellsHandler.getHandler(u.cell);
+return null!=Z?"1"==Z.html||"wrap"==Z[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var A=null,G=null,S=null,F=null,P=!1,R=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(Z,l){if("mouseDown"==l.getProperty("eventName")&&this.isEnabled()){Z=l.getProperty("event");var u=Z.getState();l=this.view.scale;if(!mxEvent.isAltDown(Z.getEvent())&&null!=u&&(R=this.isCellSelected(u.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(Z.getEvent()))){var H=this.selectionCellsHandler.getHandler(u.cell);
if(null==H||null==H.getHandleForEvent(Z)){var U=new mxRectangle(Z.getGraphX()-1,Z.getGraphY()-1),J=mxEvent.isTouchEvent(Z.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;H=J+2;U.grow(J);if(this.isTableCell(u.cell)&&this.isCellMovable(u.cell)&&!this.isCellSelected(u.cell)&&!(mxUtils.contains(u,Z.getGraphX()-H,Z.getGraphY()-H)&&mxUtils.contains(u,Z.getGraphX()-H,Z.getGraphY()+H)&&mxUtils.contains(u,Z.getGraphX()+H,Z.getGraphY()+H)&&mxUtils.contains(u,Z.getGraphX()+
-H,Z.getGraphY()-H))){var V=this.model.getParent(u.cell);H=this.model.getParent(V);if(!this.isCellSelected(H)){J*=l;var aa=2*J;if(this.model.getChildAt(H,0)!=V&&mxUtils.intersects(U,new mxRectangle(u.x,u.y-J,u.width,aa))||this.model.getChildAt(V,0)!=u.cell&&mxUtils.intersects(U,new mxRectangle(u.x-J,u.y,aa,u.height))||mxUtils.intersects(U,new mxRectangle(u.x,u.y+u.height-J,u.width,aa))||mxUtils.intersects(U,new mxRectangle(u.x+u.width-J,u.y,aa,u.height)))V=this.selectionCellsHandler.isHandled(H),this.selectCellForEvent(H,
-Z.getEvent()),H=this.selectionCellsHandler.getHandler(H),null!=H&&(J=H.getHandleForEvent(Z),null!=J&&(H.start(Z.getGraphX(),Z.getGraphY(),J),H.blockDelayedSelection=!V,Z.consume()))}}for(;!Z.isConsumed()&&null!=u&&(this.isTableCell(u.cell)||this.isTableRow(u.cell)||this.isTable(u.cell));)this.isSwimlane(u.cell)&&this.isCellMovable(u.cell)&&(H=this.getActualStartSize(u.cell),(0<H.x||0<H.width)&&mxUtils.intersects(U,new mxRectangle(u.x+(H.x-H.width-1)*l+(0==H.x?u.width:0),u.y,1,u.height))||(0<H.y||
+H,Z.getGraphY()-H))){var W=this.model.getParent(u.cell);H=this.model.getParent(W);if(!this.isCellSelected(H)){J*=l;var aa=2*J;if(this.model.getChildAt(H,0)!=W&&mxUtils.intersects(U,new mxRectangle(u.x,u.y-J,u.width,aa))||this.model.getChildAt(W,0)!=u.cell&&mxUtils.intersects(U,new mxRectangle(u.x-J,u.y,aa,u.height))||mxUtils.intersects(U,new mxRectangle(u.x,u.y+u.height-J,u.width,aa))||mxUtils.intersects(U,new mxRectangle(u.x+u.width-J,u.y,aa,u.height)))W=this.selectionCellsHandler.isHandled(H),this.selectCellForEvent(H,
+Z.getEvent()),H=this.selectionCellsHandler.getHandler(H),null!=H&&(J=H.getHandleForEvent(Z),null!=J&&(H.start(Z.getGraphX(),Z.getGraphY(),J),H.blockDelayedSelection=!W,Z.consume()))}}for(;!Z.isConsumed()&&null!=u&&(this.isTableCell(u.cell)||this.isTableRow(u.cell)||this.isTable(u.cell));)this.isSwimlane(u.cell)&&this.isCellMovable(u.cell)&&(H=this.getActualStartSize(u.cell),(0<H.x||0<H.width)&&mxUtils.intersects(U,new mxRectangle(u.x+(H.x-H.width-1)*l+(0==H.x?u.width:0),u.y,1,u.height))||(0<H.y||
0<H.height)&&mxUtils.intersects(U,new mxRectangle(u.x,u.y+(H.y-H.height-1)*l+(0==H.y?u.height:0),u.width,1)))&&(this.selectCellForEvent(u.cell,Z.getEvent()),H=this.selectionCellsHandler.getHandler(u.cell),null!=H&&null!=H.customHandles&&(J=mxEvent.CUSTOM_HANDLE-H.customHandles.length+1,H.start(Z.getGraphX(),Z.getGraphY(),J),Z.consume())),u=this.view.getState(this.model.getParent(u.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,function(Z,l){if("mouseDown"==l.getProperty("eventName")&&
-this.isEnabled()){Z=l.getProperty("event");var u=Z.getState();mxEvent.isAltDown(Z.getEvent())||mxEvent.isControlDown(l)||mxEvent.isShiftDown(l)||R||null==u||!this.model.isEdge(u.cell)||(B=new mxPoint(Z.getGraphX(),Z.getGraphY()),P=this.isCellSelected(u.cell),S=u,G=Z,null!=u.text&&null!=u.text.boundingBox&&mxUtils.contains(u.text.boundingBox,Z.getGraphX(),Z.getGraphY())?F=mxEvent.LABEL_HANDLE:(l=this.selectionCellsHandler.getHandler(u.cell),null!=l&&null!=l.bends&&0<l.bends.length&&(F=l.getHandleForEvent(Z))))}}));
-this.addMouseListener({mouseDown:function(Z,l){},mouseMove:mxUtils.bind(this,function(Z,l){Z=this.selectionCellsHandler.handlers.map;for(var u in Z)if(null!=Z[u].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(l.getEvent())){var H=this.tolerance;if(null!=B&&null!=S&&null!=G){if(u=S,null!=F||Math.abs(B.x-l.getGraphX())>H||Math.abs(B.y-l.getGraphY())>H){var U=null;mxEvent.isShiftDown(l.getEvent())||(U=this.selectionCellsHandler.getHandler(u.cell));if(null!=U&&null!=
-U.bends&&0<U.bends.length){U.redrawHandles();var J=null!=F?F:U.getHandleForEvent(G),V=this.view.getEdgeStyle(u),aa=V==mxEdgeStyle.EntityRelation;H=u.absolutePoints;P||(J=F);J!=mxEvent.LABEL_HANDLE&&null!=H&&(J=F,null==J&&(Z=new mxRectangle(B.x,B.y),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(Z,H[0].x,H[0].y)?J=0:mxUtils.contains(Z,H[H.length-1].x,H[H.length-1].y)?J=U.bends.length-1:null!=H&&(null==V&&null==J||V==mxEdgeStyle.SegmentConnector||V==mxEdgeStyle.OrthConnector)&&
-(null!=V&&(2==H.length||3==H.length&&(0==Math.round(H[0].x-H[1].x)&&0==Math.round(H[1].x-H[2].x)||0==Math.round(H[0].y-H[1].y)&&0==Math.round(H[1].y-H[2].y)))?J=2:(J=mxUtils.findNearestSegment(u,B.x,B.y),J=null==V?mxEvent.VIRTUAL_HANDLE-J:J+1))),null==J&&(J=mxEvent.VIRTUAL_HANDLE));Z=J==mxEvent.LABEL_HANDLE||0==J||J==U.bends.length-1;if(!aa&&(null!=u.visibleSourceState||null!=u.visibleTargetState)||Z)U.start(l.getGraphX(),l.getGraphX(),J),l.consume(),this.graphHandler.reset()}null!=U&&(this.selectionCellsHandler.isHandlerActive(U)?
-this.isCellSelected(u.cell)||(this.selectionCellsHandler.handlers.put(u.cell,U),this.selectCellForEvent(u.cell,l.getEvent())):this.isCellSelected(u.cell)||U.destroy());P=!1;B=G=S=F=null}}else if(u=l.getState(),null!=u&&this.isCellEditable(u.cell)){Z=this.model.getParent(u.cell);U=null;if(this.model.isEdge(u.cell)&&!this.isCellSelected(u.cell)&&!mxEvent.isAltDown(l.getEvent())&&!mxEvent.isShiftDown(l.getEvent())&&!this.isAncestorSelected(u.cell)&&(this.isSwimlane(Z)||this.model.isLayer(Z)||this.getCurrentRoot()==
-Z)){if(Z=new mxRectangle(l.getGraphX(),l.getGraphY()),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),H=u.absolutePoints,null!=H)null!=u.text&&null!=u.text.boundingBox&&mxUtils.contains(u.text.boundingBox,l.getGraphX(),l.getGraphY())?U="move":mxUtils.contains(Z,H[0].x,H[0].y)||mxUtils.contains(Z,H[H.length-1].x,H[H.length-1].y)?U="pointer":(V=this.view.getEdgeStyle(u),V==mxEdgeStyle.EntityRelation||null==u.visibleSourceState&&null==u.visibleTargetState||(U="crosshair",V!=mxEdgeStyle.SegmentConnector&&
-V!=mxEdgeStyle.OrthConnector))||(l=mxUtils.findNearestSegment(u,l.getGraphX(),l.getGraphY()),l<H.length-1&&0<=l&&(U=0==Math.round(H[l].x-H[l+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(l.getEvent())){H=mxShape.prototype.svgStrokeTolerance/2;Z=new mxRectangle(l.getGraphX(),l.getGraphY());Z.grow(H);if(this.isTableCell(u.cell)&&this.isCellMovable(u.cell)&&(l=this.model.getParent(u.cell),H=this.model.getParent(l),!this.isCellSelected(H)))if(mxUtils.intersects(Z,new mxRectangle(u.x,
+this.isEnabled()){Z=l.getProperty("event");var u=Z.getState();mxEvent.isAltDown(Z.getEvent())||mxEvent.isControlDown(l)||mxEvent.isShiftDown(l)||R||null==u||!this.model.isEdge(u.cell)||(A=new mxPoint(Z.getGraphX(),Z.getGraphY()),P=this.isCellSelected(u.cell),S=u,G=Z,null!=u.text&&null!=u.text.boundingBox&&mxUtils.contains(u.text.boundingBox,Z.getGraphX(),Z.getGraphY())?F=mxEvent.LABEL_HANDLE:(l=this.selectionCellsHandler.getHandler(u.cell),null!=l&&null!=l.bends&&0<l.bends.length&&(F=l.getHandleForEvent(Z))))}}));
+this.addMouseListener({mouseDown:function(Z,l){},mouseMove:mxUtils.bind(this,function(Z,l){Z=this.selectionCellsHandler.handlers.map;for(var u in Z)if(null!=Z[u].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(l.getEvent())){var H=this.tolerance;if(null!=A&&null!=S&&null!=G){if(u=S,null!=F||Math.abs(A.x-l.getGraphX())>H||Math.abs(A.y-l.getGraphY())>H){var U=null;mxEvent.isShiftDown(l.getEvent())||(U=this.selectionCellsHandler.getHandler(u.cell));if(null!=U&&null!=
+U.bends&&0<U.bends.length){U.redrawHandles();var J=null!=F?F:U.getHandleForEvent(G),W=this.view.getEdgeStyle(u),aa=W==mxEdgeStyle.EntityRelation;H=u.absolutePoints;P||(J=F);J!=mxEvent.LABEL_HANDLE&&null!=H&&(J=F,null==J&&(Z=new mxRectangle(A.x,A.y),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(Z,H[0].x,H[0].y)?J=0:mxUtils.contains(Z,H[H.length-1].x,H[H.length-1].y)?J=U.bends.length-1:null!=H&&(null==W&&null==J||W==mxEdgeStyle.SegmentConnector||W==mxEdgeStyle.OrthConnector)&&
+(null!=W&&(2==H.length||3==H.length&&(0==Math.round(H[0].x-H[1].x)&&0==Math.round(H[1].x-H[2].x)||0==Math.round(H[0].y-H[1].y)&&0==Math.round(H[1].y-H[2].y)))?J=2:(J=mxUtils.findNearestSegment(u,A.x,A.y),J=null==W?mxEvent.VIRTUAL_HANDLE-J:J+1))),null==J&&(J=mxEvent.VIRTUAL_HANDLE));Z=J==mxEvent.LABEL_HANDLE||0==J||J==U.bends.length-1;if(!aa&&(null!=u.visibleSourceState||null!=u.visibleTargetState)||Z)U.start(l.getGraphX(),l.getGraphX(),J),l.consume(),this.graphHandler.reset()}null!=U&&(this.selectionCellsHandler.isHandlerActive(U)?
+this.isCellSelected(u.cell)||(this.selectionCellsHandler.handlers.put(u.cell,U),this.selectCellForEvent(u.cell,l.getEvent())):this.isCellSelected(u.cell)||U.destroy());P=!1;A=G=S=F=null}}else if(u=l.getState(),null!=u&&this.isCellEditable(u.cell)){Z=this.model.getParent(u.cell);U=null;if(this.model.isEdge(u.cell)&&!this.isCellSelected(u.cell)&&!mxEvent.isAltDown(l.getEvent())&&!mxEvent.isShiftDown(l.getEvent())&&!this.isAncestorSelected(u.cell)&&(this.isSwimlane(Z)||this.model.isLayer(Z)||this.getCurrentRoot()==
+Z)){if(Z=new mxRectangle(l.getGraphX(),l.getGraphY()),Z.grow(mxEdgeHandler.prototype.handleImage.width/2),H=u.absolutePoints,null!=H)null!=u.text&&null!=u.text.boundingBox&&mxUtils.contains(u.text.boundingBox,l.getGraphX(),l.getGraphY())?U="move":mxUtils.contains(Z,H[0].x,H[0].y)||mxUtils.contains(Z,H[H.length-1].x,H[H.length-1].y)?U="pointer":(W=this.view.getEdgeStyle(u),W==mxEdgeStyle.EntityRelation||null==u.visibleSourceState&&null==u.visibleTargetState||(U="crosshair",W!=mxEdgeStyle.SegmentConnector&&
+W!=mxEdgeStyle.OrthConnector))||(l=mxUtils.findNearestSegment(u,l.getGraphX(),l.getGraphY()),l<H.length-1&&0<=l&&(U=0==Math.round(H[l].x-H[l+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(l.getEvent())){H=mxShape.prototype.svgStrokeTolerance/2;Z=new mxRectangle(l.getGraphX(),l.getGraphY());Z.grow(H);if(this.isTableCell(u.cell)&&this.isCellMovable(u.cell)&&(l=this.model.getParent(u.cell),H=this.model.getParent(l),!this.isCellSelected(H)))if(mxUtils.intersects(Z,new mxRectangle(u.x,
u.y-2,u.width,4))&&this.model.getChildAt(H,0)!=l||mxUtils.intersects(Z,new mxRectangle(u.x,u.y+u.height-2,u.width,4)))U="row-resize";else if(mxUtils.intersects(Z,new mxRectangle(u.x-2,u.y,4,u.height))&&this.model.getChildAt(l,0)!=u.cell||mxUtils.intersects(Z,new mxRectangle(u.x+u.width-2,u.y,4,u.height)))U="col-resize";for(l=u;null==U&&null!=l&&(this.isTableCell(l.cell)||this.isTableRow(l.cell)||this.isTable(l.cell));)this.isSwimlane(l.cell)&&this.isCellMovable(l.cell)&&(H=this.getActualStartSize(l.cell),
-J=this.view.scale,(0<H.x||0<H.width)&&mxUtils.intersects(Z,new mxRectangle(l.x+(H.x-H.width-1)*J+(0==H.x?l.width*J:0),l.y,1,l.height))?U="col-resize":(0<H.y||0<H.height)&&mxUtils.intersects(Z,new mxRectangle(l.x,l.y+(H.y-H.height-1)*J+(0==H.y?l.height:0),l.width,1))&&(U="row-resize")),l=this.view.getState(this.model.getParent(l.cell))}null!=U&&u.setCursor(U)}}}),mouseUp:mxUtils.bind(this,function(Z,l){F=B=G=S=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var T=document.createElement("div");this.cellRenderer.getLabelValue=
+J=this.view.scale,(0<H.x||0<H.width)&&mxUtils.intersects(Z,new mxRectangle(l.x+(H.x-H.width-1)*J+(0==H.x?l.width*J:0),l.y,1,l.height))?U="col-resize":(0<H.y||0<H.height)&&mxUtils.intersects(Z,new mxRectangle(l.x,l.y+(H.y-H.height-1)*J+(0==H.y?l.height:0),l.width,1))&&(U="row-resize")),l=this.view.getState(this.model.getParent(l.cell))}null!=U&&u.setCursor(U)}}}),mouseUp:mxUtils.bind(this,function(Z,l){F=A=G=S=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var T=document.createElement("div");this.cellRenderer.getLabelValue=
function(Z){var l=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);Z.view.graph.isHtmlLabel(Z.cell)&&("0"==mxUtils.getValue(Z.style,"html","0")?l=mxUtils.htmlEntities(l,!1):(Z.lastLabelValue!=l&&(Z.lastLabelValue=l,Z.lastSanitizedLabelValue=Graph.sanitizeHtml(l),T.innerHTML=Z.lastSanitizedLabelValue,Graph.addLightDarkColors(T,null,"simple"==Z.view.graph.getAdaptiveColors())&&(Z.lastSanitizedLabelValue=T.innerHTML)),l=Z.lastSanitizedLabelValue));return l};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);
this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(Z,l){return!1};this.alternateEdgeStyle="vertical";null==m&&this.loadStylesheet();var c=this.graphHandler.getGuideStates;
-this.graphHandler.getGuideStates=function(){var Z=c.apply(this,arguments);if(this.graph.pageVisible){var l=[],u=this.graph.pageFormat,H=this.graph.pageScale,U=u.width*H;u=u.height*H;H=this.graph.view.translate;for(var J=this.graph.view.scale,V=this.graph.getPageLayout(),aa=0;aa<V.width;aa++)l.push(new mxRectangle(((V.x+aa)*U+H.x)*J,(V.y*u+H.y)*J,U*J,u*J));for(aa=1;aa<V.height;aa++)l.push(new mxRectangle((V.x*U+H.x)*J,((V.y+aa)*u+H.y)*J,U*J,u*J));Z=l.concat(Z)}return Z};mxDragSource.prototype.dragElementZIndex=
+this.graphHandler.getGuideStates=function(){var Z=c.apply(this,arguments);if(this.graph.pageVisible){var l=[],u=this.graph.pageFormat,H=this.graph.pageScale,U=u.width*H;u=u.height*H;H=this.graph.view.translate;for(var J=this.graph.view.scale,W=this.graph.getPageLayout(),aa=0;aa<W.width;aa++)l.push(new mxRectangle(((W.x+aa)*U+H.x)*J,(W.y*u+H.y)*J,U*J,u*J));for(aa=1;aa<W.height;aa++)l.push(new mxRectangle((W.x*U+H.x)*J,((W.y+aa)*u+H.y)*J,U*J,u*J));Z=l.concat(Z)}return Z};mxDragSource.prototype.dragElementZIndex=
mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(Z,l){return null==Z.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(Z){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var f=this.graphHandler.getCells;this.graphHandler.getCells=function(Z){for(var l=f.apply(this,arguments),u=new mxDictionary,H=[],U=0;U<l.length;U++){var J=
this.graph.isTableCell(Z)&&this.graph.isTableCell(l[U])&&this.graph.isCellSelected(l[U])?this.graph.model.getParent(l[U]):this.graph.isTableRow(Z)&&this.graph.isTableRow(l[U])&&this.graph.isCellSelected(l[U])?l[U]:this.graph.getCompositeParent(l[U]);null==J||u.get(J)||(u.put(J,!0),H.push(J))}return H};var k=this.graphHandler.start;this.graphHandler.start=function(Z,l,u,H){var U=!1;this.graph.isTableCell(Z)&&(this.graph.isCellSelected(Z)?U=!0:Z=this.graph.model.getParent(Z));U||this.graph.isTableRow(Z)&&
-this.graph.isCellSelected(Z)||(Z=this.graph.getCompositeParent(Z));k.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(Z,l){l=this.graph.getCompositeParent(l);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(Z,l,u,H,U,J){var V=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=H&&this.graph.applyNewEdgeStyle(H,[V]);return V};var A=new mxRubberband(this);this.getRubberband=function(){return A};
+this.graph.isCellSelected(Z)||(Z=this.graph.getCompositeParent(Z));k.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(Z,l){l=this.graph.getCompositeParent(l);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(Z,l,u,H,U,J){var W=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=H&&this.graph.applyNewEdgeStyle(H,[W]);return W};var B=new mxRubberband(this);this.getRubberband=function(){return B};
var z=(new Date).getTime(),C=0,I=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var Z=this.currentState;I.apply(this,arguments);Z!=this.currentState?(z=(new Date).getTime(),C=0):C=(new Date).getTime()-z};var L=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(Z){return mxEvent.isShiftDown(Z.getEvent())&&mxEvent.isAltDown(Z.getEvent())?!1:null!=this.currentState&&Z.getState()==this.currentState&&2E3<C||(null==this.currentState||
-"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&L.apply(this,arguments)};var K=this.isToggleEvent;this.isToggleEvent=function(Z){return K.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(Z)};var O=A.isForceRubberbandEvent;A.isForceRubberbandEvent=function(Z){return O.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(Z.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClient.IS_FF&&mxClient.IS_WIN&&null==Z.getState()&&mxEvent.isTouchEvent(Z.getEvent())};
+"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&L.apply(this,arguments)};var K=this.isToggleEvent;this.isToggleEvent=function(Z){return K.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(Z)};var O=B.isForceRubberbandEvent;B.isForceRubberbandEvent=function(Z){return O.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(Z.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClient.IS_FF&&mxClient.IS_WIN&&null==Z.getState()&&mxEvent.isTouchEvent(Z.getEvent())};
var da=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(da=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=da)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(Z){return mxEvent.isMouseEvent(Z.getEvent())};var ea=this.click;this.click=function(Z){var l=null==Z.state&&
null!=Z.sourceState&&this.isCellLocked(this.getLayerForCell(Z.sourceState.cell));if(this.isEnabled()&&!l||Z.isConsumed())return ea.apply(this,arguments);var u=l?Z.sourceState.cell:Z.getCell();if(null!=u){var H=this.getClickableLinkForCell(u);null!=H?this.isCustomLink(H)?this.customLinkClicked(H,u):this.openLink(H):l&&this.clearSelection()}};this.tooltipHandler.getStateForEvent=function(Z){return Z.sourceState};var ca=this.tooltipHandler.show;this.tooltipHandler.show=function(){ca.apply(this,arguments);
-if(null!=this.div)for(var Z=this.div.getElementsByTagName("a"),l=0;l<Z.length;l++)null!=Z[l].getAttribute("href")&&null==Z[l].getAttribute("target")&&Z[l].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(Z){return Z.sourceState};this.getCursorForMouseEvent=function(Z){var l=null==Z.state&&null!=Z.sourceState&&this.isCellLocked(Z.sourceState.cell);return this.getCursorForCell(l?Z.sourceState.cell:Z.getCell())};var W=this.getCursorForCell;this.getCursorForCell=function(Z){if(!this.isEnabled()||
-this.isCellLocked(Z)){if(null!=this.getClickableLinkForCell(Z))return"pointer";if(this.isCellLocked(Z))return"default"}return W.apply(this,arguments)};this.selectRegion=function(Z,l){var u=mxEvent.isAltDown(l)?Z:null;Z=this.getCells(Z.x,Z.y,Z.width,Z.height,null,null,u,null,!0);if(this.isToggleEvent(l))for(u=0;u<Z.length;u++)this.selectCellForEvent(Z[u],l);else this.selectCellsForEvent(Z,l);return Z};var ma=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=
+if(null!=this.div)for(var Z=this.div.getElementsByTagName("a"),l=0;l<Z.length;l++)null!=Z[l].getAttribute("href")&&null==Z[l].getAttribute("target")&&Z[l].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(Z){return Z.sourceState};this.getCursorForMouseEvent=function(Z){var l=null==Z.state&&null!=Z.sourceState&&this.isCellLocked(Z.sourceState.cell);return this.getCursorForCell(l?Z.sourceState.cell:Z.getCell())};var V=this.getCursorForCell;this.getCursorForCell=function(Z){if(!this.isEnabled()||
+this.isCellLocked(Z)){if(null!=this.getClickableLinkForCell(Z))return"pointer";if(this.isCellLocked(Z))return"default"}return V.apply(this,arguments)};this.selectRegion=function(Z,l){var u=mxEvent.isAltDown(l)?Z:null;Z=this.getCells(Z.x,Z.y,Z.width,Z.height,null,null,u,null,!0);if(this.isToggleEvent(l))for(u=0;u<Z.length;u++)this.selectCellForEvent(Z[u],l);else this.selectCellsForEvent(Z,l);return Z};var ma=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=
function(Z,l,u){return this.graph.isCellSelected(Z)?!1:ma.apply(this,arguments)};var la=this.updateMouseEvent;this.updateMouseEvent=function(Z){Z=la.apply(this,arguments);null!=Z.state&&this.isCellLocked(this.getLayerForCell(Z.getCell()))&&(null==this.getLinkForCell(Z.getCell())?Z.state=this.view.getState(this.getCellAt(Z.getGraphX(),Z.getGraphY(),null,null,null,mxUtils.bind(this,function(l,u,H){return Z.state==l||this.isCellLocked(this.getLayerForCell(l.cell))&&null==this.getLinkForCell(l.cell)}))):
Z.state=null);return Z};var Y=this.isCellSelectable;this.isCellSelectable=function(Z){return Y.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(Z))};this.isCellLocked=function(Z){for(;null!=Z;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(Z),"locked","0"))return!0;Z=this.model.getParent(Z)}return!1};var fa=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(Z,l){"mouseDown"==l.getProperty("eventName")&&(Z=l.getProperty("event").getState(),fa=null==Z||this.isSelectionEmpty()||
-this.isCellSelected(Z.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(Z,l){if(!mxEvent.isMultiTouchEvent(l)){Z=l.getProperty("event");var u=l.getProperty("cell");null==u?(Z=mxUtils.convertPoint(this.container,mxEvent.getClientX(Z),mxEvent.getClientY(Z)),A.start(Z.x,Z.y)):null!=fa?this.addSelectionCells(fa):1<this.getSelectionCount()&&this.isCellSelected(u)&&this.removeSelectionCell(u);fa=null;l.consume()}}));this.connectionHandler.selectCells=
+this.isCellSelected(Z.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(Z,l){if(!mxEvent.isMultiTouchEvent(l)){Z=l.getProperty("event");var u=l.getProperty("cell");null==u?(Z=mxUtils.convertPoint(this.container,mxEvent.getClientX(Z),mxEvent.getClientY(Z)),B.start(Z.x,Z.y)):null!=fa?this.addSelectionCells(fa):1<this.getSelectionCount()&&this.isCellSelected(u)&&this.removeSelectionCell(u);fa=null;l.consume()}}));this.connectionHandler.selectCells=
function(Z,l){this.graph.setSelectionCell(l||Z)};this.connectionHandler.constraintHandler.isStateIgnored=function(Z,l){var u=Z.view.graph;return l&&(u.isCellSelected(Z.cell)||u.isTableRow(Z.cell)&&u.selectionCellsHandler.isHandled(u.model.getParent(Z.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var Z=this.connectionHandler.constraintHandler;null!=Z.currentFocus&&Z.isStateIgnored(Z.currentFocus,!0)&&(Z.currentFocus=null,Z.constraints=null,Z.destroyIcons());Z.destroyFocusHighlight()}));
Graph.touchStyle&&this.initTouch()}this.currentTranslate=new mxPoint(0,0)};Graph.touchStyle=mxClient.IS_TOUCH||mxClient.IS_FF&&mxClient.IS_WIN||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints||null==window.urlParams||"1"==urlParams.touch;Graph.fileSupport=null!=window.File&&null!=window.FileReader&&null!=window.FileList&&(null==window.urlParams||"0"!=urlParams.filesupport);Graph.translateDiagram="1"==urlParams["translate-diagram"];
Graph.diagramLanguage=null!=urlParams["diagram-language"]?urlParams["diagram-language"]:mxClient.language;Graph.lineJumpsEnabled=!0;Graph.defaultJumpSize=6;Graph.zoomWheel=!1;Graph.selectParentLayer=!1;Graph.minTableColumnWidth=20;Graph.minTableRowHeight=20;Graph.foreignObjectWarningText="Text is not SVG - cannot display";Graph.foreignObjectWarningLink="https://www.drawio.com/doc/faq/svg-export-text-problems";Graph.xmlDeclaration='<?xml version="1.0" encoding="UTF-8"?>';Graph.svgDoctype='<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">';
@@ -2299,13 +2312,14 @@ Graph.getDefaultAdaptiveColorsKey=function(){return"auto"==Graph.defaultAdaptive
Graph.createOffscreenGraph=function(b){var e=new Graph(document.createElement("div"));e.stylesheet.styles=mxUtils.clone(b.styles);e.resetViewOnRootChange=!1;e.setConnectable(!1);e.gridEnabled=!1;e.autoScroll=!1;e.setTooltips(!1);e.setEnabled(!1);e.container.style.visibility="hidden";e.container.style.position="absolute";e.container.style.overflow="hidden";e.container.style.height="1px";e.container.style.width="1px";return e};
Graph.createSvgImage=function(b,e,g,m,v){g=unescape(encodeURIComponent(Graph.svgDoctype+'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+b+'px" height="'+e+'px" '+(null!=m&&null!=v?'viewBox="0 0 '+m+" "+v+'" ':"")+'version="1.1" style="color-scheme: light dark;">'+g+"</svg>"));return new mxImage("data:image/svg+xml;base64,"+(window.btoa?btoa(g):Base64.encode(g,!0)),b,e)};
Graph.getSvgFromDataUri=function(b){return null!=b&&"data:image/svg"==b.substring(0,14)?Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+decodeURIComponent(escape(atob(b.substring(b.indexOf(",")+1)))):null};
-Graph.createSvgNode=function(b,e,g,m,v){var p=mxUtils.createXmlDocument(),B=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");null!=v&&B.setAttribute("style","background: "+v.light+"; background-color: "+v.cssText+";");null==p.createElementNS?(B.setAttribute("xmlns",mxConstants.NS_SVG),B.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):B.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);B.setAttribute("version","1.1");B.setAttribute("width",
-g+"px");B.setAttribute("height",m+"px");B.setAttribute("viewBox",b+" "+e+" "+g+" "+m);p.appendChild(B);return B};
-Graph.htmlToPng=function(b,e,g,m,v,p){v=null!=v?v:"";p=null!=p?p:Editor.htmlRasterScale;var B=document.createElement("canvas");B.width=e*p;B.height=g*p;var G=document.createElement("img");G.onload=mxUtils.bind(this,function(){try{var F=B.getContext("2d");F.scale(p,p);F.drawImage(G,0,0);m(B.toDataURL())}catch(P){m(null)}});var S=mxUtils.createXmlDocument();S=null!=S.createElementNS?S.createElementNS(mxConstants.NS_SVG,"svg"):S.createElement("svg");b=(new mxSvgCanvas2D(S)).convertHtml(b);G.onerror=
+Graph.createSvgNode=function(b,e,g,m,v){var p=mxUtils.createXmlDocument(),A=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");null!=v&&A.setAttribute("style","background: "+v.light+"; background-color: "+v.cssText+";");null==p.createElementNS?(A.setAttribute("xmlns",mxConstants.NS_SVG),A.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):A.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);A.setAttribute("version","1.1");A.setAttribute("width",
+g+"px");A.setAttribute("height",m+"px");A.setAttribute("viewBox",b+" "+e+" "+g+" "+m);p.appendChild(A);return A};
+Graph.htmlToPng=function(b,e,g,m,v,p){v=null!=v?v:"";p=null!=p?p:Editor.htmlRasterScale;var A=document.createElement("canvas");A.width=e*p;A.height=g*p;var G=document.createElement("img");G.onload=mxUtils.bind(this,function(){try{var F=A.getContext("2d");F.scale(p,p);F.drawImage(G,0,0);m(A.toDataURL())}catch(P){m(null)}});var S=mxUtils.createXmlDocument();S=null!=S.createElementNS?S.createElementNS(mxConstants.NS_SVG,"svg"):S.createElement("svg");b=(new mxSvgCanvas2D(S)).convertHtml(b);G.onerror=
function(F){m(null)};G.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+g+'">'+(""!=v?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+v+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+b+"</div></foreignObject></svg>")};
-Graph.addLightDarkColors=function(b,e,g,m){function v(T,c,f){return null!=m?m(T,c,f):mxUtils.isValidColor(f)?(null==S&&null!=e&&(S={}),null!=S&&(S[c]=T.style.getPropertyValue(c)),f=mxUtils.getLightDarkColor(f,null,null,g),T.style.setProperty(c,f.cssText),!0):!1}for(var p=b.getElementsByTagName("*"),B=!1,G=0;G<p.length;G++)if(p[G]!=b){for(var S=null,F=0;F<p[G].style.length;F++){var P=p[G].style.item(F),R=p[G].style.getPropertyValue(P);B=v(p[G],P,R)||B}"FONT"==p[G].nodeName&&""==p[G].style.getPropertyValue("color")&&
-(R=p[G].getAttribute("color"),B=v(p[G],"color",R)||B);null!=e&&null!=S&&p[G].setAttribute(e,JSON.stringify(S))}return B};Graph.removeLightDarkColors=function(b,e){b=b.getElementsByTagName("*");for(var g=!1,m=0;m<b.length;m++)try{var v=b[m].getAttribute(e);if(null!=v){b[m].removeAttribute(e);var p=JSON.parse(v),B;for(B in p){var G=p[B];""==G?(b[m].style[B]=null,""==b[m].getAttribute("style")&&b[m].removeAttribute("style")):b[m].style[B]=G;g=!0}}}catch(S){}return g};
-Graph.setTextColor=function(b,e,g){for(var m=g?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,v=g?"color":"background-color",p=b.getElementsByTagName("*"),B=[],G=0;G<p.length;G++)B.push({node:p[G],value:p[G].style[v]});document.execCommand(g?"forecolor":"backcolor",!1,m);b=b.getElementsByTagName("*");for(G=0;G<b.length;G++){if(G<B.length&&B[G].node==b[G]&&B[G].value!=b[G].style[v]&&""==b[G].style[v])try{if(p=b[G].getAttribute(Graph.backupStyleAttribute),null!=p){var S=JSON.parse(p);S[v]=
+Graph.addLightDarkColors=function(b,e,g,m){function v(T,c,f){return null!=m?m(T,c,f):mxUtils.isValidColor(f)?(null==A&&null!=e&&(A={}),null!=A&&(A[c]=T.style.getPropertyValue(c)),f=mxUtils.getLightDarkColor(f,null,null,g),T.style.setProperty(c,f.cssText),!0):!1}for(var p=b.getElementsByTagName("*"),A=null,G=!1,S=0;S<p.length;S++)if(p[S]!=b&&null!=p[S].style){A=null;for(var F=0;F<p[S].style.length;F++){var P=p[S].style.item(F),R=p[S].style.getPropertyValue(P);G=v(p[S],P,R)||G}"FONT"==p[S].nodeName&&
+""==p[S].style.getPropertyValue("color")&&(R=p[S].getAttribute("color"),G=v(p[S],"color",R)||G);null!=e&&null!=A&&p[S].setAttribute(e,JSON.stringify(A))}return G};Graph.removeLightDarkColors=function(b,e){b=b.getElementsByTagName("*");for(var g=!1,m=0;m<b.length;m++)try{var v=b[m].getAttribute(e);if(null!=v){b[m].removeAttribute(e);var p=JSON.parse(v),A;for(A in p){var G=p[A];""==G?(b[m].style[A]=null,""==b[m].getAttribute("style")&&b[m].removeAttribute("style")):b[m].style[A]=G;g=!0}}}catch(S){}return g};
+Graph.getGivenColor=function(b,e){var g=null;if(b.nodeType==mxConstants.NODETYPE_ELEMENT){try{var m=b.getAttribute(Graph.backupStyleAttribute);if(null!=m){var v=JSON.parse(m);null!=v&&null!=v[e]&&("color"==e&&"FONT"==b.nodeName&&""==v[e]&&null!=b.getAttribute("color")?g=b.getAttribute("color"):""!=v[e]&&(g=v[e]))}}catch(p){}null==g&&""!=b.style[e]&&(g=b.style[e])}return g};
+Graph.setTextColor=function(b,e,g){for(var m=g?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,v=g?"color":"background-color",p=b.getElementsByTagName("*"),A=[],G=0;G<p.length;G++)A.push({node:p[G],value:p[G].style[v]});document.execCommand(g?"forecolor":"backcolor",!1,m);b=b.getElementsByTagName("*");for(G=0;G<b.length;G++){if(G<A.length&&A[G].node==b[G]&&A[G].value!=b[G].style[v]&&""==b[G].style[v])try{if(p=b[G].getAttribute(Graph.backupStyleAttribute),null!=p){var S=JSON.parse(p);S[v]=
"";b[G].setAttribute(Graph.backupStyleAttribute,JSON.stringify(S))}}catch(F){}if(g&&b[G].getAttribute("color")==m||b[G].style[v]==m){g&&b[G].getAttribute("color")==m&&b[G].removeAttribute("color");b[G].style[v]=e!=mxConstants.NONE?mxUtils.getLightDarkColor(e).cssText:null;try{p=b[G].getAttribute(Graph.backupStyleAttribute),S=null!=p?JSON.parse(p):{},S[v]=e!=mxConstants.NONE?e:"",b[G].setAttribute(Graph.backupStyleAttribute,JSON.stringify(S))}catch(F){}if(g&&mxClient.IS_FF){e=b[G];g=e.firstChild;if(null!=
g&&"A"==g.nodeName&&null==g.nextSibling&&null!=g.firstChild){e.parentNode.insertBefore(g,e);for(m=g.firstChild;null!=m;)v=m.nextSibling,e.appendChild(m),m=v;g.appendChild(e)}break}}}};Graph.zapGremlins=function(b){return mxUtils.zapGremlins(b)};Graph.stringToBytes=function(b){for(var e=Array(b.length),g=0;g<b.length;g++)e[g]=b.charCodeAt(g);return e};Graph.bytesToString=function(b){for(var e=Array(b.length),g=0;g<b.length;g++)e[g]=String.fromCharCode(b[g]);return e.join("")};
Graph.base64EncodeUnicode=function(b){return btoa(encodeURIComponent(b).replace(/%([0-9A-F]{2})/g,function(e,g){return String.fromCharCode(parseInt(g,16))}))};Graph.base64DecodeUnicode=function(b){return decodeURIComponent(Array.prototype.map.call(atob(b),function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))};Graph.compressNode=function(b,e){b=mxUtils.getXml(b);return Graph.compress(e?b:Graph.zapGremlins(b))};
@@ -2313,57 +2327,58 @@ Graph.arrayBufferToString=function(b){var e="";b=new Uint8Array(b);for(var g=b.b
Graph.arrayBufferIndexOfString=function(b,e,g){var m=e.charCodeAt(0),v=1,p=-1;for(g=g||0;g<b.byteLength;g++)if(b[g]==m){p=g;break}for(g=p+1;-1<p&&g<b.byteLength&&g<p+e.length-1;g++){if(b[g]!=e.charCodeAt(v))return Graph.arrayBufferIndexOfString(b,e,p+1);v++}return v==e.length-1?p:-1};Graph.compress=function(b,e){if(null==b||0==b.length||"undefined"===typeof pako)return b;b=e?pako.deflate(encodeURIComponent(b)):pako.deflateRaw(encodeURIComponent(b));return btoa(Graph.arrayBufferToString(new Uint8Array(b)))};
Graph.decompress=function(b,e,g){if(null==b||0==b.length||"undefined"===typeof pako)return b;b=Graph.stringToArrayBuffer(atob(b));e=decodeURIComponent(e?pako.inflate(b,{to:"string"}):pako.inflateRaw(b,{to:"string"}));return g?e:Graph.zapGremlins(e)};
Graph.fadeNodes=function(b,e,g,m,v){v=null!=v?v:1E3;Graph.setTransitionForNodes(b,null);Graph.setOpacityForNodes(b,e);window.setTimeout(function(){Graph.setTransitionForNodes(b,"all "+v+"ms ease-in-out");Graph.setOpacityForNodes(b,g);window.setTimeout(function(){Graph.setTransitionForNodes(b,null);null!=m&&m()},v)},0)};
-Graph.exploreFromCell=function(b,e,g){pageSize=null!=g&&null!=g.pageSize?g.pageSize:8;minSize=null!=g&&null!=g.minSize?g.minSize:180;(function(m,v){function p(P,R){if(P.getModel().isVertex(R)){var T=P.container.scrollWidth/2,c=P.container.scrollHeight/2;P.rootCell=R.referenceCell||R;P.getModel().beginUpdate();try{for(var f=R.referenceCell||R,k=m.model.getCell(f.sourceCellId),A=m.getEdges(k,null,!0,!0,!1,!0),z=[],C=0;C<A.length;C++)null!=A[C].getTerminal(!0)&&null!=A[C].getTerminal(!1)&&m.isCellVisible(A[C])&&
-!m.isEdgeIgnored(A[C])&&m.isCellVisible(A[C].getTerminal(!0))&&m.isCellVisible(A[C].getTerminal(!1))&&m.isCellVisible(m.getLayerForCell(A[C]))&&z.push(A[C]);z=A=z;if(null!=R.startIndex||0<pageSize&&A.length>pageSize){var I=R.startIndex||0;z=A.slice(Math.max(0,I),Math.min(A.length,I+pageSize))}z=m.getOpposites(z,k).concat(z);var L=P.cloneCells(z);for(C=0;C<z.length;C++)if(L[C].sourceCellId=z[C].id,P.model.isEdge(L[C]))for(L[C].geometry.x=0,L[C].geometry.y=0,L[C].geometry.points=null,L[C].setStyle(L[C].getStyle()+
+Graph.exploreFromCell=function(b,e,g){pageSize=null!=g&&null!=g.pageSize?g.pageSize:8;minSize=null!=g&&null!=g.minSize?g.minSize:180;(function(m,v){function p(P,R){if(P.getModel().isVertex(R)){var T=P.container.scrollWidth/2,c=P.container.scrollHeight/2;P.rootCell=R.referenceCell||R;P.getModel().beginUpdate();try{for(var f=R.referenceCell||R,k=m.model.getCell(f.sourceCellId),B=m.getEdges(k,null,!0,!0,!1,!0),z=[],C=0;C<B.length;C++)null!=B[C].getTerminal(!0)&&null!=B[C].getTerminal(!1)&&m.isCellVisible(B[C])&&
+!m.isEdgeIgnored(B[C])&&m.isCellVisible(B[C].getTerminal(!0))&&m.isCellVisible(B[C].getTerminal(!1))&&m.isCellVisible(m.getLayerForCell(B[C]))&&z.push(B[C]);z=B=z;if(null!=R.startIndex||0<pageSize&&B.length>pageSize){var I=R.startIndex||0;z=B.slice(Math.max(0,I),Math.min(B.length,I+pageSize))}z=m.getOpposites(z,k).concat(z);var L=P.cloneCells(z);for(C=0;C<z.length;C++)if(L[C].sourceCellId=z[C].id,P.model.isEdge(L[C]))for(L[C].geometry.x=0,L[C].geometry.y=0,L[C].geometry.points=null,L[C].setStyle(L[C].getStyle()+
";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffc0;textOpacity=100;"),L[C].setTerminal(f,null==L[C].getTerminal(!0)),k=0;k<L[C].getChildCount();k++){var K=L[C].getChildAt(k);null!=K.geometry&&K.geometry.relative&&(K.setStyle(K.getStyle()+";labelBackgroundColor=#ffffffc0;textOpacity=100;"),K.geometry.offset=new mxPoint(0,0),K.geometry.y=0,K.geometry.x=.5>K.geometry.x?-.8:.5<K.geometry.x?.8:0)}if(0<R.startIndex){var O=P.createVertex(null,null,mxResources.get("previousPage")+
-" ("+Math.ceil((R.startIndex||0)/pageSize)+"/"+Math.ceil(A.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");O.referenceCell=f;O.startIndex=Math.max(0,(R.startIndex||0)-pageSize);L.splice(0,0,O)}if(A.length>(R.startIndex||0)+pageSize){var da=P.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((R.startIndex||0)/pageSize)+2)+"/"+Math.ceil(A.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");da.referenceCell=
-f;da.startIndex=(R.startIndex||0)+pageSize;L.splice(0,0,da)}for(var ea in P.getModel().cells){var ca=P.getModel().getCell(ea);ca!=P.rootCell&&!P.getModel().isAncestor(P.rootCell,ca)&&P.getModel().isVertex(ca)&&P.removeCells([ca])}P.addCells(L);var W=P.getModel().getGeometry(P.rootCell);null!=W&&(W=W.clone(),W.x=T-W.width/2,W.y=c-W.height/3,P.getModel().setGeometry(P.rootCell,W));R=[];for(ea in P.getModel().cells)ca=P.getModel().getCell(ea),ca!=P.rootCell&&P.getModel().isVertex(ca)&&P.getModel().getParent(ca)==
-P.getDefaultParent()&&(R.push(ca),W=P.getModel().getGeometry(ca),null!=W&&(W.x=T-W.width/2,W.y=c-W.height/2));var ma=R.length,la=2*Math.PI/ma,Y=Math.max(minSize,Math.min(P.container.scrollWidth/2.5-80,P.container.scrollHeight/2.5-80));for(T=0;T<ma;T++)W=P.getModel().getGeometry(R[T]),null!=W&&(W=W.clone(),W.x+=Y*Math.sin(T*la),W.y+=Y*Math.cos(T*la),P.getModel().setGeometry(R[T],W))}finally{P.getModel().endUpdate()}}}var B=document.createElement("div");B.style.position="absolute";B.style.display="block";
-B.style.background=Editor.isDarkMode()?Editor.darkColor:"#ffffff";B.style.width="100%";B.style.height="100%";B.style.left="0px";B.style.top="0px";B.style.zIndex=2;var G=document.createElement("img");G.setAttribute("src",Editor.closeBlackImage);G.style.position="absolute";G.style.cursor="pointer";G.style.right="10px";G.style.top="10px";B.appendChild(G);var S=document.createElement("div");S.style.position="absolute";S.style.cursor="pointer";S.style.right="38px";S.style.top="14px";S.style.textAlign=
-"right";S.style.verticalAlign="top";mxUtils.write(S,mxResources.get("close"));B.appendChild(S);document.body.appendChild(B);var F=function(P){27==P.keyCode&&G.click()};mxEvent.addListener(document,"keydown",F);(function(P){if(mxClient.isBrowserSupported()){var R=new Graph(P);R.keepEdgesInBackground=!0;R.isCellResizable=function(){return!1};R.isCellRotatable=function(){return!1};R.getCursorForCell=function(z){return this.model.isVertex(z)?"pointer":null};R.getFoldingImage=function(){return null};var T=
+" ("+Math.ceil((R.startIndex||0)/pageSize)+"/"+Math.ceil(B.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");O.referenceCell=f;O.startIndex=Math.max(0,(R.startIndex||0)-pageSize);L.splice(0,0,O)}if(B.length>(R.startIndex||0)+pageSize){var da=P.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((R.startIndex||0)/pageSize)+2)+"/"+Math.ceil(B.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");da.referenceCell=
+f;da.startIndex=(R.startIndex||0)+pageSize;L.splice(0,0,da)}for(var ea in P.getModel().cells){var ca=P.getModel().getCell(ea);ca!=P.rootCell&&!P.getModel().isAncestor(P.rootCell,ca)&&P.getModel().isVertex(ca)&&P.removeCells([ca])}P.addCells(L);var V=P.getModel().getGeometry(P.rootCell);null!=V&&(V=V.clone(),V.x=T-V.width/2,V.y=c-V.height/3,P.getModel().setGeometry(P.rootCell,V));R=[];for(ea in P.getModel().cells)ca=P.getModel().getCell(ea),ca!=P.rootCell&&P.getModel().isVertex(ca)&&P.getModel().getParent(ca)==
+P.getDefaultParent()&&(R.push(ca),V=P.getModel().getGeometry(ca),null!=V&&(V.x=T-V.width/2,V.y=c-V.height/2));var ma=R.length,la=2*Math.PI/ma,Y=Math.max(minSize,Math.min(P.container.scrollWidth/2.5-80,P.container.scrollHeight/2.5-80));for(T=0;T<ma;T++)V=P.getModel().getGeometry(R[T]),null!=V&&(V=V.clone(),V.x+=Y*Math.sin(T*la),V.y+=Y*Math.cos(T*la),P.getModel().setGeometry(R[T],V))}finally{P.getModel().endUpdate()}}}var A=document.createElement("div");A.style.position="absolute";A.style.display="block";
+A.style.background=Editor.isDarkMode()?Editor.darkColor:"#ffffff";A.style.width="100%";A.style.height="100%";A.style.left="0px";A.style.top="0px";A.style.zIndex=2;var G=document.createElement("img");G.setAttribute("src",Editor.closeBlackImage);G.style.position="absolute";G.style.cursor="pointer";G.style.right="10px";G.style.top="10px";A.appendChild(G);var S=document.createElement("div");S.style.position="absolute";S.style.cursor="pointer";S.style.right="38px";S.style.top="14px";S.style.textAlign=
+"right";S.style.verticalAlign="top";mxUtils.write(S,mxResources.get("close"));A.appendChild(S);document.body.appendChild(A);var F=function(P){27==P.keyCode&&G.click()};mxEvent.addListener(document,"keydown",F);(function(P){if(mxClient.isBrowserSupported()){var R=new Graph(P);R.keepEdgesInBackground=!0;R.isCellResizable=function(){return!1};R.isCellRotatable=function(){return!1};R.getCursorForCell=function(z){return this.model.isVertex(z)?"pointer":null};R.getFoldingImage=function(){return null};var T=
function(){mxEvent.removeListener(document,"keydown",F);P.parentNode.removeChild(P);m.scrollCellToVisible(v)};mxEvent.addListener(G,"click",T);mxEvent.addListener(S,"click",T);R.setEnabled(!1);var c=R.click;R.click=function(z){var C=z.getCell(),I=null!=C?null!=C.referenceCell?C.referenceCell:C:null;null!=C&&R.rootCell!=C&&0<R.getEdges(I).length?p(R,C):c.apply(this,arguments)};T=R.container.scrollWidth/2;var f=R.container.scrollHeight/3;R.model.beginUpdate();var k=R.importCells([v])[0];k.sourceCellId=
-v.id;k.geometry.x=T-k.geometry.width/2;k.geometry.y=f-k.geometry.height/2;R.model.endUpdate();var A=!1;R.getModel().addListener(mxEvent.CHANGE,function(z,C){A||(z=C.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,R.labelsVisible=!1,A=!0,mxEffects.animateChanges(R,z,function(){var I=new mxParallelEdgeLayout(R);I.spacing=60;var L=I.layout;I.layout=function(K){I.spacing=Math.min(60,Math.max(30,60-5*K.length));L.apply(this,arguments)};I.execute(R.getDefaultParent());mxText.prototype.enableBoundingBox=
-!0;R.labelsVisible=!0;R.tooltipHandler.hide();R.refresh();A=!1}))});p(R,k)}else mxUtils.error("Browser is not supported!",200,!1)})(B)})(b,e)};Graph.removeKeys=function(b,e){for(var g in b)e(g)&&delete b[g]};Graph.setTransitionForNodes=function(b,e){for(var g=0;g<b.length;g++)mxUtils.setPrefixedStyle(b[g].style,"transition",e)};Graph.setOpacityForNodes=function(b,e){for(var g=0;g<b.length;g++)b[g].style.opacity=e};
+v.id;k.geometry.x=T-k.geometry.width/2;k.geometry.y=f-k.geometry.height/2;R.model.endUpdate();var B=!1;R.getModel().addListener(mxEvent.CHANGE,function(z,C){B||(z=C.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,R.labelsVisible=!1,B=!0,mxEffects.animateChanges(R,z,function(){var I=new mxParallelEdgeLayout(R);I.spacing=60;var L=I.layout;I.layout=function(K){I.spacing=Math.min(60,Math.max(30,60-5*K.length));L.apply(this,arguments)};I.execute(R.getDefaultParent());mxText.prototype.enableBoundingBox=
+!0;R.labelsVisible=!0;R.tooltipHandler.hide();R.refresh();B=!1}))});p(R,k)}else mxUtils.error("Browser is not supported!",200,!1)})(A)})(b,e)};Graph.removeKeys=function(b,e){for(var g in b)e(g)&&delete b[g]};Graph.setTransitionForNodes=function(b,e){for(var g=0;g<b.length;g++)mxUtils.setPrefixedStyle(b[g].style,"transition",e)};Graph.setOpacityForNodes=function(b,e){for(var g=0;g<b.length;g++)b[g].style.opacity=e};
Graph.removePasteFormatting=function(b,e){for(;null!=b;){null!=b.firstChild&&Graph.removePasteFormatting(b.firstChild,!0);var g=b.nextSibling;if(b.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=b.style){"#000000"==b.style.color&&(b.style.color="");if("SPAN"==b.nodeName&&"Apple-tab-span"==b.className){var m=Graph.createTabNode(4);b.parentNode.replaceChild(m,b);b=m}if("P"==b.nodeName&&"p1"==b.className){for(;null!=b.firstChild;)b.parentNode.insertBefore(b.firstChild,b);null!=g&&"P"==g.nodeName&&"p1"==
g.className&&b.parentNode.insertBefore(b.ownerDocument.createElement("br"),b);b.parentNode.removeChild(b)}!e&&null!=b.innerHTML&&0<=b.innerHTML.indexOf("\t")&&(m=Graph.createTabNode(4),b.innerHTML=b.innerHTML.replace(/\t/g,m.outerHTML))}b=g}};Graph.createTabNode=function(b){var e="\t";if(null!=b)for(e="";0<b;)e+=" ",b--;b=document.createElement("span");b.style.whiteSpace="pre";b.appendChild(document.createTextNode(e));return b};Graph.sanitizeHtml=function(b,e){return Graph.domPurify(b,!1)};
Graph.sanitizeLink=function(b){if(null==b)return null;var e=document.createElement("a");e.setAttribute("href",b);Graph.sanitizeNode(e);return e.getAttribute("href")};Graph.sanitizeNode=function(b){return Graph.domPurify(b,!0)};DOMPurify.addHook("afterSanitizeAttributes",function(b){"use"==b.nodeName&&(null!=b.getAttribute("xlink:href")&&!b.getAttribute("xlink:href").startsWith("#")||null!=b.getAttribute("href")&&!b.getAttribute("href").startsWith("#"))&&b.remove()});
Graph.domPurify=function(b,e){window.DOM_PURIFY_CONFIG.IN_PLACE=e;return DOMPurify.sanitize(b,window.DOM_PURIFY_CONFIG)};
Graph.clipSvgDataUri=function(b,e){if(!mxClient.IS_IE&&!mxClient.IS_IE11&&null!=b&&"data:image/svg+xml;base64,"==b.substring(0,26))try{var g=document.createElement("div");g.style.position="absolute";g.style.visibility="hidden";var m=decodeURIComponent(escape(atob(b.substring(26)))),v=m.indexOf("<svg");if(0<=v){g.innerHTML=Graph.sanitizeHtml(m.substring(v));var p=g.getElementsByTagName("svg");if(0<p.length){if(e||null!=p[0].getAttribute("preserveAspectRatio")){document.body.appendChild(g);try{m=e=
-1;var B=p[0].getAttribute("width"),G=p[0].getAttribute("height");B=null!=B&&"%"!=B.charAt(B.length-1)?parseFloat(B):NaN;G=null!=G&&"%"!=G.charAt(G.length-1)?parseFloat(G):NaN;var S=p[0].getAttribute("viewBox");v=null;if(null!=S&&!isNaN(B)&&!isNaN(G)){var F=S.split(" ");4<=S.length&&(e=parseFloat(F[2])/B,m=parseFloat(F[3])/G,v=new mxRectangle(parseFloat(F[0]),parseFloat(F[1]),parseFloat(F[2]),parseFloat(F[3])))}var P=p[0].getBBox();0<P.width&&0<P.height&&(null==v||P.width*P.height<v.width*v.height*
+1;var A=p[0].getAttribute("width"),G=p[0].getAttribute("height");A=null!=A&&"%"!=A.charAt(A.length-1)?parseFloat(A):NaN;G=null!=G&&"%"!=G.charAt(G.length-1)?parseFloat(G):NaN;var S=p[0].getAttribute("viewBox");v=null;if(null!=S&&!isNaN(A)&&!isNaN(G)){var F=S.split(" ");4<=S.length&&(e=parseFloat(F[2])/A,m=parseFloat(F[3])/G,v=new mxRectangle(parseFloat(F[0]),parseFloat(F[1]),parseFloat(F[2]),parseFloat(F[3])))}var P=p[0].getBBox();0<P.width&&0<P.height&&(null==v||P.width*P.height<v.width*v.height*
.7)&&(g.getElementsByTagName("svg")[0].setAttribute("viewBox",P.x+" "+P.y+" "+P.width+" "+P.height),g.getElementsByTagName("svg")[0].setAttribute("width",P.width/e),g.getElementsByTagName("svg")[0].setAttribute("height",P.height/m))}catch(R){}finally{document.body.removeChild(g)}}b=Editor.createSvgDataUri(mxUtils.getXml(p[0]))}}}catch(R){}return b};
Graph.createRemoveIcon=function(b,e){var g=document.createElement("img");g.setAttribute("src",Dialog.prototype.clearImage);g.setAttribute("title",b);g.setAttribute("width","13");g.setAttribute("height","10");g.style.marginLeft="4px";g.style.marginBottom="-1px";g.style.cursor="pointer";mxEvent.addListener(g,"click",e);return g};Graph.isPageLink=function(b){return null!=b&&"data:page/id,"==b.substring(0,13)};
-Graph.rewritePageLinks=function(b,e){function g(v,p){var B=v.getAttribute(p);if(null!=B){Graph.isPageLink(B)&&(B="#"+B.substring(B.indexOf(":")+1));var G=p;e&&"xlink:href"==p&&(v.removeAttribute(p),G="href");v.setAttribute(G,B)}}b=b.getElementsByTagName("a");if(null!=b)for(var m=0;m<b.length;m++)g(b[m],"href"),g(b[m],"xlink:href")};Graph.isLink=function(b){return null!=b&&b.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
+Graph.rewritePageLinks=function(b,e){function g(v,p){var A=v.getAttribute(p);if(null!=A){Graph.isPageLink(A)&&(A="#"+A.substring(A.indexOf(":")+1));var G=p;e&&"xlink:href"==p&&(v.removeAttribute(p),G="href");v.setAttribute(G,A)}}b=b.getElementsByTagName("a");if(null!=b)for(var m=0;m<b.length;m++)g(b[m],"href"),g(b[m],"xlink:href")};Graph.isLink=function(b){return null!=b&&b.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
mxUtils.extend(Graph,mxGraph);Graph.prototype.minFitScale=null;Graph.prototype.maxFitScale=null;Graph.prototype.linkPolicy="frame"==urlParams.target?"blank":urlParams.target||"auto";Graph.prototype.linkTarget="frame"==urlParams.target?"_self":"_blank";Graph.prototype.linkRelation="nofollow noopener noreferrer";Graph.prototype.defaultScrollbars=!0;Graph.prototype.defaultPageVisible=!0;Graph.prototype.defaultGridEnabled="0"!=urlParams.grid;Graph.prototype.lightbox=!1;
Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBackground=!1;Graph.prototype.defaultPageBackgroundColor="1"==urlParams.embedInline?"transparent":"light-dark(#ffffff, "+Editor.darkColor+")";Graph.prototype.defaultPageBorderColor="light-dark(#ffffff, "+Editor.darkColor+")";Graph.prototype.shapeForegroundColor="light-dark(#000000, #ffffff)";Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";
Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%^{^}^ ^\"^ '^=^;]+)%","g");Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};
Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder"];Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");
Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";
-Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(g,m){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var v=g.view.graph.tolerance,p=!0,B=null,G=mxUtils.bind(this,function(P){p=!0;B=new mxPoint(mxEvent.getClientX(P),mxEvent.getClientY(P))}),S=mxUtils.bind(this,function(P){p=p&&null!=B&&Math.abs(B.x-mxEvent.getClientX(P))<v&&Math.abs(B.y-mxEvent.getClientY(P))<v}),F=mxUtils.bind(this,function(P){if(p)for(var R=mxEvent.getSource(P);null!=
+Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(g,m){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var v=g.view.graph.tolerance,p=!0,A=null,G=mxUtils.bind(this,function(P){p=!0;A=new mxPoint(mxEvent.getClientX(P),mxEvent.getClientY(P))}),S=mxUtils.bind(this,function(P){p=p&&null!=A&&Math.abs(A.x-mxEvent.getClientX(P))<v&&Math.abs(A.y-mxEvent.getClientY(P))<v}),F=mxUtils.bind(this,function(P){if(p)for(var R=mxEvent.getSource(P);null!=
R&&R!=m.node;){if("a"==R.nodeName.toLowerCase()){g.view.graph.labelLinkClicked(g,R,P);break}R=R.parentNode}});mxEvent.addGestureListeners(m.node,G,S,F);mxEvent.addListener(m.node,"click",function(P){mxEvent.consume(P)})};if(null!=this.tooltipHandler){var e=this.tooltipHandler.init;this.tooltipHandler.init=function(){e.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(g){var m=mxEvent.getSource(g);"A"==m.nodeName&&(m=m.getAttribute("href"),null!=
m&&this.graph.isCustomLink(m)&&(mxEvent.isTouchEvent(g)||!mxEvent.isPopupTrigger(g))&&this.graph.customLinkClicked(m)&&mxEvent.consume(g))}))}}this.initLayoutManager()};
-(function(){Graph.prototype.useCssTransforms=!1;Graph.prototype.currentScale=1;Graph.prototype.currentTranslate=new mxPoint(0,0);Graph.prototype.pasteEdgeStyle=!1;Graph.prototype.isFillState=function(B){return!this.isSpecialColor(B.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(B.style,"lineShape",null)&&(this.model.isVertex(B.cell)||"arrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"wire"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"filledEdge"==mxUtils.getValue(B.style,
-mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(B){return this.isFillState(B)&&"wire"!=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(B){return!0};Graph.prototype.isSpecialColor=function(B){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,
-"inherit","swimlane","indicated"],B)};Graph.prototype.isGlassState=function(B){B=mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null);return"label"==B||"rectangle"==B||"internalStorage"==B||"ext"==B||"umlLifeline"==B||"swimlane"==B||"process"==B};Graph.prototype.isRoundedState=function(B){return null!=B.shape?B.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(B.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(B){var G=mxUtils.getValue(B.style,
-mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(B.style,mxConstants.STYLE_CURVED,!1)&&("connector"==G||"filledEdge"==G||"wire"==G)};Graph.prototype.isAutoSizeState=function(B){return"1"==mxUtils.getValue(B.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(B){return null!=mxUtils.getValue(B.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(B){return!0};Graph.prototype.getVerticesAndEdges=function(B,G){B=null!=B?B:!0;G=null!=G?G:!0;var S=this.model;
-return S.filterDescendants(function(F){return B&&S.isVertex(F)||G&&S.isEdge(F)},S.getRoot())};Graph.prototype.applyNewEdgeStyle=function(B,G,S){B=this.getCellStyle(B).newEdgeStyle;if(null!=B){this.model.beginUpdate();try{var F=JSON.parse(B),P;for(P in F)this.setCellStyles(P,F[P],G),"edgeStyle"==P&&"elbowEdgeStyle"==F[P]&&null!=S&&this.setCellStyles("elbow",S==mxConstants.DIRECTION_SOUTH||S==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",G)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=
-function(B){for(var G={},S=0;S<B.length;S++){var F=this.view.getState(B[S]);null!=F&&this.mergeStyle(F.style,G,0==S)}return G};Graph.prototype.mergeStyle=function(B,G,S){if(null!=B){var F={},P;for(P in B){var R=B[P];null!=R&&(F[P]=!0,null==G[P]&&S?G[P]=R:G[P]!=R&&delete G[P])}for(P in G)F[P]||delete G[P]}};Graph.prototype.getStartEditingCell=function(B,G){G=this.getCellStyle(B);G=parseInt(mxUtils.getValue(G,mxConstants.STYLE_STARTSIZE,0));this.isTable(B)&&(!this.isSwimlane(B)||0==G)&&""==this.getLabel(B)&&
-0<this.model.getChildCount(B)&&(B=this.model.getChildAt(B,0),G=this.getCellStyle(B),G=parseInt(mxUtils.getValue(G,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(B)&&(!this.isSwimlane(B)||0==G)&&""==this.getLabel(B)&&0<this.model.getChildCount(B))for(G=0;G<this.model.getChildCount(B);G++){var S=this.model.getChildAt(B,G);if(this.isCellEditable(S)){B=S;break}}return B};Graph.prototype.copyStyle=function(B){return this.getCellStyle(B,!1)};Graph.prototype.pasteStyle=function(B,G,S,F){null!=B&&(F||
-(S=null!=S?S:Graph.cellStyles,Graph.removeKeys(B,function(P){return 0>mxUtils.indexOf(S,P)})),this.updateCellStyles(B,G))};Graph.prototype.copyCellStyles=function(B,G,S,F,P,R,T){var c=!1,f=!1;if(0<B.length)for(var k=0;k<B.length&&(c=this.getModel().isVertex(B[k])||c,!(f=this.getModel().isEdge(B[k])||f)||!c);k++);else f=c=!0;c=c&&!R;f=f&&!T;for(k=0;k<G.length;k++)if(B=0<=mxUtils.indexOf(Graph.textStyles,G[k]),"strokeColor"!=G[k]||null!=S[k]&&"none"!=S[k])if(0<=mxUtils.indexOf(Graph.cellStyles,G[k])||
-"shape"==G[k])if("shape"!=G[k]&&(c||B)&&(null==S[k]?delete F[G[k]]:F[G[k]]=S[k]),f||B)null==S[k]?delete P[G[k]]:P[G[k]]=S[k]};Graph.prototype.includeDescendants=function(B){for(var G=[],S=0;S<B.length;S++)G=G.concat(this.model.getDescendants(B[S]));return G};Graph.prototype.pasteCellStyles=function(B,G,S,F,P){G=null!=G?G:this.currentVertexStyle;S=null!=S?S:this.currentEdgeStyle;P=null!=P?P:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var R=0;R<B.length;R++){var T=B[R],c=this.model.getStyle(T),
-f=!1;null!=T.style&&(pairs=T.style.split(";"),f=f||0<=mxUtils.indexOf(pairs,"text"));if(f)var k=Graph.textStyles;else if(k=Graph.cellStyles.slice(),!F)for(var A=null!=c?c.split(";"):[],z=0;z<A.length;z++){var C=A[z],I=C.indexOf("=");if(0<=I){var L=C.substring(0,I),K=mxUtils.indexOf(k,L);0<=K&&k.splice(K,1);for(f=0;f<Graph.cellStyleGroups.length;f++){var O=Graph.cellStyleGroups[f];if(0<=mxUtils.indexOf(O,L))for(var da=0;da<O.length;da++){var ea=mxUtils.indexOf(k,O[da]);0<=ea&&k.splice(ea,1)}}}}var ca=
-this.model.isEdge(T);f=ca?S:G;for(z=0;z<k.length;z++){L=k[z];var W=f[L];null!=W&&("edgeStyle"!=L||P)&&(ca||!ca&&0>mxUtils.indexOf(Graph.edgeStyles,L))&&(c=mxUtils.setStyle(c,L,W),"fontFamily"==L&&null==f.fontSource&&(c=mxUtils.setStyle(c,"fontSource",null)),ca&&"rounded"==L&&"1"==W&&null==f.curved&&(c=mxUtils.setStyle(c,"curved",null)))}Editor.simpleLabels&&(c=mxUtils.setStyle(mxUtils.setStyle(c,"html",null),"whiteSpace",null));this.model.setStyle(T,c)}}finally{this.model.endUpdate()}return B};Graph.prototype.updateCellStyles=
-function(B,G){this.model.beginUpdate();try{for(var S=0;S<G.length;S++)if(this.model.isVertex(G[S])||this.model.isEdge(G[S])){var F=this.getCellStyle(G[S],!1),P=F[mxConstants.STYLE_PERIMETER],R=!1;for(c in B){var T=B[c];if(F[c]!=T){if(c==mxConstants.STYLE_SHAPE&&"umlLifeline"==F[c]&&"umlLifeline"!=T){R=!0;var c="participant"}this.setCellStyles(c,T,[G[S]])}}R&&this.setCellStyles(mxConstants.STYLE_PERIMETER,P,[G[S]])}}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(B,G,S,F,P,R){this.useCssTransforms&&(B=B/this.currentScale-this.currentTranslate.x,G=G/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=
-function(B,G,S,F,P,R){F=null!=F?F:!0;P=null!=P?P:!0;null==S&&(S=this.getCurrentRoot(),null==S&&(S=this.getModel().getRoot()));if(null!=S)for(var T=this.model.getChildCount(S)-1;0<=T;T--){var c=this.model.getChildAt(S,T),f=this.getScaledCellAt(B,G,c,F,P,R);if(null!=f)return f;if(this.isCellVisible(c)&&(P&&this.model.isEdge(c)||F&&this.model.isVertex(c))&&(f=this.view.getState(c),null!=f&&(null==R||!R(f,B,G))&&this.intersects(f,B,G)))return c}return null};Graph.prototype.isRecursiveVertexResize=function(B){return!this.isSwimlane(B.cell)&&
-0<this.model.getChildCount(B.cell)&&!this.isCellCollapsed(B.cell)&&"1"==mxUtils.getValue(B.style,"recursiveResize","1")&&null==mxUtils.getValue(B.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(B){for(var G=this.getCellGeometry(B);null!=G&&G.relative;)B=this.getModel().getParent(B),G=this.getCellGeometry(B);return B};Graph.prototype.isPart=function(B){return"1"==mxUtils.getValue(this.getCurrentCellStyle(B),"part","0")||this.isTableCell(B)||this.isTableRow(B)};Graph.prototype.getCompositeParents=
-function(B){for(var G=new mxDictionary,S=[],F=0;F<B.length;F++){var P=this.getCompositeParent(B[F]);this.isTableCell(P)&&(P=this.graph.model.getParent(P));this.isTableRow(P)&&(P=this.graph.model.getParent(P));null==P||G.get(P)||(G.put(P,!0),S.push(P))}return S};Graph.prototype.getReferenceTerminal=function(B){if(null!=B){var G=this.getCellGeometry(B);null!=G&&G.relative&&(B=this.model.getParent(B))}null!=B&&this.model.isEdge(B)&&(B=this.model.getParent(B));null!=B&&(B=this.getCompositeParent(B));
-return B};Graph.prototype.getCompositeParent=function(B){for(;this.isPart(B);){var G=this.model.getParent(B);if(!this.model.isVertex(G))break;B=G}return B};Graph.prototype.filterSelectionCells=function(B){var G=this.getSelectionCells();if(null!=B){for(var S=[],F=0;F<G.length;F++)B(G[F])||S.push(G[F]);G=S}return G};var b=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(B){if(this.useCssTransforms){var G=this.currentScale,S=this.currentTranslate;B=new mxRectangle((B.x+
-2*S.x)*G-S.x,(B.y+2*S.y)*G-S.y,B.width*G,B.height*G)}b.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=function(B){B=this.strokeWidth;this.graph.useCssTransforms&&(B/=this.graph.currentScale);return B};mxGraphView.prototype.getGraphBounds=function(){var B=this.graphBounds;if(this.graph.useCssTransforms){var G=this.graph.currentTranslate,S=this.graph.currentScale;B=new mxRectangle((B.x+G.x)*S,(B.y+G.y)*S,B.width*S,B.height*S)}return B};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?
-this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(B){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);e.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,
-this.translate.y=this.graph.currentTranslate.y)};var g=mxGraph.prototype.getCellsForGroup;Graph.prototype.getCellsForGroup=function(B){B=g.apply(this,arguments);for(var G=[],S=0;S<B.length;S++)this.isTableRow(B[S])||this.isTableCell(B[S])||G.push(B[S]);return G};var m=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(B){B=m.apply(this,arguments);for(var G=[],S=0;S<B.length;S++)this.isTable(B[S])||this.isTableRow(B[S])||this.isTableCell(B[S])||G.push(B[S]);return G};
-Graph.prototype.updateCssTransform=function(){var B=this.view.getDrawPane();if(null!=B)if(B=B.parentNode,this.useCssTransforms){var G=B.getAttribute("transform");B.setAttribute("transformOrigin","0 0");var S=Math.round(100*this.currentScale)/100;B.setAttribute("transform","scale("+S+","+S+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");G!=B.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",
-B.getAttribute("transform"))}else B.removeAttribute("transformOrigin"),B.removeAttribute("transform")};var v=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var B=this.graph.useCssTransforms,G=this.scale,S=this.translate;B&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);v.apply(this,arguments);B&&(this.scale=G,this.translate=S)};var p=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(B,
-G,S){var F=this.useCssTransforms,P=this.view.scale,R=this.view.translate;F&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=!1);p.apply(this,arguments);F&&(this.view.scale=P,this.view.translate=R,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
+(function(){Graph.prototype.useCssTransforms=!1;Graph.prototype.currentScale=1;Graph.prototype.currentTranslate=new mxPoint(0,0);Graph.prototype.pasteEdgeStyle=!1;Graph.prototype.isFillState=function(A){return!this.isSpecialColor(A.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(A.style,"lineShape",null)&&(this.model.isVertex(A.cell)||"arrow"==mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null)||"wire"==mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null)||"filledEdge"==mxUtils.getValue(A.style,
+mxConstants.STYLE_SHAPE,null)||"flexArrow"==mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null)||"mxgraph.arrows2.wedgeArrow"==mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isGradientState=function(A){return this.isFillState(A)&&"wire"!=mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.isStrokeState=function(A){return!0};Graph.prototype.getTextColor=function(A,G){for(var S=A==this.cellEditor.textarea&&G?"default":Graph.getGivenColor(A,G?"color":
+"background-color");null==S&&null!=A&&A!=this.cellEditor.textarea.parentNode;)S=A==this.cellEditor.textarea&&G?"default":Graph.getGivenColor(A,"color"),A=A.parentNode;if("rgba(0, 0, 0, 0)"==S||"transparent"==S)S=mxConstants.NONE;return S};Graph.prototype.isSpecialColor=function(A){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],A)};Graph.prototype.isGlassState=function(A){A=mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null);
+return"label"==A||"rectangle"==A||"internalStorage"==A||"ext"==A||"umlLifeline"==A||"swimlane"==A||"process"==A};Graph.prototype.isRoundedState=function(A){return null!=A.shape?A.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(A){var G=mxUtils.getValue(A.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(A.style,mxConstants.STYLE_CURVED,!1)&&("connector"==G||"filledEdge"==G||"wire"==
+G)};Graph.prototype.isAutoSizeState=function(A){return"1"==mxUtils.getValue(A.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(A){return null!=mxUtils.getValue(A.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(A){return!0};Graph.prototype.getVerticesAndEdges=function(A,G){A=null!=A?A:!0;G=null!=G?G:!0;var S=this.model;return S.filterDescendants(function(F){return A&&S.isVertex(F)||G&&S.isEdge(F)},S.getRoot())};Graph.prototype.applyNewEdgeStyle=
+function(A,G,S){A=this.getCellStyle(A).newEdgeStyle;if(null!=A){this.model.beginUpdate();try{var F=JSON.parse(A),P;for(P in F)this.setCellStyles(P,F[P],G),"edgeStyle"==P&&"elbowEdgeStyle"==F[P]&&null!=S&&this.setCellStyles("elbow",S==mxConstants.DIRECTION_SOUTH||S==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",G)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(A){for(var G={},S=0;S<A.length;S++){var F=this.view.getState(A[S]);null!=F&&this.mergeStyle(F.style,G,0==S)}return G};
+Graph.prototype.mergeStyle=function(A,G,S){if(null!=A){var F={},P;for(P in A){var R=A[P];null!=R&&(F[P]=!0,null==G[P]&&S?G[P]=R:G[P]!=R&&delete G[P])}for(P in G)F[P]||delete G[P]}};Graph.prototype.getStartEditingCell=function(A,G){G=this.getCellStyle(A);G=parseInt(mxUtils.getValue(G,mxConstants.STYLE_STARTSIZE,0));this.isTable(A)&&(!this.isSwimlane(A)||0==G)&&""==this.getLabel(A)&&0<this.model.getChildCount(A)&&(A=this.model.getChildAt(A,0),G=this.getCellStyle(A),G=parseInt(mxUtils.getValue(G,mxConstants.STYLE_STARTSIZE,
+0)));if(this.isTableRow(A)&&(!this.isSwimlane(A)||0==G)&&""==this.getLabel(A)&&0<this.model.getChildCount(A))for(G=0;G<this.model.getChildCount(A);G++){var S=this.model.getChildAt(A,G);if(this.isCellEditable(S)){A=S;break}}return A};Graph.prototype.copyStyle=function(A){return this.getCellStyle(A,!1)};Graph.prototype.pasteStyle=function(A,G,S,F){null!=A&&(F||(S=null!=S?S:Graph.cellStyles,Graph.removeKeys(A,function(P){return 0>mxUtils.indexOf(S,P)})),this.updateCellStyles(A,G))};Graph.prototype.copyCellStyles=
+function(A,G,S,F,P,R,T){var c=!1,f=!1;if(0<A.length)for(var k=0;k<A.length&&(c=this.getModel().isVertex(A[k])||c,!(f=this.getModel().isEdge(A[k])||f)||!c);k++);else f=c=!0;c=c&&!R;f=f&&!T;for(k=0;k<G.length;k++)if(A=0<=mxUtils.indexOf(Graph.textStyles,G[k]),"strokeColor"!=G[k]||null!=S[k]&&"none"!=S[k])if(0<=mxUtils.indexOf(Graph.cellStyles,G[k])||"shape"==G[k])if("shape"!=G[k]&&(c||A)&&(null==S[k]?delete F[G[k]]:F[G[k]]=S[k]),f||A)null==S[k]?delete P[G[k]]:P[G[k]]=S[k]};Graph.prototype.includeDescendants=
+function(A){for(var G=[],S=0;S<A.length;S++)G=G.concat(this.model.getDescendants(A[S]));return G};Graph.prototype.pasteCellStyles=function(A,G,S,F,P){G=null!=G?G:this.currentVertexStyle;S=null!=S?S:this.currentEdgeStyle;P=null!=P?P:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var R=0;R<A.length;R++){var T=A[R],c=this.model.getStyle(T),f=!1;null!=T.style&&(pairs=T.style.split(";"),f=f||0<=mxUtils.indexOf(pairs,"text"));if(f)var k=Graph.textStyles;else if(k=Graph.cellStyles.slice(),!F)for(var B=
+null!=c?c.split(";"):[],z=0;z<B.length;z++){var C=B[z],I=C.indexOf("=");if(0<=I){var L=C.substring(0,I),K=mxUtils.indexOf(k,L);0<=K&&k.splice(K,1);for(f=0;f<Graph.cellStyleGroups.length;f++){var O=Graph.cellStyleGroups[f];if(0<=mxUtils.indexOf(O,L))for(var da=0;da<O.length;da++){var ea=mxUtils.indexOf(k,O[da]);0<=ea&&k.splice(ea,1)}}}}var ca=this.model.isEdge(T);f=ca?S:G;for(z=0;z<k.length;z++){L=k[z];var V=f[L];null!=V&&("edgeStyle"!=L||P)&&(ca||!ca&&0>mxUtils.indexOf(Graph.edgeStyles,L))&&(c=mxUtils.setStyle(c,
+L,V),"fontFamily"==L&&null==f.fontSource&&(c=mxUtils.setStyle(c,"fontSource",null)),ca&&"rounded"==L&&"1"==V&&null==f.curved&&(c=mxUtils.setStyle(c,"curved",null)))}Editor.simpleLabels&&(c=mxUtils.setStyle(mxUtils.setStyle(c,"html",null),"whiteSpace",null));this.model.setStyle(T,c)}}finally{this.model.endUpdate()}return A};Graph.prototype.updateCellStyles=function(A,G){this.model.beginUpdate();try{for(var S=0;S<G.length;S++)if(this.model.isVertex(G[S])||this.model.isEdge(G[S])){var F=this.getCellStyle(G[S],
+!1),P=F[mxConstants.STYLE_PERIMETER],R=!1;for(c in A){var T=A[c];if(F[c]!=T){if(c==mxConstants.STYLE_SHAPE&&"umlLifeline"==F[c]&&"umlLifeline"!=T){R=!0;var c="participant"}this.setCellStyles(c,T,[G[S]])}}R&&this.setCellStyles(mxConstants.STYLE_PERIMETER,P,[G[S]])}}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(A,G,S,F,P,R){this.useCssTransforms&&(A=A/this.currentScale-this.currentTranslate.x,G=G/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(A,G,S,F,P,R){F=null!=F?F:!0;P=null!=P?P:!0;null==S&&(S=this.getCurrentRoot(),null==S&&(S=this.getModel().getRoot()));if(null!=S)for(var T=
+this.model.getChildCount(S)-1;0<=T;T--){var c=this.model.getChildAt(S,T),f=this.getScaledCellAt(A,G,c,F,P,R);if(null!=f)return f;if(this.isCellVisible(c)&&(P&&this.model.isEdge(c)||F&&this.model.isVertex(c))&&(f=this.view.getState(c),null!=f&&(null==R||!R(f,A,G))&&this.intersects(f,A,G)))return c}return null};Graph.prototype.isRecursiveVertexResize=function(A){return!this.isSwimlane(A.cell)&&0<this.model.getChildCount(A.cell)&&!this.isCellCollapsed(A.cell)&&"1"==mxUtils.getValue(A.style,"recursiveResize",
+"1")&&null==mxUtils.getValue(A.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(A){for(var G=this.getCellGeometry(A);null!=G&&G.relative;)A=this.getModel().getParent(A),G=this.getCellGeometry(A);return A};Graph.prototype.isPart=function(A){return"1"==mxUtils.getValue(this.getCurrentCellStyle(A),"part","0")||this.isTableCell(A)||this.isTableRow(A)};Graph.prototype.getCompositeParents=function(A){for(var G=new mxDictionary,S=[],F=0;F<A.length;F++){var P=this.getCompositeParent(A[F]);
+this.isTableCell(P)&&(P=this.graph.model.getParent(P));this.isTableRow(P)&&(P=this.graph.model.getParent(P));null==P||G.get(P)||(G.put(P,!0),S.push(P))}return S};Graph.prototype.getReferenceTerminal=function(A){if(null!=A){var G=this.getCellGeometry(A);null!=G&&G.relative&&(A=this.model.getParent(A))}null!=A&&this.model.isEdge(A)&&(A=this.model.getParent(A));null!=A&&(A=this.getCompositeParent(A));return A};Graph.prototype.getCompositeParent=function(A){for(;this.isPart(A);){var G=this.model.getParent(A);
+if(!this.model.isVertex(G))break;A=G}return A};Graph.prototype.filterSelectionCells=function(A){var G=this.getSelectionCells();if(null!=A){for(var S=[],F=0;F<G.length;F++)A(G[F])||S.push(G[F]);G=S}return G};var b=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(A){if(this.useCssTransforms){var G=this.currentScale,S=this.currentTranslate;A=new mxRectangle((A.x+2*S.x)*G-S.x,(A.y+2*S.y)*G-S.y,A.width*G,A.height*G)}b.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=
+function(A){A=this.strokeWidth;this.graph.useCssTransforms&&(A/=this.graph.currentScale);return A};mxGraphView.prototype.getGraphBounds=function(){var A=this.graphBounds;if(this.graph.useCssTransforms){var G=this.graph.currentTranslate,S=this.graph.currentScale;A=new mxRectangle((A.x+G.x)*S,(A.y+G.y)*S,A.width*S,A.height*S)}return A};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;
+mxGraphView.prototype.validate=function(A){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);e.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var g=mxGraph.prototype.getCellsForGroup;
+Graph.prototype.getCellsForGroup=function(A){A=g.apply(this,arguments);for(var G=[],S=0;S<A.length;S++)this.isTableRow(A[S])||this.isTableCell(A[S])||G.push(A[S]);return G};var m=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(A){A=m.apply(this,arguments);for(var G=[],S=0;S<A.length;S++)this.isTable(A[S])||this.isTableRow(A[S])||this.isTableCell(A[S])||G.push(A[S]);return G};Graph.prototype.updateCssTransform=function(){var A=this.view.getDrawPane();if(null!=A)if(A=
+A.parentNode,this.useCssTransforms){var G=A.getAttribute("transform");A.setAttribute("transformOrigin","0 0");var S=Math.round(100*this.currentScale)/100;A.setAttribute("transform","scale("+S+","+S+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");G!=A.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",A.getAttribute("transform"))}else A.removeAttribute("transformOrigin"),A.removeAttribute("transform")};
+var v=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var A=this.graph.useCssTransforms,G=this.scale,S=this.translate;A&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);v.apply(this,arguments);A&&(this.scale=G,this.translate=S)};var p=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(A,G,S){var F=this.useCssTransforms,P=this.view.scale,R=this.view.translate;F&&(this.view.scale=1,this.view.translate=
+new mxPoint(0,0),this.useCssTransforms=!1);p.apply(this,arguments);F&&(this.view.scale=P,this.view.translate=R,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
Graph.prototype.labelLinkClicked=function(b,e,g){var m=e.getAttribute("href");m!=Graph.sanitizeLink(m)&&Graph.sanitizeNode(e);if(null!=m&&!this.isCustomLink(m)&&(mxEvent.isLeftMouseButton(g)&&!mxEvent.isPopupTrigger(g)||mxEvent.isTouchEvent(g))){if(!this.isEnabled()||this.isCellLocked(b.cell))b=this.isBlankLink(m)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(m),b);mxEvent.consume(g)}};
Graph.prototype.openLink=function(b,e,g){var m=window;try{if(b=Graph.sanitizeLink(b),null!=b)if("_self"==e&&window!=window.top)window.location.href=b;else if(b.substring(0,this.baseUrl.length)==this.baseUrl&&"#"==b.charAt(this.baseUrl.length)&&"_top"==e&&window==window.top){var v=b.split("#")[1];window.location.hash=="#"+v&&(window.location.hash="");window.location.hash=v}else m=window.open(b,null!=e?e:"_blank",g?null:"noopener,noreferrer"),null==m||g||(m.opener=null)}catch(p){}return m};
Graph.prototype.getLinkTitle=function(b){return b.substring(b.lastIndexOf("/")+1)};Graph.prototype.isCustomLink=function(b){return"data:"==b.substring(0,5)};Graph.prototype.customLinkClicked=function(b,e){return!1};Graph.prototype.isExternalProtocol=function(b){return"mailto:"===b.substring(0,7)};Graph.prototype.isBlankLink=function(b){return!this.isExternalProtocol(b)&&("blank"===this.linkPolicy||"self"!==this.linkPolicy&&!this.isRelativeUrl(b)&&b.substring(0,this.domainUrl.length)!==this.domainUrl)};
@@ -2375,13 +2390,13 @@ b.childLayout)return e=new mxCompactTreeLayout(this.graph),e.horizontal="1"==mxU
e.parallelEdgeSpacing=mxUtils.getValue(b,"parallelEdgeSpacing",mxHierarchicalLayout.prototype.parallelEdgeSpacing),e;if("circleLayout"==b.childLayout)return new mxCircleLayout(this.graph);if("organicLayout"==b.childLayout)return new mxFastOrganicLayout(this.graph);if("tableLayout"==b.childLayout)return new TableLayout(this.graph);if(null!=b.childLayout&&"["==String(b.childLayout).charAt(0))try{return new mxCompositeLayout(this.graph,this.graph.createLayouts(JSON.parse(b.childLayout)))}catch(m){null!=
window.console&&console.error(m)}}return null}};
Graph.prototype.createLayouts=function(b){for(var e=[],g=0;g<b.length;g++)if(0<=mxUtils.indexOf(Graph.layoutNames,b[g].layout)){var m="mxOrgChartLayout"==b[g].layout&&null!=b[g].config?new window[b[g].layout](this,b[g].config.branchOptimizer):new window[b[g].layout](this);if(null!=b[g].config)for(var v in b[g].config)if("mxOrgChartLayout"!=b[g].layout||"branchOptimizer"!=v)m[v]=b[g].config[v];e.push(m)}else throw Error(mxResources.get("invalidCallFnNotFound",[b[g].layout]));return e};
-Graph.prototype.getDataForCells=function(b,e){for(var g=[],m=0;m<b.length;m++){var v={};v.id=b[m].id;var p=null!=b[m].value?b[m].value.attributes:null;this.isReplacePlaceholders(b[m])&&e&&(v.value=this.getLabel(b[m]));if(null!=p)for(var B=0;B<p.length;B++)v[p[B].nodeName]=p[B].nodeValue;else v.label=this.convertValueToString(b[m]);g.push(v)}return g};
+Graph.prototype.getDataForCells=function(b,e){for(var g=[],m=0;m<b.length;m++){var v={};v.id=b[m].id;var p=null!=b[m].value?b[m].value.attributes:null;this.isReplacePlaceholders(b[m])&&e&&(v.value=this.getLabel(b[m]));if(null!=p)for(var A=0;A<p.length;A++)v[p[A].nodeName]=p[A].nodeValue;else v.label=this.convertValueToString(b[m]);g.push(v)}return g};
Graph.prototype.getNodesForCells=function(b){for(var e=[],g=0;g<b.length;g++){var m=this.view.getState(b[g]);if(null!=m){for(var v=this.cellRenderer.getShapesForState(m),p=0;p<v.length;p++)null!=v[p]&&null!=v[p].node&&e.push(v[p].node);null!=m.control&&null!=m.control.node&&e.push(m.control.node)}}return e};
Graph.prototype.createWipeAnimations=function(b,e){for(var g=[],m=0;m<b.length;m++){var v=this.view.getState(b[m]);null!=v&&null!=v.shape&&(this.model.isEdge(v.cell)&&null!=v.absolutePoints&&1<v.absolutePoints.length?g.push(this.createEdgeWipeAnimation(v,e)):this.model.isVertex(v.cell)&&null!=v.shape.bounds&&g.push(this.createVertexWipeAnimation(v,e)))}return g};
-Graph.prototype.createEdgeWipeAnimation=function(b,e){var g=b.absolutePoints.slice(),m=b.segments,v=b.length,p=g.length;return{execute:mxUtils.bind(this,function(B,G){if(null!=b.shape){var S=[g[0]];G=B/G;e||(G=1-G);for(var F=v*G,P=1;P<p;P++)if(F<=m[P-1]){S.push(new mxPoint(g[P-1].x+(g[P].x-g[P-1].x)*F/m[P-1],g[P-1].y+(g[P].y-g[P-1].y)*F/m[P-1]));break}else F-=m[P-1],S.push(g[P]);b.shape.points=S;b.shape.redraw();0==B&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=
+Graph.prototype.createEdgeWipeAnimation=function(b,e){var g=b.absolutePoints.slice(),m=b.segments,v=b.length,p=g.length;return{execute:mxUtils.bind(this,function(A,G){if(null!=b.shape){var S=[g[0]];G=A/G;e||(G=1-G);for(var F=v*G,P=1;P<p;P++)if(F<=m[P-1]){S.push(new mxPoint(g[P-1].x+(g[P].x-g[P-1].x)*F/m[P-1],g[P-1].y+(g[P].y-g[P-1].y)*F/m[P-1]));break}else F-=m[P-1],S.push(g[P]);b.shape.points=S;b.shape.redraw();0==A&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=
b.text.node&&(b.text.node.style.opacity=G)}}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.points=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}};
Graph.prototype.createVertexWipeAnimation=function(b,e){var g=new mxRectangle.fromRectangle(b.shape.bounds);return{execute:mxUtils.bind(this,function(m,v){null!=b.shape&&(v=m/v,e||(v=1-v),b.shape.bounds=new mxRectangle(g.x,g.y,g.width*v,g.height),b.shape.redraw(),0==m&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=v))}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.bounds=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&&
-(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}};Graph.prototype.executeAnimations=function(b,e,g,m){g=null!=g?g:30;m=null!=m?m:30;var v=null,p=0,B=mxUtils.bind(this,function(){if(p==g||this.stoppingCustomActions){window.clearInterval(v);for(var G=0;G<b.length;G++)b[G].stop();null!=e&&e()}else for(G=0;G<b.length;G++)b[G].execute(p,g);p++});v=window.setInterval(B,m);B()};
+(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}};Graph.prototype.executeAnimations=function(b,e,g,m){g=null!=g?g:30;m=null!=m?m:30;var v=null,p=0,A=mxUtils.bind(this,function(){if(p==g||this.stoppingCustomActions){window.clearInterval(v);for(var G=0;G<b.length;G++)b[G].stop();null!=e&&e()}else for(G=0;G<b.length;G++)b[G].execute(p,g);p++});v=window.setInterval(A,m);A()};
Graph.prototype.getPageSize=function(){return this.pageVisible&&null!=this.pageFormat?new mxRectangle(0,0,this.pageFormat.width*this.pageScale,this.pageFormat.height*this.pageScale):this.scrollTileSize};
Graph.prototype.getPageLayout=function(b,e,g){b=null!=b?b:this.getGraphBounds();e=null!=e?e:this.view.translate;g=null!=g?g:this.view.scale;var m=this.getPageSize();if(0==b.width||0==b.height)return new mxRectangle(0,0,1,1);var v=Math.floor(Math.ceil(b.x/g-e.x)/m.width),p=Math.floor(Math.ceil(b.y/g-e.y)/m.height);return new mxRectangle(v,p,Math.ceil((Math.floor((b.x+b.width)/g)-e.x)/m.width)-v,Math.ceil((Math.floor((b.y+b.height)/g)-e.y)/m.height)-p)};
Graph.prototype.getDefaultTranslate=function(b){var e=this.getPagePadding(),g=this.getPageSize();return new mxPoint(e.x-b.x*g.width,e.y-b.y*g.height)};Graph.prototype.updateMinimumSize=function(){var b=this.getPageLayout(),e=this.getPagePadding(),g=this.getPageSize(),m=Math.ceil(2*e.x+b.width*g.width);b=Math.ceil(2*e.y+b.height*g.height);if(null==this.minimumGraphSize||this.minimumGraphSize.width!=m||this.minimumGraphSize.height!=b)this.minimumGraphSize=new mxRectangle(0,0,m,b)};
@@ -2392,32 +2407,32 @@ Graph.prototype.isSplitTarget=function(b,e,g){return!this.model.isEdge(e[0])&&!m
Graph.prototype.isLabelMovable=function(b){var e=this.getCurrentCellStyle(b);return!this.isCellLocked(b)&&(this.model.isEdge(b)&&this.edgeLabelsMovable||this.model.isVertex(b)&&(this.vertexLabelsMovable||"1"==mxUtils.getValue(e,"labelMovable","0")))};Graph.prototype.setGridSize=function(b){this.gridSize=b;this.fireEvent(new mxEventObject("gridSizeChanged"))};Graph.prototype.setDefaultParent=function(b){this.defaultParent=b;this.fireEvent(new mxEventObject("defaultParentChanged"))};
Graph.prototype.getClickableLinkForCell=function(b){do{var e=this.getLinkForCell(b);if(null!=e)return e;b=this.model.getParent(b)}while(null!=b);return null};Graph.prototype.getGlobalVariable=function(b){var e=null;"date"==b?e=(new Date).toLocaleDateString():"time"==b?e=(new Date).toLocaleTimeString():"timestamp"==b?e=(new Date).toLocaleString():"date{"==b.substring(0,5)&&(b=b.substring(5,b.length-1),e=this.formatDate(new Date,b));return e};
Graph.prototype.formatDate=function(b,e,g){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 m=this.dateFormatCache,v=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,p=/[^-+\dA-Z]/g,B=function(z,C){z=String(z);for(C=C||2;z.length<C;)z="0"+z;return z};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(b)||
-/\d/.test(b)||(e=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");e=String(m.masks[e]||e||m.masks["default"]);"UTC:"==e.slice(0,4)&&(e=e.slice(4),g=!0);var G=g?"getUTC":"get",S=b[G+"Date"](),F=b[G+"Day"](),P=b[G+"Month"](),R=b[G+"FullYear"](),T=b[G+"Hours"](),c=b[G+"Minutes"](),f=b[G+"Seconds"]();G=b[G+"Milliseconds"]();var k=g?0:b.getTimezoneOffset(),A={d:S,dd:B(S),ddd:m.i18n.dayNames[F],dddd:m.i18n.dayNames[F+7],m:P+1,mm:B(P+1),mmm:m.i18n.monthNames[P],mmmm:m.i18n.monthNames[P+
-12],yy:String(R).slice(2),yyyy:R,h:T%12||12,hh:B(T%12||12),H:T,HH:B(T),M:c,MM:B(c),s:f,ss:B(f),l:B(G,3),L:B(99<G?Math.round(G/10):G),t:12>T?"a":"p",tt:12>T?"am":"pm",T:12>T?"A":"P",TT:12>T?"AM":"PM",Z:g?"UTC":(String(b).match(v)||[""]).pop().replace(p,""),o:(0<k?"-":"+")+B(100*Math.floor(Math.abs(k)/60)+Math.abs(k)%60,4),S:["th","st","nd","rd"][3<S%10?0:(10!=S%100-S%10)*S%10]};return e.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(z){return z in A?A[z]:z.slice(1,
+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 m=this.dateFormatCache,v=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,p=/[^-+\dA-Z]/g,A=function(z,C){z=String(z);for(C=C||2;z.length<C;)z="0"+z;return z};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(b)||
+/\d/.test(b)||(e=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");e=String(m.masks[e]||e||m.masks["default"]);"UTC:"==e.slice(0,4)&&(e=e.slice(4),g=!0);var G=g?"getUTC":"get",S=b[G+"Date"](),F=b[G+"Day"](),P=b[G+"Month"](),R=b[G+"FullYear"](),T=b[G+"Hours"](),c=b[G+"Minutes"](),f=b[G+"Seconds"]();G=b[G+"Milliseconds"]();var k=g?0:b.getTimezoneOffset(),B={d:S,dd:A(S),ddd:m.i18n.dayNames[F],dddd:m.i18n.dayNames[F+7],m:P+1,mm:A(P+1),mmm:m.i18n.monthNames[P],mmmm:m.i18n.monthNames[P+
+12],yy:String(R).slice(2),yyyy:R,h:T%12||12,hh:A(T%12||12),H:T,HH:A(T),M:c,MM:A(c),s:f,ss:A(f),l:A(G,3),L:A(99<G?Math.round(G/10):G),t:12>T?"a":"p",tt:12>T?"am":"pm",T:12>T?"A":"P",TT:12>T?"AM":"PM",Z:g?"UTC":(String(b).match(v)||[""]).pop().replace(p,""),o:(0<k?"-":"+")+A(100*Math.floor(Math.abs(k)/60)+Math.abs(k)%60,4),S:["th","st","nd","rd"][3<S%10?0:(10!=S%100-S%10)*S%10]};return e.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(z){return z in B?B[z]:z.slice(1,
z.length-1)})};Graph.prototype.getLayerForCell=function(b){for(;null!=b&&!this.model.isLayer(b);)b=this.model.getParent(b);return b};Graph.prototype.getLayerForCells=function(b){var e=null;if(0<b.length){e=this.getLayerForCell(b[0]);for(var g=1;g<b.length;g++)if(!this.model.isAncestor(e,b[g])){e=null;break}}return e};
-Graph.prototype.createLayersDialog=function(b,e){var g=document.createElement("div");g.style.position="absolute";for(var m=this.getModel(),v=m.getChildCount(m.root),p=0;p<v;p++)mxUtils.bind(this,function(B){function G(){m.isVisible(B)?(P.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(F,75)):(P.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(F,25))}var S=this.convertValueToString(B)||mxResources.get("background")||"Background",F=document.createElement("div");F.style.overflow=
-"hidden";F.style.textOverflow="ellipsis";F.style.padding="2px";F.style.whiteSpace="nowrap";F.style.cursor="pointer";F.setAttribute("title",mxResources.get(m.isVisible(B)?"hideIt":"show",[S]));var P=document.createElement("img");P.setAttribute("draggable","false");P.setAttribute("align","absmiddle");P.setAttribute("border","0");P.style.position="relative";P.style.width="16px";P.style.padding="0px 6px 0 4px";e&&(P.style.filter="invert(100%)",P.style.top="-2px");F.appendChild(P);mxUtils.write(F,S);g.appendChild(F);
-mxEvent.addListener(F,"click",function(){m.setVisible(B,!m.isVisible(B));G();null!=b&&b(B)});G()})(m.getChildAt(m.root,p));return g};
-Graph.prototype.replacePlaceholders=function(b,e,g,m){m=[];if(null!=e){for(var v=0;match=this.placeholderPattern.exec(e);){var p=match[0];if(2<p.length&&"%label%"!=p&&"%tooltip%"!=p){var B=null;if(match.index>v&&"%"==e.charAt(match.index-1))B=p.substring(1);else{var G=p.substring(1,p.length-1),S={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==G)B=b.id;else if("width"===G.substring(0,5)&&this.model.isVertex(b)){var F=this.getCellGeometry(b);
-null!=F&&(B=F.width,5<G.length&&(B=Editor.toUnit(B,S[G.substring(6)])))}else if("height"==G.substring(0,6)&&this.model.isVertex(b))F=this.getCellGeometry(b),null!=F&&(B=F.height,6<G.length&&(B=Editor.toUnit(B,S[G.substring(7)])));else if("length"==G.substring(0,6)){for(F=b;null!=F&&!this.model.isEdge(F);)F=this.model.getParent(F);F=this.view.getState(F);null!=F&&(B=Math.round(F.length/this.view.scale),6<G.length&&(B=Editor.toUnit(B,S[G.substring(7)])))}else if(0>G.indexOf("{"))for(S=b;null==B&&null!=
-S;)null!=S.value&&"object"==typeof S.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(B=S.getAttribute(G+"_"+Graph.diagramLanguage)),null==B&&(B=S.hasAttribute(G)?null!=S.getAttribute(G)?S.getAttribute(G):"":null)),S=this.model.getParent(S);null==B&&(B=this.getGlobalVariable(G));null==B&&null!=g&&(B=g[G])}m.push(e.substring(v,match.index)+(null!=B?B:p));v=match.index+p.length}}m.push(e.substring(v))}return m.join("")};
+Graph.prototype.createLayersDialog=function(b,e){var g=document.createElement("div");g.style.position="absolute";for(var m=this.getModel(),v=m.getChildCount(m.root),p=0;p<v;p++)mxUtils.bind(this,function(A){function G(){m.isVisible(A)?(P.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(F,75)):(P.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(F,25))}var S=this.convertValueToString(A)||mxResources.get("background")||"Background",F=document.createElement("div");F.style.overflow=
+"hidden";F.style.textOverflow="ellipsis";F.style.padding="2px";F.style.whiteSpace="nowrap";F.style.cursor="pointer";F.setAttribute("title",mxResources.get(m.isVisible(A)?"hideIt":"show",[S]));var P=document.createElement("img");P.setAttribute("draggable","false");P.setAttribute("align","absmiddle");P.setAttribute("border","0");P.style.position="relative";P.style.width="16px";P.style.padding="0px 6px 0 4px";e&&(P.style.filter="invert(100%)",P.style.top="-2px");F.appendChild(P);mxUtils.write(F,S);g.appendChild(F);
+mxEvent.addListener(F,"click",function(){m.setVisible(A,!m.isVisible(A));G();null!=b&&b(A)});G()})(m.getChildAt(m.root,p));return g};
+Graph.prototype.replacePlaceholders=function(b,e,g,m){m=[];if(null!=e){for(var v=0;match=this.placeholderPattern.exec(e);){var p=match[0];if(2<p.length&&"%label%"!=p&&"%tooltip%"!=p){var A=null;if(match.index>v&&"%"==e.charAt(match.index-1))A=p.substring(1);else{var G=p.substring(1,p.length-1),S={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==G)A=b.id;else if("width"===G.substring(0,5)&&this.model.isVertex(b)){var F=this.getCellGeometry(b);
+null!=F&&(A=F.width,5<G.length&&(A=Editor.toUnit(A,S[G.substring(6)])))}else if("height"==G.substring(0,6)&&this.model.isVertex(b))F=this.getCellGeometry(b),null!=F&&(A=F.height,6<G.length&&(A=Editor.toUnit(A,S[G.substring(7)])));else if("length"==G.substring(0,6)){for(F=b;null!=F&&!this.model.isEdge(F);)F=this.model.getParent(F);F=this.view.getState(F);null!=F&&(A=Math.round(F.length/this.view.scale),6<G.length&&(A=Editor.toUnit(A,S[G.substring(7)])))}else if(0>G.indexOf("{"))for(S=b;null==A&&null!=
+S;)null!=S.value&&"object"==typeof S.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(A=S.getAttribute(G+"_"+Graph.diagramLanguage)),null==A&&(A=S.hasAttribute(G)?null!=S.getAttribute(G)?S.getAttribute(G):"":null)),S=this.model.getParent(S);null==A&&(A=this.getGlobalVariable(G));null==A&&null!=g&&(A=g[G])}m.push(e.substring(v,match.index)+(null!=A?A:p));v=match.index+p.length}}m.push(e.substring(v))}return m.join("")};
Graph.prototype.restoreSelection=function(b){if(null!=b&&0<b.length){for(var e=[],g=0;g<b.length;g++){var m=this.model.getCell(b[g].id);null!=m&&e.push(m)}this.setSelectionCells(e)}else this.clearSelection()};Graph.prototype.selectCellForEvent=function(b,e){mxEvent.isShiftDown(e)&&!this.isSelectionEmpty()&&this.selectTableRange(this.getSelectionCell(),b)||mxGraph.prototype.selectCellForEvent.apply(this,arguments)};
-Graph.prototype.selectTableRange=function(b,e){var g=!1;if(this.isTableCell(b)&&this.isTableCell(e)){var m=this.model.getParent(b),v=this.model.getParent(m),p=this.model.getParent(e);if(v==this.model.getParent(p)){b=m.getIndex(b);m=v.getIndex(m);var B=p.getIndex(e),G=v.getIndex(p);p=Math.max(m,G);e=Math.min(b,B);b=Math.max(b,B);B=[];for(m=Math.min(m,G);m<=p;m++){G=this.model.getChildAt(v,m);for(var S=e;S<=b;S++)B.push(this.model.getChildAt(G,S))}0<B.length&&(1<B.length||1<this.getSelectionCount()||
-!this.isCellSelected(B[0]))&&(this.setSelectionCells(B),g=!0)}}return g};
+Graph.prototype.selectTableRange=function(b,e){var g=!1;if(this.isTableCell(b)&&this.isTableCell(e)){var m=this.model.getParent(b),v=this.model.getParent(m),p=this.model.getParent(e);if(v==this.model.getParent(p)){b=m.getIndex(b);m=v.getIndex(m);var A=p.getIndex(e),G=v.getIndex(p);p=Math.max(m,G);e=Math.min(b,A);b=Math.max(b,A);A=[];for(m=Math.min(m,G);m<=p;m++){G=this.model.getChildAt(v,m);for(var S=e;S<=b;S++)A.push(this.model.getChildAt(G,S))}0<A.length&&(1<A.length||1<this.getSelectionCount()||
+!this.isCellSelected(A[0]))&&(this.setSelectionCells(A),g=!0)}}return g};
Graph.prototype.snapCellsToGrid=function(b,e){this.getModel().beginUpdate();try{for(var g=0;g<b.length;g++){var m=b[g],v=this.getCellGeometry(m);if(null!=v){v=v.clone();if(this.getModel().isVertex(m))v.x=Math.round(v.x/e)*e,v.y=Math.round(v.y/e)*e,v.width=Math.round(v.width/e)*e,v.height=Math.round(v.height/e)*e;else if(this.getModel().isEdge(m)&&null!=v.points)for(var p=0;p<v.points.length;p++)v.points[p].x=Math.round(v.points[p].x/e)*e,v.points[p].y=Math.round(v.points[p].y/e)*e;this.getModel().setGeometry(m,
v)}}}finally{this.getModel().endUpdate()}};Graph.prototype.removeChildCells=function(b){this.model.beginUpdate();try{for(var e=this.model.getChildCount(b);0<=e;e--)this.model.remove(this.model.getChildAt(b,e))}finally{this.model.endUpdate()}};
Graph.prototype.updateShapes=function(b,e,g){this.model.beginUpdate();try{var m=this.model.getStyle(b),v=g?this.stylesheet.getCellStyle(m,{},!1):null;null!=v&&null==v[mxConstants.STYLE_SHAPE]&&(this.model.isVertex(b)?v[mxConstants.STYLE_SHAPE]=this.stylesheet.getDefaultVertexStyle()[mxConstants.STYLE_SHAPE]:this.model.isEdge(b)&&(v[mxConstants.STYLE_SHAPE]=this.stylesheet.getDefaultEdgeStyle()[mxConstants.STYLE_SHAPE]));for(var p=0;p<e.length;p++){if(this.model.isVertex(b)&&this.model.isVertex(e[p])||
-this.model.isEdge(b)&&this.model.isEdge(e[p]))if(g){var B=this.model.getStyle(e[p]);if(null!=B){var G=B.split(";");0<G.length&&0>G[0].indexOf("=")&&(G=G.slice(1));this.model.setStyle(e[p],G.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[e[p]]);this.setCellStyles("points",null,[e[p]]);this.pasteStyle(v,[e[p]],null,!0)}else v=this.copyStyle(e[p]),this.model.setStyle(e[p],m),this.pasteStyle(v,[e[p]]);"1"==mxUtils.getValue(this.getCellStyle(e[p],!1),"composite","0")&&this.removeChildCells(e[p])}}finally{this.model.endUpdate()}};
+this.model.isEdge(b)&&this.model.isEdge(e[p]))if(g){var A=this.model.getStyle(e[p]);if(null!=A){var G=A.split(";");0<G.length&&0>G[0].indexOf("=")&&(G=G.slice(1));this.model.setStyle(e[p],G.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[e[p]]);this.setCellStyles("points",null,[e[p]]);this.pasteStyle(v,[e[p]],null,!0)}else v=this.copyStyle(e[p]),this.model.setStyle(e[p],m),this.pasteStyle(v,[e[p]]);"1"==mxUtils.getValue(this.getCellStyle(e[p],!1),"composite","0")&&this.removeChildCells(e[p])}}finally{this.model.endUpdate()}};
Graph.prototype.selectCellsForConnectVertex=function(b,e,g){2==b.length&&this.model.isVertex(b[1])?(this.setSelectionCell(b[1]),this.scrollCellToVisible(b[1]),null!=g&&(mxEvent.isTouchEvent(e)?g.update(g.getState(this.view.getState(b[1]))):g.reset())):this.setSelectionCells(b)};Graph.prototype.isCloneConnectSource=function(b){var e=null;null!=this.layoutManager&&(e=this.layoutManager.getLayout(this.model.getParent(b)));return this.isTableRow(b)||this.isTableCell(b)||null!=e&&e.constructor==mxStackLayout};
Graph.prototype.insertEdgeBeforeCell=function(b,e){for(var g=e;null!=g.parent&&null!=g.geometry&&g.geometry.relative&&g.parent!=b.parent;)g=this.model.getParent(g);null!=g&&null!=g.parent&&g.parent==b.parent&&(e=g.parent.getIndex(g),this.model.add(g.parent,b,e))};
-Graph.prototype.connectVertex=function(b,e,g,m,v,p,B,G){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var S=this.isCloneConnectSource(b),F=S?b:this.getCompositeParent(b),P=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(F.geometry.x,F.geometry.y);e==mxConstants.DIRECTION_NORTH?(P.x+=F.geometry.width/2,P.y-=g):e==
+Graph.prototype.connectVertex=function(b,e,g,m,v,p,A,G){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var S=this.isCloneConnectSource(b),F=S?b:this.getCompositeParent(b),P=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(F.geometry.x,F.geometry.y);e==mxConstants.DIRECTION_NORTH?(P.x+=F.geometry.width/2,P.y-=g):e==
mxConstants.DIRECTION_SOUTH?(P.x+=F.geometry.width/2,P.y+=F.geometry.height+g):(P.x=e==mxConstants.DIRECTION_WEST?P.x-g:P.x+(F.geometry.width+g),P.y+=F.geometry.height/2);var R=this.view.getState(this.model.getParent(b));g=this.view.scale;var T=this.view.translate;F=T.x*g;T=T.y*g;null!=R&&this.model.isVertex(R.cell)&&(F=R.x,T=R.y);this.model.isVertex(b.parent)&&b.geometry.relative&&(P.x+=b.parent.geometry.x,P.y+=b.parent.geometry.y);p=p?null:(new mxRectangle(F+P.x*g,T+P.y*g)).grow(40*g);p=null!=p?
-this.getCells(0,0,0,0,null,null,p,null,!0):null;R=this.view.getState(b);var c=null,f=null;if(null!=p){p=p.reverse();for(var k=0;k<p.length;k++)if(!this.isCellLocked(p[k])&&!this.model.isEdge(p[k])&&p[k]!=b)if(!this.model.isAncestor(b,p[k])&&this.isContainer(p[k])&&(null==c||p[k]==this.model.getParent(b)))c=p[k];else if(null==f&&this.isCellConnectable(p[k])&&!this.model.isAncestor(p[k],b)&&!this.isSwimlane(p[k])){var A=this.view.getState(p[k]);null==R||null==A||mxUtils.intersects(R,A)||(f=p[k])}}var z=
-!mxEvent.isShiftDown(m)||mxEvent.isControlDown(m)||v;z&&("1"!=urlParams.sketch||v)&&(e==mxConstants.DIRECTION_NORTH?P.y-=b.geometry.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=b.geometry.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-b.geometry.width/2:P.x+b.geometry.width/2);var C=[],I=f;f=c;v=mxUtils.bind(this,function(L){if(null==B||null!=L||null==f&&S){this.model.beginUpdate();try{if(null==I&&z){var K=this.getAbsoluteParent(null!=L?L:b);K=S?b:this.getCompositeParent(K);I=null!=L?L:this.duplicateCells([K],
+this.getCells(0,0,0,0,null,null,p,null,!0):null;R=this.view.getState(b);var c=null,f=null;if(null!=p){p=p.reverse();for(var k=0;k<p.length;k++)if(!this.isCellLocked(p[k])&&!this.model.isEdge(p[k])&&p[k]!=b)if(!this.model.isAncestor(b,p[k])&&this.isContainer(p[k])&&(null==c||p[k]==this.model.getParent(b)))c=p[k];else if(null==f&&this.isCellConnectable(p[k])&&!this.model.isAncestor(p[k],b)&&!this.isSwimlane(p[k])){var B=this.view.getState(p[k]);null==R||null==B||mxUtils.intersects(R,B)||(f=p[k])}}var z=
+!mxEvent.isShiftDown(m)||mxEvent.isControlDown(m)||v;z&&("1"!=urlParams.sketch||v)&&(e==mxConstants.DIRECTION_NORTH?P.y-=b.geometry.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=b.geometry.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-b.geometry.width/2:P.x+b.geometry.width/2);var C=[],I=f;f=c;v=mxUtils.bind(this,function(L){if(null==A||null!=L||null==f&&S){this.model.beginUpdate();try{if(null==I&&z){var K=this.getAbsoluteParent(null!=L?L:b);K=S?b:this.getCompositeParent(K);I=null!=L?L:this.duplicateCells([K],
!1)[0];null!=L&&this.addCells([I],this.model.getParent(b),null,null,null,!0);var O=this.getCellGeometry(I);null!=O&&(null!=L&&"1"==urlParams.sketch&&(e==mxConstants.DIRECTION_NORTH?P.y-=O.height/2:e==mxConstants.DIRECTION_SOUTH?P.y+=O.height/2:P.x=e==mxConstants.DIRECTION_WEST?P.x-O.width/2:P.x+O.width/2),O.x=P.x-O.width/2,O.y=P.y-O.height/2);null!=c?(this.addCells([I],c,null,null,null,!0),f=null):z&&!S&&this.addCells([I],this.getDefaultParent(),null,null,null,!0)}var da=mxEvent.isControlDown(m)&&
mxEvent.isShiftDown(m)&&z||null==f&&S?null:this.insertEdge(this.model.getParent(b),null,"",b,I,this.createCurrentEdgeStyle());null!=da&&(C.push(da),this.applyNewEdgeStyle(b,[da],e),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(da,b));if(null==f&&null!=I&&null!=b.parent&&S&&e==mxConstants.DIRECTION_WEST){var ea=b.parent.getIndex(b);this.model.add(b.parent,I,ea)}null==f&&null!=I&&C.push(I);null==I&&null!=da&&da.geometry.setTerminalPoint(P,!1);null!=da&&this.fireEvent(new mxEventObject("cellsInserted",
-"cells",[da]))}finally{this.model.endUpdate()}}if(null!=G)G(C);else return C});if(null==B||null!=I||!z||null==f&&S)return v(I);B(F+P.x*g,T+P.y*g,v)};
+"cells",[da]))}finally{this.model.endUpdate()}}if(null!=G)G(C);else return C});if(null==A||null!=I||!z||null==f&&S)return v(I);A(F+P.x*g,T+P.y*g,v)};
Graph.prototype.getIndexableText=function(b){b=null!=b?b:this.model.getDescendants(this.model.root);for(var e=document.createElement("div"),g=[],m,v=0;v<b.length;v++)if(m=b[v],this.model.isVertex(m)||this.model.isEdge(m))this.isHtmlLabel(m)?(e.innerHTML=Graph.sanitizeHtml(this.getLabel(m)),m=mxUtils.extractTextWithWhitespace([e])):m=this.getLabel(m),m=mxUtils.trim(m.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<m.length&&g.push(m);return g.join(" ")};
Graph.prototype.convertValueToString=function(b){var e=this.model.getValue(b);if(null!=e&&"object"==typeof e){var g=null;if(this.isReplacePlaceholders(b)&&null!=b.getAttribute("placeholder")){e=b.getAttribute("placeholder");for(var m=b;null==g&&null!=m;)null!=m.value&&"object"==typeof m.value&&(g=m.hasAttribute(e)?null!=m.getAttribute(e)?m.getAttribute(e):"":null),m=this.model.getParent(m)}else g=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(g=e.getAttribute("label_"+Graph.diagramLanguage)),
null==g&&(g=e.getAttribute("label")||"");return g||""}return mxGraph.prototype.convertValueToString.apply(this,arguments)};Graph.prototype.getLinksForState=function(b){return null!=b&&null!=b.text&&null!=b.text.node?b.text.node.getElementsByTagName("a"):null};Graph.prototype.getLinkForCell=function(b,e){return null!=b.value&&"object"==typeof b.value?(b=b.value.getAttribute("link"),e||(b=mxUtils.removeJavascriptProtocol(b)),b):null};
@@ -2428,23 +2443,23 @@ mxConstants.STYLE_IMAGE_BACKGROUND,b);this.replaceDefaultColor(e,mxConstants.STY
Graph.prototype.getDefaultColor=function(b,e,g){e="default"+e.charAt(0).toUpperCase()+e.substring(1);"invert"==b[e]&&(b=mxUtils.getLightDarkColor(g),g="light-dark("+b.dark+", "+b.light+")");return g};
Graph.prototype.setAdaptiveColors=function(b){this.adaptiveColors="default"==b?null:b;"1"==urlParams.embedInline?null!=this.container&&(this.container.style.colorScheme="none"==this.getAdaptiveColors()?"light":""):(b=this.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.colorScheme="none"==this.getAdaptiveColors()?"light":""))};Graph.prototype.getAdaptiveColors=function(){return null!=this.adaptiveColors?this.adaptiveColors:Graph.defaultAdaptiveColors};
Graph.prototype.updateAlternateBounds=function(b,e,g){if(null!=b&&null!=e&&null!=this.layoutManager&&null!=e.alternateBounds){var m=this.layoutManager.getLayout(this.model.getParent(b));null!=m&&m.constructor==mxStackLayout&&(m.horizontal?e.alternateBounds.height=0:e.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};Graph.prototype.isMoveCellsEvent=function(b,e){return mxEvent.isShiftDown(b)||"1"==mxUtils.getValue(e.style,"moveCells","0")};
-Graph.prototype.foldCells=function(b,e,g,m,v){e=null!=e?e:!1;null==g&&(g=this.getFoldableCells(this.getSelectionCells(),b));if(null!=g){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var p=0;p<g.length;p++){var B=this.view.getState(g[p]),G=this.getCellGeometry(g[p]);if(null!=B&&null!=G){var S=0,F=0;if(G.alternateBounds)S=G.width-G.alternateBounds.width,F=G.height-G.alternateBounds.height;else{var P=this.useCssTransforms?1:this.view.scale;
-S=Math.round(G.width-B.width/P);F=Math.round(G.height-B.height/P)}if(0!=F||0!=S){var R=this.model.getParent(g[p]),T=this.layoutManager.getLayout(R);null==T?null!=v&&this.isMoveCellsEvent(v,B)&&this.moveSiblings(B,R,S,F):null!=v&&mxEvent.isAltDown(v)||T.constructor!=mxStackLayout||T.resizeLast||this.resizeParentStacks(R,T,S,F)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(g)}};
-Graph.prototype.moveSiblings=function(b,e,g,m){this.model.beginUpdate();try{var v=this.getCellsBeyond(b.x,b.y,e,!0,!0);for(e=0;e<v.length;e++)if(v[e]!=b.cell){var p=this.view.getState(v[e]),B=this.getCellGeometry(v[e]);null!=p&&null!=B&&(B=B.clone(),B.translate(Math.round(g*Math.max(0,Math.min(1,(p.x-b.x)/b.width))),Math.round(m*Math.max(0,Math.min(1,(p.y-b.y)/b.height)))),this.model.setGeometry(v[e],B))}}finally{this.model.endUpdate()}};
-Graph.prototype.resizeParentStacks=function(b,e,g,m){if(null!=this.layoutManager&&null!=e&&e.constructor==mxStackLayout&&!e.resizeLast){this.model.beginUpdate();try{for(var v=e.horizontal;null!=b&&null!=e&&e.constructor==mxStackLayout&&e.horizontal==v&&!e.resizeLast;){var p=this.getCellGeometry(b),B=this.view.getState(b);null!=B&&null!=p&&(p=p.clone(),e.horizontal?p.width+=g+Math.min(0,B.width/this.view.scale-p.width):p.height+=m+Math.min(0,B.height/this.view.scale-p.height),this.model.setGeometry(b,
+Graph.prototype.foldCells=function(b,e,g,m,v){e=null!=e?e:!1;null==g&&(g=this.getFoldableCells(this.getSelectionCells(),b));if(null!=g){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var p=0;p<g.length;p++){var A=this.view.getState(g[p]),G=this.getCellGeometry(g[p]);if(null!=A&&null!=G){var S=0,F=0;if(G.alternateBounds)S=G.width-G.alternateBounds.width,F=G.height-G.alternateBounds.height;else{var P=this.useCssTransforms?1:this.view.scale;
+S=Math.round(G.width-A.width/P);F=Math.round(G.height-A.height/P)}if(0!=F||0!=S){var R=this.model.getParent(g[p]),T=this.layoutManager.getLayout(R);null==T?null!=v&&this.isMoveCellsEvent(v,A)&&this.moveSiblings(A,R,S,F):null!=v&&mxEvent.isAltDown(v)||T.constructor!=mxStackLayout||T.resizeLast||this.resizeParentStacks(R,T,S,F)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(g)}};
+Graph.prototype.moveSiblings=function(b,e,g,m){this.model.beginUpdate();try{var v=this.getCellsBeyond(b.x,b.y,e,!0,!0);for(e=0;e<v.length;e++)if(v[e]!=b.cell){var p=this.view.getState(v[e]),A=this.getCellGeometry(v[e]);null!=p&&null!=A&&(A=A.clone(),A.translate(Math.round(g*Math.max(0,Math.min(1,(p.x-b.x)/b.width))),Math.round(m*Math.max(0,Math.min(1,(p.y-b.y)/b.height)))),this.model.setGeometry(v[e],A))}}finally{this.model.endUpdate()}};
+Graph.prototype.resizeParentStacks=function(b,e,g,m){if(null!=this.layoutManager&&null!=e&&e.constructor==mxStackLayout&&!e.resizeLast){this.model.beginUpdate();try{for(var v=e.horizontal;null!=b&&null!=e&&e.constructor==mxStackLayout&&e.horizontal==v&&!e.resizeLast;){var p=this.getCellGeometry(b),A=this.view.getState(b);null!=A&&null!=p&&(p=p.clone(),e.horizontal?p.width+=g+Math.min(0,A.width/this.view.scale-p.width):p.height+=m+Math.min(0,A.height/this.view.scale-p.height),this.model.setGeometry(b,
p));b=this.model.getParent(b);e=this.layoutManager.getLayout(b)}}finally{this.model.endUpdate()}}};Graph.prototype.isContainer=function(b){var e=this.getCurrentCellStyle(b);return this.isSwimlane(b)?"0"!=e.container:"1"==e.container};Graph.prototype.isCellConnectable=function(b){var e=this.getCurrentCellStyle(b);return!this.isCellLocked(this.getLayerForCell(b))&&(null!=e.connectable?"0"!=e.connectable:mxGraph.prototype.isCellConnectable.apply(this,arguments))};
Graph.prototype.isLabelMovable=function(b){var e=this.getCurrentCellStyle(b);return null!=e.movableLabel?"0"!=e.movableLabel:mxGraph.prototype.isLabelMovable.apply(this,arguments)};Graph.prototype.selectAll=function(b){b=b||this.getDefaultParent();this.isCellLocked(b)||mxGraph.prototype.selectAll.apply(this,arguments)};Graph.prototype.selectCells=function(b,e,g){g=g||this.getDefaultParent();this.isCellLocked(g)||mxGraph.prototype.selectCells.apply(this,arguments)};
Graph.prototype.getSwimlaneAt=function(b,e,g){var m=mxGraph.prototype.getSwimlaneAt.apply(this,arguments);this.isCellLocked(m)&&(m=null);return m};Graph.prototype.isCellFoldable=function(b){var e=this.getCurrentCellStyle(b);return this.foldingEnabled&&"0"!=mxUtils.getValue(e,mxConstants.STYLE_RESIZABLE,"1")&&("1"==e.treeFolding||!this.isCellLocked(b)&&(this.isContainer(b)&&"0"!=e.collapsible||!this.isContainer(b)&&"1"==e.collapsible))};
Graph.prototype.reset=function(){this.isEditing()&&this.stopEditing(!0);this.escape();this.isSelectionEmpty()||this.clearSelection()};Graph.prototype.zoom=function(b,e){b=Math.max(.01,Math.min(this.view.scale*b,160))/this.view.scale;mxGraph.prototype.zoom.apply(this,arguments)};Graph.prototype.zoomIn=function(){.15>this.view.scale?this.zoom((this.view.scale+.01)/this.view.scale):this.zoom(Math.round(this.view.scale*this.zoomFactor*20)/20/this.view.scale)};
Graph.prototype.zoomOut=function(){.15>=this.view.scale?this.zoom((this.view.scale-.01)/this.view.scale):this.zoom(Math.round(1/this.zoomFactor*this.view.scale*20)/20/this.view.scale)};
-Graph.prototype.fitPages=function(b,e){var g=1;null==b&&(g=this.getPageLayout(),b=g.width,g=g.height);var m=this.pageScale,v=this.pageFormat,p=this.container.clientHeight-10,B=(this.container.clientWidth-10)/(b*v.width)/m;this.zoomTo(Math.floor(20*(e?B:Math.min(B,p/(g*v.height)/m)))/20);mxUtils.hasScrollbars(this.container)&&(g=this.getPagePadding(),this.container.scrollLeft=Math.min(g.x*this.view.scale,(this.container.scrollWidth-this.container.clientWidth)/2)-1,e||(this.container.scrollTop=2<=b?
+Graph.prototype.fitPages=function(b,e){var g=1;null==b&&(g=this.getPageLayout(),b=g.width,g=g.height);var m=this.pageScale,v=this.pageFormat,p=this.container.clientHeight-10,A=(this.container.clientWidth-10)/(b*v.width)/m;this.zoomTo(Math.floor(20*(e?A:Math.min(A,p/(g*v.height)/m)))/20);mxUtils.hasScrollbars(this.container)&&(g=this.getPagePadding(),this.container.scrollLeft=Math.min(g.x*this.view.scale,(this.container.scrollWidth-this.container.clientWidth)/2)-1,e||(this.container.scrollTop=2<=b?
Math.min(g.y,(this.container.scrollHeight-this.container.clientHeight)/2):g.y*this.view.scale-1))};
Graph.prototype.fitWindow=function(b,e){e=null!=e?e:10;var g=this.container.clientWidth-e,m=this.container.clientHeight-e;this.zoomTo(Math.floor(20*Math.min(g/b.width,m/b.height))/20);mxUtils.hasScrollbars(this.container)&&window.setTimeout(mxUtils.bind(this,function(){var v=this.view.translate;this.container.scrollLeft=(b.x+v.x)*this.view.scale-Math.max((g-b.width*this.view.scale)/2+e/2,0);this.container.scrollTop=(b.y+v.y)*this.view.scale-Math.max((m-b.height*this.view.scale)/2+e/2,0)}),0)};
Graph.prototype.convertValueToTooltip=function(b){var e=null;mxUtils.isNode(b.value)&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(e=b.value.getAttribute("tooltip_"+Graph.diagramLanguage)),null==e&&(e=b.value.getAttribute("tooltip")),null!=e&&(null!=e&&this.isReplacePlaceholders(b)&&(e=this.replacePlaceholders(b,e)),e=Graph.sanitizeHtml(e)));return e};
-Graph.prototype.getTooltipForCell=function(b){var e="";if(mxUtils.isNode(b.value)&&(e=this.convertValueToTooltip(b),null==e)){var g=this.builtInProperties;b=b.value.attributes;var m=[];e="";this.isEnabled()&&(g.push("linkTarget"),g.push("link"));for(var v=0;v<b.length;v++)(Graph.translateDiagram&&"label"==b[v].nodeName||0>mxUtils.indexOf(g,b[v].nodeName))&&0<b[v].nodeValue.length&&m.push({name:b[v].nodeName,value:b[v].nodeValue});m.sort(function(p,B){return p.name<B.name?-1:p.name>B.name?1:0});for(v=
+Graph.prototype.getTooltipForCell=function(b){var e="";if(mxUtils.isNode(b.value)&&(e=this.convertValueToTooltip(b),null==e)){var g=this.builtInProperties;b=b.value.attributes;var m=[];e="";this.isEnabled()&&(g.push("linkTarget"),g.push("link"));for(var v=0;v<b.length;v++)(Graph.translateDiagram&&"label"==b[v].nodeName||0>mxUtils.indexOf(g,b[v].nodeName))&&0<b[v].nodeValue.length&&m.push({name:b[v].nodeName,value:b[v].nodeValue});m.sort(function(p,A){return p.name<A.name?-1:p.name>A.name?1:0});for(v=
0;v<m.length;v++)"link"==m[v].name&&this.isCustomLink(m[v].value)||(e+=("link"!=m[v].name?"<b>"+mxUtils.htmlEntities(m[v].name)+":</b> ":"")+mxUtils.htmlEntities(m[v].value)+"\n");0<e.length&&(e=e.substring(0,e.length-1),mxClient.IS_SVG&&(e='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+e+"</div>"))}return e};
-Graph.prototype.addFlowAnimationToNode=function(b,e,g,m){if(null!=b&&null!=m){var v=b.getAttribute("stroke-dasharray");if(""==v||null==v){var p=String(mxUtils.getValue(e,mxConstants.STYLE_DASH_PATTERN,"8")).split(" ");v=1==mxUtils.getValue(e,mxConstants.STYLE_FIX_DASH,!1)||null==e.dashPattern?1:mxUtils.getNumber(e,mxConstants.STYLE_STROKEWIDTH,1);if(0<p.length)for(var B=0;B<p.length;B++)p[B]=Math.round(Number(p[B])*g*v*100)/100;b.setAttribute("stroke-dasharray",p.join(" "))}else p=v.split(" ");if(0<
-p.length){for(B=v=0;B<p.length;B++){var G=parseFloat(p[B]);isNaN(G)||(v+=parseFloat(p[B]))}0!=p.length%2&&(v*=2);g=Math.round(v/g/16*parseInt(mxUtils.getValue(e,"flowAnimationDuration",500)));p=mxUtils.getValue(e,"flowAnimationTimingFunction","linear");e=mxUtils.getValue(e,"flowAnimationDirection","normal");b.style.animation=m+" "+g+"ms "+mxUtils.htmlEntities(p)+" infinite "+mxUtils.htmlEntities(e);b.style.strokeDashoffset=v}}};
+Graph.prototype.addFlowAnimationToNode=function(b,e,g,m){if(null!=b&&null!=m){var v=b.getAttribute("stroke-dasharray");if(""==v||null==v){var p=String(mxUtils.getValue(e,mxConstants.STYLE_DASH_PATTERN,"8")).split(" ");v=1==mxUtils.getValue(e,mxConstants.STYLE_FIX_DASH,!1)||null==e.dashPattern?1:mxUtils.getNumber(e,mxConstants.STYLE_STROKEWIDTH,1);if(0<p.length)for(var A=0;A<p.length;A++)p[A]=Math.round(Number(p[A])*g*v*100)/100;b.setAttribute("stroke-dasharray",p.join(" "))}else p=v.split(" ");if(0<
+p.length){for(A=v=0;A<p.length;A++){var G=parseFloat(p[A]);isNaN(G)||(v+=parseFloat(p[A]))}0!=p.length%2&&(v*=2);g=Math.round(v/g/16*parseInt(mxUtils.getValue(e,"flowAnimationDuration",500)));p=mxUtils.getValue(e,"flowAnimationTimingFunction","linear");e=mxUtils.getValue(e,"flowAnimationDirection","normal");b.style.animation=m+" "+g+"ms "+mxUtils.htmlEntities(p)+" infinite "+mxUtils.htmlEntities(e);b.style.strokeDashoffset=v}}};
Graph.prototype.addFlowAnimationStyle=function(){var b=document.getElementsByTagName("head")[0];if(null!=b&&null==this.flowAnimationId){this.flowAnimationId="ge-flow-animation-"+Editor.guid();var e=document.createElement("style");e.innerHTML=this.createFlowAnimationCss(this.flowAnimationId);b.appendChild(e)}return this.flowAnimationId};Graph.prototype.createFlowAnimationCss=function(b){return"@keyframes "+b+" {\n to {\n stroke-dashoffset: 0;\n }\n}"};Graph.prototype.stringToBytes=function(b){return Graph.stringToBytes(b)};
Graph.prototype.bytesToString=function(b){return Graph.bytesToString(b)};Graph.prototype.compressNode=function(b){return Graph.compressNode(b)};Graph.prototype.compress=function(b,e){return Graph.compress(b,e)};Graph.prototype.decompress=function(b,e){return Graph.decompress(b,e)};Graph.prototype.zapGremlins=function(b){return Graph.zapGremlins(b)};HoverIcons=function(b){mxEventSource.call(this);this.graph=b;this.init()};mxUtils.extend(HoverIcons,mxEventSource);HoverIcons.prototype.arrowSpacing=2;
HoverIcons.prototype.updateDelay=500;HoverIcons.prototype.activationDelay=140;HoverIcons.prototype.currentState=null;HoverIcons.prototype.activeArrow=null;HoverIcons.prototype.inactiveOpacity=15;HoverIcons.prototype.cssCursor="copy";HoverIcons.prototype.checkCollisions=!0;HoverIcons.prototype.arrowFill="#29b6f2";
@@ -2473,8 +2488,8 @@ HoverIcons.prototype.repaint=function(){this.bbox=null;if(null!=this.currentStat
var e=this.graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentState.cell)&&(e=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.currentState.cell)));var g=null;null!=e&&(b.x-=e.horizontalOffset/2,b.y-=e.verticalOffset/2,b.width+=e.horizontalOffset,b.height+=e.verticalOffset,null!=e.rotationShape&&null!=e.rotationShape.node&&"hidden"!=e.rotationShape.node.style.visibility&&"none"!=e.rotationShape.node.style.display&&null!=e.rotationShape.boundingBox&&
(g=e.rotationShape.boundingBox));e=mxUtils.bind(this,function(G,S,F){if(null!=g){var P=new mxRectangle(S,F,G.clientWidth,G.clientHeight);mxUtils.intersects(P,g)&&(G==this.arrowUp?F-=P.y+P.height-g.y:G==this.arrowRight?S+=g.x+g.width-P.x:G==this.arrowDown?F+=g.y+g.height-P.y:G==this.arrowLeft&&(S-=P.x+P.width-g.x))}G.style.left=S+"px";G.style.top=F+"px";mxUtils.setOpacity(G,this.inactiveOpacity)});e(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(b.y-
this.triangleUp.height-this.tolerance));e(this.arrowRight,Math.round(b.x+b.width-this.tolerance),Math.round(this.currentState.getCenterY()-this.triangleRight.height/2-this.tolerance));e(this.arrowDown,parseInt(this.arrowUp.style.left),Math.round(b.y+b.height-this.tolerance));e(this.arrowLeft,Math.round(b.x-this.triangleLeft.width-this.tolerance),parseInt(this.arrowRight.style.top));if(this.checkCollisions){e=this.graph.getCellAt(b.x+b.width+this.triangleRight.width/2,this.currentState.getCenterY());
-var m=this.graph.getCellAt(b.x-this.triangleLeft.width/2,this.currentState.getCenterY()),v=this.graph.getCellAt(this.currentState.getCenterX(),b.y-this.triangleUp.height/2);b=this.graph.getCellAt(this.currentState.getCenterX(),b.y+b.height+this.triangleDown.height/2);null!=e&&e==m&&m==v&&v==b&&(b=v=m=e=null);var p=this.graph.getCellGeometry(this.currentState.cell),B=mxUtils.bind(this,function(G,S){var F=this.graph.model.isVertex(G)&&this.graph.getCellGeometry(G);null==G||this.graph.model.isAncestor(G,
-this.currentState.cell)||this.graph.isSwimlane(G)||!(null==F||null==p||F.height<3*p.height&&F.width<3*p.width)?S.style.visibility="visible":S.style.visibility="hidden"});B(e,this.arrowRight);B(m,this.arrowLeft);B(v,this.arrowUp);B(b,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
+var m=this.graph.getCellAt(b.x-this.triangleLeft.width/2,this.currentState.getCenterY()),v=this.graph.getCellAt(this.currentState.getCenterX(),b.y-this.triangleUp.height/2);b=this.graph.getCellAt(this.currentState.getCenterX(),b.y+b.height+this.triangleDown.height/2);null!=e&&e==m&&m==v&&v==b&&(b=v=m=e=null);var p=this.graph.getCellGeometry(this.currentState.cell),A=mxUtils.bind(this,function(G,S){var F=this.graph.model.isVertex(G)&&this.graph.getCellGeometry(G);null==G||this.graph.model.isAncestor(G,
+this.currentState.cell)||this.graph.isSwimlane(G)||!(null==F||null==p||F.height<3*p.height&&F.width<3*p.width)?S.style.visibility="visible":S.style.visibility="hidden"});A(e,this.arrowRight);A(m,this.arrowLeft);A(v,this.arrowUp);A(b,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
this.arrowRight.setAttribute("title",mxResources.get("plusTooltip")),this.arrowUp.setAttribute("title",mxResources.get("plusTooltip")),this.arrowDown.setAttribute("title",mxResources.get("plusTooltip"))):(this.arrowLeft.removeAttribute("title"),this.arrowRight.removeAttribute("title"),this.arrowUp.removeAttribute("title"),this.arrowDown.removeAttribute("title"))}else this.reset();null!=this.currentState&&(this.bbox=this.computeBoundingBox(),null!=this.bbox&&this.bbox.grow(10))}};
HoverIcons.prototype.computeBoundingBox=function(){var b=this.graph.model.isEdge(this.currentState.cell)?null:mxRectangle.fromRectangle(this.currentState);this.visitNodes(function(e){null!=e.parentNode&&(e=new mxRectangle(e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight),null==b?b=e:b.add(e))});return b};
HoverIcons.prototype.getState=function(b){if(null!=b)if(b=b.cell,this.graph.getModel().contains(b)){if(this.graph.getModel().isVertex(b)&&!this.graph.isCellConnectable(b)){var e=this.graph.getModel().getParent(b);this.graph.getModel().isVertex(e)&&this.graph.isCellConnectable(e)&&(b=e)}if(this.graph.isCellLocked(b)||this.graph.model.isEdge(b))b=null;b=this.graph.view.getState(b);null!=b&&null==b.style&&(b=null)}else b=null;return b};
@@ -2483,59 +2498,59 @@ window.setTimeout(mxUtils.bind(this,function(){this.isActive()||this.graph.isMou
b||null==this.bbox||null==e||null==g||!mxUtils.contains(this.bbox,e,g))&&(null!=b&&this.graph.isEnabled()?(this.removeNodes(),this.setCurrentState(b),this.repaint(),this.graph.connectionHandler.constraintHandler.currentFocus!=b&&this.graph.connectionHandler.constraintHandler.reset()):this.reset())}};
HoverIcons.prototype.setCurrentState=function(b){"eastwest"!=b.style.portConstraint&&(this.graph.container.appendChild(this.arrowUp),this.graph.container.appendChild(this.arrowDown));this.graph.container.appendChild(this.arrowRight);this.graph.container.appendChild(this.arrowLeft);this.currentState=b};
Graph.prototype.removeTextStyleForCell=function(b,e){var g=this.getCurrentCellStyle(b),m=!1;this.getModel().beginUpdate();try{if("1"==mxUtils.getValue(g,"html","0")){var v=this.convertValueToString(b);"0"!=mxUtils.getValue(g,"nl2Br","1")&&(v=v.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n"));v=Editor.convertHtmlToText(v);this.cellLabelChanged(b,v);m=!0}e&&(this.setCellStyles("fontSource",null,[b]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSIZE,
-null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return m};Graph.prototype.createParent=function(b,e,g,m,v){b=this.cloneCell(b);for(var p=0;p<g;p++){var B=this.cloneCell(e),G=this.getCellGeometry(B);null!=G&&(G.x+=p*m,G.y+=p*v);b.insert(B)}return b};
-Graph.prototype.createTable=function(b,e,g,m,v,p,B,G,S){g=null!=g?g:60;m=null!=m?m:40;p=null!=p?p:30;G=null!=G?G:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";S=null!=S?S:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
-null,null!=v?v:"",0,0,e*g,b*m+(null!=v?p:0),null!=B?B:"shape=table;startSize="+(null!=v?p:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,e*g,m,G),this.createVertex(null,null,"",0,0,g,m,S),e,g,0),b,0,m)};
-Graph.prototype.setTableValues=function(b,e,g){for(var m=this.model.getChildCells(b,!0),v=0;v<m.length;v++)if(null!=g&&(m[v].value=g[v]),null!=e)for(var p=this.model.getChildCells(m[v],!0),B=0;B<p.length;B++)null!=e[v][B]&&(p[B].value=e[v][B]);return b};
-Graph.prototype.createCrossFunctionalSwimlane=function(b,e,g,m,v,p,B,G,S){g=null!=g?g:120;m=null!=m?m:120;B=null!=B?B:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";G=null!=G?G:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
+null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return m};Graph.prototype.createParent=function(b,e,g,m,v){b=this.cloneCell(b);for(var p=0;p<g;p++){var A=this.cloneCell(e),G=this.getCellGeometry(A);null!=G&&(G.x+=p*m,G.y+=p*v);b.insert(A)}return b};
+Graph.prototype.createTable=function(b,e,g,m,v,p,A,G,S){g=null!=g?g:60;m=null!=m?m:40;p=null!=p?p:30;G=null!=G?G:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";S=null!=S?S:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
+null,null!=v?v:"",0,0,e*g,b*m+(null!=v?p:0),null!=A?A:"shape=table;startSize="+(null!=v?p:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,e*g,m,G),this.createVertex(null,null,"",0,0,g,m,S),e,g,0),b,0,m)};
+Graph.prototype.setTableValues=function(b,e,g){for(var m=this.model.getChildCells(b,!0),v=0;v<m.length;v++)if(null!=g&&(m[v].value=g[v]),null!=e)for(var p=this.model.getChildCells(m[v],!0),A=0;A<p.length;A++)null!=e[v][A]&&(p[A].value=e[v][A]);return b};
+Graph.prototype.createCrossFunctionalSwimlane=function(b,e,g,m,v,p,A,G,S){g=null!=g?g:120;m=null!=m?m:120;A=null!=A?A:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";G=null!=G?G:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
S=null!=S?S:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";v=this.createVertex(null,null,null!=v?v:"",0,0,e*g,b*m,null!=p?p:"shape=table;childLayout=tableLayout;"+(null==v?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");p=mxUtils.getValue(this.getCellStyle(v),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);v.geometry.width+=p;v.geometry.height+=
-p;B=this.createVertex(null,null,"",0,p,e*g+p,m,B);v.insert(this.createParent(B,this.createVertex(null,null,"",p,0,g,m,G),e,g,0));return 1<b?(B.geometry.y=m+p,this.createParent(v,this.createParent(B,this.createVertex(null,null,"",p,0,g,m,S),e,g,0),b-1,0,m)):v};
-Graph.prototype.visitTableCells=function(b,e){var g=null,m=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var v=0;v<m.length;v++){for(var p=this.getActualStartSize(m[v],!0),B=this.model.getChildCells(m[v],!0),G=this.getCellStyle(m[v],!0),S=null,F=[],P=0;P<B.length;P++){var R=this.getCellGeometry(B[P]),T={cell:B[P],rospan:1,colspan:1,row:v,col:P,geo:R};R=null!=R.alternateBounds?R.alternateBounds:R;T.point=new mxPoint(R.width+(null!=S?S.point.x:b.x+p.x),R.height+(null!=g&&null!=
-g[0]?g[0].point.y:b.y+p.y));T.actual=T;null!=g&&null!=g[P]&&1<g[P].rowspan?(T.rowspan=g[P].rowspan-1,T.colspan=g[P].colspan,T.actual=g[P].actual):null!=S&&1<S.colspan?(T.rowspan=S.rowspan,T.colspan=S.colspan-1,T.actual=S.actual):(S=this.getCurrentCellStyle(B[P],!0),null!=S&&(T.rowspan=parseInt(S.rowspan||1),T.colspan=parseInt(S.colspan||1)));S=1==mxUtils.getValue(G,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(G,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;e(T,B.length,
-m.length,b.x+(S?p.x:0),b.y+(S?p.y:0));F.push(T);S=T}g=F}};Graph.prototype.getTableLines=function(b,e,g){var m=[],v=[];(e||g)&&this.visitTableCells(b,mxUtils.bind(this,function(p,B,G,S,F){e&&p.row<G-1&&(null==m[p.row]&&(m[p.row]=[new mxPoint(S,p.point.y)]),1<p.rowspan&&m[p.row].push(null),m[p.row].push(p.point));g&&p.col<B-1&&(null==v[p.col]&&(v[p.col]=[new mxPoint(p.point.x,F)]),1<p.colspan&&v[p.col].push(null),v[p.col].push(p.point))}));return m.concat(v)};
+p;A=this.createVertex(null,null,"",0,p,e*g+p,m,A);v.insert(this.createParent(A,this.createVertex(null,null,"",p,0,g,m,G),e,g,0));return 1<b?(A.geometry.y=m+p,this.createParent(v,this.createParent(A,this.createVertex(null,null,"",p,0,g,m,S),e,g,0),b-1,0,m)):v};
+Graph.prototype.visitTableCells=function(b,e){var g=null,m=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var v=0;v<m.length;v++){for(var p=this.getActualStartSize(m[v],!0),A=this.model.getChildCells(m[v],!0),G=this.getCellStyle(m[v],!0),S=null,F=[],P=0;P<A.length;P++){var R=this.getCellGeometry(A[P]),T={cell:A[P],rospan:1,colspan:1,row:v,col:P,geo:R};R=null!=R.alternateBounds?R.alternateBounds:R;T.point=new mxPoint(R.width+(null!=S?S.point.x:b.x+p.x),R.height+(null!=g&&null!=
+g[0]?g[0].point.y:b.y+p.y));T.actual=T;null!=g&&null!=g[P]&&1<g[P].rowspan?(T.rowspan=g[P].rowspan-1,T.colspan=g[P].colspan,T.actual=g[P].actual):null!=S&&1<S.colspan?(T.rowspan=S.rowspan,T.colspan=S.colspan-1,T.actual=S.actual):(S=this.getCurrentCellStyle(A[P],!0),null!=S&&(T.rowspan=parseInt(S.rowspan||1),T.colspan=parseInt(S.colspan||1)));S=1==mxUtils.getValue(G,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(G,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;e(T,A.length,
+m.length,b.x+(S?p.x:0),b.y+(S?p.y:0));F.push(T);S=T}g=F}};Graph.prototype.getTableLines=function(b,e,g){var m=[],v=[];(e||g)&&this.visitTableCells(b,mxUtils.bind(this,function(p,A,G,S,F){e&&p.row<G-1&&(null==m[p.row]&&(m[p.row]=[new mxPoint(S,p.point.y)]),1<p.rowspan&&m[p.row].push(null),m[p.row].push(p.point));g&&p.col<A-1&&(null==v[p.col]&&(v[p.col]=[new mxPoint(p.point.x,F)]),1<p.colspan&&v[p.col].push(null),v[p.col].push(p.point))}));return m.concat(v)};
Graph.prototype.isTableCell=function(b){return this.model.isVertex(b)&&this.isTableRow(this.model.getParent(b))};Graph.prototype.isTableRow=function(b){return this.model.isVertex(b)&&this.isTable(this.model.getParent(b))};Graph.prototype.isTable=function(b){b=this.getCellStyle(b);return null!=b&&"tableLayout"==b.childLayout};Graph.prototype.isStack=function(b){b=this.getCellStyle(b);return null!=b&&"stackLayout"==b.childLayout};
Graph.prototype.isStackChild=function(b){return this.model.isVertex(b)&&this.isStack(this.model.getParent(b))};
-Graph.prototype.setTableRowHeight=function(b,e,g){g=null!=g?g:!0;var m=this.getModel();m.beginUpdate();try{var v=this.getCellGeometry(b);if(null!=v){v=v.clone();v.height+=e;m.setGeometry(b,v);var p=m.getParent(b),B=m.getChildCells(p,!0);if(!g){var G=mxUtils.indexOf(B,b);if(G<B.length-1){var S=B[G+1],F=this.getCellGeometry(S);null!=F&&(F=F.clone(),F.y+=e,F.height-=e,m.setGeometry(S,F))}}var P=this.getCellGeometry(p);null!=P&&(g||(g=b==B[B.length-1]),g&&(P=P.clone(),P.height+=e,m.setGeometry(p,P)))}}finally{m.endUpdate()}};
-Graph.prototype.setTableColumnWidth=function(b,e,g){g=null!=g?g:!1;var m=this.getModel(),v=m.getParent(b),p=m.getParent(v),B=m.getChildCells(v,!0);b=mxUtils.indexOf(B,b);var G=b==B.length-1;m.beginUpdate();try{for(var S=m.getChildCells(p,!0),F=0;F<S.length;F++){v=S[F];B=m.getChildCells(v,!0);var P=B[b],R=this.getCellGeometry(P);null!=R&&(R=R.clone(),R.width+=e,null!=R.alternateBounds&&(R.alternateBounds.width+=e),m.setGeometry(P,R));b<B.length-1&&(P=B[b+1],R=this.getCellGeometry(P),null!=R&&(R=R.clone(),
+Graph.prototype.setTableRowHeight=function(b,e,g){g=null!=g?g:!0;var m=this.getModel();m.beginUpdate();try{var v=this.getCellGeometry(b);if(null!=v){v=v.clone();v.height+=e;m.setGeometry(b,v);var p=m.getParent(b),A=m.getChildCells(p,!0);if(!g){var G=mxUtils.indexOf(A,b);if(G<A.length-1){var S=A[G+1],F=this.getCellGeometry(S);null!=F&&(F=F.clone(),F.y+=e,F.height-=e,m.setGeometry(S,F))}}var P=this.getCellGeometry(p);null!=P&&(g||(g=b==A[A.length-1]),g&&(P=P.clone(),P.height+=e,m.setGeometry(p,P)))}}finally{m.endUpdate()}};
+Graph.prototype.setTableColumnWidth=function(b,e,g){g=null!=g?g:!1;var m=this.getModel(),v=m.getParent(b),p=m.getParent(v),A=m.getChildCells(v,!0);b=mxUtils.indexOf(A,b);var G=b==A.length-1;m.beginUpdate();try{for(var S=m.getChildCells(p,!0),F=0;F<S.length;F++){v=S[F];A=m.getChildCells(v,!0);var P=A[b],R=this.getCellGeometry(P);null!=R&&(R=R.clone(),R.width+=e,null!=R.alternateBounds&&(R.alternateBounds.width+=e),m.setGeometry(P,R));b<A.length-1&&(P=A[b+1],R=this.getCellGeometry(P),null!=R&&(R=R.clone(),
R.x+=e,g||(R.width-=e,null!=R.alternateBounds&&(R.alternateBounds.width-=e)),m.setGeometry(P,R)))}if(G||g){var T=this.getCellGeometry(p);null!=T&&(T=T.clone(),T.width+=e,m.setGeometry(p,T))}null!=this.layoutManager&&this.layoutManager.executeLayout(p)}finally{m.endUpdate()}};function TableLayout(b){mxGraphLayout.call(this,b)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
TableLayout.prototype.isVertexIgnored=function(b){return!this.graph.getModel().isVertex(b)||!this.graph.isCellVisible(b)};TableLayout.prototype.getSize=function(b,e){for(var g=0,m=0;m<b.length;m++)if(!this.isVertexIgnored(b[m])){var v=this.graph.getCellGeometry(b[m]);null!=v&&(g+=e?v.width:v.height)}return g};
-TableLayout.prototype.getRowLayout=function(b,e){var g=this.graph.model.getChildCells(b,!0),m=this.graph.getActualStartSize(b,!0);b=this.getSize(g,!0);e=e-m.x-m.width;var v=[];m=m.x;for(var p=0;p<g.length;p++){var B=this.graph.getCellGeometry(g[p]);null!=B&&(m+=(null!=B.alternateBounds?B.alternateBounds.width:B.width)*e/b,v.push(Math.round(m)))}return v};
-TableLayout.prototype.layoutRow=function(b,e,g,m){var v=this.graph.getModel(),p=v.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var B=b.x,G=0;null!=e&&(e=e.slice(),e.splice(0,0,b.x));for(var S=0;S<p.length;S++){var F=this.graph.getCellGeometry(p[S]);null!=F&&(F=F.clone(),F.y=b.y,F.height=g-b.y-b.height,null!=e?(F.x=e[S],F.width=e[S+1]-F.x,S==p.length-1&&S<e.length-2&&(F.width=m-F.x-b.x-b.width)):(F.x=B,B+=F.width,S==p.length-1?F.width=m-b.x-b.width-G:G+=F.width),F.alternateBounds=new mxRectangle(0,
+TableLayout.prototype.getRowLayout=function(b,e){var g=this.graph.model.getChildCells(b,!0),m=this.graph.getActualStartSize(b,!0);b=this.getSize(g,!0);e=e-m.x-m.width;var v=[];m=m.x;for(var p=0;p<g.length;p++){var A=this.graph.getCellGeometry(g[p]);null!=A&&(m+=(null!=A.alternateBounds?A.alternateBounds.width:A.width)*e/b,v.push(Math.round(m)))}return v};
+TableLayout.prototype.layoutRow=function(b,e,g,m){var v=this.graph.getModel(),p=v.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var A=b.x,G=0;null!=e&&(e=e.slice(),e.splice(0,0,b.x));for(var S=0;S<p.length;S++){var F=this.graph.getCellGeometry(p[S]);null!=F&&(F=F.clone(),F.y=b.y,F.height=g-b.y-b.height,null!=e?(F.x=e[S],F.width=e[S+1]-F.x,S==p.length-1&&S<e.length-2&&(F.width=m-F.x-b.x-b.width)):(F.x=A,A+=F.width,S==p.length-1?F.width=m-b.x-b.width-G:G+=F.width),F.alternateBounds=new mxRectangle(0,
0,F.width,F.height),v.setGeometry(p[S],F))}return G};
-TableLayout.prototype.execute=function(b){if(null!=b){var e=this.graph.getActualStartSize(b,!0),g=this.graph.getCellGeometry(b),m=this.graph.getCellStyle(b),v="1"==mxUtils.getValue(m,"resizeLastRow","0"),p="1"==mxUtils.getValue(m,"resizeLast","0");m="1"==mxUtils.getValue(m,"fixedRows","0");var B=this.graph.getModel(),G=0;B.beginUpdate();try{for(var S=g.height-e.y-e.height,F=g.width-e.x-e.width,P=B.getChildCells(b,!0),R=0;R<P.length;R++)B.setVisible(P[R],!0);var T=this.getSize(P,!1);if(0<S&&0<F&&0<
-P.length&&0<T){if(v){var c=this.graph.getCellGeometry(P[P.length-1]);null!=c&&(c=c.clone(),c.height=S-T+c.height,B.setGeometry(P[P.length-1],c))}var f=p?null:this.getRowLayout(P[0],F),k=[],A=e.y;for(R=0;R<P.length;R++)c=this.graph.getCellGeometry(P[R]),null!=c&&(c=c.clone(),c.x=e.x,c.width=F,c.y=Math.round(A),A=v||m?A+c.height:A+c.height/T*S,c.height=Math.round(A)-c.y,B.setGeometry(P[R],c)),G=Math.max(G,this.layoutRow(P[R],f,c.height,F,k));m&&S<T&&(g=g.clone(),g.height=A+e.height,B.setGeometry(b,
-g));p&&F<G+Graph.minTableColumnWidth&&(g=g.clone(),g.width=G+e.width+e.x+Graph.minTableColumnWidth,B.setGeometry(b,g));this.graph.visitTableCells(b,mxUtils.bind(this,function(z){B.setVisible(z.cell,z.actual.cell==z.cell);if(z.actual.cell!=z.cell){if(z.actual.row==z.row){var C=null!=z.geo.alternateBounds?z.geo.alternateBounds:z.geo;z.actual.geo.width+=C.width}z.actual.col==z.col&&(C=null!=z.geo.alternateBounds?z.geo.alternateBounds:z.geo,z.actual.geo.height+=C.height)}}))}else for(R=0;R<P.length;R++)B.setVisible(P[R],
-!1)}finally{B.endUpdate()}}};
+TableLayout.prototype.execute=function(b){if(null!=b){var e=this.graph.getActualStartSize(b,!0),g=this.graph.getCellGeometry(b),m=this.graph.getCellStyle(b),v="1"==mxUtils.getValue(m,"resizeLastRow","0"),p="1"==mxUtils.getValue(m,"resizeLast","0");m="1"==mxUtils.getValue(m,"fixedRows","0");var A=this.graph.getModel(),G=0;A.beginUpdate();try{for(var S=g.height-e.y-e.height,F=g.width-e.x-e.width,P=A.getChildCells(b,!0),R=0;R<P.length;R++)A.setVisible(P[R],!0);var T=this.getSize(P,!1);if(0<S&&0<F&&0<
+P.length&&0<T){if(v){var c=this.graph.getCellGeometry(P[P.length-1]);null!=c&&(c=c.clone(),c.height=S-T+c.height,A.setGeometry(P[P.length-1],c))}var f=p?null:this.getRowLayout(P[0],F),k=[],B=e.y;for(R=0;R<P.length;R++)c=this.graph.getCellGeometry(P[R]),null!=c&&(c=c.clone(),c.x=e.x,c.width=F,c.y=Math.round(B),B=v||m?B+c.height:B+c.height/T*S,c.height=Math.round(B)-c.y,A.setGeometry(P[R],c)),G=Math.max(G,this.layoutRow(P[R],f,c.height,F,k));m&&S<T&&(g=g.clone(),g.height=B+e.height,A.setGeometry(b,
+g));p&&F<G+Graph.minTableColumnWidth&&(g=g.clone(),g.width=G+e.width+e.x+Graph.minTableColumnWidth,A.setGeometry(b,g));this.graph.visitTableCells(b,mxUtils.bind(this,function(z){A.setVisible(z.cell,z.actual.cell==z.cell);if(z.actual.cell!=z.cell){if(z.actual.row==z.row){var C=null!=z.geo.alternateBounds?z.geo.alternateBounds:z.geo;z.actual.geo.width+=C.width}z.actual.col==z.col&&(C=null!=z.geo.alternateBounds?z.geo.alternateBounds:z.geo,z.actual.geo.height+=C.height)}}))}else for(R=0;R<P.length;R++)A.setVisible(P[R],
+!1)}finally{A.endUpdate()}}};
(function(){var b=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){b.apply(this,arguments);this.validEdges=[]};var e=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(R,T){T=null!=T?T:!0;var c=this.getState(R);null!=c&&T&&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=e.apply(this,
arguments);null!=c&&T&&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 R=null!=this.node?this.node.getElementsByTagName("path"):null;if(null!=
R)for(var T=0;T<R.length;T++)if("hidden"!=R[T].getAttribute("visibility"))return R[T];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 g=mxShape.prototype.paint;mxShape.prototype.paint=function(R){g.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var m=mxShape.prototype.createSvgCanvas;
mxShape.prototype.createSvgCanvas=function(R){R=m.apply(this,arguments);null!=this.state&&(R.adaptiveColors=this.state.view.graph.getAdaptiveColors());return R};var v=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(R,T){return v.apply(this,arguments)||null!=R.routedPoints&&null!=T.routedPoints&&!mxUtils.equalPoints(T.routedPoints,R.routedPoints)};var p=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(R){p.apply(this,arguments);
-this.graph.model.isEdge(R.cell)&&1!=R.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(R)};mxGraphView.prototype.updateLineJumps=function(R){var T=R.absolutePoints;if(Graph.lineJumpsEnabled){var c=null!=R.routedPoints,f=null;if(null!=T&&null!=this.validEdges&&"none"!==mxUtils.getValue(R.style,"jumpStyle","none")){var k=function(Y,fa,Z){var l=new mxPoint(fa,Z);l.type=Y;f.push(l);l=null!=R.routedPoints?R.routedPoints[f.length-1]:null;return null==l||l.type!=Y||l.x!=fa||l.y!=Z},A=.5*this.scale;
-c=!1;f=[];for(var z=0;z<T.length-1;z++){for(var C=T[z+1],I=T[z],L=[],K=T[z+2];z<T.length-2&&mxUtils.ptSegDistSq(I.x,I.y,K.x,K.y,C.x,C.y)<1*this.scale*this.scale;)C=K,z++,K=T[z+2];c=k(0,I.x,I.y)||c;for(var O=0;O<this.validEdges.length;O++){var da=this.validEdges[O],ea=da.absolutePoints;if(null!=ea&&mxUtils.intersects(R,da)&&"1"!=da.style.noJump){var ca=null;for(da=0;da<ea.length-1;da++){var W=ea[da+1],ma=ea[da];for(K=ea[da+2];da<ea.length-2&&mxUtils.ptSegDistSq(ma.x,ma.y,K.x,K.y,W.x,W.y)<1*this.scale*
-this.scale;)W=K,da++,K=ea[da+2];var la=mxUtils.intersection(I.x,I.y,C.x,C.y,ma.x,ma.y,W.x,W.y);if(null!=la&&(Math.abs(la.x-I.x)>A||Math.abs(la.y-I.y)>A)&&(Math.abs(la.x-C.x)>A||Math.abs(la.y-C.y)>A)&&(null==ca||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,ca.x,ca.y)>A||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,ma.x,ma.y)>A)&&(null==K||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,K.x,K.y)>A||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,W.x,W.y)>A)){K=la.x-I.x;ca=la.y-I.y;la={distSq:K*K+ca*ca,x:la.x,y:la.y};for(K=0;K<L.length;K++)if(L[K].distSq>
-la.distSq){L.splice(K,0,la);la=null;break}null==la||0!=L.length&&L[L.length-1].x===la.x&&L[L.length-1].y===la.y||L.push(la)}ca=ma}}}for(da=0;da<L.length;da++)c=k(1,L[da].x,L[da].y)||c}la=T[T.length-1];c=k(0,la.x,la.y)||c}R.routedPoints=f;return c}return!1};var B=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(R,T,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)B.apply(this,
-arguments);else{var f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,k=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,A=mxUtils.getValue(this.style,"jumpStyle","none"),z=!0,C=null,I=null,L=[],K=null;R.begin();for(var O=0;O<this.state.routedPoints.length;O++){var da=this.state.routedPoints[O],ea=new mxPoint(da.x/this.scale,da.y/this.scale);0==O?ea=T[0]:O==this.state.routedPoints.length-1&&(ea=T[T.length-1]);var ca=!1;
-if(null!=C&&1==da.type){var W=this.state.routedPoints[O+1];da=W.x/this.scale-ea.x;W=W.y/this.scale-ea.y;da=da*da+W*W;null==K&&(K=new mxPoint(ea.x-C.x,ea.y-C.y),I=Math.sqrt(K.x*K.x+K.y*K.y),0<I?(K.x=K.x*k/I,K.y=K.y*k/I):K=null);da>k*k&&0<I&&(da=C.x-ea.x,W=C.y-ea.y,da=da*da+W*W,da>k*k&&(ca=new mxPoint(ea.x-K.x,ea.y-K.y),da=new mxPoint(ea.x+K.x,ea.y+K.y),L.push(ca),this.addPoints(R,L,c,f,!1,null,z),L=0>Math.round(K.x)||0==Math.round(K.x)&&0>=Math.round(K.y)?1:-1,z=!1,"sharp"==A?(R.lineTo(ca.x-K.y*L,
-ca.y+K.x*L),R.lineTo(da.x-K.y*L,da.y+K.x*L),R.lineTo(da.x,da.y)):"line"==A?(R.moveTo(ca.x+K.y*L,ca.y-K.x*L),R.lineTo(ca.x-K.y*L,ca.y+K.x*L),R.moveTo(da.x-K.y*L,da.y+K.x*L),R.lineTo(da.x+K.y*L,da.y-K.x*L),R.moveTo(da.x,da.y)):"arc"==A?(L*=1.3,R.curveTo(ca.x-K.y*L,ca.y+K.x*L,da.x-K.y*L,da.y+K.x*L,da.x,da.y)):(R.moveTo(da.x,da.y),z=!0),L=[da],ca=!0))}else K=null;ca||(L.push(ea),C=ea)}this.addPoints(R,L,c,f,!1,null,z);R.stroke()}};var G=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=
-function(R,T,c,f){return null!=T&&"centerPerimeter"==T.style[mxConstants.STYLE_PERIMETER]?new mxPoint(T.getCenterX(),T.getCenterY()):G.apply(this,arguments)};var S=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(R,T,c,f){if(null==T||null==R||"1"!=T.style.snapToPoint&&"1"!=R.style.snapToPoint)S.apply(this,arguments);else{T=this.getTerminalPort(R,T,f);var k=this.getNextPoint(R,c,f),A=this.graph.isOrthogonal(R),z=mxUtils.toRadians(Number(T.style[mxConstants.STYLE_ROTATION]||
-"0")),C=new mxPoint(T.getCenterX(),T.getCenterY());if(0!=z){var I=Math.cos(-z),L=Math.sin(-z);k=mxUtils.getRotatedPoint(k,I,L,C)}I=parseFloat(R.style[mxConstants.STYLE_PERIMETER_SPACING]||0);I+=parseFloat(R.style[f?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);k=this.getPerimeterPoint(T,k,0==z&&A,I);0!=z&&(I=Math.cos(z),L=Math.sin(z),k=mxUtils.getRotatedPoint(k,I,L,C));R.setAbsoluteTerminalPoint(this.snapToAnchorPoint(R,T,c,f,k),f)}};mxGraphView.prototype.snapToAnchorPoint=
-function(R,T,c,f,k){if(null!=T&&null!=R){R=this.graph.getAllConnectionConstraints(T);f=c=null;if(null!=R)for(var A=0;A<R.length;A++){var z=this.graph.getConnectionPoint(T,R[A]);if(null!=z){var C=(z.x-k.x)*(z.x-k.x)+(z.y-k.y)*(z.y-k.y);if(null==f||C<f)c=z,f=C}}null!=c&&(k=c)}return k};var F=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(R,T,c){var f=F.apply(this,arguments);"1"==R.getAttribute("placeholders")&&null!=c.state&&(f=c.state.view.graph.replacePlaceholders(c.state.cell,
+this.graph.model.isEdge(R.cell)&&1!=R.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(R)};mxGraphView.prototype.updateLineJumps=function(R){var T=R.absolutePoints;if(Graph.lineJumpsEnabled){var c=null!=R.routedPoints,f=null;if(null!=T&&null!=this.validEdges&&"none"!==mxUtils.getValue(R.style,"jumpStyle","none")){var k=function(Y,fa,Z){var l=new mxPoint(fa,Z);l.type=Y;f.push(l);l=null!=R.routedPoints?R.routedPoints[f.length-1]:null;return null==l||l.type!=Y||l.x!=fa||l.y!=Z},B=.5*this.scale;
+c=!1;f=[];for(var z=0;z<T.length-1;z++){for(var C=T[z+1],I=T[z],L=[],K=T[z+2];z<T.length-2&&mxUtils.ptSegDistSq(I.x,I.y,K.x,K.y,C.x,C.y)<1*this.scale*this.scale;)C=K,z++,K=T[z+2];c=k(0,I.x,I.y)||c;for(var O=0;O<this.validEdges.length;O++){var da=this.validEdges[O],ea=da.absolutePoints;if(null!=ea&&mxUtils.intersects(R,da)&&"1"!=da.style.noJump){var ca=null;for(da=0;da<ea.length-1;da++){var V=ea[da+1],ma=ea[da];for(K=ea[da+2];da<ea.length-2&&mxUtils.ptSegDistSq(ma.x,ma.y,K.x,K.y,V.x,V.y)<1*this.scale*
+this.scale;)V=K,da++,K=ea[da+2];var la=mxUtils.intersection(I.x,I.y,C.x,C.y,ma.x,ma.y,V.x,V.y);if(null!=la&&(Math.abs(la.x-I.x)>B||Math.abs(la.y-I.y)>B)&&(Math.abs(la.x-C.x)>B||Math.abs(la.y-C.y)>B)&&(null==ca||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,ca.x,ca.y)>B||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,ma.x,ma.y)>B)&&(null==K||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,K.x,K.y)>B||mxUtils.ptLineDist(I.x,I.y,C.x,C.y,V.x,V.y)>B)){K=la.x-I.x;ca=la.y-I.y;la={distSq:K*K+ca*ca,x:la.x,y:la.y};for(K=0;K<L.length;K++)if(L[K].distSq>
+la.distSq){L.splice(K,0,la);la=null;break}null==la||0!=L.length&&L[L.length-1].x===la.x&&L[L.length-1].y===la.y||L.push(la)}ca=ma}}}for(da=0;da<L.length;da++)c=k(1,L[da].x,L[da].y)||c}la=T[T.length-1];c=k(0,la.x,la.y)||c}R.routedPoints=f;return c}return!1};var A=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(R,T,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)A.apply(this,
+arguments);else{var f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,k=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,B=mxUtils.getValue(this.style,"jumpStyle","none"),z=!0,C=null,I=null,L=[],K=null;R.begin();for(var O=0;O<this.state.routedPoints.length;O++){var da=this.state.routedPoints[O],ea=new mxPoint(da.x/this.scale,da.y/this.scale);0==O?ea=T[0]:O==this.state.routedPoints.length-1&&(ea=T[T.length-1]);var ca=!1;
+if(null!=C&&1==da.type){var V=this.state.routedPoints[O+1];da=V.x/this.scale-ea.x;V=V.y/this.scale-ea.y;da=da*da+V*V;null==K&&(K=new mxPoint(ea.x-C.x,ea.y-C.y),I=Math.sqrt(K.x*K.x+K.y*K.y),0<I?(K.x=K.x*k/I,K.y=K.y*k/I):K=null);da>k*k&&0<I&&(da=C.x-ea.x,V=C.y-ea.y,da=da*da+V*V,da>k*k&&(ca=new mxPoint(ea.x-K.x,ea.y-K.y),da=new mxPoint(ea.x+K.x,ea.y+K.y),L.push(ca),this.addPoints(R,L,c,f,!1,null,z),L=0>Math.round(K.x)||0==Math.round(K.x)&&0>=Math.round(K.y)?1:-1,z=!1,"sharp"==B?(R.lineTo(ca.x-K.y*L,
+ca.y+K.x*L),R.lineTo(da.x-K.y*L,da.y+K.x*L),R.lineTo(da.x,da.y)):"line"==B?(R.moveTo(ca.x+K.y*L,ca.y-K.x*L),R.lineTo(ca.x-K.y*L,ca.y+K.x*L),R.moveTo(da.x-K.y*L,da.y+K.x*L),R.lineTo(da.x+K.y*L,da.y-K.x*L),R.moveTo(da.x,da.y)):"arc"==B?(L*=1.3,R.curveTo(ca.x-K.y*L,ca.y+K.x*L,da.x-K.y*L,da.y+K.x*L,da.x,da.y)):(R.moveTo(da.x,da.y),z=!0),L=[da],ca=!0))}else K=null;ca||(L.push(ea),C=ea)}this.addPoints(R,L,c,f,!1,null,z);R.stroke()}};var G=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=
+function(R,T,c,f){return null!=T&&"centerPerimeter"==T.style[mxConstants.STYLE_PERIMETER]?new mxPoint(T.getCenterX(),T.getCenterY()):G.apply(this,arguments)};var S=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(R,T,c,f){if(null==T||null==R||"1"!=T.style.snapToPoint&&"1"!=R.style.snapToPoint)S.apply(this,arguments);else{T=this.getTerminalPort(R,T,f);var k=this.getNextPoint(R,c,f),B=this.graph.isOrthogonal(R),z=mxUtils.toRadians(Number(T.style[mxConstants.STYLE_ROTATION]||
+"0")),C=new mxPoint(T.getCenterX(),T.getCenterY());if(0!=z){var I=Math.cos(-z),L=Math.sin(-z);k=mxUtils.getRotatedPoint(k,I,L,C)}I=parseFloat(R.style[mxConstants.STYLE_PERIMETER_SPACING]||0);I+=parseFloat(R.style[f?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);k=this.getPerimeterPoint(T,k,0==z&&B,I);0!=z&&(I=Math.cos(z),L=Math.sin(z),k=mxUtils.getRotatedPoint(k,I,L,C));R.setAbsoluteTerminalPoint(this.snapToAnchorPoint(R,T,c,f,k),f)}};mxGraphView.prototype.snapToAnchorPoint=
+function(R,T,c,f,k){if(null!=T&&null!=R){R=this.graph.getAllConnectionConstraints(T);f=c=null;if(null!=R)for(var B=0;B<R.length;B++){var z=this.graph.getConnectionPoint(T,R[B]);if(null!=z){var C=(z.x-k.x)*(z.x-k.x)+(z.y-k.y)*(z.y-k.y);if(null==f||C<f)c=z,f=C}}null!=c&&(k=c)}return k};var F=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(R,T,c){var f=F.apply(this,arguments);"1"==R.getAttribute("placeholders")&&null!=c.state&&(f=c.state.view.graph.replacePlaceholders(c.state.cell,
f));return f};var P=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(R){if(null!=R.style&&"undefined"!==typeof pako){var T=mxUtils.getValue(R.style,mxConstants.STYLE_SHAPE,null);if(null!=T&&"string"===typeof T&&"stencil("==T.substring(0,8))try{var c=T.substring(8,T.length-1),f=mxUtils.parseXml(Graph.decompress(c));return new mxShape(new mxStencil(f.documentElement))}catch(k){null!=window.console&&console.log("Error in shape: "+k)}}return P.apply(this,arguments)}})();
mxStencilRegistry.libraries={};mxStencilRegistry.dynamicLoading=!0;mxStencilRegistry.allowEval=!0;mxStencilRegistry.packages=[];mxStencilRegistry.filesLoaded={};mxStencilRegistry.isFileLoaded=function(b){return!mxClient.IS_FF&&mxStencilRegistry.filesLoaded[b]};mxStencilRegistry.setFileLoaded=function(b){mxStencilRegistry.filesLoaded[b]=!0};
mxStencilRegistry.getStencil=function(b){var e=mxStencilRegistry.stencils[b];if(null==e&&null==mxCellRenderer.defaultShapes[b]&&mxStencilRegistry.dynamicLoading){var g=mxStencilRegistry.getBasenameForStencil(b);if(null!=g){e=mxStencilRegistry.libraries[g];if(null!=e){if(null==mxStencilRegistry.packages[g]){for(var m=0;m<e.length;m++){var v=e[m];if(!mxStencilRegistry.isFileLoaded(v))if(mxStencilRegistry.setFileLoaded(v),".xml"==v.toLowerCase().substring(v.length-4,v.length))mxStencilRegistry.loadStencilSet(v,
-null);else if(".js"==v.toLowerCase().substring(v.length-3,v.length))try{if(mxStencilRegistry.allowEval){var p=mxUtils.load(v);null!=p&&200<=p.getStatus()&&299>=p.getStatus()&&eval.call(window,p.getText())}}catch(B){null!=window.console&&console.log("error in getStencil:",b,g,e,v,B)}}mxStencilRegistry.packages[g]=1}}else g=g.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+g+".xml",null);e=mxStencilRegistry.stencils[b]}}return e};
+null);else if(".js"==v.toLowerCase().substring(v.length-3,v.length))try{if(mxStencilRegistry.allowEval){var p=mxUtils.load(v);null!=p&&200<=p.getStatus()&&299>=p.getStatus()&&eval.call(window,p.getText())}}catch(A){null!=window.console&&console.log("error in getStencil:",b,g,e,v,A)}}mxStencilRegistry.packages[g]=1}}else g=g.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+g+".xml",null);e=mxStencilRegistry.stencils[b]}}return e};
mxStencilRegistry.getBasenameForStencil=function(b){var e=null;if(null!=b&&"string"===typeof b&&(b=b.split("."),0<b.length&&"mxgraph"==b[0])){e=b[1];for(var g=2;g<b.length-1;g++)e+="/"+b[g]}return e};
-mxStencilRegistry.loadStencilSet=function(b,e,g,m){var v=mxStencilRegistry.packages[b];if(null!=g&&g||null==v){var p=!1;if(null==v)try{if(m){mxStencilRegistry.loadStencil(b,mxUtils.bind(this,function(B){null!=B&&null!=B.documentElement&&(mxStencilRegistry.packages[b]=B,p=!0,mxStencilRegistry.parseStencilSet(B.documentElement,e,p))}));return}v=mxStencilRegistry.loadStencil(b);mxStencilRegistry.packages[b]=v;p=!0}catch(B){null!=window.console&&console.log("error in loadStencilSet:",b,B)}null!=v&&null!=
+mxStencilRegistry.loadStencilSet=function(b,e,g,m){var v=mxStencilRegistry.packages[b];if(null!=g&&g||null==v){var p=!1;if(null==v)try{if(m){mxStencilRegistry.loadStencil(b,mxUtils.bind(this,function(A){null!=A&&null!=A.documentElement&&(mxStencilRegistry.packages[b]=A,p=!0,mxStencilRegistry.parseStencilSet(A.documentElement,e,p))}));return}v=mxStencilRegistry.loadStencil(b);mxStencilRegistry.packages[b]=v;p=!0}catch(A){null!=window.console&&console.log("error in loadStencilSet:",b,A)}null!=v&&null!=
v.documentElement&&mxStencilRegistry.parseStencilSet(v.documentElement,e,p)}};mxStencilRegistry.loadStencil=function(b,e){if(null!=e)mxUtils.get(b,mxUtils.bind(this,function(g){e(200<=g.getStatus()&&299>=g.getStatus()?g.getXml():null)}),mxUtils.bind(this,function(g){e(null)}));else return mxUtils.load(b).getXml()};mxStencilRegistry.parseStencilSets=function(b){for(var e=0;e<b.length;e++)mxStencilRegistry.parseStencilSet(mxUtils.parseXml(b[e]).documentElement)};
-mxStencilRegistry.parseStencilSet=function(b,e,g){if("stencils"==b.nodeName)for(var m=b.firstChild;null!=m;)"shapes"==m.nodeName&&mxStencilRegistry.parseStencilSet(m,e,g),m=m.nextSibling;else{g=null!=g?g:!0;m=b.firstChild;var v="";b=b.getAttribute("name");for(null!=b&&(v=b+".");null!=m;){if(m.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=m.getAttribute("name"),null!=b)){v=v.toLowerCase();var p=b.replace(/ /g,"_");g&&mxStencilRegistry.addStencil(v+p.toLowerCase(),new mxStencil(m));if(null!=e){var B=m.getAttribute("w"),
-G=m.getAttribute("h");B=null==B?80:parseInt(B,10);G=null==G?80:parseInt(G,10);e(v,p,b,B,G)}}m=m.nextSibling}}};
+mxStencilRegistry.parseStencilSet=function(b,e,g){if("stencils"==b.nodeName)for(var m=b.firstChild;null!=m;)"shapes"==m.nodeName&&mxStencilRegistry.parseStencilSet(m,e,g),m=m.nextSibling;else{g=null!=g?g:!0;m=b.firstChild;var v="";b=b.getAttribute("name");for(null!=b&&(v=b+".");null!=m;){if(m.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=m.getAttribute("name"),null!=b)){v=v.toLowerCase();var p=b.replace(/ /g,"_");g&&mxStencilRegistry.addStencil(v+p.toLowerCase(),new mxStencil(m));if(null!=e){var A=m.getAttribute("w"),
+G=m.getAttribute("h");A=null==A?80:parseInt(A,10);G=null==G?80:parseInt(G,10);e(v,p,b,A,G)}}m=m.nextSibling}}};
"undefined"!==typeof mxVertexHandler&&function(){function b(){var t=document.createElement("div");t.className="geHint";t.style.whiteSpace="nowrap";t.style.position="absolute";return t}function e(t,N){switch(N){case mxConstants.POINTS:return t;case mxConstants.MILLIMETERS:return(t/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(t/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(t/mxConstants.PIXELS_PER_INCH).toFixed(3)}}mxConstants.HANDLE_FILLCOLOR="#29b6f2";
mxConstants.HANDLE_STROKECOLOR="#0088cf";mxConstants.VERTEX_SELECTION_COLOR="#00a8ff";mxConstants.OUTLINE_COLOR="#00a8ff";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#99ccff";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#00a8ff";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.EDGE_SELECTION_COLOR="#00a8ff";mxConstants.DEFAULT_VALID_COLOR="#00a8ff";mxConstants.LABEL_HANDLE_FILLCOLOR="#cee7ff";mxConstants.GUIDE_COLOR="#0088cf";mxConstants.HIGHLIGHT_STROKEWIDTH=5;mxConstants.HIGHLIGHT_OPACITY=50;mxConstants.HIGHLIGHT_SIZE=
5;mxWindow.prototype.closeImage=Graph.createSvgImage(18,10,'<path d="M 5 1 L 13 9 M 13 1 L 5 9" stroke="#707070" stroke-width="2"/>').src;mxWindow.prototype.minimizeImage=Graph.createSvgImage(14,10,'<path d="M 3 7 L 7 3 L 11 7" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.normalizeImage=Graph.createSvgImage(14,10,'<path d="M 3 3 L 7 7 L 11 3" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.resizeImage=Graph.createSvgImage(10,10,'<path d="Z" stroke="#C0C0C0" stroke-width="1" fill="none"/>').src;
mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(t){return!mxEvent.isAltDown(t)||mxEvent.isShiftDown(t)};var g=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(t){return g.apply(this,arguments)||this.graph.isTableRow(t)||this.graph.isTableCell(t)};var m=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
function(t){return m.apply(this,arguments)||this.graph.isEdgeIgnored(t)};var v=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(t){return this.graph.isCloneEvent(t)!=v.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var t=new mxEllipse(null,this.highlightColor,this.highlightColor,0);t.opacity=mxConstants.HIGHLIGHT_OPACITY;return t};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
"crosshair";mxConnectionHandler.prototype.createEdgeState=function(t){t=this.graph.createCurrentEdgeStyle();t=this.graph.createEdge(null,null,null,null,null,t);t=new mxCellState(this.graph.view,t,this.graph.getCellStyle(t));for(var N in this.graph.currentEdgeStyle)t.style[N]=this.graph.currentEdgeStyle[N];if(null!=this.previous){var Q=this.previous.style.newEdgeStyle;if(null!=Q)try{var X=JSON.parse(Q);for(N in X)t.style[N]=X[N]}catch(ia){}}t.style=this.graph.postProcessCellStyle(t.cell,t.style);return t};
-var p=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var t=p.apply(this,arguments);t.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return t};mxConnectionHandler.prototype.updatePreview=function(t){};var B=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var t=B.apply(this,arguments),N=t.getCell;t.getCell=mxUtils.bind(this,function(Q){var X=N.apply(this,arguments);this.error=null;return X});
+var p=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var t=p.apply(this,arguments);t.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return t};mxConnectionHandler.prototype.updatePreview=function(t){};var A=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var t=A.apply(this,arguments),N=t.getCell;t.getCell=mxUtils.bind(this,function(Q){var X=N.apply(this,arguments);this.error=null;return X});
return t};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var t="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",N="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),Q=0;Q<N.length;Q++)null!=
this.currentEdgeStyle[N[Q]]&&(t+=N[Q]+"="+this.currentEdgeStyle[N[Q]]+";");null!=this.currentEdgeStyle.orthogonalLoop?t+="orthogonalLoop="+this.currentEdgeStyle.orthogonalLoop+";":null!=Graph.prototype.defaultEdgeStyle.orthogonalLoop&&(t+="orthogonalLoop="+Graph.prototype.defaultEdgeStyle.orthogonalLoop+";");null!=this.currentEdgeStyle.jettySize?t+="jettySize="+this.currentEdgeStyle.jettySize+";":null!=Graph.prototype.defaultEdgeStyle.jettySize&&(t+="jettySize="+Graph.prototype.defaultEdgeStyle.jettySize+
";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(t+="elbow="+this.currentEdgeStyle.elbow+";");return t=null!=this.currentEdgeStyle.html?t+("html="+this.currentEdgeStyle.html+";"):t+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var t=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=
@@ -2632,7 +2647,7 @@ this.popupMenuHandler.popup(pa.getX()+va.x+1,pa.getY()+va.y+1,ta,pa.getEvent())}
"";window.getSelection?t=window.getSelection():document.getSelection?t=document.getSelection():document.selection&&(t=document.selection.createRange().text);return""!=t};mxCellEditor.prototype.insertTab=function(t){var N=this.textarea.ownerDocument.defaultView.getSelection(),Q=N.getRangeAt(0);t=Graph.createTabNode(t);Q.insertNode(t);Q.setStartAfter(t);Q.setEndAfter(t);N.removeAllRanges();N.addRange(Q)};mxCellEditor.prototype.alignText=function(t,N){var Q=this.graph.getView().getState(this.editingCell);
if(null!=Q){Q=mxUtils.getValue(Q.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var X=null!=Q&&"vertical-"==Q.substring(0,9),ia=null!=N&&mxEvent.isShiftDown(N);if(ia||null!=window.getSelection&&null!=window.getSelection().containsNode){var ka=!0;this.graph.processElements(this.textarea,function(pa){ia||X||window.getSelection().containsNode(pa,!0)?(pa.removeAttribute("align"),pa.style.textAlign=null):ka=!1});(ka||X)&&this.graph.cellEditor.setAlign(t)}X||document.execCommand("justify"+
t.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var t=window.getSelection();if(t.getRangeAt&&t.rangeCount){for(var N=[],Q=0,X=t.rangeCount;Q<X;++Q)N.push(t.getRangeAt(Q));return N}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(t){try{if(t)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var N=0,Q=t.length;N<
-Q;++N)sel.addRange(t[N])}else document.selection&&t.select&&t.select()}catch(X){}};var A=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(t){null!=t.text&&(t.text.replaceLinefeeds="0"!=mxUtils.getValue(t.style,"nl2Br","1"));A.apply(this,arguments)};var z=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(t,N){this.isKeepFocusEvent(t)||!mxEvent.isAltDown(t.getEvent())?z.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=
+Q;++N)sel.addRange(t[N])}else document.selection&&t.select&&t.select()}catch(X){}};var B=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(t){null!=t.text&&(t.text.replaceLinefeeds="0"!=mxUtils.getValue(t.style,"nl2Br","1"));B.apply(this,arguments)};var z=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(t,N){this.isKeepFocusEvent(t)||!mxEvent.isAltDown(t.getEvent())?z.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=
function(t){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var C=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(t,N){t=this.graph.getStartEditingCell(t,N);C.apply(this,arguments);var Q=this.graph.view.getState(t);this.textarea.className=null!=Q&&1==Q.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.textarea.style.colorScheme="none"==this.graph.getAdaptiveColors()?
"light":"";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(t)};mxCellEditor.prototype.toggleViewMode=function(){var t=this.graph.view.getState(this.editingCell);if(null!=t){var N=null!=t&&"0"!=mxUtils.getValue(t.style,"nl2Br","1"),Q=this.saveSelection();if(this.codeViewMode){Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);xa=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<xa.length&&"\n"==xa.charAt(xa.length-1)&&(xa=xa.substring(0,
xa.length-1));xa=Graph.sanitizeHtml(N?xa.replace(/\n/g,"<br/>"):xa,!0);this.textarea.className="mxCellEditor geContentEditable";ta=mxUtils.getValue(t.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);N=mxUtils.getValue(t.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var X=mxUtils.getValue(t.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),ia=(mxUtils.getValue(t.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,ka=(mxUtils.getValue(t.style,
@@ -2653,7 +2668,7 @@ this.livePreviewActive)){null==this.hint&&(this.hint=b(),this.graph.container.ap
Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var O=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=function(t,N){O.apply(this,arguments);var Q=this.graph.getCellStyle(t);if(null==Q.childLayout){var X=this.graph.model.getParent(t),ia=null!=X?this.graph.getCellGeometry(X):null;if(null!=ia&&(Q=this.graph.getCellStyle(X),"stackLayout"==Q.childLayout)){var ka=
parseFloat(mxUtils.getValue(Q,"stackBorder",mxStackLayout.prototype.border));Q="1"==mxUtils.getValue(Q,"horizontalStack","1");var pa=this.graph.getActualStartSize(X);ia=ia.clone();Q?ia.height=N.height+pa.y+pa.height+2*ka:ia.width=N.width+pa.x+pa.width+2*ka;this.graph.model.setGeometry(X,ia)}}};var da=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function t(xa){Q.get(xa)||(Q.put(xa,!0),ia.push(xa))}for(var N=da.apply(this,
arguments),Q=new mxDictionary,X=this.graph.model,ia=[],ka=0;ka<N.length;ka++){var pa=N[ka];this.graph.isTableCell(pa)?t(X.getParent(X.getParent(pa))):this.graph.isTableRow(pa)&&t(X.getParent(pa));t(pa)}return ia};var ea=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=function(t){return ea.apply(this,arguments)&&!mxEvent.isControlDown(t.getEvent())&&!mxEvent.isShiftDown(t.getEvent())};var ca=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=
-function(){return ca.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var W=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=function(t){var N=W.apply(this,arguments);N.stroke="#C0C0C0";N.strokewidth=1;return N};var ma=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=
+function(){return ca.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var V=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=function(t){var N=V.apply(this,arguments);N.stroke="#C0C0C0";N.strokewidth=1;return N};var ma=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=
function(t){var N=ma.apply(this,arguments);N.stroke="#C0C0C0";N.strokewidth=1;return N};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var t=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+t.x/2,this.bounds.y+this.rotationHandleVSpacing-t.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(t,N){return this.graph.isRecursiveVertexResize(t)&&!mxEvent.isAltDown(N.getEvent())};
mxVertexHandler.prototype.isCenteredEvent=function(t,N){return mxEvent.isControlDown(N.getEvent())||mxEvent.isMetaDown(N.getEvent())};var la=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return la.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?
this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var Y=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return Y.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};var fa=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(t){return t.tableHandle||fa.apply(this,arguments)&&
@@ -2677,7 +2692,7 @@ t=this.graph.getLinkForCell(this.state.cell);N=this.graph.getLinksForState(this.
this.customHandles[X]&&null!=this.customHandles[X].shape&&null!=this.customHandles[X].shape.bounds){var ia=this.customHandles[X].shape.bounds,ka=ia.getCenterX(),pa=ia.getCenterY();if(Math.abs(this.state.x-ka)<ia.width/2||Math.abs(this.state.y-pa)<ia.height/2||Math.abs(this.state.x+this.state.width-ka)<ia.width/2||Math.abs(this.state.y+this.state.height-pa)<ia.height/2){Q=!0;break}}Q&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(N/=2,this.graph.isTable(this.state.cell)&&(N+=7),t.x=
this.sizers[0].bounds.width+N,t.y=this.sizers[0].bounds.height+N):t=J.apply(this,arguments);return t};mxVertexHandler.prototype.updateHint=function(t){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{t=this.state.view.scale;var N=this.state.view.unit;this.hint.innerHTML=e(this.roundLength(this.bounds.width/t),N)+" x "+e(this.roundLength(this.bounds.height/
t),N)}t=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==t&&(t=this.bounds);this.hint.style.left=t.x+Math.round((t.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=t.y+t.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display=
-"")};var V=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){V.apply(this,arguments);var t=this.graph.getLinkForCell(this.state.cell),N=this.graph.getLinksForState(this.state);this.updateLinkHint(t,N)};var aa=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(t,N){aa.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};
+"")};var W=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){W.apply(this,arguments);var t=this.graph.getLinkForCell(this.state.cell),N=this.graph.getLinksForState(this.state);this.updateLinkHint(t,N)};var aa=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(t,N){aa.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};
var ba=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(t,N){ba.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(t,N,Q){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));var X=this.graph.view.translate,ia=this.graph.view.scale,ka=this.roundLength(N.x/ia-X.x);X=this.roundLength(N.y/ia-X.y);var pa=
this.graph.view.unit;this.hint.innerHTML=e(ka,pa)+", "+e(X,pa);this.hint.style.visibility="visible";null!=Q&&(Q.view.updateEdgeBounds(Q),this.hint.innerHTML+=" ("+(pa==mxConstants.POINTS?Math.round(Q.length/ia):e(Q.length/ia,pa))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(Q=this.constraintHandler.currentConstraint.point,this.hint.innerHTML="["+Math.round(100*Q.x)+"%, "+Math.round(100*
Q.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(t.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(t.getGraphY(),N.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');
@@ -2721,11 +2736,11 @@ mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=th
this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,N=null!=this.state.text?this.state.text.boundingBox:null,null==Q&&(Q=this.state),Q=Q.y+Q.height,null!=N&&(Q=Math.max(Q,N.y+N.height)),this.linkHint.style.left=t.x+t.width/2+"px",this.linkHint.style.top=Math.round(Q+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var Wa=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){Wa.apply(this,arguments);
this.destroyMoveHandles();this.destroyCornerHandles();null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var Ia=mxEdgeHandler.prototype.redrawHandles;
mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(Ia.apply(this),null!=this.state&&null!=this.linkHint)){var t=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(t=new mxRectangle(t.x,t.y,t.width,t.height),t.add(this.state.text.bounds));this.linkHint.style.left=t.x+t.width/2+"px";this.linkHint.style.top=Math.round(t.y+t.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var Xa=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=
-function(){Xa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Pa=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Pa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(d,n,y){mxShape.call(this);this.line=d;this.stroke=n;this.strokewidth=null!=y?y:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function m(){mxCylinder.call(this)}function v(){mxConnector.call(this)}function p(){mxCylinder.call(this)}function B(){mxActor.call(this)}function G(){mxCylinder.call(this)}function S(){mxCylinder.call(this)}function F(){mxCylinder.call(this)}function P(){mxCylinder.call(this)}function R(){mxShape.call(this)}
-function T(){mxShape.call(this)}function c(d,n,y,q){mxShape.call(this);this.bounds=d;this.fill=n;this.stroke=y;this.strokewidth=null!=q?q:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function A(){mxCylinder.call(this)}function z(){mxActor.call(this)}function C(){mxActor.call(this)}function I(){mxActor.call(this)}function L(){mxActor.call(this)}function K(){mxActor.call(this)}function O(){mxActor.call(this)}function da(){mxActor.call(this)}function ea(d,n){this.canvas=d;this.canvas.setLineJoin("round");
+function(){Xa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Pa=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Pa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(d,n,y){mxShape.call(this);this.line=d;this.stroke=n;this.strokewidth=null!=y?y:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function m(){mxCylinder.call(this)}function v(){mxConnector.call(this)}function p(){mxCylinder.call(this)}function A(){mxActor.call(this)}function G(){mxCylinder.call(this)}function S(){mxCylinder.call(this)}function F(){mxCylinder.call(this)}function P(){mxCylinder.call(this)}function R(){mxShape.call(this)}
+function T(){mxShape.call(this)}function c(d,n,y,q){mxShape.call(this);this.bounds=d;this.fill=n;this.stroke=y;this.strokewidth=null!=q?q:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function B(){mxCylinder.call(this)}function z(){mxActor.call(this)}function C(){mxActor.call(this)}function I(){mxActor.call(this)}function L(){mxActor.call(this)}function K(){mxActor.call(this)}function O(){mxActor.call(this)}function da(){mxActor.call(this)}function ea(d,n){this.canvas=d;this.canvas.setLineJoin("round");
this.canvas.setLineCap("round");this.defaultVariation=n;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,ea.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,ea.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,ea.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,ea.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=
-mxUtils.bind(this,ea.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,ea.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function W(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function la(){mxActor.call(this)}function Y(){mxActor.call(this)}function fa(){mxRectangleShape.call(this)}function Z(){mxRectangleShape.call(this)}function l(){mxCylinder.call(this)}function u(){mxShape.call(this)}function H(){mxShape.call(this)}function U(){mxEllipse.call(this)}
-function J(){mxShape.call(this)}function V(){mxShape.call(this)}function aa(){mxRectangleShape.call(this)}function ba(){mxShape.call(this)}function ja(){mxShape.call(this)}function oa(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function ua(){mxCylinder.call(this)}function za(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function Ca(){mxDoubleEllipse.call(this)}function La(){mxDoubleEllipse.call(this)}function sa(){mxArrowConnector.call(this);
+mxUtils.bind(this,ea.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,ea.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function V(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function la(){mxActor.call(this)}function Y(){mxActor.call(this)}function fa(){mxRectangleShape.call(this)}function Z(){mxRectangleShape.call(this)}function l(){mxCylinder.call(this)}function u(){mxShape.call(this)}function H(){mxShape.call(this)}function U(){mxEllipse.call(this)}
+function J(){mxShape.call(this)}function W(){mxShape.call(this)}function aa(){mxRectangleShape.call(this)}function ba(){mxShape.call(this)}function ja(){mxShape.call(this)}function oa(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function ua(){mxCylinder.call(this)}function za(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function Ca(){mxDoubleEllipse.call(this)}function La(){mxDoubleEllipse.call(this)}function sa(){mxArrowConnector.call(this);
this.spacing=0}function Aa(){mxArrowConnector.call(this);this.spacing=0}function Ea(){mxActor.call(this)}function Ka(){mxRectangleShape.call(this)}function Ma(){mxActor.call(this)}function ya(){mxActor.call(this)}function Wa(){mxActor.call(this)}function Ia(){mxActor.call(this)}function Xa(){mxActor.call(this)}function Pa(){mxActor.call(this)}function t(){mxActor.call(this)}function N(){mxActor.call(this)}function Q(){mxActor.call(this)}function X(){mxActor.call(this)}function ia(){mxEllipse.call(this)}
function ka(){mxEllipse.call(this)}function pa(){mxEllipse.call(this)}function xa(){mxRhombus.call(this)}function ta(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Da(){mxEllipse.call(this)}function Na(){mxEllipse.call(this)}function Ya(){mxActor.call(this)}function Za(){mxActor.call(this)}function ab(){mxActor.call(this)}function Ra(d,n,y,q){mxShape.call(this);this.bounds=d;this.fill=n;this.stroke=y;this.strokewidth=null!=q?q:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
!0;this.indent=2;this.rectOutline="single"}function Oa(){mxConnector.call(this)}function kb(d,n,y,q,x,D,E,ha,M,wa){E+=M;var na=q.clone();q.x-=x*(2*E+M);q.y-=D*(2*E+M);x*=E+M;D*=E+M;return function(){d.ellipse(na.x-x-E,na.y-D-E,2*E,2*E);wa?d.fillAndStroke():d.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var d=null;if(null!=this.line)for(var n=0;n<this.line.length;n++){var y=this.line[n];null!=y&&(y=new mxRectangle(y.x,y.y,this.strokewidth,this.strokewidth),null==
@@ -2736,9 +2751,9 @@ D,E,n+q/2,y+x/2);s=this.scale;n=this.bounds.x/s;y=this.bounds.y/s;q=this.bounds.
d.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",e);mxUtils.extend(g,e);g.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",g);mxUtils.extend(m,mxCylinder);m.prototype.size=20;m.prototype.darkOpacity=0;m.prototype.darkOpacity2=0;m.prototype.paintVertexShape=function(d,n,y,q,x){var D=Math.max(0,Math.min(q,Math.min(x,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),E=Math.max(-1,Math.min(1,
parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),ha=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));d.translate(n,y);d.begin();d.moveTo(0,0);d.lineTo(q-D,0);d.lineTo(q,D);d.lineTo(q,x);d.lineTo(D,x);d.lineTo(0,x-D);d.lineTo(0,0);d.close();d.end();d.fillAndStroke();this.outline||(d.setShadow(!1),0!=E&&(d.setFillAlpha(Math.abs(E)),d.setFillColor(0>E?"#FFFFFF":"#000000"),d.begin(),d.moveTo(0,0),d.lineTo(q-D,0),d.lineTo(q,D),
d.lineTo(D,D),d.close(),d.fill()),0!=ha&&(d.setFillAlpha(Math.abs(ha)),d.setFillColor(0>ha?"#FFFFFF":"#000000"),d.begin(),d.moveTo(0,0),d.lineTo(D,D),d.lineTo(D,x),d.lineTo(0,x-D),d.close(),d.fill()),d.begin(),d.moveTo(D,x),d.lineTo(D,D),d.lineTo(0,0),d.moveTo(D,D),d.lineTo(q,D),d.end(),d.stroke())};m.prototype.getLabelMargins=function(d){return mxUtils.getValue(this.style,"boundedLbl",!1)?(d=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(d,d,0,0)):null};mxCellRenderer.registerShape("cube",
-m);var cb=Math.tan(mxUtils.toRadians(30)),$a=(.5-cb)/2;mxCellRenderer.registerShape("isoRectangle",B);mxUtils.extend(v,mxConnector);v.prototype.paintEdgeShape=function(d,n){var y=this.createMarker(d,n,!0),q=this.createMarker(d,n,!1);d.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&d.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);d.setShadow(!1);d.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
+m);var cb=Math.tan(mxUtils.toRadians(30)),$a=(.5-cb)/2;mxCellRenderer.registerShape("isoRectangle",A);mxUtils.extend(v,mxConnector);v.prototype.paintEdgeShape=function(d,n){var y=this.createMarker(d,n,!0),q=this.createMarker(d,n,!1);d.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&d.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);d.setShadow(!1);d.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
arguments);d.setStrokeColor(this.stroke);d.setFillColor(this.stroke);d.setDashed(!1);null!=y&&y();null!=q&&q()};mxCellRenderer.registerShape("wire",v);mxUtils.extend(p,mxCylinder);p.prototype.size=6;p.prototype.paintVertexShape=function(d,n,y,q,x){d.setFillColor(this.stroke);var D=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;d.ellipse(n+.5*(q-D),y+.5*(x-D),D,D);d.fill();d.setFillColor(mxConstants.NONE);d.rect(n,y,q,x);d.fill()};mxCellRenderer.registerShape("waypoint",
-p);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.redrawPath=function(d,n,y,q,x){n=Math.min(q,x/cb);d.translate((q-n)/2,(x-n)/2+n/4);d.moveTo(0,.25*n);d.lineTo(.5*n,n*$a);d.lineTo(n,.25*n);d.lineTo(.5*n,(.5-$a)*n);d.lineTo(0,.25*n);d.close();d.end()};mxCellRenderer.registerShape("isoRectangle",B);mxUtils.extend(G,mxCylinder);G.prototype.size=20;G.prototype.redrawPath=function(d,n,y,q,x,D){n=Math.min(q,x/(.5+cb));D?(d.moveTo(0,.25*n),d.lineTo(.5*n,(.5-$a)*n),d.lineTo(n,.25*n),d.moveTo(.5*
+p);mxUtils.extend(A,mxActor);A.prototype.size=20;A.prototype.redrawPath=function(d,n,y,q,x){n=Math.min(q,x/cb);d.translate((q-n)/2,(x-n)/2+n/4);d.moveTo(0,.25*n);d.lineTo(.5*n,n*$a);d.lineTo(n,.25*n);d.lineTo(.5*n,(.5-$a)*n);d.lineTo(0,.25*n);d.close();d.end()};mxCellRenderer.registerShape("isoRectangle",A);mxUtils.extend(G,mxCylinder);G.prototype.size=20;G.prototype.redrawPath=function(d,n,y,q,x,D){n=Math.min(q,x/(.5+cb));D?(d.moveTo(0,.25*n),d.lineTo(.5*n,(.5-$a)*n),d.lineTo(n,.25*n),d.moveTo(.5*
n,(.5-$a)*n),d.lineTo(.5*n,(1-$a)*n)):(d.translate((q-n)/2,(x-n)/2),d.moveTo(0,.25*n),d.lineTo(.5*n,n*$a),d.lineTo(n,.25*n),d.lineTo(n,.75*n),d.lineTo(.5*n,(1-$a)*n),d.lineTo(0,.75*n),d.close());d.end()};mxCellRenderer.registerShape("isoCube",G);mxUtils.extend(S,mxCylinder);S.prototype.redrawPath=function(d,n,y,q,x,D){n=Math.min(x/2,Math.round(x/8)+this.strokewidth-1);if(D&&null!=this.fill||!D&&null==this.fill)d.moveTo(0,n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,n/2),d.moveTo(0,
n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,n/2),d.moveTo(0,n),d.curveTo(0,2*n,q,2*n,q,n),D||(d.stroke(),d.begin()),d.translate(0,-n);D||(d.moveTo(0,n),d.curveTo(0,-n/3,q,-n/3,q,n),d.lineTo(q,x-n),d.curveTo(q,x+n/3,0,x+n/3,0,x-n),d.close())};S.prototype.getLabelMargins=function(d){return new mxRectangle(0,2.5*Math.min(d.height/2,Math.round(d.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",S);mxUtils.extend(F,mxCylinder);F.prototype.size=30;F.prototype.darkOpacity=
0;F.prototype.paintVertexShape=function(d,n,y,q,x){var D=Math.max(0,Math.min(q,Math.min(x,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),E=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));d.translate(n,y);d.begin();d.moveTo(0,0);d.lineTo(q-D,0);d.lineTo(q,D);d.lineTo(q,x);d.lineTo(0,x);d.lineTo(0,0);d.close();d.end();d.fillAndStroke();this.outline||(d.setShadow(!1),0!=E&&(d.setFillAlpha(Math.abs(E)),d.setFillColor(0>E?"#FFFFFF":"#000000"),
@@ -2751,16 +2766,16 @@ mxCylinder);k.prototype.tabWidth=60;k.prototype.tabHeight=20;k.prototype.tabPosi
"absoluteArcSize",!1),M=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));ha||(M*=Math.min(q,x));M=Math.min(M,.5*q,.5*(x-y));n=Math.max(n,M);n=Math.min(q-M,n);E||(M=0);d.begin();"left"==D?(d.moveTo(Math.max(M,0),y),d.lineTo(Math.max(M,0),0),d.lineTo(n,0),d.lineTo(n,y)):(d.moveTo(q-n,y),d.lineTo(q-n,0),d.lineTo(q-Math.max(M,0),0),d.lineTo(q-Math.max(M,0),y));E?(d.moveTo(0,M+y),d.arcTo(M,M,0,0,1,M,y),d.lineTo(q-M,y),d.arcTo(M,M,0,0,1,q,M+y),d.lineTo(q,x-M),d.arcTo(M,M,0,0,1,q-M,x),d.lineTo(M,
x),d.arcTo(M,M,0,0,1,0,x-M)):(d.moveTo(0,y),d.lineTo(q,y),d.lineTo(q,x),d.lineTo(0,x));d.close();d.fillAndStroke();d.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(d.begin(),d.moveTo(q-30,y+20),d.lineTo(q-20,y+10),d.lineTo(q-10,y+20),d.close(),d.stroke())};mxCellRenderer.registerShape("folder",k);k.prototype.getLabelMargins=function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,
"labelInHeader",!1)){var y=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;n=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var q=mxUtils.getValue(this.style,"rounded",!1),x=mxUtils.getValue(this.style,"absoluteArcSize",!1),D=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));x||(D*=Math.min(d.width,d.height));D=Math.min(D,.5*d.width,.5*(d.height-n));q||(D=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(D,0,Math.min(d.width,d.width-
-y),Math.min(d.height,d.height-n)):new mxRectangle(Math.min(d.width,d.width-y),0,D,Math.min(d.height,d.height-n))}return new mxRectangle(0,Math.min(d.height,n),0,0)}return null};mxUtils.extend(A,mxCylinder);A.prototype.arcSize=.1;A.prototype.paintVertexShape=function(d,n,y,q,x){d.translate(n,y);var D=mxUtils.getValue(this.style,"rounded",!1),E=mxUtils.getValue(this.style,"absoluteArcSize",!1);n=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));y=mxUtils.getValue(this.style,"umlStateConnection",
+y),Math.min(d.height,d.height-n)):new mxRectangle(Math.min(d.width,d.width-y),0,D,Math.min(d.height,d.height-n))}return new mxRectangle(0,Math.min(d.height,n),0,0)}return null};mxUtils.extend(B,mxCylinder);B.prototype.arcSize=.1;B.prototype.paintVertexShape=function(d,n,y,q,x){d.translate(n,y);var D=mxUtils.getValue(this.style,"rounded",!1),E=mxUtils.getValue(this.style,"absoluteArcSize",!1);n=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));y=mxUtils.getValue(this.style,"umlStateConnection",
null);E||(n*=Math.min(q,x));n=Math.min(n,.5*q,.5*x);D||(n=0);D=0;null!=y&&(D=10);d.begin();d.moveTo(D,n);d.arcTo(n,n,0,0,1,D+n,0);d.lineTo(q-n,0);d.arcTo(n,n,0,0,1,q,n);d.lineTo(q,x-n);d.arcTo(n,n,0,0,1,q-n,x);d.lineTo(D+n,x);d.arcTo(n,n,0,0,1,D,x-n);d.close();d.fillAndStroke();d.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(d.roundrect(q-40,x-20,10,10,3,3),d.stroke(),d.roundrect(q-20,x-20,10,10,3,3),d.stroke(),d.begin(),d.moveTo(q-30,x-15),d.lineTo(q-20,x-15),
-d.stroke());"connPointRefEntry"==y?(d.ellipse(0,.5*x-10,20,20),d.fillAndStroke()):"connPointRefExit"==y&&(d.ellipse(0,.5*x-10,20,20),d.fillAndStroke(),d.begin(),d.moveTo(5,.5*x-5),d.lineTo(15,.5*x+5),d.moveTo(15,.5*x-5),d.lineTo(5,.5*x+5),d.stroke())};A.prototype.getLabelMargins=function(d){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",A);mxUtils.extend(z,
+d.stroke());"connPointRefEntry"==y?(d.ellipse(0,.5*x-10,20,20),d.fillAndStroke()):"connPointRefExit"==y&&(d.ellipse(0,.5*x-10,20,20),d.fillAndStroke(),d.begin(),d.moveTo(5,.5*x-5),d.lineTo(15,.5*x+5),d.moveTo(15,.5*x-5),d.lineTo(5,.5*x+5),d.stroke())};B.prototype.getLabelMargins=function(d){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",B);mxUtils.extend(z,
mxActor);z.prototype.size=30;z.prototype.isRoundable=function(){return!0};z.prototype.redrawPath=function(d,n,y,q,x){n=Math.max(0,Math.min(q,Math.min(x,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));y=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(n,0),new mxPoint(q,0),new mxPoint(q,x),new mxPoint(0,x),new mxPoint(0,n)],this.isRounded,y,!0);d.end()};mxCellRenderer.registerShape("card",z);mxUtils.extend(C,mxActor);C.prototype.size=
.4;C.prototype.redrawPath=function(d,n,y,q,x){n=x*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));d.moveTo(0,n/2);d.quadTo(q/4,1.4*n,q/2,n/2);d.quadTo(3*q/4,n*(1-1.4),q,n/2);d.lineTo(q,x-n/2);d.quadTo(3*q/4,x-1.4*n,q/2,x-n/2);d.quadTo(q/4,x-n*(1-1.4),0,x-n/2);d.lineTo(0,n/2);d.close();d.end()};C.prototype.getLabelBounds=function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=mxUtils.getValue(this.style,"size",this.size),y=d.width,q=d.height;if(null==this.direction||
this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return n*=q,new mxRectangle(d.x,d.y+n,y,q-2*n);n*=y;return new mxRectangle(d.x+n,d.y,y-2*n,q)}return d};mxCellRenderer.registerShape("tape",C);mxUtils.extend(I,mxActor);I.prototype.size=.3;I.prototype.getLabelMargins=function(d){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*d.height):null};I.prototype.redrawPath=function(d,n,y,
q,x){n=x*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));d.moveTo(0,0);d.lineTo(q,0);d.lineTo(q,x-n/2);d.quadTo(3*q/4,x-1.4*n,q/2,x-n/2);d.quadTo(q/4,x-n*(1-1.4),0,x-n/2);d.lineTo(0,n/2);d.close();d.end()};mxCellRenderer.registerShape("document",I);var fb=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(d,n,y,q){var x=mxUtils.getValue(this.style,"size");return null!=x?q*Math.max(0,Math.min(1,x)):fb.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=
function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,d.height*n),0,0)}return null};c.prototype.getLabelMargins=function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(n/=2);return new mxRectangle(0,Math.min(d.height*this.scale,2*n*this.scale),0,Math.max(0,.3*n*this.scale))}return null};k.prototype.getLabelMargins=
function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var y=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;n=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var q=mxUtils.getValue(this.style,"rounded",!1),x=mxUtils.getValue(this.style,"absoluteArcSize",!1),D=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));x||(D*=Math.min(d.width,d.height));D=Math.min(D,
-.5*d.width,.5*(d.height-n));q||(D=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(D,0,Math.min(d.width,d.width-y),Math.min(d.height,d.height-n)):new mxRectangle(Math.min(d.width,d.width-y),0,D,Math.min(d.height,d.height-n))}return new mxRectangle(0,Math.min(d.height,n),0,0)}return null};A.prototype.getLabelMargins=function(d){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*
+.5*d.width,.5*(d.height-n));q||(D=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(D,0,Math.min(d.width,d.width-y),Math.min(d.height,d.height-n)):new mxRectangle(Math.min(d.width,d.width-y),0,D,Math.min(d.height,d.height-n))}return new mxRectangle(0,Math.min(d.height,n),0,0)}return null};B.prototype.getLabelMargins=function(d){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*
this.scale,0,0,0):null};P.prototype.getLabelMargins=function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var n=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(d.height*this.scale,n*this.scale),0,Math.max(0,n*this.scale))}return null};mxUtils.extend(L,mxActor);L.prototype.size=.2;L.prototype.fixedSize=20;L.prototype.isRoundable=function(){return!0};L.prototype.redrawPath=function(d,n,y,q,x){n="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(q,parseFloat(mxUtils.getValue(this.style,
"size",this.fixedSize)))):q*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));y=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(0,x),new mxPoint(n,0),new mxPoint(q,0),new mxPoint(q-n,x)],this.isRounded,y,!0);d.end()};mxCellRenderer.registerShape("parallelogram",L);mxUtils.extend(K,mxActor);K.prototype.size=.2;K.prototype.fixedSize=20;K.prototype.isRoundable=function(){return!0};K.prototype.redrawPath=function(d,
n,y,q,x){n="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*q,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):q*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));y=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(0,x),new mxPoint(n,0),new mxPoint(q-n,0),new mxPoint(q,x)],this.isRounded,y,!0)};mxCellRenderer.registerShape("trapezoid",K);mxUtils.extend(O,mxActor);
@@ -2775,7 +2790,7 @@ null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mx
D,y),d.lineTo(n+q-D,y),d.quadTo(n+q,y,n+q,y+D),d.lineTo(n+q,y+x-D),d.quadTo(n+q,y+x,n+q-D,y+x),d.lineTo(n+D,y+x),d.quadTo(n,y+x,n,y+x-D),d.lineTo(n,y+D),d.quadTo(n,y,n+D,y)):(d.moveTo(n,y),d.lineTo(n+q,y),d.lineTo(n+q,y+x),d.lineTo(n,y+x),d.lineTo(n,y)),d.close(),d.end(),d.fillAndStroke()}};mxUtils.extend(ca,mxRectangleShape);ca.prototype.size=.1;ca.prototype.fixedSize=!1;ca.prototype.isHtmlAllowed=function(){return!1};ca.prototype.getLabelBounds=function(d){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,
!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var n=d.width,y=d.height;d=new mxRectangle(d.x,d.y,n,y);var q=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));if(this.isRounded){var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;q=Math.max(q,Math.min(n*x,y*x))}d.x+=Math.round(q);d.width-=Math.round(2*q);return d}return d};ca.prototype.paintForeground=
function(d,n,y,q,x){var D=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),E=parseFloat(mxUtils.getValue(this.style,"size",this.size));E=D?Math.max(0,Math.min(q,E)):q*Math.max(0,Math.min(1,E));this.isRounded&&(D=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,E=Math.max(E,Math.min(q*D,x*D)));E=Math.round(E);d.begin();d.moveTo(n+E,y);d.lineTo(n+E,y+x);d.moveTo(n+q-E,y);d.lineTo(n+q-E,y+x);d.end();d.stroke();mxRectangleShape.prototype.paintForeground.apply(this,
-arguments)};mxCellRenderer.registerShape("process",ca);mxCellRenderer.registerShape("process2",ca);mxUtils.extend(W,mxRectangleShape);W.prototype.paintBackground=function(d,n,y,q,x){d.setFillColor(mxConstants.NONE);d.rect(n,y,q,x);d.fill()};W.prototype.paintForeground=function(d,n,y,q,x){};mxCellRenderer.registerShape("transparent",W);mxUtils.extend(ma,mxHexagon);ma.prototype.size=30;ma.prototype.position=.5;ma.prototype.position2=.5;ma.prototype.base=20;ma.prototype.getLabelMargins=function(){return new mxRectangle(0,
+arguments)};mxCellRenderer.registerShape("process",ca);mxCellRenderer.registerShape("process2",ca);mxUtils.extend(V,mxRectangleShape);V.prototype.paintBackground=function(d,n,y,q,x){d.setFillColor(mxConstants.NONE);d.rect(n,y,q,x);d.fill()};V.prototype.paintForeground=function(d,n,y,q,x){};mxCellRenderer.registerShape("transparent",V);mxUtils.extend(ma,mxHexagon);ma.prototype.size=30;ma.prototype.position=.5;ma.prototype.position2=.5;ma.prototype.base=20;ma.prototype.getLabelMargins=function(){return new mxRectangle(0,
0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};ma.prototype.isRoundable=function(){return!0};ma.prototype.redrawPath=function(d,n,y,q,x){n=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;y=Math.max(0,Math.min(x,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var D=q*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),E=q*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",
this.position2)))),ha=Math.max(0,Math.min(q,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(d,[new mxPoint(0,0),new mxPoint(q,0),new mxPoint(q,x-y),new mxPoint(Math.min(q,D+ha),x-y),new mxPoint(E,x),new mxPoint(Math.max(0,D),x-y),new mxPoint(0,x-y)],this.isRounded,n,!0,[4])};mxCellRenderer.registerShape("callout",ma);mxUtils.extend(la,mxActor);la.prototype.size=.2;la.prototype.fixedSize=20;la.prototype.isRoundable=function(){return!0};la.prototype.redrawPath=function(d,
n,y,q,x){n="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(q,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):q*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));y=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(0,0),new mxPoint(q-n,0),new mxPoint(q,x/2),new mxPoint(q-n,x),new mxPoint(0,x),new mxPoint(n,x/2)],this.isRounded,y,!0);d.end()};mxCellRenderer.registerShape("step",
@@ -2787,8 +2802,8 @@ Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||
Va,bb=this.style["symbol"+D+"ArcSpacing"];null!=bb&&(bb*=this.getArcSize(q+this.strokewidth,x+this.strokewidth),Va+=bb,gb+=bb);bb=n;var Fa=y;bb=ha==mxConstants.ALIGN_CENTER?bb+(q-wa)/2:ha==mxConstants.ALIGN_RIGHT?bb+(q-wa-Va):bb+Va;Fa=M==mxConstants.ALIGN_MIDDLE?Fa+(x-na)/2:M==mxConstants.ALIGN_BOTTOM?Fa+(x-na-gb):Fa+gb;d.save();ha=new E;ha.style=this.style;E.prototype.paintVertexShape.call(ha,d,bb,Fa,wa,na);d.restore()}D++}while(null!=E)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};
mxCellRenderer.registerShape("ext",Z);mxUtils.extend(l,mxCylinder);l.prototype.redrawPath=function(d,n,y,q,x,D){D?(d.moveTo(0,0),d.lineTo(q/2,x/2),d.lineTo(q,0),d.end()):(d.moveTo(0,0),d.lineTo(q,0),d.lineTo(q,x),d.lineTo(0,x),d.close())};mxCellRenderer.registerShape("message",l);mxUtils.extend(u,mxShape);u.prototype.paintBackground=function(d,n,y,q,x){d.translate(n,y);d.ellipse(q/4,0,q/2,x/4);d.fillAndStroke();d.begin();d.moveTo(q/2,x/4);d.lineTo(q/2,2*x/3);d.moveTo(q/2,x/3);d.lineTo(0,x/3);d.moveTo(q/
2,x/3);d.lineTo(q,x/3);d.moveTo(q/2,2*x/3);d.lineTo(0,x);d.moveTo(q/2,2*x/3);d.lineTo(q,x);d.end();d.stroke()};mxCellRenderer.registerShape("umlActor",u);mxUtils.extend(H,mxShape);H.prototype.getLabelMargins=function(d){return new mxRectangle(d.width/6,0,0,0)};H.prototype.paintBackground=function(d,n,y,q,x){d.translate(n,y);d.begin();d.moveTo(0,x/4);d.lineTo(0,3*x/4);d.end();d.stroke();d.begin();d.moveTo(0,x/2);d.lineTo(q/6,x/2);d.end();d.stroke();d.ellipse(q/6,0,5*q/6,x);d.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",
-H);mxUtils.extend(U,mxEllipse);U.prototype.paintVertexShape=function(d,n,y,q,x){mxEllipse.prototype.paintVertexShape.apply(this,arguments);d.begin();d.moveTo(n+q/8,y+x);d.lineTo(n+7*q/8,y+x);d.end();d.stroke()};mxCellRenderer.registerShape("umlEntity",U);mxUtils.extend(J,mxShape);J.prototype.paintVertexShape=function(d,n,y,q,x){d.translate(n,y);d.begin();d.moveTo(q,0);d.lineTo(0,x);d.moveTo(0,0);d.lineTo(q,x);d.end();d.stroke()};mxCellRenderer.registerShape("umlDestroy",J);mxUtils.extend(V,mxShape);
-V.prototype.getLabelBounds=function(d){return new mxRectangle(d.x,d.y+d.height/8,d.width,7*d.height/8)};V.prototype.paintBackground=function(d,n,y,q,x){d.translate(n,y);d.begin();d.moveTo(3*q/8,x/8*1.1);d.lineTo(5*q/8,0);d.end();d.stroke();d.ellipse(0,x/8,q,7*x/8);d.fillAndStroke()};V.prototype.paintForeground=function(d,n,y,q,x){d.begin();d.moveTo(3*q/8,x/8*1.1);d.lineTo(5*q/8,x/4);d.end();d.stroke()};mxCellRenderer.registerShape("umlControl",V);mxUtils.extend(aa,mxRectangleShape);aa.prototype.size=
+H);mxUtils.extend(U,mxEllipse);U.prototype.paintVertexShape=function(d,n,y,q,x){mxEllipse.prototype.paintVertexShape.apply(this,arguments);d.begin();d.moveTo(n+q/8,y+x);d.lineTo(n+7*q/8,y+x);d.end();d.stroke()};mxCellRenderer.registerShape("umlEntity",U);mxUtils.extend(J,mxShape);J.prototype.paintVertexShape=function(d,n,y,q,x){d.translate(n,y);d.begin();d.moveTo(q,0);d.lineTo(0,x);d.moveTo(0,0);d.lineTo(q,x);d.end();d.stroke()};mxCellRenderer.registerShape("umlDestroy",J);mxUtils.extend(W,mxShape);
+W.prototype.getLabelBounds=function(d){return new mxRectangle(d.x,d.y+d.height/8,d.width,7*d.height/8)};W.prototype.paintBackground=function(d,n,y,q,x){d.translate(n,y);d.begin();d.moveTo(3*q/8,x/8*1.1);d.lineTo(5*q/8,0);d.end();d.stroke();d.ellipse(0,x/8,q,7*x/8);d.fillAndStroke()};W.prototype.paintForeground=function(d,n,y,q,x){d.begin();d.moveTo(3*q/8,x/8*1.1);d.lineTo(5*q/8,x/4);d.end();d.stroke()};mxCellRenderer.registerShape("umlControl",W);mxUtils.extend(aa,mxRectangleShape);aa.prototype.size=
40;aa.prototype.isHtmlAllowed=function(){return!1};aa.prototype.getLabelBounds=function(d){var n=Math.max(0,Math.min(d.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(d.x,d.y,d.width,n)};aa.prototype.paintBackground=function(d,n,y,q,x){var D=Math.max(0,Math.min(x,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),E=mxUtils.getValue(this.style,"participant");null==E||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,
d,n,y,q,D):(E=this.state.view.graph.cellRenderer.getShape(E),null!=E&&E!=aa&&(E=new E,E.apply(this.state),d.save(),E.paintVertexShape(d,n,y,q,D),d.restore()));D<x&&(d.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),d.begin(),d.moveTo(n+q/2,y+D),d.lineTo(n+q/2,y+x),d.end(),d.stroke())};aa.prototype.paintForeground=function(d,n,y,q,x){var D=Math.max(0,Math.min(x,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,d,n,y,q,
Math.min(x,D))};mxCellRenderer.registerShape("umlLifeline",aa);mxUtils.extend(ba,mxShape);ba.prototype.width=60;ba.prototype.height=30;ba.prototype.corner=10;ba.prototype.configurePointerEvents=function(d){var n=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=n&&n!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(d.pointerEvents=!1)};ba.prototype.getLabelMargins=
@@ -2939,7 +2954,7 @@ function(){var d=Bb.apply(this,arguments);if(this.graph.isCellRotatable(this.sta
function(){var d=this.state.style.shape;null==mxCellRenderer.defaultShapes[d]&&null==mxStencilRegistry.getStencil(d)&&(d=mxConstants.SHAPE_CONNECTOR);d=hb[d];return null!=d?d(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var rb=new mxPoint(1,0),yb=new mxPoint(1,0),zb=mxUtils.toRadians(-30);rb=mxUtils.getRotatedPoint(rb,Math.cos(zb),Math.sin(zb));var qb=mxUtils.toRadians(-150);yb=mxUtils.getRotatedPoint(yb,Math.cos(qb),Math.sin(qb));mxEdgeStyle.IsometricConnector=function(d,
n,y,q,x){var D=d.view;q=null!=q&&0<q.length?q[0]:null;var E=d.absolutePoints,ha=E[0];E=E[E.length-1];null!=q&&(q=D.transformControlPoint(d,q));null==ha&&null!=n&&(ha=new mxPoint(n.getCenterX(),n.getCenterY()));null==E&&null!=y&&(E=new mxPoint(y.getCenterX(),y.getCenterY()));var M=rb.x,wa=rb.y,na=yb.x,Va=yb.y,gb="horizontal"==mxUtils.getValue(d.style,"elbow","horizontal");if(null!=E&&null!=ha){d=function(Fa,Ja,Ha){Fa-=bb.x;var Ga=Ja-bb.y;Ja=(Va*Fa-na*Ga)/(M*Va-wa*na);Fa=(wa*Fa-M*Ga)/(wa*na-M*Va);gb?
(Ha&&(bb=new mxPoint(bb.x+M*Ja,bb.y+wa*Ja),x.push(bb)),bb=new mxPoint(bb.x+na*Fa,bb.y+Va*Fa)):(Ha&&(bb=new mxPoint(bb.x+na*Fa,bb.y+Va*Fa),x.push(bb)),bb=new mxPoint(bb.x+M*Ja,bb.y+wa*Ja));x.push(bb)};var bb=ha;null==q&&(q=new mxPoint(ha.x+(E.x-ha.x)/2,ha.y+(E.y-ha.y)/2));d(q.x,q.y,!0);d(E.x,E.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var Cb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(d,n){if(n==mxEdgeStyle.IsometricConnector){var y=
-new mxElbowEdgeHandler(d);y.snapToTerminals=!1;return y}return Cb.apply(this,arguments)};B.prototype.constraints=[];G.prototype.getConstraints=function(d,n,y){d=[];var q=Math.tan(mxUtils.toRadians(30)),x=(.5-q)/2;q=Math.min(n,y/(.5+q));n=(n-q)/2;y=(y-q)/2;d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,y+.25*q));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n+.5*q,y+q*x));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n+q,y+.25*q));d.push(new mxConnectionConstraint(new mxPoint(0,
+new mxElbowEdgeHandler(d);y.snapToTerminals=!1;return y}return Cb.apply(this,arguments)};A.prototype.constraints=[];G.prototype.getConstraints=function(d,n,y){d=[];var q=Math.tan(mxUtils.toRadians(30)),x=(.5-q)/2;q=Math.min(n,y/(.5+q));n=(n-q)/2;y=(y-q)/2;d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,y+.25*q));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n+.5*q,y+q*x));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n+q,y+.25*q));d.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,n+q,y+.75*q));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n+.5*q,y+(1-x)*q));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,y+.75*q));return d};R.prototype.getConstraints=function(d,n,y){d=[];var q=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;q=Math.min(n*Math.tan(q),.5*y);d.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,q));d.push(new mxConnectionConstraint(new mxPoint(1,
.5),!1));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,y-q));d.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,y-q));d.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,q));return d};ma.prototype.getConstraints=function(d,n,y){d=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var q=Math.max(0,Math.min(y,parseFloat(mxUtils.getValue(this.style,
"size",this.size))));parseFloat(mxUtils.getValue(this.style,"position",this.position));var x=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));parseFloat(mxUtils.getValue(this.style,"base",this.base));d.push(new mxConnectionConstraint(new mxPoint(0,0),!1));d.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));d.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));d.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));d.push(new mxConnectionConstraint(new mxPoint(1,
@@ -2990,17 +3005,17 @@ mxLine.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),n
null;t.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];N.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,
.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];qa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];ra.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(b){this.editorUi=b;this.actions={};this.init()}
Actions.prototype.init=function(){function b(F){p.escape();F=p.deleteCells(p.getDeletableCells(p.getSelectionCells()),F);null!=F&&p.setSelectionCells(F)}function e(){if(!p.isSelectionEmpty()){p.getModel().beginUpdate();try{for(var F=p.getSelectionCells(),P=0;P<F.length;P++)p.cellLabelChanged(F[P],"")}finally{p.getModel().endUpdate()}}}function g(F,P,R,T,c){c.getModel().beginUpdate();try{var f=c.getCellGeometry(F);null!=f&&R&&T&&(R/=T,f=f.clone(),1<R?f.height=f.width/R:f.width=f.height*R,c.getModel().setGeometry(F,
-f));c.setCellStyles(mxConstants.STYLE_CLIP_PATH,P,[F]);c.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[F])}finally{c.getModel().endUpdate()}}var m=this.editorUi,v=m.editor,p=v.graph,B=function(){return Action.prototype.isEnabled.apply(this,arguments)&&p.isEnabled()};this.addAction("new...",function(){p.openLink(m.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";m.openFile()});this.put("smartFit",new Action(mxResources.get("fitWindow")+" / "+mxResources.get("resetView"),
+f));c.setCellStyles(mxConstants.STYLE_CLIP_PATH,P,[F]);c.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[F])}finally{c.getModel().endUpdate()}}var m=this.editorUi,v=m.editor,p=v.graph,A=function(){return Action.prototype.isEnabled.apply(this,arguments)&&p.isEnabled()};this.addAction("new...",function(){p.openLink(m.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";m.openFile()});this.put("smartFit",new Action(mxResources.get("fitWindow")+" / "+mxResources.get("resetView"),
function(){p.popupMenuHandler.hideMenu();var F=p.view.scale,P=p.container.scrollLeft,R=p.container.scrollTop,T=p.view.translate.x,c=p.view.translate.y;m.actions.get("resetView").funct();1E-5>Math.abs(F-p.view.scale)&&5>Math.abs(P-p.container.scrollLeft)&&5>Math.abs(R-p.container.scrollTop)&&T==p.view.translate.x&&c==p.view.translate.y&&m.actions.get("fitWindow").funct()},null,null,"Enter"));this.addAction("keyPressEnter",function(){p.isSelectionEmpty()?m.actions.get("smartFit").funct():p.isEnabled()&&
p.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){m.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(F,P){try{var R=mxUtils.parseXml(F);v.graph.setSelectionCells(v.graph.importGraphModel(R.documentElement))}catch(T){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+T.message)}}));m.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=
-null})}).isEnabled=B;this.addAction("save",function(){m.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=B;this.addAction("saveAs...",function(){m.saveFile(!0)},null,null,Editor.ctrlKey+"+Shift+S");this.addAction("export...",function(){m.showDialog((new ExportDialog(m)).container,300,340,!0,!0)});this.addAction("editDiagram...",function(){var F=new EditDiagramDialog(m);m.showDialog(F.container,620,420,!0,!1);F.init()}).isEnabled=B;this.addAction("pageSetup...",function(){m.showDialog((new PageSetupDialog(m)).container,
-320,240,!0,!0)}).isEnabled=B;this.addAction("print...",function(){m.showPrintDialog()},null,"sprite-print",Editor.ctrlKey+"+P");this.addAction("preview",function(){mxUtils.show(p,null,10,10)});this.addAction("undo",function(){m.undo()},null,"sprite-undo",Editor.ctrlKey+"+Z");this.addAction("redo",function(){m.redo()},null,"sprite-redo",mxClient.IS_WIN?Editor.ctrlKey+"+Y":Editor.ctrlKey+"+Shift+Z");this.addAction("cut",function(){var F=null;try{F=m.copyXml(),null!=F&&p.removeCells(F,!1)}catch(P){}try{null==
+null})}).isEnabled=A;this.addAction("save",function(){m.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=A;this.addAction("saveAs...",function(){m.saveFile(!0)},null,null,Editor.ctrlKey+"+Shift+S");this.addAction("export...",function(){m.showDialog((new ExportDialog(m)).container,300,340,!0,!0)});this.addAction("editDiagram...",function(){var F=new EditDiagramDialog(m);m.showDialog(F.container,620,420,!0,!1);F.init()}).isEnabled=A;this.addAction("pageSetup...",function(){m.showDialog((new PageSetupDialog(m)).container,
+320,240,!0,!0)}).isEnabled=A;this.addAction("print...",function(){m.showPrintDialog()},null,"sprite-print",Editor.ctrlKey+"+P");this.addAction("preview",function(){mxUtils.show(p,null,10,10)});this.addAction("undo",function(){m.undo()},null,"sprite-undo",Editor.ctrlKey+"+Z");this.addAction("redo",function(){m.redo()},null,"sprite-redo",mxClient.IS_WIN?Editor.ctrlKey+"+Y":Editor.ctrlKey+"+Shift+Z");this.addAction("cut",function(){var F=null;try{F=m.copyXml(),null!=F&&p.removeCells(F,!1)}catch(P){}try{null==
F&&mxClipboard.cut(p)}catch(P){m.handleError(P)}},null,"sprite-cut",Editor.ctrlKey+"+X");this.addAction("copy",function(){try{m.copyXml()}catch(F){}try{mxClipboard.copy(p)}catch(F){m.handleError(F)}},null,"sprite-copy",Editor.ctrlKey+"+C");this.addAction("paste",function(){if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())){var F=!1;try{Editor.enableNativeCipboard&&(m.readGraphModelFromClipboard(function(P){if(null!=P){p.getModel().beginUpdate();try{m.pasteXml(P,!0)}finally{p.getModel().endUpdate()}}else mxClipboard.paste(p)}),
-F=!0)}catch(P){}F||mxClipboard.paste(p)}},!1,"sprite-paste",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(F){function P(T){if(null!=T){for(var c=!0,f=0;f<T.length&&c;f++)c=c&&p.model.isEdge(T[f]);var k=p.view.translate;f=p.view.scale;var A=k.x,z=k.y;k=null;if(1==T.length&&c){var C=p.getCellGeometry(T[0]);null!=C&&(k=C.getTerminalPoint(!0))}k=null!=k?k:p.getBoundingBoxFromGeometry(T,c);null!=k&&(c=Math.round(p.snap(p.popupMenuHandler.triggerX/f-A)),f=Math.round(p.snap(p.popupMenuHandler.triggerY/
+F=!0)}catch(P){}F||mxClipboard.paste(p)}},!1,"sprite-paste",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(F){function P(T){if(null!=T){for(var c=!0,f=0;f<T.length&&c;f++)c=c&&p.model.isEdge(T[f]);var k=p.view.translate;f=p.view.scale;var B=k.x,z=k.y;k=null;if(1==T.length&&c){var C=p.getCellGeometry(T[0]);null!=C&&(k=C.getTerminalPoint(!0))}k=null!=k?k:p.getBoundingBoxFromGeometry(T,c);null!=k&&(c=Math.round(p.snap(p.popupMenuHandler.triggerX/f-B)),f=Math.round(p.snap(p.popupMenuHandler.triggerY/
f-z)),p.cellsMoved(T,c-k.x,f-k.y))}}function R(){p.getModel().beginUpdate();try{P(mxClipboard.paste(p))}finally{p.getModel().endUpdate()}}if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())){F=!1;try{Editor.enableNativeCipboard&&(m.readGraphModelFromClipboard(function(T){if(null!=T){p.getModel().beginUpdate();try{P(m.pasteXml(T,!0))}finally{p.getModel().endUpdate()}}else R()}),F=!0)}catch(T){}F||R()}});this.addAction("swap",function(){var F=p.getSelectionCells();2==F.length&&p.swapShapes(F[0],
F[1])});this.addAction("copySize",function(){var F=p.getSelectionCell();p.isEnabled()&&null!=F&&p.getModel().isVertex(F)&&(F=p.getCellGeometry(F),null!=F&&(m.copiedSize=new mxRectangle(F.x,F.y,F.width,F.height)))},null,null,"Alt+Shift+F");this.addAction("pasteSize",function(){if(p.isEnabled()&&!p.isSelectionEmpty()&&null!=m.copiedSize){p.getModel().beginUpdate();try{for(var F=p.getResizableCells(p.getSelectionCells()),P=0;P<F.length;P++)if(p.getModel().isVertex(F[P])){var R=p.getCellGeometry(F[P]);
null!=R&&(R=R.clone(),R.width=m.copiedSize.width,R.height=m.copiedSize.height,p.getModel().setGeometry(F[P],R))}}finally{p.getModel().endUpdate()}}},null,null,"Alt+Shift+V");this.addAction("copyData",function(){var F=p.getSelectionCell()||p.getModel().getRoot();p.isEnabled()&&null!=F&&(F=F.cloneValue(),null==F||isNaN(F.nodeType)||(m.copiedValue=F))},null,null,"Alt+Shift+B");this.addAction("copyAsText",function(){var F=p.getSelectionCell();if(p.isEnabled()&&null!=F)try{p.isHtmlLabel(F)?m.writeHtmlToClipboard(p.getLabel(F),
-mxUtils.bind(this,function(P){m.handleError(P)})):m.writeTextToClipboard(p.getLabel(F),mxUtils.bind(this,function(P){m.handleError(P)}))}catch(P){m.handleError(P)}});this.addAction("pasteData",function(F,P){function R(f,k){var A=T.getValue(f);k=f.cloneValue(k);k.removeAttribute("placeholders");null==A||isNaN(A.nodeType)||k.setAttribute("placeholders",A.getAttribute("placeholders"));null!=F&&mxEvent.isShiftDown(F)||k.setAttribute("label",p.convertValueToString(f));T.setValue(f,k)}F=null!=P?P:F;var T=
+mxUtils.bind(this,function(P){m.handleError(P)})):m.writeTextToClipboard(p.getLabel(F),mxUtils.bind(this,function(P){m.handleError(P)}))}catch(P){m.handleError(P)}});this.addAction("pasteData",function(F,P){function R(f,k){var B=T.getValue(f);k=f.cloneValue(k);k.removeAttribute("placeholders");null==B||isNaN(B.nodeType)||k.setAttribute("placeholders",B.getAttribute("placeholders"));null!=F&&mxEvent.isShiftDown(F)||k.setAttribute("label",p.convertValueToString(f));T.setValue(f,k)}F=null!=P?P:F;var T=
p.getModel();if(p.isEnabled()&&!p.isSelectionEmpty()&&null!=m.copiedValue){T.beginUpdate();try{var c=p.getEditableCells(p.getSelectionCells());if(0==c.length)R(T.getRoot(),m.copiedValue);else for(P=0;P<c.length;P++)R(c[P],m.copiedValue)}finally{T.endUpdate()}}},null,null,"Alt+Shift+E");this.addAction("delete",function(F,P){F=null!=P?P:F;null!=F&&mxEvent.isShiftDown(F)?e():b(null!=F&&(mxEvent.isControlDown(F)||mxEvent.isMetaDown(F)||mxEvent.isAltDown(F)))},null,null,"Delete");this.addAction("deleteAll",
function(){b(!0)});this.addAction("deleteLabels",function(){e()},null,null,Editor.ctrlKey+"+Delete");this.addAction("duplicate",function(){try{p.setSelectionCells(p.duplicateCells()),p.scrollCellToVisible(p.getSelectionCell())}catch(F){m.handleError(F)}},null,null,Editor.ctrlKey+"+D");this.put("mergeCells",new Action(mxResources.get("merge"),function(){var F=m.getSelectionState();if(null!=F.mergeCell){p.getModel().beginUpdate();try{p.setCellStyles("rowspan",F.rowspan,[F.mergeCell]),p.setCellStyles("colspan",
F.colspan,[F.mergeCell])}finally{p.getModel().endUpdate()}}}));this.put("unmergeCells",new Action(mxResources.get("unmerge"),function(){var F=m.getSelectionState();if(0<F.cells.length){p.getModel().beginUpdate();try{p.setCellStyles("rowspan",null,F.cells),p.setCellStyles("colspan",null,F.cells)}finally{p.getModel().endUpdate()}}}));this.put("turn",new Action(mxResources.get("turn")+" / "+mxResources.get("reverse"),function(F,P){F=null!=P?P:F;p.turnShapes(p.getResizableCells(p.getSelectionCells()),
@@ -3013,10 +3028,10 @@ function(){if(p.isEnabled()){var F=p.getEditableCells(p.getSelectionCells());p.m
[],R=0;R<F.length;R++)p.isTableRow(F[R])||p.isTableCell(F[R])||P.push(F[R]);p.removeCellsFromParent(P);0<P.length&&p.scrollCellToVisible(P[0])}}});this.addAction("edit",function(){p.isEnabled()&&p.startEditingAtCell()},null,null,"F2/Enter");this.addAction("editData...",function(){var F=p.getSelectionCell()||p.getModel().getRoot();m.showDataDialog(F)},null,null,Editor.ctrlKey+"+M");this.addAction("editTooltip...",function(){var F=p.getSelectionCell();if(p.isEnabled()&&null!=F&&p.isCellEditable(F)){var P=
"";if(mxUtils.isNode(F.value)){var R=null;Graph.translateDiagram&&null!=Graph.diagramLanguage&&F.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(R=F.value.getAttribute("tooltip_"+Graph.diagramLanguage));null==R&&(R=F.value.getAttribute("tooltip"));null!=R&&(P=R)}P=new TextareaDialog(m,mxResources.get("editTooltip")+":",P,function(T){p.setTooltipForCell(F,T)});m.showDialog(P.container,320,200,!0,!0);P.init()}},null,null,"Alt+Shift+T");this.addAction("openLink",function(){var F=p.getLinkForCell(p.getSelectionCell());
null!=F&&p.openLink(F)});this.addAction("editLink...",function(){var F=p.getSelectionCell();if(p.isEnabled()&&null!=F&&p.isCellEditable(F)){var P=p.getLinkForCell(F,!0)||"";m.showLinkDialog(P,mxResources.get("ok"),function(R,T,c){p.getModel().beginUpdate();try{p.setLinkForCell(F,0<R.length?R:null),p.setAttributeForCell(F,"linkTarget",c)}finally{p.getModel().endUpdate()}},!0,p.getLinkTargetForCell(F))}},null,null,"Alt+Shift+L");this.put("insertImage",new Action(mxResources.get("image")+"...",function(){p.isEnabled()&&
-!p.isCellLocked(p.getDefaultParent())&&(p.clearSelection(),m.actions.get("image").funct())})).isEnabled=B;this.addAction("editImage...",function(){m.actions.get("image").funct()});this.put("insertLink",new Action(mxResources.get("link")+"...",function(){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&m.showLinkDialog("",mxResources.get("ok"),function(F,P,R){F=mxUtils.trim(F);if(0<F.length){var T=null,c=p.getLinkTitle(F);null!=P&&0<P.length&&(T=P[0].iconUrl,c=P[0].name||P[0].type,c=c.charAt(0).toUpperCase()+
+!p.isCellLocked(p.getDefaultParent())&&(p.clearSelection(),m.actions.get("image").funct())})).isEnabled=A;this.addAction("editImage...",function(){m.actions.get("image").funct()});this.put("insertLink",new Action(mxResources.get("link")+"...",function(){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&m.showLinkDialog("",mxResources.get("ok"),function(F,P,R){F=mxUtils.trim(F);if(0<F.length){var T=null,c=p.getLinkTitle(F);null!=P&&0<P.length&&(T=P[0].iconUrl,c=P[0].name||P[0].type,c=c.charAt(0).toUpperCase()+
c.substring(1),30<c.length&&(c=c.substring(0,30)+"..."));P=new mxCell(c,new mxGeometry(0,0,100,40),"fontColor=#0000EE;fontStyle=4;rounded=1;overflow=hidden;"+(null!=T?"shape=label;imageWidth=16;imageHeight=16;spacingLeft=26;align=left;image="+T:"spacing=10;"));P.vertex=!0;T=p.getCenterInsertPoint(p.getBoundingBoxFromGeometry([P],!0));P.geometry.x=T.x;P.geometry.y=T.y;p.setAttributeForCell(P,"linkTarget",R);p.setLinkForCell(P,F);p.cellSizeUpdated(P,!0);p.getModel().beginUpdate();try{P=p.addCell(P),
-p.fireEvent(new mxEventObject("cellsInserted","cells",[P]))}finally{p.getModel().endUpdate()}p.setSelectionCell(P);p.scrollCellToVisible(p.getSelectionCell())}},!0)},null,null,"L")).isEnabled=B;this.addAction("link...",mxUtils.bind(this,function(){if(p.isEnabled())if(p.cellEditor.isContentEditing()){var F=p.getSelectedElement(),P=p.getParentByName(F,"A",p.cellEditor.textarea),R="";if(null==P&&null!=F&&null!=F.getElementsByTagName)for(var T=F.getElementsByTagName("a"),c=0;c<T.length&&null==P;c++)T[c].textContent==
-F.textContent&&(P=T[c]);null!=P&&"A"==P.nodeName&&(R=P.getAttribute("href")||"",p.selectNode(P));var f=p.cellEditor.saveSelection();m.showLinkDialog(R,mxResources.get("ok"),mxUtils.bind(this,function(k){p.cellEditor.restoreSelection(f);null!=k&&p.insertLink(k)}))}else p.isSelectionEmpty()?this.get("insertLink").funct():this.get("editLink").funct()})).isEnabled=B;this.addAction("autosize",function(){var F=p.getSelectionCells();if(null!=F){p.getModel().beginUpdate();try{for(var P=0;P<F.length;P++){var R=
+p.fireEvent(new mxEventObject("cellsInserted","cells",[P]))}finally{p.getModel().endUpdate()}p.setSelectionCell(P);p.scrollCellToVisible(p.getSelectionCell())}},!0)},null,null,"L")).isEnabled=A;this.addAction("link...",mxUtils.bind(this,function(){if(p.isEnabled())if(p.cellEditor.isContentEditing()){var F=p.getSelectedElement(),P=p.getParentByName(F,"A",p.cellEditor.textarea),R="";if(null==P&&null!=F&&null!=F.getElementsByTagName)for(var T=F.getElementsByTagName("a"),c=0;c<T.length&&null==P;c++)T[c].textContent==
+F.textContent&&(P=T[c]);null!=P&&"A"==P.nodeName&&(R=P.getAttribute("href")||"",p.selectNode(P));var f=p.cellEditor.saveSelection();m.showLinkDialog(R,mxResources.get("ok"),mxUtils.bind(this,function(k){p.cellEditor.restoreSelection(f);null!=k&&p.insertLink(k)}))}else p.isSelectionEmpty()?this.get("insertLink").funct():this.get("editLink").funct()})).isEnabled=A;this.addAction("autosize",function(){var F=p.getSelectionCells();if(null!=F){p.getModel().beginUpdate();try{for(var P=0;P<F.length;P++){var R=
F[P];p.getModel().isVertex(R)&&(0<p.getModel().getChildCount(R)?p.updateGroupBounds([R],0,!0):p.updateCellSize(R))}}finally{p.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+Shift+Y");this.addAction("snapToGrid",function(){p.snapCellsToGrid(p.getSelectionCells(),p.gridSize)});this.addAction("formattedText",function(){p.stopEditing();var F=p.getCommonStyle(p.getSelectionCells());F="1"==mxUtils.getValue(F,"html","0")?null:"1";p.getModel().beginUpdate();try{for(var P=p.getEditableCells(p.getSelectionCells()),
R=0;R<P.length;R++)if(state=p.getView().getState(P[R]),null!=state){var T=mxUtils.getValue(state.style,"html","0");if("1"==T&&null==F)p.removeTextStyleForCell(state.cell),p.setCellStyles("html",F,[P[R]]);else if("0"==T&&"1"==F){var c=mxUtils.htmlEntities(p.convertValueToString(state.cell),!1);"0"!=mxUtils.getValue(state.style,"nl2Br","1")&&(c=c.replace(/\n/g,"<br/>"));p.cellLabelChanged(state.cell,Graph.sanitizeHtml(c));p.setCellStyles("html",F,[P[R]])}}m.fireEvent(new mxEventObject("styleChanged",
"keys",["html"],"values",[null!=F?F:"0"],"cells",P))}finally{p.getModel().endUpdate()}});this.addAction("wordWrap",function(){var F=p.getView().getState(p.getSelectionCell()),P="wrap";p.stopEditing();null!=F&&"wrap"==F.style[mxConstants.STYLE_WHITE_SPACE]&&(P=null);p.setCellStyles(mxConstants.STYLE_WHITE_SPACE,P)});this.addAction("rotation",function(){var F="0",P=p.getView().getState(p.getSelectionCell());null!=P&&(F=P.style[mxConstants.STYLE_ROTATION]||F);F=new FilenameDialog(m,F,mxResources.get("apply"),
@@ -3026,9 +3041,9 @@ null,null,Editor.ctrlKey+"+Shift+J");this.addAction("fitPageWidth",mxUtils.bind(
300,80,!0,!0);F.init()}),null,null,Editor.ctrlKey+"+0"));this.addAction("pageScale...",mxUtils.bind(this,function(){var F=new FilenameDialog(this.editorUi,parseInt(100*p.pageScale),mxResources.get("apply"),mxUtils.bind(this,function(P){P=parseInt(P);!isNaN(P)&&0<P&&(P=new ChangePageSetup(m,null,null,null,P/100),P.ignoreColor=!0,P.ignoreImage=!0,p.model.execute(P))}),mxResources.get("pageScale")+" (%)");this.editorUi.showDialog(F.container,300,80,!0,!0);F.init()}));var G=null;G=this.addAction("grid",
function(){p.setGridEnabled(!p.isGridEnabled());p.defaultGridEnabled=p.isGridEnabled();m.fireEvent(new mxEventObject("gridEnabledChanged"))},null,null,Editor.ctrlKey+"+Shift+G");G.setToggleAction(!0);G.setSelectedCallback(function(){return p.isGridEnabled()});G.setEnabled(!1);G=this.addAction("guides",function(){p.graphHandler.guidesEnabled=!p.graphHandler.guidesEnabled;m.fireEvent(new mxEventObject("guidesEnabledChanged"))});G.setToggleAction(!0);G.setSelectedCallback(function(){return p.graphHandler.guidesEnabled});
G.setEnabled(!1);G=this.addAction("animations",function(){Editor.enableAnimations=!Editor.enableAnimations;m.fireEvent(new mxEventObject("enableAnimationsChanged"))});G.setToggleAction(!0);G.setSelectedCallback(function(){return Editor.enableAnimations});G=this.addAction("tooltips",function(){p.tooltipHandler.setEnabled(!p.tooltipHandler.isEnabled());m.fireEvent(new mxEventObject("tooltipsEnabledChanged"))});G.setToggleAction(!0);G.setSelectedCallback(function(){return p.tooltipHandler.isEnabled()});
-G=this.addAction("collapseExpand",function(){var F=new ChangePageSetup(m);F.ignoreColor=!0;F.ignoreImage=!0;F.foldingEnabled=!p.foldingEnabled;p.model.execute(F)});G.setToggleAction(!0);G.setSelectedCallback(function(){return p.foldingEnabled});G.isEnabled=B;G=this.addAction("pageView",mxUtils.bind(this,function(){m.setPageVisible(!p.pageVisible)}));G.setToggleAction(!0);G.setSelectedCallback(function(){return p.pageVisible});G=this.addAction("connectionArrows",function(){p.connectionArrowsEnabled=
+G=this.addAction("collapseExpand",function(){var F=new ChangePageSetup(m);F.ignoreColor=!0;F.ignoreImage=!0;F.foldingEnabled=!p.foldingEnabled;p.model.execute(F)});G.setToggleAction(!0);G.setSelectedCallback(function(){return p.foldingEnabled});G.isEnabled=A;G=this.addAction("pageView",mxUtils.bind(this,function(){m.setPageVisible(!p.pageVisible)}));G.setToggleAction(!0);G.setSelectedCallback(function(){return p.pageVisible});G=this.addAction("connectionArrows",function(){p.connectionArrowsEnabled=
!p.connectionArrowsEnabled;m.fireEvent(new mxEventObject("connectionArrowsChanged"))},null,null,"Alt+Shift+A");G.setToggleAction(!0);G.setSelectedCallback(function(){return p.connectionArrowsEnabled});G=this.addAction("connectionPoints",function(){p.setConnectable(!p.connectionHandler.isEnabled());m.fireEvent(new mxEventObject("connectionPointsChanged"))},null,null,"Alt+Shift+O");G.setToggleAction(!0);G.setSelectedCallback(function(){return p.connectionHandler.isEnabled()});G=this.addAction("copyConnect",
-function(){p.connectionHandler.setCreateTarget(!p.connectionHandler.isCreateTarget());m.fireEvent(new mxEventObject("copyConnectChanged"))});G.setToggleAction(!0);G.setSelectedCallback(function(){return p.connectionHandler.isCreateTarget()});G.isEnabled=B;G=this.addAction("autosave",function(){m.editor.setAutosave(!m.editor.autosave)});G.setToggleAction(!0);G.setSelectedCallback(function(){return m.editor.autosave});G.isEnabled=B;G.visible=!1;this.addAction("help",function(){var F="";mxResources.isLanguageSupported(mxClient.language)&&
+function(){p.connectionHandler.setCreateTarget(!p.connectionHandler.isCreateTarget());m.fireEvent(new mxEventObject("copyConnectChanged"))});G.setToggleAction(!0);G.setSelectedCallback(function(){return p.connectionHandler.isCreateTarget()});G.isEnabled=A;G=this.addAction("autosave",function(){m.editor.setAutosave(!m.editor.autosave)});G.setToggleAction(!0);G.setSelectedCallback(function(){return m.editor.autosave});G.isEnabled=A;G.visible=!1;this.addAction("help",function(){var F="";mxResources.isLanguageSupported(mxClient.language)&&
(F="_"+mxClient.language);p.openLink(RESOURCES_PATH+"/help"+F+".html")});var S=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor...",function(){S||(m.showDialog((new AboutDialog(m)).container,320,280,!0,!0,function(){S=!1}),S=!0)}));G=mxUtils.bind(this,function(F,P,R,T){return this.addAction(F,function(){if(null!=R&&p.cellEditor.isContentEditing())R();else{p.stopEditing(!1);p.getModel().beginUpdate();try{var c=p.getEditableCells(p.getSelectionCells());p.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,
P,c);(P&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?p.updateLabelElements(c,function(k){k.style.fontWeight=null;"B"==k.nodeName&&p.replaceElement(k)}):(P&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?p.updateLabelElements(c,function(k){k.style.fontStyle=null;"I"==k.nodeName&&p.replaceElement(k)}):(P&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&p.updateLabelElements(c,function(k){k.style.textDecoration=null;"U"==k.nodeName&&p.replaceElement(k)});for(var f=0;f<c.length;f++)0==p.model.getChildCount(c[f])&&
p.autoSizeCell(c[f],!1)}finally{p.getModel().endUpdate()}}},null,null,T)});G("bold",mxConstants.FONT_BOLD,function(){document.execCommand("bold",!1,null)},Editor.ctrlKey+"+B");G("italic",mxConstants.FONT_ITALIC,function(){document.execCommand("italic",!1,null)},Editor.ctrlKey+"+I");G("underline",mxConstants.FONT_UNDERLINE,function(){document.execCommand("underline",!1,null)},Editor.ctrlKey+"+U");this.addAction("fontColor...",function(){m.menus.pickColor(mxConstants.STYLE_FONTCOLOR,"forecolor","000000",
@@ -3047,45 +3062,45 @@ F[P];p.getModel().isEdge(R)&&(p.setCellStyles(mxConstants.STYLE_EXIT_X,null,[R])
null!=T&&(T=T.clone(),T.points=null,T.x=0,T.y=0,T.offset=null,p.getModel().setGeometry(R,T))}}}finally{p.getModel().endUpdate()}}},null,null,"Alt+Shift+R");G=this.addAction("subscript",mxUtils.bind(this,function(){p.cellEditor.isContentEditing()&&document.execCommand("subscript",!1,null)}),null,null,Editor.ctrlKey+"+,");G=this.addAction("superscript",mxUtils.bind(this,function(){p.cellEditor.isContentEditing()&&document.execCommand("superscript",!1,null)}),null,null,Editor.ctrlKey+"+.");G=this.addAction("decreaseFontSize",
mxUtils.bind(this,function(){if(!p.isSelectionEmpty()){var F=p.getCurrentCellStyle(p.getSelectionCell());F=mxUtils.getValue(F,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);p.setCellStyles(mxConstants.STYLE_FONTSIZE,Math.max(1,F-1),p.getSelectionCells())}}),null,null,Editor.ctrlKey+"+Shift + (Numpad)");G=this.addAction("increaseFontSize",mxUtils.bind(this,function(){if(!p.isSelectionEmpty()){var F=p.getCurrentCellStyle(p.getSelectionCell());F=mxUtils.getValue(F,mxConstants.STYLE_FONTSIZE,
mxConstants.DEFAULT_FONTSIZE);p.setCellStyles(mxConstants.STYLE_FONTSIZE,Math.min(100,F+1),p.getSelectionCells())}}),null,null,Editor.ctrlKey+"+Shift - (Numpad)");this.addAction("image...",function(){if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())){var F=mxResources.get("image")+" ("+mxResources.get("url")+"):",P=p.getView().getState(p.getSelectionCell()),R="",T=null;null!=P&&(R=P.style[mxConstants.STYLE_IMAGE]||R,T=P.style[mxConstants.STYLE_CLIP_PATH]||T);var c=p.cellEditor.saveSelection();
-m.showImageDialog(F,R,function(f,k,A,z,C,I){if(p.cellEditor.isContentEditing())p.cellEditor.restoreSelection(c),p.insertImage(f,k,A);else{var L=p.getSelectionCells();if(null!=f&&(0<f.length||0<L.length)){var K=null;p.getModel().beginUpdate();try{if(0==L.length){L=[p.insertVertex(p.getDefaultParent(),null,"",0,0,k,A,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")];var O=p.getCenterInsertPoint(p.getBoundingBoxFromGeometry(L,!0));L[0].geometry.x=O.x;L[0].geometry.y=
-O.y;null!=z&&g(L[0],z,C,I,p);K=L;p.fireEvent(new mxEventObject("cellsInserted","cells",K))}p.setCellStyles(mxConstants.STYLE_IMAGE,0<f.length?f:null,L);var da=p.getCurrentCellStyle(L[0]);"image"!=da[mxConstants.STYLE_SHAPE]&&"label"!=da[mxConstants.STYLE_SHAPE]?p.setCellStyles(mxConstants.STYLE_SHAPE,"image",L):0==f.length&&p.setCellStyles(mxConstants.STYLE_SHAPE,null,L);null==z&&p.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,L);if(null!=k&&null!=A)for(f=0;f<L.length;f++){var ea=L[f];if("0"!=p.getCurrentCellStyle(ea).expand){var ca=
-p.getModel().getGeometry(ea);null!=ca&&(ca=ca.clone(),ca.width=k,ca.height=A,p.getModel().setGeometry(ea,ca))}null!=z&&g(ea,z,C,I,p)}}finally{p.getModel().endUpdate()}null!=K&&(p.setSelectionCells(K),p.scrollCellToVisible(K[0]))}}},p.cellEditor.isContentEditing(),!p.cellEditor.isContentEditing(),!0,T)}}).isEnabled=B;this.addAction("crop...",function(){var F=p.getSelectionCell();if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&null!=F){var P=p.getCurrentCellStyle(F),R=P[mxConstants.STYLE_IMAGE],
-T=P[mxConstants.STYLE_SHAPE];R&&"image"==T&&(P=new CropImageDialog(m,R,P[mxConstants.STYLE_CLIP_PATH],function(c,f,k){g(F,c,f,k,p)}),m.showDialog(P.container,300,390,!0,!0))}}).isEnabled=B;G=this.addAction("layers",mxUtils.bind(this,function(){null==this.layersWindow?(this.layersWindow=new LayersWindow(m,document.body.offsetWidth-280,120,212,200),this.layersWindow.window.addListener("show",mxUtils.bind(this,function(){m.fireEvent(new mxEventObject("layers"))})),this.layersWindow.window.addListener("hide",
+m.showImageDialog(F,R,function(f,k,B,z,C,I){if(p.cellEditor.isContentEditing())p.cellEditor.restoreSelection(c),p.insertImage(f,k,B);else{var L=p.getSelectionCells();if(null!=f&&(0<f.length||0<L.length)){var K=null;p.getModel().beginUpdate();try{if(0==L.length){L=[p.insertVertex(p.getDefaultParent(),null,"",0,0,k,B,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")];var O=p.getCenterInsertPoint(p.getBoundingBoxFromGeometry(L,!0));L[0].geometry.x=O.x;L[0].geometry.y=
+O.y;null!=z&&g(L[0],z,C,I,p);K=L;p.fireEvent(new mxEventObject("cellsInserted","cells",K))}p.setCellStyles(mxConstants.STYLE_IMAGE,0<f.length?f:null,L);var da=p.getCurrentCellStyle(L[0]);"image"!=da[mxConstants.STYLE_SHAPE]&&"label"!=da[mxConstants.STYLE_SHAPE]?p.setCellStyles(mxConstants.STYLE_SHAPE,"image",L):0==f.length&&p.setCellStyles(mxConstants.STYLE_SHAPE,null,L);null==z&&p.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,L);if(null!=k&&null!=B)for(f=0;f<L.length;f++){var ea=L[f];if("0"!=p.getCurrentCellStyle(ea).expand){var ca=
+p.getModel().getGeometry(ea);null!=ca&&(ca=ca.clone(),ca.width=k,ca.height=B,p.getModel().setGeometry(ea,ca))}null!=z&&g(ea,z,C,I,p)}}finally{p.getModel().endUpdate()}null!=K&&(p.setSelectionCells(K),p.scrollCellToVisible(K[0]))}}},p.cellEditor.isContentEditing(),!p.cellEditor.isContentEditing(),!0,T)}}).isEnabled=A;this.addAction("crop...",function(){var F=p.getSelectionCell();if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&null!=F){var P=p.getCurrentCellStyle(F),R=P[mxConstants.STYLE_IMAGE],
+T=P[mxConstants.STYLE_SHAPE];R&&"image"==T&&(P=new CropImageDialog(m,R,P[mxConstants.STYLE_CLIP_PATH],function(c,f,k){g(F,c,f,k,p)}),m.showDialog(P.container,300,390,!0,!0))}}).isEnabled=A;G=this.addAction("layers",mxUtils.bind(this,function(){null==this.layersWindow?(this.layersWindow=new LayersWindow(m,document.body.offsetWidth-280,120,212,200),this.layersWindow.window.addListener("show",mxUtils.bind(this,function(){m.fireEvent(new mxEventObject("layers"))})),this.layersWindow.window.addListener("hide",
function(){m.fireEvent(new mxEventObject("layers"))}),this.layersWindow.window.setVisible(!0),m.fireEvent(new mxEventObject("layers")),this.layersWindow.init()):this.layersWindow.window.setVisible(!this.layersWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+Shift+L");G.setToggleAction(!0);G.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.layersWindow&&this.layersWindow.window.isVisible()}));G=this.addAction("format",mxUtils.bind(this,function(){m.toggleFormatPanel()}),null,
null,Editor.ctrlKey+"+Shift+P");G.setToggleAction(!0);G.setSelectedCallback(mxUtils.bind(this,function(){return m.isFormatPanelVisible()}));G=this.addAction("outline",mxUtils.bind(this,function(){null==this.outlineWindow?(this.outlineWindow=new OutlineWindow(m,document.body.offsetWidth-260,100,180,180),this.outlineWindow.window.addListener("show",mxUtils.bind(this,function(){m.fireEvent(new mxEventObject("outline"))})),this.outlineWindow.window.addListener("hide",function(){m.fireEvent(new mxEventObject("outline"))}),
this.outlineWindow.window.setVisible(!0),m.fireEvent(new mxEventObject("outline"))):this.outlineWindow.window.setVisible(!this.outlineWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+Shift+O");G.setToggleAction(!0);G.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.outlineWindow&&this.outlineWindow.window.isVisible()}));this.addAction("editConnectionPoints...",function(){var F=p.getSelectionCell();if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&null!=F&&null!=F.geometry){var P=
-new ConnectionPointsDialog(m,F);m.showDialog(P.container,350,450,!0,!1,function(){P.destroy()});P.init()}},null,null,"Alt+Shift+Q").isEnabled=B};Actions.prototype.addAction=function(b,e,g,m,v){if("..."==b.substring(b.length-3)){b=b.substring(0,b.length-3);var p=mxResources.get(b)+"..."}else p=mxResources.get(b);return this.put(b,new Action(p,e,g,m,v))};Actions.prototype.put=function(b,e){return this.actions[b]=e};Actions.prototype.get=function(b){return this.actions[b]};
+new ConnectionPointsDialog(m,F);m.showDialog(P.container,350,450,!0,!1,function(){P.destroy()});P.init()}},null,null,"Alt+Shift+Q").isEnabled=A};Actions.prototype.addAction=function(b,e,g,m,v){if("..."==b.substring(b.length-3)){b=b.substring(0,b.length-3);var p=mxResources.get(b)+"..."}else p=mxResources.get(b);return this.put(b,new Action(p,e,g,m,v))};Actions.prototype.put=function(b,e){return this.actions[b]=e};Actions.prototype.get=function(b){return this.actions[b]};
function Action(b,e,g,m,v){mxEventSource.call(this);this.label=b;this.funct=this.createFunction(e);this.enabled=null!=g?g:!0;this.iconCls=m;this.shortcut=v;this.visible=!0}mxUtils.extend(Action,mxEventSource);Action.prototype.createFunction=function(b){return b};Action.prototype.setEnabled=function(b){this.enabled!=b&&(this.enabled=b,this.fireEvent(new mxEventObject("stateChanged")))};Action.prototype.isEnabled=function(){return this.enabled};
Action.prototype.setToggleAction=function(b){this.toggleAction=b};Action.prototype.setSelectedCallback=function(b){this.selectedCallback=b};Action.prototype.isSelected=function(){return this.selectedCallback()};DrawioFile=function(b,e){mxEventSource.call(this);this.ui=b;this.setData(e||"");this.initialData=this.getData();this.created=(new Date).getTime();this.stats={opened:0,merged:0,fileMerged:0,fileReloaded:0,conflicts:0,timeouts:0,saved:0,closed:0,destroyed:0,joined:0,checksumErrors:0,bytesSent:0,bytesReceived:0,msgSent:0,msgReceived:0,cacheHits:0,cacheMiss:0,cacheFail:0}};DrawioFile.SYNC=urlParams.sync||"auto";DrawioFile.LAST_WRITE_WINS=!0;DrawioFile.RESTRICT_EXPORT=!1;mxUtils.extend(DrawioFile,mxEventSource);
DrawioFile.prototype.allChangesSavedKey="allChangesSaved";DrawioFile.prototype.savingSpinnerKey="saving";DrawioFile.prototype.savingStatusKey="saving";DrawioFile.prototype.autosaveDelay=1500;DrawioFile.prototype.maxAutosaveDelay=3E4;DrawioFile.prototype.optimisticSyncDelay=300;DrawioFile.prototype.autosaveThread=null;DrawioFile.prototype.lastAutosave=null;DrawioFile.prototype.lastSaved=null;DrawioFile.prototype.lastChanged=null;DrawioFile.prototype.opened=null;DrawioFile.prototype.modified=!1;
DrawioFile.prototype.shadowModified=!1;DrawioFile.prototype.data=null;DrawioFile.prototype.shadowPages=null;DrawioFile.prototype.changeListenerEnabled=!0;DrawioFile.prototype.lastAutosaveRevision=null;DrawioFile.prototype.maxAutosaveRevisionDelay=3E5;DrawioFile.prototype.inConflictState=!1;DrawioFile.prototype.invalidChecksum=!1;DrawioFile.prototype.ageStart=null;DrawioFile.prototype.getSize=function(){return null!=this.data?this.data.length:0};
DrawioFile.prototype.getShadowPages=function(){null==this.shadowPages&&(this.shadowPages=this.ui.getPagesForXml(this.initialData));return this.shadowPages};DrawioFile.prototype.setShadowPages=function(b){this.shadowPages=b};
-DrawioFile.prototype.synchronizeFile=function(b,e){if(this.savingFile)null!=e&&e({message:mxResources.get("busy")});else{var g=!0,m=window.setTimeout(mxUtils.bind(this,function(){g=!1;null!=e&&e({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,e)})})}),this.ui.timeout),v=mxUtils.bind(this,function(B){g&&(window.clearTimeout(m),null!=e&&e(B))}),p=mxUtils.bind(this,function(){return!g});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,
-function(B){g&&(window.clearTimeout(m),this.sync.cleanup(b,e,B))}),v,p):this.updateFile(mxUtils.bind(this,function(){g&&(window.clearTimeout(m),null!=b&&b())}),v,p)}};
+DrawioFile.prototype.synchronizeFile=function(b,e){if(this.savingFile)null!=e&&e({message:mxResources.get("busy")});else{var g=!0,m=window.setTimeout(mxUtils.bind(this,function(){g=!1;null!=e&&e({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,e)})})}),this.ui.timeout),v=mxUtils.bind(this,function(A){g&&(window.clearTimeout(m),null!=e&&e(A))}),p=mxUtils.bind(this,function(){return!g});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,
+function(A){g&&(window.clearTimeout(m),this.sync.cleanup(b,e,A))}),v,p):this.updateFile(mxUtils.bind(this,function(){g&&(window.clearTimeout(m),null!=b&&b())}),v,p)}};
DrawioFile.prototype.updateFile=function(b,e,g,m,v){null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",v,"invalidChecksum",this.invalidChecksum),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():this.getLatestVersion(mxUtils.bind(this,function(p){try{null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[p]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():null!=p?this.mergeFile(p,b,e,
-m,v):this.reloadFile(b,e))}catch(B){null!=e&&e(B)}}),e))};
-DrawioFile.prototype.mergeFile=function(b,e,g,m,v){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var B=this.getShadowPages(),G=[this.ui.diffPages(null!=m?m:B,p)],S=this.ignorePatches(G);if(S)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",S),null!=e&&e();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var F=this.isModified()?this.ui.diffPages(B,
-this.isRealtime()?this.ownPages:this.ui.pages):null,P=this.ui.patchPages(this.ui.clonePages(B),G[0]),R=this.ui.getHashValueForPages(P,{}),T=this.ui.getHashValueForPages(p,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",B,"pages",p,"patched",P,"patches",G,"changes",F,"checksum",R,"current",T,"valid",R==T,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",v);if(null!=R&&R!=T)this.checksumError(g,G,null,null,"mergeFile",
-R,T,b.getCurrentRevisionId());else{this.setShadowPages(p);if(null!=this.sync){var c=this.sync.patchRealtime(G,DrawioFile.LAST_WRITE_WINS?F:null,null,v);null==c||mxUtils.isEmptyObject(c)||G.push(c)}this.patch(G,DrawioFile.LAST_WRITE_WINS?F:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();null!=e&&e()}}catch(A){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=g&&g(A);try{var f=this.getCurrentUser(),k=null!=f?
-f.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),k,A)}catch(z){}}}else throw Error(mxResources.get("notADiagramFile"));}catch(A){null!=g&&g(A)}};
+m,v):this.reloadFile(b,e))}catch(A){null!=e&&e(A)}}),e))};
+DrawioFile.prototype.mergeFile=function(b,e,g,m,v){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var A=this.getShadowPages(),G=[this.ui.diffPages(null!=m?m:A,p)],S=this.ignorePatches(G);if(S)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",S),null!=e&&e();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var F=this.isModified()?this.ui.diffPages(A,
+this.isRealtime()?this.ownPages:this.ui.pages):null,P=this.ui.patchPages(this.ui.clonePages(A),G[0]),R=this.ui.getHashValueForPages(P,{}),T=this.ui.getHashValueForPages(p,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",A,"pages",p,"patched",P,"patches",G,"changes",F,"checksum",R,"current",T,"valid",R==T,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",v);if(null!=R&&R!=T)this.checksumError(g,G,null,null,"mergeFile",
+R,T,b.getCurrentRevisionId());else{this.setShadowPages(p);if(null!=this.sync){var c=this.sync.patchRealtime(G,DrawioFile.LAST_WRITE_WINS?F:null,null,v);null==c||mxUtils.isEmptyObject(c)||G.push(c)}this.patch(G,DrawioFile.LAST_WRITE_WINS?F:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();null!=e&&e()}}catch(B){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=g&&g(B);try{var f=this.getCurrentUser(),k=null!=f?
+f.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),k,B)}catch(z){}}}else throw Error(mxResources.get("notADiagramFile"));}catch(B){null!=g&&g(B)}};
DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var e=new mxCodec(mxUtils.createXmlDocument()),g=e.document.createElement("mxfile");if(null!=b)for(var m=0;m<b.length;m++){var v=e.encode(new mxGraphModel(b[m].root));"1"!=urlParams.dev&&(v=this.ui.anonymizeNode(v,!0));v.setAttribute("id",b[m].getId());b[m].viewState&&this.ui.editor.graph.saveViewState(b[m].viewState,v,!0);g.appendChild(v)}return mxUtils.getPrettyXml(g)};
DrawioFile.prototype.compressReportData=function(b,e,g){e=null!=e?e:1E4;null!=g&&null!=b&&b.length>g?b=b.substring(0,g)+"[...]":null!=b&&b.length>e&&(b=Graph.compress(b)+"\n");return b};
-DrawioFile.prototype.checksumError=function(b,e,g,m,v,p,B,G){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var S=this.getCurrentUser(),F=null!=S?S.id:"unknown",P=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",R=JSON.stringify(e).length,T=null;if(null!=e&&1E3>R){for(b=0;b<e.length;b++)this.ui.anonymizePatch(e[b]);T=JSON.stringify(e);T=null!=T&&1E3>T.length?Graph.compress(T):
-null}this.getLatestVersion(mxUtils.bind(this,function(c){try{var f=null!=T?"report":"error",k=this.ui.getHashValueForPages(c.getShadowPages()),A="unknown",z="unknown",C="unknown";try{var I=null!=c.initialData&&0<c.initialData.length?mxUtils.parseXml(c.initialData).documentElement:null;null!=I&&(null!=I.getAttribute("version")&&(A=I.getAttribute("version")),null!=I.getAttribute("agent")&&(z=I.getAttribute("agent")),null!=I.getAttribute("type")&&(C=I.getAttribute("type")))}catch(L){}EditorUi.logError("Checksum "+
-f+" in "+v,null,this.getMode()+"."+P,"user_"+F+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+R+"-patches_"+e.length+(null!=T?"-json_"+T:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=B?"-current_"+B:"")+(null!=G?"-rev_"+this.ui.hashValue(G):"")+(null!=k?"-latest_"+k:"")+"-latestRev_"+this.ui.hashValue(c.getCurrentRevisionId())+("-latestVersion_"+A)+("-latestAgent_"+z)+("-latestType_"+C));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+P,action:v,label:"user_"+
+DrawioFile.prototype.checksumError=function(b,e,g,m,v,p,A,G){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var S=this.getCurrentUser(),F=null!=S?S.id:"unknown",P=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",R=JSON.stringify(e).length,T=null;if(null!=e&&1E3>R){for(b=0;b<e.length;b++)this.ui.anonymizePatch(e[b]);T=JSON.stringify(e);T=null!=T&&1E3>T.length?Graph.compress(T):
+null}this.getLatestVersion(mxUtils.bind(this,function(c){try{var f=null!=T?"report":"error",k=this.ui.getHashValueForPages(c.getShadowPages()),B="unknown",z="unknown",C="unknown";try{var I=null!=c.initialData&&0<c.initialData.length?mxUtils.parseXml(c.initialData).documentElement:null;null!=I&&(null!=I.getAttribute("version")&&(B=I.getAttribute("version")),null!=I.getAttribute("agent")&&(z=I.getAttribute("agent")),null!=I.getAttribute("type")&&(C=I.getAttribute("type")))}catch(L){}EditorUi.logError("Checksum "+
+f+" in "+v,null,this.getMode()+"."+P,"user_"+F+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+R+"-patches_"+e.length+(null!=T?"-json_"+T:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=A?"-current_"+A:"")+(null!=G?"-rev_"+this.ui.hashValue(G):"")+(null!=k?"-latest_"+k:"")+"-latestRev_"+this.ui.hashValue(c.getCurrentRevisionId())+("-latestVersion_"+B)+("-latestAgent_"+z)+("-latestType_"+C));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+P,action:v,label:"user_"+
F+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+R+"-patches_"+e.length+"-size_"+this.getSize()})}catch(L){}}),function(){})}catch(c){}};
-DrawioFile.prototype.sendErrorReport=function(b,e,g,m){try{var v=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),B=this.getCurrentUser(),G=null!=B?this.ui.hashValue(B.id):"unknown",S=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",F=this.getTitle(),P=F.lastIndexOf(".");B="xml";0<P&&(B=F.substring(P));var R=null!=g?g.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
-":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+B+")\nUser="+G+S+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=e?"\n\n"+e:
+DrawioFile.prototype.sendErrorReport=function(b,e,g,m){try{var v=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),A=this.getCurrentUser(),G=null!=A?this.ui.hashValue(A.id):"unknown",S=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",F=this.getTitle(),P=F.lastIndexOf(".");A="xml";0<P&&(A=F.substring(P));var R=null!=g?g.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
+":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+A+")\nUser="+G+S+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=e?"\n\n"+e:
"")+(null!=g?"\n\nError: "+g.message:"")+"\n\nStack:\n"+R+"\n\nShadow:\n"+v+"\n\nData:\n"+p,m)}catch(T){}};
-DrawioFile.prototype.reloadFile=function(b,e){try{this.stats.fileReloaded++;var g=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),m=this.ui.editor.graph,v=m.getSelectionCells(),p=m.getViewState(),B=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(G){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[g],"viewState",[p],"latestFile",G);null!=G?(this.ui.replaceFileData(G.getData(),
-[g]),this.ui.restoreViewState(B,p,v),this.setDescriptor(G.getDescriptor()),this.descriptorChanged(),null!=b&&b()):(this.ui.spinner.stop(),this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){var S=this.ui.getCurrentFile();null!=S&&(S.stats=this.stats,S.patch([g]),S.fileChanged());this.ui.restoreViewState(B,p,v);null!=b&&b()}else null!=e&&e(this.ui.fileLoadedError)}),!0))}),e)}catch(G){null!=e&&e(G)}};
+DrawioFile.prototype.reloadFile=function(b,e){try{this.stats.fileReloaded++;var g=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),m=this.ui.editor.graph,v=m.getSelectionCells(),p=m.getViewState(),A=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(G){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[g],"viewState",[p],"latestFile",G);null!=G?(this.ui.replaceFileData(G.getData(),
+[g]),this.ui.restoreViewState(A,p,v),this.setDescriptor(G.getDescriptor()),this.descriptorChanged(),null!=b&&b()):(this.ui.spinner.stop(),this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){var S=this.ui.getCurrentFile();null!=S&&(S.stats=this.stats,S.patch([g]),S.fileChanged());this.ui.restoreViewState(A,p,v);null!=b&&b()}else null!=e&&e(this.ui.fileLoadedError)}),!0))}),e)}catch(G){null!=e&&e(G)}};
DrawioFile.prototype.copyFile=function(b,e){this.ui.editor.editAsNew(this.ui.getFileData(!0),this.ui.getCopyFilename(this))};DrawioFile.prototype.ignorePatches=function(b){var e=!0;if(null!=b)for(var g=0;g<b.length&&e;g++)e=e&&mxUtils.isEmptyObject(b[g]);return e};
-DrawioFile.prototype.patch=function(b,e,g,m){if(null!=b){var v=this.ui.editor.undoManager,p=v.history.slice(),B=v.indexOfNextAdd,G=this.ui.editor.graph;G.container.style.visibility="hidden";var S=this.changeListenerEnabled;this.changeListenerEnabled=g;var F=G.foldingEnabled,P=G.mathEnabled,R=G.cellRenderer.redraw;G.cellRenderer.redraw=function(z){z.view.graph.isEditing(z.cell)&&(z.view.graph.scrollCellToVisible(z.cell),z.view.graph.cellEditor.resize());R.apply(this,arguments)};G.model.beginUpdate();
-try{if(g){for(var T=this.ui.pages.slice(),c=this.ui.currentPage,f=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified()),k=0;k<f.length;k++){var A=mxUtils.indexOf(this.ui.pages,f[k]);0>A?this.ui.insertPage(f[k],Math.min(k,this.ui.pages.length)):this.ui.movePage(A,k)}for(k=0;k<T.length;k++)0>mxUtils.indexOf(f,T[k])&&this.ui.removePage(T[k]);0<=mxUtils.indexOf(this.ui.pages,c)&&this.ui.selectPage(c,!0)}else this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified());0==this.ui.pages.length&&
-this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);G.checkDefaultParent()}finally{G.container.style.visibility="";G.model.endUpdate();G.cellRenderer.redraw=R;this.changeListenerEnabled=S;g||(v.history=p,v.indexOfNextAdd=B,v.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)P!=G.mathEnabled?(this.ui.editor.updateGraphComponents(),G.refresh()):(F!=G.foldingEnabled?
+DrawioFile.prototype.patch=function(b,e,g,m){if(null!=b){var v=this.ui.editor.undoManager,p=v.history.slice(),A=v.indexOfNextAdd,G=this.ui.editor.graph;G.container.style.visibility="hidden";var S=this.changeListenerEnabled;this.changeListenerEnabled=g;var F=G.foldingEnabled,P=G.mathEnabled,R=G.cellRenderer.redraw;G.cellRenderer.redraw=function(z){z.view.graph.isEditing(z.cell)&&(z.view.graph.scrollCellToVisible(z.cell),z.view.graph.cellEditor.resize());R.apply(this,arguments)};G.model.beginUpdate();
+try{if(g){for(var T=this.ui.pages.slice(),c=this.ui.currentPage,f=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified()),k=0;k<f.length;k++){var B=mxUtils.indexOf(this.ui.pages,f[k]);0>B?this.ui.insertPage(f[k],Math.min(k,this.ui.pages.length)):this.ui.movePage(B,k)}for(k=0;k<T.length;k++)0>mxUtils.indexOf(f,T[k])&&this.ui.removePage(T[k]);0<=mxUtils.indexOf(this.ui.pages,c)&&this.ui.selectPage(c,!0)}else this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified());0==this.ui.pages.length&&
+this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);G.checkDefaultParent()}finally{G.container.style.visibility="";G.model.endUpdate();G.cellRenderer.redraw=R;this.changeListenerEnabled=S;g||(v.history=p,v.indexOfNextAdd=A,v.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)P!=G.mathEnabled?(this.ui.editor.updateGraphComponents(),G.refresh()):(F!=G.foldingEnabled?
G.view.revalidate():G.view.validate(),G.sizeDidChange());null!=this.sync&&this.isRealtime()&&!m&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",e,"undoable",g)}return b};
DrawioFile.prototype.save=function(b,e,g,m,v,p){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",m,"overwrite",v,"manual",p,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!v&&this.invalidChecksum)if(null!=g)g({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=e&&e();else if(null!=g)g({message:mxResources.get("readOnly")});
-else throw Error(mxResources.get("readOnly"));}catch(B){if(null!=g)g(B);else throw B;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var e=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=e&&(e.viewState=this.ui.editor.graph.getViewState(),e.needsUpdate=!0)}e=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return e};
+else throw Error(mxResources.get("readOnly"));}catch(A){if(null!=g)g(A);else throw A;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var e=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=e&&(e.viewState=this.ui.editor.graph.getViewState(),e.needsUpdate=!0)}e=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return e};
DrawioFile.prototype.updateFileData=function(){null!=this.sync&&this.sync.sendLocalChanges();this.setData(this.createData());null!=this.sync&&this.sync.fileDataUpdated()};DrawioFile.prototype.isCompressedStorage=function(){return Editor.defaultCompressed};DrawioFile.prototype.isCompressed=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("compressed"):null;return null!=b?"false"!=b:this.isCompressedStorage()&&Editor.compressXml};
DrawioFile.prototype.setLocked=function(b){this.ui.fileNode.setAttribute("locked",b?"true":"false");this.ui.fireEvent(new mxEventObject("lockedChanged"));this.fileChanged();b&&this.ui.editor.graph.clearSelection()};DrawioFile.prototype.isLocked=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("locked"):null;return null!=b?"true"==b:!1};DrawioFile.prototype.saveAs=function(b,e,g){};DrawioFile.prototype.saveFile=function(b,e,g,m){};DrawioFile.prototype.getFileUrl=function(){return null};
DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified};DrawioFile.prototype.setShadowModified=function(b){this.shadowModified=b};DrawioFile.prototype.setModified=function(b){this.shadowModified=this.modified=b};
@@ -3124,7 +3139,7 @@ DrawioFile.prototype.handleFileSuccess=function(b){this.ui.spinner.stop();this.u
this.sync&&(this.sync.resetUpdateStatusThread(),this.sync.remoteFileChanged&&(this.sync.remoteFileChanged=!1,this.sync.fileChangedNotify()))):this.ui.editor.setStatus(""))};
DrawioFile.prototype.handleFileError=function(b,e){this.ui.spinner.stop();this.ui.getCurrentFile()==this&&(this.inConflictState?this.handleConflictError(b,e):(this.isModified()&&this.addUnsavedStatus(b),e?this.ui.handleError(b,null!=b?mxResources.get("errorSavingFile"):null):this.isModified()||(b=this.getErrorMessage(b),null!=b&&60<b.length&&(b=b.substring(0,60)+"..."),this.ui.editor.setStatus('<div class="geStatusAlert">'+mxUtils.htmlEntities(mxResources.get("error"))+(null!=b?" ("+mxUtils.htmlEntities(b)+
")":"")+"</div>"))))};
-DrawioFile.prototype.handleConflictError=function(b,e){var g=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),m=mxUtils.bind(this,function(B){this.handleFileError(B,!0)}),v=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.editor.setStatus(""),this.save(!0,g,m,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),p=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
+DrawioFile.prototype.handleConflictError=function(b,e){var g=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),m=mxUtils.bind(this,function(A){this.handleFileError(A,!0)}),v=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.editor.setStatus(""),this.save(!0,g,m,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),p=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,g,m,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),m)});"none"==DrawioFile.SYNC?this.showCopyDialog(g,m,v):this.invalidChecksum&&e?this.showRefreshDialog(g,m,this.getErrorMessage(b)):e?this.showConflictDialog(v,p):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));
this.synchronizeFile(g,m)}))};DrawioFile.prototype.getErrorMessage=function(b){var e=null!=b?null!=b.error?b.error.message:b.message:null;null==e&&null!=b&&b.code==App.ERROR_TIMEOUT?e=mxResources.get("timeout"):"0"==e&&(e=mxResources.get("noResponse"));return e};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval};
DrawioFile.prototype.compressionChanged=function(b){var e=null!=this.ownPages?this.ownPages:this.ui.pages;if(null!=e)for(var g=0;g<e.length;g++){var m=e[g].node;if(null!=m&&(null==this.ui.currentPage||this.ui.currentPage.getId()!=e[g].getId())){var v=m.getElementsByTagName("mxGraphModel");v=0<v.length?v[0]:null;var p=Graph.decompress(mxUtils.getNodeValue(m));b?0==p.length&&null!=v&&(EditorUi.removeChildNodes(m),mxUtils.setTextContent(m,Graph.compressNode(v)),EditorUi.debug("DrawioFile.compressionChanged",
@@ -3132,19 +3147,19 @@ DrawioFile.prototype.compressionChanged=function(b){var e=null!=this.ownPages?th
DrawioFile.prototype.fileChanged=function(b){b=null!=b?b:!0;this.lastChanged=new Date;this.setModified(!0);EditorUi.debug("DrawioFile.fileChanged",[this],"autosaveDelay",this.autosaveDelay,"autosave",this.isAutosave(),"saving",this.savingFile);this.isAutosave()?(null!=this.savingStatusKey&&this.addAllSavedStatus(mxUtils.htmlEntities(mxResources.get(this.savingStatusKey))+"..."),this.ui.scheduleSanityCheck(),null==this.ageStart&&(this.ageStart=new Date),this.autosave(this.autosaveDelay,this.maxAutosaveDelay,
mxUtils.bind(this,function(e){this.ui.stopSanityCheck();null==this.autosaveThread?(this.handleFileSuccess(!0),this.ageStart=null):this.isModified()&&(this.ui.scheduleSanityCheck(),this.ageStart=this.lastChanged)}),mxUtils.bind(this,function(e){this.handleFileError(e)}))):(this.ageStart=null,this.isAutosaveOptional()&&this.ui.editor.autosave||this.inConflictState||this.addUnsavedStatus());null!=this.sync&&b&&this.sync.localFileChanged()};
DrawioFile.prototype.createSecret=function(b){var e=Editor.guid(32);Editor.enableRealtimeCache&&null!=this.sync&&!this.isOptimisticSync()?this.sync.createToken(e,mxUtils.bind(this,function(g){EditorUi.debug("DrawioFile.createSecret",[this],"secret",e,"token",g);b(e,g)}),mxUtils.bind(this,function(){b(e)})):b(e)};DrawioFile.prototype.fileSaving=function(){null!=this.sync&&this.sync.fileSaving()};
-DrawioFile.prototype.fileSaved=function(b,e,g,m,v,p,B){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;p=null!=p?p:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(p),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=g&&g()):this.sync.fileSaved(p,e,g,m,v,B)}catch(F){this.invalidChecksum=
+DrawioFile.prototype.fileSaved=function(b,e,g,m,v,p,A){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;p=null!=p?p:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(p),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=g&&g()):this.sync.fileSaved(p,e,g,m,v,A)}catch(F){this.invalidChecksum=
this.inConflictState=!0;this.descriptorChanged();null!=m&&m(F);try{var G=this.getCurrentUser(),S=null!=G?G.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),S,F)}catch(P){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[e],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(F){this.descriptorChanged(),null!=m&&m(F)}};
-DrawioFile.prototype.autosave=function(b,e,g,m){null==this.lastAutosave&&(this.lastAutosave=Date.now());var v=Date.now()-this.lastAutosave<e?b:0;this.clearAutosave();var p=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==p&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var B=this.isAutosaveRevision();
-B&&(this.lastAutosaveRevision=(new Date).getTime());this.save(B,mxUtils.bind(this,function(G){this.autosaveCompleted();null!=g&&g(G)}),mxUtils.bind(this,function(G){null!=m&&m(G)}))}else this.isModified()||this.ui.editor.setStatus(""),null!=g&&g(null)}catch(G){null!=m&&m(G)}}),v);this.autosaveThread=p;EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"delay",b,"maxDelay",e,"actualDelay",v,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};
+DrawioFile.prototype.autosave=function(b,e,g,m){null==this.lastAutosave&&(this.lastAutosave=Date.now());var v=Date.now()-this.lastAutosave<e?b:0;this.clearAutosave();var p=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==p&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var A=this.isAutosaveRevision();
+A&&(this.lastAutosaveRevision=(new Date).getTime());this.save(A,mxUtils.bind(this,function(G){this.autosaveCompleted();null!=g&&g(G)}),mxUtils.bind(this,function(G){null!=m&&m(G)}))}else this.isModified()||this.ui.editor.setStatus(""),null!=g&&g(null)}catch(G){null!=m&&m(G)}}),v);this.autosaveThread=p;EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"delay",b,"maxDelay",e,"actualDelay",v,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};
DrawioFile.prototype.autosaveCompleted=function(){};DrawioFile.prototype.clearAutosave=function(){null!=this.autosaveThread&&(window.clearTimeout(this.autosaveThread),this.autosaveThread=null)};DrawioFile.prototype.isAutosaveRevision=function(){var b=(new Date).getTime();return null==this.lastAutosaveRevision||b-this.lastAutosaveRevision>this.maxAutosaveRevisionDelay};DrawioFile.prototype.descriptorChanged=function(){this.fireEvent(new mxEventObject("descriptorChanged"))};
DrawioFile.prototype.contentChanged=function(){this.fireEvent(new mxEventObject("contentChanged"))};DrawioFile.prototype.close=function(b){try{this.isAutosave()&&this.isModified()&&(this.updateFileData(),this.save(this.isAutosaveRevision(),null,null,b))}catch(e){}this.stats.closed++;this.destroy()};DrawioFile.prototype.hasSameExtension=function(b,e){if(null!=b&&null!=e){var g=b.lastIndexOf(".");b=0<g?b.substring(g):"";g=e.lastIndexOf(".");return b===(0<g?e.substring(g):"")}return b==e};
DrawioFile.prototype.removeListeners=function(){null!=this.changeListener&&(this.ui.editor.graph.model.removeListener(this.changeListener),this.ui.editor.graph.removeListener(this.changeListener),this.ui.removeListener(this.changeListener),this.changeListener=null)};DrawioFile.prototype.destroy=function(){this.clearAutosave();this.removeListeners();this.stats.destroyed++;null!=this.sync&&(this.sync.destroy(),this.sync=null)};DrawioFile.prototype.commentsSupported=function(){return!1};
-DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,m,v,p,B){DrawioFile.call(this,b,e);this.title=g;this.mode=m?null:App.MODE_DEVICE;this.fileHandle=v;this.desc=p;this.editable=B};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};
+DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,m,v,p,A){DrawioFile.call(this,b,e);this.title=g;this.mode=m?null:App.MODE_DEVICE;this.fileHandle=v;this.desc=p;this.editable=A};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};
LocalFile.prototype.getTitle=function(){return this.title};LocalFile.prototype.isRenamable=function(){return!0};LocalFile.prototype.isEditable=function(){return DrawioFile.prototype.isEditable.apply(this,arguments)&&(null==this.editable||this.editable)};LocalFile.prototype.setEditable=function(b){this.editable=b;this.descriptorChanged()};LocalFile.prototype.save=function(b,e,g,m,v){this.saveAs(this.title,e,g,m,v)};LocalFile.prototype.saveAs=function(b,e,g,m,v){this.saveFile(b,!1,e,g,null,m,v)};
LocalFile.prototype.getDescriptor=function(){return this.desc};LocalFile.prototype.setDescriptor=function(b){this.desc=b};LocalFile.prototype.getLatestVersion=function(b,e){null==this.fileHandle?null!=e&&e({message:mxResources.get("cannotOpenFile")}):this.ui.loadFileSystemEntry(this.fileHandle,b,e)};
-LocalFile.prototype.saveFile=function(b,e,g,m,v,p,B){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;v||this.updateFileData();var G=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var S=this.getData(),F=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=g&&g()}),P=mxUtils.bind(this,function(R){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
-!0;var T=mxUtils.bind(this,function(f){this.savingFile=!1;null!=m&&m({error:f})});this.saveDraft(S);this.fileHandle.createWritable().then(mxUtils.bind(this,function(f){this.fileHandle.getFile().then(mxUtils.bind(this,function(k){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[k],"conflict",this.desc.lastModified!=k.lastModified);B||this.desc.lastModified==k.lastModified?f.write(G?this.ui.base64ToBlob(R,"image/png"):R).then(mxUtils.bind(this,function(){f.close().then(mxUtils.bind(this,
-function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(A){try{var z=this.desc;this.savingFile=!1;this.desc=A;this.fileSaved(S,z,F,T);this.removeDraft()}catch(C){T(C)}}),T)}),T)}),T):(this.inConflictState=!0,T())}),mxUtils.bind(this,function(k){this.invalidFileHandle=!0;T(k)}))}),T)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(R,b,G?"image/png":"text/xml",G);else if(R.length<MAX_REQUEST_SIZE){var c=b.lastIndexOf(".");c=0<c?b.substring(c+1):"xml";
+LocalFile.prototype.saveFile=function(b,e,g,m,v,p,A){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;v||this.updateFileData();var G=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var S=this.getData(),F=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=g&&g()}),P=mxUtils.bind(this,function(R){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
+!0;var T=mxUtils.bind(this,function(f){this.savingFile=!1;null!=m&&m({error:f})});this.saveDraft(S);this.fileHandle.createWritable().then(mxUtils.bind(this,function(f){this.fileHandle.getFile().then(mxUtils.bind(this,function(k){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[k],"conflict",this.desc.lastModified!=k.lastModified);A||this.desc.lastModified==k.lastModified?f.write(G?this.ui.base64ToBlob(R,"image/png"):R).then(mxUtils.bind(this,function(){f.close().then(mxUtils.bind(this,
+function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(B){try{var z=this.desc;this.savingFile=!1;this.desc=B;this.fileSaved(S,z,F,T);this.removeDraft()}catch(C){T(C)}}),T)}),T)}),T):(this.inConflictState=!0,T())}),mxUtils.bind(this,function(k){this.invalidFileHandle=!0;T(k)}))}),T)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(R,b,G?"image/png":"text/xml",G);else if(R.length<MAX_REQUEST_SIZE){var c=b.lastIndexOf(".");c=0<c?b.substring(c+1):"xml";
(new mxXmlRequest(SAVE_URL,"format="+c+"&xml="+encodeURIComponent(R)+"&filename="+encodeURIComponent(b)+(G?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(R)}));F()}});G?(e=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(R){P(R)}),m,this.ui.getCurrentFile()!=this?S:null,e.scale,e.border)):P(S)};
LocalFile.prototype.rename=function(b,e,g){this.title=b;this.descriptorChanged();null!=e&&e()};(function(){"undefined"!==typeof html4&&(html4.ATTRIBS["span::data-lucid-content"]=0,html4.ATTRIBS["span::data-lucid-type"]=0,html4.ATTRIBS["font::data-font-src"]=0);Editor.sketchFontFamily="Architects Daughter";Editor.sketchFontSource="https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter";Editor.sketchFonts=[{fontFamily:Editor.sketchFontFamily,fontUrl:decodeURIComponent(Editor.sketchFontSource)}];Editor.sketchDefaultCurveFitting="1";Editor.sketchDefaultJiggle="2";Editor.thinFormatImage=
"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0ibTM2LjUgMTguMzUtNi44NS02Ljg1IDMuMjUtMy4ycS44NS0uODUgMi4wMjUtLjg1IDEuMTc1IDAgMi4wMjUuODVsMi43NSAyLjhxLjg1LjguODUgMnQtLjg1IDJaTTYuODUgNDEuMXYtNi45bDkuNTUtOS41NUw1LjUgMTMuN2w3LjgtNy44NSAxMSAxMSA1LjM1LTUuMzUgNi44NSA2Ljg1LTUuMzUgNS4zNSAxMSAxMS03Ljg1IDcuNzUtMTAuOTUtMTAuOS05LjYgOS41NVptMTEuMi0xOC4wNSA0LjY1LTQuNi00LjA1LTQuMDUtMi4zNSAyLjQtMS42LTEuNiAyLjM1LTIuNC0zLjc1LTMuNzUtNC42IDQuNjVabTE2LjIgMTYuMjUgNC42NS00LjY1LTMuNzUtMy43NS0yLjQgMi40LTEuNi0xLjYgMi40LTIuNC00LjA1LTQtNC42IDQuNjVabS0yNS4xLS40NWgzLjZsMjAuNS0yMC40NS0zLjY1LTMuNjVMOS4xNSAzNS4yWiIvPjwvc3ZnPg==";
@@ -3226,34 +3241,34 @@ type:"bool",defVal:!1,isVisible:function(l,u){u=u.editorUi.editor.graph.model;re
defVal:!1},{name:"resizable",dispName:"Resizable",type:"bool",defVal:!0},{name:"resizeWidth",dispName:"Resize Width",type:"bool",defVal:!1},{name:"resizeHeight",dispName:"Resize Height",type:"bool",defVal:!1},{name:"rotatable",dispName:"Rotatable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"treeFolding",dispName:"Tree Folding",type:"bool",defVal:!1},{name:"treeMoving",dispName:"Tree Moving",
type:"bool",defVal:!1},{name:"pointerEvents",dispName:"Pointer Events",type:"bool",defVal:!0,isVisible:function(l,u){var H=mxUtils.getValue(l.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||u.editorUi.editor.graph.isSwimlane(l.vertices[0])||null==H||H==mxConstants.NONE||0==mxUtils.getValue(l.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(l.style,mxConstants.STYLE_OPACITY,100)||null!=l.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",
type:"bool",defVal:!1,isVisible:function(l,u){return 0<l.vertices.length&&u.editorUi.editor.graph.isContainer(l.vertices[0])}}].concat(Editor.commonProperties);Editor.defaultCsvValue='##\n## Example CSV import. Use ## for comments and # for configuration. Paste CSV below.\n## The following names are reserved and should not be used (or ignored):\n## id, tooltip, placeholder(s), link and label (see below)\n##\n#\n## Node label with placeholders and HTML.\n## Default is \'%name_of_first_column%\'.\n#\n# label: %name%<br><i style="color:gray;">%position%</i><br><a href="mailto:%email%">Email</a>\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Parent style for nodes with child nodes (placeholders are replaced once).\n#\n# parentstyle: swimlane;whiteSpace=wrap;html=1;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;\n#\n## Style to be used for objects not in the CSV. If this is - then such objects are ignored,\n## else they are created using this as their style, eg. whiteSpace=wrap;html=1;\n#\n# unknownStyle: -\n#\n## Optional column name that contains a reference to a named style in styles.\n## Default is the current style for nodes.\n#\n# stylename: -\n#\n## JSON for named styles of the form {"name": "style", "name": "style"} where style is a cell style with\n## placeholders that are replaced once.\n#\n# styles: -\n#\n## JSON for variables in styles of the form {"name": "value", "name": "value"} where name is a string\n## that will replace a placeholder in a style.\n#\n# vars: -\n#\n## Optional column name that contains a reference to a named label in labels.\n## Default is the current label.\n#\n# labelname: -\n#\n## JSON for named labels of the form {"name": "label", "name": "label"} where label is a cell label with\n## placeholders.\n#\n# labels: -\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Uses the given column name as the parent reference for cells. Default is no parent (empty or -).\n## The identity above is used for resolving the reference so it must be specified.\n#\n# parent: -\n#\n## Adds a prefix to the identity of cells to make sure they do not collide with existing cells (whose\n## IDs are numbers from 0..n, sometimes with a GUID prefix in the context of realtime collaboration).\n## Default is csvimport-.\n#\n# namespace: csvimport-\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## If placeholders are used in the style, they are replaced with data from the source.\n## An optional placeholders can be set to target to use data from the target instead.\n## In addition to label, an optional fromlabel and tolabel can be used to name the column\n## that contains the text for the label in the edges source or target (invert ignored).\n## In addition to those, an optional source and targetlabel can be used to specify a label\n## that contains placeholders referencing the respective columns in the source or target row.\n## The label is created in the form fromlabel + sourcelabel + label + tolabel + targetlabel.\n## Additional labels can be added by using an optional labels array with entries of the\n## form {"label": string, "x": number, "y": number, "dx": number, "dy": number} where\n## x is from -1 to 1 along the edge, y is orthogonal, and dx/dy are offsets in pixels.\n## An optional placeholders with the string value "source" or "target" can be specified\n## to replace placeholders in the additional label with data from the source or target.\n## An optional data object can be specified to define the metadata for the connector.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node x-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# left: \n#\n## Node y-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# top: \n#\n## Node width. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the width. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value is a number (in px), auto, width or an @ sign followed by a column\n## name that contains the value for the height. Default is auto.\n#\n# height: auto\n#\n## Collapsed state for vertices. Possible values are true or false. Default is false.\n#\n# collapsed: false\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -12\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke,refs,manager\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between levels of hierarchical layouts. Default is 100.\n#\n# levelspacing: 100\n#\n## Spacing between parallel edges. Default is 40. Use 0 to disable.\n#\n# edgespacing: 40\n#\n## Name or JSON of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle, orgchart or a JSON string as used in\n## Layout, Apply. Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nTessa Miller,CFO,emi,Office 1,,[email protected],default,#6c8ebf,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,[email protected],default,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,[email protected],default,#82b366,"emo,tva",https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,[email protected],default,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';
-Editor.createRoughCanvas=function(l){var u=rough.canvas({getContext:function(){return l}});u.draw=function(H){var U=H.sets||[];H=H.options||this.getDefaultOptions();for(var J=0;J<U.length;J++){var V=U[J];switch(V.type){case "path":null!=H.stroke&&this._drawToContext(l,V,H);break;case "fillPath":this._drawToContext(l,V,H);break;case "fillSketch":this.fillSketch(l,V,H)}}};u.fillSketch=function(H,U,J){var V=l.state.strokeColor,aa=l.state.strokeWidth,ba=l.state.strokeAlpha,ja=l.state.dashed,oa=J.fillWeight;
-0>oa&&(oa=J.strokeWidth/2);l.setStrokeAlpha(l.state.fillAlpha);l.setStrokeColor(J.fill||"");l.setStrokeWidth(oa);l.setDashed(!1);this._drawToContext(H,U,J);l.setDashed(ja);l.setStrokeWidth(aa);l.setStrokeColor(V);l.setStrokeAlpha(ba)};u._drawToContext=function(H,U,J){H.begin();for(var V=0;V<U.ops.length;V++){var aa=U.ops[V],ba=aa.data;switch(aa.op){case "move":H.moveTo(ba[0],ba[1]);break;case "bcurveTo":H.curveTo(ba[0],ba[1],ba[2],ba[3],ba[4],ba[5]);break;case "lineTo":H.lineTo(ba[0],ba[1])}}H.end();
-"fillPath"===U.type&&J.filled?H.fill():H.stroke()};return u};(function(){function l(V,aa,ba){this.canvas=V;this.rc=aa;this.shape=ba;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,l.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,l.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,l.prototype.rect);this.originalRoundrect=this.canvas.roundrect;
+Editor.createRoughCanvas=function(l){var u=rough.canvas({getContext:function(){return l}});u.draw=function(H){var U=H.sets||[];H=H.options||this.getDefaultOptions();for(var J=0;J<U.length;J++){var W=U[J];switch(W.type){case "path":null!=H.stroke&&this._drawToContext(l,W,H);break;case "fillPath":this._drawToContext(l,W,H);break;case "fillSketch":this.fillSketch(l,W,H)}}};u.fillSketch=function(H,U,J){var W=l.state.strokeColor,aa=l.state.strokeWidth,ba=l.state.strokeAlpha,ja=l.state.dashed,oa=J.fillWeight;
+0>oa&&(oa=J.strokeWidth/2);l.setStrokeAlpha(l.state.fillAlpha);l.setStrokeColor(J.fill||"");l.setStrokeWidth(oa);l.setDashed(!1);this._drawToContext(H,U,J);l.setDashed(ja);l.setStrokeWidth(aa);l.setStrokeColor(W);l.setStrokeAlpha(ba)};u._drawToContext=function(H,U,J){H.begin();for(var W=0;W<U.ops.length;W++){var aa=U.ops[W],ba=aa.data;switch(aa.op){case "move":H.moveTo(ba[0],ba[1]);break;case "bcurveTo":H.curveTo(ba[0],ba[1],ba[2],ba[3],ba[4],ba[5]);break;case "lineTo":H.lineTo(ba[0],ba[1])}}H.end();
+"fillPath"===U.type&&J.filled?H.fill():H.stroke()};return u};(function(){function l(W,aa,ba){this.canvas=W;this.rc=aa;this.shape=ba;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,l.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,l.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,l.prototype.rect);this.originalRoundrect=this.canvas.roundrect;
this.canvas.roundrect=mxUtils.bind(this,l.prototype.roundrect);this.originalEllipse=this.canvas.ellipse;this.canvas.ellipse=mxUtils.bind(this,l.prototype.ellipse);this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,l.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,l.prototype.moveTo);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,l.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=
mxUtils.bind(this,l.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,l.prototype.arcTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,l.prototype.close);this.originalFill=this.canvas.fill;this.canvas.fill=mxUtils.bind(this,l.prototype.fill);this.originalStroke=this.canvas.stroke;this.canvas.stroke=mxUtils.bind(this,l.prototype.stroke);this.originalFillAndStroke=this.canvas.fillAndStroke;this.canvas.fillAndStroke=mxUtils.bind(this,
-l.prototype.fillAndStroke);this.path=[];this.passThrough=!1}l.prototype.moveOp="M";l.prototype.lineOp="L";l.prototype.quadOp="Q";l.prototype.curveOp="C";l.prototype.closeOp="Z";l.prototype.getStyle=function(V,aa){var ba=1;if(null!=this.shape.state){var ja=this.shape.state.cell.id;if(null!=ja)for(var oa=0;oa<ja.length;oa++)ba=(ba<<5)-ba+ja.charCodeAt(oa)<<0}ba={strokeWidth:this.canvas.state.strokeWidth,seed:ba,preserveVertices:!0};ja=this.rc.getDefaultOptions();ba.stroke=V?this.canvas.state.strokeColor===
-mxConstants.NONE?"transparent":this.canvas.state.strokeColor:mxConstants.NONE;V=null;(ba.filled=aa)?(ba.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,V=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):ba.fill="";ba.bowing=mxUtils.getValue(this.shape.style,"bowing",ja.bowing);ba.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",ja.hachureAngle);ba.curveFitting=mxUtils.getValue(this.shape.style,"curveFitting",ja.curveFitting);
+l.prototype.fillAndStroke);this.path=[];this.passThrough=!1}l.prototype.moveOp="M";l.prototype.lineOp="L";l.prototype.quadOp="Q";l.prototype.curveOp="C";l.prototype.closeOp="Z";l.prototype.getStyle=function(W,aa){var ba=1;if(null!=this.shape.state){var ja=this.shape.state.cell.id;if(null!=ja)for(var oa=0;oa<ja.length;oa++)ba=(ba<<5)-ba+ja.charCodeAt(oa)<<0}ba={strokeWidth:this.canvas.state.strokeWidth,seed:ba,preserveVertices:!0};ja=this.rc.getDefaultOptions();ba.stroke=W?this.canvas.state.strokeColor===
+mxConstants.NONE?"transparent":this.canvas.state.strokeColor:mxConstants.NONE;W=null;(ba.filled=aa)?(ba.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,W=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):ba.fill="";ba.bowing=mxUtils.getValue(this.shape.style,"bowing",ja.bowing);ba.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",ja.hachureAngle);ba.curveFitting=mxUtils.getValue(this.shape.style,"curveFitting",ja.curveFitting);
ba.roughness=mxUtils.getValue(this.shape.style,"jiggle",ja.roughness);ba.simplification=mxUtils.getValue(this.shape.style,"simplification",ja.simplification);ba.disableMultiStroke=mxUtils.getValue(this.shape.style,"disableMultiStroke",ja.disableMultiStroke);ba.disableMultiStrokeFill=mxUtils.getValue(this.shape.style,"disableMultiStrokeFill",ja.disableMultiStrokeFill);aa=mxUtils.getValue(this.shape.style,"hachureGap",-1);ba.hachureGap="auto"==aa?-1:aa;ba.dashGap=mxUtils.getValue(this.shape.style,"dashGap",
aa);ba.dashOffset=mxUtils.getValue(this.shape.style,"dashOffset",aa);ba.zigzagOffset=mxUtils.getValue(this.shape.style,"zigzagOffset",aa);aa=mxUtils.getValue(this.shape.style,"fillWeight",-1);ba.fillWeight="auto"==aa?-1:aa;aa=mxUtils.getValue(this.shape.style,"fillStyle","auto");"dots"==aa&&(aa="auto");"auto"==aa&&(aa=[mxUtils.hex2rgb("#ffffff")],null!=this.shape.state&&aa.push(mxUtils.hex2rgb(this.shape.state.view.graph.shapeBackgroundColor)),Editor.isDarkMode()&&aa.push(mxUtils.hex2rgb(Editor.darkColor)),
-aa=null!=ba.fill&&(null!=V||0<=mxUtils.indexOf(aa,mxUtils.hex2rgb(ba.fill)))?"solid":ja.fillStyle);ba.fillStyle=aa;return ba};l.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};l.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};l.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var V=2;V<arguments.length;V+=2)this.lastX=arguments[V-1],this.lastY=arguments[V],
-this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};l.prototype.lineTo=function(V,aa){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,V,aa),this.lastX=V,this.lastY=aa)};l.prototype.moveTo=function(V,aa){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,V,aa),this.lastX=V,this.lastY=aa,this.firstX=V,this.firstY=aa)};l.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,
-arguments):this.addOp(this.closeOp)};l.prototype.quadTo=function(V,aa,ba,ja){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,V,aa,ba,ja),this.lastX=ba,this.lastY=ja)};l.prototype.curveTo=function(V,aa,ba,ja,oa,qa){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,V,aa,ba,ja,oa,qa),this.lastX=oa,this.lastY=qa)};l.prototype.arcTo=function(V,aa,ba,ja,oa,qa,ra){if(this.passThrough)this.originalArcTo.apply(this.canvas,
-arguments);else{var ua=mxUtils.arcToCurves(this.lastX,this.lastY,V,aa,ba,ja,oa,qa,ra);if(null!=ua)for(var za=0;za<ua.length;za+=6)this.curveTo(ua[za],ua[za+1],ua[za+2],ua[za+3],ua[za+4],ua[za+5]);this.lastX=qa;this.lastY=ra}};l.prototype.rect=function(V,aa,ba,ja){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(V,aa,ba,ja,this.getStyle(!0,!0)))};l.prototype.ellipse=function(V,aa,ba,ja){this.passThrough?this.originalEllipse.apply(this.canvas,
-arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(V+ba/2,aa+ja/2,ba,ja,this.getStyle(!0,!0)))};l.prototype.roundrect=function(V,aa,ba,ja,oa,qa){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(V+oa,aa),this.lineTo(V+ba-oa,aa),this.quadTo(V+ba,aa,V+ba,aa+qa),this.lineTo(V+ba,aa+ja-qa),this.quadTo(V+ba,aa+ja,V+ba-oa,aa+ja),this.lineTo(V+oa,aa+ja),this.quadTo(V,aa+ja,V,aa+ja-qa),this.lineTo(V,aa+qa),this.quadTo(V,aa,V+oa,aa))};l.prototype.drawPath=
-function(V){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),V)}catch(ba){}this.passThrough=!1}else if(null!=this.nextShape){for(var aa in V)this.nextShape.options[aa]=V[aa];V.stroke!=mxConstants.NONE&&null!=V.stroke||delete this.nextShape.options.stroke;V.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};l.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,
+aa=null!=ba.fill&&(null!=W||0<=mxUtils.indexOf(aa,mxUtils.hex2rgb(ba.fill)))?"solid":ja.fillStyle);ba.fillStyle=aa;return ba};l.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};l.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};l.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var W=2;W<arguments.length;W+=2)this.lastX=arguments[W-1],this.lastY=arguments[W],
+this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};l.prototype.lineTo=function(W,aa){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,W,aa),this.lastX=W,this.lastY=aa)};l.prototype.moveTo=function(W,aa){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,W,aa),this.lastX=W,this.lastY=aa,this.firstX=W,this.firstY=aa)};l.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,
+arguments):this.addOp(this.closeOp)};l.prototype.quadTo=function(W,aa,ba,ja){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,W,aa,ba,ja),this.lastX=ba,this.lastY=ja)};l.prototype.curveTo=function(W,aa,ba,ja,oa,qa){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,W,aa,ba,ja,oa,qa),this.lastX=oa,this.lastY=qa)};l.prototype.arcTo=function(W,aa,ba,ja,oa,qa,ra){if(this.passThrough)this.originalArcTo.apply(this.canvas,
+arguments);else{var ua=mxUtils.arcToCurves(this.lastX,this.lastY,W,aa,ba,ja,oa,qa,ra);if(null!=ua)for(var za=0;za<ua.length;za+=6)this.curveTo(ua[za],ua[za+1],ua[za+2],ua[za+3],ua[za+4],ua[za+5]);this.lastX=qa;this.lastY=ra}};l.prototype.rect=function(W,aa,ba,ja){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(W,aa,ba,ja,this.getStyle(!0,!0)))};l.prototype.ellipse=function(W,aa,ba,ja){this.passThrough?this.originalEllipse.apply(this.canvas,
+arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(W+ba/2,aa+ja/2,ba,ja,this.getStyle(!0,!0)))};l.prototype.roundrect=function(W,aa,ba,ja,oa,qa){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(W+oa,aa),this.lineTo(W+ba-oa,aa),this.quadTo(W+ba,aa,W+ba,aa+qa),this.lineTo(W+ba,aa+ja-qa),this.quadTo(W+ba,aa+ja,W+ba-oa,aa+ja),this.lineTo(W+oa,aa+ja),this.quadTo(W,aa+ja,W,aa+ja-qa),this.lineTo(W,aa+qa),this.quadTo(W,aa,W+oa,aa))};l.prototype.drawPath=
+function(W){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),W)}catch(ba){}this.passThrough=!1}else if(null!=this.nextShape){for(var aa in W)this.nextShape.options[aa]=W[aa];W.stroke!=mxConstants.NONE&&null!=W.stroke||delete this.nextShape.options.stroke;W.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};l.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,
!1))};l.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};l.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};l.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;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(V){return new l(V,Editor.createRoughCanvas(V),this)};var u=mxShape.prototype.createHandJiggle;
-mxShape.prototype.createHandJiggle=function(V){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?u.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(V):this.createRoughCanvas(V)};var H=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(V,aa,ba,ja,oa){null!=V.handJiggle&&V.handJiggle.passThrough||H.apply(this,arguments)};var U=mxShape.prototype.paint;mxShape.prototype.paint=
-function(V){var aa=V.addTolerance,ba=!0;null!=this.style&&(ba="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=V.handJiggle&&V.handJiggle.constructor==l&&!this.outline){V.save();var ja=this.fill,oa=this.stroke;this.stroke=this.fill=null;var qa=this.configurePointerEvents,ra=V.setStrokeColor;V.setStrokeColor=function(){};var ua=V.setFillColor;V.setFillColor=function(){};ba||null==ja||(this.configurePointerEvents=function(){});V.handJiggle.passThrough=!0;U.apply(this,
-arguments);V.handJiggle.passThrough=!1;V.setFillColor=ua;V.setStrokeColor=ra;this.configurePointerEvents=qa;this.stroke=oa;this.fill=ja;V.restore();ba&&null!=ja&&(V.addTolerance=function(){})}U.apply(this,arguments);V.addTolerance=aa};var J=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(V,aa,ba,ja,oa,qa){null!=V.handJiggle&&V.handJiggle.constructor==l?(V.handJiggle.passThrough=!0,J.apply(this,arguments),V.handJiggle.passThrough=!1):J.apply(this,arguments)}})();Editor.fastCompress=
-function(l){return null==l||0==l.length||"undefined"===typeof pako?l:Graph.arrayBufferToString(pako.deflateRaw(l))};Editor.fastDecompress=function(l){return null==l||0==l.length||"undefined"===typeof pako?l:pako.inflateRaw(Graph.stringToArrayBuffer(atob(l)),{to:"string"})};Editor.extractGraphModel=function(l,u,H){if(null!=l&&"undefined"!==typeof pako){var U=l.ownerDocument.getElementsByTagName("div"),J=[];if(null!=U&&0<U.length)for(var V=0;V<U.length;V++)if("mxgraph"==U[V].getAttribute("class")){J.push(U[V]);
+this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(W){return new l(W,Editor.createRoughCanvas(W),this)};var u=mxShape.prototype.createHandJiggle;
+mxShape.prototype.createHandJiggle=function(W){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?u.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(W):this.createRoughCanvas(W)};var H=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(W,aa,ba,ja,oa){null!=W.handJiggle&&W.handJiggle.passThrough||H.apply(this,arguments)};var U=mxShape.prototype.paint;mxShape.prototype.paint=
+function(W){var aa=W.addTolerance,ba=!0;null!=this.style&&(ba="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=W.handJiggle&&W.handJiggle.constructor==l&&!this.outline){W.save();var ja=this.fill,oa=this.stroke;this.stroke=this.fill=null;var qa=this.configurePointerEvents,ra=W.setStrokeColor;W.setStrokeColor=function(){};var ua=W.setFillColor;W.setFillColor=function(){};ba||null==ja||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;U.apply(this,
+arguments);W.handJiggle.passThrough=!1;W.setFillColor=ua;W.setStrokeColor=ra;this.configurePointerEvents=qa;this.stroke=oa;this.fill=ja;W.restore();ba&&null!=ja&&(W.addTolerance=function(){})}U.apply(this,arguments);W.addTolerance=aa};var J=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(W,aa,ba,ja,oa,qa){null!=W.handJiggle&&W.handJiggle.constructor==l?(W.handJiggle.passThrough=!0,J.apply(this,arguments),W.handJiggle.passThrough=!1):J.apply(this,arguments)}})();Editor.fastCompress=
+function(l){return null==l||0==l.length||"undefined"===typeof pako?l:Graph.arrayBufferToString(pako.deflateRaw(l))};Editor.fastDecompress=function(l){return null==l||0==l.length||"undefined"===typeof pako?l:pako.inflateRaw(Graph.stringToArrayBuffer(atob(l)),{to:"string"})};Editor.extractGraphModel=function(l,u,H){if(null!=l&&"undefined"!==typeof pako){var U=l.ownerDocument.getElementsByTagName("div"),J=[];if(null!=U&&0<U.length)for(var W=0;W<U.length;W++)if("mxgraph"==U[W].getAttribute("class")){J.push(U[W]);
break}0<J.length&&(U=J[0].getAttribute("data-mxgraph"),null!=U?(J=JSON.parse(U),null!=J&&null!=J.xml&&(l=mxUtils.parseXml(J.xml),l=l.documentElement)):(J=J[0].getElementsByTagName("div"),0<J.length&&(U=mxUtils.getTextContent(J[0]),U=Graph.decompress(U,null,H),0<U.length&&(l=mxUtils.parseXml(U),l=l.documentElement))))}if(null!=l&&"svg"==l.nodeName)if(U=l.getAttribute("content"),null!=U&&"<"!=U.charAt(0)&&"%"!=U.charAt(0)&&(U=unescape(window.atob?atob(U):Base64.decode(cont,U))),null!=U&&"%"==U.charAt(0)&&
(U=decodeURIComponent(U)),null!=U&&0<U.length)l=mxUtils.parseXml(U).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==l||u||(J=null,"diagram"==l.nodeName?J=l:"mxfile"==l.nodeName&&(U=l.getElementsByTagName("diagram"),0<U.length&&(J=U[Math.max(0,Math.min(U.length-1,urlParams.page||0))])),null!=J&&(l=Editor.parseDiagramNode(J,H)));null==l||"mxGraphModel"==l.nodeName||u&&"mxfile"==l.nodeName||(l=null);return l};Editor.parseDiagramNode=function(l,u,H){Editor.validateDiagramNode(l);
var U=mxUtils.trim(mxUtils.getTextContent(l)),J=null;0<U.length?(u=Graph.decompress(U,null,u),null!=u&&0<u.length&&(J=mxUtils.parseXml(u).documentElement)):(l=mxUtils.getChildNodes(l),0<l.length&&(J=l[0],H&&(J=Editor.parseDiagramNode(J,u,!1)),u=mxUtils.createXmlDocument(),u.appendChild(u.importNode(J,!0)),J=u.documentElement));return J};Editor.getDiagramNodeXml=function(l){Editor.validateDiagramNode(l);var u=mxUtils.getNodeValue(l),H=null;0<u.length?H=Graph.decompress(u):(l=l.getElementsByTagName("mxGraphModel"),
null!=l&&0<l.length&&(H=mxUtils.getXml(l[0])));return H};Editor.validateDiagramNode=function(l){if(0==mxUtils.trim(mxUtils.getTextContent(l)).length&&0==mxUtils.getChildNodes(l).length){var u=new mxCodec,H=new mxGraphModel;l.appendChild(u.encode(H))}return l};Editor.extractGraphModelFromPdf=function(l){var u=null;l=l.substring(l.indexOf(",")+1);l=window.atob&&!mxClient.IS_SF?atob(l):Base64.decode(l,!0);if("%PDF-1.7"==l.substring(0,8)){var H=l.indexOf("EmbeddedFile");if(-1<H){var U=l.indexOf("stream",
H)+9;if(0<l.substring(H,U).indexOf("application#2Fvnd.jgraph.mxfile")){var J=l.indexOf("endstream",U-1);return pako.inflateRaw(Graph.stringToArrayBuffer(l.substring(U,J)),{to:"string"})}}for(H=l.indexOf("/ObjStm");0<H;){U=l.indexOf("stream",H)+9;J=l.indexOf("endstream",U-1);U=pako.inflateRaw(Graph.stringToArrayBuffer(l.substring(U,J)),{to:"string"});J=U.indexOf("/Subject <");if(0<J){H=U.substring(J+14,U.indexOf(">",J));if(null!=H){u=H;H=[];for(U=0;U<u.length;U+=2)J=u.substr(U,2),"00"!=J&&H.push(String.fromCharCode(parseInt(J,
-16)));u=H.join("")}break}H=l.indexOf("/ObjStm",H+1)}}if(null==u&&"%PDF-1.4"==l.substring(0,8)){H="";J=U=0;for(var V=[],aa=null;J<l.length;){var ba=l.charCodeAt(J);J+=1;10!=ba&&(H+=String.fromCharCode(ba));ba=="/Subject (%3Cmxfile".charCodeAt(U)?U++:U=0;if(19==U){var ja=l.indexOf("%3C%2Fmxfile%3E",J)+15;J-=9;if(ja>J){u=l.substring(J,ja);break}}10==ba&&("endobj"==H?aa=null:"obj"==H.substring(H.length-3,H.length)||"xref"==H||"trailer"==H?(aa=[],V[H.split(" ")[0]]=aa):null!=aa&&aa.push(H),H="")}}null==
-u&&null!=V&&(u=Editor.extractGraphModelFromXref(V));null!=u&&(u=decodeURIComponent(u.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return u};Editor.extractGraphModelFromXref=function(l){var u=l.trailer,H=null;null!=u&&(u=/.* \/Info (\d+) (\d+) R/g.exec(u.join("\n")),null!=u&&0<u.length&&(u=l[u[1]],null!=u&&(u=/.* \/Subject (\d+) (\d+) R/g.exec(u.join("\n")),null!=u&&0<u.length&&(l=l[u[1]],null!=l&&(l=l.join("\n"),H=l.substring(1,l.length-1))))));return H};Editor.extractParserError=function(l,u){var H=
+16)));u=H.join("")}break}H=l.indexOf("/ObjStm",H+1)}}if(null==u&&"%PDF-1.4"==l.substring(0,8)){H="";J=U=0;for(var W=[],aa=null;J<l.length;){var ba=l.charCodeAt(J);J+=1;10!=ba&&(H+=String.fromCharCode(ba));ba=="/Subject (%3Cmxfile".charCodeAt(U)?U++:U=0;if(19==U){var ja=l.indexOf("%3C%2Fmxfile%3E",J)+15;J-=9;if(ja>J){u=l.substring(J,ja);break}}10==ba&&("endobj"==H?aa=null:"obj"==H.substring(H.length-3,H.length)||"xref"==H||"trailer"==H?(aa=[],W[H.split(" ")[0]]=aa):null!=aa&&aa.push(H),H="")}}null==
+u&&null!=W&&(u=Editor.extractGraphModelFromXref(W));null!=u&&(u=decodeURIComponent(u.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return u};Editor.extractGraphModelFromXref=function(l){var u=l.trailer,H=null;null!=u&&(u=/.* \/Info (\d+) (\d+) R/g.exec(u.join("\n")),null!=u&&0<u.length&&(u=l[u[1]],null!=u&&(u=/.* \/Subject (\d+) (\d+) R/g.exec(u.join("\n")),null!=u&&0<u.length&&(l=l[u[1]],null!=l&&(l=l.join("\n"),H=l.substring(1,l.length-1))))));return H};Editor.extractParserError=function(l,u){var H=
null;l=null!=l?l.getElementsByTagName("parsererror"):null;null!=l&&0<l.length&&(H=u||mxResources.get("invalidChars"),u=l[0].getElementsByTagName("div"),0<u.length&&(H=mxUtils.getTextContent(u[0])));return null!=H?mxUtils.trim(H):H};Editor.addRetryToError=function(l,u){null!=l&&(l=null!=l.error?l.error:l,null==l.retry&&(l.retry=u))};Editor.mermaidToDrawio=function(l,u,H){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(l,u,H)};Editor.configure=function(l){if(null!=l){Editor.config=
l;Editor.configVersion=l.version;l.debug&&(urlParams.test="1");null!=l.defaultFonts&&(Menus.prototype.defaultFonts=l.defaultFonts);null!=l.presetColors&&(ColorDialog.prototype.presetColors=l.presetColors);null!=l.defaultColors&&(ColorDialog.prototype.defaultColors=l.defaultColors);null!=l.colorNames&&(ColorDialog.prototype.colorNames=l.colorNames);null!=l.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=l.defaultColorSchemes);null!=l.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=
l.defaultEdgeLength);null!=l.selectParentLayer&&(Graph.selectParentLayer=l.selectParentLayer);null!=l.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=l.autosaveDelay);null!=l.templateFile&&(EditorUi.templateFile=l.templateFile);null!=l.styles&&(Array.isArray(l.styles)?Editor.styles=l.styles:EditorUi.debug("Configuration Error: Array expected for styles"));null!=l.globalVars&&(Editor.globalVars=l.globalVars);null!=l.compressXml&&(Editor.defaultCompressed=l.compressXml,Editor.compressXml=l.compressXml);
@@ -3282,39 +3297,39 @@ function(l,u,H){return Editor.extractGraphModel.apply(this,arguments)};var g=Edi
function(){m.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(l,u){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var H=function(){U=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};l=null!=l?l:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var U=null;Editor.doMathJaxRender=
function(aa){try{null==U?(MathJax.typesetClear([aa]),MathJax.typeset([aa]),H()):U!=aa&&Editor.mathJaxQueue.push(aa)}catch(ba){MathJax.typesetClear([aa]),null!=ba.retry?(U=aa,ba.retry.then(function(){MathJax.typesetPromise([aa]).then(H)["catch"](function(ja){console.log("Error in MathJax.typesetPromise: "+ja.toString());H()})})["catch"](function(ja){console.log("Error in MathJax.retry: "+ja.toString());H()})):null!=window.console&&console.log("Error in MathJax.typeset: "+ba.toString())}};window.MathJax=
null!=u?u:{options:{skipHtmlTags:{"[+]":["text"]},ignoreHtmlClass:"geDisableMathJax"},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var aa=0;aa<Editor.mathJaxQueue.length;aa++)Editor.doMathJaxRender(Editor.mathJaxQueue[aa])}}};Editor.MathJaxRender=function(aa){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(aa):Editor.mathJaxQueue.push(aa)};Editor.onMathJaxDone=
-function(){};var J=Editor.prototype.init;Editor.prototype.init=function(){J.apply(this,arguments);var aa=mxUtils.bind(this,function(ba,ja){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,aa);this.graph.addListener(mxEvent.REFRESH,aa)};u=document.getElementsByTagName("script");if(null!=u&&0<u.length){var V=document.createElement("script");V.setAttribute("type","text/javascript");V.setAttribute("src",l);u[0].parentNode.appendChild(V)}}};
-Editor.prototype.csvToArray=function(l){if(0<l.length){var u="",H=[""],U=0,J=!0,V;l=$jscomp.makeIterator(l);for(V=l.next();!V.done;V=l.next())V=V.value,'"'===V?(J&&V===u&&(H[U]+=V),J=!J):","===V&&J?V=H[++U]="":H[U]+=V,u=V;return H}return[]};Editor.prototype.getProxiedUrl=function(l){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(l)){var u=EditorUi.isVisioFilename(l);u=/\.png$/i.test(l)||/\.pdf$/i.test(l)||u;var H=
+function(){};var J=Editor.prototype.init;Editor.prototype.init=function(){J.apply(this,arguments);var aa=mxUtils.bind(this,function(ba,ja){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,aa);this.graph.addListener(mxEvent.REFRESH,aa)};u=document.getElementsByTagName("script");if(null!=u&&0<u.length){var W=document.createElement("script");W.setAttribute("type","text/javascript");W.setAttribute("src",l);u[0].parentNode.appendChild(W)}}};
+Editor.prototype.csvToArray=function(l){if(0<l.length){var u="",H=[""],U=0,J=!0,W;l=$jscomp.makeIterator(l);for(W=l.next();!W.done;W=l.next())W=W.value,'"'===W?(J&&W===u&&(H[U]+=W),J=!J):","===W&&J?W=H[++U]="":H[U]+=W,u=W;return H}return[]};Editor.prototype.getProxiedUrl=function(l){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(l)){var u=EditorUi.isVisioFilename(l);u=/\.png$/i.test(l)||/\.pdf$/i.test(l)||u;var H=
"t="+(new Date).getTime();l=PROXY_URL+"?url="+encodeURIComponent(l)+"&"+H+(u?"&base64=1":"")}return l};Editor.prototype.isCorsEnabledForUrl=function(l){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||l.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(l)||"https://raw.githubusercontent.com/"===l.substring(0,34)||
"https://fonts.googleapis.com/"===l.substring(0,29)||"https://fonts.gstatic.com/"===l.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var l=new mxUrlConverter;l.updateBaseUrl();var u=l.convert,H=this;l.convert=function(U){null!=U&&navigator.onLine&&("http://"!=U.substring(0,7)&&"https://"!=U.substring(0,8)||U.substring(0,l.baseUrl.length)==l.baseUrl||H.crossOriginImages&&H.isCorsEnabledForUrl(U)?"chrome-extension://"!=U.substring(0,19)&&(U=u.apply(this,arguments)):U=PROXY_URL+
-"?url="+encodeURIComponent(U));return U};return l};Editor.createSvgDataUri=function(l){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(l)))};Editor.prototype.convertImageToDataUri=function(l,u,H,U,J){try{var V=!0,aa=window.setTimeout(mxUtils.bind(this,function(){V=!1;u(l)}),this.timeout),ba=mxUtils.bind(this,function(){null!=U?this.convertImageToDataUri(l,u,H,U,!0):u(l)});if(/(\.svg)$/i.test(l)&&!J)mxUtils.get(l,mxUtils.bind(this,function(oa){window.clearTimeout(aa);V&&(200>oa.getStatus()||
-299<oa.getStatus()?ba():u(Editor.createSvgDataUri(oa.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(aa);V&&ba()}));else{var ja=new Image;this.crossOriginImages&&(ja.crossOrigin="anonymous");ja.onload=function(){window.clearTimeout(aa);if(V)try{U=null!=U&&J?U:1;var oa=document.createElement("canvas"),qa=oa.getContext("2d");qa.scale(U,U);oa.height=ja.height*U;oa.width=ja.width*U;qa.drawImage(ja,0,0);u(oa.toDataURL())}catch(ra){u(l)}};ja.onerror=function(){window.clearTimeout(aa);V&&
-(null!=H?H():u(l))};ja.src=l}}catch(oa){null!=H?H():u(l)}};Editor.prototype.convertImages=function(l,u,H,U){function J(){0<V.length?V.shift()():u(l)}null==U&&(U=this.createImageUrlConverter());var V=[],aa=H||{};H=mxUtils.bind(this,function(ba,ja){ba=l.getElementsByTagName(ba);for(var oa=0;oa<ba.length;oa++)mxUtils.bind(this,function(qa){V.push(mxUtils.bind(this,function(){try{if(null!=qa){var ra=U.convert(qa.getAttribute(ja));if(null!=ra&&"data:"!=ra.substring(0,5)){var ua=aa[ra];null==ua?this.convertImageToDataUri(ra,
-function(za){null!=za&&(aa[ra]=za,qa.setAttribute(ja,za));J()},null,Editor.svgRasterScale):(qa.setAttribute(ja,ua),J())}else null!=ra&&qa.setAttribute(ja,ra),J()}}catch(za){J()}}))})(ba[oa])});H("image","xlink:href");H("img","src");J()};Editor.base64Encode=function(l){for(var u="",H=0,U=l.length,J,V,aa;H<U;){J=l.charCodeAt(H++)&255;if(H==U){u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(J>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((J&
-3)<<4);u+="==";break}V=l.charCodeAt(H++);if(H==U){u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(J>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((J&3)<<4|(V&240)>>4);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((V&15)<<2);u+="=";break}aa=l.charCodeAt(H++);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(J>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((J&
-3)<<4|(V&240)>>4);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((V&15)<<2|(aa&192)>>6);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(aa&63)}return u};Editor.prototype.loadUrl=function(l,u,H,U,J,V,aa,ba){try{var ja=!aa&&(U||/(\.png)($|\?)/i.test(l)||/(\.jpe?g)($|\?)/i.test(l)||/(\.gif)($|\?)/i.test(l)||/(\.pdf)($|\?)/i.test(l));J=null!=J?J:!0;var oa=mxUtils.bind(this,function(){mxUtils.get(l,mxUtils.bind(this,function(qa){if(200<=qa.getStatus()&&
-299>=qa.getStatus()){if(null!=u){var ra=qa.getText();if(ja){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==typeof window.mxUtilsBinaryToArray){qa=mxUtilsBinaryToArray(qa.request.responseBody).toArray();ra=Array(qa.length);for(var ua=0;ua<qa.length;ua++)ra[ua]=String.fromCharCode(qa[ua]);ra=ra.join("")}V=null!=V?V:"data:image/png;base64,";ra=V+Editor.base64Encode(ra)}u(ra)}}else null!=H&&(0==qa.getStatus()?H({message:mxResources.get("accessDenied")},qa):404==qa.getStatus()?
+"?url="+encodeURIComponent(U));return U};return l};Editor.createSvgDataUri=function(l){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(l)))};Editor.prototype.convertImageToDataUri=function(l,u,H,U,J){try{var W=!0,aa=window.setTimeout(mxUtils.bind(this,function(){W=!1;u(l)}),this.timeout),ba=mxUtils.bind(this,function(){null!=U?this.convertImageToDataUri(l,u,H,U,!0):u(l)});if(/(\.svg)$/i.test(l)&&!J)mxUtils.get(l,mxUtils.bind(this,function(oa){window.clearTimeout(aa);W&&(200>oa.getStatus()||
+299<oa.getStatus()?ba():u(Editor.createSvgDataUri(oa.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(aa);W&&ba()}));else{var ja=new Image;this.crossOriginImages&&(ja.crossOrigin="anonymous");ja.onload=function(){window.clearTimeout(aa);if(W)try{U=null!=U&&J?U:1;var oa=document.createElement("canvas"),qa=oa.getContext("2d");qa.scale(U,U);oa.height=ja.height*U;oa.width=ja.width*U;qa.drawImage(ja,0,0);u(oa.toDataURL())}catch(ra){u(l)}};ja.onerror=function(){window.clearTimeout(aa);W&&
+(null!=H?H():u(l))};ja.src=l}}catch(oa){null!=H?H():u(l)}};Editor.prototype.convertImages=function(l,u,H,U){function J(){0<W.length?W.shift()():u(l)}null==U&&(U=this.createImageUrlConverter());var W=[],aa=H||{};H=mxUtils.bind(this,function(ba,ja){ba=l.getElementsByTagName(ba);for(var oa=0;oa<ba.length;oa++)mxUtils.bind(this,function(qa){W.push(mxUtils.bind(this,function(){try{if(null!=qa){var ra=U.convert(qa.getAttribute(ja));if(null!=ra&&"data:"!=ra.substring(0,5)){var ua=aa[ra];null==ua?this.convertImageToDataUri(ra,
+function(za){null!=za&&(aa[ra]=za,qa.setAttribute(ja,za));J()},null,Editor.svgRasterScale):(qa.setAttribute(ja,ua),J())}else null!=ra&&qa.setAttribute(ja,ra),J()}}catch(za){J()}}))})(ba[oa])});H("image","xlink:href");H("img","src");J()};Editor.base64Encode=function(l){for(var u="",H=0,U=l.length,J,W,aa;H<U;){J=l.charCodeAt(H++)&255;if(H==U){u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(J>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((J&
+3)<<4);u+="==";break}W=l.charCodeAt(H++);if(H==U){u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(J>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((J&3)<<4|(W&240)>>4);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2);u+="=";break}aa=l.charCodeAt(H++);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(J>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((J&
+3)<<4|(W&240)>>4);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2|(aa&192)>>6);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(aa&63)}return u};Editor.prototype.loadUrl=function(l,u,H,U,J,W,aa,ba){try{var ja=!aa&&(U||/(\.png)($|\?)/i.test(l)||/(\.jpe?g)($|\?)/i.test(l)||/(\.gif)($|\?)/i.test(l)||/(\.pdf)($|\?)/i.test(l));J=null!=J?J:!0;var oa=mxUtils.bind(this,function(){mxUtils.get(l,mxUtils.bind(this,function(qa){if(200<=qa.getStatus()&&
+299>=qa.getStatus()){if(null!=u){var ra=qa.getText();if(ja){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==typeof window.mxUtilsBinaryToArray){qa=mxUtilsBinaryToArray(qa.request.responseBody).toArray();ra=Array(qa.length);for(var ua=0;ua<qa.length;ua++)ra[ua]=String.fromCharCode(qa[ua]);ra=ra.join("")}W=null!=W?W:"data:image/png;base64,";ra=W+Editor.base64Encode(ra)}u(ra)}}else null!=H&&(0==qa.getStatus()?H({message:mxResources.get("accessDenied")},qa):404==qa.getStatus()?
H({message:mxResources.get("fileNotFound"),code:qa.getStatus()},qa):H({message:this.getErrorMessage(qa)},qa))}),function(qa){null!=H&&H({message:mxResources.get("error")+" "+qa.getStatus()})},ja,this.timeout,function(){J&&null!=H&&H({code:App.ERROR_TIMEOUT,retry:oa})},ba)});oa()}catch(qa){null!=H&&H(qa)}};Editor.prototype.getErrorMessage=function(l){var u=mxResources.get("error")+" "+l.getStatus();try{var H=l.getText(),U=JSON.parse(H);null!=U&&null!=U.error&&null!=U.error.message&&(u=U.error.message+
-" ("+u+")")}catch(J){}return u};Editor.prototype.absoluteCssFonts=function(l){var u=null;if(null!=l){var H=l.split("url(");if(0<H.length){u=[H[0]];l=window.location.pathname;var U=null!=l?l.lastIndexOf("/"):-1;0<=U&&(l=l.substring(0,U+1));U=document.getElementsByTagName("base");var J=null;null!=U&&0<U.length&&(J=U[0].getAttribute("href"));for(var V=1;V<H.length;V++)if(U=H[V].indexOf(")"),0<U){var aa=Editor.trimCssUrl(H[V].substring(0,U));this.graph.isRelativeUrl(aa)&&(aa=null!=J?J+aa:window.location.protocol+
-"//"+window.location.hostname+("/"==aa.charAt(0)?"":l)+aa);u.push('url("'+aa+'"'+H[V].substring(U))}else u.push(H[V])}else u=[l]}return null!=u?u.join(""):null};Editor.prototype.mapFontUrl=function(l,u,H){/^https?:\/\//.test(u)&&!this.isCorsEnabledForUrl(u)&&(u=PROXY_URL+"?url="+encodeURIComponent(u));H(l,u)};Editor.prototype.embedCssFonts=function(l,u){var H=l.split("url("),U=0;null==this.cachedFonts&&(this.cachedFonts={});var J=mxUtils.bind(this,function(){if(0==U){for(var ja=[H[0]],oa=1;oa<H.length;oa++){var qa=
-H[oa].indexOf(")");ja.push('url("');ja.push(this.cachedFonts[Editor.trimCssUrl(H[oa].substring(0,qa))]);ja.push('"'+H[oa].substring(qa))}u(ja.join(""))}});if(0<H.length){for(l=1;l<H.length;l++){var V=H[l].indexOf(")"),aa=null,ba=H[l].indexOf("format(",V);0<ba&&(aa=Editor.trimCssUrl(H[l].substring(ba+7,H[l].indexOf(")",ba))));mxUtils.bind(this,function(ja){if(null==this.cachedFonts[ja]){this.cachedFonts[ja]=ja;U++;var oa="application/x-font-ttf";if("svg"==aa||/(\.svg)($|\?)/i.test(ja))oa="image/svg+xml";
+" ("+u+")")}catch(J){}return u};Editor.prototype.absoluteCssFonts=function(l){var u=null;if(null!=l){var H=l.split("url(");if(0<H.length){u=[H[0]];l=window.location.pathname;var U=null!=l?l.lastIndexOf("/"):-1;0<=U&&(l=l.substring(0,U+1));U=document.getElementsByTagName("base");var J=null;null!=U&&0<U.length&&(J=U[0].getAttribute("href"));for(var W=1;W<H.length;W++)if(U=H[W].indexOf(")"),0<U){var aa=Editor.trimCssUrl(H[W].substring(0,U));this.graph.isRelativeUrl(aa)&&(aa=null!=J?J+aa:window.location.protocol+
+"//"+window.location.hostname+("/"==aa.charAt(0)?"":l)+aa);u.push('url("'+aa+'"'+H[W].substring(U))}else u.push(H[W])}else u=[l]}return null!=u?u.join(""):null};Editor.prototype.mapFontUrl=function(l,u,H){/^https?:\/\//.test(u)&&!this.isCorsEnabledForUrl(u)&&(u=PROXY_URL+"?url="+encodeURIComponent(u));H(l,u)};Editor.prototype.embedCssFonts=function(l,u){var H=l.split("url("),U=0;null==this.cachedFonts&&(this.cachedFonts={});var J=mxUtils.bind(this,function(){if(0==U){for(var ja=[H[0]],oa=1;oa<H.length;oa++){var qa=
+H[oa].indexOf(")");ja.push('url("');ja.push(this.cachedFonts[Editor.trimCssUrl(H[oa].substring(0,qa))]);ja.push('"'+H[oa].substring(qa))}u(ja.join(""))}});if(0<H.length){for(l=1;l<H.length;l++){var W=H[l].indexOf(")"),aa=null,ba=H[l].indexOf("format(",W);0<ba&&(aa=Editor.trimCssUrl(H[l].substring(ba+7,H[l].indexOf(")",ba))));mxUtils.bind(this,function(ja){if(null==this.cachedFonts[ja]){this.cachedFonts[ja]=ja;U++;var oa="application/x-font-ttf";if("svg"==aa||/(\.svg)($|\?)/i.test(ja))oa="image/svg+xml";
else if("otf"==aa||"embedded-opentype"==aa||/(\.otf)($|\?)/i.test(ja))oa="application/x-font-opentype";else if("woff"==aa||/(\.woff)($|\?)/i.test(ja))oa="application/font-woff";else if("woff2"==aa||/(\.woff2)($|\?)/i.test(ja))oa="application/font-woff2";else if("eot"==aa||/(\.eot)($|\?)/i.test(ja))oa="application/vnd.ms-fontobject";else if("sfnt"==aa||/(\.sfnt)($|\?)/i.test(ja))oa="application/font-sfnt";this.mapFontUrl(oa,ja,mxUtils.bind(this,function(qa,ra){this.loadUrl(ra,mxUtils.bind(this,function(ua){this.cachedFonts[ja]=
-ua;U--;J()}),mxUtils.bind(this,function(ua){U--;J()}),!0,null,"data:"+qa+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(H[l].substring(0,V)),aa)}J()}else u(l)};Editor.prototype.loadFonts=function(l){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(u){this.resolvedFontCss=u;null!=l&&l()})):null!=l&&l()};Editor.prototype.createGoogleFontCache=function(){var l={},u;for(u in Graph.fontMapping)Graph.isCssFontUrl(u)&&(l[u]=Graph.fontMapping[u]);
-return l};Editor.prototype.embedExtFonts=function(l){var u=this.graph.getCustomFonts();if(0<u.length){var H=[],U=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var J=mxUtils.bind(this,function(){0==U&&this.embedCssFonts(H.join(""),l)}),V=0;V<u.length;V++)mxUtils.bind(this,function(aa,ba){Graph.isCssFontUrl(ba)?null==this.cachedGoogleFonts[ba]?(U++,this.loadUrl(Graph.rewriteGoogleFontUrl(ba),mxUtils.bind(this,function(ja){this.cachedGoogleFonts[ba]=ja;H.push(ja+
-"\n");U--;J()}),mxUtils.bind(this,function(ja){U--;H.push("@import url("+ba+");\n");J()}))):H.push(this.cachedGoogleFonts[ba]+"\n"):H.push('@font-face {font-family: "'+aa+'";src: url("'+ba+'")}\n')})(u[V].name,u[V].url);J()}else l()};Editor.prototype.addMathCss=function(l){l=l.getElementsByTagName("defs");if(null!=l&&0<l.length)for(var u=document.getElementsByTagName("style"),H=0;H<u.length;H++){var U=mxUtils.getTextContent(u[H]);0>U.indexOf("mxPageSelector")&&0<U.indexOf("MathJax")&&l[0].appendChild(u[H].cloneNode(!0))}};
-Editor.prototype.addFontCss=function(l,u){u=null!=u?u:this.absoluteCssFonts(this.fontCss);if(null!=u){var H=mxUtils.getSvgDefs(l),U=u.split("\n");u=[];for(var J=[],V=0;V<U.length;V++)"@import"==U[V].substring(0,7)?u.push(U[V]):J.push(U[V]);l=l.ownerDocument;l=null!=l.createElementNS?l.createElementNS(mxConstants.NS_SVG,"style"):l.createElement("style");l.setAttribute("type","text/css");0<u.length&&(mxUtils.setTextContent(l,u.join("\n")),H.appendChild(l));0<J.length&&(l=l.cloneNode(!1),mxUtils.setTextContent(l,
-J.join("\n")),H.appendChild(l))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(l,u,H){var U=mxClient.IS_FF?8192:16384;return Math.min(H,Math.min(U/l,U/u))};Editor.prototype.exportToCanvas=function(l,u,H,U,J,V,aa,ba,ja,oa,qa,ra,ua,za,Ba,Ca,La,sa){try{V=null!=V?V:!0;aa=null!=aa?aa:!0;ra=null!=ra?ra:this.graph;ua=null!=ua?ua:0;var Aa=ja?null:ra.background;Aa==mxConstants.NONE&&(Aa=null);null==Aa&&(Aa=U);
+ua;U--;J()}),mxUtils.bind(this,function(ua){U--;J()}),!0,null,"data:"+qa+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(H[l].substring(0,W)),aa)}J()}else u(l)};Editor.prototype.loadFonts=function(l){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(u){this.resolvedFontCss=u;null!=l&&l()})):null!=l&&l()};Editor.prototype.createGoogleFontCache=function(){var l={},u;for(u in Graph.fontMapping)Graph.isCssFontUrl(u)&&(l[u]=Graph.fontMapping[u]);
+return l};Editor.prototype.embedExtFonts=function(l){var u=this.graph.getCustomFonts();if(0<u.length){var H=[],U=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var J=mxUtils.bind(this,function(){0==U&&this.embedCssFonts(H.join(""),l)}),W=0;W<u.length;W++)mxUtils.bind(this,function(aa,ba){Graph.isCssFontUrl(ba)?null==this.cachedGoogleFonts[ba]?(U++,this.loadUrl(Graph.rewriteGoogleFontUrl(ba),mxUtils.bind(this,function(ja){this.cachedGoogleFonts[ba]=ja;H.push(ja+
+"\n");U--;J()}),mxUtils.bind(this,function(ja){U--;H.push("@import url("+ba+");\n");J()}))):H.push(this.cachedGoogleFonts[ba]+"\n"):H.push('@font-face {font-family: "'+aa+'";src: url("'+ba+'")}\n')})(u[W].name,u[W].url);J()}else l()};Editor.prototype.addMathCss=function(l){l=l.getElementsByTagName("defs");if(null!=l&&0<l.length)for(var u=document.getElementsByTagName("style"),H=0;H<u.length;H++){var U=mxUtils.getTextContent(u[H]);0>U.indexOf("mxPageSelector")&&0<U.indexOf("MathJax")&&l[0].appendChild(u[H].cloneNode(!0))}};
+Editor.prototype.addFontCss=function(l,u){u=null!=u?u:this.absoluteCssFonts(this.fontCss);if(null!=u){var H=mxUtils.getSvgDefs(l),U=u.split("\n");u=[];for(var J=[],W=0;W<U.length;W++)"@import"==U[W].substring(0,7)?u.push(U[W]):J.push(U[W]);l=l.ownerDocument;l=null!=l.createElementNS?l.createElementNS(mxConstants.NS_SVG,"style"):l.createElement("style");l.setAttribute("type","text/css");0<u.length&&(mxUtils.setTextContent(l,u.join("\n")),H.appendChild(l));0<J.length&&(l=l.cloneNode(!1),mxUtils.setTextContent(l,
+J.join("\n")),H.appendChild(l))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(l,u,H){var U=mxClient.IS_FF?8192:16384;return Math.min(H,Math.min(U/l,U/u))};Editor.prototype.exportToCanvas=function(l,u,H,U,J,W,aa,ba,ja,oa,qa,ra,ua,za,Ba,Ca,La,sa){try{W=null!=W?W:!0;aa=null!=aa?aa:!0;ra=null!=ra?ra:this.graph;ua=null!=ua?ua:0;var Aa=ja?null:ra.background;Aa==mxConstants.NONE&&(Aa=null);null==Aa&&(Aa=U);
null==Aa&&0==ja&&(Aa="dark"==Ca?Editor.darkColor:"#ffffff");this.convertImages(ra.getSvg(null,null,ua,za,null,aa,null,null,null,oa,null,Ca,La,sa),mxUtils.bind(this,function(Ea){try{var Ka=new Image;Ka.onload=mxUtils.bind(this,function(){try{var ya=function(){mxClient.IS_SF?window.setTimeout(function(){Pa.drawImage(Ka,0,0);l(Wa,Ea)},0):(Pa.drawImage(Ka,0,0),l(Wa,Ea))},Wa=document.createElement("canvas"),Ia=parseInt(Ea.getAttribute("width")),Xa=parseInt(Ea.getAttribute("height"));ba=null!=ba?ba:1;null!=
-u&&(ba=V?Math.min(1,Math.min(3*u/(4*Xa),u/Ia)):u/Ia);ba=this.getMaxCanvasScale(Ia,Xa,ba);Ia=Math.ceil(ba*Ia);Xa=Math.ceil(ba*Xa);Wa.setAttribute("width",Ia);Wa.setAttribute("height",Xa);var Pa=Wa.getContext("2d");null!=Aa&&(Pa.beginPath(),Pa.rect(0,0,Ia,Xa),Pa.fillStyle=Aa,Pa.fill());1!=ba&&Pa.scale(ba,ba);if(Ba){var t=ra.view,N=t.scale;t.scale=1;var Q=btoa(unescape(encodeURIComponent(t.createSvgGrid(t.gridColor))));t.scale=N;Q="data:image/svg+xml;base64,"+Q;var X=ra.gridSize*t.gridSteps*ba,ia=ra.getGraphBounds(),
+u&&(ba=W?Math.min(1,Math.min(3*u/(4*Xa),u/Ia)):u/Ia);ba=this.getMaxCanvasScale(Ia,Xa,ba);Ia=Math.ceil(ba*Ia);Xa=Math.ceil(ba*Xa);Wa.setAttribute("width",Ia);Wa.setAttribute("height",Xa);var Pa=Wa.getContext("2d");null!=Aa&&(Pa.beginPath(),Pa.rect(0,0,Ia,Xa),Pa.fillStyle=Aa,Pa.fill());1!=ba&&Pa.scale(ba,ba);if(Ba){var t=ra.view,N=t.scale;t.scale=1;var Q=btoa(unescape(encodeURIComponent(t.createSvgGrid(t.gridColor))));t.scale=N;Q="data:image/svg+xml;base64,"+Q;var X=ra.gridSize*t.gridSteps*ba,ia=ra.getGraphBounds(),
ka=t.translate.x*N,pa=t.translate.y*N,xa=ka+(ia.x-ka)/N-ua,ta=pa+(ia.y-pa)/N-ua,va=new Image;va.onload=function(){try{for(var Da=-Math.round(X-mxUtils.mod((ka-xa)*ba,X)),Na=-Math.round(X-mxUtils.mod((pa-ta)*ba,X));Da<Ia;Da+=X)for(var Ya=Na;Ya<Xa;Ya+=X)Pa.drawImage(va,Da/ba,Ya/ba);ya()}catch(Za){null!=J&&J(Za)}};va.onerror=function(Da){null!=J&&J(Da)};va.src=Q}else ya()}catch(Da){null!=J&&J(Da)}});Ka.onerror=function(ya){null!=J&&J(ya)};oa&&this.graph.addSvgShadow(Ea);this.graph.mathEnabled&&this.addMathCss(Ea);
-var Ma=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Ea,this.resolvedFontCss),Ka.src=Editor.createSvgDataUri(mxUtils.getXml(Ea))}catch(ya){null!=J&&J(ya)}});this.embedExtFonts(mxUtils.bind(this,function(ya){try{null!=ya&&this.addFontCss(Ea,ya),this.loadFonts(Ma)}catch(Wa){null!=J&&J(Wa)}}))}catch(ya){null!=J&&J(ya)}}),H,qa)}catch(Ea){null!=J&&J(Ea)}};Editor.crcTable=[];for(var v=0;256>v;v++)for(var p=v,B=0;8>B;B++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[v]=
-p;Editor.updateCRC=function(l,u,H,U){for(var J=0;J<U;J++)l=Editor.crcTable[(l^u.charCodeAt(H+J))&255]^l>>>8;return l};Editor.crc32=function(l){for(var u=-1,H=0;H<l.length;H++)u=u>>>8^Editor.crcTable[(u^l.charCodeAt(H))&255];return(u^-1)>>>0};Editor.writeGraphModelToPng=function(l,u,H,U,J){function V(qa,ra){var ua=ja;ja+=ra;return qa.substring(ua,ja)}function aa(qa){qa=V(qa,4);return qa.charCodeAt(3)+(qa.charCodeAt(2)<<8)+(qa.charCodeAt(1)<<16)+(qa.charCodeAt(0)<<24)}function ba(qa){return String.fromCharCode(qa>>
-24&255,qa>>16&255,qa>>8&255,qa&255)}l=l.substring(l.indexOf(",")+1);l=window.atob?atob(l):Base64.decode(l,!0);var ja=0;if(V(l,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=J&&J();else if(V(l,4),"IHDR"!=V(l,4))null!=J&&J();else{V(l,17);J=l.substring(0,ja);do{var oa=aa(l);if("IDAT"==V(l,4)){J=l.substring(0,ja-8);"pHYs"==u&&"dpi"==H?(H=Math.round(U/.0254),H=ba(H)+ba(H)+String.fromCharCode(1)):H=H+String.fromCharCode(0)+("zTXt"==u?String.fromCharCode(0):"")+U;U=4294967295;
-U=Editor.updateCRC(U,u,0,4);U=Editor.updateCRC(U,H,0,H.length);J+=ba(H.length)+u+H+ba(U^4294967295);J+=l.substring(ja-8,l.length);break}J+=l.substring(ja-8,ja-4+oa);V(l,oa);V(l,4)}while(oa);return"data:image/png;base64,"+(window.btoa?btoa(J):Base64.encode(J,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var G=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(l,u){G.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);
+var Ma=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Ea,this.resolvedFontCss),Ka.src=Editor.createSvgDataUri(mxUtils.getXml(Ea))}catch(ya){null!=J&&J(ya)}});this.embedExtFonts(mxUtils.bind(this,function(ya){try{null!=ya&&this.addFontCss(Ea,ya),this.loadFonts(Ma)}catch(Wa){null!=J&&J(Wa)}}))}catch(ya){null!=J&&J(ya)}}),H,qa)}catch(Ea){null!=J&&J(Ea)}};Editor.crcTable=[];for(var v=0;256>v;v++)for(var p=v,A=0;8>A;A++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[v]=
+p;Editor.updateCRC=function(l,u,H,U){for(var J=0;J<U;J++)l=Editor.crcTable[(l^u.charCodeAt(H+J))&255]^l>>>8;return l};Editor.crc32=function(l){for(var u=-1,H=0;H<l.length;H++)u=u>>>8^Editor.crcTable[(u^l.charCodeAt(H))&255];return(u^-1)>>>0};Editor.writeGraphModelToPng=function(l,u,H,U,J){function W(qa,ra){var ua=ja;ja+=ra;return qa.substring(ua,ja)}function aa(qa){qa=W(qa,4);return qa.charCodeAt(3)+(qa.charCodeAt(2)<<8)+(qa.charCodeAt(1)<<16)+(qa.charCodeAt(0)<<24)}function ba(qa){return String.fromCharCode(qa>>
+24&255,qa>>16&255,qa>>8&255,qa&255)}l=l.substring(l.indexOf(",")+1);l=window.atob?atob(l):Base64.decode(l,!0);var ja=0;if(W(l,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=J&&J();else if(W(l,4),"IHDR"!=W(l,4))null!=J&&J();else{W(l,17);J=l.substring(0,ja);do{var oa=aa(l);if("IDAT"==W(l,4)){J=l.substring(0,ja-8);"pHYs"==u&&"dpi"==H?(H=Math.round(U/.0254),H=ba(H)+ba(H)+String.fromCharCode(1)):H=H+String.fromCharCode(0)+("zTXt"==u?String.fromCharCode(0):"")+U;U=4294967295;
+U=Editor.updateCRC(U,u,0,4);U=Editor.updateCRC(U,H,0,H.length);J+=ba(H.length)+u+H+ba(U^4294967295);J+=l.substring(ja-8,l.length);break}J+=l.substring(ja-8,ja-4+oa);W(l,oa);W(l,4)}while(oa);return"data:image/png;base64,"+(window.btoa?btoa(J):Base64.encode(J,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var G=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(l,u){G.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);
mxSettings.save()};var S=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){S.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(l,u){var H=null;null!=l.editor.graph.getModel().getParent(u)?H=u.getId():null!=l.currentPage&&(H=l.currentPage.getId());return H});if(null!=window.StyleFormatPanel){var F=Format.prototype.init;Format.prototype.init=function(){F.apply(this,
arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var P=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?P.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(l){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var R=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=
function(l){l=R.apply(this,arguments);var u=this.editorUi,H=u.editor.graph;if(H.isEnabled()){var U=u.getCurrentFile();null!=U&&U.isAutosaveOptional()&&l.appendChild(this.createOption(mxResources.get("autosave"),function(){return u.editor.autosave},function(aa){u.editor.setAutosave(aa);u.editor.autosave&&U.isModified()&&U.fileChanged()},{install:function(aa){this.listener=function(){aa(u.editor.autosave)};u.editor.addListener("autosaveChanged",this.listener)},destroy:function(){u.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&
-H.isEnabled()&&"undefined"!==typeof MathJax){var J=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return H.mathEnabled},function(aa){u.actions.get("mathematicalTypesetting").funct()},{install:function(aa){this.listener=function(){aa(H.mathEnabled)};u.addListener("mathEnabledChanged",this.listener)},destroy:function(){u.removeListener(this.listener)}});l.appendChild(J);if(!u.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var V=u.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting");
-V.style.position="absolute";V.style.left="85%";J.appendChild(V)}}return l};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",
+H.isEnabled()&&"undefined"!==typeof MathJax){var J=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return H.mathEnabled},function(aa){u.actions.get("mathematicalTypesetting").funct()},{install:function(aa){this.listener=function(){aa(H.mathEnabled)};u.addListener("mathEnabledChanged",this.listener)},destroy:function(){u.removeListener(this.listener)}});l.appendChild(J);if(!u.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var W=u.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting");
+W.style.position="absolute";W.style.left="85%";J.appendChild(W)}}return l};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",
dispName:"Width",type:"float",min:0,defVal:10},{name:"startWidth",dispName:"Start Width",type:"float",min:0,defVal:20},{name:"endWidth",dispName:"End Width",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.process.prototype.customProperties=[{name:"size",dispName:"Indent",type:"float",min:0,max:.5,defVal:.1}];mxCellRenderer.defaultShapes.rhombus.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,max:50,defVal:mxConstants.LINE_ARCSIZE},{name:"double",dispName:"Double",
type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.partialRectangle.prototype.customProperties=[{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},{name:"left",dispName:"Left Line",type:"bool",defVal:!0},{name:"right",dispName:"Right Line",type:"bool",defVal:!0}];mxCellRenderer.defaultShapes.parallelogram.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"size",
dispName:"Slope Angle",type:"float",min:0,max:1,defVal:.2,isVisible:function(l){return"0"==mxUtils.getValue(l.style,"fixedSize","0")}},{name:"size",dispName:"Slope Angle",type:"float",min:0,defVal:20,isVisible:function(l){return"1"==mxUtils.getValue(l.style,"fixedSize","0")}}];mxCellRenderer.defaultShapes.hexagon.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"size",dispName:"Slope Angle",type:"float",min:0,max:1,defVal:.25,
@@ -3338,21 +3353,21 @@ stroke:"#9673a6"}],[{fill:"",stroke:""},{fill:"#60a917",stroke:"#2D7600",font:"#
font:"#000000"},{fill:"#e3c800",stroke:"#B09500",font:"#000000"},{fill:"#6d8764",stroke:"#3A5431",font:"#ffffff"},{fill:"#647687",stroke:"#314354",font:"#ffffff"},{fill:"#76608a",stroke:"#432D57",font:"#ffffff"},{fill:"#a0522d",stroke:"#6D1F00",font:"#ffffff"}],[{fill:"",stroke:""},{fill:mxConstants.NONE,stroke:""},{fill:"#fad7ac",stroke:"#b46504"},{fill:"#fad9d5",stroke:"#ae4132"},{fill:"#b0e3e6",stroke:"#0e8088"},{fill:"#b1ddf0",stroke:"#10739e"},{fill:"#d0cee2",stroke:"#56517e"},{fill:"#bac8d3",
stroke:"#23445d"}],[{fill:"",stroke:""},{fill:"#f5f5f5",stroke:"#666666",gradient:"#b3b3b3"},{fill:"#dae8fc",stroke:"#6c8ebf",gradient:"#7ea6e0"},{fill:"#d5e8d4",stroke:"#82b366",gradient:"#97d077"},{fill:"#ffcd28",stroke:"#d79b00",gradient:"#ffa500"},{fill:"#fff2cc",stroke:"#d6b656",gradient:"#ffd966"},{fill:"#f8cecc",stroke:"#b85450",gradient:"#ea6b66"},{fill:"#e6d0de",stroke:"#996185",gradient:"#d5739d"}],[{fill:"",stroke:""},{fill:"#eeeeee",stroke:"#36393d"},{fill:"#f9f7ed",stroke:"#36393d"},
{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;StyleFormatPanel.prototype.findCommonProperties=function(l,u,H,U){if(null!=u){var J=mxUtils.bind(this,function(aa){if(null!=aa)if(H)for(var ba=0;ba<aa.length;ba++){if("function"!==typeof aa[ba].isVisible||aa[ba].isVisible(U,this))u[aa[ba].name]=aa[ba]}else for(var ja in u){var oa=
-!1;for(ba=0;ba<aa.length;ba++)if(aa[ba].name==ja&&aa[ba].type==u[ja].type){oa=!0;break}oa||delete u[ja]}}),V=this.editorUi.editor.graph.view.getState(l);null!=V&&null!=V.shape&&(V.shape.commonCustomPropAdded||(V.shape.commonCustomPropAdded=!0,V.shape.customProperties=V.shape.customProperties||[],V.cell.vertex?Array.prototype.push.apply(V.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(V.shape.customProperties,Editor.commonEdgeProperties)),J(V.shape.customProperties));
+!1;for(ba=0;ba<aa.length;ba++)if(aa[ba].name==ja&&aa[ba].type==u[ja].type){oa=!0;break}oa||delete u[ja]}}),W=this.editorUi.editor.graph.view.getState(l);null!=W&&null!=W.shape&&(W.shape.commonCustomPropAdded||(W.shape.commonCustomPropAdded=!0,W.shape.customProperties=W.shape.customProperties||[],W.cell.vertex?Array.prototype.push.apply(W.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(W.shape.customProperties,Editor.commonEdgeProperties)),J(W.shape.customProperties));
l=l.getAttribute("customProperties");if(null!=l)try{J(JSON.parse(l))}catch(aa){}}};var T=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var l=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=l.style.shape&&!l.containsLabel&&0<l.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));T.apply(this,arguments);if(Editor.enableCustomProperties){for(var u={},H=l.vertices,U=l.edges,J=0;J<H.length;J++)this.findCommonProperties(H[J],
u,0==J,l);for(J=0;J<U.length;J++)this.findCommonProperties(U[J],u,0==H.length&&0==J,l);null!=Object.getOwnPropertyNames&&0<Object.getOwnPropertyNames(u).length&&this.container.appendChild(this.addProperties(this.createPanel(),u,l))}};var c=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(l){var u=this.editorUi.getSelectionState();1==u.cells.length?this.addActions(l,["copyStyle","pasteStyle"]):1<=u.cells.length&&this.addActions(l,["pasteStyle","pasteData"]);c.apply(this,
arguments);return l};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=function(l,u,H,U){function J(Pa,t,N,Q,X){if(null!=N.valueChanged)N.valueChanged(t,X);else{ua.getModel().beginUpdate();try{X=[];var ia=[];if(null!=N.index){for(var ka=[],pa=N.parentRow.nextSibling;pa&&pa.getAttribute("data-pName")==Pa;)ka.push(pa.getAttribute("data-pValue")),pa=pa.nextSibling;N.index<ka.length?null!=Q?ka.splice(Q,1):ka[N.index]=t:ka.push(t);null!=N.size&&ka.length>N.size&&(ka=ka.slice(0,
N.size));t=ka.join(",");null!=N.countProperty&&(ua.setCellStyles(N.countProperty,ka.length,ua.getSelectionCells()),X.push(N.countProperty),ia.push(ka.length))}ua.setCellStyles(Pa,t,ua.getSelectionCells());X.push(Pa);ia.push(t);if(null!=N.dependentProps)for(Pa=0;Pa<N.dependentProps.length;Pa++){var xa=N.dependentPropsDefVal[Pa],ta=N.dependentPropsVals[Pa];if(ta.length>t)ta=ta.slice(0,t);else for(var va=ta.length;va<t;va++)ta.push(xa);ta=ta.join(",");ua.setCellStyles(N.dependentProps[Pa],ta,ua.getSelectionCells());
-X.push(N.dependentProps[Pa]);ia.push(ta)}if("function"==typeof N.onChange)N.onChange(ua,t);ra.editorUi.fireEvent(new mxEventObject("styleChanged","keys",X,"values",ia,"cells",ua.getSelectionCells()))}finally{ua.getModel().endUpdate()}}}function V(Pa,t,N){var Q=mxUtils.getOffset(l,!0),X=mxUtils.getOffset(Pa,!0);t.style.position="absolute";t.style.left=X.x-Q.x+"px";t.style.top=X.y-Q.y+"px";t.style.width=Pa.offsetWidth+"px";t.style.height=Pa.offsetHeight-(N?4:0)+"px";t.style.zIndex=5}function aa(Pa,
+X.push(N.dependentProps[Pa]);ia.push(ta)}if("function"==typeof N.onChange)N.onChange(ua,t);ra.editorUi.fireEvent(new mxEventObject("styleChanged","keys",X,"values",ia,"cells",ua.getSelectionCells()))}finally{ua.getModel().endUpdate()}}}function W(Pa,t,N){var Q=mxUtils.getOffset(l,!0),X=mxUtils.getOffset(Pa,!0);t.style.position="absolute";t.style.left=X.x-Q.x+"px";t.style.top=X.y-Q.y+"px";t.style.width=Pa.offsetWidth+"px";t.style.height=Pa.offsetHeight-(N?4:0)+"px";t.style.zIndex=5}function aa(Pa,
t,N){function Q(ia){if(null==ia||ia==mxConstants.NONE)X.style.background="url('"+Dialog.prototype.noColorImage+"')";else if("default"==ia)X.style.background="";else{var ka=mxUtils.getLightDarkColor(ia);mxUtils.isLightDarkColor(ia)&&ka.light!=ka.dark?X.style.background="linear-gradient(to right bottom, "+ka.cssText+" 50%, "+mxUtils.invertLightDarkColor(ka).cssText+" 50.3%)":X.style.background=ia}}var X=document.createElement("div");X.style.width="32px";X.style.height="8px";X.style.margin="2px";X.style.borderStyle=
"solid";X.style.borderWidth="1px";Q(t);btn=mxUtils.button("",mxUtils.bind(ra,function(ia){this.editorUi.pickColor(t,function(ka){J(Pa,ka,N);Q(ka)});mxEvent.consume(ia)}));btn.style.height="18px";btn.style.width="40px";btn.style.marginTop="1px";btn.style.marginLeft="1px";btn.className="geColorBtn";btn.appendChild(X);return btn}function ba(Pa,t,N,Q,X,ia,ka){null!=t&&(t=t.split(","),za.push({name:Pa,values:t,type:N,defVal:Q,countProperty:X,parentRow:ia,isDeletable:!0,flipBkg:ka}));btn=mxUtils.button("+",
mxUtils.bind(ra,function(pa){for(var xa=ia,ta=0;null!=xa.nextSibling;)if(xa.nextSibling.getAttribute("data-pName")==Pa)xa=xa.nextSibling,ta++;else break;var va={type:N,parentRow:ia,index:ta,isDeletable:!0,defVal:Q,countProperty:X};ta=qa(Pa,"",va,0==ta%2,ka);J(Pa,Q,va);xa.parentNode.insertBefore(ta,xa.nextSibling);mxEvent.consume(pa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function ja(Pa,t,N,Q,X,ia,ka){if(0<X){var pa=Array(X);t=null!=t?t.split(","):[];
for(var xa=0;xa<X;xa++)pa[xa]=null!=t[xa]?t[xa]:null!=Q?Q:"";za.push({name:Pa,values:pa,type:N,defVal:Q,parentRow:ia,flipBkg:ka,size:X})}return document.createElement("div")}function oa(Pa,t,N){var Q=document.createElement("input");Q.type="checkbox";Q.checked="1"==t;mxEvent.addListener(Q,"change",function(){J(Pa,Q.checked?"1":"0",N)});return Q}function qa(Pa,t,N,Q,X){var ia=N.dispName,ka=N.type,pa=document.createElement("tr");pa.className="gePropRow"+(X?"Dark":"")+(Q?"Alt":"")+" gePropNonHeaderRow";
pa.setAttribute("data-pName",Pa);pa.setAttribute("data-pValue",t);Q=!1;null!=N.index&&(pa.setAttribute("data-index",N.index),ia=(null!=ia?ia:"")+"["+N.index+"]",Q=!0);var xa=document.createElement("td");xa.className="gePropRowCell";ia=mxResources.get(ia,null,ia);mxUtils.write(xa,ia);xa.setAttribute("title",ia);Q&&(xa.style.textAlign="right");pa.appendChild(xa);xa=document.createElement("td");xa.className="gePropRowCell";xa.setAttribute("title",null!=t?t:mxResources.get("none"));if("color"==ka)xa.appendChild(aa(Pa,
-t,N));else if("bool"==ka||"boolean"==ka)xa.appendChild(oa(Pa,t,N));else if("enum"==ka){var ta=N.enumList;for(X=0;X<ta.length;X++)if(ia=ta[X],ia.val==t){mxUtils.write(xa,mxResources.get(ia.dispName,null,ia.dispName));break}mxEvent.addListener(xa,"click",mxUtils.bind(ra,function(){var va=document.createElement("select"),Da=null;V(xa,va);for(var Na=0;Na<ta.length;Na++){var Ya=ta[Na],Za=document.createElement("option");Za.value=mxUtils.htmlEntities(Ya.val);mxUtils.write(Za,mxResources.get(Ya.dispName,
+t,N));else if("bool"==ka||"boolean"==ka)xa.appendChild(oa(Pa,t,N));else if("enum"==ka){var ta=N.enumList;for(X=0;X<ta.length;X++)if(ia=ta[X],ia.val==t){mxUtils.write(xa,mxResources.get(ia.dispName,null,ia.dispName));break}mxEvent.addListener(xa,"click",mxUtils.bind(ra,function(){var va=document.createElement("select"),Da=null;W(xa,va);for(var Na=0;Na<ta.length;Na++){var Ya=ta[Na],Za=document.createElement("option");Za.value=mxUtils.htmlEntities(Ya.val);mxUtils.write(Za,mxResources.get(Ya.dispName,
null,Ya.dispName));va.appendChild(Za);null==Ya.val&&(Za.value="null",Da=Za)}va.value=null==t&&null!=Da?"null":t;l.appendChild(va);mxEvent.addListener(va,"change",function(){var ab=mxUtils.htmlEntities(va.value);if(va[va.selectedIndex]==Da||"null"==ab.value)ab=null;J(Pa,ab,N)});va.focus();mxEvent.addListener(va,"blur",function(){l.removeChild(va)})}))}else"dynamicArr"==ka?xa.appendChild(ba(Pa,t,N.subType,N.subDefVal,N.countProperty,pa,X)):"staticArr"==ka?xa.appendChild(ja(Pa,t,N.subType,N.subDefVal,
N.size,pa,X)):"readOnly"==ka?(X=document.createElement("input"),X.setAttribute("readonly",""),X.value=t,X.style.borderWidth="0px","id"==Pa?(X.style.width="190px",X.style.position="relative",X.style.right="6px",X.style.float="right",X.style.background="none",X.style.textAlign="right",pa.firstChild.setAttribute("colspan","2"),X.setAttribute("title",t),pa.firstChild.appendChild(X)):(X.style.width="96px",xa.appendChild(X))):(xa.innerHTML=mxUtils.htmlEntities(decodeURIComponent(t)),mxEvent.addListener(xa,
-"click",mxUtils.bind(ra,function(){function va(){var Na=Da.value;Na=0==Na.length&&"string"!=ka&&"numbers"!=ka?0:Na;N.allowAuto&&(null!=Na.trim&&"auto"==Na.trim().toLowerCase()?(Na="auto",ka="string"):(Na=parseFloat(Na),Na=isNaN(Na)?0:Na));null!=N.min&&Na<N.min?Na=N.min:null!=N.max&&Na>N.max&&(Na=N.max);var Ya=null;try{Ya="numbers"==ka?Na.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==ka?parseInt(Na):Na)+"")}catch(Za){}J(Pa,Ya,N,null,Da)}var Da=document.createElement("input");V(xa,
+"click",mxUtils.bind(ra,function(){function va(){var Na=Da.value;Na=0==Na.length&&"string"!=ka&&"numbers"!=ka?0:Na;N.allowAuto&&(null!=Na.trim&&"auto"==Na.trim().toLowerCase()?(Na="auto",ka="string"):(Na=parseFloat(Na),Na=isNaN(Na)?0:Na));null!=N.min&&Na<N.min?Na=N.min:null!=N.max&&Na>N.max&&(Na=N.max);var Ya=null;try{Ya="numbers"==ka?Na.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==ka?parseInt(Na):Na)+"")}catch(Za){}J(Pa,Ya,N,null,Da)}var Da=document.createElement("input");W(xa,
Da,!0);Da.value=decodeURIComponent(t);Da.className="gePropEditor";"int"!=ka&&"float"!=ka||N.allowAuto||(Da.type="number",Da.step="int"==ka?"1":"any",null!=N.min&&(Da.min=parseFloat(N.min)),null!=N.max&&(Da.max=parseFloat(N.max)));l.appendChild(Da);mxEvent.addListener(Da,"keypress",function(Na){13==Na.keyCode&&va()});Da.focus();mxEvent.addListener(Da,"blur",function(){va()})})));N.isDeletable&&(X=mxUtils.button("-",mxUtils.bind(ra,function(va){J(Pa,"",N,N.index);mxEvent.consume(va)})),X.style.height=
"16px",X.style.width="25px",X.style.float="right",X.className="geColorBtn",xa.appendChild(X));pa.appendChild(xa);return pa}var ra=this,ua=this.editorUi.editor.graph,za=[];l.style.position="relative";l.style.padding="0";var Ba=document.createElement("table");Ba.className="geProperties";Ba.style.whiteSpace="nowrap";Ba.style.width="100%";var Ca=document.createElement("tr");Ca.className="gePropHeader";var La=document.createElement("th");La.className="gePropHeaderCell";La.style.paddingLeft="16px";La.style.backgroundRepeat=
"no-repeat";La.style.backgroundPosition="-2px 50%";La.style.backgroundSize="20px";mxUtils.write(La,mxResources.get("property"));Ca.style.cursor="pointer";var sa=function(){var Pa=Ba.querySelectorAll(".gePropNonHeaderRow");if(ra.editorUi.propertiesCollapsed){La.style.backgroundImage="url('"+Editor.arrowRightImage+"')";var t="none";for(var N=l.childNodes.length-1;0<=N;N--)try{var Q=l.childNodes[N],X=Q.nodeName.toUpperCase();"INPUT"!=X&&"SELECT"!=X||l.removeChild(Q)}catch(ia){}}else La.style.backgroundImage=
@@ -3360,8 +3375,8 @@ Da,!0);Da.value=decodeURIComponent(t);Da.className="gePropEditor";"int"!=ka&&"fl
H.edges.length&&(Ca=H.edges[0].id);null==Ca||U||Ba.appendChild(qa("id",mxUtils.htmlEntities(Ca),{dispName:"id",type:"readOnly"},!0,!1));for(var Ka in u)if(U=u[Ka],"function"!=typeof U.isVisible||U.isVisible(H,this)){var Ma=null!=U.getValue?U.getValue():null!=H.style[Ka]?mxUtils.htmlEntities(H.style[Ka]+""):null!=U.getDefaultValue?U.getDefaultValue(H,this):U.defVal;if("separator"==U.type)Ea=!Ea;else{if("staticArr"==U.type)U.size=parseInt(H.style[U.sizeProperty]||u[U.sizeProperty].defVal)||0;else if(null!=
U.dependentProps){var ya=U.dependentProps,Wa=[],Ia=[];for(Ca=0;Ca<ya.length;Ca++){var Xa=H.style[ya[Ca]];Ia.push(u[ya[Ca]].subDefVal);Wa.push(null!=Xa?Xa.split(","):[])}U.dependentPropsDefVal=Ia;U.dependentPropsVals=Wa}Ba.appendChild(qa(Ka,Ma,U,Aa,Ea));Aa=!Aa}}for(Ca=0;Ca<za.length;Ca++)for(U=za[Ca],u=U.parentRow,H=0;H<U.values.length;H++)Ka=qa(U.name,U.values[H],{type:U.type,parentRow:U.parentRow,isDeletable:U.isDeletable,index:H,defVal:U.defVal,countProperty:U.countProperty,size:U.size},0==H%2,
U.flipBkg),u.parentNode.insertBefore(Ka,u.nextSibling),u=Ka;l.appendChild(Ba);sa();return l};StyleFormatPanel.prototype.addStyles=function(l){if(null!=this.defaultColorSchemes){var u=function(za){mxEvent.addListener(za,"mouseenter",function(){za.style.opacity="1"});mxEvent.addListener(za,"mouseleave",function(){za.style.opacity="0.5"})},H=this.editorUi,U=H.editor.graph,J=document.createElement("div");J.style.whiteSpace="nowrap";J.style.paddingLeft="24px";J.style.paddingRight="20px";l.style.paddingLeft=
-"16px";l.style.paddingBottom="6px";l.style.position="relative";l.appendChild(J);var V=document.createElement("div");V.style.whiteSpace="nowrap";V.style.position="relative";V.style.textAlign="center";V.style.width="210px";for(var aa=[],ba=0;ba<this.defaultColorSchemes.length;ba++){var ja=document.createElement("div");ja.style.display="inline-block";ja.style.width="6px";ja.style.height="6px";ja.style.marginLeft="4px";ja.style.marginRight="3px";ja.style.borderRadius="3px";ja.style.cursor="pointer";ja.style.background=
-"transparent";ja.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(za){mxEvent.addListener(ja,"click",mxUtils.bind(this,function(){oa(za)}))})(ba);aa.push(ja);V.appendChild(ja)}var oa=mxUtils.bind(this,function(za){null!=aa[za]&&(null!=this.format.currentScheme&&null!=aa[this.format.currentScheme]&&(aa[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=za,qa(this.defaultColorSchemes[this.format.currentScheme]),aa[this.format.currentScheme].style.background=
+"16px";l.style.paddingBottom="6px";l.style.position="relative";l.appendChild(J);var W=document.createElement("div");W.style.whiteSpace="nowrap";W.style.position="relative";W.style.textAlign="center";W.style.width="210px";for(var aa=[],ba=0;ba<this.defaultColorSchemes.length;ba++){var ja=document.createElement("div");ja.style.display="inline-block";ja.style.width="6px";ja.style.height="6px";ja.style.marginLeft="4px";ja.style.marginRight="3px";ja.style.borderRadius="3px";ja.style.cursor="pointer";ja.style.background=
+"transparent";ja.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(za){mxEvent.addListener(ja,"click",mxUtils.bind(this,function(){oa(za)}))})(ba);aa.push(ja);W.appendChild(ja)}var oa=mxUtils.bind(this,function(za){null!=aa[za]&&(null!=this.format.currentScheme&&null!=aa[this.format.currentScheme]&&(aa[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=za,qa(this.defaultColorSchemes[this.format.currentScheme]),aa[this.format.currentScheme].style.background=
"#84d7ff")}),qa=mxUtils.bind(this,function(za){var Ba=mxUtils.clone(U.defaultVertexStyle);Ba[mxConstants.STYLE_STROKECOLOR]=null!=Ba[mxConstants.STYLE_STROKECOLOR]?Ba[mxConstants.STYLE_STROKECOLOR]:"default";Ba[mxConstants.STYLE_FILLCOLOR]=null!=Ba[mxConstants.STYLE_FILLCOLOR]?Ba[mxConstants.STYLE_FILLCOLOR]:"default";Ba[mxConstants.STYLE_FONTCOLOR]=null!=Ba[mxConstants.STYLE_FONTCOLOR]?Ba[mxConstants.STYLE_FONTCOLOR]:"default";U.replaceDefaultColors(new mxCell,Ba);var Ca=mxUtils.bind(this,function(sa){var Aa=
mxUtils.button("",mxUtils.bind(this,function(Ma){U.getModel().beginUpdate();try{for(var ya=H.getSelectionState().cells,Wa=0;Wa<ya.length;Wa++){var Ia=U.getModel().getStyle(ya[Wa]);null!=sa?(mxEvent.isShiftDown(Ma)||(Ia=""==sa.fill||null==sa.fill?mxUtils.setStyle(Ia,mxConstants.STYLE_FILLCOLOR,null):mxUtils.setStyle(Ia,mxConstants.STYLE_FILLCOLOR,sa.fill),Ia=""==sa.gradient||null==sa.gradient?mxUtils.setStyle(Ia,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(Ia,mxConstants.STYLE_GRADIENTCOLOR,
sa.gradient),mxEvent.isControlDown(Ma)||mxClient.IS_MAC&&mxEvent.isMetaDown(Ma)||!U.getModel().isVertex(ya[Wa])||(Ia=""==sa.font||null==sa.font?mxUtils.setStyle(Ia,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(Ia,mxConstants.STYLE_FONTCOLOR,sa.font))),mxEvent.isAltDown(Ma)||(Ia=""==sa.stroke||null==sa.fill?mxUtils.setStyle(Ia,mxConstants.STYLE_STROKECOLOR,null):mxUtils.setStyle(Ia,mxConstants.STYLE_STROKECOLOR,sa.stroke))):(Ia=mxUtils.setStyle(Ia,mxConstants.STYLE_FILLCOLOR,null),Ia=mxUtils.setStyle(Ia,
@@ -3372,21 +3387,21 @@ Ka.light+" 50.3%)"}null==sa.stroke||sa.stroke==mxConstants.NONE?Aa.style.border=
"transparent",J.appendChild(Ea),Ea.style.marginLeft="-42px",mxEvent.addListener(Ea,"click",function(){Aa.click()}))});J.innerText="";if(null!=za)for(var La=0;La<za.length;La++)0<La&&0==mxUtils.mod(La,4)&&mxUtils.br(J),Ca(za[La])});null==this.format.currentScheme?oa(Math.min(aa.length-1,Editor.isDarkMode()?1:"1"==urlParams.sketch?5:0)):oa(this.format.currentScheme);ba=10>=this.defaultColorSchemes.length?28:8;var ra=document.createElement("div");ra.style.cssText="position:absolute;left:10px;top:8px;bottom:"+
ba+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ4eHh3d3d1dXVxcXF2dnZ2dnZ2dnZxcXF2dnYmb3w1AAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADRJREFUCNdjwACMAmBKaiGYs2oJmLPKAZ3DabU8AMRTXpUKopislqFyVzCAuUZgikkBZjoAcMYLnp53P/UAAAAASUVORK5CYII=);";mxEvent.addListener(ra,"click",mxUtils.bind(this,function(){oa(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));
var ua=document.createElement("div");ua.style.cssText="position:absolute;left:202px;top:8px;bottom:"+ba+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnYBuwCcAAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADZJREFUCNdjQAOMAmBKaiGY8loF5rKswsZlrVo8AUiFrTICcbIWK8A5DF1gDoMymMPApIAwHwCS0Qx/U7qCBQAAAABJRU5ErkJggg==);";1<this.defaultColorSchemes.length&&
-(l.appendChild(ra),l.appendChild(ua));mxEvent.addListener(ua,"click",mxUtils.bind(this,function(){oa(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));u(ra);u(ua);qa(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&l.appendChild(V)}return l}}Graph.fontMapping={"https://fonts.googleapis.com/css?family=Architects+Daughter":'@font-face { font-family: "Architects Daughter"; src: url('+STYLE_PATH+'/fonts/ArchitectsDaughter-Regular.ttf) format("truetype"); }'};
+(l.appendChild(ra),l.appendChild(ua));mxEvent.addListener(ua,"click",mxUtils.bind(this,function(){oa(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));u(ra);u(ua);qa(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&l.appendChild(W)}return l}}Graph.fontMapping={"https://fonts.googleapis.com/css?family=Architects+Daughter":'@font-face { font-family: "Architects Daughter"; src: url('+STYLE_PATH+'/fonts/ArchitectsDaughter-Regular.ttf) format("truetype"); }'};
Graph.customFontElements={};Graph.isGoogleFontUrl=function(l){return l.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||l.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(l){return Graph.isGoogleFontUrl(l)};Graph.rewriteGoogleFontUrl=function(l){null!=l&&l.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(l=Editor.GOOGLE_FONTS_CSS2+l.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return l};Graph.createFontElement=
function(l,u){var H=Graph.fontMapping[u];null==H&&Graph.isCssFontUrl(u)?(l=document.createElement("link"),l.setAttribute("rel","stylesheet"),l.setAttribute("type","text/css"),l.setAttribute("charset","UTF-8"),l.setAttribute("href",Graph.rewriteGoogleFontUrl(u))):(null==H&&(H='@font-face {\nfont-family: "'+l+'";\nsrc: url("'+u+'");\n}'),l=document.createElement("style"),mxUtils.write(l,H));return l};Graph.addRecentCustomFont=function(l,u){};Graph.addFont=function(l,u,H){if(null!=l&&0<l.length&&null!=
u&&0<u.length){var U=l.toLowerCase();if("helvetica"!=U&&"arial"!=l&&"sans-serif"!=U){var J=Graph.customFontElements[U];null!=J&&J.url!=u&&(J.elt.parentNode.removeChild(J.elt),J=null);null==J?(J=u,"http:"==u.substring(0,5)&&(J=PROXY_URL+"?url="+encodeURIComponent(u)),J={name:l,url:u,elt:Graph.createFontElement(l,J)},Graph.customFontElements[U]=J,u=document.getElementsByTagName("head")[0],null!=H&&("link"==J.elt.nodeName.toLowerCase()?(J.elt.onload=H,J.elt.onerror=H):H()),null!=u&&u.appendChild(J.elt)):
null!=H&&H()}else null!=H&&H()}else null!=H&&H();return l};Graph.getFontUrl=function(l,u){l=Graph.customFontElements[l.toLowerCase()];null!=l&&(u=l.url);return u};Graph.processFontAttributes=function(l){l=l.getElementsByTagName("*");for(var u=0;u<l.length;u++){var H=l[u].getAttribute("data-font-src");if(null!=H){var U="FONT"==l[u].nodeName?l[u].getAttribute("face"):l[u].style.fontFamily;null!=U&&Graph.addFont(U,H)}}};Graph.processFontStyle=function(l){if(null!=l){var u=mxUtils.getValue(l,"fontSource",
null);if(null!=u){var H=mxUtils.getValue(l,mxConstants.STYLE_FONTFAMILY,null);if(null!=H)try{Graph.addFont(H,decodeURIComponent(u))}catch(U){}}}return l};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;Graph.prototype.shadowId="drawio-drop-shadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur=
"1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var f=Graph.prototype.init;Graph.prototype.init=function(){function l(J){u=J}f.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var u=null;mxEvent.addListener(this.container,"mouseenter",l);mxEvent.addListener(this.container,"mousemove",l);mxEvent.addListener(this.container,"mouseleave",function(J){u=null});this.isMouseInsertPoint=function(){return null!=
-u};var H=this.getInsertPoint;this.getInsertPoint=function(){return null!=u?this.getPointForEvent(u):H.apply(this,arguments)};var U=this.layoutManager.getLayout;this.layoutManager.getLayout=function(J){var V=this.graph.getCellStyle(J);if(null!=V&&"rack"==V.childLayout){var aa=new mxStackLayout(this.graph,!1);aa.gridSize=null!=V.rackUnitSize?parseFloat(V.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;aa.marginLeft=V.marginLeft||0;aa.marginRight=V.marginRight||0;aa.marginTop=
-V.marginTop||0;aa.marginBottom=V.marginBottom||0;aa.allowGaps=V.allowGaps||0;aa.horizontal="1"==mxUtils.getValue(V,"horizontalRack","0");aa.resizeParent=!1;aa.fill=!0;return aa}return U.apply(this,arguments)};this.updateGlobalUrlVariables()};var k=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(l,u){return Graph.processFontStyle(k.apply(this,arguments))};var A=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(l,u,H,U,J,V,aa,
-ba,ja,oa,qa,ra){A.apply(this,arguments);Graph.processFontAttributes(ra)};var z=mxText.prototype.redraw;mxText.prototype.redraw=function(){z.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(l,u,H,U){function J(){for(var Ca=ba.getSelectionCells(),La=[],sa=0;sa<Ca.length;sa++)ba.isCellVisible(Ca[sa])&&La.push(Ca[sa]);ba.setSelectionCells(La)}function V(Ca){ba.setHiddenTags(Ca?[]:ja.slice());J();ba.refresh()}
+u};var H=this.getInsertPoint;this.getInsertPoint=function(){return null!=u?this.getPointForEvent(u):H.apply(this,arguments)};var U=this.layoutManager.getLayout;this.layoutManager.getLayout=function(J){var W=this.graph.getCellStyle(J);if(null!=W&&"rack"==W.childLayout){var aa=new mxStackLayout(this.graph,!1);aa.gridSize=null!=W.rackUnitSize?parseFloat(W.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;aa.marginLeft=W.marginLeft||0;aa.marginRight=W.marginRight||0;aa.marginTop=
+W.marginTop||0;aa.marginBottom=W.marginBottom||0;aa.allowGaps=W.allowGaps||0;aa.horizontal="1"==mxUtils.getValue(W,"horizontalRack","0");aa.resizeParent=!1;aa.fill=!0;return aa}return U.apply(this,arguments)};this.updateGlobalUrlVariables()};var k=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(l,u){return Graph.processFontStyle(k.apply(this,arguments))};var B=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(l,u,H,U,J,W,aa,
+ba,ja,oa,qa,ra){B.apply(this,arguments);Graph.processFontAttributes(ra)};var z=mxText.prototype.redraw;mxText.prototype.redraw=function(){z.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(l,u,H,U){function J(){for(var Ca=ba.getSelectionCells(),La=[],sa=0;sa<Ca.length;sa++)ba.isCellVisible(Ca[sa])&&La.push(Ca[sa]);ba.setSelectionCells(La)}function W(Ca){ba.setHiddenTags(Ca?[]:ja.slice());J();ba.refresh()}
function aa(Ca,La){qa.innerText="";if(0<Ca.length){var sa=document.createElement("table");sa.setAttribute("cellpadding","2");sa.style.boxSizing="border-box";sa.style.tableLayout="fixed";sa.style.width="100%";var Aa=document.createElement("tbody");if(null!=Ca&&0<Ca.length)for(var Ea=0;Ea<Ca.length;Ea++)(function(Ka){function Ma(){var t=ba.getCellsForTags([Ka],null,null,!0);ba.isEnabled()?ba.setSelectionCells(t):ba.highlightCells(t,null,null,70)}var ya=0>mxUtils.indexOf(ba.hiddenTags,Ka),Wa=document.createElement("tr"),
Ia=document.createElement("td");Ia.style.align="center";Ia.style.width="16px";var Xa=document.createElement("img");Xa.setAttribute("src",ya?Editor.visibleImage:Editor.hiddenImage);Xa.setAttribute("title",mxResources.get(ya?"hideIt":"show",[Ka]));mxUtils.setOpacity(Xa,ya?75:25);Xa.className="geAdaptiveAsset";Xa.style.verticalAlign="middle";Xa.style.cursor="pointer";Xa.style.width="16px";if(u||Editor.isDarkMode())Xa.style.filter="invert(100%)";Ia.appendChild(Xa);mxEvent.addListener(Xa,"click",function(t){mxEvent.isShiftDown(t)?
-V(0<=mxUtils.indexOf(ba.hiddenTags,Ka)):(ba.toggleHiddenTag(Ka),J(),ba.refresh());mxEvent.consume(t)});Wa.appendChild(Ia);Ia=document.createElement("td");Ia.style.align="center";Ia.style.width="16px";Xa=document.createElement("img");Xa.setAttribute("src",Editor.selectImage);Xa.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(Xa,ya?75:25);Xa.className="geAdaptiveAsset";Xa.style.verticalAlign="middle";Xa.style.cursor="pointer";Xa.style.width="16px";if(u||Editor.isDarkMode())Xa.style.filter=
-"invert(100%)";mxEvent.addListener(Xa,"click",function(t){V(!0);Ma();mxEvent.consume(t)});Ia.appendChild(Xa);Wa.appendChild(Ia);Ia=document.createElement("td");Ia.style.overflow="hidden";Ia.style.whiteSpace="nowrap";Ia.style.textOverflow="ellipsis";Ia.style.verticalAlign="middle";Ia.style.cursor="pointer";Ia.setAttribute("title",Ka);a=document.createElement("a");mxUtils.write(a,Ka);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,ya?100:40);Ia.appendChild(a);mxEvent.addListener(Ia,
-"click",function(t){if(mxEvent.isShiftDown(t))V(!0),Ma();else if(ya&&0<ba.hiddenTags.length)V(!0);else{var N=ja.slice(),Q=mxUtils.indexOf(N,Ka);N.splice(Q,1);ba.setHiddenTags(N);J();ba.refresh()}mxEvent.consume(t)});Wa.appendChild(Ia);if(ba.isEnabled()){Ia=document.createElement("td");Ia.style.verticalAlign="middle";Ia.style.textAlign="center";Ia.style.width="18px";if(null==La){Ia.style.align="center";Ia.style.width="16px";Xa=document.createElement("img");Xa.setAttribute("src",Editor.trashImage);
+W(0<=mxUtils.indexOf(ba.hiddenTags,Ka)):(ba.toggleHiddenTag(Ka),J(),ba.refresh());mxEvent.consume(t)});Wa.appendChild(Ia);Ia=document.createElement("td");Ia.style.align="center";Ia.style.width="16px";Xa=document.createElement("img");Xa.setAttribute("src",Editor.selectImage);Xa.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(Xa,ya?75:25);Xa.className="geAdaptiveAsset";Xa.style.verticalAlign="middle";Xa.style.cursor="pointer";Xa.style.width="16px";if(u||Editor.isDarkMode())Xa.style.filter=
+"invert(100%)";mxEvent.addListener(Xa,"click",function(t){W(!0);Ma();mxEvent.consume(t)});Ia.appendChild(Xa);Wa.appendChild(Ia);Ia=document.createElement("td");Ia.style.overflow="hidden";Ia.style.whiteSpace="nowrap";Ia.style.textOverflow="ellipsis";Ia.style.verticalAlign="middle";Ia.style.cursor="pointer";Ia.setAttribute("title",Ka);a=document.createElement("a");mxUtils.write(a,Ka);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,ya?100:40);Ia.appendChild(a);mxEvent.addListener(Ia,
+"click",function(t){if(mxEvent.isShiftDown(t))W(!0),Ma();else if(ya&&0<ba.hiddenTags.length)W(!0);else{var N=ja.slice(),Q=mxUtils.indexOf(N,Ka);N.splice(Q,1);ba.setHiddenTags(N);J();ba.refresh()}mxEvent.consume(t)});Wa.appendChild(Ia);if(ba.isEnabled()){Ia=document.createElement("td");Ia.style.verticalAlign="middle";Ia.style.textAlign="center";Ia.style.width="18px";if(null==La){Ia.style.align="center";Ia.style.width="16px";Xa=document.createElement("img");Xa.setAttribute("src",Editor.trashImage);
Xa.setAttribute("title",mxResources.get("removeIt",[Ka]));mxUtils.setOpacity(Xa,ya?75:25);Xa.className="geAdaptiveAsset";Xa.style.verticalAlign="middle";Xa.style.cursor="pointer";Xa.style.width="16px";if(u||Editor.isDarkMode())Xa.style.filter="invert(100%)";mxEvent.addListener(Xa,"click",function(t){var N=mxUtils.indexOf(ja,Ka);0<=N&&ja.splice(N,1);ba.removeTagsForCells(ba.model.getDescendants(ba.model.getRoot()),[Ka]);ba.refresh();mxEvent.consume(t)});Ia.appendChild(Xa)}else{var Pa=document.createElement("input");
Pa.setAttribute("type","checkbox");Pa.style.margin="0px";Pa.defaultChecked=null!=La&&0<=mxUtils.indexOf(La,Ka);Pa.checked=Pa.defaultChecked;Pa.style.background="transparent";Pa.setAttribute("title",mxResources.get(Pa.defaultChecked?"removeIt":"add",[Ka]));mxEvent.addListener(Pa,"change",function(t){Pa.checked?ba.addTagsForCells(ba.getSelectionCells(),[Ka]):ba.removeTagsForCells(ba.getSelectionCells(),[Ka]);mxEvent.consume(t)});Ia.appendChild(Pa)}Wa.appendChild(Ia)}Aa.appendChild(Wa)})(Ca[Ea]);sa.appendChild(Aa);
qa.appendChild(sa)}}var ba=this,ja=ba.hiddenTags.slice(),oa=document.createElement("div");oa.style.userSelect="none";oa.style.overflow="hidden";oa.style.padding="10px";oa.style.height="100%";var qa=document.createElement("div");qa.style.position="absolute";qa.style.boxSizing="border-box";qa.style.userSelect="none";qa.style.overflow="auto";qa.style.padding="3px";qa.style.left="0px";qa.style.right="0px";qa.style.top="0px";qa.style.bottom="0px";oa.appendChild(qa);ba.addListener(mxEvent.ROOT,function(){ja=
@@ -3394,9 +3409,9 @@ ba.hiddenTags.slice()});var ra=mxUtils.bind(this,function(Ca,La){if(l()){Ca=ba.g
"flex";ua.style.bottom="0px";ua.style.left="0px";ua.style.right="0px";ua.style.height="26px";ua.style.overflow="hidden";ua.style.padding="3px 4px 4px 4px";ua.style.borderWidth="1px 0px 0px 0px";ua.style.borderStyle="solid";ua.style.whiteSpace="nowrap";if(ba.isEnabled()){qa.style.bottom="34px";var za=document.createElement("a");za.className="geToolbarButton geAdaptiveAsset geToggleItem";za.style.width="16px";za.style.height="18px";za.style.backgroundPosition="center center";za.style.backgroundRepeat=
"no-repeat";za.style.backgroundSize="20px";za.style.margin="0 2px";za.style.display="inline-block";za.style.cursor="pointer";var Ba=za.cloneNode(!1);Ba.style.backgroundImage="url("+Editor.visibleImage+")";Ba.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(Ba,"click",function(Ca){ba.setHiddenTags([]);mxEvent.isShiftDown(Ca)||(ja=ba.hiddenTags.slice());J();ba.refresh();mxEvent.consume(Ca)});ua.appendChild(Ba);null!=H&&(za=za.cloneNode(!1),za.style.backgroundImage="url("+Editor.plusImage+
")",za.setAttribute("title",mxResources.get("add")),mxEvent.addListener(za,"click",function(Ca){H(ja,function(La){ja=La;ra()});mxEvent.consume(Ca)}),ua.appendChild(za));oa.appendChild(ua)}null!=U&&ua.appendChild(U);return{div:oa,refresh:ra}};Graph.prototype.getCustomFonts=function(){var l=this.extFonts;l=null!=l?l.slice():[];for(var u in Graph.customFontElements){var H=Graph.customFontElements[u];l.push({name:H.name,url:H.url})}return l};Graph.prototype.setFont=function(l,u){Graph.addFont(l,u);var H=
-Editor.guid();document.execCommand("fontname",!1,H);for(var U=this.cellEditor.textarea.getElementsByTagName("font"),J=!1,V=0;V<U.length;V++)U[V].getAttribute("face")==H&&(J=!0,U[V].setAttribute("face",l),null!=u?U[V].setAttribute("data-font-src",u):U[V].removeAttribute("data-font-src"));J||document.execCommand("fontname",!1,l)};var C=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return C.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=
+Editor.guid();document.execCommand("fontname",!1,H);for(var U=this.cellEditor.textarea.getElementsByTagName("font"),J=!1,W=0;W<U.length;W++)U[W].getAttribute("face")==H&&(J=!0,U[W].setAttribute("face",l),null!=u?U[W].setAttribute("data-font-src",u):U[W].removeAttribute("data-font-src"));J||document.execCommand("fontname",!1,l)};var C=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return C.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=
function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var l=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=l)for(var u in l)this.globalVars[u]=l[u]}catch(H){null!=window.console&&console.log("Error in vars URL parameter: "+H)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var I=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=
-function(l){var u=I.apply(this,arguments);null==u&&null!=this.globalVars&&(u=this.globalVars[l]);return u};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var l=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(l.ownerDocument)).decode(l)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var L=Graph.prototype.getSvg;Graph.prototype.getSvg=function(l,u,H,U,J,V,aa,ba,ja,oa,qa,ra,ua,za,Ba,Ca){var La=L.apply(this,
+function(l){var u=I.apply(this,arguments);null==u&&null!=this.globalVars&&(u=this.globalVars[l]);return u};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var l=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(l.ownerDocument)).decode(l)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var L=Graph.prototype.getSvg;Graph.prototype.getSvg=function(l,u,H,U,J,W,aa,ba,ja,oa,qa,ra,ua,za,Ba,Ca){var La=L.apply(this,
arguments);if(null!=ra){var sa=La.getAttribute("style");null==sa&&(sa="");ra="auto"==ra?"none"==this.getAdaptiveColors()?"light":"light dark":ra;La.setAttribute("style",sa+(" color-scheme: "+ra+";"))}var Aa=this.getCustomFonts();if(qa&&0<Aa.length){var Ea=La.ownerDocument;sa=null!=Ea.createElementNS?Ea.createElementNS(mxConstants.NS_SVG,"style"):Ea.createElement("style");null!=Ea.setAttributeNS?sa.setAttributeNS("type","text/css"):sa.setAttribute("type","text/css");for(var Ka="",Ma="",ya=0;ya<Aa.length;ya++){var Wa=
Aa[ya].name,Ia=Aa[ya].url;Graph.isCssFontUrl(Ia)?Ka+="@import url("+Graph.rewriteGoogleFontUrl(Ia)+");\n":Ma+='@font-face {\nfont-family: "'+Wa+'";\nsrc: url("'+Ia+'");\n}\n'}sa.appendChild(Ea.createTextNode(Ka+Ma));La.getElementsByTagName("defs")[0].appendChild(sa)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(La);this.mathEnabled&&(document.body.appendChild(La),Editor.MathJaxRender(La),La.parentNode.removeChild(La),sa=La.ownerDocument.getElementById("MJX-SVG-styles"),
null!=sa&&La.getElementsByTagName("defs")[0].appendChild(sa.cloneNode(!0)));return La};var K=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(l){K.apply(this,arguments);null!=l.secondLabel&&(l.secondLabel.destroy(),l.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(l){return[l.shape,l.text,l.secondLabel,l.control]};var O=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){O.apply(this,arguments);this.enumerationState=
@@ -3404,28 +3419,28 @@ null!=sa&&La.getElementsByTagName("defs")[0].appendChild(sa.cloneNode(!0)));retu
function(l){var u="1"==mxUtils.getValue(l.style,"enumerate",0);u&&null==l.secondLabel?(l.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),l.secondLabel.size=12,l.secondLabel.state=l,l.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(l,l.secondLabel)):u||null==l.secondLabel||(l.secondLabel.destroy(),l.secondLabel=null);u=l.secondLabel;if(null!=u){var H=l.view.scale,U=this.createEnumerationValue(l);l=this.graph.model.isVertex(l.cell)?
new mxRectangle(l.x+l.width-4*H,l.y+4*H,0,0):mxRectangle.fromPoint(l.view.getPoint(l));u.bounds.equals(l)&&u.value==U&&u.scale==H||(u.bounds=l,u.value=U,u.scale=H,u.redraw())}};var ea=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();ea.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};
var ca=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){ca.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(l,u){"data:action/json,"==l.substring(0,17)&&(l=JSON.parse(l.substring(17)),null!=l.actions&&this.executeCustomActions(l.actions,null,u))};Graph.prototype.executeCustomActions=function(l,u,H){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread),
-null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var U=!1,J=0,V=0,aa=mxUtils.bind(this,function(){U||(U=!0,this.model.beginUpdate())}),ba=mxUtils.bind(this,function(){U&&(U=!1,this.model.endUpdate())}),ja=mxUtils.bind(this,function(){0<J&&J--;0==J&&oa()}),oa=mxUtils.bind(this,function(){if(V<l.length){var qa=this.stoppingCustomActions,ra=l[V++],ua=[];if(null!=ra.open)if(ba(),this.isCustomLink(ra.open)){if(!this.customLinkClicked(ra.open,
+null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var U=!1,J=0,W=0,aa=mxUtils.bind(this,function(){U||(U=!0,this.model.beginUpdate())}),ba=mxUtils.bind(this,function(){U&&(U=!1,this.model.endUpdate())}),ja=mxUtils.bind(this,function(){0<J&&J--;0==J&&oa()}),oa=mxUtils.bind(this,function(){if(W<l.length){var qa=this.stoppingCustomActions,ra=l[W++],ua=[];if(null!=ra.open)if(ba(),this.isCustomLink(ra.open)){if(!this.customLinkClicked(ra.open,
H))return}else this.openLink(ra.open);null==ra.wait||qa||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;ja()}),J++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=ra.wait?parseInt(ra.wait):1E3),ba());null!=ra.opacity&&null!=ra.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(ra.opacity,!0)),ra.opacity.value);null!=ra.fadeIn&&(J++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(ra.fadeIn,
!0)),0,1,ja,qa?0:ra.fadeIn.delay));null!=ra.fadeOut&&(J++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(ra.fadeOut,!0)),1,0,ja,qa?0:ra.fadeOut.delay));null!=ra.wipeIn&&(ua=ua.concat(this.createWipeAnimations(this.getCellsForAction(ra.wipeIn,!0),!0)));null!=ra.wipeOut&&(ua=ua.concat(this.createWipeAnimations(this.getCellsForAction(ra.wipeOut,!0),!1)));null!=ra.toggle&&(aa(),this.toggleCells(this.getCellsForAction(ra.toggle,!0)));if(null!=ra.show){aa();var za=this.getCellsForAction(ra.show,
!0);Graph.setOpacityForNodes(this.getNodesForCells(za),1);this.setCellsVisible(za,!0)}null!=ra.hide&&(aa(),za=this.getCellsForAction(ra.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(za),0),this.setCellsVisible(za,!1));null!=ra.toggleStyle&&null!=ra.toggleStyle.key&&(aa(),this.toggleCellStyles(ra.toggleStyle.key,null!=ra.toggleStyle.defaultValue?ra.toggleStyle.defaultValue:"0",this.getCellsForAction(ra.toggleStyle,!0)));null!=ra.style&&null!=ra.style.key&&(aa(),this.setCellStyles(ra.style.key,
ra.style.value,this.getCellsForAction(ra.style,!0)));za=[];null!=ra.select&&this.isEnabled()&&(za=this.getCellsForAction(ra.select),this.setSelectionCells(za));null!=ra.highlight&&(za=this.getCellsForAction(ra.highlight),this.highlightCells(za,ra.highlight.color,ra.highlight.duration,ra.highlight.opacity));null!=ra.scroll&&(za=this.getCellsForAction(ra.scroll));null!=ra.viewbox&&this.fitWindow(ra.viewbox,ra.viewbox.border);0<za.length&&this.scrollCellToVisible(za[0]);null!=H&&null!=ra.explore&&Graph.exploreFromCell(this,
H,ra.explore);if(null!=ra.tags){if(null!=ra.tags.toggle){var Ba=ra.tags.toggle;0==Ba.length&&(Ba=this.getAllTags());for(za=0;za<Ba.length;za++)this.toggleHiddenTag(Ba[za])}Ba=null;null!=ra.tags.hidden&&(null==Ba&&(Ba=[]),Ba=Ba.concat(ra.tags.hidden));if(null!=ra.tags.visible){null==Ba&&(Ba=[]);var Ca=this.getAllTags();for(za=0;za<Ca.length;za++)0>mxUtils.indexOf(ra.tags.visible,Ca[za])&&0>mxUtils.indexOf(Ba,Ca[za])&&Ba.push(Ca[za])}null!=Ba&&this.setHiddenTags(Ba);this.refresh()}0<ua.length&&(J++,
-this.executeAnimations(ua,ja,qa?1:ra.steps,qa?0:ra.delay));0==J?oa():ba()}else this.stoppingCustomActions=this.executingCustomActions=!1,ba(),null!=u&&u()});oa()}};Graph.prototype.doUpdateCustomLinksForCell=function(l,u){var H=this.getLinkForCell(u);null!=H&&"data:action/json,"==H.substring(0,17)&&this.setLinkForCell(u,this.updateCustomLink(l,H));if(this.isHtmlLabel(u)){var U=document.createElement("div");U.innerHTML=Graph.sanitizeHtml(this.getLabel(u));for(var J=U.getElementsByTagName("a"),V=!1,
-aa=0;aa<J.length;aa++)H=J[aa].getAttribute("href"),null!=H&&"data:action/json,"==H.substring(0,17)&&(J[aa].setAttribute("href",this.updateCustomLink(l,H)),V=!0);V&&this.labelChanged(u,U.innerHTML)}};Graph.prototype.updateCustomLink=function(l,u){if("data:action/json,"==u.substring(0,17))try{var H=JSON.parse(u.substring(17));null!=H.actions&&(this.updateCustomLinkActions(l,H.actions),u="data:action/json,"+JSON.stringify(H))}catch(U){}return u};Graph.prototype.updateCustomLinkActions=function(l,u){for(var H=
-0;H<u.length;H++){var U=u[H],J;for(J in U)this.updateCustomLinkAction(l,U[J],"cells"),this.updateCustomLinkAction(l,U[J],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(l,u,H){if(null!=u&&null!=u[H]){for(var U=[],J=0;J<u[H].length;J++)if("*"==u[H][J])U.push(u[H][J]);else{var V=l[u[H][J]];null!=V?""!=V&&U.push(V):U.push(u[H][J])}u[H]=U}};Graph.prototype.getCellsForAction=function(l,u){u=this.getCellsById(l.cells).concat(this.getCellsForTags(l.tags,null,u));if(null!=l.excludeCells){for(var H=
-[],U=0;U<u.length;U++)0>l.excludeCells.indexOf(u[U].id)&&H.push(u[U]);u=H}return u};Graph.prototype.getCellsById=function(l){var u=[];if(null!=l)for(var H=0;H<l.length;H++)if("*"==l[H]){var U=this.model.getRoot();u=u.concat(this.model.filterDescendants(function(V){return V!=U},U))}else{var J=this.model.getCell(l[H]);null!=J&&u.push(J)}return u};var W=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(l){return W.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(l))};
+this.executeAnimations(ua,ja,qa?1:ra.steps,qa?0:ra.delay));0==J?oa():ba()}else this.stoppingCustomActions=this.executingCustomActions=!1,ba(),null!=u&&u()});oa()}};Graph.prototype.doUpdateCustomLinksForCell=function(l,u){var H=this.getLinkForCell(u);null!=H&&"data:action/json,"==H.substring(0,17)&&this.setLinkForCell(u,this.updateCustomLink(l,H));if(this.isHtmlLabel(u)){var U=document.createElement("div");U.innerHTML=Graph.sanitizeHtml(this.getLabel(u));for(var J=U.getElementsByTagName("a"),W=!1,
+aa=0;aa<J.length;aa++)H=J[aa].getAttribute("href"),null!=H&&"data:action/json,"==H.substring(0,17)&&(J[aa].setAttribute("href",this.updateCustomLink(l,H)),W=!0);W&&this.labelChanged(u,U.innerHTML)}};Graph.prototype.updateCustomLink=function(l,u){if("data:action/json,"==u.substring(0,17))try{var H=JSON.parse(u.substring(17));null!=H.actions&&(this.updateCustomLinkActions(l,H.actions),u="data:action/json,"+JSON.stringify(H))}catch(U){}return u};Graph.prototype.updateCustomLinkActions=function(l,u){for(var H=
+0;H<u.length;H++){var U=u[H],J;for(J in U)this.updateCustomLinkAction(l,U[J],"cells"),this.updateCustomLinkAction(l,U[J],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(l,u,H){if(null!=u&&null!=u[H]){for(var U=[],J=0;J<u[H].length;J++)if("*"==u[H][J])U.push(u[H][J]);else{var W=l[u[H][J]];null!=W?""!=W&&U.push(W):U.push(u[H][J])}u[H]=U}};Graph.prototype.getCellsForAction=function(l,u){u=this.getCellsById(l.cells).concat(this.getCellsForTags(l.tags,null,u));if(null!=l.excludeCells){for(var H=
+[],U=0;U<u.length;U++)0>l.excludeCells.indexOf(u[U].id)&&H.push(u[U]);u=H}return u};Graph.prototype.getCellsById=function(l){var u=[];if(null!=l)for(var H=0;H<l.length;H++)if("*"==l[H]){var U=this.model.getRoot();u=u.concat(this.model.filterDescendants(function(W){return W!=U},U))}else{var J=this.model.getCell(l[H]);null!=J&&u.push(J)}return u};var V=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(l){return V.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(l))};
Graph.prototype.setHiddenTags=function(l){this.hiddenTags=l;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(l){var u=mxUtils.indexOf(this.hiddenTags,l);0>u?this.hiddenTags.push(l):0<=u&&this.hiddenTags.splice(u,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(l){if(null==l||0==l.length||0==this.hiddenTags.length)return!1;l=l.split(" ");if(l.length>this.hiddenTags.length)return!1;for(var u=0;u<l.length;u++)if(0>
-mxUtils.indexOf(this.hiddenTags,l[u]))return!1;return!0};Graph.prototype.getCellsForTags=function(l,u,H,U){var J=[];if(null!=l){u=null!=u?u:this.model.getDescendants(this.model.getRoot());for(var V=0,aa={},ba=0;ba<l.length;ba++)0<l[ba].length&&(aa[l[ba]]=!0,V++);for(ba=0;ba<u.length;ba++)if(H&&this.model.getParent(u[ba])==this.model.root||this.model.isVertex(u[ba])||this.model.isEdge(u[ba])){var ja=this.getTagsForCell(u[ba]),oa=!1;if(0<ja.length&&(ja=ja.split(" "),ja.length>=l.length)){for(var qa=
-oa=0;qa<ja.length&&oa<V;qa++)null!=aa[ja[qa]]&&oa++;oa=oa==V}oa&&(1!=U||this.isCellVisible(u[ba]))&&J.push(u[ba])}}return J};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var u=null,H=[],U=0;U<l.length;U++){var J=this.getTagsForCell(l[U]);H=[];if(0<J.length){J=J.split(" ");for(var V={},aa=0;aa<J.length;aa++)if(null==u||null!=u[J[aa]])V[J[aa]]=!0,H.push(J[aa]);u=V}else return[]}return H};
-Graph.prototype.getTagsForCells=function(l){for(var u=[],H={},U=0;U<l.length;U++){var J=this.getTagsForCell(l[U]);if(0<J.length){J=J.split(" ");for(var V=0;V<J.length;V++)null==H[J[V]]&&(H[J[V]]=!0,u.push(J[V]))}}return u};Graph.prototype.getTagsForCell=function(l){return this.getAttributeForCell(l,"tags","")};Graph.prototype.addTagsForCells=function(l,u){if(0<l.length&&0<u.length){this.model.beginUpdate();try{for(var H=0;H<l.length;H++){for(var U=this.getTagsForCell(l[H]),J=U.split(" "),V=!1,aa=
-0;aa<u.length;aa++){var ba=mxUtils.trim(u[aa]);""!=ba&&0>mxUtils.indexOf(J,ba)&&(U=0<U.length?U+" "+ba:ba,V=!0)}V&&this.setAttributeForCell(l[H],"tags",U)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(l,u){if(0<l.length&&0<u.length){this.model.beginUpdate();try{for(var H=0;H<l.length;H++){var U=this.getTagsForCell(l[H]);if(0<U.length){for(var J=U.split(" "),V=!1,aa=0;aa<u.length;aa++){var ba=mxUtils.indexOf(J,u[aa]);0<=ba&&(J.splice(ba,1),V=!0)}V&&this.setAttributeForCell(l[H],
+mxUtils.indexOf(this.hiddenTags,l[u]))return!1;return!0};Graph.prototype.getCellsForTags=function(l,u,H,U){var J=[];if(null!=l){u=null!=u?u:this.model.getDescendants(this.model.getRoot());for(var W=0,aa={},ba=0;ba<l.length;ba++)0<l[ba].length&&(aa[l[ba]]=!0,W++);for(ba=0;ba<u.length;ba++)if(H&&this.model.getParent(u[ba])==this.model.root||this.model.isVertex(u[ba])||this.model.isEdge(u[ba])){var ja=this.getTagsForCell(u[ba]),oa=!1;if(0<ja.length&&(ja=ja.split(" "),ja.length>=l.length)){for(var qa=
+oa=0;qa<ja.length&&oa<W;qa++)null!=aa[ja[qa]]&&oa++;oa=oa==W}oa&&(1!=U||this.isCellVisible(u[ba]))&&J.push(u[ba])}}return J};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var u=null,H=[],U=0;U<l.length;U++){var J=this.getTagsForCell(l[U]);H=[];if(0<J.length){J=J.split(" ");for(var W={},aa=0;aa<J.length;aa++)if(null==u||null!=u[J[aa]])W[J[aa]]=!0,H.push(J[aa]);u=W}else return[]}return H};
+Graph.prototype.getTagsForCells=function(l){for(var u=[],H={},U=0;U<l.length;U++){var J=this.getTagsForCell(l[U]);if(0<J.length){J=J.split(" ");for(var W=0;W<J.length;W++)null==H[J[W]]&&(H[J[W]]=!0,u.push(J[W]))}}return u};Graph.prototype.getTagsForCell=function(l){return this.getAttributeForCell(l,"tags","")};Graph.prototype.addTagsForCells=function(l,u){if(0<l.length&&0<u.length){this.model.beginUpdate();try{for(var H=0;H<l.length;H++){for(var U=this.getTagsForCell(l[H]),J=U.split(" "),W=!1,aa=
+0;aa<u.length;aa++){var ba=mxUtils.trim(u[aa]);""!=ba&&0>mxUtils.indexOf(J,ba)&&(U=0<U.length?U+" "+ba:ba,W=!0)}W&&this.setAttributeForCell(l[H],"tags",U)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(l,u){if(0<l.length&&0<u.length){this.model.beginUpdate();try{for(var H=0;H<l.length;H++){var U=this.getTagsForCell(l[H]);if(0<U.length){for(var J=U.split(" "),W=!1,aa=0;aa<u.length;aa++){var ba=mxUtils.indexOf(J,u[aa]);0<=ba&&(J.splice(ba,1),W=!0)}W&&this.setAttributeForCell(l[H],
"tags",J.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(l){this.model.beginUpdate();try{for(var u=0;u<l.length;u++)this.model.setVisible(l[u],!this.model.isVisible(l[u]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(l,u){this.model.beginUpdate();try{for(var H=0;H<l.length;H++)this.model.setVisible(l[H],u)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(l,u,H,U){for(var J=0;J<l.length;J++)this.highlightCell(l[J],
-u,H,U)};Graph.prototype.highlightCell=function(l,u,H,U,J){u=null!=u?u:mxConstants.DEFAULT_VALID_COLOR;H=null!=H?H:1E3;l=this.view.getState(l);var V=null;null!=l&&(J=null!=J?J:4,J=Math.max(J+1,mxUtils.getValue(l.style,mxConstants.STYLE_STROKEWIDTH,1)+J),V=new mxCellHighlight(this,u,J,!1),null!=U&&(V.opacity=U),V.highlight(l),window.setTimeout(function(){null!=V.shape&&(mxUtils.setPrefixedStyle(V.shape.node.style,"transition","all 1200ms ease-in-out"),V.shape.node.style.opacity=0);window.setTimeout(function(){V.destroy()},
-1200)},H));return V};Graph.prototype.addSvgShadow=function(l,u,H,U){H=null!=H?H:!1;U=null!=U?U:!0;var J=l.ownerDocument,V=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"filter"):J.createElement("filter");V.setAttribute("id",this.shadowId);var aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):J.createElement("feGaussianBlur");aa.setAttribute("in","SourceAlpha");aa.setAttribute("stdDeviation",this.svgShadowBlur);aa.setAttribute("result","blur");V.appendChild(aa);
-aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feOffset"):J.createElement("feOffset");aa.setAttribute("in","blur");aa.setAttribute("dx",this.svgShadowSize);aa.setAttribute("dy",this.svgShadowSize);aa.setAttribute("result","offsetBlur");V.appendChild(aa);aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feFlood"):J.createElement("feFlood");aa.setAttribute("flood-color",this.svgShadowColor);aa.setAttribute("flood-opacity",this.svgShadowOpacity);aa.setAttribute("result",
-"offsetColor");V.appendChild(aa);aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feComposite"):J.createElement("feComposite");aa.setAttribute("in","offsetColor");aa.setAttribute("in2","offsetBlur");aa.setAttribute("operator","in");aa.setAttribute("result","offsetBlur");V.appendChild(aa);aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feBlend"):J.createElement("feBlend");aa.setAttribute("in","SourceGraphic");aa.setAttribute("in2","offsetBlur");V.appendChild(aa);aa=
-l.getElementsByTagName("defs");0==aa.length?(J=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"defs"):J.createElement("defs"),null!=l.firstChild?l.insertBefore(J,l.firstChild):l.appendChild(J)):J=aa[0];J.appendChild(V);H||(u=null!=u?u:l.getElementsByTagName("g")[0],null!=u&&(u.setAttribute("filter","url(#"+this.shadowId+")"),!isNaN(parseInt(l.getAttribute("width")))&&U&&(l.setAttribute("width",parseInt(l.getAttribute("width"))+6),l.setAttribute("height",parseInt(l.getAttribute("height"))+
-6),u=l.getAttribute("viewBox"),null!=u&&0<u.length&&(u=u.split(" "),3<u.length&&(w=parseFloat(u[2])+6,h=parseFloat(u[3])+6,l.setAttribute("viewBox",u[0]+" "+u[1]+" "+w+" "+h))))));return V};Graph.prototype.setShadowVisible=function(l,u){mxClient.IS_SVG&&!mxClient.IS_SF&&(u=null!=u?u:!0,(this.shadowVisible=l)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),u&&this.fireEvent(new mxEventObject("shadowVisibleChanged")))};Graph.prototype.checkDefaultParent=
+u,H,U)};Graph.prototype.highlightCell=function(l,u,H,U,J){u=null!=u?u:mxConstants.DEFAULT_VALID_COLOR;H=null!=H?H:1E3;l=this.view.getState(l);var W=null;null!=l&&(J=null!=J?J:4,J=Math.max(J+1,mxUtils.getValue(l.style,mxConstants.STYLE_STROKEWIDTH,1)+J),W=new mxCellHighlight(this,u,J,!1),null!=U&&(W.opacity=U),W.highlight(l),window.setTimeout(function(){null!=W.shape&&(mxUtils.setPrefixedStyle(W.shape.node.style,"transition","all 1200ms ease-in-out"),W.shape.node.style.opacity=0);window.setTimeout(function(){W.destroy()},
+1200)},H));return W};Graph.prototype.addSvgShadow=function(l,u,H,U){H=null!=H?H:!1;U=null!=U?U:!0;var J=l.ownerDocument,W=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"filter"):J.createElement("filter");W.setAttribute("id",this.shadowId);var aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):J.createElement("feGaussianBlur");aa.setAttribute("in","SourceAlpha");aa.setAttribute("stdDeviation",this.svgShadowBlur);aa.setAttribute("result","blur");W.appendChild(aa);
+aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feOffset"):J.createElement("feOffset");aa.setAttribute("in","blur");aa.setAttribute("dx",this.svgShadowSize);aa.setAttribute("dy",this.svgShadowSize);aa.setAttribute("result","offsetBlur");W.appendChild(aa);aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feFlood"):J.createElement("feFlood");aa.setAttribute("flood-color",this.svgShadowColor);aa.setAttribute("flood-opacity",this.svgShadowOpacity);aa.setAttribute("result",
+"offsetColor");W.appendChild(aa);aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feComposite"):J.createElement("feComposite");aa.setAttribute("in","offsetColor");aa.setAttribute("in2","offsetBlur");aa.setAttribute("operator","in");aa.setAttribute("result","offsetBlur");W.appendChild(aa);aa=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"feBlend"):J.createElement("feBlend");aa.setAttribute("in","SourceGraphic");aa.setAttribute("in2","offsetBlur");W.appendChild(aa);aa=
+l.getElementsByTagName("defs");0==aa.length?(J=null!=J.createElementNS?J.createElementNS(mxConstants.NS_SVG,"defs"):J.createElement("defs"),null!=l.firstChild?l.insertBefore(J,l.firstChild):l.appendChild(J)):J=aa[0];J.appendChild(W);H||(u=null!=u?u:l.getElementsByTagName("g")[0],null!=u&&(u.setAttribute("filter","url(#"+this.shadowId+")"),!isNaN(parseInt(l.getAttribute("width")))&&U&&(l.setAttribute("width",parseInt(l.getAttribute("width"))+6),l.setAttribute("height",parseInt(l.getAttribute("height"))+
+6),u=l.getAttribute("viewBox"),null!=u&&0<u.length&&(u=u.split(" "),3<u.length&&(w=parseFloat(u[2])+6,h=parseFloat(u[3])+6,l.setAttribute("viewBox",u[0]+" "+u[1]+" "+w+" "+h))))));return W};Graph.prototype.setShadowVisible=function(l,u){mxClient.IS_SVG&&!mxClient.IS_SF&&(u=null!=u?u:!0,(this.shadowVisible=l)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),u&&this.fireEvent(new mxEventObject("shadowVisibleChanged")))};Graph.prototype.checkDefaultParent=
function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var l=this.model.getChildCount(this.model.root),u=0;do var H=this.model.getChildAt(this.model.root,u);while(u++<l&&"1"==mxUtils.getValue(this.getCellStyle(H),"locked","0"));null!=H&&this.setDefaultParent(H)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=
[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+
"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=
@@ -3438,365 +3453,365 @@ function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(t
"/ibm.xml"];mxStencilRegistry.libraries.ibmcloud=[STENCIL_PATH+"/ibm_cloud.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=
[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];
mxStencilRegistry.libraries.veeam2=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxStencilRegistry.libraries.salesforce=
-[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(l){var u=null;null!=l&&0<l.length&&("ER"==l.substring(0,2)?u="mxgraph.er":"sysML"==l.substring(0,5)&&(u="mxgraph.sysml"));return u};var ma=mxMarker.createMarker;mxMarker.createMarker=function(l,u,H,U,J,V,aa,ba,ja,oa){if(null!=H&&null==mxMarker.markers[H]){var qa=this.getPackageForType(H);
-null!=qa&&mxStencilRegistry.getStencil(qa)}return ma.apply(this,arguments)};var la=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(l,u,H,U,J,V){"1"==mxUtils.getValue(u.style,"lineShape",null)&&l.setFillColor(mxUtils.getValue(u.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return la.apply(this,arguments)};PrintDialog.prototype.create=function(l,u,H){function U(){za.value=Math.max(1,Math.min(oa,Math.max(parseInt(za.value),parseInt(ua.value))));ua.value=Math.max(1,Math.min(oa,
+[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(l){var u=null;null!=l&&0<l.length&&("ER"==l.substring(0,2)?u="mxgraph.er":"sysML"==l.substring(0,5)&&(u="mxgraph.sysml"));return u};var ma=mxMarker.createMarker;mxMarker.createMarker=function(l,u,H,U,J,W,aa,ba,ja,oa){if(null!=H&&null==mxMarker.markers[H]){var qa=this.getPackageForType(H);
+null!=qa&&mxStencilRegistry.getStencil(qa)}return ma.apply(this,arguments)};var la=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(l,u,H,U,J,W){"1"==mxUtils.getValue(u.style,"lineShape",null)&&l.setFillColor(mxUtils.getValue(u.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return la.apply(this,arguments)};PrintDialog.prototype.create=function(l,u,H){function U(){za.value=Math.max(1,Math.min(oa,Math.max(parseInt(za.value),parseInt(ua.value))));ua.value=Math.max(1,Math.min(oa,
Math.min(parseInt(za.value),parseInt(ua.value))))}function J(va){l.lastPrintPagesRadioChecked=ra.checked;l.lastPrintSelectionOnlyChecked=Ca.checked;l.lastPrintCropRadioChecked=sa.checked;l.lastPrintFitRadioChecked=Aa.checked;ra.checked&&ua.value<za.value?(l.lastPrintPagesFromInput=ua.value,l.lastPrintPagesToInput=za.value):(l.lastPrintPagesFromInput=null,l.lastPrintPagesToInput=null);X.value=Math.max(1,Math.min(1600,parseInt(X.value)))+"%";l.lastPrintZoom=X.value;l.lastPrintBorder=Q.value;l.lastPrintGrid=
ia.checked;l.lastPrintTransparent=ka.checked;l.lastPrintInclude=pa.checked;l.lastPrintSheetsAcross=t.value;l.lastPrintSheetsDown=N.value;var Da={};Da.border=parseInt(Q.value);Da.scale=parseInt(X.value)/100;Da.grid=ia.checked;Da.transparent=ka.checked;Da.includeCopy=pa.checked;Da.sheetsAcross=parseInt(t.value);Da.sheetsDown=parseInt(N.value);Da.pagesFrom=parseInt(ua.value);Da.pagesTo=parseInt(za.value);Da.allPages=qa.checked;Da.selection=Ca.checked;Da.pageView=La.checked;Da.crop=sa.checked;Da.fit=
-Aa.checked;return null!=H?H(!va,Da):l.print(!va,Da)}var V=l.editor.graph,aa=document.createElement("div"),ba=document.createElement("h3");ba.style.width="100%";ba.style.textAlign="center";ba.style.marginTop="0px";mxUtils.write(ba,u||mxResources.get("print"));aa.appendChild(ba);var ja=1,oa=1;ba=document.createElement("div");ba.style.whiteSpace="nowrap";var qa=document.createElement("input");qa.style.marginRight="8px";qa.style.marginBottom="8px";qa.setAttribute("type","radio");qa.setAttribute("name",
+Aa.checked;return null!=H?H(!va,Da):l.print(!va,Da)}var W=l.editor.graph,aa=document.createElement("div"),ba=document.createElement("h3");ba.style.width="100%";ba.style.textAlign="center";ba.style.marginTop="0px";mxUtils.write(ba,u||mxResources.get("print"));aa.appendChild(ba);var ja=1,oa=1;ba=document.createElement("div");ba.style.whiteSpace="nowrap";var qa=document.createElement("input");qa.style.marginRight="8px";qa.style.marginBottom="8px";qa.setAttribute("type","radio");qa.setAttribute("name",
"pages-printdialog");ba.appendChild(qa);u=document.createElement("span");mxUtils.write(u,mxResources.get("allPages"));mxEvent.addListener(u,"click",function(){qa.checked=!0});ba.appendChild(u);mxUtils.br(ba);var ra=qa.cloneNode(!0);ba.appendChild(ra);u=document.createElement("span");mxUtils.write(u,mxResources.get("pages")+":");ba.appendChild(u);mxEvent.addListener(u,"click",function(){ra.checked=!0});var ua=document.createElement("input");ua.style.margin="0 4px";ua.setAttribute("value","1");ua.setAttribute("type",
"number");ua.setAttribute("min","1");ua.style.width="40px";ba.appendChild(ua);u=document.createElement("span");mxUtils.write(u,mxResources.get("to"));ba.appendChild(u);var za=ua.cloneNode(!0);ba.appendChild(za);mxEvent.addListener(ua,"focus",function(){ra.checked=!0});mxEvent.addListener(za,"focus",function(){ra.checked=!0});mxEvent.addListener(ua,"change",U);mxEvent.addListener(za,"change",U);if(null!=l.pages&&(oa=l.pages.length,null!=l.currentPage))for(var Ba=0;Ba<oa;Ba++)if(l.currentPage==l.pages[Ba]){ja=
Ba+1;break}null!=l.lastPrintPagesFromInput&&null!=l.lastPrintPagesToInput?(ua.value=Math.min(oa,Math.max(1,l.lastPrintPagesFromInput)),za.value=Math.min(oa,Math.max(1,l.lastPrintPagesToInput))):(ua.value=ja,za.value=ja);ua.setAttribute("max",oa);za.setAttribute("max",oa);Ba=mxUtils.button(mxResources.get("currentPage"),function(va){ua.value=ja;za.value=ja;ra.checked=!0});Ba.setAttribute("title",mxResources.get("currentPage"));Ba.style.marginLeft="4px";Ba.style.maxWidth="100px";Ba.style.overflow="hidden";
-Ba.style.textOverflow="ellipsis";Ba.style.whiteSpace="nowrap";ba.appendChild(Ba);1<oa&&aa.appendChild(ba);ba=document.createElement("div");ba.style.borderBottom="1px solid lightGray";ba.style.paddingBottom="12px";ba.style.marginBottom="12px";ba.style.whiteSpace="nowrap";var Ca=document.createElement("input");Ca.setAttribute("name","pages-printdialog");Ca.setAttribute("type",1==oa?"checkbox":"radio");Ca.style.marginRight="8px";V.isSelectionEmpty()&&Ca.setAttribute("disabled","disabled");V.isEnabled()&&
-(ba.appendChild(Ca),u=document.createElement("span"),mxUtils.write(u,mxResources.get("selectionOnly")),ba.appendChild(u));(V.isEnabled()||1<oa)&&aa.appendChild(ba);!l.isPagesEnabled()||l.lastPrintPagesRadioChecked?ra.checked=!0:!V.isSelectionEmpty()&&l.lastPrintSelectionOnlyChecked?Ca.checked=!0:qa.checked=!0;V.isSelectionEmpty()||mxEvent.addListener(u,"click",function(){Ca.checked=!Ca.checked});V=document.createElement("div");V.style.whiteSpace="nowrap";var La=document.createElement("input");La.style.marginBottom=
-"8px";La.style.marginRight="8px";La.setAttribute("type","radio");La.setAttribute("name","printSize");V.appendChild(La);u=document.createElement("span");mxUtils.write(u,mxResources.get("pageView"));V.appendChild(u);mxEvent.addListener(V,"click",function(){La.checked=!0});aa.appendChild(V);V=document.createElement("div");V.style.whiteSpace="nowrap";var sa=document.createElement("input");sa.style.marginBottom="8px";sa.style.marginRight="8px";sa.setAttribute("type","radio");sa.setAttribute("name","printSize");
-V.appendChild(sa);u=document.createElement("span");mxUtils.write(u,mxResources.get("crop"));V.appendChild(u);mxEvent.addListener(V,"click",function(){sa.checked=!0});aa.appendChild(V);V=document.createElement("div");V.style.whiteSpace="nowrap";var Aa=document.createElement("input");Aa.style.marginBottom="8px";Aa.style.marginRight="8px";Aa.setAttribute("type","radio");Aa.setAttribute("name","printSize");u=document.createElement("div");u.style.display="inline-block";u.style.verticalAlign="top";u.style.paddingTop=
-"2px";u.appendChild(Aa);V.appendChild(u);ba=document.createElement("table");ba.style.display="inline-block";ba.style.borderSpacing="0";Ba=document.createElement("tbody");var Ea=document.createElement("tr"),Ka=Ea.cloneNode(!0),Ma=document.createElement("td"),ya=Ma.cloneNode(!0),Wa=Ma.cloneNode(!0),Ia=Ma.cloneNode(!0),Xa=Ma.cloneNode(!0),Pa=Ma.cloneNode(!0);Ma.style.textAlign="right";Ia.style.textAlign="right";mxUtils.write(Ma,mxResources.get("fitTo"));mxEvent.addListener(V,"click",function(va){mxEvent.getSource(va)!=
+Ba.style.textOverflow="ellipsis";Ba.style.whiteSpace="nowrap";ba.appendChild(Ba);1<oa&&aa.appendChild(ba);ba=document.createElement("div");ba.style.borderBottom="1px solid lightGray";ba.style.paddingBottom="12px";ba.style.marginBottom="12px";ba.style.whiteSpace="nowrap";var Ca=document.createElement("input");Ca.setAttribute("name","pages-printdialog");Ca.setAttribute("type",1==oa?"checkbox":"radio");Ca.style.marginRight="8px";W.isSelectionEmpty()&&Ca.setAttribute("disabled","disabled");W.isEnabled()&&
+(ba.appendChild(Ca),u=document.createElement("span"),mxUtils.write(u,mxResources.get("selectionOnly")),ba.appendChild(u));(W.isEnabled()||1<oa)&&aa.appendChild(ba);!l.isPagesEnabled()||l.lastPrintPagesRadioChecked?ra.checked=!0:!W.isSelectionEmpty()&&l.lastPrintSelectionOnlyChecked?Ca.checked=!0:qa.checked=!0;W.isSelectionEmpty()||mxEvent.addListener(u,"click",function(){Ca.checked=!Ca.checked});W=document.createElement("div");W.style.whiteSpace="nowrap";var La=document.createElement("input");La.style.marginBottom=
+"8px";La.style.marginRight="8px";La.setAttribute("type","radio");La.setAttribute("name","printSize");W.appendChild(La);u=document.createElement("span");mxUtils.write(u,mxResources.get("pageView"));W.appendChild(u);mxEvent.addListener(W,"click",function(){La.checked=!0});aa.appendChild(W);W=document.createElement("div");W.style.whiteSpace="nowrap";var sa=document.createElement("input");sa.style.marginBottom="8px";sa.style.marginRight="8px";sa.setAttribute("type","radio");sa.setAttribute("name","printSize");
+W.appendChild(sa);u=document.createElement("span");mxUtils.write(u,mxResources.get("crop"));W.appendChild(u);mxEvent.addListener(W,"click",function(){sa.checked=!0});aa.appendChild(W);W=document.createElement("div");W.style.whiteSpace="nowrap";var Aa=document.createElement("input");Aa.style.marginBottom="8px";Aa.style.marginRight="8px";Aa.setAttribute("type","radio");Aa.setAttribute("name","printSize");u=document.createElement("div");u.style.display="inline-block";u.style.verticalAlign="top";u.style.paddingTop=
+"2px";u.appendChild(Aa);W.appendChild(u);ba=document.createElement("table");ba.style.display="inline-block";ba.style.borderSpacing="0";Ba=document.createElement("tbody");var Ea=document.createElement("tr"),Ka=Ea.cloneNode(!0),Ma=document.createElement("td"),ya=Ma.cloneNode(!0),Wa=Ma.cloneNode(!0),Ia=Ma.cloneNode(!0),Xa=Ma.cloneNode(!0),Pa=Ma.cloneNode(!0);Ma.style.textAlign="right";Ia.style.textAlign="right";mxUtils.write(Ma,mxResources.get("fitTo"));mxEvent.addListener(W,"click",function(va){mxEvent.getSource(va)!=
Aa&&(Aa.checked=!Aa.checked)});var t=document.createElement("input");t.style.margin="0 2px";t.style.boxSizing="border-box";t.setAttribute("value",l.lastPrintSheetsAcross||"1");t.setAttribute("min","1");t.setAttribute("type","number");t.style.width="40px";ya.appendChild(t);u=document.createElement("span");mxUtils.write(u,mxResources.get("fitToSheetsAcross"));Wa.appendChild(u);mxUtils.write(Ia,mxResources.get("fitToBy"));var N=t.cloneNode(!0);N.setAttribute("value",l.lastPrintSheetsDown||"1");Xa.appendChild(N);
mxEvent.addListener(t,"click",function(va){Aa.checked=!0;mxEvent.consume(va)});mxEvent.addListener(N,"click",function(va){Aa.checked=!0;mxEvent.consume(va)});l.lastPrintCropRadioChecked?sa.checked=!0:l.lastPrintFitRadioChecked?Aa.checked=!0:La.checked=!0;u=document.createElement("span");mxUtils.write(u,mxResources.get("fitToSheetsDown"));Pa.appendChild(u);Ea.appendChild(Ma);Ea.appendChild(ya);Ea.appendChild(Wa);Ka.appendChild(Ia);Ka.appendChild(Xa);Ka.appendChild(Pa);Ba.appendChild(Ea);Ba.appendChild(Ka);
-ba.appendChild(Ba);V.appendChild(ba);aa.appendChild(V);V=document.createElement("div");V.style.borderTop="1px solid lightGray";V.style.whiteSpace="nowrap";V.style.paddingTop="12px";V.style.marginTop="12px";V.style.paddingLeft="8px";mxUtils.write(V,mxResources.get("borderWidth")+":");var Q=document.createElement("input");Q.setAttribute("type","number");Q.setAttribute("min","0");Q.style.width="40px";Q.style.marginLeft="4px";Q.value=null!=l.lastPrintBorder?l.lastPrintBorder:mxPrintPreview.prototype.pageMargin;
-V.appendChild(Q);u=document.createElement("span");u.style.marginLeft="8px";mxUtils.write(u,mxResources.get("zoom")+":");V.appendChild(u);var X=document.createElement("input");X.style.width="60px";X.style.marginLeft="4px";X.value=null!=l.lastPrintZoom?l.lastPrintZoom:"100%";V.appendChild(X);mxUtils.br(V);var ia=document.createElement("input");ia.setAttribute("type","checkbox");ia.style.marginTop="12px";ia.checked=null!=l.lastPrintGrid?l.lastPrintGrid:!1;V.appendChild(ia);u=document.createElement("span");
-u.style.marginLeft="4px";u.style.marginRight="8px";mxUtils.write(u,mxResources.get("grid"));V.appendChild(u);mxEvent.addListener(u,"click",function(va){ia.checked=!0;mxEvent.consume(va)});var ka=document.createElement("input");ka.setAttribute("type","checkbox");ka.style.marginTop="10px";ka.checked=null!=l.lastPrintTransparent?l.lastPrintTransparent:!1;null!=H&&(V.appendChild(ka),u=document.createElement("span"),u.style.marginLeft="4px",mxUtils.write(u,mxResources.get("transparentBackground")),V.appendChild(u),
-mxEvent.addListener(u,"click",function(va){ka.checked=!0;mxEvent.consume(va)}));var pa=document.createElement("input");pa.setAttribute("type","checkbox");pa.style.marginTop="10px";pa.checked=null!=l.lastPrintInclude?l.lastPrintInclude:Editor.defaultIncludeDiagram;null==H||mxClient.IS_CHROMEAPP||"draw.io"!=l.getServiceName()||(mxUtils.br(V),V.appendChild(pa),u=document.createElement("span"),u.style.marginLeft="4px",mxUtils.write(u,mxResources.get("includeCopyOfMyDiagram")),V.appendChild(u),mxEvent.addListener(u,
-"click",function(va){pa.checked=!0;mxEvent.consume(va)}));aa.appendChild(V);u=document.createElement("div");u.style.marginTop="40px";u.style.textAlign="right";u.style.whiteSpace="nowrap";l.isOffline()||null!=H||u.appendChild(l.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));V=mxUtils.button(mxResources.get("cancel"),function(){l.hideDialog()});V.className="geBtn";l.editor.cancelFirst&&u.appendChild(V);PrintDialog.previewEnabled&&null==H&&(ba=mxUtils.button(mxResources.get("preview"),
-function(){try{l.hideDialog(),J(!1)}catch(va){l.handleError(va)}}),ba.className="geBtn",u.appendChild(ba));ba=mxUtils.button(mxResources.get(null!=H?"export":PrintDialog.previewEnabled?"print":"ok"),function(){try{l.hideDialog(),J(!0)}catch(va){l.handleError(va)}});ba.className="geBtn gePrimaryBtn";u.appendChild(ba);l.editor.cancelFirst||u.appendChild(V);aa.appendChild(u);if(l.editor.isChromelessView()){var xa=function(){Editor.isDarkMode()?(aa.classList.add("geDarkMode"),aa.style.colorScheme="dark"):
+ba.appendChild(Ba);W.appendChild(ba);aa.appendChild(W);W=document.createElement("div");W.style.borderTop="1px solid lightGray";W.style.whiteSpace="nowrap";W.style.paddingTop="12px";W.style.marginTop="12px";W.style.paddingLeft="8px";mxUtils.write(W,mxResources.get("borderWidth")+":");var Q=document.createElement("input");Q.setAttribute("type","number");Q.setAttribute("min","0");Q.style.width="40px";Q.style.marginLeft="4px";Q.value=null!=l.lastPrintBorder?l.lastPrintBorder:mxPrintPreview.prototype.pageMargin;
+W.appendChild(Q);u=document.createElement("span");u.style.marginLeft="8px";mxUtils.write(u,mxResources.get("zoom")+":");W.appendChild(u);var X=document.createElement("input");X.style.width="60px";X.style.marginLeft="4px";X.value=null!=l.lastPrintZoom?l.lastPrintZoom:"100%";W.appendChild(X);mxUtils.br(W);var ia=document.createElement("input");ia.setAttribute("type","checkbox");ia.style.marginTop="12px";ia.checked=null!=l.lastPrintGrid?l.lastPrintGrid:!1;W.appendChild(ia);u=document.createElement("span");
+u.style.marginLeft="4px";u.style.marginRight="8px";mxUtils.write(u,mxResources.get("grid"));W.appendChild(u);mxEvent.addListener(u,"click",function(va){ia.checked=!0;mxEvent.consume(va)});var ka=document.createElement("input");ka.setAttribute("type","checkbox");ka.style.marginTop="10px";ka.checked=null!=l.lastPrintTransparent?l.lastPrintTransparent:!1;null!=H&&(W.appendChild(ka),u=document.createElement("span"),u.style.marginLeft="4px",mxUtils.write(u,mxResources.get("transparentBackground")),W.appendChild(u),
+mxEvent.addListener(u,"click",function(va){ka.checked=!0;mxEvent.consume(va)}));var pa=document.createElement("input");pa.setAttribute("type","checkbox");pa.style.marginTop="10px";pa.checked=null!=l.lastPrintInclude?l.lastPrintInclude:Editor.defaultIncludeDiagram;null==H||mxClient.IS_CHROMEAPP||"draw.io"!=l.getServiceName()||(mxUtils.br(W),W.appendChild(pa),u=document.createElement("span"),u.style.marginLeft="4px",mxUtils.write(u,mxResources.get("includeCopyOfMyDiagram")),W.appendChild(u),mxEvent.addListener(u,
+"click",function(va){pa.checked=!0;mxEvent.consume(va)}));aa.appendChild(W);u=document.createElement("div");u.style.marginTop="40px";u.style.textAlign="right";u.style.whiteSpace="nowrap";l.isOffline()||null!=H||u.appendChild(l.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));W=mxUtils.button(mxResources.get("cancel"),function(){l.hideDialog()});W.className="geBtn";l.editor.cancelFirst&&u.appendChild(W);PrintDialog.previewEnabled&&null==H&&(ba=mxUtils.button(mxResources.get("preview"),
+function(){try{l.hideDialog(),J(!1)}catch(va){l.handleError(va)}}),ba.className="geBtn",u.appendChild(ba));ba=mxUtils.button(mxResources.get(null!=H?"export":PrintDialog.previewEnabled?"print":"ok"),function(){try{l.hideDialog(),J(!0)}catch(va){l.handleError(va)}});ba.className="geBtn gePrimaryBtn";u.appendChild(ba);l.editor.cancelFirst||u.appendChild(W);aa.appendChild(u);if(l.editor.isChromelessView()){var xa=function(){Editor.isDarkMode()?(aa.classList.add("geDarkMode"),aa.style.colorScheme="dark"):
(aa.classList.remove("geDarkMode"),aa.style.colorScheme="light")};l.addListener("darkModeChanged",xa);xa();var ta=function(va,Da){va=Da.getProperty("dialog");aa.parentNode==va.container&&(l.editor.removeListener(ta),l.removeListener(xa))};l.editor.addListener("hideDialog",ta)}this.container=aa};var Y=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||
(this.page.viewState.background=this.color);if(!this.ignoreImage){var l=this.image;null!=l&&null!=l.src&&Graph.isPageLink(l.src)&&(l={originalSrc:l.src});this.page.viewState.backgroundImage=l}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else Y.apply(this,
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&&(l=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=l?l:"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 fa=document.createElement("canvas"),Z=new Image;Z.onload=function(){try{fa.getContext("2d").drawImage(Z,0,0);var l=fa.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=l&&6<l.length}catch(u){}};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(l){}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.0.6";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.0.7";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"}};
-EditorUi.logError=function(c,f,k,A,z,C,I){if(null!=c){z=null!=z?z:Error(c);z.stack=null!=z.stack?z.stack:"";C=null!=C?C:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0>c.indexOf("extension:")&&0>c.indexOf("ResizeObserver loop completed with undelivered notifications")&&0>z.stack.indexOf("extension:")&&0>z.stack.indexOf("<anonymous>:")&&
-0>z.stack.indexOf("/math/es5/")&&(EditorUi.lastErrorMessage=c,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?severity="+C+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(k)+(null!=A?":colno:"+encodeURIComponent(A):"")+(""!=z.stack?"&stack="+encodeURIComponent(z.stack):""))}catch(L){}try{I||null==window.console||console.error(C,c,f,k,A,z)}catch(L){}}};EditorUi.logEvent=
+EditorUi.logError=function(c,f,k,B,z,C,I){if(null!=c){z=null!=z?z:Error(c);z.stack=null!=z.stack?z.stack:"";C=null!=C?C:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0>c.indexOf("extension:")&&0>c.indexOf("ResizeObserver loop completed with undelivered notifications")&&0>z.stack.indexOf("extension:")&&0>z.stack.indexOf("<anonymous>:")&&
+0>z.stack.indexOf("/math/es5/")&&(EditorUi.lastErrorMessage=c,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?severity="+C+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(k)+(null!=B?":colno:"+encodeURIComponent(B):"")+(""!=z.stack?"&stack="+encodeURIComponent(z.stack):""))}catch(L){}try{I||null==window.console||console.error(C,c,f,k,B,z)}catch(L){}}};EditorUi.logEvent=
function(c){if("1"==urlParams.dev)EditorUi.debug("logEvent",c);else if(EditorUi.enableLogging)try{var f=null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"";(new Image).src=f+"/images/1x1.png?v="+encodeURIComponent(EditorUi.VERSION)+(null!=c?"&data="+encodeURIComponent(JSON.stringify(c)):"")}catch(k){}};EditorUi.sendReport=function(c,f){if("1"==urlParams.dev)EditorUi.debug("sendReport",c);else if(EditorUi.enableLogging)try{f=null!=f?f:5E4,c.length>f&&(c=c.substring(0,f)+"\n...[SHORTENED]"),mxUtils.post("/email",
"version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(c))}catch(k){}};EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var c=[(new Date).toISOString()],f=0;f<arguments.length;f++)c.push(arguments[f]);console.log.apply(console,c)}}catch(k){}};EditorUi.removeChildNodes=function(c){for(;null!=c.firstChild;)c.removeChild(c.firstChild)};EditorUi.embedSvgImages=function(c){c=c.getElementsByTagName("image");
for(var f=[],k=0;k<c.length;k++)f.push(c[k]);for(k=0;k<f.length;k++)EditorUi.replaceSvgImage(f[k])};EditorUi.replaceSvgImage=function(c){try{var f=null;f=null==c.getAttributeNS?c.getAttribute("xlink:href"):c.getAttributeNS(mxConstants.NS_XLINK,"href");var k=EditorUi.getSvgSubtree(f);if(null!=k&&"svg"==k.nodeName){k.setAttribute("x",c.getAttribute("x"));k.setAttribute("y",c.getAttribute("y"));k.setAttribute("width",c.getAttribute("width"));k.setAttribute("height",c.getAttribute("height"));k.style.fontFamily=
-"initial";var A=mxUtils.createElementNs(k.ownerDocument,mxConstants.NS_SVG,"g");A.appendChild(k);c.hasAttribute("transform")&&A.setAttribute("transform",c.getAttribute("transform"));c.parentNode.replaceChild(A,c)}}catch(z){}};EditorUi.getSvgSubtree=function(c){var f=Graph.getSvgFromDataUri(c);c=null;if(null!=f){c=Graph.sanitizeNode(mxUtils.parseXml(f).documentElement);f=c.getElementsByTagName("style");if(0<f.length){var k="svg-image-"+Editor.guid();c.setAttribute("id",k);for(var A=document.implementation.createHTMLDocument(""),
-z=document.createElement("style"),C=0;C<f.length;C++){z.textContent=f[C].textContent;A.body.appendChild(z);for(var I="",L=0;L<z.sheet.cssRules.length;L++){var K=z.sheet.cssRules[L];if(null!=K.selectorText){for(var O=K.selectorText.split(","),da=0;da<O.length;da++)O[da]="#"+k+" "+O[da];K.selectorText=O.join(",")}I+=K.cssText+"\n"}f[C].textContent=I}}f=c.getElementsByTagName("*");for(k=0;k<f.length;k++)f[k].removeAttribute("data-cell-id")}return c};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';
+"initial";var B=mxUtils.createElementNs(k.ownerDocument,mxConstants.NS_SVG,"g");B.appendChild(k);c.hasAttribute("transform")&&B.setAttribute("transform",c.getAttribute("transform"));c.parentNode.replaceChild(B,c)}}catch(z){}};EditorUi.getSvgSubtree=function(c){var f=Graph.getSvgFromDataUri(c);c=null;if(null!=f){c=Graph.sanitizeNode(mxUtils.parseXml(f).documentElement);f=c.getElementsByTagName("style");if(0<f.length){var k="svg-image-"+Editor.guid();c.setAttribute("id",k);for(var B=document.implementation.createHTMLDocument(""),
+z=document.createElement("style"),C=0;C<f.length;C++){z.textContent=f[C].textContent;B.body.appendChild(z);for(var I="",L=0;L<z.sheet.cssRules.length;L++){var K=z.sheet.cssRules[L];if(null!=K.selectorText){for(var O=K.selectorText.split(","),da=0;da<O.length;da++)O[da]="#"+k+" "+O[da];K.selectorText=O.join(",")}I+=K.cssText+"\n"}f[C].textContent=I}}f=c.getElementsByTagName("*");for(k=0;k<f.length;k++)f[k].removeAttribute("data-cell-id")}return c};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';
EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode=null;EditorUi.prototype.timeout=Editor.prototype.timeout;EditorUi.prototype.defaultCustomShapeStyle="shape=stencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE=);whiteSpace=wrap;html=1;";
EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=1200;EditorUi.prototype.maxTextWidth=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=2E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.maxTextBytes=5E5;EditorUi.prototype.currentFile=null;EditorUi.prototype.printPdfExport=!1;EditorUi.prototype.pdfPageExport=!0;EditorUi.prototype.formatEnabled="0"!=urlParams.format;EditorUi.prototype.insertTemplateEnabled=!0;EditorUi.prototype.closableScratchpad=
!0;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportTheme="auto";EditorUi.prototype.embedExportBackground=null;EditorUi.prototype.shareCursorPosition=!0;EditorUi.prototype.showRemoteCursors=!0;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;EditorUi.prototype.webpSupported=!1;try{var c=document.createElement("canvas");EditorUi.prototype.canvasSupported=!(!c.getContext||!c.getContext("2d"))}catch(z){}try{var f=document.createElement("canvas"),
k=new Image;k.onload=function(){try{f.getContext("2d").drawImage(k,0,0);var z=f.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=z&&6<z.length}catch(C){}};k.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(z){}try{f=
-document.createElement("canvas");f.width=f.height=1;var A=f.toDataURL("image/jpeg");EditorUi.prototype.jpgSupported=null!==A.match("image/jpeg");A=f.toDataURL("image/webp");EditorUi.prototype.webpSupported=null!==A.match("image/webp")}catch(z){}})();EditorUi.prototype.createButtonContainer=function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,f,k){return this.editor.graph.openLink(c,
+document.createElement("canvas");f.width=f.height=1;var B=f.toDataURL("image/jpeg");EditorUi.prototype.jpgSupported=null!==B.match("image/jpeg");B=f.toDataURL("image/webp");EditorUi.prototype.webpSupported=null!==B.match("image/webp")}catch(z){}})();EditorUi.prototype.createButtonContainer=function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,f,k){return this.editor.graph.openLink(c,
f,k)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,f){f(localStorage.getItem(c))};EditorUi.prototype.setLocalData=function(c,f,k){localStorage.setItem(c,f);null!=k&&k()};EditorUi.prototype.isLocked=function(){var c=this.getCurrentFile();return null!=c&&c.isLocked()};EditorUi.prototype.removeLocalData=function(c,f){localStorage.removeItem(c);f()};EditorUi.prototype.setShareCursorPosition=function(c){this.shareCursorPosition=c;this.fireEvent(new mxEventObject("shareCursorPositionChanged"))};
EditorUi.prototype.isShareCursorPosition=function(){return this.shareCursorPosition};EditorUi.prototype.setShowRemoteCursors=function(c){this.showRemoteCursors=c;this.fireEvent(new mxEventObject("showRemoteCursorsChanged"))};EditorUi.prototype.isShowRemoteCursors=function(){return this.showRemoteCursors};EditorUi.prototype.setMathEnabled=function(c){var f=this.editor.graph;f.mathEnabled=c;null!=f.view.backgroundImage&&(f.view.backgroundImage.destroy(),f.view.backgroundImage=null);this.editor.updateGraphComponents();
f.refresh();f.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.setAdaptiveColors=function(c){this.editor.graph.setAdaptiveColors(c);this.editor.graph.view.clear();this.fireEvent(new mxEventObject("adaptiveColorsChanged"))};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=
-function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,f,k){var A=null==c||null==f;k=null!=k?k:24;var z=new Spinner({lines:12,length:k,width:Math.round(k/3),radius:Math.round(k/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",
-speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),C=this.timeout,I=z.spin,L=null,K=null,O=mxUtils.bind(this,function(ea){null!=ea&&ea()});z.spin=function(ea,ca,W,ma){ma=null!=ma?ma:C;var la=!1;if(!this.active){var Y=Date.now();null!=W&&(L=window.setTimeout(function(){z.stop();L=null;W({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:K})},ma));I.call(this,ea);this.active=!0;null!=ca&&(A&&(f=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,c=document.body.clientWidth/
+function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,f,k){var B=null==c||null==f;k=null!=k?k:24;var z=new Spinner({lines:12,length:k,width:Math.round(k/3),radius:Math.round(k/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",
+speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),C=this.timeout,I=z.spin,L=null,K=null,O=mxUtils.bind(this,function(ea){null!=ea&&ea()});z.spin=function(ea,ca,V,ma){ma=null!=ma?ma:C;var la=!1;if(!this.active){var Y=Date.now();null!=V&&(L=window.setTimeout(function(){z.stop();L=null;V({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:K})},ma));I.call(this,ea);this.active=!0;null!=ca&&(B&&(f=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,c=document.body.clientWidth/
2-2),la=document.createElement("div"),la.className="geSpinnerStatus",la.style.position="absolute",la.style.whiteSpace="nowrap",la.style.background="#4B4243",la.style.color="white",la.style.fontFamily=Editor.defaultHtmlFont,la.style.fontSize="9pt",la.style.padding="6px",la.style.paddingLeft="10px",la.style.paddingRight="10px",la.style.zIndex=2E9,la.style.left=Math.max(0,c)+"px",la.style.top=Math.max(0,f+70)+"px",mxUtils.setPrefixedStyle(la.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(la.style,
-"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(la.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=ca.substring(ca.length-3,ca.length)&&"!"!=ca.charAt(ca.length-1)&&(ca+="..."),la.innerHTML=mxUtils.htmlEntities(ca),ea.appendChild(la),z.status=la);this.pause=mxUtils.bind(this,function(){var fa=O;this.active&&(ma=Math.max(0,ma-(Date.now()-Y)),fa=mxUtils.bind(this,function(Z){this.spin(ea,ca,W,ma);if(null!=Z)try{Z(),K=mxUtils.bind(this,function(){this.spin(ea,ca,W,
-ma);try{Z()}catch(l){null!=W&&W(l)}})}catch(l){null!=W&&W(l)}}));this.stop();return fa});la=!0}return la};var da=z.stop;z.stop=function(){da.call(this);this.active&&(this.active=!1,null!=L&&(window.clearTimeout(L),L=null),null!=z.status&&null!=z.status.parentNode&&z.status.parentNode.removeChild(z.status),z.status=null)};z.pause=function(){return O};return z};EditorUi.prototype.isCompatibleString=function(c){try{var f=mxUtils.parseXml(c),k=this.editor.extractGraphModel(f.documentElement,!0);return null!=
-k&&0==k.getElementsByTagName("parsererror").length}catch(A){}return!1};EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==
+"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(la.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=ca.substring(ca.length-3,ca.length)&&"!"!=ca.charAt(ca.length-1)&&(ca+="..."),la.innerHTML=mxUtils.htmlEntities(ca),ea.appendChild(la),z.status=la);this.pause=mxUtils.bind(this,function(){var fa=O;this.active&&(ma=Math.max(0,ma-(Date.now()-Y)),fa=mxUtils.bind(this,function(Z){this.spin(ea,ca,V,ma);if(null!=Z)try{Z(),K=mxUtils.bind(this,function(){this.spin(ea,ca,V,
+ma);try{Z()}catch(l){null!=V&&V(l)}})}catch(l){null!=V&&V(l)}}));this.stop();return fa});la=!0}return la};var da=z.stop;z.stop=function(){da.call(this);this.active&&(this.active=!1,null!=L&&(window.clearTimeout(L),L=null),null!=z.status&&null!=z.status.parentNode&&z.status.parentNode.removeChild(z.status),z.status=null)};z.pause=function(){return O};return z};EditorUi.prototype.isCompatibleString=function(c){try{var f=mxUtils.parseXml(c),k=this.editor.extractGraphModel(f.documentElement,!0);return null!=
+k&&0==k.getElementsByTagName("parsererror").length}catch(B){}return!1};EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==
c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=
-function(c){var f=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var k=f.getFunction,A=this.editor.graph,z=this;f.getFunction=function(C){if(A.isSelectionEmpty()&&null!=z.pages&&0<z.pages.length){var I=z.getSelectedPageIndex();if(mxEvent.isShiftDown(C)){if(37==C.keyCode)return function(){0<I&&z.movePage(I,I-1)};if(38==C.keyCode)return function(){0<I&&z.movePage(I,0)};if(39==C.keyCode)return function(){I<z.pages.length-1&&z.movePage(I,I+1)};if(40==C.keyCode)return function(){I<
-z.pages.length-1&&z.movePage(I,z.pages.length-1)}}else if(mxEvent.isControlDown(C)||mxClient.IS_MAC&&mxEvent.isMetaDown(C)){if(37==C.keyCode)return function(){0<I&&z.selectNextPage(!1)};if(38==C.keyCode)return function(){0<I&&z.selectPage(z.pages[0])};if(39==C.keyCode)return function(){I<z.pages.length-1&&z.selectNextPage(!0)};if(40==C.keyCode)return function(){I<z.pages.length-1&&z.selectPage(z.pages[z.pages.length-1])}}}return!(65<=C.keyCode&&90>=C.keyCode)||A.isSelectionEmpty()||mxEvent.isAltDown(C)||
-mxEvent.isShiftDown(C)||mxEvent.isControlDown(C)||mxClient.IS_MAC&&mxEvent.isMetaDown(C)?k.apply(this,arguments):null}}return f};var e=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var f=e.apply(this,arguments);if(null==f)try{var k=c.indexOf("&lt;mxfile ");if(0<=k){var A=c.lastIndexOf("&lt;/mxfile&gt;");A>k&&(f=c.substring(k,A+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else{var z=mxUtils.parseXml(c),
+function(c){var f=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var k=f.getFunction,B=this.editor.graph,z=this;f.getFunction=function(C){if(B.isSelectionEmpty()&&null!=z.pages&&0<z.pages.length){var I=z.getSelectedPageIndex();if(mxEvent.isShiftDown(C)){if(37==C.keyCode)return function(){0<I&&z.movePage(I,I-1)};if(38==C.keyCode)return function(){0<I&&z.movePage(I,0)};if(39==C.keyCode)return function(){I<z.pages.length-1&&z.movePage(I,I+1)};if(40==C.keyCode)return function(){I<
+z.pages.length-1&&z.movePage(I,z.pages.length-1)}}else if(mxEvent.isControlDown(C)||mxClient.IS_MAC&&mxEvent.isMetaDown(C)){if(37==C.keyCode)return function(){0<I&&z.selectNextPage(!1)};if(38==C.keyCode)return function(){0<I&&z.selectPage(z.pages[0])};if(39==C.keyCode)return function(){I<z.pages.length-1&&z.selectNextPage(!0)};if(40==C.keyCode)return function(){I<z.pages.length-1&&z.selectPage(z.pages[z.pages.length-1])}}}return!(65<=C.keyCode&&90>=C.keyCode)||B.isSelectionEmpty()||mxEvent.isAltDown(C)||
+mxEvent.isShiftDown(C)||mxEvent.isControlDown(C)||mxClient.IS_MAC&&mxEvent.isMetaDown(C)?k.apply(this,arguments):null}}return f};var e=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var f=e.apply(this,arguments);if(null==f)try{var k=c.indexOf("&lt;mxfile ");if(0<=k){var B=c.lastIndexOf("&lt;/mxfile&gt;");B>k&&(f=c.substring(k,B+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else{var z=mxUtils.parseXml(c),
C=this.editor.extractGraphModel(z.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);f=null!=C?mxUtils.getXml(C):""}}catch(I){}return f};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var f=c.indexOf('<meta charset="utf-8">');0<=f&&(c=c.slice(0,f)+'<meta charset="utf-8"/>'+c.slice(f+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.replaceFileData=function(c,f){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",
-f);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var k=null!=c?this.editor.extractGraphModel(c,!0):null;null!=k&&(c=k);if(null!=c){k=this.editor.graph;k.model.beginUpdate();try{var A=null!=this.pages?this.pages.slice():null,z=c.getElementsByTagName("diagram");if(1<z.length||1==z.length&&z[0].hasAttribute("name")){this.fileNode=c;this.pages=null!=this.pages?this.pages:[];for(var C=z.length-1;0<=C;C--){var I=this.updatePageRoot(new DiagramPage(z[C]));null==
+f);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var k=null!=c?this.editor.extractGraphModel(c,!0):null;null!=k&&(c=k);if(null!=c){k=this.editor.graph;k.model.beginUpdate();try{var B=null!=this.pages?this.pages.slice():null,z=c.getElementsByTagName("diagram");if(1<z.length||1==z.length&&z[0].hasAttribute("name")){this.fileNode=c;this.pages=null!=this.pages?this.pages:[];for(var C=z.length-1;0<=C;C--){var I=this.updatePageRoot(new DiagramPage(z[C]));null==
I.getName()&&I.setName(mxResources.get("pageWithNumber",[C+1]));k.model.execute(new ChangePage(this,I,0==C?I:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,
-k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=A)for(C=0;C<A.length;C++)k.model.execute(new ChangePage(this,A[C],null));var L=this.getCurrentFile();null!=L&&L.fileReplaced(f)}finally{k.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca){f=null!=f?f:this.editor.graph;z=null!=z?z:!1;K=null!=K?K:!0;da=null!=da?da:!Editor.defaultCompressed;var W=null;if(null==k||k.getMode()==App.MODE_DEVICE||k.getMode()==App.MODE_BROWSER)var ma=
-"_blank";else W=ma=A;if(null==c)return"";var la=c;if("mxfile"!=la.nodeName.toLowerCase()){if(da){var Y=c.ownerDocument.createElement("diagram");Y.setAttribute("name",mxResources.get("pageWithNumber",[1]));Y.setAttribute("id",Editor.guid());Y.appendChild(c)}else{Y=Graph.zapGremlins(mxUtils.getXml(c));la=Graph.compress(Y);if(Graph.decompress(la)!=Y)return Y;Y=c.ownerDocument.createElement("diagram");Y.setAttribute("name",mxResources.get("pageWithNumber",[1]));Y.setAttribute("id",Editor.guid());mxUtils.setTextContent(Y,
+k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=B)for(C=0;C<B.length;C++)k.model.execute(new ChangePage(this,B[C],null));var L=this.getCurrentFile();null!=L&&L.fileReplaced(f)}finally{k.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca){f=null!=f?f:this.editor.graph;z=null!=z?z:!1;K=null!=K?K:!0;da=null!=da?da:!Editor.defaultCompressed;var V=null;if(null==k||k.getMode()==App.MODE_DEVICE||k.getMode()==App.MODE_BROWSER)var ma=
+"_blank";else V=ma=B;if(null==c)return"";var la=c;if("mxfile"!=la.nodeName.toLowerCase()){if(da){var Y=c.ownerDocument.createElement("diagram");Y.setAttribute("name",mxResources.get("pageWithNumber",[1]));Y.setAttribute("id",Editor.guid());Y.appendChild(c)}else{Y=Graph.zapGremlins(mxUtils.getXml(c));la=Graph.compress(Y);if(Graph.decompress(la)!=Y)return Y;Y=c.ownerDocument.createElement("diagram");Y.setAttribute("name",mxResources.get("pageWithNumber",[1]));Y.setAttribute("id",Editor.guid());mxUtils.setTextContent(Y,
la)}la=c.ownerDocument.createElement("mxfile");la.appendChild(Y)}O?(la=la.cloneNode(!0),la.removeAttribute("modified"),la.removeAttribute("host"),la.removeAttribute("agent"),la.removeAttribute("etag"),la.removeAttribute("userAgent"),la.removeAttribute("version"),la.removeAttribute("editor"),la.removeAttribute("type")):(la.removeAttribute("userAgent"),la.removeAttribute("modified"),la.removeAttribute("version"),la.removeAttribute("editor"),la.removeAttribute("pages"),la.removeAttribute("type"),la.removeAttribute("etag"),
mxClient.IS_CHROMEAPP?la.setAttribute("host","Chrome"):EditorUi.isElectronApp?la.setAttribute("host","Electron"):la.setAttribute("host",window.location.hostname),la.setAttribute("agent",null!=navigator.userAgent?navigator.userAgent:navigator.appVersion),la.setAttribute("version",EditorUi.VERSION),1<la.getElementsByTagName("diagram").length&&null!=this.pages&&la.setAttribute("pages",this.pages.length));null!=ea&&(la=la.cloneNode(!0),la.setAttribute("scale",ea));null!=ca&&(la=la.cloneNode(!0),la.setAttribute("border",
-ca));c=da?mxUtils.getPrettyXml(la):mxUtils.getXml(la);if(!C&&!z&&(I||null!=k&&/(\.html)$/i.test(k.getTitle())))c=this.getHtml2(mxUtils.getXml(la),f,null!=k?k.getTitle():null,ma,W);else if(C||!z&&null!=k&&/(\.svg)$/i.test(k.getTitle()))null==k||k.getMode()!=App.MODE_DEVICE&&k.getMode()!=App.MODE_BROWSER||(A=null),k=this.getSvgFileProperties(la),c=this.getEmbeddedSvg(c,f,A,null,L,K,W,null,null,k.scale,k.border,null,Editor.svgFileTheme);return c};EditorUi.prototype.getXmlFileData=function(c,f,k,A){c=
-null!=c?c:!0;f=null!=f?f:!1;k=null!=k?k:!Editor.defaultCompressed;var z=this.editor.getGraphXml(c,A);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(K){var O=K.getElementsByTagName("mxGraphModel"),da=0<O.length?O[0]:null;O=K;null==da&&k?(da=mxUtils.getNodeValue(K),0<da.length&&(da=Graph.decompress(da),null!=da&&0<da.length&&(O=K.cloneNode(!1),O.appendChild(mxUtils.parseXml(da).documentElement)))):null==da||k?O=K.cloneNode(!0):(O=K.cloneNode(!1),mxUtils.setTextContent(O,Graph.compressNode(da)));
-z.appendChild(O)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(z),z=this.fileNode.cloneNode(!1),f)c(this.currentPage.node);else for(f=0;f<this.pages.length;f++){var C=this.pages[f],I=C.node;if(C!=this.currentPage)if(C.needsUpdate){var L=new mxCodec(mxUtils.createXmlDocument());L=L.encode(new mxGraphModel(C.root));this.editor.graph.saveViewState(C.viewState,L,null,A);EditorUi.removeChildNodes(I);I.appendChild(L);delete C.needsUpdate}else A&&(this.updatePageRoot(C),
+ca));c=da?mxUtils.getPrettyXml(la):mxUtils.getXml(la);if(!C&&!z&&(I||null!=k&&/(\.html)$/i.test(k.getTitle())))c=this.getHtml2(mxUtils.getXml(la),f,null!=k?k.getTitle():null,ma,V);else if(C||!z&&null!=k&&/(\.svg)$/i.test(k.getTitle()))null==k||k.getMode()!=App.MODE_DEVICE&&k.getMode()!=App.MODE_BROWSER||(B=null),k=this.getSvgFileProperties(la),c=this.getEmbeddedSvg(c,f,B,null,L,K,V,null,null,k.scale,k.border,null,Editor.svgFileTheme);return c};EditorUi.prototype.getXmlFileData=function(c,f,k,B){c=
+null!=c?c:!0;f=null!=f?f:!1;k=null!=k?k:!Editor.defaultCompressed;var z=this.editor.getGraphXml(c,B);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(K){var O=K.getElementsByTagName("mxGraphModel"),da=0<O.length?O[0]:null;O=K;null==da&&k?(da=mxUtils.getNodeValue(K),0<da.length&&(da=Graph.decompress(da),null!=da&&0<da.length&&(O=K.cloneNode(!1),O.appendChild(mxUtils.parseXml(da).documentElement)))):null==da||k?O=K.cloneNode(!0):(O=K.cloneNode(!1),mxUtils.setTextContent(O,Graph.compressNode(da)));
+z.appendChild(O)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(z),z=this.fileNode.cloneNode(!1),f)c(this.currentPage.node);else for(f=0;f<this.pages.length;f++){var C=this.pages[f],I=C.node;if(C!=this.currentPage)if(C.needsUpdate){var L=new mxCodec(mxUtils.createXmlDocument());L=L.encode(new mxGraphModel(C.root));this.editor.graph.saveViewState(C.viewState,L,null,B);EditorUi.removeChildNodes(I);I.appendChild(L);delete C.needsUpdate}else B&&(this.updatePageRoot(C),
null!=C.viewState.backgroundImage&&(null!=C.viewState.backgroundImage.originalSrc?C.viewState.backgroundImage=this.createImageForPageLink(C.viewState.backgroundImage.originalSrc,C):Graph.isPageLink(C.viewState.backgroundImage.src)&&(C.viewState.backgroundImage=this.createImageForPageLink(C.viewState.backgroundImage.src,C))),null!=C.viewState.backgroundImage&&null!=C.viewState.backgroundImage.originalSrc&&(L=new mxCodec(mxUtils.createXmlDocument()),L=L.encode(new mxGraphModel(C.root)),this.editor.graph.saveViewState(C.viewState,
-L,null,A),I=I.cloneNode(!1),I.appendChild(L)));c(I)}return z};EditorUi.prototype.anonymizeString=function(c,f){for(var k=[],A=0;A<c.length;A++){var z=c.charAt(A);0<=EditorUi.ignoredAnonymizedChars.indexOf(z)?k.push(z):isNaN(parseInt(z))?z.toLowerCase()!=z?k.push(String.fromCharCode(65+Math.round(25*Math.random()))):z.toUpperCase()!=z?k.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(z)?k.push(" "):k.push("?"):k.push(f?"0":Math.round(9*Math.random()))}return k.join("")};EditorUi.prototype.anonymizePatch=
-function(c){if(null!=c[EditorUi.DIFF_INSERT])for(var f=0;f<c[EditorUi.DIFF_INSERT].length;f++)try{var k=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][f].data).documentElement.cloneNode(!1);null!=k.getAttribute("name")&&k.setAttribute("name",this.anonymizeString(k.getAttribute("name")));c[EditorUi.DIFF_INSERT][f].data=mxUtils.getXml(k)}catch(C){c[EditorUi.DIFF_INSERT][f].data=C.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var A in c[EditorUi.DIFF_UPDATE]){var z=c[EditorUi.DIFF_UPDATE][A];null!=z.name&&
+L,null,B),I=I.cloneNode(!1),I.appendChild(L)));c(I)}return z};EditorUi.prototype.anonymizeString=function(c,f){for(var k=[],B=0;B<c.length;B++){var z=c.charAt(B);0<=EditorUi.ignoredAnonymizedChars.indexOf(z)?k.push(z):isNaN(parseInt(z))?z.toLowerCase()!=z?k.push(String.fromCharCode(65+Math.round(25*Math.random()))):z.toUpperCase()!=z?k.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(z)?k.push(" "):k.push("?"):k.push(f?"0":Math.round(9*Math.random()))}return k.join("")};EditorUi.prototype.anonymizePatch=
+function(c){if(null!=c[EditorUi.DIFF_INSERT])for(var f=0;f<c[EditorUi.DIFF_INSERT].length;f++)try{var k=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][f].data).documentElement.cloneNode(!1);null!=k.getAttribute("name")&&k.setAttribute("name",this.anonymizeString(k.getAttribute("name")));c[EditorUi.DIFF_INSERT][f].data=mxUtils.getXml(k)}catch(C){c[EditorUi.DIFF_INSERT][f].data=C.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var B in c[EditorUi.DIFF_UPDATE]){var z=c[EditorUi.DIFF_UPDATE][B];null!=z.name&&
(z.name=this.anonymizeString(z.name));null!=z.cells&&(f=mxUtils.bind(this,function(C){var I=z.cells[C];if(null!=I){for(var L in I)null!=I[L].value&&(I[L].value="["+I[L].value.length+"]"),null!=I[L].xmlValue&&(I[L].xmlValue="["+I[L].xmlValue.length+"]"),null!=I[L].style&&(I[L].style="["+I[L].style.length+"]"),mxUtils.isEmptyObject(I[L])&&delete I[L];mxUtils.isEmptyObject(I)&&delete z.cells[C]}}),f(EditorUi.DIFF_INSERT),f(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(z.cells)&&delete z.cells);mxUtils.isEmptyObject(z)&&
-delete c[EditorUi.DIFF_UPDATE][A]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,f){if(null!=c.attributes)for(var k=0;k<c.attributes.length;k++)"as"!=c.attributes[k].name&&c.setAttribute(c.attributes[k].name,this.anonymizeString(c.attributes[k].value,f));if(null!=c.childNodes)for(k=0;k<c.childNodes.length;k++)this.anonymizeAttributes(c.childNodes[k],f)};EditorUi.prototype.anonymizeNode=function(c,f){f=c.getElementsByTagName("mxCell");
+delete c[EditorUi.DIFF_UPDATE][B]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,f){if(null!=c.attributes)for(var k=0;k<c.attributes.length;k++)"as"!=c.attributes[k].name&&c.setAttribute(c.attributes[k].name,this.anonymizeString(c.attributes[k].value,f));if(null!=c.childNodes)for(k=0;k<c.childNodes.length;k++)this.anonymizeAttributes(c.childNodes[k],f)};EditorUi.prototype.anonymizeNode=function(c,f){f=c.getElementsByTagName("mxCell");
for(var k=0;k<f.length;k++)null!=f[k].getAttribute("value")&&f[k].setAttribute("value","["+f[k].getAttribute("value").length+"]"),null!=f[k].getAttribute("xmlValue")&&f[k].setAttribute("xmlValue","["+f[k].getAttribute("xmlValue").length+"]"),null!=f[k].getAttribute("style")&&f[k].setAttribute("style","["+f[k].getAttribute("style").length+"]"),null!=f[k].parentNode&&"root"!=f[k].parentNode.nodeName&&null!=f[k].parentNode.parentNode&&(f[k].setAttribute("id",f[k].parentNode.getAttribute("id")),f[k].parentNode.parentNode.replaceChild(f[k],
f[k].parentNode));return c};EditorUi.prototype.synchronizeCurrentFile=function(c){var f=this.getCurrentFile();null!=f&&(f.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&f.invalidChecksum?f.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(f.clearAutosave(),this.editor.setStatus(""),c?f.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){this.spinner.stop();
-f.handleFileError(k,!0)})):f.synchronizeFile(mxUtils.bind(this,function(){f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){f.handleFileError(k,!0)}))))};EditorUi.prototype.getFileData=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca){z=null!=z?z:!0;C=null!=C?C:!1;O=null!=O?O:!Editor.defaultCompressed;var W=this.editor.graph;if((f||!c&&null!=K&&/(\.svg)$/i.test(K.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var ma=W.getGlobalVariable;W=this.createTemporaryGraph(W.getStylesheet());
-W.setBackgroundImage=this.editor.graph.setBackgroundImage;W.background=this.editor.graph.background;var la=null!=this.pages?this.pages[0]:null;null==la||this.currentPage==la?W.setBackgroundImage(this.editor.graph.backgroundImage):null!=la.viewState&&null!=la.viewState&&W.setBackgroundImage(la.viewState.backgroundImage);W.getGlobalVariable=function(Y){return"page"==Y&&null!=la?la.getName():"pagenumber"==Y?1:ma.apply(this,arguments)};document.body.appendChild(W.container);null!=la&&W.model.setRoot(la.root)}I=
-null!=I?I:this.getXmlFileData(z,C,O,da);K=null!=K?K:this.getCurrentFile();c=this.createFileData(I,W,K,window.location.href,c,f,k,A,z,L,O,ea,ca);W!=this.editor.graph&&W.container.parentNode.removeChild(W.container);return c};EditorUi.prototype.getHtml=function(c,f,k,A,z,C){C=null!=C?C:!0;var I=null,L=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=f){I=C?f.getGraphBounds():f.getBoundingBox(f.getSelectionCells());var K=f.view.scale;C=Math.floor(I.x/K-f.view.translate.x);K=Math.floor(I.y/K-f.view.translate.y);
-I=f.background;null==z&&(f=this.getBasenames().join(";"),0<f.length&&(L=EditorUi.drawHost+"/embed.js?s="+f));c.setAttribute("x0",C);c.setAttribute("y0",K)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=A&&c.setAttribute("edit",A));null!=z&&(z=z.replace(/&/g,"&amp;"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";A=Graph.compress(c);Graph.decompress(A)!=c&&(A=encodeURIComponent(c));
+f.handleFileError(k,!0)})):f.synchronizeFile(mxUtils.bind(this,function(){f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){f.handleFileError(k,!0)}))))};EditorUi.prototype.getFileData=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca){z=null!=z?z:!0;C=null!=C?C:!1;O=null!=O?O:!Editor.defaultCompressed;var V=this.editor.graph;if((f||!c&&null!=K&&/(\.svg)$/i.test(K.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var ma=V.getGlobalVariable;V=this.createTemporaryGraph(V.getStylesheet());
+V.setBackgroundImage=this.editor.graph.setBackgroundImage;V.background=this.editor.graph.background;var la=null!=this.pages?this.pages[0]:null;null==la||this.currentPage==la?V.setBackgroundImage(this.editor.graph.backgroundImage):null!=la.viewState&&null!=la.viewState&&V.setBackgroundImage(la.viewState.backgroundImage);V.getGlobalVariable=function(Y){return"page"==Y&&null!=la?la.getName():"pagenumber"==Y?1:ma.apply(this,arguments)};document.body.appendChild(V.container);null!=la&&V.model.setRoot(la.root)}I=
+null!=I?I:this.getXmlFileData(z,C,O,da);K=null!=K?K:this.getCurrentFile();c=this.createFileData(I,V,K,window.location.href,c,f,k,B,z,L,O,ea,ca);V!=this.editor.graph&&V.container.parentNode.removeChild(V.container);return c};EditorUi.prototype.getHtml=function(c,f,k,B,z,C){C=null!=C?C:!0;var I=null,L=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=f){I=C?f.getGraphBounds():f.getBoundingBox(f.getSelectionCells());var K=f.view.scale;C=Math.floor(I.x/K-f.view.translate.x);K=Math.floor(I.y/K-f.view.translate.y);
+I=f.background;null==z&&(f=this.getBasenames().join(";"),0<f.length&&(L=EditorUi.drawHost+"/embed.js?s="+f));c.setAttribute("x0",C);c.setAttribute("y0",K)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=B&&c.setAttribute("edit",B));null!=z&&(z=z.replace(/&/g,"&amp;"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";B=Graph.compress(c);Graph.decompress(B)!=c&&(B=encodeURIComponent(c));
return(null==z?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=z?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==z?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=z?'<meta http-equiv="refresh" content="0;URL=\''+z+"'\"/>\n":"")+"</head>\n<body"+(null==z&&null!=I&&I!=mxConstants.NONE?' style="background-color:'+I+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+
-A+"</div>\n</div>\n"+(null==z?'<script type="text/javascript" src="'+L+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+z+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,f,k,A,z){f=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=z&&(z=z.replace(/&/g,"&amp;"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,
+B+"</div>\n</div>\n"+(null==z?'<script type="text/javascript" src="'+L+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+z+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,f,k,B,z){f=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=z&&(z=z.replace(/&/g,"&amp;"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,
resize:!0,xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==z?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=z?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==z?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=z?'<meta http-equiv="refresh" content="0;URL=\''+
z+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>\n'+(null==z?'<script type="text/javascript" src="'+f+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+z+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.setFileData=
function(c){c=this.validateFileData(c);this.pages=this.fileNode=this.currentPage=null;var f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null,k=Editor.extractParserError(f,mxResources.get("invalidOrMissingFile"));if(k)throw EditorUi.debug("EditorUi.setFileData ParserError",[this],"data",[c],"node",[f],"cause",[k]),Error(mxResources.get("notADiagramFile")+" ("+k+")");c=null!=f?this.editor.extractGraphModel(f,!0):null;null!=c&&(f=c);if(null!=f&&"mxfile"==f.nodeName&&(c=f.getElementsByTagName("diagram"),
-k={},0<c.length)){var A=this.getHashObject(),z=null;this.fileNode=f;this.pages=[];for(var C=0;C<c.length;C++){null==c[C].getAttribute("id")&&c[C].setAttribute("id",C);f=new DiagramPage(c[C]);null==f.getName()&&f.setName(mxResources.get("pageWithNumber",[C+1]));this.pages.push(f);if(null==A.pageId&&null!=urlParams["page-id"]&&f.getId()==urlParams["page-id"]||null!=A.pageId&&f.getId()==A.pageId)z=f;if(null==k[f.getId()])k[f.getId()]=f;else throw Error(f.getId()+": Duplicate page ID");}this.currentPage=
+k={},0<c.length)){var B=this.getHashObject(),z=null;this.fileNode=f;this.pages=[];for(var C=0;C<c.length;C++){null==c[C].getAttribute("id")&&c[C].setAttribute("id",C);f=new DiagramPage(c[C]);null==f.getName()&&f.setName(mxResources.get("pageWithNumber",[C+1]));this.pages.push(f);if(null==B.pageId&&null!=urlParams["page-id"]&&f.getId()==urlParams["page-id"]||null!=B.pageId&&f.getId()==B.pageId)z=f;if(null==k[f.getId()])k[f.getId()]=f;else throw Error(f.getId()+": Duplicate page ID");}this.currentPage=
null!=z?z:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];f=this.currentPage.node}null==this.fileNode&&null!=f&&(this.fileNode=f.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(f.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(f);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),
this.scrollToPage());if(null!=urlParams["layer-ids"])try{var I=decodeURIComponent(urlParams["layer-ids"]).split(" ");f={};for(C=0;C<I.length;C++)f[I[C]]=!0;var L=this.editor.graph.getModel(),K=L.getChildren(L.root);for(C=0;C<K.length;C++){var O=K[C];L.setVisible(O,f[O.id]||!1)}}catch(da){}};EditorUi.prototype.getBaseFilename=function(c){var f=this.getCurrentFile();f=null!=f&&null!=f.getTitle()?f.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(f)||/(\.html)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.png)$/i.test(f))f=
-f.substring(0,f.lastIndexOf("."));/(\.drawio)$/i.test(f)&&(f=f.substring(0,f.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(f=f+"-"+this.currentPage.getName());return f};EditorUi.prototype.downloadFile=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W,ma,la){try{A=null!=A?A:this.editor.graph.isSelectionEmpty();var Y=this.getBaseFilename(!z),fa=Y+("xml"==c||"pdf"==c&&da?".drawio":"")+
-"."+c;if("xml"==c){var Z=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,A,z,null,null,null,f);this.saveData(fa,c,Z,"text/xml")}else if("html"==c)Z=this.getHtml2(this.getFileData(!0),this.editor.graph,Y),this.saveData(fa,c,Z,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==c?fa=Y+".png":"jpeg"==c&&(fa=Y+".jpg"),this.saveRequest(fa,c,mxUtils.bind(this,function(J,V){try{return this.createDownloadRequest(J,c,A,V,I,z,L,K,O,
-da,ea,void 0,void 0,!C,ca,W,ma,la)}catch(aa){this.handleError(aa)}}));else{var l=null,u=mxUtils.bind(this,function(J){J.length<=MAX_REQUEST_SIZE?this.saveData(fa,"svg",J,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(l)}))});if("svg"==c){var H=this.editor.graph.background;if(I||H==mxConstants.NONE)H=null;var U=this.editor.graph.getSvg(H,null,null,null,null,A);k&&this.editor.graph.addSvgShadow(U);this.editor.convertImages(U,
-mxUtils.bind(this,mxUtils.bind(this,function(J){this.spinner.stop();u(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(J))})))}else fa=Y+".svg",l=this.getFileData(!1,!0,null,mxUtils.bind(this,function(J){this.spinner.stop();u(J)}),A)}}catch(J){this.handleError(J)}};EditorUi.prototype.createDownloadRequest=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W,ma,la,Y,fa){c=this.downloadRequestBuilder(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W,ma,la,Y,fa);f="";for(var Z in c)k=c[Z],null!=k&&(f+=Z+"="+encodeURIComponent(k)+
-"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W,ma,la,Y,fa){var Z=this.editor.graph,l=Z.getGraphBounds();k=this.getFileData(!0,null,null,null,k,0==C?!1:"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var u=null,H=null,U=null;if(!EditorUi.isElectronApp&&(l.width*l.height>MAX_AREA||k.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};O=O?"1":"0";"pdf"==f&&(null!=da?(u=da.from,H=da.to):
+f.substring(0,f.lastIndexOf("."));/(\.drawio)$/i.test(f)&&(f=f.substring(0,f.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(f=f+"-"+this.currentPage.getName());return f};EditorUi.prototype.downloadFile=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V,ma,la){try{B=null!=B?B:this.editor.graph.isSelectionEmpty();var Y=this.getBaseFilename(!z),fa=Y+("xml"==c||"pdf"==c&&da?".drawio":"")+
+"."+c;if("xml"==c){var Z=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,B,z,null,null,null,f);this.saveData(fa,c,Z,"text/xml")}else if("html"==c)Z=this.getHtml2(this.getFileData(!0),this.editor.graph,Y),this.saveData(fa,c,Z,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==c?fa=Y+".png":"jpeg"==c&&(fa=Y+".jpg"),this.saveRequest(fa,c,mxUtils.bind(this,function(J,W){try{return this.createDownloadRequest(J,c,B,W,I,z,L,K,O,
+da,ea,void 0,void 0,!C,ca,V,ma,la)}catch(aa){this.handleError(aa)}}));else{var l=null,u=mxUtils.bind(this,function(J){J.length<=MAX_REQUEST_SIZE?this.saveData(fa,"svg",J,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(l)}))});if("svg"==c){var H=this.editor.graph.background;if(I||H==mxConstants.NONE)H=null;var U=this.editor.graph.getSvg(H,null,null,null,null,B);k&&this.editor.graph.addSvgShadow(U);this.editor.convertImages(U,
+mxUtils.bind(this,mxUtils.bind(this,function(J){this.spinner.stop();u(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(J))})))}else fa=Y+".svg",l=this.getFileData(!1,!0,null,mxUtils.bind(this,function(J){this.spinner.stop();u(J)}),B)}}catch(J){this.handleError(J)}};EditorUi.prototype.createDownloadRequest=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V,ma,la,Y,fa){c=this.downloadRequestBuilder(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V,ma,la,Y,fa);f="";for(var Z in c)k=c[Z],null!=k&&(f+=Z+"="+encodeURIComponent(k)+
+"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V,ma,la,Y,fa){var Z=this.editor.graph,l=Z.getGraphBounds();k=this.getFileData(!0,null,null,null,k,0==C?!1:"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var u=null,H=null,U=null;if(!EditorUi.isElectronApp&&(l.width*l.height>MAX_AREA||k.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};O=O?"1":"0";"pdf"==f&&(null!=da?(u=da.from,H=da.to):
0==C&&(U="1"));"xmlpng"==f&&(O="1",f="png");if(("xmlpng"==f||"svg"==f)&&null!=this.pages&&null!=this.currentPage)for(C=0;C<this.pages.length;C++)if(this.pages[C]==this.currentPage){u=C;break}C=Z.background;"png"!=f&&"pdf"!=f&&"svg"!=f||!z?z||null!=C&&C!=mxConstants.NONE||(C="#ffffff"):C=mxConstants.NONE;z={globalVars:Z.getExportVariables()};K&&(z.grid={size:Z.gridSize,steps:Z.view.gridSteps,color:Editor.isDarkMode()&&"pdf"==f?mxGraphView.prototype.defaultGridColor:Z.view.gridColor});Graph.translateDiagram&&
-(z.diagramLanguage=Graph.diagramLanguage);return{format:f,from:u,to:H,allPages:U,bg:null!=C?C:mxConstants.NONE,base64:A,embedXml:O,xml:k,filename:null!=c?c:"",extras:JSON.stringify(z),scale:I,border:L,pageMargin:ma,w:ea&&isFinite(ea)?ea:null,h:ca&&isFinite(ca)?ca:null,crop:null!=W&&W?"1":"0",fit:null!=la&&la?"1":"0",sheetsAcross:Y,sheetsDown:fa}};EditorUi.prototype.setMode=function(c,f){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));
-if(null!=c&&1<c.length){var f=c.indexOf("#");0<=f&&(c=c.substring(0,f))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,f={};if(null!=c&&0<c.length){var k=c.lastIndexOf("#");if(0<k){c=decodeURIComponent(c.substring(k+1));try{f=JSON.parse(c)}catch(A){}}}return f};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};
-EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var f=window.location.hash;if(null==f||""==f)f="#";var k=f.lastIndexOf("#");0<k&&(f=f.substring(0,k));try{null==c||mxUtils.isEmptyObject(c)||(f=f+"#"+encodeURIComponent(JSON.stringify(c)))}catch(A){}0<k&&0<f.lastIndexOf("#")?window.location.hash=f:window.location.replace(f)}};EditorUi.prototype.loadDescriptor=function(c,f,k){var A=window.location.hash,z=mxUtils.bind(this,function(I){var L=null!=c.data?c.data:"";null!=I&&0<I.length&&
-(0<L.length&&(L+="\n"),L+=I);I=new LocalFile(this,"csv"!=c.format&&0<L.length?L:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);I.getHash=function(){return A};this.fileLoaded(I);"csv"==c.format&&this.importCsv(L,mxUtils.bind(this,function(ca){this.editor.undoManager.clear();this.editor.setModified(!1);this.editor.setStatus("")}));if(null!=c.update){var K=null!=c.interval?parseInt(c.interval):6E4,O=null,da=mxUtils.bind(this,function(){var ca=
-this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(W){ca===this.currentPage&&(200<=W.getStatus()&&300>=W.getStatus()?(this.updateDiagram(W.getText()),ea()):this.handleError({message:mxResources.get("error")+" "+W.getStatus()}))}),mxUtils.bind(this,function(W){this.handleError(W)}))}),ea=mxUtils.bind(this,function(){window.clearTimeout(O);O=window.setTimeout(da,K)});this.editor.addListener("pageSelected",mxUtils.bind(this,
-function(){ea();da()}));ea();da()}null!=f&&f()});if(null!=c.url&&0<c.url.length){var C=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(C,mxUtils.bind(this,function(I){z(I)}),mxUtils.bind(this,function(I){null!=k&&k(I)}))}else z("")};EditorUi.prototype.updateDiagram=function(c){function f(l){var u=new mxCellOverlay(l.image||z.warningImage,l.tooltip,l.align,l.valign,l.offset);u.addListener(mxEvent.CLICK,function(H,U){A.alert(l.tooltip)});return u}var k=null,A=this;if(null!=c&&0<c.length&&(k=mxUtils.parseXml(c),
+(z.diagramLanguage=Graph.diagramLanguage);return{format:f,from:u,to:H,allPages:U,bg:null!=C?C:mxConstants.NONE,base64:B,embedXml:O,xml:k,filename:null!=c?c:"",extras:JSON.stringify(z),scale:I,border:L,pageMargin:ma,w:ea&&isFinite(ea)?ea:null,h:ca&&isFinite(ca)?ca:null,crop:null!=V&&V?"1":"0",fit:null!=la&&la?"1":"0",sheetsAcross:Y,sheetsDown:fa}};EditorUi.prototype.setMode=function(c,f){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));
+if(null!=c&&1<c.length){var f=c.indexOf("#");0<=f&&(c=c.substring(0,f))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,f={};if(null!=c&&0<c.length){var k=c.lastIndexOf("#");if(0<k){c=decodeURIComponent(c.substring(k+1));try{f=JSON.parse(c)}catch(B){}}}return f};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};
+EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var f=window.location.hash;if(null==f||""==f)f="#";var k=f.lastIndexOf("#");0<k&&(f=f.substring(0,k));try{null==c||mxUtils.isEmptyObject(c)||(f=f+"#"+encodeURIComponent(JSON.stringify(c)))}catch(B){}0<k&&0<f.lastIndexOf("#")?window.location.hash=f:window.location.replace(f)}};EditorUi.prototype.loadDescriptor=function(c,f,k){var B=window.location.hash,z=mxUtils.bind(this,function(I){var L=null!=c.data?c.data:"";null!=I&&0<I.length&&
+(0<L.length&&(L+="\n"),L+=I);I=new LocalFile(this,"csv"!=c.format&&0<L.length?L:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);I.getHash=function(){return B};this.fileLoaded(I);"csv"==c.format&&this.importCsv(L,mxUtils.bind(this,function(ca){this.editor.undoManager.clear();this.editor.setModified(!1);this.editor.setStatus("")}));if(null!=c.update){var K=null!=c.interval?parseInt(c.interval):6E4,O=null,da=mxUtils.bind(this,function(){var ca=
+this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(V){ca===this.currentPage&&(200<=V.getStatus()&&300>=V.getStatus()?(this.updateDiagram(V.getText()),ea()):this.handleError({message:mxResources.get("error")+" "+V.getStatus()}))}),mxUtils.bind(this,function(V){this.handleError(V)}))}),ea=mxUtils.bind(this,function(){window.clearTimeout(O);O=window.setTimeout(da,K)});this.editor.addListener("pageSelected",mxUtils.bind(this,
+function(){ea();da()}));ea();da()}null!=f&&f()});if(null!=c.url&&0<c.url.length){var C=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(C,mxUtils.bind(this,function(I){z(I)}),mxUtils.bind(this,function(I){null!=k&&k(I)}))}else z("")};EditorUi.prototype.updateDiagram=function(c){function f(l){var u=new mxCellOverlay(l.image||z.warningImage,l.tooltip,l.align,l.valign,l.offset);u.addListener(mxEvent.CLICK,function(H,U){B.alert(l.tooltip)});return u}var k=null,B=this;if(null!=c&&0<c.length&&(k=mxUtils.parseXml(c),
c=null!=k?k.documentElement:null,null!=c&&"updates"==c.nodeName)){var z=this.editor.graph,C=z.getModel();C.beginUpdate();var I=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var L=C.getCell(c.getAttribute("id"));if(null!=L){try{var K=c.getAttribute("value");if(null!=K){var O=mxUtils.parseXml(K).documentElement;if(null!=O)if("1"==O.getAttribute("replace-value"))C.setValue(L,O);else for(var da=O.attributes,ea=0;ea<da.length;ea++)z.setAttributeForCell(L,da[ea].nodeName,0<da[ea].nodeValue.length?
-da[ea].nodeValue:null)}}catch(l){null!=window.console&&console.log("Error in value for "+L.id+": "+l)}try{var ca=c.getAttribute("style");null!=ca&&z.model.setStyle(L,ca)}catch(l){null!=window.console&&console.log("Error in style for "+L.id+": "+l)}try{var W=c.getAttribute("icon");if(null!=W){var ma=0<W.length?JSON.parse(W):null;null!=ma&&ma.append||z.removeCellOverlays(L);null!=ma&&z.addCellOverlay(L,f(ma))}}catch(l){null!=window.console&&console.log("Error in icon for "+L.id+": "+l)}try{var la=c.getAttribute("geometry");
+da[ea].nodeValue:null)}}catch(l){null!=window.console&&console.log("Error in value for "+L.id+": "+l)}try{var ca=c.getAttribute("style");null!=ca&&z.model.setStyle(L,ca)}catch(l){null!=window.console&&console.log("Error in style for "+L.id+": "+l)}try{var V=c.getAttribute("icon");if(null!=V){var ma=0<V.length?JSON.parse(V):null;null!=ma&&ma.append||z.removeCellOverlays(L);null!=ma&&z.addCellOverlay(L,f(ma))}}catch(l){null!=window.console&&console.log("Error in icon for "+L.id+": "+l)}try{var la=c.getAttribute("geometry");
if(null!=la){la=JSON.parse(la);var Y=z.getCellGeometry(L);if(null!=Y){Y=Y.clone();for(key in la){var fa=parseFloat(la[key]);"dx"==key?Y.x+=fa:"dy"==key?Y.y+=fa:"dw"==key?Y.width+=fa:"dh"==key?Y.height+=fa:Y[key]=parseFloat(la[key])}z.model.setGeometry(L,Y)}}}catch(l){null!=window.console&&console.log("Error in icon for "+L.id+": "+l)}}}else if("model"==c.nodeName){for(var Z=c.firstChild;null!=Z&&Z.nodeType!=mxConstants.NODETYPE_ELEMENT;)Z=Z.nextSibling;null!=Z&&(new mxCodec(c.firstChild)).decode(Z,
C)}else if("view"==c.nodeName){if(c.hasAttribute("scale")&&(z.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))z.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==c.nodeName&&(I=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{C.endUpdate()}null!=I&&this.chromelessResize&&this.chromelessResize(!0,I)}return k};EditorUi.prototype.getCopyFilename=function(c,
-f){var k=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var A=k.lastIndexOf(".");0<=A&&(c=k.substring(A),k=k.substring(0,A));if(f){f=k;var z=new Date;k=z.getFullYear();A=z.getMonth()+1;var C=z.getDate(),I=z.getHours(),L=z.getMinutes();z=z.getSeconds();k=f+(" "+(k+"-"+A+"-"+C+"-"+I+"-"+L+"-"+z))}return k=mxResources.get("copyOf",[k])+c};EditorUi.prototype.logIfModified=function(c,f){try{null!=c&&f&&EditorUi.debug("File.closed",[c])}catch(k){}};EditorUi.prototype.fileLoaded=function(c,
-f,k){var A=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var z=!1;this.hideDialog();null!=A&&(A.removeListener(this.descriptorChangedListener),this.logIfModified(A,!0),A.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var C=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=A&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);
+f){var k=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var B=k.lastIndexOf(".");0<=B&&(c=k.substring(B),k=k.substring(0,B));if(f){f=k;var z=new Date;k=z.getFullYear();B=z.getMonth()+1;var C=z.getDate(),I=z.getHours(),L=z.getMinutes();z=z.getSeconds();k=f+(" "+(k+"-"+B+"-"+C+"-"+I+"-"+L+"-"+z))}return k=mxResources.get("copyOf",[k])+c};EditorUi.prototype.logIfModified=function(c,f){try{null!=c&&f&&EditorUi.debug("File.closed",[c])}catch(k){}};EditorUi.prototype.fileLoaded=function(c,
+f,k){var B=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var z=!1;this.hideDialog();null!=B&&(B.removeListener(this.descriptorChangedListener),this.logIfModified(B,!0),B.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var C=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=B&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);
!f&&null!=window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fnameWrapper.style.display="none",this.fname.innerText="",this.fname.setAttribute("title",mxResources.get("rename")));this.editor.setStatus("");this.updateUi();f||this.showSplash()});if(null!=c)try{mxClient.IS_SF&&"min"==uiTheme&&(this.diagramContainer.style.visibility="");this.openingFile=!0;this.setCurrentFile(c);c.addListener("descriptorChanged",this.descriptorChangedListener);c.addListener("contentChanged",
this.descriptorChangedListener);c.open();delete this.openingFile;this.setGraphEnabled(!0);this.setMode(c.getMode());this.editor.graph.model.prefix=Editor.guid()+"-";this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();c.isEditable()?c.isModified()?c.addUnsavedStatus():this.editor.setStatus(""):this.editor.setStatus('<div class="geStatusBox" title="'+mxUtils.htmlEntities(mxResources.get("readOnly"))+'">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</div>");!this.editor.isChromelessView()||
this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=k&&k();this.editor.fireEvent(new mxEventObject("fileLoaded"));z=!0;if(!this.isOffline()&&null!=c.getMode()){var I="1"==urlParams.sketch?"sketch":uiTheme;if(null==I)I="default";else if("sketch"==I||"min"==I)I+=Editor.isDarkMode()?"-dark":"-light"}EditorUi.debug("File.opened",
[c]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==c.getMode()&&c.getMode()!=App.MODE_DEVICE&&null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(L){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(L){}}catch(L){this.fileLoadedError=L;if(null!=c)try{c.close()}catch(K){}c=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,
-mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=A?this.fileLoaded(A)||C():C()});f?c():(null!=L.fallbackFileData&&(L.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var K=new LocalFile(this,L.fallbackFileData,this.defaultFilename,!0);this.fileLoaded(K)})}),this.handleError(L,mxResources.get("errorLoadingFile"),c,!0,null,null,!0))}else C();return z};EditorUi.prototype.getHashValueForPages=function(c,f){var k=
-0,A=new mxGraphModel,z=new mxCodec;null!=f&&(f.byteCount=0,f.attrCount=0,f.eltCount=0,f.nodeCount=0);for(var C=0;C<c.length;C++){this.updatePageRoot(c[C]);var I=c[C].node.cloneNode(!1);I.removeAttribute("name");A.root=c[C].root;var L=z.encode(A);this.editor.graph.saveViewState(c[C].viewState,L,!0);L.removeAttribute("pageWidth");L.removeAttribute("pageHeight");I.appendChild(L);null!=f&&(f.eltCount+=I.getElementsByTagName("*").length,f.nodeCount+=I.getElementsByTagName("mxCell").length);k=(k<<5)-k+
-this.hashValue(I,function(K,O,da,ea){return!ea||"mxGeometry"!=K.nodeName&&"mxPoint"!=K.nodeName||"x"!=O&&"y"!=O&&"width"!=O&&"height"!=O?ea&&"mxCell"==K.nodeName&&"previous"==O?null:da:Math.round(da)},f)<<0}return k};EditorUi.prototype.hashValue=function(c,f,k){var A=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(A^=this.hashValue(c.nodeName,f,k));if(null!=c.attributes){null!=k&&(k.attrCount+=c.attributes.length);
-for(var z=0;z<c.attributes.length;z++){var C=c.attributes[z].name,I=null!=f?f(c,C,c.attributes[z].value,!0):c.attributes[z].value;null!=I&&(A^=this.hashValue(C,f,k)+this.hashValue(I,f,k))}}if(null!=c.childNodes)for(z=0;z<c.childNodes.length;z++)A=(A<<5)-A+this.hashValue(c.childNodes[z],f,k)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);f=0;null!=k&&(k.byteCount+=c.length);for(z=0;z<c.length;z++)f=(f<<5)-f+c.charCodeAt(z)<<0;A^=f}return A};EditorUi.prototype.descriptorChanged=function(){};
-EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,f,k,A,z,C,I){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){null==c&&(c=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
+mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=B?this.fileLoaded(B)||C():C()});f?c():(null!=L.fallbackFileData&&(L.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var K=new LocalFile(this,L.fallbackFileData,this.defaultFilename,!0);this.fileLoaded(K)})}),this.handleError(L,mxResources.get("errorLoadingFile"),c,!0,null,null,!0))}else C();return z};EditorUi.prototype.getHashValueForPages=function(c,f){var k=
+0,B=new mxGraphModel,z=new mxCodec;null!=f&&(f.byteCount=0,f.attrCount=0,f.eltCount=0,f.nodeCount=0);for(var C=0;C<c.length;C++){this.updatePageRoot(c[C]);var I=c[C].node.cloneNode(!1);I.removeAttribute("name");B.root=c[C].root;var L=z.encode(B);this.editor.graph.saveViewState(c[C].viewState,L,!0);L.removeAttribute("pageWidth");L.removeAttribute("pageHeight");I.appendChild(L);null!=f&&(f.eltCount+=I.getElementsByTagName("*").length,f.nodeCount+=I.getElementsByTagName("mxCell").length);k=(k<<5)-k+
+this.hashValue(I,function(K,O,da,ea){return!ea||"mxGeometry"!=K.nodeName&&"mxPoint"!=K.nodeName||"x"!=O&&"y"!=O&&"width"!=O&&"height"!=O?ea&&"mxCell"==K.nodeName&&"previous"==O?null:da:Math.round(da)},f)<<0}return k};EditorUi.prototype.hashValue=function(c,f,k){var B=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(B^=this.hashValue(c.nodeName,f,k));if(null!=c.attributes){null!=k&&(k.attrCount+=c.attributes.length);
+for(var z=0;z<c.attributes.length;z++){var C=c.attributes[z].name,I=null!=f?f(c,C,c.attributes[z].value,!0):c.attributes[z].value;null!=I&&(B^=this.hashValue(C,f,k)+this.hashValue(I,f,k))}}if(null!=c.childNodes)for(z=0;z<c.childNodes.length;z++)B=(B<<5)-B+this.hashValue(c.childNodes[z],f,k)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);f=0;null!=k&&(k.byteCount+=c.length);for(z=0;z<c.length;z++)f=(f<<5)-f+c.charCodeAt(z)<<0;B^=f}return B};EditorUi.prototype.descriptorChanged=function(){};
+EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,f,k,B,z,C,I){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){null==c&&(c=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
EditorUi.prototype.createLibraryDataFromImages=function(c){if(!Editor.defaultCompressed)for(var f=0;f<c.length;f++)null!=c[f].xml&&"<"!=c[f].xml.charAt(0)&&(c[f].xml=mxUtils.trim(Graph.decompress(c[f].xml)));f=mxUtils.createXmlDocument();var k=f.createElement("mxlibrary");mxUtils.setTextContent(k,JSON.stringify(c,null,2));f.appendChild(k);return mxUtils.getXml(f,"\n")};EditorUi.prototype.closeLibrary=function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),
".scratchpad"==c.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(c){var f=this.sidebar.palettes[c];if(null!=f){for(var k=0;k<f.length;k++)f[k].parentNode.removeChild(f[k]);delete this.sidebar.palettes[c]}};EditorUi.prototype.repositionLibrary=function(c,f){var k=this.sidebar.getEntryContainer();if(!this.sidebar.appendCustomLibraries||null!=c||!f){null==c&&(f=this.sidebar.palettes["L.scratchpad"],null==f&&(f=this.sidebar.palettes.search),null!=f&&(c=f[f.length-1].nextSibling));
-c=null!=c?c:k.firstChild.nextSibling.nextSibling;f=k.lastChild;var A=f.previousSibling;k.insertBefore(f,c);k.insertBefore(A,f)}};EditorUi.prototype.loadLibrary=function(c,f){var k=mxUtils.parseXml(c.getData());if("mxlibrary"==k.documentElement.nodeName){var A=JSON.parse(mxUtils.getTextContent(k.documentElement));this.libraryLoaded(c,A,k.documentElement.getAttribute("title"),f)}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(c){return""};EditorUi.prototype.showSidebar=
-function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.libraryLoaded=function(c,f,k,A){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());var z=null;if(c.constructor!=StorageLibrary||".scratchpad"!=c.title){null==this.openLibraries&&(this.openLibraries=[]);for(var C=0;C<this.openLibraries.length;C++)if(this.openLibraries[C].file.getHash()==c.getHash()){mxUtils.remove(this.openLibraries[C],
-this.openLibraries);break}z={file:c,images:f,title:k,expand:A};this.openLibraries.push(z)}else this.scratchpad=c;C=this.sidebar.palettes[c.getHash()];C=null!=C?C[C.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var I=null,L=mxUtils.bind(this,function(fa,Z){0==fa.length&&c.isEditable()?(null==I&&(I=document.createElement("div"),I.className="geDropTarget",mxUtils.write(I,mxResources.get("dragElementsHere"))),Z.appendChild(I)):this.addLibraryEntries(fa,Z)});null!=this.sidebar&&null!=
-f&&this.sidebar.addEntries(f);null==k&&(k=c.getTitle(),null!=k&&/(\.xml)$/i.test(k)&&(k=k.substring(0,k.lastIndexOf("."))));var K=this.sidebar.addPalette(c.getHash(),k,null!=A?A:!0,mxUtils.bind(this,function(fa){L(f,fa)}));null!=z&&(z.div=K);this.repositionLibrary(C,"L.scratchpad"!=c.getHash());A=K.parentNode.previousSibling;k=A.getAttribute("title");null!=k&&0<k.length&&".scratchpad"!=c.title&&A.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+k);var O=document.createElement("div");O.style.backgroundColor=
-"inherit";A.style.position="relative";var da=document.createElement("img");da.className="geAdaptiveAsset";da.setAttribute("src",Editor.crossImage);da.setAttribute("title",mxResources.get("close"));da.setAttribute("valign","absmiddle");da.setAttribute("border","0");da.style.position="relative";da.style.top="2px";da.style.width="14px";da.style.cursor="pointer";da.style.margin="0 3px";var ea=null;if(".scratchpad"!=c.title||this.closableScratchpad)O.appendChild(da),mxEvent.addListener(da,"click",mxUtils.bind(this,
-function(fa){if(!mxEvent.isConsumed(fa)){var Z=mxUtils.bind(this,function(){null!=z&&mxUtils.remove(z,this.openLibraries);this.closeLibrary(c)});null!=ea?this.confirm(mxResources.get("allChangesLost"),null,Z,mxResources.get("cancel"),mxResources.get("discardChanges")):Z();mxEvent.consume(fa)}}));if(c.isEditable()){var ca=this.editor.graph,W=null;k=mxUtils.bind(this,function(fa){this.showLibraryDialog(c.getTitle(),K,f,c,c.getMode());mxEvent.consume(fa)});var ma=mxUtils.bind(this,function(fa){c.setModified(!0);
-c.isAutosave()?(null!=W&&null!=W.parentNode&&W.parentNode.removeChild(W),W=da.cloneNode(!1),W.setAttribute("src",Editor.spinImage),W.setAttribute("title",mxResources.get("saving")),W.style.cursor="default",W.style.marginRight="2px",W.style.marginTop="-2px",O.insertBefore(W,O.firstChild),this.saveLibrary(c.getTitle(),f,c,c.getMode(),!0,!0,function(){null!=W&&null!=W.parentNode&&W.parentNode.removeChild(W)})):null==ea&&(ea=da.cloneNode(!1),ea.setAttribute("src",Editor.saveImage),ea.setAttribute("title",
+c=null!=c?c:k.firstChild.nextSibling.nextSibling;f=k.lastChild;var B=f.previousSibling;k.insertBefore(f,c);k.insertBefore(B,f)}};EditorUi.prototype.loadLibrary=function(c,f){var k=mxUtils.parseXml(c.getData());if("mxlibrary"==k.documentElement.nodeName){var B=JSON.parse(mxUtils.getTextContent(k.documentElement));this.libraryLoaded(c,B,k.documentElement.getAttribute("title"),f)}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(c){return""};EditorUi.prototype.showSidebar=
+function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.libraryLoaded=function(c,f,k,B){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());var z=null;if(c.constructor!=StorageLibrary||".scratchpad"!=c.title){null==this.openLibraries&&(this.openLibraries=[]);for(var C=0;C<this.openLibraries.length;C++)if(this.openLibraries[C].file.getHash()==c.getHash()){mxUtils.remove(this.openLibraries[C],
+this.openLibraries);break}z={file:c,images:f,title:k,expand:B};this.openLibraries.push(z)}else this.scratchpad=c;C=this.sidebar.palettes[c.getHash()];C=null!=C?C[C.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var I=null,L=mxUtils.bind(this,function(fa,Z){0==fa.length&&c.isEditable()?(null==I&&(I=document.createElement("div"),I.className="geDropTarget",mxUtils.write(I,mxResources.get("dragElementsHere"))),Z.appendChild(I)):this.addLibraryEntries(fa,Z)});null!=this.sidebar&&null!=
+f&&this.sidebar.addEntries(f);null==k&&(k=c.getTitle(),null!=k&&/(\.xml)$/i.test(k)&&(k=k.substring(0,k.lastIndexOf("."))));var K=this.sidebar.addPalette(c.getHash(),k,null!=B?B:!0,mxUtils.bind(this,function(fa){L(f,fa)}));null!=z&&(z.div=K);this.repositionLibrary(C,"L.scratchpad"!=c.getHash());B=K.parentNode.previousSibling;k=B.getAttribute("title");null!=k&&0<k.length&&".scratchpad"!=c.title&&B.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+k);var O=document.createElement("div");O.style.backgroundColor=
+"inherit";B.style.position="relative";var da=document.createElement("img");da.className="geAdaptiveAsset";da.setAttribute("src",Editor.crossImage);da.setAttribute("title",mxResources.get("close"));da.setAttribute("valign","absmiddle");da.setAttribute("border","0");da.style.position="relative";da.style.top="2px";da.style.width="14px";da.style.cursor="pointer";da.style.margin="0 3px";var ea=null;if(".scratchpad"!=c.title||this.closableScratchpad)O.appendChild(da),mxEvent.addListener(da,"click",mxUtils.bind(this,
+function(fa){if(!mxEvent.isConsumed(fa)){var Z=mxUtils.bind(this,function(){null!=z&&mxUtils.remove(z,this.openLibraries);this.closeLibrary(c)});null!=ea?this.confirm(mxResources.get("allChangesLost"),null,Z,mxResources.get("cancel"),mxResources.get("discardChanges")):Z();mxEvent.consume(fa)}}));if(c.isEditable()){var ca=this.editor.graph,V=null;k=mxUtils.bind(this,function(fa){this.showLibraryDialog(c.getTitle(),K,f,c,c.getMode());mxEvent.consume(fa)});var ma=mxUtils.bind(this,function(fa){c.setModified(!0);
+c.isAutosave()?(null!=V&&null!=V.parentNode&&V.parentNode.removeChild(V),V=da.cloneNode(!1),V.setAttribute("src",Editor.spinImage),V.setAttribute("title",mxResources.get("saving")),V.style.cursor="default",V.style.marginRight="2px",V.style.marginTop="-2px",O.insertBefore(V,O.firstChild),this.saveLibrary(c.getTitle(),f,c,c.getMode(),!0,!0,function(){null!=V&&null!=V.parentNode&&V.parentNode.removeChild(V)})):null==ea&&(ea=da.cloneNode(!1),ea.setAttribute("src",Editor.saveImage),ea.setAttribute("title",
mxResources.get("save")),O.insertBefore(ea,O.firstChild),mxEvent.addListener(ea,"click",mxUtils.bind(this,function(Z){this.saveLibrary(c.getTitle(),f,c,c.getMode(),c.constructor==LocalLibrary,!0,function(){null==ea||c.isModified()||(ea.parentNode.removeChild(ea),ea=null)});mxEvent.consume(Z)})))}),la=mxUtils.bind(this,function(fa,Z,l,u){fa=ca.cloneCells(mxUtils.sortCells(ca.model.getTopmostCells(fa)));for(var H=0;H<fa.length;H++){var U=ca.getCellGeometry(fa[H]);null!=U&&U.translate(-Z.x,-Z.y)}K.appendChild(this.sidebar.createVertexTemplateFromCells(fa,
Z.width,Z.height,u||"",!0,null,!1));fa=mxUtils.getXml(this.editor.graph.encodeCells(fa));Editor.defaultCompressed&&(fa=Graph.compress(fa));Z={xml:fa,w:Z.width,h:Z.height};null!=u&&(Z.title=u);f.push(Z);ma(l);null!=I&&null!=I.parentNode&&0<f.length&&(I.parentNode.removeChild(I),I=null)}),Y=mxUtils.bind(this,function(fa){if(ca.isSelectionEmpty())ca.getRubberband().isActive()?(ca.getRubberband().execute(fa),ca.getRubberband().reset()):this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),
mxResources.get("ok"));else{var Z=ca.getSelectionCells(),l=ca.view.getBounds(Z);if(null!=l&&0<l.width&&0<l.height){var u=ca.view.scale;l.x/=u;l.y/=u;l.width/=u;l.height/=u;l.x-=ca.view.translate.x;l.y-=ca.view.translate.y;la(Z,l)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(fa)});mxEvent.addGestureListeners(K,function(){},mxUtils.bind(this,function(fa){ca.isMouseDown&&null!=ca.panningManager&&null!=ca.graphHandler.first&&(ca.graphHandler.suspend(),
null!=ca.graphHandler.hint&&(ca.graphHandler.hint.style.visibility="hidden"),K.style.backgroundColor="light-dark(#fefefe, #000000)",K.style.cursor="copy",ca.panningManager.stop(),ca.autoScroll=!1,mxEvent.consume(fa))}),mxUtils.bind(this,function(fa){ca.isMouseDown&&null!=ca.panningManager&&null!=ca.graphHandler&&(K.style.backgroundColor="",K.style.cursor="default",this.sidebar.showTooltips=!0,ca.panningManager.stop(),ca.graphHandler.reset(),ca.isMouseDown=!1,ca.autoScroll=!0,Y(fa),mxEvent.consume(fa))}));
mxEvent.addListener(K,"mouseleave",mxUtils.bind(this,function(fa){ca.isMouseDown&&null!=ca.graphHandler.first&&(ca.graphHandler.resume(),null!=ca.graphHandler.hint&&(ca.graphHandler.hint.style.visibility="visible"),K.style.backgroundColor="",K.style.cursor="",ca.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(K,"dragover",mxUtils.bind(this,function(fa){K.style.backgroundColor="light-dark(#fefefe, #000000)";fa.dataTransfer.dropEffect="copy";K.style.cursor="copy";this.sidebar.hideTooltip();
-fa.stopPropagation();fa.preventDefault()})),mxEvent.addListener(K,"drop",mxUtils.bind(this,function(fa){K.style.cursor="";K.style.backgroundColor="";0<fa.dataTransfer.files.length&&this.importFiles(fa.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(Z,l,u,H,U,J,V,aa,ba){if(null!=Z&&"image/"==l.substring(0,6))Z="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(Z),Z=[new mxCell("",new mxGeometry(0,0,U,J),Z)],Z[0].vertex=
-!0,la(Z,new mxRectangle(0,0,U,J),fa,mxEvent.isAltDown(fa)?null:V.substring(0,V.lastIndexOf(".")).replace(/_/g," ")),null!=I&&null!=I.parentNode&&0<f.length&&(I.parentNode.removeChild(I),I=null);else{var ja=!1,oa=mxUtils.bind(this,function(qa,ra){null!=qa&&"application/pdf"==ra&&(ra=Editor.extractGraphModelFromPdf(qa),null!=ra&&0<ra.length&&(qa=ra));if(null!=qa)if(qa=mxUtils.parseXml(qa),"mxlibrary"==qa.documentElement.nodeName)try{var ua=JSON.parse(mxUtils.getTextContent(qa.documentElement));L(ua,
+fa.stopPropagation();fa.preventDefault()})),mxEvent.addListener(K,"drop",mxUtils.bind(this,function(fa){K.style.cursor="";K.style.backgroundColor="";0<fa.dataTransfer.files.length&&this.importFiles(fa.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(Z,l,u,H,U,J,W,aa,ba){if(null!=Z&&"image/"==l.substring(0,6))Z="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(Z),Z=[new mxCell("",new mxGeometry(0,0,U,J),Z)],Z[0].vertex=
+!0,la(Z,new mxRectangle(0,0,U,J),fa,mxEvent.isAltDown(fa)?null:W.substring(0,W.lastIndexOf(".")).replace(/_/g," ")),null!=I&&null!=I.parentNode&&0<f.length&&(I.parentNode.removeChild(I),I=null);else{var ja=!1,oa=mxUtils.bind(this,function(qa,ra){null!=qa&&"application/pdf"==ra&&(ra=Editor.extractGraphModelFromPdf(qa),null!=ra&&0<ra.length&&(qa=ra));if(null!=qa)if(qa=mxUtils.parseXml(qa),"mxlibrary"==qa.documentElement.nodeName)try{var ua=JSON.parse(mxUtils.getTextContent(qa.documentElement));L(ua,
K);f=f.concat(ua);ma(fa);this.spinner.stop();ja=!0}catch(La){}else if("mxfile"==qa.documentElement.nodeName)try{var za=qa.documentElement.getElementsByTagName("diagram");for(ua=0;ua<za.length;ua++){var Ba=this.stringToCells(Editor.getDiagramNodeXml(za[ua])),Ca=this.editor.graph.getBoundingBoxFromGeometry(Ba);null!=Ca&&la(Ba,new mxRectangle(0,0,Ca.width,Ca.height),fa)}ja=!0}catch(La){null!=window.console&&console.log("error in drop handler:",La)}ja||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));
-null!=I&&null!=I.parentNode&&0<f.length&&(I.parentNode.removeChild(I),I=null)});null!=ba&&null!=V&&EditorUi.isVisioFilename(V)?this.importVisio(ba,function(qa){oa(qa,"text/xml")},null,V):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(Z,V)&&null!=ba?this.isExternalDataComms()?this.parseFile(ba,mxUtils.bind(this,function(qa){4==qa.readyState&&(this.spinner.stop(),200<=qa.status&&299>=qa.status?oa(qa.responseText,"text/xml"):this.handleError({message:mxResources.get(413==qa.status?"drawingTooLarge":
+null!=I&&null!=I.parentNode&&0<f.length&&(I.parentNode.removeChild(I),I=null)});null!=ba&&null!=W&&EditorUi.isVisioFilename(W)?this.importVisio(ba,function(qa){oa(qa,"text/xml")},null,W):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(Z,W)&&null!=ba?this.isExternalDataComms()?this.parseFile(ba,mxUtils.bind(this,function(qa){4==qa.readyState&&(this.spinner.stop(),200<=qa.status&&299>=qa.status?oa(qa.responseText,"text/xml"):this.handleError({message:mxResources.get(413==qa.status?"drawingTooLarge":
"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):oa(Z,l)}}));fa.stopPropagation();fa.preventDefault()})),mxEvent.addListener(K,"dragleave",function(fa){K.style.cursor="";K.style.backgroundColor="";fa.stopPropagation();fa.preventDefault()}));da=da.cloneNode(!1);da.setAttribute("src",Editor.editImage);da.setAttribute("title",mxResources.get("edit"));O.insertBefore(da,O.firstChild);mxEvent.addListener(da,
-"click",k);k=da.cloneNode(!1);k.setAttribute("src",Editor.plusImage);k.setAttribute("title",mxResources.get("add"));O.insertBefore(k,O.firstChild);mxEvent.addListener(k,"click",Y);".scratchpad"==c.title&&(this.addSelectionToScratchpad=Y);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(k=this.createHelpIcon(EditorUi.scratchpadHelpLink),C=k.getElementsByTagName("img")[0],k.style.marginRight="1px",C.style.marginTop="-2px",C.style.opacity="",O.insertBefore(k,O.firstChild))}A.appendChild(O);
-this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,f){for(var k=0;k<c.length;k++)try{var A=c[k],z=A.data;if(null!=z){z="data:"==z.substring(0,5)?this.convertDataUri(z):z;var C="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==A.aspect&&(C+="aspect=fixed;");C=C+"image="+z+";";null!=A.style&&(C+=A.style);f.appendChild(this.sidebar.createVertexTemplate(C,A.w,A.h,"",A.title||"",!1,null,!0))}else if(null!=A.xml){var I=
-this.stringToCells("<"==A.xml.charAt(0)?A.xml:Graph.decompress(A.xml)),L=0==I.length?mxResources.get("drawingEmpty"):null!=A.title?A.title:"";f.appendChild(this.sidebar.createVertexTemplateFromCells(I,A.w,A.h,L,!0,null,!0))}}catch(K){L=null!=K.message?mxResources.get("error")+": "+K.message:String(K),C=this.sidebar.createVertexTemplateFromCells(null,A.w,A.h,L,!0,null,!0),f.appendChild(C)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};EditorUi.prototype.footerHeight=
+"click",k);k=da.cloneNode(!1);k.setAttribute("src",Editor.plusImage);k.setAttribute("title",mxResources.get("add"));O.insertBefore(k,O.firstChild);mxEvent.addListener(k,"click",Y);".scratchpad"==c.title&&(this.addSelectionToScratchpad=Y);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(k=this.createHelpIcon(EditorUi.scratchpadHelpLink),C=k.getElementsByTagName("img")[0],k.style.marginRight="1px",C.style.marginTop="-2px",C.style.opacity="",O.insertBefore(k,O.firstChild))}B.appendChild(O);
+this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,f){for(var k=0;k<c.length;k++)try{var B=c[k],z=B.data;if(null!=z){z="data:"==z.substring(0,5)?this.convertDataUri(z):z;var C="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==B.aspect&&(C+="aspect=fixed;");C=C+"image="+z+";";null!=B.style&&(C+=B.style);f.appendChild(this.sidebar.createVertexTemplate(C,B.w,B.h,"",B.title||"",!1,null,!0))}else if(null!=B.xml){var I=
+this.stringToCells("<"==B.xml.charAt(0)?B.xml:Graph.decompress(B.xml)),L=0==I.length?mxResources.get("drawingEmpty"):null!=B.title?B.title:"";f.appendChild(this.sidebar.createVertexTemplateFromCells(I,B.w,B.h,L,!0,null,!0))}}catch(K){L=null!=K.message?mxResources.get("error")+": "+K.message:String(K),C=this.sidebar.createVertexTemplateFromCells(null,B.w,B.h,L,!0,null,!0),f.appendChild(C)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};EditorUi.prototype.footerHeight=
0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(mxClient.link("stylesheet",STYLE_PATH+"/atlas.css"),"undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground="linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=
-41,EditorUi.prototype.toolbarHeight=38);"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(c,f,k,A,z,C,I){c=new ImageDialog(this,c,f,k,A,z,C,I);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,f,k,A,z,C){var I=localStorage.getItem(f);c=new TextareaDialog(this,
-c,null!=I?JSON.stringify(JSON.parse(I),null,2):"",mxUtils.bind(this,function(L){if(null!=L)try{if(null!=C&&C(L),L==I)this.hideDialog();else{if(0<L.length){var K=JSON.parse(L);localStorage.setItem(f,JSON.stringify(K))}else localStorage.removeItem(f);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(O){this.handleError(O)}}),null,mxResources.get("close"),null,null,null,!0,null,null,z,k,A);this.showDialog(c.container,660,480,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=
-function(c,f,k,A){c=null!=c?c:mxUtils.bind(this,function(z,C,I,L){C||(z=new ChangePageSetup(this,A?I:null,z),z.ignoreColor=!A,null!=L&&A&&(z.shadowVisible=L),this.editor.graph.model.execute(z))});c=new BackgroundImageDialog(this,c,f,k,A);this.showDialog(c.container,400,A?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,f,k,A,z){c=new LibraryDialog(this,c,f,k,A,z);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(C){C&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&
-this.showSplash()}));c.init()};var g=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var f=g.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(k){this.editor.graph.isSelectionEmpty()&&f.refresh()}));return f};EditorUi.prototype.handleError=function(c,f,k,A,z,C,I){var L=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},K=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&
+41,EditorUi.prototype.toolbarHeight=38);"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(c,f,k,B,z,C,I){c=new ImageDialog(this,c,f,k,B,z,C,I);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,f,k,B,z,C){var I=localStorage.getItem(f);c=new TextareaDialog(this,
+c,null!=I?JSON.stringify(JSON.parse(I),null,2):"",mxUtils.bind(this,function(L){if(null!=L)try{if(null!=C&&C(L),L==I)this.hideDialog();else{if(0<L.length){var K=JSON.parse(L);localStorage.setItem(f,JSON.stringify(K))}else localStorage.removeItem(f);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(O){this.handleError(O)}}),null,mxResources.get("close"),null,null,null,!0,null,null,z,k,B);this.showDialog(c.container,660,480,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=
+function(c,f,k,B){c=null!=c?c:mxUtils.bind(this,function(z,C,I,L){C||(z=new ChangePageSetup(this,B?I:null,z),z.ignoreColor=!B,null!=L&&B&&(z.shadowVisible=L),this.editor.graph.model.execute(z))});c=new BackgroundImageDialog(this,c,f,k,B);this.showDialog(c.container,400,B?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,f,k,B,z){c=new LibraryDialog(this,c,f,k,B,z);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(C){C&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&
+this.showSplash()}));c.init()};var g=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var f=g.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(k){this.editor.graph.isSelectionEmpty()&&f.refresh()}));return f};EditorUi.prototype.handleError=function(c,f,k,B,z,C,I){var L=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},K=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&
null!=c.message)try{I||EditorUi.logError("Caught: "+(""==c.message&&null!=c.name)?c.name:c.message,c.filename,c.lineNumber,c.columnNumber,c,"INFO"),"1"!=urlParams.test&&!I||null==window.console||console.error("EditorUi.handleError:",c)}catch(ca){}if(null!=K||null!=f){I=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var O=mxResources.get("ok"),da=null;f=null!=f?f:mxResources.get("error");if(null!=K){null!=K.retry&&(O=mxResources.get("cancel"),da=function(){L();K.retry()});if(404==K.code||
404==K.status||403==K.code){I=403==K.code?null!=K.message?mxUtils.htmlEntities(K.message,!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),!1):null!=z?z:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?" ("+this.drive.user.email+")":""),!1);var ea=null!=z?null:null!=C?C:window.location.hash;if(null!=ea&&("#G"==ea.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==ea.substring(0,45))&&(null!=c&&null!=c.error&&(null!=c.error.errors&&
-0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||404==K.code||404==K.status)){ea="#U"==ea.substring(0,2)?ea.substring(45,ea.lastIndexOf("%26ex")):ea.substring(2);this.showError(f,I,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+ea);null!=A&&A()}),da,mxResources.get("changeUser"),mxUtils.bind(this,function(){function ca(){Y.innerText=
-"";for(var fa=0;fa<W.length;fa++){var Z=document.createElement("option");mxUtils.write(Z,W[fa].displayName);Z.value=fa;Y.appendChild(Z);Z=document.createElement("option");Z.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(Z,"<"+W[fa].email+">");Z.setAttribute("disabled","disabled");Y.appendChild(Z)}Z=document.createElement("option");mxUtils.write(Z,mxResources.get("addAccount"));Z.value=W.length;Y.appendChild(Z)}var W=this.drive.getUsersList(),ma=document.createElement("div"),la=document.createElement("div");
-la.style.marginBottom="6px";mxUtils.write(la,mxResources.get("changeUser")+": ");ma.appendChild(la);var Y=document.createElement("select");Y.style.width="100%";ca();mxEvent.addListener(Y,"change",mxUtils.bind(this,function(){var fa=Y.value,Z=W.length!=fa;Z&&this.drive.setUser(W[fa]);this.drive.authorize(Z,mxUtils.bind(this,function(){Z||(W=this.drive.getUsersList(),ca())}),mxUtils.bind(this,function(l){this.handleError(l)}),!0)}));ma.appendChild(Y);ma=new CustomDialog(this,ma,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),
+0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||404==K.code||404==K.status)){ea="#U"==ea.substring(0,2)?ea.substring(45,ea.lastIndexOf("%26ex")):ea.substring(2);this.showError(f,I,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+ea);null!=B&&B()}),da,mxResources.get("changeUser"),mxUtils.bind(this,function(){function ca(){Y.innerText=
+"";for(var fa=0;fa<V.length;fa++){var Z=document.createElement("option");mxUtils.write(Z,V[fa].displayName);Z.value=fa;Y.appendChild(Z);Z=document.createElement("option");Z.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(Z,"<"+V[fa].email+">");Z.setAttribute("disabled","disabled");Y.appendChild(Z)}Z=document.createElement("option");mxUtils.write(Z,mxResources.get("addAccount"));Z.value=V.length;Y.appendChild(Z)}var V=this.drive.getUsersList(),ma=document.createElement("div"),la=document.createElement("div");
+la.style.marginBottom="6px";mxUtils.write(la,mxResources.get("changeUser")+": ");ma.appendChild(la);var Y=document.createElement("select");Y.style.width="100%";ca();mxEvent.addListener(Y,"change",mxUtils.bind(this,function(){var fa=Y.value,Z=V.length!=fa;Z&&this.drive.setUser(V[fa]);this.drive.authorize(Z,mxUtils.bind(this,function(){Z||(V=this.drive.getUsersList(),ca())}),mxUtils.bind(this,function(l){this.handleError(l)}),!0)}));ma.appendChild(Y);ma=new CustomDialog(this,ma,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),
!0)}));this.showDialog(ma.container,300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=k&&k()}),520,150);return}}null!=K.message?I=""==K.message&&null!=K.name?mxUtils.htmlEntities(K.name,!1):mxUtils.htmlEntities(K.message,!1):null!=K.response&&null!=K.response.error?I=mxUtils.htmlEntities(K.response.error,!1):"undefined"!==typeof window.App&&(K.code==App.ERROR_TIMEOUT?I=mxUtils.htmlEntities(mxResources.get("timeout"),!1):K.code==App.ERROR_BUSY?I=mxUtils.htmlEntities(mxResources.get("busy"),
!1):"string"===typeof K&&0<K.length&&(I=mxUtils.htmlEntities(K,!1)))}z=c=null;null!=K&&null!=K.helpLink?(c=mxResources.get("help"),z=mxUtils.bind(this,function(){return this.editor.graph.openLink(K.helpLink)})):null!=K&&null!=K.ownerEmail?(c=mxResources.get("contactOwner"),I+=mxUtils.htmlEntities(" ("+c+": "+K.ownerEmail+")",!1),z=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(K.ownerEmail))})):null!=K&&null!=K.alternateAction&&(c=K.alternateAction.label,z=K.alternateAction.funct);
-this.showError(f,I,O,k,da,null,null,c,z,null,null,null,A?k:null)}else null!=k&&k()};EditorUi.prototype.alert=function(c,f,k){c=new ErrorDialog(this,null,c,mxResources.get("ok"),f);this.showDialog(c.container,k||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,f,k,A,z,C){c=null!=c?c:"";var I=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},L=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){I();null!=f&&f()},function(){I();
-null!=k&&k()},A,z,null,null,null,null,L);this.showDialog(c.container,340,46+L,!0,C);c.init()};EditorUi.prototype.showBanner=function(c,f,k,A,z,C,I,L,K){var O=!1;if(!(this.bannerShowing||this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){C=null!=C?C:"bottom:10px;left:50%;";I=null!=I?I:"translate(-50%,120%)";L=null!=L?L:"translate(-50%,0%)";var da=z?500:1E3;O=z?"padding:4px;border-radius:6px;font-size:11px;height:12px;font-weight:normal;":"font-size:16px;padding:18px 34px 12px 20px;font-weight:bold;";
+this.showError(f,I,O,k,da,null,null,c,z,null,null,null,B?k:null)}else null!=k&&k()};EditorUi.prototype.alert=function(c,f,k){c=new ErrorDialog(this,null,c,mxResources.get("ok"),f);this.showDialog(c.container,k||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,f,k,B,z,C){c=null!=c?c:"";var I=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},L=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){I();null!=f&&f()},function(){I();
+null!=k&&k()},B,z,null,null,null,null,L);this.showDialog(c.container,340,46+L,!0,C);c.init()};EditorUi.prototype.showBanner=function(c,f,k,B,z,C,I,L,K){var O=!1;if(!(this.bannerShowing||this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){C=null!=C?C:"bottom:10px;left:50%;";I=null!=I?I:"translate(-50%,120%)";L=null!=L?L:"translate(-50%,0%)";var da=z?500:1E3;O=z?"padding:4px;border-radius:6px;font-size:11px;height:12px;font-weight:normal;":"font-size:16px;padding:18px 34px 12px 20px;font-weight:bold;";
var ea=document.createElement("div");ea.style.cssText="position:absolute;"+C+";max-width:90%;white-space:nowrap;cursor:pointer;z-index:"+mxPopupMenu.prototype.zIndex+";"+O;mxUtils.setPrefixedStyle(ea.style,"transform",I);mxUtils.setPrefixedStyle(ea.style,"transition","all "+da+"ms ease");ea.className="geBtn gePrimaryBtn"+(z?" geSmallBanner":"");Editor.isDarkMode()||mxUtils.setPrefixedStyle(ea.style,"box-shadow","1px 1px 2px 0px #ddd");null!=K&&mxUtils.setPrefixedStyle(ea.style,"transform-origin",
-K);if(!z){var ca=document.createElement("img");ca.setAttribute("src",IMAGE_PATH+"/logo.png");ca.setAttribute("border","0");ca.setAttribute("align","absmiddle");ca.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;";ea.appendChild(ca);ca=document.createElement("img");ca.setAttribute("src",Dialog.prototype.closeImage);ca.setAttribute("title",mxResources.get(A?"doNotShowAgain":"close"));ca.setAttribute("border","0");ca.style.cssText=(z?"right:6px;top:9px;":"right:10px;top:12px;")+
-"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;";ea.appendChild(ca)}mxUtils.write(ea,f);document.body.appendChild(ea);this.bannerShowing=!0;f=document.createElement("div");f.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var W=document.createElement("input");W.setAttribute("type","checkbox");W.setAttribute("id","geDoNotShowAgainCheckbox");W.style.marginRight="6px";if(!A){f.appendChild(W);
-var ma=document.createElement("label");ma.setAttribute("for","geDoNotShowAgainCheckbox");mxUtils.write(ma,mxResources.get("doNotShowAgain"));f.appendChild(ma);ea.style.paddingBottom=z?"16px":"30px";ea.appendChild(f)}var la=mxUtils.bind(this,function(){null!=ea.parentNode&&(ea.parentNode.removeChild(ea),this.bannerShowing=!1,W.checked||A)&&(this["hideBanner"+c]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=ca&&mxEvent.addListener(ca,
-"click",mxUtils.bind(this,function(fa){mxEvent.consume(fa);la()}));var Y=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(ea.style,"transform",I);window.setTimeout(mxUtils.bind(this,function(){la()}),da)});mxEvent.addListener(ea,"click",mxUtils.bind(this,function(fa){var Z=mxEvent.getSource(fa);Z!=W&&Z!=ma?(null!=k&&k(),la(),mxEvent.consume(fa)):Y()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(ea.style,"transform",L)}),da/2);window.setTimeout(Y,z?4E3:3E4);O=!0}return O};
-EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(c,f,k,A){c=c.toDataURL("image/"+k);if(null!=c&&6<c.length)null!=f&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(f))),0<A&&(c=Editor.writeGraphModelToPng(c,"pHYs","dpi",A));else throw{message:mxResources.get("unknownError")};
-return c};EditorUi.prototype.saveCanvas=function(c,f,k,A,z){var C="jpeg"==k?"jpg":k;A=this.getBaseFilename(A)+(null!=f?".drawio":"")+"."+C;c=this.createImageDataUri(c,f,k,z);this.saveData(A,C,c.substring(c.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||
-mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,f){c=new TextareaDialog(this,c,f,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,f,k,A,z,C){"text/xml"!=k||/(\.drawio)$/i.test(f)||/(\.xml)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.html)$/i.test(f)||(f=f+"."+(null!=C?C:"drawio"));if(window.Blob&&navigator.msSaveOrOpenBlob)c=A?this.base64ToBlob(c,
-k):new Blob([c],{type:k}),navigator.msSaveOrOpenBlob(c,f);else if(mxClient.IS_IE)k=window.open("about:blank","_blank"),null==k?mxUtils.popup(c,!0):(k.document.write(c),k.document.close(),k.document.execCommand("SaveAs",!0,f),k.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==k||"image/"!=k.substring(0,6)?this.showTextDialog(f+":",c):this.openInNewWindow(c,k,A);else{var I=document.createElement("a");C=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&
-"undefined"!==typeof I.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var L=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);C=65==(L?parseInt(L[2],10):!1)?!1:C}if(C||this.isOffline()){I.href=URL.createObjectURL(A?this.base64ToBlob(c,k):new Blob([c],{type:k}));C?I.download=f:I.setAttribute("target","_blank");document.body.appendChild(I);try{window.setTimeout(function(){URL.revokeObjectURL(I.href)},2E4),I.click(),I.parentNode.removeChild(I)}catch(K){}}else this.createEchoRequest(c,f,k,
-A,z).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,f,k,A,z,C){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,c+(null!=k?"&mime="+k:"")+(null!=z?"&format="+z:"")+(null!=C?"&base64="+C:"")+(null!=f?"&filename="+encodeURIComponent(f):"")+(A?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(c,f,k,A,z,C,I,L){C=null!=C?C:!1;I=null!=I?I:"vsdx"!=z&&(!mxClient.IS_IOS||!navigator.standalone);var K=mxUtils.bind(this,function(da,ea,ca,W){try{if("_blank"==
-ea)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(c,k,A);else if(null!=k&&"text/html"==k.substring(0,9)){var ma=new EmbedDialog(this,c);this.showDialog(ma.container,450,240,!0,!0);ma.init()}else{var la=window.open("about:blank");null==la?mxUtils.popup(c,!0):(la.document.write("<pre>"+mxUtils.htmlEntities(c,!1)+"</pre>"),la.document.close())}else if(ea==App.MODE_DEVICE||"download"==ea)this.doSaveLocalFile(c,da,k,A,null,L);else if(null!=da&&0<da.length){var Y=mxUtils.bind(this,function(fa){try{this.exportFile(c,
-da,k,A,ea,fa)}catch(Z){this.handleError(Z)}});null!=W?Y(W):this.pickFolder(ea,Y)}}catch(fa){this.handleError(fa)}});z=[];C||z.push(App.MODE_BROWSER);I||z.push("_blank");var O=new SaveDialog(this,f,mxUtils.bind(this,function(da,ea,ca){K(da.value,ea,da,ca);this.hideDialog(null,null,O.container)}),z,c,k,A);this.showDialog(O.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));O.init()};EditorUi.prototype.openInNewWindow=function(c,f,k){var A=window.open("about:blank");if(null==A||
-null==A.document)mxUtils.popup(c,!0);else{var z="background: light-dark(rgb(255, 255, 255), rgb(18, 18, 18))";if("image/svg+xml"==f){var C=mxUtils.parseXml(c).documentElement.style.backgroundColor;""!=C&&(z="background: "+C+";")}z='<html><head><meta charset="UTF-8"></head><body style="color-scheme: light dark; '+z+'">';"image/svg+xml"!=f||mxClient.IS_SVG?"image/svg+xml"!=f||k?(C=k?c:btoa(unescape(encodeURIComponent(c))),A.document.write(z+'<img style="max-width:100%;" src="data:'+f+";base64,"+C+'"/></body></html>')):
-A.document.write(z+c+"</body></html>"):A.document.write(z+"<pre>"+mxUtils.htmlEntities(c,!1)+"</pre></body></html>");A.document.close()}};var m=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(c){if(null!=urlParams.tags){this.tagsDialog=this.tagsComponent=
-null;var f=c(mxUtils.bind(this,function(A){null==this.tagsComponent&&(this.tagsComponent=this.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return null!=this.tagsDialog}),!0),this.tagsComponent.div.getElementsByTagName("div")[0].style.position="",mxUtils.setPrefixedStyle(this.tagsComponent.div.style,"borderRadius","5px"),this.tagsComponent.div.className="geScrollable",this.tagsComponent.div.style.maxHeight="160px",this.tagsComponent.div.style.maxWidth="120px",this.tagsComponent.div.style.padding=
+K);if(!z){var ca=document.createElement("img");ca.setAttribute("src",IMAGE_PATH+"/logo.png");ca.setAttribute("border","0");ca.setAttribute("align","absmiddle");ca.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;";ea.appendChild(ca);ca=document.createElement("img");ca.setAttribute("src",Dialog.prototype.closeImage);ca.setAttribute("title",mxResources.get(B?"doNotShowAgain":"close"));ca.setAttribute("border","0");ca.style.cssText=(z?"right:6px;top:9px;":"right:10px;top:12px;")+
+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;";ea.appendChild(ca)}mxUtils.write(ea,f);document.body.appendChild(ea);this.bannerShowing=!0;f=document.createElement("div");f.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var V=document.createElement("input");V.setAttribute("type","checkbox");V.setAttribute("id","geDoNotShowAgainCheckbox");V.style.marginRight="6px";if(!B){f.appendChild(V);
+var ma=document.createElement("label");ma.setAttribute("for","geDoNotShowAgainCheckbox");mxUtils.write(ma,mxResources.get("doNotShowAgain"));f.appendChild(ma);ea.style.paddingBottom=z?"16px":"30px";ea.appendChild(f)}var la=mxUtils.bind(this,function(){null!=ea.parentNode&&(ea.parentNode.removeChild(ea),this.bannerShowing=!1,V.checked||B)&&(this["hideBanner"+c]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=ca&&mxEvent.addListener(ca,
+"click",mxUtils.bind(this,function(fa){mxEvent.consume(fa);la()}));var Y=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(ea.style,"transform",I);window.setTimeout(mxUtils.bind(this,function(){la()}),da)});mxEvent.addListener(ea,"click",mxUtils.bind(this,function(fa){var Z=mxEvent.getSource(fa);Z!=V&&Z!=ma?(null!=k&&k(),la(),mxEvent.consume(fa)):Y()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(ea.style,"transform",L)}),da/2);window.setTimeout(Y,z?4E3:3E4);O=!0}return O};
+EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(c,f,k,B){c=c.toDataURL("image/"+k);if(null!=c&&6<c.length)null!=f&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(f))),0<B&&(c=Editor.writeGraphModelToPng(c,"pHYs","dpi",B));else throw{message:mxResources.get("unknownError")};
+return c};EditorUi.prototype.saveCanvas=function(c,f,k,B,z){var C="jpeg"==k?"jpg":k;B=this.getBaseFilename(B)+(null!=f?".drawio":"")+"."+C;c=this.createImageDataUri(c,f,k,z);this.saveData(B,C,c.substring(c.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||
+mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,f){c=new TextareaDialog(this,c,f,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,f,k,B,z,C){"text/xml"!=k||/(\.drawio)$/i.test(f)||/(\.xml)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.html)$/i.test(f)||(f=f+"."+(null!=C?C:"drawio"));if(window.Blob&&navigator.msSaveOrOpenBlob)c=B?this.base64ToBlob(c,
+k):new Blob([c],{type:k}),navigator.msSaveOrOpenBlob(c,f);else if(mxClient.IS_IE)k=window.open("about:blank","_blank"),null==k?mxUtils.popup(c,!0):(k.document.write(c),k.document.close(),k.document.execCommand("SaveAs",!0,f),k.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==k||"image/"!=k.substring(0,6)?this.showTextDialog(f+":",c):this.openInNewWindow(c,k,B);else{var I=document.createElement("a");C=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&
+"undefined"!==typeof I.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var L=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);C=65==(L?parseInt(L[2],10):!1)?!1:C}if(C||this.isOffline()){I.href=URL.createObjectURL(B?this.base64ToBlob(c,k):new Blob([c],{type:k}));C?I.download=f:I.setAttribute("target","_blank");document.body.appendChild(I);try{window.setTimeout(function(){URL.revokeObjectURL(I.href)},2E4),I.click(),I.parentNode.removeChild(I)}catch(K){}}else this.createEchoRequest(c,f,k,
+B,z).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,f,k,B,z,C){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,c+(null!=k?"&mime="+k:"")+(null!=z?"&format="+z:"")+(null!=C?"&base64="+C:"")+(null!=f?"&filename="+encodeURIComponent(f):"")+(B?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(c,f,k,B,z,C,I,L){C=null!=C?C:!1;I=null!=I?I:"vsdx"!=z&&(!mxClient.IS_IOS||!navigator.standalone);var K=mxUtils.bind(this,function(da,ea,ca,V){try{if("_blank"==
+ea)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(c,k,B);else if(null!=k&&"text/html"==k.substring(0,9)){var ma=new EmbedDialog(this,c);this.showDialog(ma.container,450,240,!0,!0);ma.init()}else{var la=window.open("about:blank");null==la?mxUtils.popup(c,!0):(la.document.write("<pre>"+mxUtils.htmlEntities(c,!1)+"</pre>"),la.document.close())}else if(ea==App.MODE_DEVICE||"download"==ea)this.doSaveLocalFile(c,da,k,B,null,L);else if(null!=da&&0<da.length){var Y=mxUtils.bind(this,function(fa){try{this.exportFile(c,
+da,k,B,ea,fa)}catch(Z){this.handleError(Z)}});null!=V?Y(V):this.pickFolder(ea,Y)}}catch(fa){this.handleError(fa)}});z=[];C||z.push(App.MODE_BROWSER);I||z.push("_blank");var O=new SaveDialog(this,f,mxUtils.bind(this,function(da,ea,ca){K(da.value,ea,da,ca);this.hideDialog(null,null,O.container)}),z,c,k,B);this.showDialog(O.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));O.init()};EditorUi.prototype.openInNewWindow=function(c,f,k){var B=window.open("about:blank");if(null==B||
+null==B.document)mxUtils.popup(c,!0);else{var z="background: light-dark(rgb(255, 255, 255), rgb(18, 18, 18))";if("image/svg+xml"==f){var C=mxUtils.parseXml(c).documentElement.style.backgroundColor;""!=C&&(z="background: "+C+";")}z='<html><head><meta charset="UTF-8"></head><body style="color-scheme: light dark; '+z+'">';"image/svg+xml"!=f||mxClient.IS_SVG?"image/svg+xml"!=f||k?(C=k?c:btoa(unescape(encodeURIComponent(c))),B.document.write(z+'<img style="max-width:100%;" src="data:'+f+";base64,"+C+'"/></body></html>')):
+B.document.write(z+c+"</body></html>"):B.document.write(z+"<pre>"+mxUtils.htmlEntities(c,!1)+"</pre></body></html>");B.document.close()}};var m=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(c){if(null!=urlParams.tags){this.tagsDialog=this.tagsComponent=
+null;var f=c(mxUtils.bind(this,function(B){null==this.tagsComponent&&(this.tagsComponent=this.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return null!=this.tagsDialog}),!0),this.tagsComponent.div.getElementsByTagName("div")[0].style.position="",mxUtils.setPrefixedStyle(this.tagsComponent.div.style,"borderRadius","5px"),this.tagsComponent.div.className="geScrollable",this.tagsComponent.div.style.maxHeight="160px",this.tagsComponent.div.style.maxWidth="120px",this.tagsComponent.div.style.padding=
"4px",this.tagsComponent.div.style.overflow="auto",this.tagsComponent.div.style.height="auto",this.tagsComponent.div.style.position="fixed",this.tagsComponent.div.style.fontFamily=Editor.defaultHtmlFont,mxClient.IS_IE||mxClient.IS_IE11?(this.tagsComponent.div.style.backgroundColor="#ffffff",this.tagsComponent.div.style.border="2px solid black",this.tagsComponent.div.style.color="#000000"):(this.tagsComponent.div.style.backgroundColor="#000000",this.tagsComponent.div.style.color="#ffffff",mxUtils.setOpacity(this.tagsComponent.div,
80)));if(null!=this.tagsDialog)this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null;else{this.tagsDialog=this.tagsComponent.div;mxEvent.addListener(this.tagsDialog,"mouseleave",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));var z=f.getBoundingClientRect();this.tagsDialog.style.left=z.left+"px";this.tagsDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+
-4+"px";z=mxUtils.getCurrentStyle(this.editor.graph.container);this.tagsDialog.style.zIndex=z.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(A)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var A=this.editor.graph.getAllTags();f.style.display=0<A.length?"":"none"}))}m.apply(this,arguments);this.editor.addListener("tagsDialogShown",
+4+"px";z=mxUtils.getCurrentStyle(this.editor.graph.container);this.tagsDialog.style.zIndex=z.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(B)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var B=this.editor.graph.getAllTags();f.style.display=0<B.length?"":"none"}))}m.apply(this,arguments);this.editor.addListener("tagsDialogShown",
mxUtils.bind(this,function(){null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));this.editor.addListener("layersDialogShown",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));this.editor.addListener("pageSelected",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&
(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));mxEvent.addListener(this.editor.graph.container,"click",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));if(this.isExportToCanvas()&&this.isChromelessImageExportEnabled()){this.exportDialog=null;var k=c(mxUtils.bind(this,
-function(A){var z=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",z);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)z.apply(this);else{this.exportDialog=document.createElement("div");var C=k.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign="center";
+function(B){var z=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",z);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)z.apply(this);else{this.exportDialog=document.createElement("div");var C=k.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign="center";
this.exportDialog.style.fontFamily=Editor.defaultHtmlFont;this.exportDialog.style.backgroundColor="#000000";this.exportDialog.style.width="50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding="4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,80);this.exportDialog.style.left=C.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";C=mxUtils.getCurrentStyle(this.editor.graph.container);
this.exportDialog.style.zIndex=C.zIndex;var I=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});I.spin(this.exportDialog);document.body.appendChild(this.exportDialog);mxEvent.addListener(this.editor.graph.container,"click",z);this.editor.exportToCanvas(mxUtils.bind(this,function(L){I.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding=
"10px";var K=this.createImageDataUri(L,null,"png");L=document.createElement("img");L.style.maxWidth="140px";L.style.maxHeight="140px";L.style.cursor="pointer";L.style.backgroundColor="white";L.setAttribute("title",mxResources.get("openInNewWindow"));L.setAttribute("border","0");L.setAttribute("src",K);this.exportDialog.appendChild(L);mxEvent.addListener(L,"click",mxUtils.bind(this,function(){this.openInNewWindow(K.substring(K.indexOf(",")+1),"image/png",!0);z.apply(this,arguments)}))}),null,this.thumbImageCache,
-null,mxUtils.bind(this,function(L){I.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(L)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(A)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,f,k,A,z){this.isLocalFileSave()?this.saveLocalFile(k,c,A,z,f):this.saveRequest(c,f,mxUtils.bind(this,function(C,I){return this.createEchoRequest(k,
-C,A,z,f,I)}),k,z,A)};EditorUi.prototype.saveRequest=function(c,f,k,A,z,C,I){I=null!=I?I:!mxClient.IS_IOS||!navigator.standalone;var L=mxUtils.bind(this,function(O,da,ea,ca){if("_blank"==da||null!=O&&0<O.length){var W=k("_blank"==da?null:O,da==App.MODE_DEVICE||"download"==da||null==da||"_blank"==da?"0":"1");null!=W&&(da==App.MODE_DEVICE||"download"==da||"_blank"==da?W.simulate(document,"_blank"):(ea=mxUtils.bind(this,function(ma){C=null!=C?C:"pdf"==f?"application/pdf":"image/"+f;if(null!=A)try{this.exportFile(A,
-O,C,!0,da,ma)}catch(la){this.handleError(la)}else this.spinner.spin(document.body,mxResources.get("saving"))&&W.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=W.getStatus()&&299>=W.getStatus())try{this.exportFile(W.getText(),O,C,!0,da,ma)}catch(la){this.handleError(la)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(la){this.spinner.stop();this.handleError(la)}))}),null!=ca?ea(ca):this.pickFolder(da,ea)))}});z=[App.MODE_BROWSER];I||z.push("_blank");
-var K=new SaveDialog(this,c,mxUtils.bind(this,function(O,da,ea){L(O.value,da,O,ea);this.hideDialog(null,null,K.container)}),z,null,"application/pdf");this.showDialog(K.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));K.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,f,k,A,z,C){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=
-function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,f,k){f(null)};EditorUi.prototype.exportSvg=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(J){Editor.addRetryToError(J,mxUtils.bind(this,function(){this.exportSvg(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W)}));this.handleError(J)})))try{var ma=this.editor.graph.isSelectionEmpty();k=null!=k?k:ma;var la=f?null:this.editor.graph.background;la==mxConstants.NONE&&
-(la=null);null==la&&0==f&&(la=this.editor.graph.shapeBackgroundColor);var Y=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var fa=this.editor.graph.createSvgImageExport(z),Z=this.editor.graph.getSvg(la,c,I,L,null,k,null,fa,"blank"==O?"_blank":"self"==O?"_top":null,null,!ca,da,ea);this.editor.graph.addForeignObjectWarning=Y;A&&this.editor.graph.addSvgShadow(Z);var l=this.getBaseFilename()+(z?".drawio":"")+".svg";W=null!=
-W?W:mxUtils.bind(this,function(J){this.isLocalFileSave()||J.length<=MAX_REQUEST_SIZE?this.saveData(l,"svg",J,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(J)}))});var u=mxUtils.bind(this,function(J){this.spinner.stop();z&&J.setAttribute("content",this.getFileData(!0,null,null,null,k,K,null,null,null,null,null,c,I));W(Graph.xmlDeclaration+"\n"+(z?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+
+null,mxUtils.bind(this,function(L){I.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(L)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(B)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,f,k,B,z){this.isLocalFileSave()?this.saveLocalFile(k,c,B,z,f):this.saveRequest(c,f,mxUtils.bind(this,function(C,I){return this.createEchoRequest(k,
+C,B,z,f,I)}),k,z,B)};EditorUi.prototype.saveRequest=function(c,f,k,B,z,C,I){I=null!=I?I:!mxClient.IS_IOS||!navigator.standalone;var L=mxUtils.bind(this,function(O,da,ea,ca){if("_blank"==da||null!=O&&0<O.length){var V=k("_blank"==da?null:O,da==App.MODE_DEVICE||"download"==da||null==da||"_blank"==da?"0":"1");null!=V&&(da==App.MODE_DEVICE||"download"==da||"_blank"==da?V.simulate(document,"_blank"):(ea=mxUtils.bind(this,function(ma){C=null!=C?C:"pdf"==f?"application/pdf":"image/"+f;if(null!=B)try{this.exportFile(B,
+O,C,!0,da,ma)}catch(la){this.handleError(la)}else this.spinner.spin(document.body,mxResources.get("saving"))&&V.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=V.getStatus()&&299>=V.getStatus())try{this.exportFile(V.getText(),O,C,!0,da,ma)}catch(la){this.handleError(la)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(la){this.spinner.stop();this.handleError(la)}))}),null!=ca?ea(ca):this.pickFolder(da,ea)))}});z=[App.MODE_BROWSER];I||z.push("_blank");
+var K=new SaveDialog(this,c,mxUtils.bind(this,function(O,da,ea){L(O.value,da,O,ea);this.hideDialog(null,null,K.container)}),z,null,"application/pdf");this.showDialog(K.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));K.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,f,k,B,z,C){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=
+function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,f,k){f(null)};EditorUi.prototype.exportSvg=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(J){Editor.addRetryToError(J,mxUtils.bind(this,function(){this.exportSvg(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V)}));this.handleError(J)})))try{var ma=this.editor.graph.isSelectionEmpty();k=null!=k?k:ma;var la=f?null:this.editor.graph.background;la==mxConstants.NONE&&
+(la=null);null==la&&0==f&&(la=this.editor.graph.shapeBackgroundColor);var Y=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var fa=this.editor.graph.createSvgImageExport(z),Z=this.editor.graph.getSvg(la,c,I,L,null,k,null,fa,"blank"==O?"_blank":"self"==O?"_top":null,null,!ca,da,ea);this.editor.graph.addForeignObjectWarning=Y;B&&this.editor.graph.addSvgShadow(Z);var l=this.getBaseFilename()+(z?".drawio":"")+".svg";V=null!=
+V?V:mxUtils.bind(this,function(J){this.isLocalFileSave()||J.length<=MAX_REQUEST_SIZE?this.saveData(l,"svg",J,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(J)}))});var u=mxUtils.bind(this,function(J){this.spinner.stop();z&&J.setAttribute("content",this.getFileData(!0,null,null,null,k,K,null,null,null,null,null,c,I));V(Graph.xmlDeclaration+"\n"+(z?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+
mxUtils.getXml(J))});this.editor.graph.mathEnabled&&this.editor.addMathCss(Z);var H=mxUtils.bind(this,function(J){Editor.replaceSvgDataUris&&C&&EditorUi.embedSvgImages(J);Editor.foreignObjectImages&&ca?this.replaceAlternateContent(J,da,u):u(J)}),U=mxUtils.bind(this,function(J){C&&!this.isOffline()&&this.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(J,H,this.thumbImageCache)):H(J)});ca?this.embedFonts(Z,U):(this.editor.addFontCss(Z),U(Z))}catch(J){this.handleError(J)}};
-EditorUi.prototype.replaceAlternateContent=function(c,f,k){function A(ea,ca,W,ma,la){var Y=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");Y.setAttribute("x",ca);Y.setAttribute("y",W+.5);Y.setAttribute("width",ma.width);Y.setAttribute("height",ma.height);null==Y.setAttributeNS?Y.setAttribute("xlink:href",la):Y.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",la);ea.replaceChild(Y,ea.lastChild);L()}function z(){if(I<da.length)da[I++](z)}var C="";f=c.getElementsByTagName("style");
-for(var I=0;I<f.length;I++)C+=f[I].innerHTML;f=c.getElementsByTagName("switch");counter=f.length;var L=mxUtils.bind(this,function(){counter--;0==counter&&k(c)}),K={},O={},da=[];for(I=0;I<f.length;I++)mxUtils.bind(this,function(ea){var ca=ea.getElementsByTagName("div");if(0<ca.length)try{var W=ca[0].cloneNode(!0),ma=parseInt(W.style.marginLeft),la=parseInt(W.style.paddingTop),Y=W.getElementsByTagName("div")[1],fa=ca=!1,Z=W.style.alignItems,l=W.style.justifyContent;if(null!=W.style.writingMode){var u=
-W.style.writingMode;fa="vertical-"==u.substring(0,9);ca="-rl"==u.substring(u.length-3)}var H=!fa&&"1px"==W.style.width||fa&&"1px"==W.style.height;if(!fa&&"1px"==W.style.height||fa&&"1px"==W.style.width)W.style.alignItems=fa&&ca?"unsafe flex-end":"unsafe flex-start";H&&(W.style.justifyContent="unsafe flex-start");W.style.paddingTop="";W.style.marginLeft="";var U=W.outerHTML,J=K[U];null==J&&(W.style.position="absolute",W.style.visibility="hidden",document.body.appendChild(W),u=1,u="1px"==W.style.width?
-Y.offsetWidth:parseInt(W.style.width),H=1,H="1px"==W.style.height?Y.offsetHeight:parseInt(W.style.height),document.body.removeChild(W),J=new mxRectangle(ma,la,u,H),K[U]=J);"1px"==W.style.height&&("unsafe center"==Z?la-=J.height/2:"unsafe flex-end"==Z&&(la-=J.height));if("1px"==W.style.width)if(!fa&&"unsafe center"==l||fa&&"unsafe center"==Z)ma-=J.width/2;else if(!fa&&"unsafe flex-end"==l||fa&&(!ca&&"unsafe flex-end"==Z||ca&&"unsafe flex-start"==Z))ma-=J.width;J=new mxRectangle(ma,la,J.width,J.height+
-parseInt(Y.style.fontSize)/4);da.push(mxUtils.bind(this,function(V){var aa=O[U];null==aa?Graph.htmlToPng(U,J.width,J.height,mxUtils.bind(this,function(ba){A(ea,ma,la,J,ba);O[U]=ba;V()}),C):(A(ea,ma,la,J,aa),V())}))}catch(V){L()}else L()})(f[I]);0==counter&&k(c);I=0;z()};EditorUi.prototype.addRadiobox=function(c,f,k,A,z,C,I){return this.addCheckbox(c,k,A,z,C,I,!0,f)};EditorUi.prototype.addCheckbox=function(c,f,k,A,z,C,I,L){C=null!=C?C:!0;var K=document.createElement("input");K.style.marginRight="8px";
-K.style.marginTop="16px";K.setAttribute("type",I?"radio":"checkbox");I="geCheckbox-"+Editor.guid();K.id=I;null!=L&&K.setAttribute("name",L);k&&(K.setAttribute("checked","checked"),K.defaultChecked=!0);A&&K.setAttribute("disabled","disabled");C&&(c.appendChild(K),k=document.createElement("label"),mxUtils.write(k,f),k.setAttribute("for",I),c.appendChild(k),z||mxUtils.br(c));return K};EditorUi.prototype.addEditButton=function(c,f){var k=this.addCheckbox(c,mxResources.get("edit")+":",!0,null,!0);k.style.marginLeft=
-"24px";var A=this.getCurrentFile(),z="";null!=A&&A.getMode()!=App.MODE_DEVICE&&A.getMode()!=App.MODE_BROWSER&&(z=window.location.href);var C=document.createElement("select");C.style.maxWidth="200px";C.style.width="auto";C.style.marginLeft="8px";C.style.marginRight="10px";C.className="geBtn";A=document.createElement("option");A.setAttribute("value","blank");mxUtils.write(A,mxResources.get("makeCopy"));C.appendChild(A);var I=document.createElement("option");I.setAttribute("value","custom");mxUtils.write(I,
+EditorUi.prototype.replaceAlternateContent=function(c,f,k){function B(ea,ca,V,ma,la){var Y=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");Y.setAttribute("x",ca);Y.setAttribute("y",V+.5);Y.setAttribute("width",ma.width);Y.setAttribute("height",ma.height);null==Y.setAttributeNS?Y.setAttribute("xlink:href",la):Y.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",la);ea.replaceChild(Y,ea.lastChild);L()}function z(){if(I<da.length)da[I++](z)}var C="";f=c.getElementsByTagName("style");
+for(var I=0;I<f.length;I++)C+=f[I].innerHTML;f=c.getElementsByTagName("switch");counter=f.length;var L=mxUtils.bind(this,function(){counter--;0==counter&&k(c)}),K={},O={},da=[];for(I=0;I<f.length;I++)mxUtils.bind(this,function(ea){var ca=ea.getElementsByTagName("div");if(0<ca.length)try{var V=ca[0].cloneNode(!0),ma=parseInt(V.style.marginLeft),la=parseInt(V.style.paddingTop),Y=V.getElementsByTagName("div")[1],fa=ca=!1,Z=V.style.alignItems,l=V.style.justifyContent;if(null!=V.style.writingMode){var u=
+V.style.writingMode;fa="vertical-"==u.substring(0,9);ca="-rl"==u.substring(u.length-3)}var H=!fa&&"1px"==V.style.width||fa&&"1px"==V.style.height;if(!fa&&"1px"==V.style.height||fa&&"1px"==V.style.width)V.style.alignItems=fa&&ca?"unsafe flex-end":"unsafe flex-start";H&&(V.style.justifyContent="unsafe flex-start");V.style.paddingTop="";V.style.marginLeft="";var U=V.outerHTML,J=K[U];null==J&&(V.style.position="absolute",V.style.visibility="hidden",document.body.appendChild(V),u=1,u="1px"==V.style.width?
+Y.offsetWidth:parseInt(V.style.width),H=1,H="1px"==V.style.height?Y.offsetHeight:parseInt(V.style.height),document.body.removeChild(V),J=new mxRectangle(ma,la,u,H),K[U]=J);"1px"==V.style.height&&("unsafe center"==Z?la-=J.height/2:"unsafe flex-end"==Z&&(la-=J.height));if("1px"==V.style.width)if(!fa&&"unsafe center"==l||fa&&"unsafe center"==Z)ma-=J.width/2;else if(!fa&&"unsafe flex-end"==l||fa&&(!ca&&"unsafe flex-end"==Z||ca&&"unsafe flex-start"==Z))ma-=J.width;J=new mxRectangle(ma,la,J.width,J.height+
+parseInt(Y.style.fontSize)/4);da.push(mxUtils.bind(this,function(W){var aa=O[U];null==aa?Graph.htmlToPng(U,J.width,J.height,mxUtils.bind(this,function(ba){B(ea,ma,la,J,ba);O[U]=ba;W()}),C):(B(ea,ma,la,J,aa),W())}))}catch(W){L()}else L()})(f[I]);0==counter&&k(c);I=0;z()};EditorUi.prototype.addRadiobox=function(c,f,k,B,z,C,I){return this.addCheckbox(c,k,B,z,C,I,!0,f)};EditorUi.prototype.addCheckbox=function(c,f,k,B,z,C,I,L){C=null!=C?C:!0;var K=document.createElement("input");K.style.marginRight="8px";
+K.style.marginTop="16px";K.setAttribute("type",I?"radio":"checkbox");I="geCheckbox-"+Editor.guid();K.id=I;null!=L&&K.setAttribute("name",L);k&&(K.setAttribute("checked","checked"),K.defaultChecked=!0);B&&K.setAttribute("disabled","disabled");C&&(c.appendChild(K),k=document.createElement("label"),mxUtils.write(k,f),k.setAttribute("for",I),c.appendChild(k),z||mxUtils.br(c));return K};EditorUi.prototype.addEditButton=function(c,f){var k=this.addCheckbox(c,mxResources.get("edit")+":",!0,null,!0);k.style.marginLeft=
+"24px";var B=this.getCurrentFile(),z="";null!=B&&B.getMode()!=App.MODE_DEVICE&&B.getMode()!=App.MODE_BROWSER&&(z=window.location.href);var C=document.createElement("select");C.style.maxWidth="200px";C.style.width="auto";C.style.marginLeft="8px";C.style.marginRight="10px";C.className="geBtn";B=document.createElement("option");B.setAttribute("value","blank");mxUtils.write(B,mxResources.get("makeCopy"));C.appendChild(B);var I=document.createElement("option");I.setAttribute("value","custom");mxUtils.write(I,
mxResources.get("custom")+"...");C.appendChild(I);c.appendChild(C);mxEvent.addListener(C,"change",mxUtils.bind(this,function(){if("custom"==C.value){var L=new FilenameDialog(this,z,mxResources.get("ok"),function(K){null!=K?(z=K,I.setAttribute("title",K)):(C.value="blank",I.removeAttribute("title"))},mxResources.get("url"),null,null,null,null,function(){C.value="blank"});this.showDialog(L.container,300,80,!0,!1);L.init()}}));mxEvent.addListener(k,"change",mxUtils.bind(this,function(){k.checked&&(null==
f||f.checked)?C.removeAttribute("disabled"):C.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return k.checked?"blank"===C.value?"_blank":z:null},getEditInput:function(){return k},getEditSelect:function(){return C}}};EditorUi.prototype.addLinkSection=function(c,f){function k(){var L=document.createElement("div");L.style.width="100%";L.style.height="100%";L.style.boxSizing="border-box";null!=C&&C!=mxConstants.NONE?(L.style.border="1px solid black",L.style.backgroundColor=
-C):(L.style.backgroundPosition="center center",L.style.backgroundRepeat="no-repeat",L.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");I.innerText="";I.appendChild(L)}mxUtils.write(c,mxResources.get("links")+":");var A=document.createElement("select");A.style.width="100px";A.style.padding="0px";A.style.marginLeft="8px";A.style.marginRight="10px";A.className="geBtn";var z=document.createElement("option");z.setAttribute("value","auto");mxUtils.write(z,mxResources.get("automatic"));A.appendChild(z);
-z=document.createElement("option");z.setAttribute("value","blank");mxUtils.write(z,mxResources.get("openInNewWindow"));A.appendChild(z);z=document.createElement("option");z.setAttribute("value","self");mxUtils.write(z,mxResources.get("openInThisWindow"));A.appendChild(z);f&&(f=document.createElement("option"),f.setAttribute("value","frame"),mxUtils.write(f,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),A.appendChild(f));c.appendChild(A);mxUtils.write(c,mxResources.get("borderColor")+
-":");var C="#0000ff",I=null;I=mxUtils.button("",mxUtils.bind(this,function(L){this.pickColor(C||"none",function(K){C=K;k()});mxEvent.consume(L)}));k();I.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";I.style.marginLeft="4px";I.style.height="22px";I.style.width="22px";I.style.position="relative";I.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";I.className="geColorBtn";c.appendChild(I);mxUtils.br(c);return{getColor:function(){return C},getTarget:function(){return A.value},
-focus:function(){A.focus()}}};EditorUi.prototype.createUrlParameters=function(c,f,k,A,z,C){C=null!=C?C:[];k&&(C.push("lightbox=1"),"auto"!=c&&C.push("target="+c),null!=f&&f!=mxConstants.NONE&&C.push("highlight="+("#"==f.charAt(0)?f.substring(1):f)),null!=A&&0<A.length&&C.push("edit="+encodeURIComponent(A)),z&&C.push("layers=1"),this.editor.graph.foldingEnabled&&C.push("nav=1"));return C};EditorUi.prototype.createLink=function(c,f,k,A,z,C,I,L,K,O,da){var ea=this.getCurrentFile();K=this.createUrlParameters(c,
-f,A,z,C,K);c=!0;null!=I?k="#U"+encodeURIComponent(I):L||null==ea||""==ea.getHash()?k="#R"+encodeURIComponent(k?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(k="#"+ea.getHash(),c=!1);c&&null!=ea&&null!=ea.getTitle()&&ea.getTitle()!=this.defaultFilename&&K.push("title="+encodeURIComponent(ea.getTitle()));O&&1<k.length&&(K.push("open="+k.substring(1)),k="");da&&null!=this.currentPage&&K.push("page-id="+this.currentPage.getId());
-return(A&&(null!=I||null!=ea&&ea.getMode()!=App.MODE_GITHUB&&ea.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<K.length?"?"+K.join("&"):"")+k};EditorUi.prototype.createHtml=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca){this.getBasenames();var W={};""!=z&&z!=mxConstants.NONE&&(W.highlight=z);"auto"!==A&&(W.target=A);O||(W.lightbox=!1);W.nav=this.editor.graph.foldingEnabled;
-k=parseInt(k);isNaN(k)||100==k||(W.zoom=k/100);k=[];I&&(k.push("pages"),W.resize=!0,null!=this.pages&&null!=this.currentPage&&(W.page=mxUtils.indexOf(this.pages,this.currentPage)));f&&(k.push("zoom"),W.resize=!0);L&&k.push("layers");K&&k.push("tags");null!=ca&&(W["dark-mode"]=ca);0<k.length&&(O&&k.push("lightbox"),W.toolbar=k.join(" "));null!=da&&0<da.length&&(W.edit=da);null!=c?W.url=c:W.xml=this.getFileData(!0,null,null,null,null,!I);f='<div class="mxgraph" style="'+(C?"max-width:100%;":"")+(""!=
-k?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(W))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";ea(f,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=
-function(c,f,k,A){var z=document.createElement("div");z.style.whiteSpace="nowrap";var C=document.createElement("h3");mxUtils.write(C,mxResources.get("html"));C.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";z.appendChild(C);var I=document.createElement("div");I.style.cssText="border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var L=document.createElement("input");L.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";L.setAttribute("value",
+C):(L.style.backgroundPosition="center center",L.style.backgroundRepeat="no-repeat",L.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");I.innerText="";I.appendChild(L)}mxUtils.write(c,mxResources.get("links")+":");var B=document.createElement("select");B.style.width="100px";B.style.padding="0px";B.style.marginLeft="8px";B.style.marginRight="10px";B.className="geBtn";var z=document.createElement("option");z.setAttribute("value","auto");mxUtils.write(z,mxResources.get("automatic"));B.appendChild(z);
+z=document.createElement("option");z.setAttribute("value","blank");mxUtils.write(z,mxResources.get("openInNewWindow"));B.appendChild(z);z=document.createElement("option");z.setAttribute("value","self");mxUtils.write(z,mxResources.get("openInThisWindow"));B.appendChild(z);f&&(f=document.createElement("option"),f.setAttribute("value","frame"),mxUtils.write(f,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),B.appendChild(f));c.appendChild(B);mxUtils.write(c,mxResources.get("borderColor")+
+":");var C="#0000ff",I=null;I=mxUtils.button("",mxUtils.bind(this,function(L){this.pickColor(C||"none",function(K){C=K;k()});mxEvent.consume(L)}));k();I.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";I.style.marginLeft="4px";I.style.height="22px";I.style.width="22px";I.style.position="relative";I.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";I.className="geColorBtn";c.appendChild(I);mxUtils.br(c);return{getColor:function(){return C},getTarget:function(){return B.value},
+focus:function(){B.focus()}}};EditorUi.prototype.createUrlParameters=function(c,f,k,B,z,C){C=null!=C?C:[];k&&(C.push("lightbox=1"),"auto"!=c&&C.push("target="+c),null!=f&&f!=mxConstants.NONE&&C.push("highlight="+("#"==f.charAt(0)?f.substring(1):f)),null!=B&&0<B.length&&C.push("edit="+encodeURIComponent(B)),z&&C.push("layers=1"),this.editor.graph.foldingEnabled&&C.push("nav=1"));return C};EditorUi.prototype.createLink=function(c,f,k,B,z,C,I,L,K,O,da){var ea=this.getCurrentFile();K=this.createUrlParameters(c,
+f,B,z,C,K);c=!0;null!=I?k="#U"+encodeURIComponent(I):L||null==ea||""==ea.getHash()?k="#R"+encodeURIComponent(k?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(k="#"+ea.getHash(),c=!1);c&&null!=ea&&null!=ea.getTitle()&&ea.getTitle()!=this.defaultFilename&&K.push("title="+encodeURIComponent(ea.getTitle()));O&&1<k.length&&(K.push("open="+k.substring(1)),k="");da&&null!=this.currentPage&&K.push("page-id="+this.currentPage.getId());
+return(B&&(null!=I||null!=ea&&ea.getMode()!=App.MODE_GITHUB&&ea.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<K.length?"?"+K.join("&"):"")+k};EditorUi.prototype.createHtml=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca){this.getBasenames();var V={};""!=z&&z!=mxConstants.NONE&&(V.highlight=z);"auto"!==B&&(V.target=B);O||(V.lightbox=!1);V.nav=this.editor.graph.foldingEnabled;
+k=parseInt(k);isNaN(k)||100==k||(V.zoom=k/100);k=[];I&&(k.push("pages"),V.resize=!0,null!=this.pages&&null!=this.currentPage&&(V.page=mxUtils.indexOf(this.pages,this.currentPage)));f&&(k.push("zoom"),V.resize=!0);L&&k.push("layers");K&&k.push("tags");null!=ca&&(V["dark-mode"]=ca);0<k.length&&(O&&k.push("lightbox"),V.toolbar=k.join(" "));null!=da&&0<da.length&&(V.edit=da);null!=c?V.url=c:V.xml=this.getFileData(!0,null,null,null,null,!I);f='<div class="mxgraph" style="'+(C?"max-width:100%;":"")+(""!=
+k?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(V))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";ea(f,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=
+function(c,f,k,B){var z=document.createElement("div");z.style.whiteSpace="nowrap";var C=document.createElement("h3");mxUtils.write(C,mxResources.get("html"));C.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";z.appendChild(C);var I=document.createElement("div");I.style.cssText="border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var L=document.createElement("input");L.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";L.setAttribute("value",
"url");L.setAttribute("type","radio");L.setAttribute("name","type-embedhtmldialog");C=L.cloneNode(!0);C.setAttribute("value","copy");I.appendChild(C);var K=document.createElement("span");mxUtils.write(K,mxResources.get("includeCopyOfMyDiagram"));I.appendChild(K);mxUtils.br(I);I.appendChild(L);K=document.createElement("span");mxUtils.write(K,mxResources.get("publicDiagramUrl"));I.appendChild(K);var O=this.getCurrentFile();null==k&&null!=O&&O.constructor==window.DriveFile&&(K=document.createElement("a"),
K.style.paddingLeft="12px",K.style.color="gray",K.style.cursor="pointer",mxUtils.write(K,mxResources.get("share")),I.appendChild(K),mxEvent.addListener(K,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(O.getId(),O)})));C.setAttribute("checked","checked");null==k&&L.setAttribute("disabled","disabled");z.appendChild(I);I=380;var da=this.addLinkSection(z),ea=document.createElement("select");ea.style.maxWidth="260px";ea.style.marginLeft="8px";ea.style.marginTop="16px";
K=document.createElement("option");K.setAttribute("value","light");mxUtils.write(K,mxResources.get("light"));ea.appendChild(K);K=document.createElement("option");K.setAttribute("value","dark");mxUtils.write(K,mxResources.get("dark"));ea.appendChild(K);K=document.createElement("option");K.setAttribute("value","auto");mxUtils.write(K,mxResources.get("automatic"));K.setAttribute("selected","selected");ea.appendChild(K);K.setAttribute("selected","selected");mxUtils.write(z,mxResources.get("appearance")+
-":");z.appendChild(ea);mxUtils.br(z);I+=26;var ca=this.addCheckbox(z,mxResources.get("zoom"),!0,null,!0);mxUtils.write(z,":");var W=document.createElement("input");W.setAttribute("type","text");W.style.marginRight="16px";W.style.width="60px";W.style.marginLeft="4px";W.style.marginRight="12px";W.value="100%";z.appendChild(W);var ma=this.addCheckbox(z,mxResources.get("fit"),!0);K=null!=this.pages&&1<this.pages.length;var la=la=this.addCheckbox(z,mxResources.get("allPages"),K,!K),Y=this.addCheckbox(z,
+":");z.appendChild(ea);mxUtils.br(z);I+=26;var ca=this.addCheckbox(z,mxResources.get("zoom"),!0,null,!0);mxUtils.write(z,":");var V=document.createElement("input");V.setAttribute("type","text");V.style.marginRight="16px";V.style.width="60px";V.style.marginLeft="4px";V.style.marginRight="12px";V.value="100%";z.appendChild(V);var ma=this.addCheckbox(z,mxResources.get("fit"),!0);K=null!=this.pages&&1<this.pages.length;var la=la=this.addCheckbox(z,mxResources.get("allPages"),K,!K),Y=this.addCheckbox(z,
mxResources.get("layers"),!0),fa=this.addCheckbox(z,mxResources.get("tags"),!0),Z=this.addCheckbox(z,mxResources.get("lightbox"),!0),l=null;if(EditorUi.enableHtmlEditOption){l=this.addEditButton(z,Z);var u=l.getEditInput();u.style.marginBottom="16px";I+=50;mxEvent.addListener(Z,"change",function(){Z.checked?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled");u.checked&&Z.checked?l.getEditSelect().removeAttribute("disabled"):l.getEditSelect().setAttribute("disabled","disabled")})}c=
-new CustomDialog(this,z,mxUtils.bind(this,function(){A(L.checked?k:null,ca.checked,W.value,da.getTarget(),da.getColor(),ma.checked,la.checked,Y.checked,fa.checked,Z.checked,null!=l?l.getLink():null,null!=ea?ea.value:null)}),null,c,f);this.showDialog(c.container,340,I,!0,!0);C.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,f,k,A,z,C,I,L,K){var O=document.createElement("div");O.style.whiteSpace="nowrap";var da=document.createElement("h3");mxUtils.write(da,c||mxResources.get("publish"));
+new CustomDialog(this,z,mxUtils.bind(this,function(){B(L.checked?k:null,ca.checked,V.value,da.getTarget(),da.getColor(),ma.checked,la.checked,Y.checked,fa.checked,Z.checked,null!=l?l.getLink():null,null!=ea?ea.value:null)}),null,c,f);this.showDialog(c.container,340,I,!0,!0);C.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,f,k,B,z,C,I,L,K){var O=document.createElement("div");O.style.whiteSpace="nowrap";var da=document.createElement("h3");mxUtils.write(da,c||mxResources.get("publish"));
da.style.width="100%";da.style.textAlign="center";da.style.marginTop="2px";da.style.marginBottom="20px";O.appendChild(da);var ea=document.createElement("select");c=30;ea.className="geBtn";ea.style.marginBottom="8px";ea.style.marginLeft="0px";ea.style.width="100%";ea.style.boxSizing="border-box";if(null==L||""==L.getHash())z=null!=z?z:"https://www.drawio.com/doc/faq/publish-diagram-as-link",da=document.createElement("option"),mxUtils.write(da,mxResources.get("makeCopy")),da.setAttribute("value","copy"),
ea.appendChild(da);da=document.createElement("option");mxUtils.write(da,mxResources.get("authorizationRequired"));da.setAttribute("value","auth");ea.appendChild(da);null!=L&&""!=L.getHash()||da.setAttribute("disabled","disabled");L=document.createElement("option");L.setAttribute("value","public");ea.appendChild(L);null!=I?(mxUtils.write(L,mxResources.get("publicDiagramUrl")),L.setAttribute("title",I),ea.value="public"):(mxUtils.write(L,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+
-")"),L.setAttribute("disabled","disabled"));O.appendChild(ea);mxUtils.br(O);ea.focus();var ca=null,W=null;if(null!=f||null!=k)c+=30,mxUtils.write(O,mxResources.get("width")+":"),ca=document.createElement("input"),ca.setAttribute("type","text"),ca.style.marginRight="16px",ca.style.width="50px",ca.style.marginLeft="6px",ca.style.marginRight="16px",ca.style.marginBottom="10px",ca.value="100%",O.appendChild(ca),mxUtils.write(O,mxResources.get("height")+":"),W=document.createElement("input"),W.setAttribute("type",
-"text"),W.style.width="50px",W.style.marginLeft="6px",W.style.marginBottom="10px",W.value=k+"px",O.appendChild(W),mxUtils.br(O);var ma=this.addLinkSection(O,A),la=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(c+=30,f=null!=this.currentPage?this.currentPage.getName():"",16<f.length&&(f=f.substring(0,16)+"..."),la=this.addCheckbox(O,mxResources.get("selectedPage")+": "+f));var Y=this.addCheckbox(O,mxResources.get("lightbox"),!0,null,null,!A),fa=this.addEditButton(O,
-Y),Z=fa.getEditInput();A&&(Z.style.marginLeft=Y.style.marginLeft,Y.style.display="none",c-=20);var l=this.addCheckbox(O,mxResources.get("layers"),!0);l.style.marginLeft=Z.style.marginLeft;l.style.marginTop="8px";var u=this.addCheckbox(O,mxResources.get("tags"),!0);u.style.marginLeft=Z.style.marginLeft;u.style.marginBottom="16px";u.style.marginTop="16px";mxEvent.addListener(Y,"change",function(){Y.checked?(l.removeAttribute("disabled"),Z.removeAttribute("disabled"),u.removeAttribute("disabled")):(l.setAttribute("disabled",
-"disabled"),Z.setAttribute("disabled","disabled"),u.setAttribute("disabled","disabled"));Z.checked&&Y.checked?fa.getEditSelect().removeAttribute("disabled"):fa.getEditSelect().setAttribute("disabled","disabled")});A=new CustomDialog(this,O,mxUtils.bind(this,function(){K(ma.getTarget(),ma.getColor(),null==la?!1:la.checked,Y.checked,fa.getLink(),l.checked,null!=ca?ca.value:null,null!=W?W.value:null,u.checked,ea.value)}),null,mxResources.get("create"),z,C);this.showDialog(A.container,340,296+c,!0,!0);
-null!=ca?(ca.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?ca.select():document.execCommand("selectAll",!1,null)):null==ea.parentNode;ma.focus()};EditorUi.prototype.showRemoteExportDialog=function(c,f,k,A,z){var C=document.createElement("div");C.style.whiteSpace="nowrap";var I=document.createElement("h3");mxUtils.write(I,mxResources.get("image"));I.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(z?"10":"4")+"px";C.appendChild(I);if(z){mxUtils.write(C,
+")"),L.setAttribute("disabled","disabled"));O.appendChild(ea);mxUtils.br(O);ea.focus();var ca=null,V=null;if(null!=f||null!=k)c+=30,mxUtils.write(O,mxResources.get("width")+":"),ca=document.createElement("input"),ca.setAttribute("type","text"),ca.style.marginRight="16px",ca.style.width="50px",ca.style.marginLeft="6px",ca.style.marginRight="16px",ca.style.marginBottom="10px",ca.value="100%",O.appendChild(ca),mxUtils.write(O,mxResources.get("height")+":"),V=document.createElement("input"),V.setAttribute("type",
+"text"),V.style.width="50px",V.style.marginLeft="6px",V.style.marginBottom="10px",V.value=k+"px",O.appendChild(V),mxUtils.br(O);var ma=this.addLinkSection(O,B),la=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(c+=30,f=null!=this.currentPage?this.currentPage.getName():"",16<f.length&&(f=f.substring(0,16)+"..."),la=this.addCheckbox(O,mxResources.get("selectedPage")+": "+f));var Y=this.addCheckbox(O,mxResources.get("lightbox"),!0,null,null,!B),fa=this.addEditButton(O,
+Y),Z=fa.getEditInput();B&&(Z.style.marginLeft=Y.style.marginLeft,Y.style.display="none",c-=20);var l=this.addCheckbox(O,mxResources.get("layers"),!0);l.style.marginLeft=Z.style.marginLeft;l.style.marginTop="8px";var u=this.addCheckbox(O,mxResources.get("tags"),!0);u.style.marginLeft=Z.style.marginLeft;u.style.marginBottom="16px";u.style.marginTop="16px";mxEvent.addListener(Y,"change",function(){Y.checked?(l.removeAttribute("disabled"),Z.removeAttribute("disabled"),u.removeAttribute("disabled")):(l.setAttribute("disabled",
+"disabled"),Z.setAttribute("disabled","disabled"),u.setAttribute("disabled","disabled"));Z.checked&&Y.checked?fa.getEditSelect().removeAttribute("disabled"):fa.getEditSelect().setAttribute("disabled","disabled")});B=new CustomDialog(this,O,mxUtils.bind(this,function(){K(ma.getTarget(),ma.getColor(),null==la?!1:la.checked,Y.checked,fa.getLink(),l.checked,null!=ca?ca.value:null,null!=V?V.value:null,u.checked,ea.value)}),null,mxResources.get("create"),z,C);this.showDialog(B.container,340,296+c,!0,!0);
+null!=ca?(ca.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?ca.select():document.execCommand("selectAll",!1,null)):null==ea.parentNode;ma.focus()};EditorUi.prototype.showRemoteExportDialog=function(c,f,k,B,z){var C=document.createElement("div");C.style.whiteSpace="nowrap";var I=document.createElement("h3");mxUtils.write(I,mxResources.get("image"));I.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(z?"10":"4")+"px";C.appendChild(I);if(z){mxUtils.write(C,
mxResources.get("zoom")+":");var L=document.createElement("input");L.setAttribute("type","text");L.style.marginRight="16px";L.style.width="60px";L.style.marginLeft="4px";L.style.marginRight="12px";L.value=this.lastExportZoom||"100%";C.appendChild(L);mxUtils.write(C,mxResources.get("borderWidth")+":");var K=document.createElement("input");K.setAttribute("type","text");K.style.marginRight="16px";K.style.width="60px";K.style.marginLeft="4px";K.value=this.lastExportBorder||"0";C.appendChild(K);mxUtils.br(C)}var O=
-this.addCheckbox(C,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),da=A?null:this.addCheckbox(C,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);I=this.editor.graph;var ea=A?null:this.addCheckbox(C,mxResources.get("transparentBackground"),I.background==mxConstants.NONE||null==I.background);null!=ea&&(ea.style.marginBottom="16px");c=new CustomDialog(this,C,mxUtils.bind(this,function(){var ca=parseInt(L.value)/100||1,W=parseInt(K.value)||0;k(!O.checked,
-null!=da?da.checked:!1,null!=ea?ea.checked:!1,ca,W)}),null,c,f);this.showDialog(c.container,300,(z?25:0)+(A?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(c,f,k,A,z,C,I,L,K){I=null!=I?I:Editor.defaultIncludeDiagram;var O=document.createElement("div");O.style.whiteSpace="nowrap";var da=this.editor.graph,ea="jpeg"==L||"webp"==L?220:320,ca=document.createElement("h3");mxUtils.write(ca,c);ca.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";O.appendChild(ca);
-mxUtils.write(O,mxResources.get("zoom")+":");var W=document.createElement("input");W.setAttribute("type","text");W.style.marginRight="16px";W.style.width="60px";W.style.marginLeft="4px";W.style.marginRight="12px";W.value=this.lastExportZoom||"100%";O.appendChild(W);mxUtils.write(O,mxResources.get("borderWidth")+":");var ma=document.createElement("input");ma.setAttribute("type","text");ma.style.marginRight="16px";ma.style.width="60px";ma.style.marginLeft="4px";ma.value=this.lastExportBorder||"0";O.appendChild(ma);
+this.addCheckbox(C,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),da=B?null:this.addCheckbox(C,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);I=this.editor.graph;var ea=B?null:this.addCheckbox(C,mxResources.get("transparentBackground"),I.background==mxConstants.NONE||null==I.background);null!=ea&&(ea.style.marginBottom="16px");c=new CustomDialog(this,C,mxUtils.bind(this,function(){var ca=parseInt(L.value)/100||1,V=parseInt(K.value)||0;k(!O.checked,
+null!=da?da.checked:!1,null!=ea?ea.checked:!1,ca,V)}),null,c,f);this.showDialog(c.container,300,(z?25:0)+(B?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(c,f,k,B,z,C,I,L,K){I=null!=I?I:Editor.defaultIncludeDiagram;var O=document.createElement("div");O.style.whiteSpace="nowrap";var da=this.editor.graph,ea="jpeg"==L||"webp"==L?220:320,ca=document.createElement("h3");mxUtils.write(ca,c);ca.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";O.appendChild(ca);
+mxUtils.write(O,mxResources.get("zoom")+":");var V=document.createElement("input");V.setAttribute("type","text");V.style.marginRight="16px";V.style.width="60px";V.style.marginLeft="4px";V.style.marginRight="12px";V.value=this.lastExportZoom||"100%";O.appendChild(V);mxUtils.write(O,mxResources.get("borderWidth")+":");var ma=document.createElement("input");ma.setAttribute("type","text");ma.style.marginRight="16px";ma.style.width="60px";ma.style.marginLeft="4px";ma.value=this.lastExportBorder||"0";O.appendChild(ma);
mxUtils.br(O);var la=this.addCheckbox(O,mxResources.get("selectionOnly"),!1,da.isSelectionEmpty()),Y=document.createElement("input");Y.style.marginTop="16px";Y.style.marginRight="8px";Y.style.marginLeft="24px";Y.setAttribute("disabled","disabled");Y.setAttribute("type","checkbox");var fa=document.createElement("select");fa.style.marginTop="16px";fa.style.marginLeft="8px";c=["selectionOnly","diagram","page"];for(ca=0;ca<c.length;ca++)if(!da.isSelectionEmpty()||"selectionOnly"!=c[ca]){var Z=document.createElement("option");
mxUtils.write(Z,mxResources.get(c[ca]));Z.setAttribute("value",c[ca]);fa.appendChild(Z)}K?(mxUtils.write(O,mxResources.get("size")+":"),O.appendChild(fa),mxUtils.br(O),ea+=26,mxEvent.addListener(fa,"change",function(){"selectionOnly"==fa.value&&(la.checked=!0)})):C&&(O.appendChild(Y),mxUtils.write(O,mxResources.get("crop")),mxUtils.br(O),ea+=30,mxEvent.addListener(la,"change",function(){la.checked?Y.removeAttribute("disabled"):Y.setAttribute("disabled","disabled")}));da.isSelectionEmpty()?K&&(la.style.display=
"none",la.nextSibling.style.display="none",la.nextSibling.nextSibling.style.display="none",ea-=30):(fa.value="diagram",Y.setAttribute("checked","checked"),Y.defaultChecked=!0,mxEvent.addListener(la,"change",function(){fa.value=la.checked?"selectionOnly":"diagram"}));var l=this.addCheckbox(O,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=L&&"webp"!=L),u=document.createElement("select");u.style.maxWidth="260px";u.style.marginLeft="8px";u.style.marginTop="16px";C=document.createElement("option");
C.setAttribute("value","light");mxUtils.write(C,mxResources.get("light"));u.appendChild(C);K=document.createElement("option");K.setAttribute("value","dark");mxUtils.write(K,mxResources.get("dark"));u.appendChild(K);"svg"==L?(C=document.createElement("option"),C.setAttribute("value","auto"),mxUtils.write(C,mxResources.get("automatic")),C.setAttribute("selected","selected"),u.appendChild(C)):Editor.isDarkMode()?K.setAttribute("selected","selected"):C.setAttribute("selected","selected");mxUtils.write(O,
-mxResources.get("appearance")+":");O.appendChild(u);mxUtils.br(O);ea+=26;var H=this.addCheckbox(O,mxResources.get("shadow"),da.shadowVisible),U=null;if("png"==L||"jpeg"==L||"webp"==L)U=this.addCheckbox(O,mxResources.get("grid"),!1,this.isOffline()||!this.canvasSupported,!1,!0),ea+=30;var J=this.addCheckbox(O,mxResources.get("includeCopyOfMyDiagram")+":",I,null,null,"jpeg"!=L&&"webp"!=L),V=document.createElement("select");V.style.maxWidth="260px";V.style.marginLeft="28px";"png"==L||"svg"==L?(I=function(){J.checked?
-V.removeAttribute("disabled"):V.setAttribute("disabled","disabled")},da=document.createElement("option"),da.setAttribute("value","allPages"),mxUtils.write(da,mxResources.get("allPages")),V.appendChild(da),da=document.createElement("option"),da.setAttribute("value","currentPage"),mxUtils.write(da,mxResources.get("currentPage")),V.appendChild(da),J.style.marginBottom="12px",V.style.marginBottom="16px",O.appendChild(V),mxUtils.br(O),ea+=20,null!=this.lastEmbedInclude&&(V.value=this.lastEmbedInclude),
+mxResources.get("appearance")+":");O.appendChild(u);mxUtils.br(O);ea+=26;var H=this.addCheckbox(O,mxResources.get("shadow"),da.shadowVisible),U=null;if("png"==L||"jpeg"==L||"webp"==L)U=this.addCheckbox(O,mxResources.get("grid"),!1,this.isOffline()||!this.canvasSupported,!1,!0),ea+=30;var J=this.addCheckbox(O,mxResources.get("includeCopyOfMyDiagram")+":",I,null,null,"jpeg"!=L&&"webp"!=L),W=document.createElement("select");W.style.maxWidth="260px";W.style.marginLeft="28px";"png"==L||"svg"==L?(I=function(){J.checked?
+W.removeAttribute("disabled"):W.setAttribute("disabled","disabled")},da=document.createElement("option"),da.setAttribute("value","allPages"),mxUtils.write(da,mxResources.get("allPages")),W.appendChild(da),da=document.createElement("option"),da.setAttribute("value","currentPage"),mxUtils.write(da,mxResources.get("currentPage")),W.appendChild(da),J.style.marginBottom="12px",W.style.marginBottom="16px",O.appendChild(W),mxUtils.br(O),ea+=20,null!=this.lastEmbedInclude&&(W.value=this.lastEmbedInclude),
mxEvent.addListener(J,"change",I),I()):J.style.marginBottom="16px";var aa=document.createElement("input");aa.style.marginBottom="16px";aa.style.marginRight="8px";aa.setAttribute("type","checkbox");var ba=document.createElement("input");ba.style.marginBottom="16px";ba.style.marginRight="8px";ba.setAttribute("type","checkbox");f&&(aa.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,O.appendChild(aa),mxUtils.write(O,mxResources.get("embedImages")),mxUtils.br(O),ba.checked=null!=this.lastEmbedFonts?
this.lastEmbedImages:!0,O.appendChild(ba),mxUtils.write(O,mxResources.get("embedFonts")),mxUtils.br(O),ea+=50);var ja=document.createElement("select");ja.style.maxWidth="260px";ja.style.marginLeft="8px";C=document.createElement("option");C.setAttribute("value","auto");mxUtils.write(C,mxResources.get("automatic"));ja.appendChild(C);I=document.createElement("option");I.setAttribute("value","blank");mxUtils.write(I,mxResources.get("openInNewWindow"));ja.appendChild(I);I=document.createElement("option");
-I.setAttribute("value","self");mxUtils.write(I,mxResources.get("openInThisWindow"));ja.appendChild(I);I=document.createElement("div");mxUtils.write(I,mxResources.get("LinksLost"));I.style.margin="7px";I.style.display="none";"svg"==L&&(mxUtils.write(O,mxResources.get("links")+":"),O.appendChild(ja),O.appendChild(I),mxUtils.br(O),mxUtils.br(O),ea+=50);k=new CustomDialog(this,O,mxUtils.bind(this,function(){this.lastExportBorder=ma.value;this.lastExportZoom=W.value;this.lastEmbedImages=aa.checked;this.lastEmbedFonts=
-ba.checked;this.lastEmbedInclude=V.value;z(W.value,l.checked,!la.checked,H.checked,J.checked,aa.checked&&f,ma.value,Y.checked,("png"==L||"svg"==L)&&"currentPage"==V.value,ja.value,null!=U?U.checked:null,null!=u?u.value:null,fa.value,ba.checked)}),null,k,A);this.showDialog(k.container,340,ea,!0,!0,null,null,null,null,!0);W.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?W.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,f,k,A,z){var C=
-document.createElement("div");C.style.whiteSpace="nowrap";var I=this.editor.graph;if(null!=f){var L=document.createElement("h3");mxUtils.write(L,f);L.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";C.appendChild(L)}var K=this.addCheckbox(C,mxResources.get("fit"),!0),O=this.addCheckbox(C,mxResources.get("shadow"),I.shadowVisible&&A,!A),da=this.addCheckbox(C,k),ea=this.addCheckbox(C,mxResources.get("lightbox"),!0),ca=this.addEditButton(C,ea),W=ca.getEditInput(),ma=1<I.model.getChildCount(I.model.getRoot()),
-la=this.addCheckbox(C,mxResources.get("layers"),ma,!ma);la.style.marginLeft=W.style.marginLeft;la.style.marginBottom="12px";la.style.marginTop="8px";mxEvent.addListener(ea,"change",function(){ea.checked?(ma&&la.removeAttribute("disabled"),W.removeAttribute("disabled")):(la.setAttribute("disabled","disabled"),W.setAttribute("disabled","disabled"));W.checked&&ea.checked?ca.getEditSelect().removeAttribute("disabled"):ca.getEditSelect().setAttribute("disabled","disabled")});f=new CustomDialog(this,C,
-mxUtils.bind(this,function(){c(K.checked,O.checked,da.checked,ea.checked,ca.getLink(),la.checked)}),null,mxResources.get("embed"),z);this.showDialog(f.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,f,k,A,z,C,I,L){function K(W){var ma=" ",la="";A&&(ma=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
-EditorUi.lightboxHost+"/?client=1"+(null!=da?"&page="+da:"")+(z?"&edit=_blank":"")+(C?"&layers=1":"")+"');}})(this);\"",la+="cursor:pointer;");c&&(la+="max-width:100%;");var Y="";k&&(Y=' width="'+Math.round(O.width)+'" height="'+Math.round(O.height)+'"');I('<img src="'+W+'"'+Y+(""!=la?' style="'+la+'"':"")+ma+"/>")}var O=this.editor.graph.getGraphBounds(),da=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(W){var ma=A?this.getFileData(!0):
-null;W=this.createImageDataUri(W,ma,"png");K(W)}),null,null,null,mxUtils.bind(this,function(W){L({message:mxResources.get("unknownError")})}),null,!0,k?2:1,null,f,null,null,Editor.defaultBorder);else if(f=this.getFileData(!0),O.width*O.height<=MAX_AREA&&f.length<=MAX_REQUEST_SIZE){var ea="";k&&(ea="&w="+Math.round(2*O.width)+"&h="+Math.round(2*O.height));var ca=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(A?"1":"0")+ea+"&xml="+encodeURIComponent(f));ca.send(mxUtils.bind(this,function(){200<=
-ca.getStatus()&&299>=ca.getStatus()?K("data:image/png;base64,"+ca.getText()):L({message:mxResources.get("unknownError")})}))}else L({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,f,k,A,z,C,I){var L=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!k,"auto"),K=L.getElementsByTagName("a");if(null!=K)for(var O=0;O<K.length;O++){var da=K[O].getAttribute("href");null!=da&&"#"==da.charAt(0)&&"_blank"==K[O].getAttribute("target")&&K[O].removeAttribute("target")}A&&
-L.setAttribute("content",this.getFileData(!0));f&&this.editor.graph.addSvgShadow(L);if(k){var ea=" ",ca="";A&&(ea="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(z?"&edit=_blank":"")+(C?"&layers=1":
-"")+"');}})(this);\"",ca+="cursor:pointer;");c&&(ca+="max-width:100%;");this.editor.convertImages(L,mxUtils.bind(this,function(W){I('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(W))+'"'+(""!=ca?' style="'+ca+'"':"")+ea+"/>")}))}else ca="",A&&(f=this.getSelectedPageIndex(),L.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
+I.setAttribute("value","self");mxUtils.write(I,mxResources.get("openInThisWindow"));ja.appendChild(I);I=document.createElement("div");mxUtils.write(I,mxResources.get("LinksLost"));I.style.margin="7px";I.style.display="none";"svg"==L&&(mxUtils.write(O,mxResources.get("links")+":"),O.appendChild(ja),O.appendChild(I),mxUtils.br(O),mxUtils.br(O),ea+=50);k=new CustomDialog(this,O,mxUtils.bind(this,function(){this.lastExportBorder=ma.value;this.lastExportZoom=V.value;this.lastEmbedImages=aa.checked;this.lastEmbedFonts=
+ba.checked;this.lastEmbedInclude=W.value;z(V.value,l.checked,!la.checked,H.checked,J.checked,aa.checked&&f,ma.value,Y.checked,("png"==L||"svg"==L)&&"currentPage"==W.value,ja.value,null!=U?U.checked:null,null!=u?u.value:null,fa.value,ba.checked)}),null,k,B);this.showDialog(k.container,340,ea,!0,!0,null,null,null,null,!0);V.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?V.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,f,k,B,z){var C=
+document.createElement("div");C.style.whiteSpace="nowrap";var I=this.editor.graph;if(null!=f){var L=document.createElement("h3");mxUtils.write(L,f);L.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";C.appendChild(L)}var K=this.addCheckbox(C,mxResources.get("fit"),!0),O=this.addCheckbox(C,mxResources.get("shadow"),I.shadowVisible&&B,!B),da=this.addCheckbox(C,k),ea=this.addCheckbox(C,mxResources.get("lightbox"),!0),ca=this.addEditButton(C,ea),V=ca.getEditInput(),ma=1<I.model.getChildCount(I.model.getRoot()),
+la=this.addCheckbox(C,mxResources.get("layers"),ma,!ma);la.style.marginLeft=V.style.marginLeft;la.style.marginBottom="12px";la.style.marginTop="8px";mxEvent.addListener(ea,"change",function(){ea.checked?(ma&&la.removeAttribute("disabled"),V.removeAttribute("disabled")):(la.setAttribute("disabled","disabled"),V.setAttribute("disabled","disabled"));V.checked&&ea.checked?ca.getEditSelect().removeAttribute("disabled"):ca.getEditSelect().setAttribute("disabled","disabled")});f=new CustomDialog(this,C,
+mxUtils.bind(this,function(){c(K.checked,O.checked,da.checked,ea.checked,ca.getLink(),la.checked)}),null,mxResources.get("embed"),z);this.showDialog(f.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,f,k,B,z,C,I,L){function K(V){var ma=" ",la="";B&&(ma=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
+EditorUi.lightboxHost+"/?client=1"+(null!=da?"&page="+da:"")+(z?"&edit=_blank":"")+(C?"&layers=1":"")+"');}})(this);\"",la+="cursor:pointer;");c&&(la+="max-width:100%;");var Y="";k&&(Y=' width="'+Math.round(O.width)+'" height="'+Math.round(O.height)+'"');I('<img src="'+V+'"'+Y+(""!=la?' style="'+la+'"':"")+ma+"/>")}var O=this.editor.graph.getGraphBounds(),da=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(V){var ma=B?this.getFileData(!0):
+null;V=this.createImageDataUri(V,ma,"png");K(V)}),null,null,null,mxUtils.bind(this,function(V){L({message:mxResources.get("unknownError")})}),null,!0,k?2:1,null,f,null,null,Editor.defaultBorder);else if(f=this.getFileData(!0),O.width*O.height<=MAX_AREA&&f.length<=MAX_REQUEST_SIZE){var ea="";k&&(ea="&w="+Math.round(2*O.width)+"&h="+Math.round(2*O.height));var ca=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(B?"1":"0")+ea+"&xml="+encodeURIComponent(f));ca.send(mxUtils.bind(this,function(){200<=
+ca.getStatus()&&299>=ca.getStatus()?K("data:image/png;base64,"+ca.getText()):L({message:mxResources.get("unknownError")})}))}else L({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,f,k,B,z,C,I){var L=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!k,"auto"),K=L.getElementsByTagName("a");if(null!=K)for(var O=0;O<K.length;O++){var da=K[O].getAttribute("href");null!=da&&"#"==da.charAt(0)&&"_blank"==K[O].getAttribute("target")&&K[O].removeAttribute("target")}B&&
+L.setAttribute("content",this.getFileData(!0));f&&this.editor.graph.addSvgShadow(L);if(k){var ea=" ",ca="";B&&(ea="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(z?"&edit=_blank":"")+(C?"&layers=1":
+"")+"');}})(this);\"",ca+="cursor:pointer;");c&&(ca+="max-width:100%;");this.editor.convertImages(L,mxUtils.bind(this,function(V){I('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(V))+'"'+(""!=ca?' style="'+ca+'"':"")+ea+"/>")}))}else ca="",B&&(f=this.getSelectedPageIndex(),L.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
EditorUi.lightboxHost+"/?client=1"+(null!=f?"&page="+f:"")+(z?"&edit=_blank":"")+(C?"&layers=1":"")+"');}}})(this);"),ca+="cursor:pointer;"),c&&(c=parseInt(L.getAttribute("width")),z=parseInt(L.getAttribute("height")),L.setAttribute("viewBox","-0.5 -0.5 "+c+" "+z),ca+="max-width:100%;max-height:"+z+"px;",L.removeAttribute("height")),""!=ca&&L.setAttribute("style",ca),this.editor.addFontCss(L),this.editor.graph.mathEnabled&&this.editor.addMathCss(L),I(mxUtils.getXml(L))};EditorUi.prototype.timeSince=
function(c){c=Math.floor((new Date-c)/1E3);var f=Math.floor(c/31536E3);if(1<f)return f+" "+mxResources.get("years");f=Math.floor(c/2592E3);if(1<f)return f+" "+mxResources.get("months");f=Math.floor(c/86400);if(1<f)return f+" "+mxResources.get("days");f=Math.floor(c/3600);if(1<f)return f+" "+mxResources.get("hours");f=Math.floor(c/60);return 1<f?f+" "+mxResources.get("minutes"):1==f?f+" "+mxResources.get("minute"):null};EditorUi.prototype.decodeNodeIntoGraph=function(c,f){if(null!=c){var k=null;if("diagram"==
-c.nodeName)k=c;else if("mxfile"==c.nodeName){var A=c.getElementsByTagName("diagram");if(0<A.length){k=A[0];var z=f.getGlobalVariable;f.getGlobalVariable=function(C){return"page"==C?k.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==C?1:z.apply(this,arguments)}}}null!=k&&(c=Editor.parseDiagramNode(k))}A=this.editor.graph;try{this.editor.graph=f,this.editor.setGraphXml(c)}catch(C){}finally{this.editor.graph=A}return c};EditorUi.prototype.getSvgFileProperties=function(c){return this.getPngFileProperties(c)};
-EditorUi.prototype.getPngFileProperties=function(c){var f=1,k=0;if(null!=c){if(c.hasAttribute("scale")){var A=parseFloat(c.getAttribute("scale"));!isNaN(A)&&0<A&&(f=A)}c.hasAttribute("border")&&(A=parseInt(c.getAttribute("border")),!isNaN(A)&&0<A&&(k=A))}return{scale:f,border:k}};EditorUi.prototype.getEmbeddedPng=function(c,f,k,A,z){try{var C=this.editor.graph,I=null;if(null!=k&&0<k.length)C=this.createTemporaryGraph(C.getStylesheet()),document.body.appendChild(C.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(k).documentElement,
+c.nodeName)k=c;else if("mxfile"==c.nodeName){var B=c.getElementsByTagName("diagram");if(0<B.length){k=B[0];var z=f.getGlobalVariable;f.getGlobalVariable=function(C){return"page"==C?k.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==C?1:z.apply(this,arguments)}}}null!=k&&(c=Editor.parseDiagramNode(k))}B=this.editor.graph;try{this.editor.graph=f,this.editor.setGraphXml(c)}catch(C){}finally{this.editor.graph=B}return c};EditorUi.prototype.getSvgFileProperties=function(c){return this.getPngFileProperties(c)};
+EditorUi.prototype.getPngFileProperties=function(c){var f=1,k=0;if(null!=c){if(c.hasAttribute("scale")){var B=parseFloat(c.getAttribute("scale"));!isNaN(B)&&0<B&&(f=B)}c.hasAttribute("border")&&(B=parseInt(c.getAttribute("border")),!isNaN(B)&&0<B&&(k=B))}return{scale:f,border:k}};EditorUi.prototype.getEmbeddedPng=function(c,f,k,B,z){try{var C=this.editor.graph,I=null;if(null!=k&&0<k.length)C=this.createTemporaryGraph(C.getStylesheet()),document.body.appendChild(C.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(k).documentElement,
!0),C),I=k;else if(null!=this.pages&&this.currentPage!=this.pages[0]){C=this.createTemporaryGraph(C.getStylesheet());var L=C.getGlobalVariable;C.setBackgroundImage=this.editor.graph.setBackgroundImage;var K=this.pages[0];this.currentPage==K?C.setBackgroundImage(this.editor.graph.backgroundImage):null!=K.viewState&&null!=K.viewState&&C.setBackgroundImage(K.viewState.backgroundImage);C.getGlobalVariable=function(O){return"page"==O?K.getName():"pagenumber"==O?1:L.apply(this,arguments)};document.body.appendChild(C.container);
-C.model.setRoot(K.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(O){try{null==I&&(I=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var da=O.toDataURL("image/png");da=Editor.writeGraphModelToPng(da,"tEXt","mxfile",encodeURIComponent(I));c(da.substring(da.lastIndexOf(",")+1));C!=this.editor.graph&&C.container.parentNode.removeChild(C.container)}catch(ea){null!=f&&f(ea)}}),null,null,null,mxUtils.bind(this,function(O){null!=f&&f(O)}),null,null,A,null,C.shadowVisible,null,
-C,z,null,null,null,"diagram",null)}catch(O){null!=f&&f(O)}};EditorUi.prototype.getEmbeddedSvg=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca){L=null!=L?L:!0;da=null!=da?da:0;I=null!=K?K:f.background;I==mxConstants.NONE&&(I=null);null==I&&"none"==f.getAdaptiveColors()&&(I="#ffffff");K=this.editor.graph.createSvgImageExport(null!=c);C=f.getSvg(I,O,da,null,null,C,null,K,null,f.shadowVisible||ea,null,ca,"diagram");(f.shadowVisible||ea)&&f.addSvgShadow(C,null,null,0==da);null!=c&&C.setAttribute("content",c);null!=
-k&&C.setAttribute("resource",k);var W=mxUtils.bind(this,function(ma){ma=(A?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(ma);null!=z&&z(ma);return ma});f.mathEnabled&&this.editor.addMathCss(C);if(null!=z)this.embedFonts(C,mxUtils.bind(this,function(ma){L?this.editor.convertImages(ma,mxUtils.bind(this,function(la){W(la)})):W(ma)}));else return W(C)};EditorUi.prototype.embedFonts=function(c,f){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=
-this.editor.resolvedFontCss&&this.editor.addFontCss(c,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(c,k),f(c)}catch(A){f(c)}}))}catch(k){f(c)}}))};EditorUi.prototype.exportImage=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca){K=null!=K?K:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(ma){Editor.addRetryToError(ma,mxUtils.bind(this,function(){this.exportImage(c,f,k,A,z,C,I,L,K,O,da,ea,
-ca)}));this.handleError(ma)}))){var W=this.editor.graph.isSelectionEmpty();k=null!=k?k:W;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(ma){this.spinner.stop();try{this.saveCanvas(ma,z?this.getFileData(!0,null,null,null,k,L,null,null,null,null,null,c,C):null,K,null==this.pages||0==this.pages.length,da)}catch(la){this.handleError(la)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(ma){this.spinner.stop();this.handleError(ma)}),
-null,k,c||1,f,A,null,null,C,I,O,ea,ca)}catch(ma){this.spinner.stop(),this.handleError(ma)}}};EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var f=0;f<this.pages.length;f++)c[this.pages[f].getId()]=this.pages[f].getId();return c};EditorUi.prototype.importXml=function(c,f,k,A,z,C,I){f=null!=f?f:0;k=null!=k?k:0;var L=[];try{var K=this.editor.graph;if(null!=c&&0<
+C.model.setRoot(K.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(O){try{null==I&&(I=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var da=O.toDataURL("image/png");da=Editor.writeGraphModelToPng(da,"tEXt","mxfile",encodeURIComponent(I));c(da.substring(da.lastIndexOf(",")+1));C!=this.editor.graph&&C.container.parentNode.removeChild(C.container)}catch(ea){null!=f&&f(ea)}}),null,null,null,mxUtils.bind(this,function(O){null!=f&&f(O)}),null,null,B,null,C.shadowVisible,null,
+C,z,null,null,null,"diagram",null)}catch(O){null!=f&&f(O)}};EditorUi.prototype.getEmbeddedSvg=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca){L=null!=L?L:!0;da=null!=da?da:0;I=null!=K?K:f.background;I==mxConstants.NONE&&(I=null);null==I&&"none"==f.getAdaptiveColors()&&(I="#ffffff");K=this.editor.graph.createSvgImageExport(null!=c);C=f.getSvg(I,O,da,null,null,C,null,K,null,f.shadowVisible||ea,null,ca,"diagram");(f.shadowVisible||ea)&&f.addSvgShadow(C,null,null,0==da);null!=c&&C.setAttribute("content",c);null!=
+k&&C.setAttribute("resource",k);var V=mxUtils.bind(this,function(ma){ma=(B?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(ma);null!=z&&z(ma);return ma});f.mathEnabled&&this.editor.addMathCss(C);if(null!=z)this.embedFonts(C,mxUtils.bind(this,function(ma){L?this.editor.convertImages(ma,mxUtils.bind(this,function(la){V(la)})):V(ma)}));else return V(C)};EditorUi.prototype.embedFonts=function(c,f){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=
+this.editor.resolvedFontCss&&this.editor.addFontCss(c,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(c,k),f(c)}catch(B){f(c)}}))}catch(k){f(c)}}))};EditorUi.prototype.exportImage=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca){K=null!=K?K:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(ma){Editor.addRetryToError(ma,mxUtils.bind(this,function(){this.exportImage(c,f,k,B,z,C,I,L,K,O,da,ea,
+ca)}));this.handleError(ma)}))){var V=this.editor.graph.isSelectionEmpty();k=null!=k?k:V;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(ma){this.spinner.stop();try{this.saveCanvas(ma,z?this.getFileData(!0,null,null,null,k,L,null,null,null,null,null,c,C):null,K,null==this.pages||0==this.pages.length,da)}catch(la){this.handleError(la)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(ma){this.spinner.stop();this.handleError(ma)}),
+null,k,c||1,f,B,null,null,C,I,O,ea,ca)}catch(ma){this.spinner.stop(),this.handleError(ma)}}};EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var f=0;f<this.pages.length;f++)c[this.pages[f].getId()]=this.pages[f].getId();return c};EditorUi.prototype.importXml=function(c,f,k,B,z,C,I){f=null!=f?f:0;k=null!=k?k:0;var L=[];try{var K=this.editor.graph;if(null!=c&&0<
c.length){K.model.beginUpdate();try{var O=mxUtils.parseXml(c);c={};var da=this.editor.extractGraphModel(O.documentElement,null!=this.pages);if(null!=da&&"mxfile"==da.nodeName&&null!=this.pages){var ea=da.getElementsByTagName("diagram");if(1==ea.length&&!C){if(da=Editor.parseDiagramNode(ea[0]),null!=this.currentPage&&(c[ea[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var ca=ea[0].getAttribute("name");null!=ca&&""!=ca&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,
-ca))}}else if(0<ea.length){C=[];var W=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(c[ea[0].getAttribute("id")]=this.pages[0].getId(),ca=ea[0].getAttribute("name"),null!=ca&&""!=ca&&this.editor.graph.model.execute(new RenamePage(this,this.pages[0],ca)),da=Editor.parseDiagramNode(ea[0]),A=!1,W=1);for(;W<ea.length;W++){var ma=ea[W].getAttribute("id");ea[W].removeAttribute("id");var la=this.updatePageRoot(new DiagramPage(ea[W]));c[ma]=ea[W].getAttribute("id");var Y=this.pages.length;
-null==la.getName()&&la.setName(mxResources.get("pageWithNumber",[Y+1]));K.model.execute(new ChangePage(this,la,la,Y,!0));C.push(la)}this.updatePageLinks(c,C)}}if(null!=da&&"mxGraphModel"===da.nodeName){L=K.importGraphModel(da,f,k,A);if(null!=L)for(this.addLocalPagesToMapping(c),W=0;W<L.length;W++)this.updatePageLinksForCell(c,L[W]);var fa=K.parseBackgroundImage(da.getAttribute("backgroundImage"));if(null!=fa&&null!=fa.originalSrc){this.updateBackgroundPageLink(c,fa);var Z=new ChangePageSetup(this,
+ca))}}else if(0<ea.length){C=[];var V=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(c[ea[0].getAttribute("id")]=this.pages[0].getId(),ca=ea[0].getAttribute("name"),null!=ca&&""!=ca&&this.editor.graph.model.execute(new RenamePage(this,this.pages[0],ca)),da=Editor.parseDiagramNode(ea[0]),B=!1,V=1);for(;V<ea.length;V++){var ma=ea[V].getAttribute("id");ea[V].removeAttribute("id");var la=this.updatePageRoot(new DiagramPage(ea[V]));c[ma]=ea[V].getAttribute("id");var Y=this.pages.length;
+null==la.getName()&&la.setName(mxResources.get("pageWithNumber",[Y+1]));K.model.execute(new ChangePage(this,la,la,Y,!0));C.push(la)}this.updatePageLinks(c,C)}}if(null!=da&&"mxGraphModel"===da.nodeName){L=K.importGraphModel(da,f,k,B);if(null!=L)for(this.addLocalPagesToMapping(c),V=0;V<L.length;V++)this.updatePageLinksForCell(c,L[V]);var fa=K.parseBackgroundImage(da.getAttribute("backgroundImage"));if(null!=fa&&null!=fa.originalSrc){this.updateBackgroundPageLink(c,fa);var Z=new ChangePageSetup(this,
null,fa);Z.ignoreColor=!0;K.model.execute(Z)}}I&&K.pasteCellStyles(K.includeDescendants(L),K.defaultVertexStyle,K.defaultEdgeStyle)}finally{K.model.endUpdate()}}}catch(l){if(z)throw l;this.handleError(l)}return L};EditorUi.prototype.updatePageLinks=function(c,f){for(var k=0;k<f.length;k++)this.updatePageLinksForCell(c,f[k].root),null!=f[k].viewState&&this.updateBackgroundPageLink(c,f[k].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(c,f){try{if(null!=f&&Graph.isPageLink(f.originalSrc)){var k=
-c[f.originalSrc.substring(f.originalSrc.indexOf(",")+1)];null!=k&&(f.originalSrc="data:page/id,"+k)}}catch(A){}};EditorUi.prototype.updatePageLinksForCell=function(c,f){var k=document.createElement("div"),A=this.editor.graph,z=A.getLinkForCell(f);null!=z&&A.setLinkForCell(f,this.updatePageLink(c,z));if(A.isHtmlLabel(f)){k.innerHTML=Graph.sanitizeHtml(A.getLabel(f));for(var C=k.getElementsByTagName("a"),I=!1,L=0;L<C.length;L++)z=C[L].getAttribute("href"),null!=z&&(C[L].setAttribute("href",this.updatePageLink(c,
-z)),I=!0);I&&A.labelChanged(f,k.innerHTML)}for(L=0;L<A.model.getChildCount(f);L++)this.updatePageLinksForCell(c,A.model.getChildAt(f,L))};EditorUi.prototype.updatePageLink=function(c,f){if(Graph.isPageLink(f)){var k=c[f.substring(f.indexOf(",")+1)];f=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==f.substring(0,17))try{var A=JSON.parse(f.substring(17));if(null!=A.actions){for(var z=0;z<A.actions.length;z++){var C=A.actions[z];if(null!=C.open&&Graph.isPageLink(C.open)){var I=C.open.substring(C.open.indexOf(",")+
-1);k=c[I];null!=k?C.open="data:page/id,"+k:null==this.getPageById(I)&&delete C.open}}f="data:action/json,"+JSON.stringify(A)}}catch(L){}return f};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,f,k,A,z){var C=mxUtils.bind(this,function(I){this.loadingExtensions=!1;null!=k?k(I):this.handleError(I)});this.createTimeout(null,mxUtils.bind(this,function(I){A=null!=A?A:c.name;var L=mxUtils.bind(this,
-function(O){I.clear()&&C(O)}),K=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var O=this.isRemoteVisioFormat(A);try{var da=A.lastIndexOf(".");if(0<=da&&da<A.length)A.substring(da+1).toUpperCase();else{var ea=A.lastIndexOf("/");0<=ea&&ea<A.length&&(A=A.substring(ea+1))}}catch(W){}if(O)if(null==VSD_CONVERT_URL||this.isOffline())L({message:"draw.io"!=this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{O=new FormData;
-O.append("file1",c,A);var ca=new XMLHttpRequest;ca.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(A)?"?stencil=1":""));ca.responseType="blob";this.addRemoteServiceSecurityCheck(ca);null!=z&&ca.setRequestHeader("x-convert-custom",z);ca.onreadystatechange=mxUtils.bind(this,function(){if(4==ca.readyState&&I.clear())if(200<=ca.status&&299>=ca.status)try{var W=ca.response;if("text/xml"==W.type){var ma=new FileReader;ma.onload=mxUtils.bind(this,function(la){try{f(la.target.result)}catch(Y){L({message:mxResources.get("errorLoadingFile")})}});
-ma.readAsText(W)}else this.doImportVisio(W,f,L,A)}catch(la){L(la)}else try{""==ca.responseType||"text"==ca.responseType?L({message:ca.responseText}):(ma=new FileReader,ma.onload=function(){try{L({message:JSON.parse(ma.result).Message})}catch(la){L(la)}},ma.readAsText(ca.response))}catch(la){L({})}});ca.send(O)}else if(I.clear())try{this.doImportVisio(c,f,L,A)}catch(W){L(W)}}else L({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?
-K():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",K,null,null,null,L))}),C)};EditorUi.prototype.importGraphML=function(c,f,k){var A=mxUtils.bind(this,function(z){this.loadingExtensions=!1;null!=k?k(z):this.handleError(z)});this.createTimeout(null,mxUtils.bind(this,function(z){var C=mxUtils.bind(this,function(L){z.clear()&&A(L)}),I=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(z.clear())if(this.doImportGraphML)try{this.doImportGraphML(c,f,A)}catch(L){C(L)}else C({message:mxResources.get("serviceUnavailableOrBlocked")})});
-this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?I():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",I,null,null,null,C))}),A)};EditorUi.prototype.exportVisio=function(c){if(this.spinner.spin(document.body,mxResources.get("loading"))){var f=mxUtils.bind(this,function(k){this.loadingExtensions=!1;this.handleError(k)});this.createTimeout(null,mxUtils.bind(this,function(k){var A=mxUtils.bind(this,function(C){k.clear()&&f(C)}),z=mxUtils.bind(this,function(){this.loadingExtensions=
-!1;if(k.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),(new VsdxExport(this)).exportCurrentDiagrams(c)||A({message:mxResources.get("unknownError")})}catch(C){A(C)}else A({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(z,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,A))}),f)}};EditorUi.prototype.convertLucidChart=function(c,
-f,k){var A=mxUtils.bind(this,function(z){this.loadingExtensions=!1;null!=k?k(z):this.handleError(z)});this.createTimeout(null,mxUtils.bind(this,function(z){var C=mxUtils.bind(this,function(L){z.clear()&&A(L)}),I=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(z.clear())if("undefined"!==typeof window.LucidImporter)try{var L=JSON.parse(c);f(LucidImporter.importState(L));try{if(null!=window.console&&"1"==urlParams.test){var K=[(new Date).toISOString(),"convertLucidChart",L];null!=L.state&&
+c[f.originalSrc.substring(f.originalSrc.indexOf(",")+1)];null!=k&&(f.originalSrc="data:page/id,"+k)}}catch(B){}};EditorUi.prototype.updatePageLinksForCell=function(c,f){var k=document.createElement("div"),B=this.editor.graph,z=B.getLinkForCell(f);null!=z&&B.setLinkForCell(f,this.updatePageLink(c,z));if(B.isHtmlLabel(f)){k.innerHTML=Graph.sanitizeHtml(B.getLabel(f));for(var C=k.getElementsByTagName("a"),I=!1,L=0;L<C.length;L++)z=C[L].getAttribute("href"),null!=z&&(C[L].setAttribute("href",this.updatePageLink(c,
+z)),I=!0);I&&B.labelChanged(f,k.innerHTML)}for(L=0;L<B.model.getChildCount(f);L++)this.updatePageLinksForCell(c,B.model.getChildAt(f,L))};EditorUi.prototype.updatePageLink=function(c,f){if(Graph.isPageLink(f)){var k=c[f.substring(f.indexOf(",")+1)];f=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==f.substring(0,17))try{var B=JSON.parse(f.substring(17));if(null!=B.actions){for(var z=0;z<B.actions.length;z++){var C=B.actions[z];if(null!=C.open&&Graph.isPageLink(C.open)){var I=C.open.substring(C.open.indexOf(",")+
+1);k=c[I];null!=k?C.open="data:page/id,"+k:null==this.getPageById(I)&&delete C.open}}f="data:action/json,"+JSON.stringify(B)}}catch(L){}return f};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,f,k,B,z){var C=mxUtils.bind(this,function(I){this.loadingExtensions=!1;null!=k?k(I):this.handleError(I)});this.createTimeout(null,mxUtils.bind(this,function(I){B=null!=B?B:c.name;var L=mxUtils.bind(this,
+function(O){I.clear()&&C(O)}),K=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var O=this.isRemoteVisioFormat(B);try{var da=B.lastIndexOf(".");if(0<=da&&da<B.length)B.substring(da+1).toUpperCase();else{var ea=B.lastIndexOf("/");0<=ea&&ea<B.length&&(B=B.substring(ea+1))}}catch(V){}if(O)if(null==VSD_CONVERT_URL||this.isOffline())L({message:"draw.io"!=this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{O=new FormData;
+O.append("file1",c,B);var ca=new XMLHttpRequest;ca.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(B)?"?stencil=1":""));ca.responseType="blob";this.addRemoteServiceSecurityCheck(ca);null!=z&&ca.setRequestHeader("x-convert-custom",z);ca.onreadystatechange=mxUtils.bind(this,function(){if(4==ca.readyState&&I.clear())if(200<=ca.status&&299>=ca.status)try{var V=ca.response;if("text/xml"==V.type){var ma=new FileReader;ma.onload=mxUtils.bind(this,function(la){try{f(la.target.result)}catch(Y){L({message:mxResources.get("errorLoadingFile")})}});
+ma.readAsText(V)}else this.doImportVisio(V,f,L,B)}catch(la){L(la)}else try{""==ca.responseType||"text"==ca.responseType?L({message:ca.responseText}):(ma=new FileReader,ma.onload=function(){try{L({message:JSON.parse(ma.result).Message})}catch(la){L(la)}},ma.readAsText(ca.response))}catch(la){L({})}});ca.send(O)}else if(I.clear())try{this.doImportVisio(c,f,L,B)}catch(V){L(V)}}else L({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?
+K():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",K,null,null,null,L))}),C)};EditorUi.prototype.importGraphML=function(c,f,k){var B=mxUtils.bind(this,function(z){this.loadingExtensions=!1;null!=k?k(z):this.handleError(z)});this.createTimeout(null,mxUtils.bind(this,function(z){var C=mxUtils.bind(this,function(L){z.clear()&&B(L)}),I=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(z.clear())if(this.doImportGraphML)try{this.doImportGraphML(c,f,B)}catch(L){C(L)}else C({message:mxResources.get("serviceUnavailableOrBlocked")})});
+this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?I():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",I,null,null,null,C))}),B)};EditorUi.prototype.exportVisio=function(c){if(this.spinner.spin(document.body,mxResources.get("loading"))){var f=mxUtils.bind(this,function(k){this.loadingExtensions=!1;this.handleError(k)});this.createTimeout(null,mxUtils.bind(this,function(k){var B=mxUtils.bind(this,function(C){k.clear()&&f(C)}),z=mxUtils.bind(this,function(){this.loadingExtensions=
+!1;if(k.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),(new VsdxExport(this)).exportCurrentDiagrams(c)||B({message:mxResources.get("unknownError")})}catch(C){B(C)}else B({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(z,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,B))}),f)}};EditorUi.prototype.convertLucidChart=function(c,
+f,k){var B=mxUtils.bind(this,function(z){this.loadingExtensions=!1;null!=k?k(z):this.handleError(z)});this.createTimeout(null,mxUtils.bind(this,function(z){var C=mxUtils.bind(this,function(L){z.clear()&&B(L)}),I=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(z.clear())if("undefined"!==typeof window.LucidImporter)try{var L=JSON.parse(c);f(LucidImporter.importState(L));try{if(null!=window.console&&"1"==urlParams.test){var K=[(new Date).toISOString(),"convertLucidChart",L];null!=L.state&&
K.push(JSON.parse(L.state));if(null!=L.svgThumbs)for(var O=0;O<L.svgThumbs.length;O++)K.push(Editor.createSvgDataUri(L.svgThumbs[O]));null!=L.thumb&&K.push(L.thumb);console.log.apply(console,K)}}catch(da){}}catch(da){null!=window.console&&console.error(da),C(da)}else C({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(I,0):(this.loadingExtensions=!0,"1"==urlParams.dev?mxscript("js/diagramly/Extensions.js",
-function(){mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",I,null,null,null,C)},null,null,null,C)},null,null,null,C)},null,null,null,C)},null,null,null,C):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",I,null,null,null,C))}),A)};EditorUi.prototype.createMermaidXml=function(c,f,k,A,z,C){var I=new Graph(document.createElement("div"));
-k=I.insertVertex(null,null,null,0,0,A,z,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+k+";");I.setAttributeForCell(k,"mermaidData",JSON.stringify({data:c,config:f},null,2));null!=C&&I.setAttributeForCell(k,"templatePrompt",C);c=(new mxCodec).encode(I.getModel());return mxUtils.getXml(c)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(c,f,k){var A=0,z=mxUtils.bind(this,function(){this.createTimeout(1E4,mxUtils.bind(this,function(C){var I=new mxXmlRequest("https://www.draw.io/generate/v2",
-c,"POST"),L=mxUtils.bind(this,function(K){C.clear()&&k(K)});I.send(mxUtils.bind(this,function(K){if(C.isAlive())if(200<=K.getStatus()&&299>=K.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var da=mxUtils.trim(K.getText());this.generateMermaidImage(da,null,mxUtils.bind(this,function(ea,ca,W){this.tryAndHandle(mxUtils.bind(this,function(){C.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",c,"\nresult:",da),f(da,ea,ca,W))}),L)}),L,mxUtils.bind(this,function(ea){3>
-A++?C.clear()&&z():L(ea)}))}),L);else{var O={message:mxResources.get("error")+" "+K.getStatus()};try{O=JSON.parse(K.getText()),O=O.error}catch(da){}L(O)}}),L)}),k)});z()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=mxUtils.trim(c);"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var f=c.split("```");f=1<f.length?f:c.split("<pre>");f=1<f.length?f:c.split("~~~");f=1<f.length?f:c.split("%%");f=1<f.length?f:c.split("(Begins)");c=mxUtils.trim(1>=f.length?c:f[1]);f=c.split("\n");var k=1<f.length?
-f[1]:null;if(null!=k){var A=k.indexOf("-");0<A&&(k=k.substring(0,A))}if(0<f.length&&"mermaid"==mxUtils.trim(f[0])||null!=k&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k))f.shift(),c=mxUtils.trim(f.join("\n")),f=c.split("\n");k=f[0].split(" ")[0].replace(/:$/,"");A=k.indexOf("-");0<A&&(k=k.substring(0,A));try{"mindmap"==k&&2<f.length&&(c=extractMermaidMindmap(f))}catch(z){}0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k)&&(c=null);return c};EditorUi.prototype.generateMermaidImage=function(c,
-f,k,A,z){var C=mxUtils.bind(this,function(L){this.loadingMermaid=!1;null!=A?A(L):this.handleError(L)}),I=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;f=null!=f?f:mxUtils.clone(EditorUi.defaultMermaidConfig);f.securityLevel="strict";f.startOnLoad=!1;"undefined"!==typeof mxMermaidToDrawio&&f.flowchart&&0<=c.indexOf("$$")&&(f.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(f.theme="dark");var L=mxUtils.bind(this,function(K){try{if(mxClient.IS_IE||mxClient.IS_IE11)K=
-K.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var O=mxUtils.parseXml(K).getElementsByTagName("svg");if(0<O.length&&"error"!=O[0].getAttribute("aria-roledescription")){var da=parseFloat(O[0].getAttribute("width")),ea=parseFloat(O[0].getAttribute("height"));if(isNaN(da)||isNaN(ea))try{var ca=O[0].getAttribute("viewBox").split(/\s+/);da=parseFloat(ca[2]);ea=parseFloat(ca[3])}catch(W){da=da||100,ea=ea||100}k(this.convertDataUri(Editor.createSvgDataUri(K)),
-da,ea)}else null!=z?z():A({message:mxResources.get("invalidInput")})}catch(W){A(W)}});mermaid.mermaidAPI.initialize(f);mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),c).then(function(K){L(K.svg)}).catch(function(K){null!=z?z(K):A(K)})}catch(K){A(K)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(I,0):(this.loadingMermaid=!0,"1"==urlParams.dev?("1"==urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(L){this.importXml(L,
-null,null,null,null,null,!0)})),mxscript("js/mermaid/mermaid.min.js",I,null,null,null,C)):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",I,null,null,null,C))};EditorUi.prototype.generatePlantUmlImage=function(c,f,k,A){function z(L,K,O){c1=L>>2;c2=(L&3)<<4|K>>4;c3=(K&15)<<2|O>>6;c4=O&63;r="";r+=C(c1&63);r+=C(c2&63);r+=C(c3&63);return r+=C(c4&63)}function C(L){if(10>L)return String.fromCharCode(48+L);L-=10;if(26>L)return String.fromCharCode(65+L);L-=26;if(26>L)return String.fromCharCode(97+
+function(){mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",I,null,null,null,C)},null,null,null,C)},null,null,null,C)},null,null,null,C)},null,null,null,C):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",I,null,null,null,C))}),B)};EditorUi.prototype.createMermaidXml=function(c,f,k,B,z,C){var I=new Graph(document.createElement("div"));
+k=I.insertVertex(null,null,null,0,0,B,z,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+k+";");I.setAttributeForCell(k,"mermaidData",JSON.stringify({data:c,config:f},null,2));null!=C&&I.setAttributeForCell(k,"templatePrompt",C);c=(new mxCodec).encode(I.getModel());return mxUtils.getXml(c)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(c,f,k){var B=0,z=mxUtils.bind(this,function(){this.createTimeout(1E4,mxUtils.bind(this,function(C){var I=new mxXmlRequest("https://www.draw.io/generate/v2",
+c,"POST"),L=mxUtils.bind(this,function(K){C.clear()&&k(K)});I.send(mxUtils.bind(this,function(K){if(C.isAlive())if(200<=K.getStatus()&&299>=K.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var da=mxUtils.trim(K.getText());this.generateMermaidImage(da,null,mxUtils.bind(this,function(ea,ca,V){this.tryAndHandle(mxUtils.bind(this,function(){C.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",c,"\nresult:",da),f(da,ea,ca,V))}),L)}),L,mxUtils.bind(this,function(ea){3>
+B++?C.clear()&&z():L(ea)}))}),L);else{var O={message:mxResources.get("error")+" "+K.getStatus()};try{O=JSON.parse(K.getText()),O=O.error}catch(da){}L(O)}}),L)}),k)});z()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=mxUtils.trim(c);"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var f=c.split("```");f=1<f.length?f:c.split("<pre>");f=1<f.length?f:c.split("~~~");f=1<f.length?f:c.split("%%");f=1<f.length?f:c.split("(Begins)");c=mxUtils.trim(1>=f.length?c:f[1]);f=c.split("\n");var k=1<f.length?
+f[1]:null;if(null!=k){var B=k.indexOf("-");0<B&&(k=k.substring(0,B))}if(0<f.length&&"mermaid"==mxUtils.trim(f[0])||null!=k&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k))f.shift(),c=mxUtils.trim(f.join("\n")),f=c.split("\n");k=f[0].split(" ")[0].replace(/:$/,"");B=k.indexOf("-");0<B&&(k=k.substring(0,B));try{"mindmap"==k&&2<f.length&&(c=extractMermaidMindmap(f))}catch(z){}0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k)&&(c=null);return c};EditorUi.prototype.generateMermaidImage=function(c,
+f,k,B,z){var C=mxUtils.bind(this,function(L){this.loadingMermaid=!1;null!=B?B(L):this.handleError(L)}),I=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;f=null!=f?f:mxUtils.clone(EditorUi.defaultMermaidConfig);f.securityLevel="strict";f.startOnLoad=!1;"undefined"!==typeof mxMermaidToDrawio&&f.flowchart&&0<=c.indexOf("$$")&&(f.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(f.theme="dark");var L=mxUtils.bind(this,function(K){try{if(mxClient.IS_IE||mxClient.IS_IE11)K=
+K.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var O=mxUtils.parseXml(K).getElementsByTagName("svg");if(0<O.length&&"error"!=O[0].getAttribute("aria-roledescription")){var da=parseFloat(O[0].getAttribute("width")),ea=parseFloat(O[0].getAttribute("height"));if(isNaN(da)||isNaN(ea))try{var ca=O[0].getAttribute("viewBox").split(/\s+/);da=parseFloat(ca[2]);ea=parseFloat(ca[3])}catch(V){da=da||100,ea=ea||100}k(this.convertDataUri(Editor.createSvgDataUri(K)),
+da,ea)}else null!=z?z():B({message:mxResources.get("invalidInput")})}catch(V){B(V)}});mermaid.mermaidAPI.initialize(f);mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),c).then(function(K){L(K.svg)}).catch(function(K){null!=z?z(K):B(K)})}catch(K){B(K)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(I,0):(this.loadingMermaid=!0,"1"==urlParams.dev?("1"==urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(L){this.importXml(L,
+null,null,null,null,null,!0)})),mxscript("js/mermaid/mermaid.min.js",I,null,null,null,C)):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",I,null,null,null,C))};EditorUi.prototype.generatePlantUmlImage=function(c,f,k,B){function z(L,K,O){c1=L>>2;c2=(L&3)<<4|K>>4;c3=(K&15)<<2|O>>6;c4=O&63;r="";r+=C(c1&63);r+=C(c2&63);r+=C(c3&63);return r+=C(c4&63)}function C(L){if(10>L)return String.fromCharCode(48+L);L-=10;if(26>L)return String.fromCharCode(65+L);L-=26;if(26>L)return String.fromCharCode(97+
L);L-=26;return 0==L?"-":1==L?"_":"?"}var I=new XMLHttpRequest;I.open("GET",("txt"==f?PLANT_URL+"/txt/":"png"==f?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(L){r="";for(i=0;i<L.length;i+=3)r=i+2==L.length?r+z(L.charCodeAt(i),L.charCodeAt(i+1),0):i+1==L.length?r+z(L.charCodeAt(i),0,0):r+z(L.charCodeAt(i),L.charCodeAt(i+1),L.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),!0);"txt"!=f&&(I.responseType="blob");I.onload=function(L){if(200<=this.status&&300>this.status)if("txt"==
-f)k(this.response);else{var K=new FileReader;K.readAsDataURL(this.response);K.onloadend=function(O){var da=new Image;da.onload=function(){try{var ea=da.width,ca=da.height;if(0==ea&&0==ca){var W=K.result,ma=W.indexOf(","),la=decodeURIComponent(escape(atob(W.substring(ma+1)))),Y=mxUtils.parseXml(la).getElementsByTagName("svg");0<Y.length&&(ea=parseFloat(Y[0].getAttribute("width")),ca=parseFloat(Y[0].getAttribute("height")))}k(K.result,ea,ca)}catch(fa){A(fa)}};da.src=K.result};K.onerror=function(O){A(O)}}else A(L)};
-I.onerror=function(L){A(L)};I.send()};EditorUi.prototype.insertAsPreText=function(c,f,k){var A=this.editor.graph,z=null;A.getModel().beginUpdate();try{z=A.insertVertex(null,null,"<pre>"+c+"</pre>",f,k,1,1,"text;html=1;align=left;verticalAlign=top;"),A.updateCellSize(z,!0)}finally{A.getModel().endUpdate()}return z};EditorUi.prototype.insertTextAt=function(c,f,k,A,z,C,I,L){C=null!=C?C:!0;I=null!=I?I:!0;if(null!=c)if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c))this.isOffline()?
+f)k(this.response);else{var K=new FileReader;K.readAsDataURL(this.response);K.onloadend=function(O){var da=new Image;da.onload=function(){try{var ea=da.width,ca=da.height;if(0==ea&&0==ca){var V=K.result,ma=V.indexOf(","),la=decodeURIComponent(escape(atob(V.substring(ma+1)))),Y=mxUtils.parseXml(la).getElementsByTagName("svg");0<Y.length&&(ea=parseFloat(Y[0].getAttribute("width")),ca=parseFloat(Y[0].getAttribute("height")))}k(K.result,ea,ca)}catch(fa){B(fa)}};da.src=K.result};K.onerror=function(O){B(O)}}else B(L)};
+I.onerror=function(L){B(L)};I.send()};EditorUi.prototype.insertAsPreText=function(c,f,k){var B=this.editor.graph,z=null;B.getModel().beginUpdate();try{z=B.insertVertex(null,null,"<pre>"+c+"</pre>",f,k,1,1,"text;html=1;align=left;verticalAlign=top;"),B.updateCellSize(z,!0)}finally{B.getModel().endUpdate()}return z};EditorUi.prototype.insertTextAt=function(c,f,k,B,z,C,I,L){C=null!=C?C:!0;I=null!=I?I:!0;if(null!=c)if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c))this.isOffline()?
this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(c.replace(/\s+/g," "),mxUtils.bind(this,function(ca){4==ca.readyState&&200<=ca.status&&299>=ca.status&&this.editor.graph.setSelectionCells(this.insertTextAt(ca.responseText,f,k,!0))}));else if("data:"==c.substring(0,5)||!this.isOffline()&&(z||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c))){var K=this.editor.graph;if("data:application/pdf;base64,"==c.substring(0,28)){var O=Editor.extractGraphModelFromPdf(c);if(null!=
O&&0<O.length)return this.importXml(O,f,k,C,!0,L)}if(Editor.isPngDataUrl(c)&&(O=Editor.extractGraphModelFromPng(c),null!=O&&0<O.length))return this.importXml(O,f,k,C,!0,L);if("data:image/svg+xml;"==c.substring(0,19))try{O=null;"data:image/svg+xml;base64,"==c.substring(0,26)?(O=c.substring(c.indexOf(",")+1),O=window.atob&&!mxClient.IS_SF?atob(O):Base64.decode(O,!0)):O=decodeURIComponent(c.substring(c.indexOf(",")+1));var da=this.importXml(O,f,k,C,!0,L);if(0<da.length)return da}catch(ca){}this.loadImage(c,
-mxUtils.bind(this,function(ca){if("data:"==c.substring(0,5))this.resizeImage(ca,c,mxUtils.bind(this,function(la,Y,fa){K.setSelectionCell(K.insertVertex(null,null,"",K.snap(f),K.snap(k),Y,fa,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(la)+";"))}),I,this.maxImageSize);else{var W=Math.min(1,Math.min(this.maxImageSize/ca.width,this.maxImageSize/ca.height)),ma=Math.round(ca.width*W);ca=Math.round(ca.height*
-W);K.setSelectionCell(K.insertVertex(null,null,"",K.snap(f),K.snap(k),ma,ca,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+c+";"))}}),mxUtils.bind(this,function(){var ca=null;K.getModel().beginUpdate();try{ca=K.insertVertex(K.getDefaultParent(),null,c,K.snap(f),K.snap(k),1,1,"text;"+(A?"html=1;":"")),K.updateCellSize(ca),K.fireEvent(new mxEventObject("textInserted","cells",[ca]))}finally{K.getModel().endUpdate()}K.setSelectionCell(ca)}))}else{c=
-Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,f,k,C,null,L);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,function(ca){this.editor.graph.setSelectionCells(this.importXml(ca,f,k,C,null,L))}),mxUtils.bind(this,function(ca){this.handleError(ca)}));else{K=this.editor.graph;z=null;K.getModel().beginUpdate();try{z=K.insertVertex(K.getDefaultParent(),null,"",K.snap(f),K.snap(k),1,1,"text;whiteSpace=wrap;"+(A?"html=1;":""));
-K.fireEvent(new mxEventObject("textInserted","cells",[z]));A&&(c=K.sanitizeHtml(c));c.length>this.maxTextBytes&&(c=c.substring(0,this.maxTextBytes)+"...");z.value=c;K.updateCellSize(z);if(0<this.maxTextWidth&&z.geometry.width>this.maxTextWidth){var ea=K.getPreferredSizeForCell(z,this.maxTextWidth);z.geometry.width=ea.width;z.geometry.height=ea.height}Graph.isLink(z.value)&&K.setLinkForCell(z,z.value);z.geometry.width+=K.gridSize;z.geometry.height+=K.gridSize}finally{K.getModel().endUpdate()}return[z]}}return[]};
+mxUtils.bind(this,function(ca){if("data:"==c.substring(0,5))this.resizeImage(ca,c,mxUtils.bind(this,function(la,Y,fa){K.setSelectionCell(K.insertVertex(null,null,"",K.snap(f),K.snap(k),Y,fa,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(la)+";"))}),I,this.maxImageSize);else{var V=Math.min(1,Math.min(this.maxImageSize/ca.width,this.maxImageSize/ca.height)),ma=Math.round(ca.width*V);ca=Math.round(ca.height*
+V);K.setSelectionCell(K.insertVertex(null,null,"",K.snap(f),K.snap(k),ma,ca,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+c+";"))}}),mxUtils.bind(this,function(){var ca=null;K.getModel().beginUpdate();try{ca=K.insertVertex(K.getDefaultParent(),null,c,K.snap(f),K.snap(k),1,1,"text;"+(B?"html=1;":"")),K.updateCellSize(ca),K.fireEvent(new mxEventObject("textInserted","cells",[ca]))}finally{K.getModel().endUpdate()}K.setSelectionCell(ca)}))}else{c=
+Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,f,k,C,null,L);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,function(ca){this.editor.graph.setSelectionCells(this.importXml(ca,f,k,C,null,L))}),mxUtils.bind(this,function(ca){this.handleError(ca)}));else{K=this.editor.graph;z=null;K.getModel().beginUpdate();try{z=K.insertVertex(K.getDefaultParent(),null,"",K.snap(f),K.snap(k),1,1,"text;whiteSpace=wrap;"+(B?"html=1;":""));
+K.fireEvent(new mxEventObject("textInserted","cells",[z]));B&&(c=K.sanitizeHtml(c));c.length>this.maxTextBytes&&(c=c.substring(0,this.maxTextBytes)+"...");z.value=c;K.updateCellSize(z);if(0<this.maxTextWidth&&z.geometry.width>this.maxTextWidth){var ea=K.getPreferredSizeForCell(z,this.maxTextWidth);z.geometry.width=ea.width;z.geometry.height=ea.height}Graph.isLink(z.value)&&K.setLinkForCell(z,z.value);z.geometry.width+=K.gridSize;z.geometry.height+=K.gridSize}finally{K.getModel().endUpdate()}return[z]}}return[]};
EditorUi.prototype.formatFileSize=function(c){var f=-1;do c/=1024,f++;while(1024<c);return Math.max(c,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[f]};EditorUi.prototype.convertDataUri=function(c){if("data:"==c.substring(0,5)){var f=c.indexOf(";");0<f&&(c=c.substring(0,f)+c.substring(c.indexOf(",",f+1)))}return c};EditorUi.prototype.isRemoteFileFormat=function(c,f){return/("contentType":\s*"application\/gliffy\+json")/.test(c)};EditorUi.prototype.isLucidChartData=function(c){return null!=
c&&('{"state":"{\\"Properties\\":'==c.substring(0,26)||'{"Properties":'==c.substring(0,14))};EditorUi.prototype.importLocalFile=function(c,f){if(c&&Graph.fileSupport){if(null==this.importFileInputElt){var k=document.createElement("input");k.setAttribute("type","file");mxEvent.addListener(k,"change",mxUtils.bind(this,function(){null!=k.files&&(this.importFiles(k.files,null,null,this.maxImageSize),k.type="",k.type="file",k.value="")}));k.style.display="none";document.body.appendChild(k);this.importFileInputElt=
-k}this.importFileInputElt.click()}else{window.openNew=!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(I,L){StorageFile.listFiles(this,"F",I,L)});window.openBrowserFile=mxUtils.bind(this,function(I,L,K){StorageFile.getFileContent(this,I,L,K)});window.deleteBrowserFile=mxUtils.bind(this,function(I,L,K){StorageFile.deleteFile(this,I,L,K)});if(!f){var A=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(I){this.hideDialog(I)}));
+k}this.importFileInputElt.click()}else{window.openNew=!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(I,L){StorageFile.listFiles(this,"F",I,L)});window.openBrowserFile=mxUtils.bind(this,function(I,L,K){StorageFile.getFileContent(this,I,L,K)});window.deleteBrowserFile=mxUtils.bind(this,function(I,L,K){StorageFile.deleteFile(this,I,L,K)});if(!f){var B=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(I){this.hideDialog(I)}));
window.openFile.setConsumer(mxUtils.bind(this,function(I,L){null!=L&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(L)?(I=new Blob([I],{type:"application/octet-stream"}),this.importVisio(I,mxUtils.bind(this,function(K){this.importXml(K,0,0,!0)}),null,L)):this.editor.graph.setSelectionCells(this.importXml(I,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!f){var z=this.dialog,C=z.close;
-this.dialog.close=mxUtils.bind(this,function(I){Editor.useLocalStorage=A;C.apply(z,arguments);I&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(c,f,k){var A=this,z=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(C){if(mxUtils.isEmptyObject(C.files))k();else{var I=0,L,K=!1;C.forEach(function(O,da){O=da.name.toLowerCase();"diagram/diagram.xml"==O?(K=!0,da.async("string").then(function(ea){0==
-ea.indexOf("<mxfile ")?f(ea):k()})):0==O.indexOf("versions/")&&(O=parseInt(O.substr(9)),O>I&&(I=O,L=da))});0<I?L.async("string").then(function(O){(new XMLHttpRequest).upload&&A.isRemoteFileFormat(O,c.name)?A.isOffline()?A.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,k):A.parseFileData(O,mxUtils.bind(this,function(da){4==da.readyState&&(200<=da.status&&299>=da.status?f(da.responseText):k())}),c.name):k()}):K||k()}},function(C){k(C)}):k()});"undefined"!==typeof JSZip||this.loadingExtensions||
-this.isOffline(!0)?z():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,k))};EditorUi.prototype.importFile=function(c,f,k,A,z,C,I,L,K,O,da,ea){O=null!=O?O:!0;var ca=!1,W=null,ma=mxUtils.bind(this,function(la){var Y=null;null!=la&&"<mxlibrary"==la.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,la,I)),this.showSidebar()):Y=this.importXml(la,k,A,O,null,null!=ea?mxEvent.isControlDown(ea):null);null!=L&&L(Y)});"image"==f.substring(0,5)?(K=!1,
-"image/png"==f.substring(0,9)&&(da=da?null:this.extractGraphModelFromPng(c),null!=da&&0<da.length&&(W=this.importXml(da,k,A,O,null,null!=ea?mxEvent.isControlDown(ea):null),K=!0)),K||(K=this.editor.graph,da=c.indexOf(";"),0<da&&(c=c.substring(0,da)+c.substring(c.indexOf(",",da+1))),O&&K.isGridEnabled()&&(k=K.snap(k),A=K.snap(A)),da="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==f.substring(0,9)&&(da+="editableCssRules=.*;"),
-W=[K.insertVertex(null,null,"",k,A,z,C,da+"image="+c+";")])):/(\.*<graphml )/.test(c)?(ca=!0,this.importGraphML(c,ma)):null!=K&&null!=I&&EditorUi.isVisioFilename(I)?(ca=!0,this.importVisio(K,ma)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,I)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(ca=!0,f=mxUtils.bind(this,function(la){4==la.readyState&&(200<=la.status&&299>=la.status?ma(la.responseText):null!=L&&(L(null),this.showError(mxResources.get("error"),
-413==la.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),null!=c?this.parseFileData(c,f,I):this.parseFile(K,f,I)):0==c.indexOf("PK")&&null!=K?(ca=!0,this.importZipFile(K,ma,mxUtils.bind(this,function(){W=this.insertTextAt(this.validateFileData(c),k,A,!0,null,O);L(W)}))):/(\.v(sd|dx))($|\?)/i.test(I)||/(\.vs(s|x))($|\?)/i.test(I)||(W=this.insertTextAt(this.validateFileData(c),k,A,!0,null,O,null,null!=ea?mxEvent.isControlDown(ea):null));ca||null==L||L(W);return W};EditorUi.prototype.importFiles=
-function(c,f,k,A,z,C,I,L,K,O,da,ea,ca){A=null!=A?A:this.maxImageSize;O=null!=O?O:this.maxImageBytes;var W=null!=f&&null!=k,ma=!0;f=null!=f?f:0;k=null!=k?k:0;var la=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var Y=da||this.resampleThreshold,fa=0;fa<c.length;fa++)if("image/svg"!==c[fa].type.substring(0,9)&&"image/"===c[fa].type.substring(0,6)&&c[fa].size>Y){la=!0;break}var Z=mxUtils.bind(this,function(){var l=this.editor.graph,u=l.gridSize;z=null!=z?z:mxUtils.bind(this,function(ba,ja,oa,qa,ra,ua,za,
-Ba,Ca){try{if(null!=ba&&"<mxlibrary"==ba.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,ba,za)),this.showSidebar(),null;this.isCompatibleString(ba)&&1==c.length&&null!=ca&&"drop"==ca.type&&this.isBlankFile()&&!this.canUndo()&&(W=!1,qa=oa=0);return this.importFile(ba,ja,oa,qa,ra,ua,za,Ba,Ca,W,ea,ca)}catch(La){return this.handleError(La),null}});C=null!=C?C:mxUtils.bind(this,function(ba){l.setSelectionCells(ba)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var H=
-c.length,U=H,J=[],V=mxUtils.bind(this,function(ba,ja){J[ba]=ja;if(0==--U){this.spinner.stop();if(null!=L)L(J);else{var oa=[];l.getModel().beginUpdate();try{for(ba=0;ba<J.length;ba++){var qa=J[ba]();null!=qa&&(oa=oa.concat(qa))}}finally{l.getModel().endUpdate()}}C(oa)}}),aa=0;aa<H;aa++)mxUtils.bind(this,function(ba){var ja=c[ba];if(null!=ja){var oa=new FileReader;oa.onload=mxUtils.bind(this,function(qa){if(null==I||I(ja))try{if("image/"==ja.type.substring(0,6))if("image/svg"==ja.type.substring(0,9)){var ra=
-Graph.clipSvgDataUri(qa.target.result),ua=ra.indexOf(","),za=decodeURIComponent(escape(atob(ra.substring(ua+1)))),Ba=mxUtils.parseXml(za),Ca=Ba.getElementsByTagName("svg");if(0<Ca.length){var La=Ca[0],sa=ea?null:La.getAttribute("content");null!=sa&&"<"!=sa.charAt(0)&&"%"!=sa.charAt(0)&&(sa=unescape(window.atob?atob(sa):Base64.decode(sa,!0)));null!=sa&&"%"==sa.charAt(0)&&(sa=decodeURIComponent(sa));null==sa||"<mxfile "!==sa.substring(0,8)&&"<mxGraphModel "!==sa.substring(0,14)?V(ba,mxUtils.bind(this,
+this.dialog.close=mxUtils.bind(this,function(I){Editor.useLocalStorage=B;C.apply(z,arguments);I&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(c,f,k){var B=this,z=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(C){if(mxUtils.isEmptyObject(C.files))k();else{var I=0,L,K=!1;C.forEach(function(O,da){O=da.name.toLowerCase();"diagram/diagram.xml"==O?(K=!0,da.async("string").then(function(ea){0==
+ea.indexOf("<mxfile ")?f(ea):k()})):0==O.indexOf("versions/")&&(O=parseInt(O.substr(9)),O>I&&(I=O,L=da))});0<I?L.async("string").then(function(O){(new XMLHttpRequest).upload&&B.isRemoteFileFormat(O,c.name)?B.isOffline()?B.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,k):B.parseFileData(O,mxUtils.bind(this,function(da){4==da.readyState&&(200<=da.status&&299>=da.status?f(da.responseText):k())}),c.name):k()}):K||k()}},function(C){k(C)}):k()});"undefined"!==typeof JSZip||this.loadingExtensions||
+this.isOffline(!0)?z():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,k))};EditorUi.prototype.importFile=function(c,f,k,B,z,C,I,L,K,O,da,ea){O=null!=O?O:!0;var ca=!1,V=null,ma=mxUtils.bind(this,function(la){var Y=null;null!=la&&"<mxlibrary"==la.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,la,I)),this.showSidebar()):Y=this.importXml(la,k,B,O,null,null!=ea?mxEvent.isControlDown(ea):null);null!=L&&L(Y)});"image"==f.substring(0,5)?(K=!1,
+"image/png"==f.substring(0,9)&&(da=da?null:this.extractGraphModelFromPng(c),null!=da&&0<da.length&&(V=this.importXml(da,k,B,O,null,null!=ea?mxEvent.isControlDown(ea):null),K=!0)),K||(K=this.editor.graph,da=c.indexOf(";"),0<da&&(c=c.substring(0,da)+c.substring(c.indexOf(",",da+1))),O&&K.isGridEnabled()&&(k=K.snap(k),B=K.snap(B)),da="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==f.substring(0,9)&&(da+="editableCssRules=.*;"),
+V=[K.insertVertex(null,null,"",k,B,z,C,da+"image="+c+";")])):/(\.*<graphml )/.test(c)?(ca=!0,this.importGraphML(c,ma)):null!=K&&null!=I&&EditorUi.isVisioFilename(I)?(ca=!0,this.importVisio(K,ma)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,I)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(ca=!0,f=mxUtils.bind(this,function(la){4==la.readyState&&(200<=la.status&&299>=la.status?ma(la.responseText):null!=L&&(L(null),this.showError(mxResources.get("error"),
+413==la.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),null!=c?this.parseFileData(c,f,I):this.parseFile(K,f,I)):0==c.indexOf("PK")&&null!=K?(ca=!0,this.importZipFile(K,ma,mxUtils.bind(this,function(){V=this.insertTextAt(this.validateFileData(c),k,B,!0,null,O);L(V)}))):/(\.v(sd|dx))($|\?)/i.test(I)||/(\.vs(s|x))($|\?)/i.test(I)||(V=this.insertTextAt(this.validateFileData(c),k,B,!0,null,O,null,null!=ea?mxEvent.isControlDown(ea):null));ca||null==L||L(V);return V};EditorUi.prototype.importFiles=
+function(c,f,k,B,z,C,I,L,K,O,da,ea,ca){B=null!=B?B:this.maxImageSize;O=null!=O?O:this.maxImageBytes;var V=null!=f&&null!=k,ma=!0;f=null!=f?f:0;k=null!=k?k:0;var la=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var Y=da||this.resampleThreshold,fa=0;fa<c.length;fa++)if("image/svg"!==c[fa].type.substring(0,9)&&"image/"===c[fa].type.substring(0,6)&&c[fa].size>Y){la=!0;break}var Z=mxUtils.bind(this,function(){var l=this.editor.graph,u=l.gridSize;z=null!=z?z:mxUtils.bind(this,function(ba,ja,oa,qa,ra,ua,za,
+Ba,Ca){try{if(null!=ba&&"<mxlibrary"==ba.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,ba,za)),this.showSidebar(),null;this.isCompatibleString(ba)&&1==c.length&&null!=ca&&"drop"==ca.type&&this.isBlankFile()&&!this.canUndo()&&(V=!1,qa=oa=0);return this.importFile(ba,ja,oa,qa,ra,ua,za,Ba,Ca,V,ea,ca)}catch(La){return this.handleError(La),null}});C=null!=C?C:mxUtils.bind(this,function(ba){l.setSelectionCells(ba)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var H=
+c.length,U=H,J=[],W=mxUtils.bind(this,function(ba,ja){J[ba]=ja;if(0==--U){this.spinner.stop();if(null!=L)L(J);else{var oa=[];l.getModel().beginUpdate();try{for(ba=0;ba<J.length;ba++){var qa=J[ba]();null!=qa&&(oa=oa.concat(qa))}}finally{l.getModel().endUpdate()}}C(oa)}}),aa=0;aa<H;aa++)mxUtils.bind(this,function(ba){var ja=c[ba];if(null!=ja){var oa=new FileReader;oa.onload=mxUtils.bind(this,function(qa){if(null==I||I(ja))try{if("image/"==ja.type.substring(0,6))if("image/svg"==ja.type.substring(0,9)){var ra=
+Graph.clipSvgDataUri(qa.target.result),ua=ra.indexOf(","),za=decodeURIComponent(escape(atob(ra.substring(ua+1)))),Ba=mxUtils.parseXml(za),Ca=Ba.getElementsByTagName("svg");if(0<Ca.length){var La=Ca[0],sa=ea?null:La.getAttribute("content");null!=sa&&"<"!=sa.charAt(0)&&"%"!=sa.charAt(0)&&(sa=unescape(window.atob?atob(sa):Base64.decode(sa,!0)));null!=sa&&"%"==sa.charAt(0)&&(sa=decodeURIComponent(sa));null==sa||"<mxfile "!==sa.substring(0,8)&&"<mxGraphModel "!==sa.substring(0,14)?W(ba,mxUtils.bind(this,
function(){try{if(null!=Ba){var Ka=Ba.getElementsByTagName("svg");if(0<Ka.length){var Ma=Ka[0],ya=Ma.getAttribute("width"),Wa=Ma.getAttribute("height");ya=null!=ya&&"%"!=ya.charAt(ya.length-1)?parseFloat(ya):NaN;Wa=null!=Wa&&"%"!=Wa.charAt(Wa.length-1)?parseFloat(Wa):NaN;var Ia=Ma.getAttribute("viewBox");if(null==Ia||0==Ia.length)Ma.setAttribute("viewBox","0 0 "+ya+" "+Wa);else if(isNaN(ya)||isNaN(Wa)){var Xa=Ia.split(" ");3<Xa.length&&(ya=parseFloat(Xa[2]),Wa=parseFloat(Xa[3]))}ra=Editor.createSvgDataUri(mxUtils.getXml(Ma));
-var Pa=Math.min(1,Math.min(A/Math.max(1,ya)),A/Math.max(1,Wa)),t=z(ra,ja.type,f+ba*u,k+ba*u,Math.max(1,Math.round(ya*Pa)),Math.max(1,Math.round(Wa*Pa)),ja.name);if(null!=t&&(isNaN(ya)||isNaN(Wa))){var N=new Image;N.onload=mxUtils.bind(this,function(){ya=Math.max(1,N.width);Wa=Math.max(1,N.height);t[0].geometry.width=ya;t[0].geometry.height=Wa;Ma.setAttribute("viewBox","0 0 "+ya+" "+Wa);ra=Editor.createSvgDataUri(mxUtils.getXml(Ma));var Q=ra.indexOf(";");0<Q&&(ra=ra.substring(0,Q)+ra.substring(ra.indexOf(",",
-Q+1)));l.setCellStyles("image",ra,[t[0]])});N.src=Editor.createSvgDataUri(mxUtils.getXml(Ma))}return t}}}catch(Q){}return null})):V(ba,mxUtils.bind(this,function(){return z(sa,"text/xml",f+ba*u,k+ba*u,0,0,ja.name)}))}else V(ba,mxUtils.bind(this,function(){return null}))}else{ua=!1;if("image/png"==ja.type){var Aa=ea?null:this.extractGraphModelFromPng(qa.target.result);if(null!=Aa&&0<Aa.length){var Ea=new Image;Ea.src=qa.target.result;V(ba,mxUtils.bind(this,function(){return z(Aa,"text/xml",f+ba*u,
-k+ba*u,Ea.width,Ea.height,ja.name)}));ua=!0}}ua||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(qa.target.result,mxUtils.bind(this,function(Ka){this.resizeImage(Ka,qa.target.result,mxUtils.bind(this,function(Ma,ya,Wa){V(ba,mxUtils.bind(this,function(){if(null!=
-Ma&&Ma.length<O){var Ia=ma&&this.isResampleImageSize(ja.size,da)?Math.min(1,Math.min(A/ya,A/Wa)):1;return z(Ma,ja.type,f+ba*u,k+ba*u,Math.round(ya*Ia),Math.round(Wa*Ia),ja.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),ma,A,da,ja.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else ra=qa.target.result,z(ra,ja.type,f+ba*u,k+ba*u,240,160,ja.name,function(Ka){V(ba,function(){return Ka})},ja)}catch(Ka){V(ba,
-mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(Ka,ja)}else V(ba,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(ja.name)?z(null,ja.type,f+ba*u,k+ba*u,240,160,ja.name,function(qa){V(ba,function(){return qa})},ja):"image"==ja.type.substring(0,5)||"application/pdf"==ja.type?oa.readAsDataURL(ja):oa.readAsText(ja)}})(aa)});if(la){la=[];for(fa=0;fa<c.length;fa++)la.push(c[fa]);c=la;this.confirmImageResize(function(l){ma=l;Z()},K)}else Z()};EditorUi.prototype.isBlankFile=
-function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,f){f=null!=f?f:!1;var k=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},A=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,z=function(C,I){if(C||f)mxSettings.setResizeImages(C?I:null),mxSettings.save();k();c(I)};null==A||f?this.showDialog((new ConfirmDialog(this,
-mxResources.get("resizeLargeImages"),function(C){z(C,!0)},function(C){z(C,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):z(!1,A)};EditorUi.prototype.parseFile=function(c,f,k){k=null!=k?k:c.name;var A=new FileReader;A.onload=mxUtils.bind(this,function(){this.parseFileData(A.result,
-f,k)});A.readAsText(c)};EditorUi.prototype.parseFileData=function(c,f,k){var A=new XMLHttpRequest;A.open("POST",OPEN_URL);A.setRequestHeader("Content-Type","application/x-www-form-urlencoded");A.onreadystatechange=function(){f(A)};A.send("format=xml&filename="+encodeURIComponent(k)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(z){}};EditorUi.prototype.isResampleImageSize=function(c,f){f=null!=f?f:this.resampleThreshold;return c>
-f};EditorUi.prototype.resizeImage=function(c,f,k,A,z,C,I){z=null!=z?z:this.maxImageSize;var L=Math.max(1,c.width),K=Math.max(1,c.height),O=f;if(A&&this.isResampleImageSize(null!=I?I:f.length,C))try{var da=Math.max(L/z,K/z);if(1<da){var ea=Math.round(L/da),ca=Math.round(K/da),W=document.createElement("canvas");W.width=ea;W.height=ca;W.getContext("2d").drawImage(c,0,0,ea,ca);var ma=W.toDataURL();if(ma.length<f.length){var la=document.createElement("canvas");la.width=ea;la.height=ca;var Y=la.toDataURL();
-ma!==Y&&(f=ma,L=ea,K=ca)}}}catch(fa){}A&&O!=f&&z>this.maxImageSize/2&&f.length>this.maxImageBytes?this.resizeImage(c,f,k,A,z/1.5,C,I):k(f,L,K)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,f,k){try{var A=new Image;A.onload=function(){A.width=0<A.width?A.width:120;A.height=0<A.height?A.height:120;f(A)};null!=k&&(A.onerror=k);A.src=c}catch(z){if(null!=k)k(z);else throw z;}};EditorUi.prototype.getDefaultSketchMode=
+var Pa=Math.min(1,Math.min(B/Math.max(1,ya)),B/Math.max(1,Wa)),t=z(ra,ja.type,f+ba*u,k+ba*u,Math.max(1,Math.round(ya*Pa)),Math.max(1,Math.round(Wa*Pa)),ja.name);if(null!=t&&(isNaN(ya)||isNaN(Wa))){var N=new Image;N.onload=mxUtils.bind(this,function(){ya=Math.max(1,N.width);Wa=Math.max(1,N.height);t[0].geometry.width=ya;t[0].geometry.height=Wa;Ma.setAttribute("viewBox","0 0 "+ya+" "+Wa);ra=Editor.createSvgDataUri(mxUtils.getXml(Ma));var Q=ra.indexOf(";");0<Q&&(ra=ra.substring(0,Q)+ra.substring(ra.indexOf(",",
+Q+1)));l.setCellStyles("image",ra,[t[0]])});N.src=Editor.createSvgDataUri(mxUtils.getXml(Ma))}return t}}}catch(Q){}return null})):W(ba,mxUtils.bind(this,function(){return z(sa,"text/xml",f+ba*u,k+ba*u,0,0,ja.name)}))}else W(ba,mxUtils.bind(this,function(){return null}))}else{ua=!1;if("image/png"==ja.type){var Aa=ea?null:this.extractGraphModelFromPng(qa.target.result);if(null!=Aa&&0<Aa.length){var Ea=new Image;Ea.src=qa.target.result;W(ba,mxUtils.bind(this,function(){return z(Aa,"text/xml",f+ba*u,
+k+ba*u,Ea.width,Ea.height,ja.name)}));ua=!0}}ua||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(qa.target.result,mxUtils.bind(this,function(Ka){this.resizeImage(Ka,qa.target.result,mxUtils.bind(this,function(Ma,ya,Wa){W(ba,mxUtils.bind(this,function(){if(null!=
+Ma&&Ma.length<O){var Ia=ma&&this.isResampleImageSize(ja.size,da)?Math.min(1,Math.min(B/ya,B/Wa)):1;return z(Ma,ja.type,f+ba*u,k+ba*u,Math.round(ya*Ia),Math.round(Wa*Ia),ja.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),ma,B,da,ja.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else ra=qa.target.result,z(ra,ja.type,f+ba*u,k+ba*u,240,160,ja.name,function(Ka){W(ba,function(){return Ka})},ja)}catch(Ka){W(ba,
+mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(Ka,ja)}else W(ba,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(ja.name)?z(null,ja.type,f+ba*u,k+ba*u,240,160,ja.name,function(qa){W(ba,function(){return qa})},ja):"image"==ja.type.substring(0,5)||"application/pdf"==ja.type?oa.readAsDataURL(ja):oa.readAsText(ja)}})(aa)});if(la){la=[];for(fa=0;fa<c.length;fa++)la.push(c[fa]);c=la;this.confirmImageResize(function(l){ma=l;Z()},K)}else Z()};EditorUi.prototype.isBlankFile=
+function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,f){f=null!=f?f:!1;var k=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},B=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,z=function(C,I){if(C||f)mxSettings.setResizeImages(C?I:null),mxSettings.save();k();c(I)};null==B||f?this.showDialog((new ConfirmDialog(this,
+mxResources.get("resizeLargeImages"),function(C){z(C,!0)},function(C){z(C,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):z(!1,B)};EditorUi.prototype.parseFile=function(c,f,k){k=null!=k?k:c.name;var B=new FileReader;B.onload=mxUtils.bind(this,function(){this.parseFileData(B.result,
+f,k)});B.readAsText(c)};EditorUi.prototype.parseFileData=function(c,f,k){var B=new XMLHttpRequest;B.open("POST",OPEN_URL);B.setRequestHeader("Content-Type","application/x-www-form-urlencoded");B.onreadystatechange=function(){f(B)};B.send("format=xml&filename="+encodeURIComponent(k)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(z){}};EditorUi.prototype.isResampleImageSize=function(c,f){f=null!=f?f:this.resampleThreshold;return c>
+f};EditorUi.prototype.resizeImage=function(c,f,k,B,z,C,I){z=null!=z?z:this.maxImageSize;var L=Math.max(1,c.width),K=Math.max(1,c.height),O=f;if(B&&this.isResampleImageSize(null!=I?I:f.length,C))try{var da=Math.max(L/z,K/z);if(1<da){var ea=Math.round(L/da),ca=Math.round(K/da),V=document.createElement("canvas");V.width=ea;V.height=ca;V.getContext("2d").drawImage(c,0,0,ea,ca);var ma=V.toDataURL();if(ma.length<f.length){var la=document.createElement("canvas");la.width=ea;la.height=ca;var Y=la.toDataURL();
+ma!==Y&&(f=ma,L=ea,K=ca)}}}catch(fa){}B&&O!=f&&z>this.maxImageSize/2&&f.length>this.maxImageBytes?this.resizeImage(c,f,k,B,z/1.5,C,I):k(f,L,K)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,f,k){try{var B=new Image;B.onload=function(){B.width=0<B.width?B.width:120;B.height=0<B.height?B.height:120;f(B)};null!=k&&(B.onerror=k);B.src=c}catch(z){if(null!=k)k(z);else throw z;}};EditorUi.prototype.getDefaultSketchMode=
function(){var c="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var v=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());v.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?
mxSettings.settings.sketchMode:this.getDefaultSketchMode())};var p=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var c=this,f=this.editor.graph,k=f.isEnabled;f.isEnabled=function(){return k.apply(this,arguments)&&!c.isLocked()};Graph.touchStyle&&(f.panningHandler.isPanningTrigger=function(u){var H=u.getEvent();return null==u.getState()&&!mxEvent.isMouseEvent(H)&&!f.freehand.isDrawing()||mxEvent.isPopupTrigger(H)&&
-(null==u.getState()||mxEvent.isControlDown(H)||mxEvent.isShiftDown(H))});f.cellEditor.editPlantUmlData=function(u,H,U){var J=JSON.parse(U);H=new TextareaDialog(c,mxResources.get("plantUml")+":",J.data,function(V){null!=V&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(V,J.format,function(aa,ba,ja){c.spinner.stop();f.getModel().beginUpdate();try{if("txt"==J.format)f.labelChanged(u,"<pre>"+aa+"</pre>"),f.updateCellSize(u,!0);else{f.setCellStyles("image",c.convertDataUri(aa),
-[u]);var oa=f.model.getGeometry(u);null!=oa&&(oa=oa.clone(),oa.width=ba,oa.height=ja,f.cellsResized([u],[oa],!1))}f.setAttributeForCell(u,"plantUmlData",JSON.stringify({data:V,format:J.format}))}finally{f.getModel().endUpdate()}},function(aa){c.handleError(aa)})},null,null,400,220);c.showDialog(H.container,420,300,!0,!0);H.init()};f.cellEditor.editMermaidData=function(u,H,U){var J=JSON.parse(U);H=new TextareaDialog(c,mxResources.get("mermaid")+":",J.data,function(V){null!=V&&c.spinner.spin(document.body,
-mxResources.get("inserting"))&&c.generateMermaidImage(V,J.config,function(aa,ba,ja){c.spinner.stop();f.getModel().beginUpdate();try{f.setCellStyles("image",aa,[u]);var oa=f.model.getGeometry(u);null!=oa&&(oa=oa.clone(),oa.width=Math.max(oa.width,ba),oa.height=Math.max(oa.height,ja),f.cellsResized([u],[oa],!1));f.setAttributeForCell(u,"mermaidData",JSON.stringify({data:V,config:J.config},null,2))}finally{f.getModel().endUpdate()}},function(aa){c.handleError(aa)})},null,null,400,220);c.showDialog(H.container,
-420,300,!0,!0);H.init()};var A=f.cellEditor.startEditing;f.cellEditor.startEditing=function(u,H){try{var U=this.graph.getAttributeForCell(u,"plantUmlData");if(null!=U)this.editPlantUmlData(u,H,U);else if(U=this.graph.getAttributeForCell(u,"mermaidData"),null!=U&&window.isMermaidEnabled)this.editMermaidData(u,H,U);else{var J=f.getCellStyle(u);"1"==mxUtils.getValue(J,"metaEdit","0")?c.showDataDialog(u):A.apply(this,arguments)}}catch(V){c.handleError(V)}};f.getLinkTitle=function(u){return c.getLinkTitle(u)};
-f.customLinkClicked=function(u,H){var U=!1;try{var J=this.getGraphBounds();c.handleCustomLink(u,H);U=!0;c.chromelessResize&&!J.equals(this.getGraphBounds())&&(c.chromelessResize(),this.scrollCellToVisible(H))}catch(V){c.handleError(V)}return U};var z=f.parseBackgroundImage;f.parseBackgroundImage=function(u){var H=z.apply(this,arguments);null!=H&&null!=H.src&&Graph.isPageLink(H.src)&&(H={originalSrc:H.src});return H};var C=f.setBackgroundImage;f.setBackgroundImage=function(u){null!=u&&null!=u.originalSrc&&
+(null==u.getState()||mxEvent.isControlDown(H)||mxEvent.isShiftDown(H))});f.cellEditor.editPlantUmlData=function(u,H,U){var J=JSON.parse(U);H=new TextareaDialog(c,mxResources.get("plantUml")+":",J.data,function(W){null!=W&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(W,J.format,function(aa,ba,ja){c.spinner.stop();f.getModel().beginUpdate();try{if("txt"==J.format)f.labelChanged(u,"<pre>"+aa+"</pre>"),f.updateCellSize(u,!0);else{f.setCellStyles("image",c.convertDataUri(aa),
+[u]);var oa=f.model.getGeometry(u);null!=oa&&(oa=oa.clone(),oa.width=ba,oa.height=ja,f.cellsResized([u],[oa],!1))}f.setAttributeForCell(u,"plantUmlData",JSON.stringify({data:W,format:J.format}))}finally{f.getModel().endUpdate()}},function(aa){c.handleError(aa)})},null,null,400,220);c.showDialog(H.container,420,300,!0,!0);H.init()};f.cellEditor.editMermaidData=function(u,H,U){var J=JSON.parse(U);H=new TextareaDialog(c,mxResources.get("mermaid")+":",J.data,function(W){null!=W&&c.spinner.spin(document.body,
+mxResources.get("inserting"))&&c.generateMermaidImage(W,J.config,function(aa,ba,ja){c.spinner.stop();f.getModel().beginUpdate();try{f.setCellStyles("image",aa,[u]);var oa=f.model.getGeometry(u);null!=oa&&(oa=oa.clone(),oa.width=Math.max(oa.width,ba),oa.height=Math.max(oa.height,ja),f.cellsResized([u],[oa],!1));f.setAttributeForCell(u,"mermaidData",JSON.stringify({data:W,config:J.config},null,2))}finally{f.getModel().endUpdate()}},function(aa){c.handleError(aa)})},null,null,400,220);c.showDialog(H.container,
+420,300,!0,!0);H.init()};var B=f.cellEditor.startEditing;f.cellEditor.startEditing=function(u,H){try{var U=this.graph.getAttributeForCell(u,"plantUmlData");if(null!=U)this.editPlantUmlData(u,H,U);else if(U=this.graph.getAttributeForCell(u,"mermaidData"),null!=U&&window.isMermaidEnabled)this.editMermaidData(u,H,U);else{var J=f.getCellStyle(u);"1"==mxUtils.getValue(J,"metaEdit","0")?c.showDataDialog(u):B.apply(this,arguments)}}catch(W){c.handleError(W)}};f.getLinkTitle=function(u){return c.getLinkTitle(u)};
+f.customLinkClicked=function(u,H){var U=!1;try{var J=this.getGraphBounds();c.handleCustomLink(u,H);U=!0;c.chromelessResize&&!J.equals(this.getGraphBounds())&&(c.chromelessResize(),this.scrollCellToVisible(H))}catch(W){c.handleError(W)}return U};var z=f.parseBackgroundImage;f.parseBackgroundImage=function(u){var H=z.apply(this,arguments);null!=H&&null!=H.src&&Graph.isPageLink(H.src)&&(H={originalSrc:H.src});return H};var C=f.setBackgroundImage;f.setBackgroundImage=function(u){null!=u&&null!=u.originalSrc&&
(u=c.createImageForPageLink(u.originalSrc,c.currentPage,this));C.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(u,H){u=null!=f.backgroundImage?f.backgroundImage.originalSrc:null;if(null!=u){var U=u.indexOf(",");if(0<U)for(u=u.substring(U+1),H=H.getProperty("patches"),
U=0;U<H.length;U++)if(null!=H[U][EditorUi.DIFF_UPDATE]&&null!=H[U][EditorUi.DIFF_UPDATE][u]||null!=H[U][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(H[U][EditorUi.DIFF_REMOVE],u)){f.refreshBackgroundImage();break}}}));var I=f.getBackgroundImageObject;f.getBackgroundImageObject=function(u,H){var U=I.apply(this,arguments);null!=U&&null!=U.originalSrc&&(U=H?c.createImageForPageLink(U.originalSrc,null,null,!0):{src:U.originalSrc});return U};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink=
-"https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var L=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(u){u=null!=u?u:"";"1"==urlParams.dev&&(u+=(0<u.length?"&":"?")+"dev=1");return L.apply(this,arguments)};var K=f.addClickHandler;f.addClickHandler=function(u,H,U){var J=H;H=function(V,aa,ba){if(null==aa){var ja=
-mxEvent.getSource(V);"a"==ja.nodeName.toLowerCase()&&(aa=ja.getAttribute("href"))}null!=aa&&f.isCustomLink(aa)&&(mxEvent.isTouchEvent(V)||!mxEvent.isPopupTrigger(V))&&f.customLinkClicked(aa,ba)&&mxEvent.consume(V);null!=J&&J(V,aa,ba)};K.call(this,u,H,U)};p.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var O=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(u,H,U){f.isSelectionEmpty()&&"simple"==
+"https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var L=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(u){u=null!=u?u:"";"1"==urlParams.dev&&(u+=(0<u.length?"&":"?")+"dev=1");return L.apply(this,arguments)};var K=f.addClickHandler;f.addClickHandler=function(u,H,U){var J=H;H=function(W,aa,ba){if(null==aa){var ja=
+mxEvent.getSource(W);"a"==ja.nodeName.toLowerCase()&&(aa=ja.getAttribute("href"))}null!=aa&&f.isCustomLink(aa)&&(mxEvent.isTouchEvent(W)||!mxEvent.isPopupTrigger(W))&&f.customLinkClicked(aa,ba)&&mxEvent.consume(W);null!=J&&J(W,aa,ba)};K.call(this,u,H,U)};p.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var O=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(u,H,U){f.isSelectionEmpty()&&"simple"==
Editor.currentTheme&&this.addMenuItems(u,["zoomIn","zoomOut","-"],null,U);O.apply(this,arguments);f.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(u,["-","addToScratchpad"],null,U);f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(u,["-","exitGroup","home"],null,U)};var da=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(u,H,U){if(c.editor.graph.isSelectionEmpty())da.apply(this,arguments),c.menus.addMenuItems(u,["copyAsImage"],
null,U);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(u,H,U):this.addPopupMenuArrangeItems(u,H,U),this.addMenuItems(u,"- cut copy copyAsImage duplicate -".split(" "),null,U),this.isShowCellEditItems()||this.addPopupDeleteItem(u,H,U),this.addMenuItems(u,["lockUnlock","-"],null,U),!this.isShowStyleItems()){if(1==f.getSelectionCount()&&!f.isCellLocked(H)&&f.isCellEditable(H)&&(this.addSubmenu("editCell",u,null,mxResources.get("edit")),u.addSeparator(),f.getModel().isEdge(H))){this.addSubmenu("line",
u);var J=f.getModel().getGeometry(H);null!=J&&null!=J.points&&0<J.points.length&&this.addMenuItems(u,["clearWaypoints"],null,U)}1==f.getSelectionCount()&&this.addMenuItems(u,["enterGroup"],null,U);J=c.getSelectionState();null!=J.mergeCell?this.addMenuItem(u,"mergeCells"):(1<J.style.colspan||1<J.style.rowspan)&&this.addMenuItem(u,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=
function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}this.defaultFilename=mxResources.get("untitledDiagram");var ea=f.getExportVariables;f.getExportVariables=function(){var u=ea.apply(this,arguments),H=c.getCurrentFile();null!=H&&(u.filename=H.getTitle());u.pagecount=null!=c.pages?c.pages.length:1;u.page=null!=c.currentPage?c.currentPage.getName():"";u.pagenumber=null!=c.pages&&null!=c.currentPage?
-mxUtils.indexOf(c.pages,c.currentPage)+1:1;return u};var ca=f.getGlobalVariable;f.getGlobalVariable=function(u){var H=c.getCurrentFile();return"filename"==u&&null!=H?H.getTitle():"page"==u&&null!=c.currentPage?c.currentPage.getName():"pagenumber"==u?null!=c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1:"pagecount"==u?null!=c.pages?c.pages.length:1:ca.apply(this,arguments)};var W=null,ma=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var u=this.getCurrentFile(),
-H=null!=u&&null!=u.getTitle()?u.getTitle():this.defaultFilename;W!=H&&u==ma&&(f.invalidateDescendantsWithPlaceholders(f.model.getRoot()),f.view.validate());W=H;ma=u}));var la=f.labelLinkClicked;f.labelLinkClicked=function(u,H,U){var J=H.getAttribute("href");if(null==J||!f.isCustomLink(J)||!mxEvent.isTouchEvent(U)&&mxEvent.isPopupTrigger(U))la.apply(this,arguments);else{if(!f.isEnabled()||null!=u&&f.isCellLocked(u.cell))f.customLinkClicked(J),f.getRubberband().reset();mxEvent.consume(U)}};this.editor.getOrCreateFilename=
+mxUtils.indexOf(c.pages,c.currentPage)+1:1;return u};var ca=f.getGlobalVariable;f.getGlobalVariable=function(u){var H=c.getCurrentFile();return"filename"==u&&null!=H?H.getTitle():"page"==u&&null!=c.currentPage?c.currentPage.getName():"pagenumber"==u?null!=c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1:"pagecount"==u?null!=c.pages?c.pages.length:1:ca.apply(this,arguments)};var V=null,ma=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var u=this.getCurrentFile(),
+H=null!=u&&null!=u.getTitle()?u.getTitle():this.defaultFilename;V!=H&&u==ma&&(f.invalidateDescendantsWithPlaceholders(f.model.getRoot()),f.view.validate());V=H;ma=u}));var la=f.labelLinkClicked;f.labelLinkClicked=function(u,H,U){var J=H.getAttribute("href");if(null==J||!f.isCustomLink(J)||!mxEvent.isTouchEvent(U)&&mxEvent.isPopupTrigger(U))la.apply(this,arguments);else{if(!f.isEnabled()||null!=u&&f.isCellLocked(u.cell))f.customLinkClicked(J),f.getRubberband().reset();mxEvent.consume(U)}};this.editor.getOrCreateFilename=
function(){var u=c.defaultFilename,H=c.getCurrentFile();null!=H&&(u=null!=H.getTitle()?H.getTitle():u);return u};var Y=this.actions.get("print");Y.setEnabled(!mxClient.IS_IOS||!navigator.standalone);Y.visible=Y.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1,"insertText"),this.keyHandler.bindAction(83,!1,"insertNote"),
this.keyHandler.bindAction(68,!1,"insertRectangle"),this.keyHandler.bindAction(70,!1,"insertEllipse"),this.keyHandler.bindAction(76,!1,"insertLink"),this.keyHandler.bindAction(82,!1,"insertRhombus"),this.keyHandler.bindAction(67,!1,"insertEdge"),this.keyHandler.bindAction(88,!1,"insertFreehand"),this.keyHandler.bindAction(75,!0,"toggleShapes",!0),this.keyHandler.bindAction(54,!0,"adaptiveColors",!0),this.altShiftActions[81]="copyStyle",this.altShiftActions[87]="pasteStyle",this.altShiftActions[83]=
"synchronize","1"==urlParams.embedInline&&f.addListener(mxEvent.ESCAPE,function(u,H){null!=H&&f.isEnabled()&&!f.isEditing()&&null!=H.getProperty("event")&&c.actions.get("exit").funct()}),this.installImagePasteHandler(),this.installNativeClipboardHandler();this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateUserElement()}));this.spinner=this.createSpinner(null,null,24);Graph.fileSupport&&f.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(u){var H=f.cellEditor.text2,
U=null;null!=H&&(mxEvent.addListener(H,"dragleave",function(J){null!=U&&(U.parentNode.removeChild(U),U=null);J.stopPropagation();J.preventDefault()}),mxEvent.addListener(H,"dragover",mxUtils.bind(this,function(J){null==U&&(!mxClient.IS_IE||10<document.documentMode)&&(U=this.highlightElement(H));J.stopPropagation();J.preventDefault()})),mxEvent.addListener(H,"drop",mxUtils.bind(this,function(J){null!=U&&(U.parentNode.removeChild(U),U=null);if(0<J.dataTransfer.files.length)this.importFiles(J.dataTransfer.files,
-0,0,this.maxImageSize,function(aa,ba,ja,oa,qa,ra){f.insertImage(aa,qa,ra)},function(){},function(aa){return"image/"==aa.type.substring(0,6)},function(aa){for(var ba=0;ba<aa.length;ba++)aa[ba]()},mxEvent.isControlDown(J));else if(0<=mxUtils.indexOf(J.dataTransfer.types,"text/uri-list")){var V=J.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(V)?this.loadImage(decodeURIComponent(V),mxUtils.bind(this,function(aa){var ba=Math.max(1,aa.width);aa=Math.max(1,aa.height);var ja=
-this.maxImageSize;ja=Math.min(1,Math.min(ja/Math.max(1,ba)),ja/Math.max(1,aa));f.insertImage(decodeURIComponent(V),ba*ja,aa*ja)})):document.execCommand("insertHTML",!1,J.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(J.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,J.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(J.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,J.dataTransfer.getData("text/plain"));J.stopPropagation();J.preventDefault()})))}));
+0,0,this.maxImageSize,function(aa,ba,ja,oa,qa,ra){f.insertImage(aa,qa,ra)},function(){},function(aa){return"image/"==aa.type.substring(0,6)},function(aa){for(var ba=0;ba<aa.length;ba++)aa[ba]()},mxEvent.isControlDown(J));else if(0<=mxUtils.indexOf(J.dataTransfer.types,"text/uri-list")){var W=J.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(W)?this.loadImage(decodeURIComponent(W),mxUtils.bind(this,function(aa){var ba=Math.max(1,aa.width);aa=Math.max(1,aa.height);var ja=
+this.maxImageSize;ja=Math.min(1,Math.min(ja/Math.max(1,ba)),ja/Math.max(1,aa));f.insertImage(decodeURIComponent(W),ba*ja,aa*ja)})):document.execCommand("insertHTML",!1,J.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(J.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,J.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(J.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,J.dataTransfer.getData("text/plain"));J.stopPropagation();J.preventDefault()})))}));
if(Editor.isSettingsEnabled()){Y=this.editor.graph.view;var fa=mxSettings.getUnit();Y.setUnit(fa);Editor.pageSizeUnit=fa==mxConstants.METERS?mxConstants.MILLIMETERS:fa;Y.addListener("unitChanged",function(u,H){u=H.getProperty("unit");mxSettings.setUnit(u);mxSettings.save();Editor.pageSizeUnit=u==mxConstants.METERS?mxConstants.MILLIMETERS:u});this.ruler=!this.canvasSupported||9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?
null:new mxDualRuler(this,Y.unit);this.refresh()}if("1"==urlParams.styledev){Y=document.getElementById("geFooter");null!=Y&&(this.styleInput=document.createElement("input"),this.styleInput.setAttribute("type","text"),this.styleInput.style.position="absolute",this.styleInput.style.top="14px",this.styleInput.style.left="2px",this.styleInput.style.width="98%",this.styleInput.style.visibility="hidden",this.styleInput.style.opacity="0.9",mxEvent.addListener(this.styleInput,"change",mxUtils.bind(this,function(){this.editor.graph.getModel().setStyle(this.editor.graph.getSelectionCell(),
this.styleInput.value)})),Y.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(u,H){0<this.editor.graph.getSelectionCount()?(u=this.editor.graph.getSelectionCell(),u=this.editor.graph.getModel().getStyle(u),this.styleInput.value=u||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var Z=this.isSelectionAllowed;this.isSelectionAllowed=function(u){return mxEvent.getSource(u)==this.styleInput?
!0:Z.apply(this,arguments)}}Y=document.getElementById("geInfo");null!=Y&&Y.parentNode.removeChild(Y);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var l=null;mxEvent.addListener(f.container,"dragleave",function(u){f.isEnabled()&&(null!=l&&(l.parentNode.removeChild(l),l=null),u.stopPropagation(),u.preventDefault())});mxEvent.addListener(f.container,"dragover",mxUtils.bind(this,function(u){null==l&&(!mxClient.IS_IE||10<document.documentMode)&&(l=this.highlightElement(f.container));
-null!=this.sidebar&&this.sidebar.hideTooltip();u.stopPropagation();u.preventDefault()}));mxEvent.addListener(f.container,"drop",mxUtils.bind(this,function(u){null!=l&&(l.parentNode.removeChild(l),l=null);if(f.isEnabled()){var H=mxUtils.convertPoint(f.container,mxEvent.getClientX(u),mxEvent.getClientY(u)),U=u.dataTransfer.files,J=f.view.translate,V=f.view.scale,aa=H.x/V-J.x,ba=H.y/V-J.y;if(0<U.length)"1"!=urlParams.embed&&mxEvent.isShiftDown(u)?(this.isBlankFile()&&!this.canUndo()&&null!=this.getCurrentFile()&&
+null!=this.sidebar&&this.sidebar.hideTooltip();u.stopPropagation();u.preventDefault()}));mxEvent.addListener(f.container,"drop",mxUtils.bind(this,function(u){null!=l&&(l.parentNode.removeChild(l),l=null);if(f.isEnabled()){var H=mxUtils.convertPoint(f.container,mxEvent.getClientX(u),mxEvent.getClientY(u)),U=u.dataTransfer.files,J=f.view.translate,W=f.view.scale,aa=H.x/W-J.x,ba=H.y/W-J.y;if(0<U.length)"1"!=urlParams.embed&&mxEvent.isShiftDown(u)?(this.isBlankFile()&&!this.canUndo()&&null!=this.getCurrentFile()&&
this.fileLoaded(null),this.openFiles(U,!0)):(mxEvent.isAltDown(u)&&(ba=aa=null),this.importFiles(U,aa,ba,this.maxImageSize,null,null,null,null,mxEvent.isControlDown(u),null,null,mxEvent.isShiftDown(u),u));else{mxEvent.isAltDown(u)&&(ba=aa=0);var ja=0<=mxUtils.indexOf(u.dataTransfer.types,"text/uri-list")?u.dataTransfer.getData("text/uri-list"):null;H=this.extractGraphModelFromEvent(u,null!=this.pages);if(null!=H)f.setSelectionCells(this.importXml(H,aa,ba,!0));else if(0<=mxUtils.indexOf(u.dataTransfer.types,
"text/html")){var oa=u.dataTransfer.getData("text/html");H=document.createElement("div");H.innerHTML=Graph.sanitizeHtml(oa);var qa=null;U=H.getElementsByTagName("img");null!=U&&1==U.length?(oa=U[0].getAttribute("src"),null==oa&&(oa=U[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(oa)||(qa=!0)):(U=H.getElementsByTagName("a"),null!=U&&1==U.length?oa=U[0].getAttribute("href"):(H=H.getElementsByTagName("pre"),null!=H&&1==H.length&&(oa=mxUtils.getTextContent(H[0]))));var ra=!0,ua=mxUtils.bind(this,
function(){f.setSelectionCells(this.insertTextAt(oa,aa,ba,!0,qa,null,ra,mxEvent.isControlDown(u)))});qa&&null!=oa&&oa.length>this.resampleThreshold?this.confirmImageResize(function(za){ra=za;ua()},mxEvent.isControlDown(u)):ua()}else null!=ja&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(ja)?this.loadImage(decodeURIComponent(ja),mxUtils.bind(this,function(za){var Ba=Math.max(1,za.width);za=Math.max(1,za.height);var Ca=this.maxImageSize;Ca=Math.min(1,Math.min(Ca/Math.max(1,Ba)),Ca/Math.max(1,za));f.setSelectionCell(f.insertVertex(null,
null,"",aa,ba,Ba*Ca,za*Ca,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+ja+";"))}),mxUtils.bind(this,function(za){f.setSelectionCells(this.insertTextAt(ja,aa,ba,!0))})):0<=mxUtils.indexOf(u.dataTransfer.types,"text/plain")&&f.setSelectionCells(this.insertTextAt(u.dataTransfer.getData("text/plain"),aa,ba,!0))}}u.stopPropagation();u.preventDefault()}),!1)}this.initPages();"1"==urlParams.embed&&this.initializeEmbedMode();this.addListener("currentThemeChanged",
mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();this.refresh()}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&f.view.validateBackground()});f.addListener("enabledChanged",mxUtils.bind(this,function(){f.isEnabled()||this.hideShapePicker()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var u=parseInt(this.div.offsetLeft),H=
-parseInt(this.div.offsetWidth),U=c.embedViewport.x+c.embedViewport.width,J=parseInt(this.div.offsetTop),V=parseInt(this.div.offsetHeight),aa=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(u,U-H))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(J,aa-V))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};
+parseInt(this.div.offsetWidth),U=c.embedViewport.x+c.embedViewport.width,J=parseInt(this.div.offsetTop),W=parseInt(this.div.offsetHeight),aa=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(u,U-H))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(J,aa-W))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};
if(!this.editor.chromeless||this.editor.editable)if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme)Y=Editor.currentTheme,Editor.currentTheme="",this.doSetCurrentTheme(Y,mxUtils.bind(this,function(){"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<Editor.smallScreenWidth&&this.toggleFormatPanel(!1);this.fireEvent(new mxEventObject("themeInitialized"))}));Y=!1;null!=urlParams.dark?Y=urlParams.dark:
-"dark"==Editor.currentTheme?Y=!0:Editor.isSettingsEnabled()&&"1"!=urlParams.embed&&(Y=mxSettings.settings.darkMode);"auto"==Y&&this.isAutoDarkModeSupported()&&(Y=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===typeof Y?"1"==Y:Y);if(this.isAutoDarkModeSupported())try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(u){this.isAutoDarkMode()&&this.setDarkMode(u.matches)}))}catch(u){this.actions.get("autoMode").setEnabled(!1)}"1"==
+(Y="dark"==Editor.currentTheme,!Editor.isSettingsEnabled()||"1"==urlParams.embed||Y&&"auto"!=mxSettings.settings.darkMode||(Y=mxSettings.settings.darkMode));"auto"==Y&&this.isAutoDarkModeSupported()&&(Y=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===typeof Y?"1"==Y:Y);if(this.isAutoDarkModeSupported())try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(u){this.isAutoDarkMode()&&this.setDarkMode(u.matches)}))}catch(u){this.actions.get("autoMode").setEnabled(!1)}"1"==
urlParams["high-contrast"]?this.setHighContrast(!0):Editor.isSettingsEnabled()&&!this.editor.graph.isLightboxView()&&null!=mxSettings.settings.highContrast&&this.setHighContrast(mxSettings.settings.highContrast);this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(u,H){f.enableFlowAnimation=Editor.enableAnimations;f.refresh()}));f.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&
-c.editor.loadFonts()};var B=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,f=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=f&&c<f?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<f&&c>=f&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));this.lastWindowWidth=
-c}B.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var c=this.sketchFooterMenuElt,f=this.sketchMainMenuElt,k=this.sketchPickerMenuElt,A=this.editor.graph;k.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(O){mxEvent.getSource(O)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(O),mxEvent.getClientY(O)),this.sendEmbeddedSvgExport())}));document.body.style.cursor="text";var z=
-document.createElement("div");z.style.position="absolute";z.style.width="10px";z.style.height="10px";z.style.borderRadius="5px";z.style.border="1px solid gray";z.style.background="#ffffff";z.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(z);this.bottomResizer=z;var C=null,I=null,L=null,K=null;mxEvent.addGestureListeners(z,mxUtils.bind(this,function(O){K=parseInt(this.diagramContainer.style.height);I=mxEvent.getClientY(O);A.popupMenuHandler.hideMenu();mxEvent.consume(O)}));
-z=z.cloneNode(!1);z.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(z);this.rightResizer=z;mxEvent.addGestureListeners(z,mxUtils.bind(this,function(O){L=parseInt(this.diagramContainer.style.width);C=mxEvent.getClientX(O);A.popupMenuHandler.hideMenu();mxEvent.consume(O)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(O){var da=!1;null!=C&&(this.diagramContainer.style.width=Math.max(20,L+mxEvent.getClientX(O)-C)+"px",da=!0);null!=I&&(this.diagramContainer.style.height=
+c.editor.loadFonts()};var A=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,f=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=f&&c<f?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<f&&c>=f&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));this.lastWindowWidth=
+c}A.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var c=this.sketchFooterMenuElt,f=this.sketchMainMenuElt,k=this.sketchPickerMenuElt,B=this.editor.graph;k.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(O){mxEvent.getSource(O)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(O),mxEvent.getClientY(O)),this.sendEmbeddedSvgExport())}));document.body.style.cursor="text";var z=
+document.createElement("div");z.style.position="absolute";z.style.width="10px";z.style.height="10px";z.style.borderRadius="5px";z.style.border="1px solid gray";z.style.background="#ffffff";z.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(z);this.bottomResizer=z;var C=null,I=null,L=null,K=null;mxEvent.addGestureListeners(z,mxUtils.bind(this,function(O){K=parseInt(this.diagramContainer.style.height);I=mxEvent.getClientY(O);B.popupMenuHandler.hideMenu();mxEvent.consume(O)}));
+z=z.cloneNode(!1);z.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(z);this.rightResizer=z;mxEvent.addGestureListeners(z,mxUtils.bind(this,function(O){L=parseInt(this.diagramContainer.style.width);C=mxEvent.getClientX(O);B.popupMenuHandler.hideMenu();mxEvent.consume(O)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(O){var da=!1;null!=C&&(this.diagramContainer.style.width=Math.max(20,L+mxEvent.getClientX(O)-C)+"px",da=!0);null!=I&&(this.diagramContainer.style.height=
Math.max(20,K+mxEvent.getClientY(O)-I)+"px",da=!0);da&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}),function(O){null==C&&null==I||mxEvent.consume(O);I=C=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius="4px";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility=
"hidden";this.sketchMenubarElt.style.display="none";f.style.visibility="hidden";c.style.visibility="hidden";k.style.display="none";this.addListener("editInlineStart",mxUtils.bind(this,function(O){this.inlineSizeChanged();this.fitWindows()}));this.addListener("editInlineStop",mxUtils.bind(this,function(O){this.diagramContainer.style.width="10px";this.diagramContainer.style.height="10px";this.diagramContainer.style.border="";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility=
-"hidden";f.style.visibility="hidden";c.style.visibility="hidden";k.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var c=this.editor.graph;c.container.addEventListener("paste",mxUtils.bind(this,function(f){if(!mxEvent.isConsumed(f))try{for(var k=f.clipboardData||f.originalEvent.clipboardData,A=!1,z=0;z<k.types.length;z++)if("text/"===k.types[z].substring(0,5)){A=!0;break}if(!A){var C=
-k.items;for(index in C){var I=C[index];if("file"===I.kind){if(c.isEditing())this.importFiles([I.getAsFile()],0,0,this.maxImageSize,function(K,O,da,ea,ca,W){c.insertImage(K,ca,W)},function(){},function(K){return"image/"==K.type.substring(0,6)},function(K){for(var O=0;O<K.length;O++)K[O]()});else{var L=this.editor.graph.getInsertPoint();this.importFiles([I.getAsFile()],L.x,L.y,this.maxImageSize);mxEvent.consume(f)}break}}}}catch(K){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=function(){function c(){window.setTimeout(function(){k.innerHTML=
+"hidden";f.style.visibility="hidden";c.style.visibility="hidden";k.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var c=this.editor.graph;c.container.addEventListener("paste",mxUtils.bind(this,function(f){if(!mxEvent.isConsumed(f))try{for(var k=f.clipboardData||f.originalEvent.clipboardData,B=!1,z=0;z<k.types.length;z++)if("text/"===k.types[z].substring(0,5)){B=!0;break}if(!B){var C=
+k.items;for(index in C){var I=C[index];if("file"===I.kind){if(c.isEditing())this.importFiles([I.getAsFile()],0,0,this.maxImageSize,function(K,O,da,ea,ca,V){c.insertImage(K,ca,V)},function(){},function(K){return"image/"==K.type.substring(0,6)},function(K){for(var O=0;O<K.length;O++)K[O]()});else{var L=this.editor.graph.getInsertPoint();this.importFiles([I.getAsFile()],L.x,L.y,this.maxImageSize);mxEvent.consume(f)}break}}}}catch(K){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=function(){function c(){window.setTimeout(function(){k.innerHTML=
"&nbsp;";k.focus();document.execCommand("selectAll",!1,null)},0)}var f=this.editor.graph,k=document.createElement("div");k.setAttribute("autocomplete","off");k.setAttribute("autocorrect","off");k.setAttribute("autocapitalize","off");k.setAttribute("spellcheck","false");k.style.textRendering="optimizeSpeed";k.style.fontFamily="monospace";k.style.wordBreak="break-all";k.style.background="transparent";k.style.color="transparent";k.style.position="absolute";k.style.whiteSpace="nowrap";k.style.overflow=
-"hidden";k.style.display="block";k.style.fontSize="1";k.style.zIndex="-1";k.style.resize="none";k.style.outline="none";k.style.width="1px";k.style.height="1px";mxUtils.setOpacity(k,0);k.contentEditable=!0;k.innerHTML="&nbsp;";var A=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(C){var I=mxEvent.getSource(C);null==f.container||!f.isEnabled()||f.isMouseDown||
-f.isEditing()||null!=this.dialog||"INPUT"==I.nodeName||"TEXTAREA"==I.nodeName||"true"==I.contentEditable||224!=C.keyCode&&(mxClient.IS_MAC||17!=C.keyCode)&&(!mxClient.IS_MAC||91!=C.keyCode&&93!=C.keyCode)||A||(k.style.left=f.container.scrollLeft+10+"px",k.style.top=f.container.scrollTop+10+"px",C=f.container.scrollLeft,I=f.container.scrollTop,f.container.appendChild(k),A=!0,k.focus(),document.execCommand("selectAll",!1,null),f.container.scrollLeft=C,f.container.scrollTop=I)}));mxEvent.addListener(document,
-"keyup",mxUtils.bind(this,function(C){var I=C.keyCode;window.setTimeout(mxUtils.bind(this,function(){!A||224!=I&&17!=I&&91!=I&&93!=I||(A=!1,f.isEditing()||null!=this.dialog||null==f.container||f.container.focus(),k.parentNode.removeChild(k),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(k,"copy",mxUtils.bind(this,function(C){if(f.isEnabled())try{mxClipboard.copy(f),this.copyCells(k),c()}catch(I){this.handleError(I)}}));mxEvent.addListener(k,"cut",mxUtils.bind(this,function(C){if(f.isEnabled())try{mxClipboard.copy(f),
+"hidden";k.style.display="block";k.style.fontSize="1";k.style.zIndex="-1";k.style.resize="none";k.style.outline="none";k.style.width="1px";k.style.height="1px";mxUtils.setOpacity(k,0);k.contentEditable=!0;k.innerHTML="&nbsp;";var B=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(C){var I=mxEvent.getSource(C);null==f.container||!f.isEnabled()||f.isMouseDown||
+f.isEditing()||null!=this.dialog||"INPUT"==I.nodeName||"TEXTAREA"==I.nodeName||"true"==I.contentEditable||224!=C.keyCode&&(mxClient.IS_MAC||17!=C.keyCode)&&(!mxClient.IS_MAC||91!=C.keyCode&&93!=C.keyCode)||B||(k.style.left=f.container.scrollLeft+10+"px",k.style.top=f.container.scrollTop+10+"px",C=f.container.scrollLeft,I=f.container.scrollTop,f.container.appendChild(k),B=!0,k.focus(),document.execCommand("selectAll",!1,null),f.container.scrollLeft=C,f.container.scrollTop=I)}));mxEvent.addListener(document,
+"keyup",mxUtils.bind(this,function(C){var I=C.keyCode;window.setTimeout(mxUtils.bind(this,function(){!B||224!=I&&17!=I&&91!=I&&93!=I||(B=!1,f.isEditing()||null!=this.dialog||null==f.container||f.container.focus(),k.parentNode.removeChild(k),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(k,"copy",mxUtils.bind(this,function(C){if(f.isEnabled())try{mxClipboard.copy(f),this.copyCells(k),c()}catch(I){this.handleError(I)}}));mxEvent.addListener(k,"cut",mxUtils.bind(this,function(C){if(f.isEnabled())try{mxClipboard.copy(f),
this.copyCells(k,!0),c()}catch(I){this.handleError(I)}}));mxEvent.addListener(k,"paste",mxUtils.bind(this,function(C){if(f.isEnabled()&&!f.isCellLocked(f.getDefaultParent()))try{if(k.innerHTML="&nbsp;",k.focus(),null!=C.clipboardData&&(Graph.removePasteFormatting(k.firstChild),this.pasteCells(C,k,!0,!0)),!mxEvent.isConsumed(C)){var I=f.container.scrollLeft,L=f.container.scrollTop;window.setTimeout(mxUtils.bind(this,function(){try{f.container.scrollLeft=I,f.container.scrollTop=L,Graph.removePasteFormatting(k.firstChild),
this.pasteCells(C,k,!1,!0)}catch(K){this.handleError(K)}}),0)}}catch(K){this.handleError(K)}}),!0);var z=this.isSelectionAllowed;this.isSelectionAllowed=function(C){return mxEvent.getSource(C)==k?!0:z.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,f){mxSettings.setUi(c);(f=this.doSetCurrentTheme(c)||f)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(c){return""==c||"dark"==c||"default"==c||"kennedy"==c||null==c};EditorUi.prototype.doSetCurrentTheme=
-function(c,f){function k(L){return"simple"==L||"sketch"==L}var A=Editor.currentTheme,z=k(A)&&this.isDefaultTheme(c)||this.isDefaultTheme(A)&&k(c),C=z&&"sketch"!=c&&"sketch"!=A;if(z&&!this.themeSwitching){var I=this.saveScrollState();this.editor.graph.stopEditing(!1);this.container.style.opacity=0;Editor.currentTheme=c;this.themeSwitching=!0;window.setTimeout(mxUtils.bind(this,function(){k(A)&&this.isDefaultTheme(c)?(this.menubarContainer.style.display="",this.toolbarContainer.style.display="block",
-this.tabContainer.style.display="flex",this.hsplit.style.display="block",this.menubarHeight=App.prototype.menubarHeight):this.isDefaultTheme(A)&&k(c)&&(this.menubarContainer.style.display="none",this.toolbarContainer.style.display="none",this.menubarHeight=0,"simple"!=c?(this.tabContainer.style.display="none",this.hsplit.style.display="none",this.hsplitPosition=0):this.tabContainer.style.display="flex");this.switchTheme(c);this.fireEvent(new mxEventObject("currentThemeChanged"));this.editor.fireEvent(new mxEventObject("statusChanged"));
+function(c,f){function k(L){return"simple"==L||"sketch"==L}var B=Editor.currentTheme,z=k(B)&&this.isDefaultTheme(c)||this.isDefaultTheme(B)&&k(c),C=z&&"sketch"!=c&&"sketch"!=B;if(z&&!this.themeSwitching){var I=this.saveScrollState();this.editor.graph.stopEditing(!1);this.container.style.opacity=0;Editor.currentTheme=c;this.themeSwitching=!0;window.setTimeout(mxUtils.bind(this,function(){k(B)&&this.isDefaultTheme(c)?(this.menubarContainer.style.display="",this.toolbarContainer.style.display="block",
+this.tabContainer.style.display="flex",this.hsplit.style.display="block",this.menubarHeight=App.prototype.menubarHeight):this.isDefaultTheme(B)&&k(c)&&(this.menubarContainer.style.display="none",this.toolbarContainer.style.display="none",this.menubarHeight=0,"simple"!=c?(this.tabContainer.style.display="none",this.hsplit.style.display="none",this.hsplitPosition=0):this.tabContainer.style.display="flex");this.switchTheme(c);this.fireEvent(new mxEventObject("currentThemeChanged"));this.editor.fireEvent(new mxEventObject("statusChanged"));
this.editor.graph.refresh();this.restoreScrollState(I);this.container.style.opacity="";delete this.themeSwitching;isLocalStorage&&k(c)&&this.setTabContainerVisible(null!=mxSettings.settings.pages?mxSettings.settings.pages:!0);null!=f&&f()}),0)}return C};EditorUi.prototype.saveScrollState=function(){var c=this.editor.graph.view.translate,f=this.diagramContainer.scrollLeft,k=this.diagramContainer.scrollTop;null!=this.embedViewport&&(Editor.inlineFullscreen?(f-=this.embedViewport.x,k-=this.embedViewport.y):
(f+=this.embedViewport.x,k+=this.embedViewport.y));return{x:f,y:k,tx:c.x,ty:c.y}};EditorUi.prototype.restoreScrollState=function(c){var f=this.editor.graph.view.scale,k=this.editor.graph.view.translate;this.diagramContainer.scrollLeft=c.x+(k.x-c.tx)*f;this.diagramContainer.scrollTop=c.y+(k.y-c.ty)*f};EditorUi.prototype.installStatusMinimizer=function(c){c=null!=c?c:this.statusContainer.parentNode;var f=!1;mxEvent.addListener(c,"mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&
-""!=this.editor.getStatus()&&(this.statusContainer.style.display="inline-flex")}));mxEvent.addListener(c,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||f||(this.statusContainer.style.display="none")}));var k=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var A=null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:null;f=null!=A&&null!=A.getAttribute("class");if(!f&&null!=A){A=
-A.getAttribute("title");var z=this.getCurrentFile();z=null!=z?z.savingStatusKey:DrawioFile.prototype.savingStatusKey;A==mxResources.get(z)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(z))+'..."src="'+Editor.tailSpin+'"></div>',f=!0)}this.statusContainer.style.display="none";A=32>=c.clientWidth;c.style.visibility=A&&""==this.editor.getStatus()?"hidden":"";if(A||f)this.statusContainer.style.display="inline-flex",f=!0}else"simple"==Editor.currentTheme?
+""!=this.editor.getStatus()&&(this.statusContainer.style.display="inline-flex")}));mxEvent.addListener(c,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||f||(this.statusContainer.style.display="none")}));var k=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var B=null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:null;f=null!=B&&null!=B.getAttribute("class");if(!f&&null!=B){B=
+B.getAttribute("title");var z=this.getCurrentFile();z=null!=z?z.savingStatusKey:DrawioFile.prototype.savingStatusKey;B==mxResources.get(z)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(z))+'..."src="'+Editor.tailSpin+'"></div>',f=!0)}this.statusContainer.style.display="none";B=32>=c.clientWidth;c.style.visibility=B&&""==this.editor.getStatus()?"hidden":"";if(B||f)this.statusContainer.style.display="inline-flex",f=!0}else"simple"==Editor.currentTheme?
(this.statusContainer.style.display="inline-flex",this.statusContainer.style.display=0==this.statusContainer.clientWidth?"none":"inline-flex"):this.statusContainer.style.display="inline-flex"});this.editor.addListener("statusChanged",k);k()};EditorUi.prototype.switchTheme=function(c){this.isDefaultTheme(c)&&null!=this.formatContainer&&(this.formatContainer.style.left="",this.formatContainer.style.zIndex="1",this.formatContainer.style.border="",null!=this.footerContainer&&this.footerContainer.parentNode!=
this.formatContainer.parentNode&&this.footerContainer.parentNode.insertBefore(this.formatContainer,this.footerContainer),null!=this.sidebarContainer&&this.formatContainer.parentNode!=this.sidebarContainer.parentNode&&this.formatContainer.parentNode.insertBefore(this.sidebarContainer,this.formatContainer));this.destroyWindows();this.updateUserElement();this.updateDefaultStyles();this.switchThemeConstants(c);this.switchCssForTheme(c);this.createWrapperForTheme(c);this.createMainMenuForTheme(c);this.createFooterMenuForTheme(c);
this.createPickerMenuForTheme(c);this.createMenubarForTheme(c);this.sidebarContainer.style.display="";if("sketch"==c){this.createFormatWindow();this.formatContainer.style.left="0px";this.formatContainer.style.top="0px";this.formatContainer.style.width="";this.formatContainer.style.zIndex="";this.formatContainer.style.border="none";var f=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);this.createShapesWindow();this.sidebarContainer.className="";this.sidebarContainer.style.position=
@@ -3809,32 +3824,32 @@ EditorUi.prototype.createWrapperForTheme=function(c){null!=this.sketchWrapperElt
function(c){};EditorUi.prototype.createPickerMenuForTheme=function(c){};EditorUi.prototype.getNetworkStatus=function(){var c=null;if(this.isOffline(!0))c=mxResources.get("offline");else{var f=this.getCurrentFile();null!=f&&(f.invalidChecksum?c=mxResources.get("error")+": "+mxResources.get("checksum"):null==f.sync||f.sync.enabled&&f.sync.isRealtimeActive()||"atlassian"==this.getServiceName()?null==f.sync||f.sync.isConnected()?f.isRealtimeEnabled()&&f.isRealtimeSupported()&&1<f.getRealtimeState()&&
(c=f.getRealtimeError(),c=mxResources.get("realtimeCollaboration")+": "+(null!=c&&null!=c.message?c.message:mxResources.get("error"))):c=mxResources.get("notConnected"):c=mxResources.get("realtimeCollaboration")+": "+mxResources.get("disabled"))}return c};EditorUi.prototype.createMenubarForTheme=function(c){null!=this.statusContainer&&(this.statusContainer.style.flexGrow="",this.statusContainer.style.flexShrink="",this.statusContainer.style.width="",this.statusContainer.style.marginTop="",this.statusContainer.style.justifyContent=
"",this.statusContainer.style.opacity="",this.menubar.container.appendChild(this.statusContainer));null!=this.userElement&&this.menubarContainer.appendChild(this.userElement);c=this.menubar.langIcon;null!=c&&(c.style.position="absolute",c.style.height="18px",c.style.width="18px",c.style.flexShrink="",c.style.opacity="",this.menubarContainer.parentNode.insertBefore(c,this.menubarContainer));null!=this.buttonContainer&&(this.buttonContainer.style.display="",this.buttonContainer.style.padding="",this.menubar.container.appendChild(this.buttonContainer))};
-EditorUi.prototype.createMenu=function(c,f,k,A){k=null!=k?k:"geToolbarButton";var z=this.menus.get(c);A=this.menubar.addMenu(mxResources.get(c),z.funct,null,A);A.className=k;A.style.display="inline-block";A.style.cursor="pointer";A.style.height="24px";A.setAttribute("title",mxResources.get(c));this.menus.menuCreated(z,A,k);null!=f&&(A.style.backgroundImage="url("+f+")",A.style.backgroundPosition="center center",A.style.backgroundRepeat="no-repeat",A.style.backgroundSize="100% 100%",A.style.width=
-"24px",A.innerText="");return A};EditorUi.prototype.createToolbarButton=function(c,f,k,A){A=null!=A?A:24;var z=document.createElement("a");z.className="geToolbarButton geAdaptiveAsset";z.setAttribute("title",f);z.style.backgroundImage="url("+c+")";z.style.backgroundPosition="center center";z.style.backgroundRepeat="no-repeat";z.style.backgroundSize="100% 100%";z.style.display="inline-block";z.style.cursor="pointer";z.style.marginLeft="6px";z.style.width=A+"px";z.style.height=A+"px";z.style.flexShrink=
-"0";z.style.flexGrow="0";null!=k&&(mxEvent.addListener(z,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(C){C.preventDefault()})),mxEvent.addListener(z,"click",function(C){"disabled"!=z.getAttribute("disabled")&&k(C);mxEvent.consume(C)}));return z};EditorUi.prototype.createMenuItem=function(c,f,k){var A=this.actions.get(c),z=null!=A?A.funct:null,C=this.createToolbarButton(f,mxResources.get(c)+(null!=A&&null!=A.shortcut?" ("+A.shortcut+")":""),z);null==A||k||(c=function(){A.isEnabled()?
-(C.removeAttribute("disabled"),C.style.cursor="pointer"):(C.setAttribute("disabled","disabled"),C.style.cursor="default");C.style.opacity=A.isEnabled()?"":"0.2"},this.editor.graph.addListener("enabledChanged",c),A.addListener("stateChanged",c),c());return C};EditorUi.prototype.createFormatWindow=function(){if(null==this.formatWindow){var c=Math.max(10,this.diagramContainer.parentNode.clientWidth-256),f="1"==urlParams.embedInline?580:"1"==urlParams.sketch?580:Math.min(566,this.editor.graph.container.clientHeight-
-10);this.formatWindow=new WrapperWindow(this,mxResources.get("format"),c,60,240,f,mxUtils.bind(this,function(z){z.appendChild(this.formatContainer)}));this.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.formatWindow.window.fit()}));var k=this.formatWindow.window.toggleMinimized,A=240;this.formatWindow.window.toggleMinimized=function(){k.apply(this,arguments);this.minimized?(A=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",
-this.div.style.left=parseInt(this.div.style.left)+A-140+"px"):(this.div.style.width=A+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-A+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(z){mxEvent.getSource(z)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}));this.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80);"sketch"==Editor.currentTheme?
+EditorUi.prototype.createMenu=function(c,f,k,B){k=null!=k?k:"geToolbarButton";var z=this.menus.get(c);B=this.menubar.addMenu(mxResources.get(c),z.funct,null,B);B.className=k;B.style.display="inline-block";B.style.cursor="pointer";B.style.height="24px";B.setAttribute("title",mxResources.get(c));this.menus.menuCreated(z,B,k);null!=f&&(B.style.backgroundImage="url("+f+")",B.style.backgroundPosition="center center",B.style.backgroundRepeat="no-repeat",B.style.backgroundSize="100% 100%",B.style.width=
+"24px",B.innerText="");return B};EditorUi.prototype.createToolbarButton=function(c,f,k,B){B=null!=B?B:24;var z=document.createElement("a");z.className="geToolbarButton geAdaptiveAsset";z.setAttribute("title",f);z.style.backgroundImage="url("+c+")";z.style.backgroundPosition="center center";z.style.backgroundRepeat="no-repeat";z.style.backgroundSize="100% 100%";z.style.display="inline-block";z.style.cursor="pointer";z.style.marginLeft="6px";z.style.width=B+"px";z.style.height=B+"px";z.style.flexShrink=
+"0";z.style.flexGrow="0";null!=k&&(mxEvent.addListener(z,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(C){C.preventDefault()})),mxEvent.addListener(z,"click",function(C){"disabled"!=z.getAttribute("disabled")&&k(C);mxEvent.consume(C)}));return z};EditorUi.prototype.createMenuItem=function(c,f,k){var B=this.actions.get(c),z=null!=B?B.funct:null,C=this.createToolbarButton(f,mxResources.get(c)+(null!=B&&null!=B.shortcut?" ("+B.shortcut+")":""),z);null==B||k||(c=function(){B.isEnabled()?
+(C.removeAttribute("disabled"),C.style.cursor="pointer"):(C.setAttribute("disabled","disabled"),C.style.cursor="default");C.style.opacity=B.isEnabled()?"":"0.2"},this.editor.graph.addListener("enabledChanged",c),B.addListener("stateChanged",c),c());return C};EditorUi.prototype.createFormatWindow=function(){if(null==this.formatWindow){var c=Math.max(10,this.diagramContainer.parentNode.clientWidth-256),f="1"==urlParams.embedInline?580:"1"==urlParams.sketch?580:Math.min(566,this.editor.graph.container.clientHeight-
+10);this.formatWindow=new WrapperWindow(this,mxResources.get("format"),c,60,240,f,mxUtils.bind(this,function(z){z.appendChild(this.formatContainer)}));this.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.formatWindow.window.fit()}));var k=this.formatWindow.window.toggleMinimized,B=240;this.formatWindow.window.toggleMinimized=function(){k.apply(this,arguments);this.minimized?(B=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",
+this.div.style.left=parseInt(this.div.style.left)+B-140+"px"):(this.div.style.width=B+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-B+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(z){mxEvent.getSource(z)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}));this.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80);"sketch"==Editor.currentTheme?
(c=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,(1200>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>c)&&this.formatWindow.window.toggleMinimized()):this.formatWindow.window.setVisible(!1)}};var G=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(c){var f=this.formatWindow;null!=f?f.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):G.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=
-function(c){if(this.isShapesPanelVisible()!=c){var f=EditorUi.prototype.hsplitPosition;0==f&&(f=this.defaultSidebarWidth);var k=this.hsplitPosition,A=mxUtils.bind(this,function(){this.hsplitPosition=z;this.refresh();this.diagramContainer.scrollLeft-=k-this.hsplitPosition}),z=c?f:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==z?"translateX(0)":"translateX(-100%)");0!=z&&A();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",
-0==z?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==z&&A()}),
+function(c){if(this.isShapesPanelVisible()!=c){var f=EditorUi.prototype.hsplitPosition;0==f&&(f=this.defaultSidebarWidth);var k=this.hsplitPosition,B=mxUtils.bind(this,function(){this.hsplitPosition=z;this.refresh();this.diagramContainer.scrollLeft-=k-this.hsplitPosition}),z=c?f:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==z?"translateX(0)":"translateX(-100%)");0!=z&&B();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",
+0==z?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==z&&B()}),
300)}),10)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var S=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():S.apply(this,arguments)};var F=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(c){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){c=null!=c?c:!0;if("1"!=urlParams.embedInline){var f=this.container.clientWidth;this.container==
-document.body&&(f=document.body.clientWidth||document.documentElement.clientWidth);var k=this.getDiagramContainerOffset();var A=k.x;var z=k.y;"simple"==Editor.currentTheme&&(z+=this.sketchMainMenuElt.offsetHeight);this.diagramContainer.style.top=z+"px";this.diagramContainer.style.bottom="0";"simple"==Editor.currentTheme?(this.hsplit.style.top=this.sketchMainMenuElt.offsetHeight+"px",this.sidebarContainer.style.top=this.hsplit.style.top,this.formatContainer.style.top=this.hsplit.style.top,f=Math.max(0,
-Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-this.formatWidth,Math.min(this.hsplitPosition,f-this.splitSize-40))),this.sidebarContainer.style.width=f+"px",this.diagramContainer.style.left=f+A+"px",this.tabContainer.style.left=f+"px",this.tabContainer.style.right=this.formatWidth+1+"px",this.sketchMainMenuElt.style.left="0px",this.sketchMainMenuElt.style.right="0px",this.hsplit.style.left=f+"px",this.diagramContainer.style.right=this.formatWidth+"px",
-this.formatContainer.style.width=this.formatWidth+"px",this.hsplit.style.bottom=this.tabContainer.offsetHeight+"px",this.diagramContainer.style.bottom=this.hsplit.style.bottom,this.checkTabScrollerOverflow()):(this.diagramContainer.style.left=k.x+"px",this.diagramContainer.style.right="0")}c&&this.editor.graph.sizeDidChange()}else F.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(c){var f=mxUtils.bind(this,function(A){A=this.createMenu(A,null,"geTitle");A.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";
-c.appendChild(A);return A});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=this.actions.get("newLibrary"))f=document.createElement("div"),f.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;",f.className="geTitle",mxUtils.write(f,mxResources.get("newLibrary")),c.appendChild(f),mxEvent.addListener(f,
+document.body&&(f=document.body.clientWidth||document.documentElement.clientWidth);var k=this.getDiagramContainerOffset();var B=k.x;var z=k.y;"simple"==Editor.currentTheme&&(z+=this.sketchMainMenuElt.offsetHeight);this.diagramContainer.style.top=z+"px";this.diagramContainer.style.bottom="0";"simple"==Editor.currentTheme?(this.hsplit.style.top=this.sketchMainMenuElt.offsetHeight+"px",this.sidebarContainer.style.top=this.hsplit.style.top,this.formatContainer.style.top=this.hsplit.style.top,f=Math.max(0,
+Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-this.formatWidth,Math.min(this.hsplitPosition,f-this.splitSize-40))),this.sidebarContainer.style.width=f+"px",this.diagramContainer.style.left=f+B+"px",this.tabContainer.style.left=f+"px",this.tabContainer.style.right=this.formatWidth+1+"px",this.sketchMainMenuElt.style.left="0px",this.sketchMainMenuElt.style.right="0px",this.hsplit.style.left=f+"px",this.diagramContainer.style.right=this.formatWidth+"px",
+this.formatContainer.style.width=this.formatWidth+"px",this.hsplit.style.bottom=this.tabContainer.offsetHeight+"px",this.diagramContainer.style.bottom=this.hsplit.style.bottom,this.checkTabScrollerOverflow()):(this.diagramContainer.style.left=k.x+"px",this.diagramContainer.style.right="0")}c&&this.editor.graph.sizeDidChange()}else F.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(c){var f=mxUtils.bind(this,function(B){B=this.createMenu(B,null,"geTitle");B.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";
+c.appendChild(B);return B});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=this.actions.get("newLibrary"))f=document.createElement("div"),f.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;",f.className="geTitle",mxUtils.write(f,mxResources.get("newLibrary")),c.appendChild(f),mxEvent.addListener(f,
"click",this.actions.get("newLibrary").funct),f=f.cloneNode(!1),f.style.left="50%",f.style.borderLeftStyle="solid",mxUtils.write(f,mxResources.get("openLibrary")),c.appendChild(f),mxEvent.addListener(f,"click",this.actions.get("openLibrary").funct);else{var k=f("newLibrary");k.style.fontSize="11px";k.style.left="0";k=f("openLibraryFrom");k.style.borderLeftStyle="solid";k.style.fontSize="11px";k.style.left="50%"}c.appendChild(this.sidebarContainer);c.style.overflow="hidden"};EditorUi.prototype.createShapesWindow=
-function(){if(null==this.sidebarWindow){var c=Math.min(this.diagramContainer.parentNode.clientWidth-10,218),f="1"==urlParams.embedInline?650:Math.min(this.diagramContainer.parentNode.clientHeight,650),k="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;this.sidebarWindow=new WrapperWindow(this,mxResources.get("shapes"),k&&"1"!=urlParams.embedInline?66:10,k&&"1"!=urlParams.embedInline?Math.max(30,(this.diagramContainer.parentNode.clientHeight-f)/2):56,c-6,f-6,mxUtils.bind(this,function(A){this.createShapesPanel(A)}));
+function(){if(null==this.sidebarWindow){var c=Math.min(this.diagramContainer.parentNode.clientWidth-10,218),f="1"==urlParams.embedInline?650:Math.min(this.diagramContainer.parentNode.clientHeight,650),k="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;this.sidebarWindow=new WrapperWindow(this,mxResources.get("shapes"),k&&"1"!=urlParams.embedInline?66:10,k&&"1"!=urlParams.embedInline?Math.max(30,(this.diagramContainer.parentNode.clientHeight-f)/2):56,c-6,f-6,mxUtils.bind(this,function(B){this.createShapesPanel(B)}));
this.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.sidebarWindow.window.fit()}));this.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90);this.sidebarWindow.window.setVisible(!1)}};EditorUi.prototype.setSketchMode=function(c){this.spinner.spin(document.body,mxResources.get("working")+"...")&&window.setTimeout(mxUtils.bind(this,function(){this.spinner.stop();this.doSetSketchMode(c);null==urlParams.rough&&(mxSettings.settings.sketchMode=c,mxSettings.save());
this.fireEvent(new mxEventObject("sketchModeChanged"))}),0)};EditorUi.prototype.setAndPersistDarkMode=function(c){var f=c;"auto"==c&&(f=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode(f);mxSettings.settings.darkMode=c;mxSettings.save();c=mxSettings.getUi();null==urlParams.ui&&"dark"==c&&this.setCurrentTheme("kennedy",!0)};EditorUi.prototype.setAndPersistLanguage=function(c){mxSettings.setLanguage(c);mxSettings.save();mxClient.language=c;mxResources.loadDefaultBundle=
!1;mxResources.add(RESOURCE_BASE)};EditorUi.prototype.setAndPersistHighContrast=function(c){this.setHighContrast(c);Editor.isSettingsEnabled()&&(mxSettings.settings.highContrast=c,mxSettings.save())};EditorUi.prototype.isHighContrast=function(){var c=document.getElementById("high-contrast-stylesheet");return null!=c&&window.matchMedia?(c=c.getAttribute("media"),"all"==c||"not all"!=c&&window.matchMedia("(forced-colors: active)").matches):!1};EditorUi.prototype.setHighContrast=function(c){var f=document.getElementById("high-contrast-stylesheet");
-if(null!=f&&window.matchMedia){var k=window.matchMedia("(forced-colors: active)").matches,A=f.getAttribute("media");(A="all"==A||"not all"!=A&&k)&&!c?f.setAttribute("media",k?"not all":"(forced-colors: active)"):!A&&c&&f.setAttribute("media",k?"(forced-colors: active)":"all")}};EditorUi.prototype.isRulerVisible=function(){return null!=this.ruler};EditorUi.prototype.setRulerVisible=function(c){var f=this.getDiagramContainerOffset();mxSettings.setRulerOn(c);mxSettings.save();c||null==this.ruler?c&&
+if(null!=f&&window.matchMedia){var k=window.matchMedia("(forced-colors: active)").matches,B=f.getAttribute("media");(B="all"==B||"not all"!=B&&k)&&!c?f.setAttribute("media",k?"not all":"(forced-colors: active)"):!B&&c&&f.setAttribute("media",k?"(forced-colors: active)":"all")}};EditorUi.prototype.isRulerVisible=function(){return null!=this.ruler};EditorUi.prototype.setRulerVisible=function(c){var f=this.getDiagramContainerOffset();mxSettings.setRulerOn(c);mxSettings.save();c||null==this.ruler?c&&
null==this.ruler&&(this.ruler=new mxDualRuler(this,this.editor.graph.view.unit)):(this.ruler.destroy(),this.ruler=null);this.refresh();this.fireEvent(new mxEventObject("rulerVisibleChanged"));c=this.getDiagramContainerOffset();this.diagramContainer.scrollLeft+=c.x-f.x;this.diagramContainer.scrollTop+=c.x-f.x};EditorUi.prototype.isAutoDarkModeSupported=function(){return null!=window.matchMedia};EditorUi.prototype.isAutoDarkMode=function(c){return!c&&"auto"==urlParams.dark||Editor.isSettingsEnabled()&&
"auto"==mxSettings.settings.darkMode};EditorUi.prototype.setDarkMode=function(c){Editor.darkMode=c;c=mxUtils.isAncestorNode(document.body,this.container)||null==this.editor?this.container:this.editor.graph.container;mxConstants.DROP_TARGET_COLOR=Editor.isDarkMode()?"#00ff00":"#0000ff";null!=c&&(Editor.isDarkMode()?(c.classList.add("geDarkMode"),c.style.colorScheme="dark"):(c.classList.remove("geDarkMode"),c.style.colorScheme="light"));null!=this.ruler&&this.ruler.updateStyle();this.fireEvent(new mxEventObject("darkModeChanged"))};
EditorUi.prototype.setPagesVisible=function(c){Editor.pagesVisible!=c&&(Editor.pagesVisible=c,mxSettings.settings.pagesVisible=c,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototype.setSidebarTitles=function(c,f){this.sidebar.sidebarTitles!=c&&(this.sidebar.sidebarTitles=c,this.sidebar.refresh(),Editor.isSettingsEnabled()&&f&&(mxSettings.settings.sidebarTitles=c,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.setInlineFullscreen=
-function(c){Editor.inlineFullscreen!=c&&(this.diagramContainer.setAttribute("data-scrollState",JSON.stringify(this.saveScrollState())),(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:c,rect:this.diagramContainer.getBoundingClientRect()}),"*"))};EditorUi.prototype.inlineSizeChanged=function(){var c=this.sketchFooterMenuElt,f=this.sketchMainMenuElt,k=this.sketchPickerMenuElt,A=this.editor.graph;if(Editor.inlineFullscreen)f.style.left="10px",f.style.top="10px",k.style.left=
+function(c){Editor.inlineFullscreen!=c&&(this.diagramContainer.setAttribute("data-scrollState",JSON.stringify(this.saveScrollState())),(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:c,rect:this.diagramContainer.getBoundingClientRect()}),"*"))};EditorUi.prototype.inlineSizeChanged=function(){var c=this.sketchFooterMenuElt,f=this.sketchMainMenuElt,k=this.sketchPickerMenuElt,B=this.editor.graph;if(Editor.inlineFullscreen)f.style.left="10px",f.style.top="10px",k.style.left=
"10px",k.style.top="60px",c.style.top="10px",c.style.right="12px",c.style.left="",null==this.diagramContainer.getAttribute("data-bounds")&&(this.diagramContainer.setAttribute("data-bounds",this.diagramContainer.style.top+" "+this.diagramContainer.style.left+" "+this.diagramContainer.style.width+" "+this.diagramContainer.style.height),this.diagramContainer.style.top="0px",this.diagramContainer.style.left="0px",this.diagramContainer.style.bottom="0px",this.diagramContainer.style.right="0px",this.diagramContainer.style.width=
-"",this.diagramContainer.style.height="");else{var z=this.diagramContainer.getAttribute("data-bounds");if(null!=z){this.diagramContainer.removeAttribute("data-bounds");A.getGraphBounds();var C=z.split(" ");A=mxUtils.getDocumentSize();this.diagramContainer.style.top=C[0];this.diagramContainer.style.left=C[1];z=parseInt(C[2]);C=parseInt(C[3]);z=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,z):z,A.width-80);C=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,C):C,A.height-
+"",this.diagramContainer.style.height="");else{var z=this.diagramContainer.getAttribute("data-bounds");if(null!=z){this.diagramContainer.removeAttribute("data-bounds");B.getGraphBounds();var C=z.split(" ");B=mxUtils.getDocumentSize();this.diagramContainer.style.top=C[0];this.diagramContainer.style.left=C[1];z=parseInt(C[2]);C=parseInt(C[3]);z=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,z):z,B.width-80);C=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,C):C,B.height-
80);this.diagramContainer.style.width=z+"px";this.diagramContainer.style.height=C+"px";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",rect:this.diagramContainer.getBoundingClientRect()}),"*")}f.style.left=this.diagramContainer.offsetLeft+"px";f.style.top=this.diagramContainer.offsetTop-f.offsetHeight-4+"px";k.style.display="";k.style.left=this.diagramContainer.offsetLeft-k.offsetWidth-4+"px";k.style.top=
this.diagramContainer.offsetTop+"px";c.style.left=this.diagramContainer.offsetLeft+this.diagramContainer.offsetWidth-c.offsetWidth+"px";c.style.top=f.style.top;c.style.right="";this.bottomResizer.style.left=this.diagramContainer.offsetLeft+(this.diagramContainer.offsetWidth-this.bottomResizer.offsetWidth)/2+"px";this.bottomResizer.style.top=this.diagramContainer.offsetTop+this.diagramContainer.offsetHeight-this.bottomResizer.offsetHeight/2-1+"px";this.rightResizer.style.left=this.diagramContainer.offsetLeft+
this.diagramContainer.offsetWidth-this.rightResizer.offsetWidth/2-1+"px";this.rightResizer.style.top=this.diagramContainer.offsetTop+(this.diagramContainer.offsetHeight-this.bottomResizer.offsetHeight)/2+"px"}this.bottomResizer.style.visibility=Editor.inlineFullscreen?"hidden":"";this.rightResizer.style.visibility=this.bottomResizer.style.visibility;f.style.visibility="";c.style.visibility=""};EditorUi.prototype.doSetSketchMode=function(c){Editor.sketchMode!=c&&(Editor.sketchMode=c,this.updateDefaultStyles())};
@@ -3843,77 +3858,77 @@ EditorUi.prototype.updateDefaultStyles=function(){var c=this.editor.graph;c.defa
"1",c.defaultEdgeStyle.rounded="0",c.defaultEdgeStyle.jettySize="auto",c.defaultEdgeStyle.orthogonalLoop="1",c.defaultEdgeStyle.endArrow="open",c.defaultEdgeStyle.endSize="14",c.defaultEdgeStyle.startSize="14",c.defaultEdgeStyle.sourcePerimeterSpacing="8",c.defaultEdgeStyle.targetPerimeterSpacing="8");if(null==Editor.config||null==Editor.config.defaultFonts){if(null==Editor.config||null==Editor.config.defaultVertexStyle&&null==Editor.config.defaultEdgeStyle){if("sketch"==Editor.currentTheme&&"1"!=
urlParams.embedInline||Editor.sketchMode)c.defaultVertexStyle.fontFamily=Editor.sketchFontFamily,c.defaultVertexStyle.fontSource=Editor.sketchFontSource,c.defaultEdgeStyle.fontFamily=Editor.sketchFontFamily,c.defaultEdgeStyle.fontSource=Editor.sketchFontSource;Editor.sketchMode&&(c.defaultVertexStyle.sketch="1",c.defaultVertexStyle.curveFitting=Editor.sketchDefaultCurveFitting,c.defaultVertexStyle.jiggle=Editor.sketchDefaultJiggle,c.defaultVertexStyle.hachureGap="4",c.defaultEdgeStyle.sketch="1",
c.defaultEdgeStyle.curveFitting=Editor.sketchDefaultCurveFitting,c.defaultEdgeStyle.jiggle=Editor.sketchDefaultJiggle,c.defaultEdgeStyle.hachureGap="4")}this.menus.defaultFonts="sketch"==Editor.currentTheme?Menus.prototype.defaultFonts.concat(Editor.sketchFonts):Menus.prototype.defaultFonts}c.currentVertexStyle=mxUtils.clone(c.defaultVertexStyle);c.currentEdgeStyle=mxUtils.clone(c.defaultEdgeStyle);this.clearDefaultStyle()};EditorUi.prototype.getLinkTitle=function(c){var f=Graph.prototype.getLinkTitle.apply(this,
-arguments);if(Graph.isPageLink(c)){var k=c.indexOf(",");0<k&&(f=this.getPageById(c.substring(k+1)),f=null!=f?f.getName():mxResources.get("pageNotFound"))}else"data:"==c.substring(0,5)&&(f=this.getCustomLinkTitle(c));return f};EditorUi.prototype.getCustomLinkTitle=function(c){var f=mxResources.get("action");if("data:action/json,"==c.substring(0,17))try{var k=JSON.parse(c.substring(17));null!=k&&null!=k.title&&(f=k.title)}catch(A){}return f};EditorUi.prototype.handleCustomLink=function(c,f){if(Graph.isPageLink(c))if(f=
+arguments);if(Graph.isPageLink(c)){var k=c.indexOf(",");0<k&&(f=this.getPageById(c.substring(k+1)),f=null!=f?f.getName():mxResources.get("pageNotFound"))}else"data:"==c.substring(0,5)&&(f=this.getCustomLinkTitle(c));return f};EditorUi.prototype.getCustomLinkTitle=function(c){var f=mxResources.get("action");if("data:action/json,"==c.substring(0,17))try{var k=JSON.parse(c.substring(17));null!=k&&null!=k.title&&(f=k.title)}catch(B){}return f};EditorUi.prototype.handleCustomLink=function(c,f){if(Graph.isPageLink(c))if(f=
c.indexOf(","),c=this.getPageById(c.substring(f+1)))this.selectPage(c);else throw Error(mxResources.get("pageNotFound")||"Page not found");else this.editor.graph.handleCustomLink(c,f)};EditorUi.prototype.installSettings=function(){if(Editor.isSettingsEnabled()){var c=this.editor.graph;Editor.pagesVisible=mxSettings.settings.pagesVisible;ColorDialog.recentColors=mxSettings.getRecentColors();if(isLocalStorage)try{window.addEventListener("storage",mxUtils.bind(this,function(f){f.key==mxSettings.key&&
(mxSettings.load(),ColorDialog.recentColors=mxSettings.getRecentColors(),this.menus.customFonts=mxSettings.getCustomFonts())}),!1)}catch(f){}this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]));this.menus.customFonts=mxSettings.getCustomFonts();this.addListener("customFontsChanged",mxUtils.bind(this,function(f,k){mxSettings.setCustomFonts(this.menus.customFonts);mxSettings.save()}));c.connectionHandler.setCreateTarget(mxSettings.isCreateTarget());this.fireEvent(new mxEventObject("copyConnectChanged"));
this.addListener("copyConnectChanged",mxUtils.bind(this,function(f,k){mxSettings.setCreateTarget(c.connectionHandler.isCreateTarget());mxSettings.save()}));c.pageFormat=null!=c.defaultPageFormat?c.defaultPageFormat:mxSettings.getPageFormat();this.addListener("pageFormatChanged",mxUtils.bind(this,function(f,k){mxSettings.setPageFormat(c.pageFormat);mxSettings.save()}));c.view.defaultDarkGridColor=mxSettings.getGridColor(!0);c.view.defaultGridColor=mxSettings.getGridColor(!1);c.view.gridColor="light-dark("+
c.view.defaultGridColor+", "+c.view.defaultDarkGridColor+")";this.addListener("gridColorChanged",mxUtils.bind(this,function(f,k){mxSettings.setGridColor(c.view.defaultGridColor,!1);mxSettings.setGridColor(c.view.defaultDarkGridColor,!0);mxSettings.save()}));if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(f,k){mxSettings.setAutosave(this.editor.autosave);mxSettings.save()})),this.editor.autosave=mxSettings.getAutosave();if(!this.editor.chromeless||
this.editor.editable)null!=mxSettings.settings.enableAnimations&&(Editor.enableAnimations=mxSettings.settings.enableAnimations),this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(f,k){mxSettings.settings.enableAnimations=Editor.enableAnimations;mxSettings.save()}));null!=this.sidebar&&(null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes?(this.sidebar.searchShapes(decodeURIComponent(urlParams["search-shapes"])),this.sidebar.showEntries("search")):(this.sidebar.showPalette("search",
mxSettings.settings.search),this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()})}};EditorUi.prototype.copyImage=function(c,f,k){try{null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,
-function(A,z){try{this.spinner.stop();var C=this.createImageDataUri(A,f,"png"),I=parseInt(z.getAttribute("width")),L=parseInt(z.getAttribute("height"));this.writeImageToClipboard(C,I,L,mxUtils.bind(this,function(K){this.handleError(K)}))}catch(K){this.handleError(K)}}),null,null,null,mxUtils.bind(this,function(A){this.spinner.stop();this.handleError(A)}),null,null,null!=k?k:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<c.length?
-c:null)}catch(A){this.handleError(A)}};EditorUi.prototype.copyCells=function(c,f){var k=this.editor.graph;if(k.isSelectionEmpty())c.innerText="";else{var A=mxUtils.sortCells(k.model.getTopmostCells(k.getSelectionCells())),z=mxUtils.getXml(k.encodeCells(A));mxUtils.setTextContent(c,encodeURIComponent(z));f?(k.removeCells(A,!1),k.lastPasteXml=null):(k.lastPasteXml=z,k.pasteCounter=0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeCipboard){var f=
-this.editor.graph;f.isSelectionEmpty()||(c=mxUtils.sortCells(f.getExportableCells(f.model.getTopmostCells(f.getSelectionCells()))),f=mxUtils.getXml(f.encodeCells(c)),navigator.clipboard.writeText(f))}return c};EditorUi.prototype.pasteXml=function(c,f,k,A,z){z=null!=z?z:!0;var C=this.editor.graph,I=null;C.lastPasteXml==c?C.pasteCounter++:(C.lastPasteXml=c,C.pasteCounter=0);var L=C.pasteCounter*C.gridSize;if(k||this.isCompatibleString(c))I=this.importXml(c,L,L),C.setSelectionCells(I);else if(f&&1==
-C.getSelectionCount()){z=C.getStartEditingCell(C.getSelectionCell(),A);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&"image"==C.getCurrentCellStyle(z)[mxConstants.STYLE_SHAPE])C.setCellStyles(mxConstants.STYLE_IMAGE,c,[z]);else{C.model.beginUpdate();try{C.labelChanged(z,c),Graph.isLink(c)&&C.setLinkForCell(z,c)}finally{C.model.endUpdate()}}C.setSelectionCell(z)}else I=C.getInsertPoint(),C.isMouseInsertPoint()&&(L=0,C.lastPasteXml==c&&0<C.pasteCounter&&C.pasteCounter--),I=this.insertTextAt(c,I.x+L,
-I.y+L,z),C.setSelectionCells(I);C.isSelectionEmpty()||(C.scrollCellToVisible(C.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(C.view.getState(C.getSelectionCell())));return I};EditorUi.prototype.pasteCells=function(c,f,k,A){if(!mxEvent.isConsumed(c)){var z=f,C=!1;if(k&&null!=c.clipboardData&&c.clipboardData.getData){var I=c.clipboardData.getData("text/plain"),L=!1;if(null!=I&&0<I.length&&"%3CmxGraphModel%3E"==I.substring(0,18))try{var K=decodeURIComponent(I);this.isCompatibleString(K)&&
+function(B,z){try{this.spinner.stop();var C=this.createImageDataUri(B,f,"png"),I=parseInt(z.getAttribute("width")),L=parseInt(z.getAttribute("height"));this.writeImageToClipboard(C,I,L,mxUtils.bind(this,function(K){this.handleError(K)}))}catch(K){this.handleError(K)}}),null,null,null,mxUtils.bind(this,function(B){this.spinner.stop();this.handleError(B)}),null,null,null!=k?k:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<c.length?
+c:null)}catch(B){this.handleError(B)}};EditorUi.prototype.copyCells=function(c,f){var k=this.editor.graph;if(k.isSelectionEmpty())c.innerText="";else{var B=mxUtils.sortCells(k.model.getTopmostCells(k.getSelectionCells())),z=mxUtils.getXml(k.encodeCells(B));mxUtils.setTextContent(c,encodeURIComponent(z));f?(k.removeCells(B,!1),k.lastPasteXml=null):(k.lastPasteXml=z,k.pasteCounter=0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeCipboard){var f=
+this.editor.graph;f.isSelectionEmpty()||(c=mxUtils.sortCells(f.getExportableCells(f.model.getTopmostCells(f.getSelectionCells()))),f=mxUtils.getXml(f.encodeCells(c)),navigator.clipboard.writeText(f))}return c};EditorUi.prototype.pasteXml=function(c,f,k,B,z){z=null!=z?z:!0;var C=this.editor.graph,I=null;C.lastPasteXml==c?C.pasteCounter++:(C.lastPasteXml=c,C.pasteCounter=0);var L=C.pasteCounter*C.gridSize;if(k||this.isCompatibleString(c))I=this.importXml(c,L,L),C.setSelectionCells(I);else if(f&&1==
+C.getSelectionCount()){z=C.getStartEditingCell(C.getSelectionCell(),B);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&"image"==C.getCurrentCellStyle(z)[mxConstants.STYLE_SHAPE])C.setCellStyles(mxConstants.STYLE_IMAGE,c,[z]);else{C.model.beginUpdate();try{C.labelChanged(z,c),Graph.isLink(c)&&C.setLinkForCell(z,c)}finally{C.model.endUpdate()}}C.setSelectionCell(z)}else I=C.getInsertPoint(),C.isMouseInsertPoint()&&(L=0,C.lastPasteXml==c&&0<C.pasteCounter&&C.pasteCounter--),I=this.insertTextAt(c,I.x+L,
+I.y+L,z),C.setSelectionCells(I);C.isSelectionEmpty()||(C.scrollCellToVisible(C.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(C.view.getState(C.getSelectionCell())));return I};EditorUi.prototype.pasteCells=function(c,f,k,B){if(!mxEvent.isConsumed(c)){var z=f,C=!1;if(k&&null!=c.clipboardData&&c.clipboardData.getData){var I=c.clipboardData.getData("text/plain"),L=!1;if(null!=I&&0<I.length&&"%3CmxGraphModel%3E"==I.substring(0,18))try{var K=decodeURIComponent(I);this.isCompatibleString(K)&&
(L=!0,I=K)}catch(ma){}L=L?null:c.clipboardData.getData("text/html");null!=L&&0<L.length?(z=this.parseHtmlData(L),C="text/plain"!=z.getAttribute("data-type")):null!=I&&0<I.length&&(z=document.createElement("div"),mxUtils.setTextContent(z,L))}I=z.getElementsByTagName("span");if(null!=I&&0<I.length&&"application/vnd.lucid.chart.objects"===I[0].getAttribute("data-lucid-type"))k=I[0].getAttribute("data-lucid-content"),null!=k&&0<k.length&&(this.convertLucidChart(k,mxUtils.bind(this,function(ma){var la=
this.editor.graph;la.lastPasteXml==ma?la.pasteCounter++:(la.lastPasteXml=ma,la.pasteCounter=0);var Y=la.pasteCounter*la.gridSize;la.setSelectionCells(this.importXml(ma,Y,Y));la.scrollCellToVisible(la.getSelectionCell())}),mxUtils.bind(this,function(ma){this.handleError(ma)})),mxEvent.consume(c));else{var O=!1,da="";da=C?null!=z.textContent&&"<mxfile"==z.textContent.substring(0,7)&&"</mxfile>"==z.textContent.substring(z.textContent.length-9)||"<mxGraphModel"==z.textContent.substring(0,13)&&"</mxGraphModel>"==
z.textContent.substring(z.textContent.length-15)?z.textContent.replace(/\u00a0/g," "):z.innerHTML:mxUtils.trim(null==z.innerText?mxUtils.getTextContent(z):z.innerText);try{var ea=da.lastIndexOf("%3E");0<=ea&&ea<da.length-3&&(da=da.substring(0,ea+3))}catch(ma){}try{I=z.getElementsByTagName("span"),(K=null!=I&&0<I.length?mxUtils.trim(decodeURIComponent(I[0].textContent)):decodeURIComponent(da))&&(this.isCompatibleString(K)||0==K.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(O=!0,da=
-K)}catch(ma){}try{if(null!=da&&0<da.length){if(0==da.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var ca=mxUtils.bind(this,function(){try{da=(new MiroImporter).importMiroJson(JSON.parse(da)),this.pasteXml(da,A,O,c)}catch(ma){console.log("Miro import error:",ma)}});"undefined"===typeof MiroImporter?mxscript("js/diagramly/miro/MiroImporter.js",ca):ca()}else this.pasteXml(da,A,O,c,C);try{mxEvent.consume(c)}catch(ma){}}else if(!k){var W=this.editor.graph;W.lastPasteXml=null;W.pasteCounter=
-0}}catch(ma){this.handleError(ma)}}}f.innerHTML="&nbsp;"};EditorUi.prototype.showPrintDialog=function(c,f){var k=320;this.editor.graph.isEnabled()&&(k+=40);null!=this.pages&&1<this.pages.length&&(k+=40,this.editor.graph.isEnabled()||(k+=10));null==f||mxClient.IS_CHROMEAPP||"draw.io"!=this.getServiceName()||(k+=20);this.showDialog((new PrintDialog(this,c,f)).container,320,k,!0,!0)};EditorUi.prototype.print=function(c,f){var k=this.editor,A=k.graph,z=this.getPageIndex(this.currentPage),C=null!=z?z+
-1:1,I=mxUtils.bind(this,function(Y,fa,Z,l){var u=Y.useCssTransforms,H=Y.currentTranslate,U=Y.currentScale,J=Y.view.translate,V=Y.view.scale;Y.useCssTransforms&&(Y.useCssTransforms=!1,Y.currentTranslate=new mxPoint(0,0),Y.currentScale=1,Y.view.translate=new mxPoint(0,0),Y.view.scale=1);var aa=Y.getGraphBounds(),ba=0,ja=0,oa=mxRectangle.fromRectangle(Y.pageFormat),qa=f.fit||f.crop||!Y.pageVisible,ra=f.scale;oa.width=Math.ceil(oa.width*Y.pageScale);oa.height=Math.ceil(oa.height*Y.pageScale);var ua=1;
-if(f.fit){ua=f.sheetsAcross;var za=f.sheetsDown;isNaN(ra)||(oa.width=Math.ceil(oa.width*ra),oa.height=Math.ceil(oa.height*ra));ua=Math.min(oa.height*za/(aa.height/Y.view.scale),oa.width*ua/(aa.width/Y.view.scale))}else ua=isNaN(ra)?1:ra;ua*=1;!qa&&Y.pageVisible?(ra=Y.getPageLayout(),ba-=ra.x*oa.width,ja-=ra.y*oa.height):qa=!0;f.crop&&(f.selection&&(aa=A.getBoundingBox(A.getSelectionCells())),oa.width=(aa.width+1)*ua/Y.view.scale,oa.height=(aa.height+1)*ua/Y.view.scale);oa.width=Math.ceil(1*oa.width);
+K)}catch(ma){}try{if(null!=da&&0<da.length){if(0==da.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var ca=mxUtils.bind(this,function(){try{da=(new MiroImporter).importMiroJson(JSON.parse(da)),this.pasteXml(da,B,O,c)}catch(ma){console.log("Miro import error:",ma)}});"undefined"===typeof MiroImporter?mxscript("js/diagramly/miro/MiroImporter.js",ca):ca()}else this.pasteXml(da,B,O,c,C);try{mxEvent.consume(c)}catch(ma){}}else if(!k){var V=this.editor.graph;V.lastPasteXml=null;V.pasteCounter=
+0}}catch(ma){this.handleError(ma)}}}f.innerHTML="&nbsp;"};EditorUi.prototype.showPrintDialog=function(c,f){var k=320;this.editor.graph.isEnabled()&&(k+=40);null!=this.pages&&1<this.pages.length&&(k+=40,this.editor.graph.isEnabled()||(k+=10));null==f||mxClient.IS_CHROMEAPP||"draw.io"!=this.getServiceName()||(k+=20);this.showDialog((new PrintDialog(this,c,f)).container,320,k,!0,!0)};EditorUi.prototype.print=function(c,f){var k=this.editor,B=k.graph,z=this.getPageIndex(this.currentPage),C=null!=z?z+
+1:1,I=mxUtils.bind(this,function(Y,fa,Z,l){var u=Y.useCssTransforms,H=Y.currentTranslate,U=Y.currentScale,J=Y.view.translate,W=Y.view.scale;Y.useCssTransforms&&(Y.useCssTransforms=!1,Y.currentTranslate=new mxPoint(0,0),Y.currentScale=1,Y.view.translate=new mxPoint(0,0),Y.view.scale=1);var aa=Y.getGraphBounds(),ba=0,ja=0,oa=mxRectangle.fromRectangle(Y.pageFormat),qa=f.fit||f.crop||!Y.pageVisible,ra=f.scale;oa.width=Math.ceil(oa.width*Y.pageScale);oa.height=Math.ceil(oa.height*Y.pageScale);var ua=1;
+if(f.fit){ua=f.sheetsAcross;var za=f.sheetsDown;isNaN(ra)||(oa.width=Math.ceil(oa.width*ra),oa.height=Math.ceil(oa.height*ra));ua=Math.min(oa.height*za/(aa.height/Y.view.scale),oa.width*ua/(aa.width/Y.view.scale))}else ua=isNaN(ra)?1:ra;ua*=1;!qa&&Y.pageVisible?(ra=Y.getPageLayout(),ba-=ra.x*oa.width,ja-=ra.y*oa.height):qa=!0;f.crop&&(f.selection&&(aa=B.getBoundingBox(B.getSelectionCells())),oa.width=(aa.width+1)*ua/Y.view.scale,oa.height=(aa.height+1)*ua/Y.view.scale);oa.width=Math.ceil(1*oa.width);
oa.height=Math.ceil(1*oa.height);l=null!=l?"page/id,"+l:null;if(null==fa){fa=PrintDialog.createPrintPreview(Y,ua,null,0,ba,ja,qa);fa.title=this.getBaseFilename(!0);fa.pageSelector=!1;fa.mathEnabled=!1;ba=f.border;isNaN(ba)||(fa.pageMargin=ba);f.selection&&(fa.isCellVisible=function(sa){return Y.isCellSelected(sa)});var Ba=fa.writeHead;fa.writeHead=function(sa){Ba.apply(this,arguments);mxClient.IS_GC&&(sa.writeln('<style type="text/css">'),sa.writeln("@media print {"),sa.writeln(".MathJax svg { shape-rendering: crispEdges; }"),
sa.writeln("}"),sa.writeln("</style>"));null!=k.fontCss&&(sa.writeln('<style type="text/css">'),sa.writeln(mxUtils.htmlEntities(k.fontCss,!1,!1,!1)),sa.writeln("</style>"));for(var Aa=Y.getCustomFonts(),Ea=0;Ea<Aa.length;Ea++){var Ka=Aa[Ea].name,Ma=Aa[Ea].url;Graph.isCssFontUrl(Ma)?sa.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(Ma))+'" charset="UTF-8" type="text/css">'):(sa.writeln('<style type="text/css">'),sa.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Ka)+
-'";\nsrc: url("'+mxUtils.htmlEntities(Ma)+'");\n}'),sa.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var Ca=fa.drawBackgroundImage;fa.drawBackgroundImage=function(sa){Ca.apply(this,arguments);null!=sa.node&&(EditorUi.embedSvgImages(sa.node),A.disableSvgLinks(sa.node,function(Aa){Aa.setAttribute("href","javascript:void(0)")}))}}var La=fa.addGraphFragment;fa.addGraphFragment=function(sa,Aa,Ea,Ka,Ma,ya){La.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:Ma.classList.add("geDisableMathJax")};
+'";\nsrc: url("'+mxUtils.htmlEntities(Ma)+'");\n}'),sa.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var Ca=fa.drawBackgroundImage;fa.drawBackgroundImage=function(sa){Ca.apply(this,arguments);null!=sa.node&&(EditorUi.embedSvgImages(sa.node),B.disableSvgLinks(sa.node,function(Aa){Aa.setAttribute("href","javascript:void(0)")}))}}var La=fa.addGraphFragment;fa.addGraphFragment=function(sa,Aa,Ea,Ka,Ma,ya){La.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:Ma.classList.add("geDisableMathJax")};
f.grid&&(fa.gridSize=Y.gridSize,fa.gridSteps=Y.view.gridSteps,fa.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:Y.view.gridColor);fa.open(null,null,Z,!0,l,oa,f.selection?Y.getSelectionCells():null)}else{aa=Y.background;if(null==aa||""==aa||aa==mxConstants.NONE)aa="#ffffff";fa.backgroundColor=aa;fa.autoOrigin=qa;f.grid&&(fa.gridSize=Y.gridSize,fa.gridSteps=Y.view.gridSteps,fa.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:Y.view.gridColor);fa.appendGraph(Y,
ua,ba,ja,Z,!0,l,oa,f.selection?Y.getSelectionCells():null);Z=Y.getCustomFonts();if(null!=fa.wnd)for(oa=0;oa<Z.length;oa++)ba=Z[oa].name,ja=Z[oa].url,Graph.isCssFontUrl(ja)?fa.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(ja)+'" charset="UTF-8" type="text/css">'):(fa.wnd.document.writeln('<style type="text/css">'),fa.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(ba)+'";\nsrc: url("'+mxUtils.htmlEntities(ja)+'");\n}'),fa.wnd.document.writeln("</style>"))}u&&
-(Y.useCssTransforms=u,Y.currentTranslate=H,Y.currentScale=U,Y.view.translate=J,Y.view.scale=V);return fa}),L=f.pagesFrom,K=f.pagesTo,O=!f.allPages;z=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,f);else{O&&(O=f.selection||L==C&&K==C);if(!O&&null!=this.pages&&this.pages.length){O=0;C=this.pages.length-1;f.allPages||(O=parseInt(L)-1,C=parseInt(K)-1);for(var da=O;da<=C;da++){var ea=this.pages[da];L=ea==this.currentPage?A:null;if(null==L){L=this.createTemporaryGraph(A.stylesheet);L.shapeForegroundColor=
-A.shapeForegroundColor;L.shapeBackgroundColor=A.shapeBackgroundColor;K=!0;O=!1;var ca=null,W=null;null==ea.viewState&&null==ea.root&&this.updatePageRoot(ea);null!=ea.viewState&&(K=ea.viewState.pageVisible,O=ea.viewState.mathEnabled,ca=ea.viewState.background,W=ea.viewState.backgroundImage,L.pageFormat=ea.viewState.pageFormat,L.gridSize=ea.viewState.gridSize);null!=W&&null!=W.originalSrc&&(W=this.createImageForPageLink(W.originalSrc,ea));L.background=ca;L.backgroundImage=null!=W?new mxImage(W.src,
-W.width,W.height,W.x,W.y):null;L.pageVisible=K;L.mathEnabled=O;var ma=L.getGraphBounds;L.getGraphBounds=function(){var Y=ma.apply(this,arguments),fa=this.backgroundImage;if(null!=fa&&null!=fa.width&&null!=fa.height){var Z=this.view.translate,l=this.view.scale;Y=mxRectangle.fromRectangle(Y);Y.add(new mxRectangle((Z.x+fa.x)*l,(Z.y+fa.y)*l,fa.width*l,fa.height*l))}return Y};var la=L.getGlobalVariable;L.getGlobalVariable=function(Y){return"page"==Y?ea.getName():"pagenumber"==Y?da+1:"pagecount"==Y?null!=
-this.pages?this.pages.length:1:la.apply(this,arguments)};document.body.appendChild(L.container);this.updatePageRoot(ea);L.model.setRoot(ea.root)}z=I(L,z,da!=C,ea.getId());L!=A&&L.container.parentNode.removeChild(L.container)}}else z=I(A);null==z||null==z.wnd?this.handleError({message:mxResources.get("errorUpdatingPreview")}):(z.mathEnabled&&(I=z.wnd.document,c||(z.wnd.IMMEDIATE_PRINT=!0),I.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>')),z.closeDocument(),Graph.rewritePageLinks(z.wnd.document,
-!0),z.mathEnabled||c||PrintDialog.printPreview(z));return z}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var f=null,k=0;k<c.length;k++)mxEvent.addListener(c[k],"dragleave",function(A){null!=f&&(f.parentNode.removeChild(f),f=null);A.stopPropagation();A.preventDefault()}),mxEvent.addListener(c[k],"dragover",mxUtils.bind(this,function(A){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==f&&(!mxClient.IS_IE||10<document.documentMode&&12>document.documentMode)&&
-(f=this.highlightElement());A.stopPropagation();A.preventDefault()})),mxEvent.addListener(c[k],"drop",mxUtils.bind(this,function(A){null!=f&&(f.parentNode.removeChild(f),f=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<A.dataTransfer.files.length)this.hideDialog(),"1"==urlParams.embed?this.importFiles(A.dataTransfer.files,0,0,this.maxImageSize,null,null,null,null,!mxEvent.isControlDown(A)&&!mxEvent.isShiftDown(A)):this.openFiles(A.dataTransfer.files,!0);else{var z=this.extractGraphModelFromEvent(A);
-if(null==z){var C=null!=A.dataTransfer?A.dataTransfer:A.clipboardData;null!=C&&(10==document.documentMode||11==document.documentMode?z=C.getData("Text"):(z=null,z=0<=mxUtils.indexOf(C.types,"text/uri-list")?A.dataTransfer.getData("text/uri-list"):0<=mxUtils.indexOf(C.types,"text/html")?C.getData("text/html"):null,null!=z&&0<z.length?(C=document.createElement("div"),C.innerHTML=Graph.sanitizeHtml(z),C=C.getElementsByTagName("img"),0<C.length&&(z=C[0].getAttribute("src"))):0<=mxUtils.indexOf(C.types,
+(Y.useCssTransforms=u,Y.currentTranslate=H,Y.currentScale=U,Y.view.translate=J,Y.view.scale=W);return fa}),L=f.pagesFrom,K=f.pagesTo,O=!f.allPages;z=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,f);else{O&&(O=f.selection||L==C&&K==C);if(!O&&null!=this.pages&&this.pages.length){O=0;C=this.pages.length-1;f.allPages||(O=parseInt(L)-1,C=parseInt(K)-1);for(var da=O;da<=C;da++){var ea=this.pages[da];L=ea==this.currentPage?B:null;if(null==L){L=this.createTemporaryGraph(B.stylesheet);L.shapeForegroundColor=
+B.shapeForegroundColor;L.shapeBackgroundColor=B.shapeBackgroundColor;K=!0;O=!1;var ca=null,V=null;null==ea.viewState&&null==ea.root&&this.updatePageRoot(ea);null!=ea.viewState&&(K=ea.viewState.pageVisible,O=ea.viewState.mathEnabled,ca=ea.viewState.background,V=ea.viewState.backgroundImage,L.pageFormat=ea.viewState.pageFormat,L.gridSize=ea.viewState.gridSize);null!=V&&null!=V.originalSrc&&(V=this.createImageForPageLink(V.originalSrc,ea));L.background=ca;L.backgroundImage=null!=V?new mxImage(V.src,
+V.width,V.height,V.x,V.y):null;L.pageVisible=K;L.mathEnabled=O;var ma=L.getGraphBounds;L.getGraphBounds=function(){var Y=ma.apply(this,arguments),fa=this.backgroundImage;if(null!=fa&&null!=fa.width&&null!=fa.height){var Z=this.view.translate,l=this.view.scale;Y=mxRectangle.fromRectangle(Y);Y.add(new mxRectangle((Z.x+fa.x)*l,(Z.y+fa.y)*l,fa.width*l,fa.height*l))}return Y};var la=L.getGlobalVariable;L.getGlobalVariable=function(Y){return"page"==Y?ea.getName():"pagenumber"==Y?da+1:"pagecount"==Y?null!=
+this.pages?this.pages.length:1:la.apply(this,arguments)};document.body.appendChild(L.container);this.updatePageRoot(ea);L.model.setRoot(ea.root)}z=I(L,z,da!=C,ea.getId());L!=B&&L.container.parentNode.removeChild(L.container)}}else z=I(B);null==z||null==z.wnd?this.handleError({message:mxResources.get("errorUpdatingPreview")}):(z.mathEnabled&&(I=z.wnd.document,c||(z.wnd.IMMEDIATE_PRINT=!0),I.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>')),z.closeDocument(),Graph.rewritePageLinks(z.wnd.document,
+!0),z.mathEnabled||c||PrintDialog.printPreview(z));return z}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var f=null,k=0;k<c.length;k++)mxEvent.addListener(c[k],"dragleave",function(B){null!=f&&(f.parentNode.removeChild(f),f=null);B.stopPropagation();B.preventDefault()}),mxEvent.addListener(c[k],"dragover",mxUtils.bind(this,function(B){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==f&&(!mxClient.IS_IE||10<document.documentMode&&12>document.documentMode)&&
+(f=this.highlightElement());B.stopPropagation();B.preventDefault()})),mxEvent.addListener(c[k],"drop",mxUtils.bind(this,function(B){null!=f&&(f.parentNode.removeChild(f),f=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<B.dataTransfer.files.length)this.hideDialog(),"1"==urlParams.embed?this.importFiles(B.dataTransfer.files,0,0,this.maxImageSize,null,null,null,null,!mxEvent.isControlDown(B)&&!mxEvent.isShiftDown(B)):this.openFiles(B.dataTransfer.files,!0);else{var z=this.extractGraphModelFromEvent(B);
+if(null==z){var C=null!=B.dataTransfer?B.dataTransfer:B.clipboardData;null!=C&&(10==document.documentMode||11==document.documentMode?z=C.getData("Text"):(z=null,z=0<=mxUtils.indexOf(C.types,"text/uri-list")?B.dataTransfer.getData("text/uri-list"):0<=mxUtils.indexOf(C.types,"text/html")?C.getData("text/html"):null,null!=z&&0<z.length?(C=document.createElement("div"),C.innerHTML=Graph.sanitizeHtml(z),C=C.getElementsByTagName("img"),0<C.length&&(z=C[0].getAttribute("src"))):0<=mxUtils.indexOf(C.types,
"text/plain")&&(z=C.getData("text/plain"))),null!=z&&(Editor.isPngDataUrl(z)?(z=Editor.extractGraphModelFromPng(z),null!=z&&0<z.length&&this.openLocalFile(z,null,!0)):this.isRemoteFileFormat(z)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(new mxXmlRequest(OPEN_URL,"format=xml&data="+encodeURIComponent(z))).send(mxUtils.bind(this,function(I){200<=I.getStatus()&&299>=I.getStatus()?this.openLocalFile(I.getText(),null,!0):this.showError(mxResources.get("error"),
-413==I.getStatus()?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))})):/^https?:\/\//.test(z)&&(null==this.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(z):window.geOpenWindow((mxClient.IS_CHROMEAPP?EditorUi.drawHost+"/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(z)))))}else this.openLocalFile(z,null,!0)}A.stopPropagation();A.preventDefault()}))};EditorUi.prototype.highlightElement=function(c){var f=0,k=0;if(null==c){var A=document.body;
-var z=document.documentElement;var C=(A.clientWidth||z.clientWidth)-3;A=Math.max(A.clientHeight||0,z.clientHeight)-3}else f=c.offsetTop,k=c.offsetLeft,C=c.clientWidth,A=c.clientHeight;z=document.createElement("div");z.style.zIndex=mxPopupMenu.prototype.zIndex+2;z.style.border="3px dotted rgb(254, 137, 12)";z.style.pointerEvents="none";z.style.position="absolute";z.style.top=f+"px";z.style.left=k+"px";z.style.width=Math.max(0,C-3)+"px";z.style.height=Math.max(0,A-3)+"px";null!=c&&c.parentNode==this.editor.graph.container?
-this.editor.graph.container.appendChild(z):document.body.appendChild(z);return z};EditorUi.prototype.stringToCells=function(c){c=mxUtils.parseXml(c);var f=this.editor.extractGraphModel(c.documentElement);c=[];if(null!=f){var k=new mxCodec(f.ownerDocument),A=new mxGraphModel;k.decode(f,A);f=A.getChildAt(A.getRoot(),0);for(k=0;k<A.getChildCount(f);k++)c.push(A.getChildAt(f,k))}return c};EditorUi.prototype.openFileHandle=function(c,f,k,A,z,C){if(null!=f&&0<f.length){if(!this.useCanvasForExport&&/(\.png)$/i.test(f)||
-/(\.pdf)$/i.test(f))f=f.substring(0,f.length-4),/(\.drawio)$/i.test(f)||(f+=".drawio");var I=mxUtils.bind(this,function(K){f=0<=f.lastIndexOf(".")?f.substring(0,f.lastIndexOf("."))+".drawio":f+".drawio";if("<mxlibrary"==K.substring(0,10)){null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,A);try{this.loadLibrary(new LocalLibrary(this,K,f)),this.showSidebar()}catch(O){this.handleError(O,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(K,
-f,A)});if(EditorUi.isVisioFilename(f))this.importVisio(k,mxUtils.bind(this,function(K){this.spinner.stop();I(K)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(K){this.spinner.stop();I(K)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,f))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(k,mxUtils.bind(this,function(K){4==K.readyState&&(this.spinner.stop(),
-200<=K.status&&299>=K.status?I(K.responseText):this.handleError({message:mxResources.get(413==K.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(c))/(\.json)$/i.test(f)&&(f=f.substring(0,f.length-5)+".drawio"),this.convertLucidChart(c,mxUtils.bind(this,function(K){this.spinner.stop();this.openLocalFile(K,f,A)}),mxUtils.bind(this,function(K){this.spinner.stop();this.handleError(K)}));else if("<mxlibrary"==c.substring(0,10)){this.spinner.stop();
-null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,A);try{this.loadLibrary(new LocalLibrary(this,c,k.name)),this.showSidebar()}catch(K){this.handleError(K,mxResources.get("errorLoadingFile"))}}else if(0==c.indexOf("PK"))this.importZipFile(k,mxUtils.bind(this,function(K){this.spinner.stop();I(K)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,f,A)}));else{if("image/png"==k.type.substring(0,9))c=this.extractGraphModelFromPng(c);
-else if("application/pdf"==k.type){var L=Editor.extractGraphModelFromPdf(c);null!=L&&(z=null,A=!0,c=L)}this.spinner.stop();this.openLocalFile(c,f,A,z,null!=z?k:null,C)}}};EditorUi.prototype.openFiles=function(c,f){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var k=0;k<c.length;k++)mxUtils.bind(this,function(A){var z=new FileReader;z.onload=mxUtils.bind(this,function(C){try{this.openFileHandle(C.target.result,A.name,A,f)}catch(I){this.handleError(I)}});z.onerror=mxUtils.bind(this,
-function(C){this.spinner.stop();this.handleError(C);window.openFile=null});"image"!==A.type.substring(0,5)&&"application/pdf"!==A.type||"image/svg"===A.type.substring(0,9)?z.readAsText(A):z.readAsDataURL(A)})(c[k])};EditorUi.prototype.openLocalFile=function(c,f,k,A,z,C){var I=this.getCurrentFile(),L=mxUtils.bind(this,function(){window.openFile=null;if(null==f&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var K=mxUtils.parseXml(c);null!=K&&(this.editor.setGraphXml(K.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,
-c,f||this.defaultFilename,k,A,z,C))});if(null!=c&&0<c.length)null==I||!I.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=A)?L():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=A)&&null!=I&&I.isModified()?this.confirm(mxResources.get("allChangesLost"),null,L,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(c,f),window.geOpenWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=
+413==I.getStatus()?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))})):/^https?:\/\//.test(z)&&(null==this.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(z):window.geOpenWindow((mxClient.IS_CHROMEAPP?EditorUi.drawHost+"/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(z)))))}else this.openLocalFile(z,null,!0)}B.stopPropagation();B.preventDefault()}))};EditorUi.prototype.highlightElement=function(c){var f=0,k=0;if(null==c){var B=document.body;
+var z=document.documentElement;var C=(B.clientWidth||z.clientWidth)-3;B=Math.max(B.clientHeight||0,z.clientHeight)-3}else f=c.offsetTop,k=c.offsetLeft,C=c.clientWidth,B=c.clientHeight;z=document.createElement("div");z.style.zIndex=mxPopupMenu.prototype.zIndex+2;z.style.border="3px dotted rgb(254, 137, 12)";z.style.pointerEvents="none";z.style.position="absolute";z.style.top=f+"px";z.style.left=k+"px";z.style.width=Math.max(0,C-3)+"px";z.style.height=Math.max(0,B-3)+"px";null!=c&&c.parentNode==this.editor.graph.container?
+this.editor.graph.container.appendChild(z):document.body.appendChild(z);return z};EditorUi.prototype.stringToCells=function(c){c=mxUtils.parseXml(c);var f=this.editor.extractGraphModel(c.documentElement);c=[];if(null!=f){var k=new mxCodec(f.ownerDocument),B=new mxGraphModel;k.decode(f,B);f=B.getChildAt(B.getRoot(),0);for(k=0;k<B.getChildCount(f);k++)c.push(B.getChildAt(f,k))}return c};EditorUi.prototype.openFileHandle=function(c,f,k,B,z,C){if(null!=f&&0<f.length){if(!this.useCanvasForExport&&/(\.png)$/i.test(f)||
+/(\.pdf)$/i.test(f))f=f.substring(0,f.length-4),/(\.drawio)$/i.test(f)||(f+=".drawio");var I=mxUtils.bind(this,function(K){f=0<=f.lastIndexOf(".")?f.substring(0,f.lastIndexOf("."))+".drawio":f+".drawio";if("<mxlibrary"==K.substring(0,10)){null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,B);try{this.loadLibrary(new LocalLibrary(this,K,f)),this.showSidebar()}catch(O){this.handleError(O,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(K,
+f,B)});if(EditorUi.isVisioFilename(f))this.importVisio(k,mxUtils.bind(this,function(K){this.spinner.stop();I(K)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(K){this.spinner.stop();I(K)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,f))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(k,mxUtils.bind(this,function(K){4==K.readyState&&(this.spinner.stop(),
+200<=K.status&&299>=K.status?I(K.responseText):this.handleError({message:mxResources.get(413==K.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(c))/(\.json)$/i.test(f)&&(f=f.substring(0,f.length-5)+".drawio"),this.convertLucidChart(c,mxUtils.bind(this,function(K){this.spinner.stop();this.openLocalFile(K,f,B)}),mxUtils.bind(this,function(K){this.spinner.stop();this.handleError(K)}));else if("<mxlibrary"==c.substring(0,10)){this.spinner.stop();
+null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,B);try{this.loadLibrary(new LocalLibrary(this,c,k.name)),this.showSidebar()}catch(K){this.handleError(K,mxResources.get("errorLoadingFile"))}}else if(0==c.indexOf("PK"))this.importZipFile(k,mxUtils.bind(this,function(K){this.spinner.stop();I(K)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,f,B)}));else{if("image/png"==k.type.substring(0,9))c=this.extractGraphModelFromPng(c);
+else if("application/pdf"==k.type){var L=Editor.extractGraphModelFromPdf(c);null!=L&&(z=null,B=!0,c=L)}this.spinner.stop();this.openLocalFile(c,f,B,z,null!=z?k:null,C)}}};EditorUi.prototype.openFiles=function(c,f){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var k=0;k<c.length;k++)mxUtils.bind(this,function(B){var z=new FileReader;z.onload=mxUtils.bind(this,function(C){try{this.openFileHandle(C.target.result,B.name,B,f)}catch(I){this.handleError(I)}});z.onerror=mxUtils.bind(this,
+function(C){this.spinner.stop();this.handleError(C);window.openFile=null});"image"!==B.type.substring(0,5)&&"application/pdf"!==B.type||"image/svg"===B.type.substring(0,9)?z.readAsText(B):z.readAsDataURL(B)})(c[k])};EditorUi.prototype.openLocalFile=function(c,f,k,B,z,C){var I=this.getCurrentFile(),L=mxUtils.bind(this,function(){window.openFile=null;if(null==f&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var K=mxUtils.parseXml(c);null!=K&&(this.editor.setGraphXml(K.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,
+c,f||this.defaultFilename,k,B,z,C))});if(null!=c&&0<c.length)null==I||!I.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=B)?L():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=B)&&null!=I&&I.isModified()?this.confirm(mxResources.get("allChangesLost"),null,L,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(c,f),window.geOpenWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=
I&&I.isModified()?this.confirm(mxResources.get("allChangesLost"),null,L,mxResources.get("cancel"),mxResources.get("discardChanges")):L()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var f=0;f<this.pages.length;f++)this.updatePageRoot(this.pages[f]),this.addBasenamesForCell(this.pages[f].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);f=[];for(var k in c)f.push(k);return f};EditorUi.prototype.addBasenamesForCell=
-function(c,f){function k(I){if(null!=I){var L=I.lastIndexOf(".");0<L&&(I=I.substring(L+1,I.length));null==f[I]&&(f[I]=!0)}}var A=this.editor.graph,z=A.getCellStyle(c);k(mxStencilRegistry.getBasenameForStencil(z[mxConstants.STYLE_SHAPE]));A.model.isEdge(c)&&(k(mxMarker.getPackageForType(z[mxConstants.STYLE_STARTARROW])),k(mxMarker.getPackageForType(z[mxConstants.STYLE_ENDARROW])));z=A.model.getChildCount(c);for(var C=0;C<z;C++)this.addBasenamesForCell(A.model.getChildAt(c,C),f)};EditorUi.prototype.setGraphEnabled=
+function(c,f){function k(I){if(null!=I){var L=I.lastIndexOf(".");0<L&&(I=I.substring(L+1,I.length));null==f[I]&&(f[I]=!0)}}var B=this.editor.graph,z=B.getCellStyle(c);k(mxStencilRegistry.getBasenameForStencil(z[mxConstants.STYLE_SHAPE]));B.model.isEdge(c)&&(k(mxMarker.getPackageForType(z[mxConstants.STYLE_STARTARROW])),k(mxMarker.getPackageForType(z[mxConstants.STYLE_ENDARROW])));z=B.model.getChildCount(c);for(var C=0;C<z;C++)this.addBasenamesForCell(B.model.getChildAt(c,C),f)};EditorUi.prototype.setGraphEnabled=
function(c){this.diagramContainer.style.visibility=c?"":"hidden";this.formatContainer.style.visibility=c?"":"hidden";this.sidebarContainer.style.display=c?"":"none";this.hsplit.style.display=c&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme?"":"none";this.editor.graph.setEnabled(c);null!=this.tabContainer&&(this.tabContainer.style.visibility=c&&0<parseInt(this.tabContainer.style.height)?"":"hidden");null!=this.ruler&&(this.ruler.hRuler.container.style.visibility=c?"":"hidden",this.ruler.vRuler.container.style.visibility=
-c?"":"hidden");c||this.hideWindows()};EditorUi.prototype.initializeEmbedMode=function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=!1;this.installMessageHandler(mxUtils.bind(this,function(f,k,A,z){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==f||0==f.length)f=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,f,{}));this.mode=App.MODE_EMBED;
+c?"":"hidden");c||this.hideWindows()};EditorUi.prototype.initializeEmbedMode=function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=!1;this.installMessageHandler(mxUtils.bind(this,function(f,k,B,z){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==f||0==f.length)f=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,f,{}));this.mode=App.MODE_EMBED;
this.setFileData(f);if(z)try{var C=this.editor.graph;C.setGridEnabled(!1);C.pageVisible=!1;var I=C.model.cells,L;for(L in I){var K=I[L];null!=K&&null!=K.style&&(K.style+=";sketch=1;"+(-1==K.style.indexOf("fontFamily=")||-1<K.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(O){console.log(O)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();
-this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();this.editor.modified=null!=A?A:!1;this.updateUi();window.self!==window.top&&window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(c,
+this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();this.editor.modified=null!=B?B:!1;this.updateUi();window.self!==window.top&&window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(c,
f){null!=c?this.spinner.spin(document.body,mxResources.get("loading"))&&c.getPublicUrl(mxUtils.bind(this,function(k){this.spinner.stop();f(k)})):f(null)};EditorUi.prototype.createLoadMessage=function(c){var f=this.editor.graph;return{event:c,pageVisible:f.pageVisible,translate:f.view.translate,bounds:f.getGraphBounds(),currentPage:this.getSelectedPageIndex(),scale:f.view.scale,page:f.view.getBackgroundPageBounds()}};EditorUi.prototype.sendEmbeddedSvgExport=function(c){try{var f=this.editor.graph;
-f.isEditing()&&f.stopEditing(!f.isInvokesStopCellEditing());var k=window.opener||window.parent;if(this.editor.modified){var A=f.background;if(null==A||A==mxConstants.NONE)A=this.embedExportBackground;this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),f,null,!0,mxUtils.bind(this,function(z){k.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=c?!c:!0,data:Editor.createSvgDataUri(z)}),"*")}),null,null,!0,A,1,this.embedExportBorder,null,this.embedExportTheme)}else c||
-k.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),"*");c||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,f.model.clear(),this.editor.undoManager.clear(),this.setBackgroundImage(null),this.editor.modified=!1,"1"!=urlParams.embed&&this.fireEvent(new mxEventObject("editInlineStop")))}catch(z){c||this.handleError(z)}};EditorUi.prototype.installMessageHandler=function(c){var f=null,k=!1,A=!1,z=null,C=mxUtils.bind(this,function(K,O){this.editor.modified&&
+f.isEditing()&&f.stopEditing(!f.isInvokesStopCellEditing());var k=window.opener||window.parent;if(this.editor.modified){var B=f.background;if(null==B||B==mxConstants.NONE)B=this.embedExportBackground;this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),f,null,!0,mxUtils.bind(this,function(z){k.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=c?!c:!0,data:Editor.createSvgDataUri(z)}),"*")}),null,null,!0,B,1,this.embedExportBorder,null,this.embedExportTheme)}else c||
+k.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),"*");c||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,f.model.clear(),this.editor.undoManager.clear(),this.setBackgroundImage(null),this.editor.modified=!1,"1"!=urlParams.embed&&this.fireEvent(new mxEventObject("editInlineStop")))}catch(z){c||this.handleError(z)}};EditorUi.prototype.installMessageHandler=function(c){var f=null,k=!1,B=!1,z=null,C=mxUtils.bind(this,function(K,O){this.editor.modified&&
"0"!=urlParams.modified?null!=urlParams.modified&&this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified))):this.editor.setStatus("")});this.editor.graph.model.addListener(mxEvent.CHANGE,C);mxEvent.addListener(window,"message",mxUtils.bind(this,function(K){if(K.source==(window.opener||window.parent)){var O=K.data,da=null,ea=mxUtils.bind(this,function(sa){if(null!=sa&&"function"===typeof sa.charAt&&"<"!=sa.charAt(0))try{Editor.isPngDataUrl(sa)?sa=Editor.extractGraphModelFromPng(sa):
"data:image/svg+xml;base64,"==sa.substring(0,26)?sa=atob(sa.substring(26)):"data:image/svg+xml;utf8,"==sa.substring(0,24)&&(sa=sa.substring(24)),null!=sa&&(""==sa.trim()?sa=null:"%"==sa.charAt(0)?sa=decodeURIComponent(sa):"<"!=sa.charAt(0)&&(sa=Graph.decompress(sa)))}catch(Aa){}return sa});if("json"==urlParams.proto){var ca=!1;try{O=JSON.parse(O),EditorUi.debug("EditorUi.installMessageHandler",[this],"evt",[K],"data",[O])}catch(sa){O=null}try{if(null==O)return;if("dialog"==O.action){this.showError(null!=
-O.titleKey?mxResources.get(O.titleKey):O.title,null!=O.messageKey?mxResources.get(O.messageKey):mxUtils.htmlEntities(O.message),null!=O.buttonKey?mxResources.get(O.buttonKey):O.button);null!=O.modified&&(this.editor.modified=O.modified);return}if("layout"==O.action){this.executeLayouts(this.editor.graph.createLayouts(O.layouts));return}if("prompt"==O.action){this.spinner.stop();var W=new FilenameDialog(this,O.defaultValue||"",null!=O.okKey?mxResources.get(O.okKey):O.ok,function(sa){null!=sa?I.postMessage(JSON.stringify({event:"prompt",
-value:sa,message:O}),"*"):I.postMessage(JSON.stringify({event:"prompt-cancel",message:O}),"*")},null!=O.titleKey?mxResources.get(O.titleKey):O.title,null,null,null,null,function(){I.postMessage(JSON.stringify({event:"prompt-cancel",message:O}),"*")});this.showDialog(W.container,300,80,!0,!1);W.init();return}if("draft"==O.action){var ma=ea(O.xml);this.spinner.stop();W=new DraftDialog(this,mxResources.get("draftFound",[O.name||this.defaultFilename]),ma,mxUtils.bind(this,function(){this.hideDialog();
-I.postMessage(JSON.stringify({event:"draft",result:"edit",message:O}),"*")}),mxUtils.bind(this,function(){this.hideDialog();I.postMessage(JSON.stringify({event:"draft",result:"discard",message:O}),"*")}),O.editKey?mxResources.get(O.editKey):null,O.discardKey?mxResources.get(O.discardKey):null,O.ignore?mxUtils.bind(this,function(){this.hideDialog();I.postMessage(JSON.stringify({event:"draft",result:"ignore",message:O}),"*")}):null);this.showDialog(W.container,640,480,!0,!1,mxUtils.bind(this,function(sa){sa&&
-this.actions.get("exit").funct()}));try{W.init()}catch(sa){I.postMessage(JSON.stringify({event:"draft",error:sa.toString(),message:O}),"*")}return}if("template"==O.action){this.spinner.stop();var la=1==O.enableRecent,Y=1==O.enableSearch,fa=1==O.enableCustomTemp;W=new NewDialog(this,!1,O.templatesOnly?!1:null!=O.callback,mxUtils.bind(this,function(sa,Aa,Ea,Ka){sa=sa||this.emptyDiagramXml;null!=O.callback?I.postMessage(JSON.stringify({event:"template",xml:sa,blank:sa==this.emptyDiagramXml,name:Aa,tempUrl:Ea,
+O.titleKey?mxResources.get(O.titleKey):O.title,null!=O.messageKey?mxResources.get(O.messageKey):mxUtils.htmlEntities(O.message),null!=O.buttonKey?mxResources.get(O.buttonKey):O.button);null!=O.modified&&(this.editor.modified=O.modified);return}if("layout"==O.action){this.executeLayouts(this.editor.graph.createLayouts(O.layouts));return}if("prompt"==O.action){this.spinner.stop();var V=new FilenameDialog(this,O.defaultValue||"",null!=O.okKey?mxResources.get(O.okKey):O.ok,function(sa){null!=sa?I.postMessage(JSON.stringify({event:"prompt",
+value:sa,message:O}),"*"):I.postMessage(JSON.stringify({event:"prompt-cancel",message:O}),"*")},null!=O.titleKey?mxResources.get(O.titleKey):O.title,null,null,null,null,function(){I.postMessage(JSON.stringify({event:"prompt-cancel",message:O}),"*")});this.showDialog(V.container,300,80,!0,!1);V.init();return}if("draft"==O.action){var ma=ea(O.xml);this.spinner.stop();V=new DraftDialog(this,mxResources.get("draftFound",[O.name||this.defaultFilename]),ma,mxUtils.bind(this,function(){this.hideDialog();
+I.postMessage(JSON.stringify({event:"draft",result:"edit",message:O}),"*")}),mxUtils.bind(this,function(){this.hideDialog();I.postMessage(JSON.stringify({event:"draft",result:"discard",message:O}),"*")}),O.editKey?mxResources.get(O.editKey):null,O.discardKey?mxResources.get(O.discardKey):null,O.ignore?mxUtils.bind(this,function(){this.hideDialog();I.postMessage(JSON.stringify({event:"draft",result:"ignore",message:O}),"*")}):null);this.showDialog(V.container,640,480,!0,!1,mxUtils.bind(this,function(sa){sa&&
+this.actions.get("exit").funct()}));try{V.init()}catch(sa){I.postMessage(JSON.stringify({event:"draft",error:sa.toString(),message:O}),"*")}return}if("template"==O.action){this.spinner.stop();var la=1==O.enableRecent,Y=1==O.enableSearch,fa=1==O.enableCustomTemp;V=new NewDialog(this,!1,O.templatesOnly?!1:null!=O.callback,mxUtils.bind(this,function(sa,Aa,Ea,Ka){sa=sa||this.emptyDiagramXml;null!=O.callback?I.postMessage(JSON.stringify({event:"template",xml:sa,blank:sa==this.emptyDiagramXml,name:Aa,tempUrl:Ea,
libs:Ka,builtIn:!0,message:O}),"*"):(c(sa,K,sa!=this.emptyDiagramXml,O.toSketch),this.editor.modified||this.editor.setStatus(""))}),null,null,null,null,null,null,null,la?mxUtils.bind(this,function(sa){this.remoteInvoke("getRecentDiagrams",[null],null,sa,function(){sa(null,"Network Error!")})}):null,Y?mxUtils.bind(this,function(sa,Aa){this.remoteInvoke("searchDiagrams",[sa,null],null,Aa,function(){Aa(null,"Network Error!")})}):null,mxUtils.bind(this,function(sa,Aa,Ea){I.postMessage(JSON.stringify({event:"template",
-docUrl:sa,info:Aa,name:Ea}),"*")}),null,null,fa?mxUtils.bind(this,function(sa){this.remoteInvoke("getCustomTemplates",null,null,sa,function(){sa({},0)})}):null,1==O.withoutType);this.showDialog(W.container,620,460,!0,!1,mxUtils.bind(this,function(sa){null!=this.sidebar&&this.sidebar.hideTooltip();sa&&this.actions.get("exit").funct()}));W.init();return}if("textContent"==O.action){var Z=this.getDiagramTextContent();I.postMessage(JSON.stringify({event:"textContent",data:Z,message:O}),"*");return}if("status"==
+docUrl:sa,info:Aa,name:Ea}),"*")}),null,null,fa?mxUtils.bind(this,function(sa){this.remoteInvoke("getCustomTemplates",null,null,sa,function(){sa({},0)})}):null,1==O.withoutType);this.showDialog(V.container,620,460,!0,!1,mxUtils.bind(this,function(sa){null!=this.sidebar&&this.sidebar.hideTooltip();sa&&this.actions.get("exit").funct()}));V.init();return}if("textContent"==O.action){var Z=this.getDiagramTextContent();I.postMessage(JSON.stringify({event:"textContent",data:Z,message:O}),"*");return}if("status"==
O.action){null!=O.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(O.messageKey))):null!=O.message&&this.editor.setStatus(mxUtils.htmlEntities(O.message));null!=O.modified&&(this.editor.modified=O.modified);return}if("spinner"==O.action){var l=null!=O.messageKey?mxResources.get(O.messageKey):O.message;null==O.show||O.show?this.spinner.spin(document.body,l):this.spinner.stop();return}if("exit"==O.action){this.actions.get("exit").funct();return}if("viewport"==O.action){null!=O.viewport&&
-(this.embedViewport=O.viewport,this.editor.graph.refresh(),this.fireEvent(new mxEventObject("embedViewportChanged")));return}if("fullscreenChanged"==O.action){W=null;try{var u=this.diagramContainer.getAttribute("data-scrollState");null!=u&&(this.diagramContainer.removeAttribute("data-scrollState"),W=JSON.parse(u))}catch(sa){}Editor.inlineFullscreen=O.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=W&&this.restoreScrollState(W);return}if("snapshot"==O.action){this.sendEmbeddedSvgExport(!0);
+(this.embedViewport=O.viewport,this.editor.graph.refresh(),this.fireEvent(new mxEventObject("embedViewportChanged")));return}if("fullscreenChanged"==O.action){V=null;try{var u=this.diagramContainer.getAttribute("data-scrollState");null!=u&&(this.diagramContainer.removeAttribute("data-scrollState"),V=JSON.parse(u))}catch(sa){}Editor.inlineFullscreen=O.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=V&&this.restoreScrollState(V);return}if("snapshot"==O.action){this.sendEmbeddedSvgExport(!0);
return}if("export"==O.action){if("png"==O.format||"xmlpng"==O.format){if(null==O.spin&&null==O.spinKey||this.spinner.spin(document.body,null!=O.spinKey?mxResources.get(O.spinKey):O.spin)){var H=null!=O.xml?O.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);var U=this.editor.graph,J=mxUtils.bind(this,function(sa,Aa){if(O.withSvg)O.withSvg=!1,this.getEmbeddedSvg(H,this.editor.graph,null,!0,function(Ka){J(sa,Ka)},null,null,O.embedImages,this.editor.graph.background,O.scale,O.border,O.shadow,
-"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var Ea=this.createLoadMessage("export");Ea.format=O.format;Ea.message=O;Ea.data=sa;Ea.svg=Aa;Ea.xml=H;I.postMessage(JSON.stringify(Ea),"*")}}),V=mxUtils.bind(this,function(sa){null==sa&&(sa=Editor.blankImage);"xmlpng"==O.format&&(sa=Editor.writeGraphModelToPng(sa,"tEXt","mxfile",encodeURIComponent(H)));U!=this.editor.graph&&U.container.parentNode.removeChild(U.container);J(sa)}),aa=O.pageId||(null!=this.pages?O.currentPage?this.currentPage.getId():
+"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var Ea=this.createLoadMessage("export");Ea.format=O.format;Ea.message=O;Ea.data=sa;Ea.svg=Aa;Ea.xml=H;I.postMessage(JSON.stringify(Ea),"*")}}),W=mxUtils.bind(this,function(sa){null==sa&&(sa=Editor.blankImage);"xmlpng"==O.format&&(sa=Editor.writeGraphModelToPng(sa,"tEXt","mxfile",encodeURIComponent(H)));U!=this.editor.graph&&U.container.parentNode.removeChild(U.container);J(sa)}),aa=O.pageId||(null!=this.pages?O.currentPage?this.currentPage.getId():
this.pages[0].getId():null);if(this.isExportToCanvas()){var ba=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=aa){var sa=U.getGlobalVariable;U=this.createTemporaryGraph(U.getStylesheet());for(var Aa,Ea=0;Ea<this.pages.length;Ea++)if(this.pages[Ea].getId()==aa){Aa=this.updatePageRoot(this.pages[Ea]);break}null==Aa&&(Aa=this.currentPage);U.getGlobalVariable=function(Wa){return"page"==Wa?Aa.getName():"pagenumber"==Wa?1:sa.apply(this,arguments)};document.body.appendChild(U.container);
-U.model.setRoot(Aa.root)}if(null!=O.layerIds){var Ka=U.model,Ma=Ka.getChildCells(Ka.getRoot()),ya={};for(Ea=0;Ea<O.layerIds.length;Ea++)ya[O.layerIds[Ea]]=!0;for(Ea=0;Ea<Ma.length;Ea++)Ka.setVisible(Ma[Ea],ya[Ma[Ea].id]||!1)}Ea=null;O.keepTheme&&(Ea=Editor.isDarkMode()?"dark":"light");this.editor.exportToCanvas(mxUtils.bind(this,function(Wa){V(Wa.toDataURL("image/png"))}),O.width,null,O.background,mxUtils.bind(this,function(){V(null)}),null,null,O.scale,O.transparent,O.shadow,null,U,O.border,null,
-O.grid,Ea)});null!=O.xml&&0<O.xml.length&&(k=!0,this.setFileData(H),k=!1);ba()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==O.format?"1":"0")+(null!=aa?"&pageId="+aa:"")+(null!=O.layerIds&&0<O.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:O.layerIds})):"")+(null!=O.scale?"&scale="+O.scale:"")+"&base64=1&xml="+encodeURIComponent(H))).send(mxUtils.bind(this,function(sa){200<=sa.getStatus()&&299>=sa.getStatus()?J("data:image/png;base64,"+sa.getText()):V(null)}),
-mxUtils.bind(this,function(){V(null)}))}}else if(ba=mxUtils.bind(this,function(){var sa=this.createLoadMessage("export");sa.message=O;if("html2"==O.format||"html"==O.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var Aa=this.getXmlFileData();sa.xml=mxUtils.getXml(Aa);sa.data=this.getFileData(null,null,!0,null,null,null,Aa);sa.format=O.format}else if("html"==O.format)Aa=this.editor.getGraphXml(),sa.data=this.getHtml(Aa,this.editor.graph),sa.xml=mxUtils.getXml(Aa),sa.format=
+U.model.setRoot(Aa.root)}if(null!=O.layerIds){var Ka=U.model,Ma=Ka.getChildCells(Ka.getRoot()),ya={};for(Ea=0;Ea<O.layerIds.length;Ea++)ya[O.layerIds[Ea]]=!0;for(Ea=0;Ea<Ma.length;Ea++)Ka.setVisible(Ma[Ea],ya[Ma[Ea].id]||!1)}Ea=null;O.keepTheme&&(Ea=Editor.isDarkMode()?"dark":"light");this.editor.exportToCanvas(mxUtils.bind(this,function(Wa){W(Wa.toDataURL("image/png"))}),O.width,null,O.background,mxUtils.bind(this,function(){W(null)}),null,null,O.scale,O.transparent,O.shadow,null,U,O.border,null,
+O.grid,Ea)});null!=O.xml&&0<O.xml.length&&(k=!0,this.setFileData(H),k=!1);ba()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==O.format?"1":"0")+(null!=aa?"&pageId="+aa:"")+(null!=O.layerIds&&0<O.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:O.layerIds})):"")+(null!=O.scale?"&scale="+O.scale:"")+"&base64=1&xml="+encodeURIComponent(H))).send(mxUtils.bind(this,function(sa){200<=sa.getStatus()&&299>=sa.getStatus()?J("data:image/png;base64,"+sa.getText()):W(null)}),
+mxUtils.bind(this,function(){W(null)}))}}else if(ba=mxUtils.bind(this,function(){var sa=this.createLoadMessage("export");sa.message=O;if("html2"==O.format||"html"==O.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var Aa=this.getXmlFileData();sa.xml=mxUtils.getXml(Aa);sa.data=this.getFileData(null,null,!0,null,null,null,Aa);sa.format=O.format}else if("html"==O.format)Aa=this.editor.getGraphXml(),sa.data=this.getHtml(Aa,this.editor.graph),sa.xml=mxUtils.getXml(Aa),sa.format=
O.format;else{mxSvgCanvas2D.prototype.foAltText=null;Aa=null!=O.background?O.background:this.editor.graph.background;Aa==mxConstants.NONE&&(Aa=null);sa.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);sa.format="svg";var Ea=mxUtils.bind(this,function(Ma){this.editor.graph.setEnabled(!0);this.spinner.stop();sa.data=Editor.createSvgDataUri(Ma);I.postMessage(JSON.stringify(sa),"*")}),Ka="auto";O.keepTheme&&(Ka=Editor.isDarkMode()?"dark":"light");null!=O.theme&&(Ka=O.theme);if("xmlsvg"==
O.format){if(null==O.spin&&null==O.spinKey||this.spinner.spin(document.body,null!=O.spinKey?mxResources.get(O.spinKey):O.spin)){Ka=null;if(this.isAutoDarkMode()||Editor.isDarkMode())Ka="auto";null!=O.theme&&(Ka=O.theme);this.getEmbeddedSvg(sa.xml,this.editor.graph,null,!0,Ea,null,null,O.embedImages,Aa,O.scale,O.border,O.shadow,Ka)}}else if(null==O.spin&&null==O.spinKey||this.spinner.spin(document.body,null!=O.spinKey?mxResources.get(O.spinKey):O.spin))this.editor.graph.setEnabled(!1),Aa=this.editor.graph.getSvg(Aa,
O.scale,O.border,null,null,null,null,null,null,this.editor.graph.shadowVisible||O.shadow,null,Ka),(this.editor.graph.shadowVisible||O.shadow)&&this.editor.graph.addSvgShadow(Aa),this.embedFonts(Aa,mxUtils.bind(this,function(Ma){O.embedImages||null==O.embedImages?this.editor.convertImages(Ma,mxUtils.bind(this,function(ya){Ea(mxUtils.getXml(ya))})):Ea(mxUtils.getXml(Ma))}));return}I.postMessage(JSON.stringify(sa),"*")}),null!=O.xml&&0<O.xml.length){if(this.editor.graph.mathEnabled){var ja=Editor.onMathJaxDone;
-Editor.onMathJaxDone=function(){ja.apply(this,arguments);ba()}}k=!0;this.setFileData(O.xml);k=!1;this.editor.graph.mathEnabled||ba()}else ba();return}if("load"==O.action){ca=O.toSketch;A=1==O.autosave;this.hideDialog();null!=O.modified&&null==urlParams.modified&&(urlParams.modified=O.modified);null!=O.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=O.saveAndExit);if("1"==urlParams.saveAndExit||"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||
+Editor.onMathJaxDone=function(){ja.apply(this,arguments);ba()}}k=!0;this.setFileData(O.xml);k=!1;this.editor.graph.mathEnabled||ba()}else ba();return}if("load"==O.action){ca=O.toSketch;B=1==O.autosave;this.hideDialog();null!=O.modified&&null==urlParams.modified&&(urlParams.modified=O.modified);null!=O.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=O.saveAndExit);if("1"==urlParams.saveAndExit||"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||
this.editor.editable)this.keyHandler.bindAction(83,!0,"saveAndExit"),"1"!=urlParams.noSaveBtn&&(this.actions.get("save").shortcut=Editor.ctrlKey+"+Shift+S",this.keyHandler.bindAction(83,!0,"save",!0));null!=O.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=O.noSaveBtn);if(null!=O.rough){var oa=Editor.sketchMode;this.doSetSketchMode(O.rough);oa!=Editor.sketchMode&&this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=O.dark&&this.setDarkMode(O.dark);null!=O.border&&(this.embedExportBorder=
O.border);null!=O.theme&&(this.embedExportTheme=O.theme);null!=O.background&&(this.embedExportBackground=O.background);null!=O.viewport&&(this.embedViewport=O.viewport);this.embedExitPoint=null;if(null!=O.rect){var qa=this.embedExportBorder;this.diagramContainer.style.left=Math.max(60,O.rect.left)+"px";this.diagramContainer.style.top=Math.max(40,O.rect.top)+"px";this.minInlineWidth=O.minWidth;this.minInlineHeight=O.minHeight;this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.bottom=
"";this.diagramContainer.style.right="";var ra=O.maxFitScale,ua=O.rect.width+2*qa,za=O.rect.height+2*qa;da=mxUtils.bind(this,function(){var sa=mxUtils.getDocumentSize();ua=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,ua):ua,sa.width-80);sa=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,za):za,sa.height-80);this.diagramContainer.style.width=ua+"px";this.diagramContainer.style.height=sa+"px";var Aa=this.editor.graph;sa=Aa.maxFitScale;Aa.maxFitScale=ra;Aa.fit(2*
@@ -3921,103 +3936,103 @@ qa,null,null,null,null,null,za);this.setPageVisible(!1);if(null!=this.minInlineW
(this.formatWindow.window.div.style.top=Aa.container.style.top);var Ka=Aa.getGraphBounds();Aa.container.clientWidth>Ka.width+2*qa&&(Aa.container.scrollLeft=Ka.x+(Ka.width+qa-Aa.container.clientWidth)/2)}),10)})}null!=O.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=O.noExitBtn);null!=O.title&&null!=this.buttonContainer&&(ma=this.createStatusDiv(""),mxUtils.write(ma,O.title),null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan),this.buttonContainer.appendChild(ma),
this.embedFilenameSpan=ma);try{O.libs&&this.sidebar.showEntries(O.libs)}catch(sa){}O=null!=O.xmlpng?this.extractGraphModelFromPng(O.xmlpng):null!=O.descriptor?O.descriptor:O.xml}else{if("merge"==O.action){var Ba=this.getCurrentFile();null!=Ba&&(ma=ea(O.xml),null!=ma&&""!=ma&&Ba.mergeFile(new LocalFile(this,ma),function(){I.postMessage(JSON.stringify({event:"merge",message:O}),"*")},function(sa){I.postMessage(JSON.stringify({event:"merge",message:O,error:sa}),"*")}))}else"remoteInvokeReady"==O.action?
this.handleRemoteInvokeReady(I):"remoteInvoke"==O.action?this.handleRemoteInvoke(O,K.origin):"remoteInvokeResponse"==O.action?this.handleRemoteInvokeResponse(O):I.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(O)}),"*");return}}catch(sa){this.handleError(sa)}}var Ca=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),La=mxUtils.bind(this,function(sa,Aa){k=!0;try{c(sa,
-Aa,null,ca)}catch(Ea){this.handleError(Ea)}k=!1;null!=urlParams.modified&&this.editor.setStatus("");z=Ca();A&&null==f&&(f=mxUtils.bind(this,function(Ea,Ka){Ea=Ca();Ea==z||k||(Ka=this.createLoadMessage("autosave"),Ka.xml=Ea,(window.opener||window.parent).postMessage(JSON.stringify(Ka),"*"));z=Ea}),this.editor.graph.model.addListener(mxEvent.CHANGE,f),this.editor.graph.addListener("gridSizeChanged",f),this.editor.graph.addListener("shadowVisibleChanged",f),this.addListener("pageFormatChanged",f),this.addListener("pageScaleChanged",
+Aa,null,ca)}catch(Ea){this.handleError(Ea)}k=!1;null!=urlParams.modified&&this.editor.setStatus("");z=Ca();B&&null==f&&(f=mxUtils.bind(this,function(Ea,Ka){Ea=Ca();Ea==z||k||(Ka=this.createLoadMessage("autosave"),Ka.xml=Ea,(window.opener||window.parent).postMessage(JSON.stringify(Ka),"*"));z=Ea}),this.editor.graph.model.addListener(mxEvent.CHANGE,f),this.editor.graph.addListener("gridSizeChanged",f),this.editor.graph.addListener("shadowVisibleChanged",f),this.addListener("pageFormatChanged",f),this.addListener("pageScaleChanged",
f),this.addListener("backgroundColorChanged",f),this.addListener("backgroundImageChanged",f),this.addListener("foldingEnabledChanged",f),this.addListener("mathEnabledChanged",f),this.addListener("gridEnabledChanged",f),this.addListener("guidesEnabledChanged",f),this.addListener("pageViewChanged",f));if("1"==urlParams.returnbounds||"json"==urlParams.proto)Aa=this.createLoadMessage("load"),Aa.xml=sa,I.postMessage(JSON.stringify(Aa),"*");null!=da&&da()});null!=O&&"function"===typeof O.substring&&"data:application/vnd.visio;base64,"==
O.substring(0,34)?(ea="0M8R4KGxGuE"==O.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(O.substring(O.indexOf(",")+1)),function(sa){La(sa,K)},mxUtils.bind(this,function(sa){this.handleError(sa)}),ea)):null!=O&&"function"===typeof O.substring&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(O,"")?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(O,mxUtils.bind(this,function(sa){4==sa.readyState&&(200<=sa.status&&
299>=sa.status&&"<mxGraphModel"==sa.responseText.substring(0,13)?La(sa.responseText,K):this.handleError({message:413==sa.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")}))}),""):null!=O&&"function"===typeof O.substring&&this.isLucidChartData(O)?this.convertLucidChart(O,mxUtils.bind(this,function(sa){La(sa)}),mxUtils.bind(this,function(sa){this.handleError(sa)})):null==O||"object"!==typeof O||null==O.format||null==O.data&&null==O.url?(O=ea(O),La(O,K)):this.loadDescriptor(O,
mxUtils.bind(this,function(sa){La(Ca(),K)}),mxUtils.bind(this,function(sa){this.handleError(sa,mxResources.get("errorLoadingFile"))}))}}));var I=window.opener||window.parent;C="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";I.postMessage(C,"*");if("json"==urlParams.proto){var L=this.editor.graph.openLink;this.editor.graph.openLink=function(K,O,da){L.apply(this,arguments);I.postMessage(JSON.stringify({event:"openLink",href:K,target:O,allowOpener:da}),"*")}}};EditorUi.prototype.createEmbedButton=
-function(c,f,k,A){var z="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,C=document.createElement("button");C.setAttribute("title",c+(null!=k?" ("+k+")":""));C.style.marginLeft="6px";mxUtils.write(C,c);z?(C.className=A?"gePrimaryBtn":"",C.style.marginLeft="8px",C.style.padding="6px"):C.className="geBigButton"+(A?"":" geBigStandardButton");mxEvent.addListener(C,"click",f);return C};EditorUi.prototype.addEmbedButtons=function(){var c=document.createElement("div");
+function(c,f,k,B){var z="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,C=document.createElement("button");C.setAttribute("title",c+(null!=k?" ("+k+")":""));C.style.marginLeft="6px";mxUtils.write(C,c);z?(C.className=B?"gePrimaryBtn":"",C.style.marginLeft="8px",C.style.padding="6px"):C.className="geBigButton"+(B?"":" geBigStandardButton");mxEvent.addListener(C,"click",f);return C};EditorUi.prototype.addEmbedButtons=function(){var c=document.createElement("div");
c.style.display="inline-flex";c.style.alignItems="center";c.style.marginLeft="auto";"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme&&(c.style.marginRight="66px",c.style["float"]="right","atlas"==Editor.currentTheme&&(c.style.marginTop="2px"));document.createElement("button").className="geBigButton";"1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&c.appendChild(this.createEmbedButton("1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),
this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S",!0)):(c.appendChild(this.createEmbedButton(mxResources.get("save"),mxUtils.bind(this,function(){this.actions.get("save").funct(!1)}),"1"==urlParams.saveAndExit?Editor.ctrlKey+"+Shift+S":Editor.ctrlKey+"+S",!0)),"1"==urlParams.saveAndExit&&c.appendChild(this.createEmbedButton(mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S")));"1"!=urlParams.noExitBtn&&c.appendChild(this.createEmbedButton("1"==urlParams.publishClose?
mxResources.get("close"):mxResources.get("exit"),this.actions.get("exit").funct));"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||null==this.buttonContainer?null!=this.menubar&&(this.toolbar.container.appendChild(c),this.toolbar.staticElements.push(c)):(this.buttonContainer.appendChild(c),this.editor.fireEvent(new mxEventObject("statusChanged")))};EditorUi.prototype.showImportCsvDialog=function(){null==this.importCsvDialog&&(this.importCsvDialog=new TextareaDialog(this,
mxResources.get("csv")+":",Editor.defaultCsvValue,mxUtils.bind(this,function(c){this.importCsv(c)}),null,null,620,430,null,!0,!0,mxResources.get("import"),this.isOffline()?null:"https://drawio-app.com/import-from-csv-to-drawio/"));this.showDialog(this.importCsvDialog.container,640,520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(c){this.loadOrgChartLayouts(mxUtils.bind(this,function(){var f=new TextareaDialog(this,mxResources.get("layout"),
-c,mxUtils.bind(this,function(k){if(0<k.length)try{var A=JSON.parse(k);this.executeLayouts(this.editor.graph.createLayouts(A));this.customLayoutConfig=A;this.hideDialog()}catch(z){this.handleError(z)}}),null,null,null,null,mxUtils.bind(this,function(k,A){var z=mxUtils.button(mxResources.get("copy"),mxUtils.bind(this,function(){try{var C=A.value;A.value=JSON.stringify(JSON.parse(C));A.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?A.select():document.execCommand("selectAll",!1,null);
-document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));A.value=C}catch(I){this.handleError(I)}}));z.setAttribute("title","copy");z.className="geBtn";k.appendChild(z)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(f.container,620,460,!0,!0);f.init()}))};EditorUi.prototype.loadOrgChartLayouts=function(c){this.createTimeout(null,mxUtils.bind(this,function(f){var k=mxUtils.bind(this,function(){this.loadingOrgChart=!1;f.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),
-this.spinner.stop(),c())}),A=mxUtils.bind(this,function(z){this.loadingOrgChart=!1;f.clear()&&this.handleError(z)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?k():this.spinner.spin(document.body,mxResources.get("loading"))&&(this.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",
-k,null,null,null,A)},null,null,null,A)},null,null,null,A)},null,null,null,A):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",k,null,null,null,A))}),onerror)};EditorUi.prototype.importCsv=function(c,f){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,f)}))};EditorUi.prototype.doImportCsv=function(c,f){try{var k=c.split("\n"),A=[],z=[],C=[],I={};if(0<k.length){var L={},K=this.editor.graph,O=null,da=null,ea=null,ca=null,W=null,ma=null,la=null,Y="whiteSpace=wrap;html=1;",
-fa=null,Z=null,l="",u="auto",H="auto",U=!1,J=null,V=null,aa=40,ba=40,ja=100,oa=0,qa=mxUtils.bind(this,function(){null!=f?f(Da):(K.setSelectionCells(Da),K.scrollCellToVisible(K.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),ra=K.getFreeInsertPoint(),ua=ra.x,za=ra.y;ra=za;var Ba=null,Ca="auto";Z=null;for(var La=[],sa=null,Aa=null,Ea=0;Ea<k.length&&"#"==k[Ea].charAt(0);){c=k[Ea].replace(/\r$/,"");for(Ea++;Ea<k.length&&
-"\\"==c.charAt(c.length-1)&&"#"==k[Ea].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(k[Ea].substring(1)),Ea++;if("#"!=c.charAt(1)){var Ka=c.indexOf(":");if(0<Ka){var Ma=mxUtils.trim(c.substring(1,Ka)),ya=mxUtils.trim(c.substring(Ka+1));"label"==Ma?Ba=Graph.sanitizeHtml(ya):"labelname"==Ma&&0<ya.length&&"-"!=ya?W=ya:"labels"==Ma&&0<ya.length&&"-"!=ya?la=JSON.parse(ya):"style"==Ma?da=ya:"parentstyle"==Ma?Y=ya:"unknownStyle"==Ma&&"-"!=ya?ma=ya:"stylename"==Ma&&0<ya.length&&"-"!=ya?ca=ya:"styles"==
-Ma&&0<ya.length&&"-"!=ya?ea=JSON.parse(ya):"vars"==Ma&&0<ya.length&&"-"!=ya?O=JSON.parse(ya):"identity"==Ma&&0<ya.length&&"-"!=ya?fa=ya:"parent"==Ma&&0<ya.length&&"-"!=ya?Z=ya:"namespace"==Ma&&0<ya.length&&"-"!=ya?l=ya:"width"==Ma?u=ya:"height"==Ma?H=ya:"collapsed"==Ma&&"-"!=ya?U="true"==ya:"left"==Ma&&0<ya.length?J=ya:"top"==Ma&&0<ya.length?V=ya:"ignore"==Ma?Aa=ya.split(","):"connect"==Ma?La.push(JSON.parse(ya)):"link"==Ma?sa=ya:"padding"==Ma?oa=parseFloat(ya):"edgespacing"==Ma?aa=parseFloat(ya):
+c,mxUtils.bind(this,function(k){if(0<k.length)try{var B=JSON.parse(k);this.executeLayouts(this.editor.graph.createLayouts(B));this.customLayoutConfig=B;this.hideDialog()}catch(z){this.handleError(z)}}),null,null,null,null,mxUtils.bind(this,function(k,B){var z=mxUtils.button(mxResources.get("copy"),mxUtils.bind(this,function(){try{var C=B.value;B.value=JSON.stringify(JSON.parse(C));B.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?B.select():document.execCommand("selectAll",!1,null);
+document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));B.value=C}catch(I){this.handleError(I)}}));z.setAttribute("title","copy");z.className="geBtn";k.appendChild(z)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(f.container,620,460,!0,!0);f.init()}))};EditorUi.prototype.loadOrgChartLayouts=function(c){this.createTimeout(null,mxUtils.bind(this,function(f){var k=mxUtils.bind(this,function(){this.loadingOrgChart=!1;f.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),
+this.spinner.stop(),c())}),B=mxUtils.bind(this,function(z){this.loadingOrgChart=!1;f.clear()&&this.handleError(z)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?k():this.spinner.spin(document.body,mxResources.get("loading"))&&(this.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",
+k,null,null,null,B)},null,null,null,B)},null,null,null,B)},null,null,null,B):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",k,null,null,null,B))}),onerror)};EditorUi.prototype.importCsv=function(c,f){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,f)}))};EditorUi.prototype.doImportCsv=function(c,f){try{var k=c.split("\n"),B=[],z=[],C=[],I={};if(0<k.length){var L={},K=this.editor.graph,O=null,da=null,ea=null,ca=null,V=null,ma=null,la=null,Y="whiteSpace=wrap;html=1;",
+fa=null,Z=null,l="",u="auto",H="auto",U=!1,J=null,W=null,aa=40,ba=40,ja=100,oa=0,qa=mxUtils.bind(this,function(){null!=f?f(Da):(K.setSelectionCells(Da),K.scrollCellToVisible(K.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),ra=K.getFreeInsertPoint(),ua=ra.x,za=ra.y;ra=za;var Ba=null,Ca="auto";Z=null;for(var La=[],sa=null,Aa=null,Ea=0;Ea<k.length&&"#"==k[Ea].charAt(0);){c=k[Ea].replace(/\r$/,"");for(Ea++;Ea<k.length&&
+"\\"==c.charAt(c.length-1)&&"#"==k[Ea].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(k[Ea].substring(1)),Ea++;if("#"!=c.charAt(1)){var Ka=c.indexOf(":");if(0<Ka){var Ma=mxUtils.trim(c.substring(1,Ka)),ya=mxUtils.trim(c.substring(Ka+1));"label"==Ma?Ba=Graph.sanitizeHtml(ya):"labelname"==Ma&&0<ya.length&&"-"!=ya?V=ya:"labels"==Ma&&0<ya.length&&"-"!=ya?la=JSON.parse(ya):"style"==Ma?da=ya:"parentstyle"==Ma?Y=ya:"unknownStyle"==Ma&&"-"!=ya?ma=ya:"stylename"==Ma&&0<ya.length&&"-"!=ya?ca=ya:"styles"==
+Ma&&0<ya.length&&"-"!=ya?ea=JSON.parse(ya):"vars"==Ma&&0<ya.length&&"-"!=ya?O=JSON.parse(ya):"identity"==Ma&&0<ya.length&&"-"!=ya?fa=ya:"parent"==Ma&&0<ya.length&&"-"!=ya?Z=ya:"namespace"==Ma&&0<ya.length&&"-"!=ya?l=ya:"width"==Ma?u=ya:"height"==Ma?H=ya:"collapsed"==Ma&&"-"!=ya?U="true"==ya:"left"==Ma&&0<ya.length?J=ya:"top"==Ma&&0<ya.length?W=ya:"ignore"==Ma?Aa=ya.split(","):"connect"==Ma?La.push(JSON.parse(ya)):"link"==Ma?sa=ya:"padding"==Ma?oa=parseFloat(ya):"edgespacing"==Ma?aa=parseFloat(ya):
"nodespacing"==Ma?ba=parseFloat(ya):"levelspacing"==Ma?ja=parseFloat(ya):"layout"==Ma&&(Ca=ya)}}}if(null==k[Ea])throw Error(mxResources.get("invalidOrMissingFile"));var Wa=this.editor.csvToArray(k[Ea].replace(/\r$/,""));Ka=c=null;Ma=[];for(ya=0;ya<Wa.length;ya++)fa==Wa[ya]&&(c=ya),Z==Wa[ya]&&(Ka=ya),Ma.push(mxUtils.trim(Wa[ya]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==Ba&&(Ba="%"+Ma[0]+"%");if(null!=La)for(var Ia=0;Ia<La.length;Ia++)null==L[La[Ia].to]&&(L[La[Ia].to]=
-{});fa=[];for(ya=Ea+1;ya<k.length;ya++){var Xa=this.editor.csvToArray(k[ya].replace(/\r$/,""));if(null==Xa){var Pa=40<k[ya].length?k[ya].substring(0,40)+"...":k[ya];throw Error(Pa+" ("+ya+"):\n"+mxResources.get("containsValidationErrors"));}0<Xa.length&&fa.push(Xa)}K.model.beginUpdate();try{for(ya=0;ya<fa.length;ya++){Xa=fa[ya];var t=null,N=null!=c?l+Xa[c]:null;k=!1;null!=N&&(t=K.model.getCell(N),k=null==t||0<=mxUtils.indexOf(A,t));var Q=new mxCell(Ba,new mxGeometry(ua,ra,0,0),da||"whiteSpace=wrap;html=1;");
-Q.collapsed=U;Q.vertex=!0;Q.id=N;null==t||k||K.model.setCollapsed(t,U);for(var X=0;X<Xa.length;X++)K.setAttributeForCell(Q,Ma[X],Xa[X]),null==t||k||K.setAttributeForCell(t,Ma[X],Xa[X]);if(null!=W&&null!=la){var ia=la[Q.getAttribute(W)];null!=ia&&(K.labelChanged(Q,ia),null==t||k||K.cellLabelChanged(t,ia))}if(null!=ca&&null!=ea){var ka=ea[Q.getAttribute(ca)];null!=ka&&(Q.style=ka)}K.setAttributeForCell(Q,"placeholders","1");Q.style=K.replacePlaceholders(Q,Q.style,O);null==t||k?K.fireEvent(new mxEventObject("cellsInserted",
+{});fa=[];for(ya=Ea+1;ya<k.length;ya++){var Xa=this.editor.csvToArray(k[ya].replace(/\r$/,""));if(null==Xa){var Pa=40<k[ya].length?k[ya].substring(0,40)+"...":k[ya];throw Error(Pa+" ("+ya+"):\n"+mxResources.get("containsValidationErrors"));}0<Xa.length&&fa.push(Xa)}K.model.beginUpdate();try{for(ya=0;ya<fa.length;ya++){Xa=fa[ya];var t=null,N=null!=c?l+Xa[c]:null;k=!1;null!=N&&(t=K.model.getCell(N),k=null==t||0<=mxUtils.indexOf(B,t));var Q=new mxCell(Ba,new mxGeometry(ua,ra,0,0),da||"whiteSpace=wrap;html=1;");
+Q.collapsed=U;Q.vertex=!0;Q.id=N;null==t||k||K.model.setCollapsed(t,U);for(var X=0;X<Xa.length;X++)K.setAttributeForCell(Q,Ma[X],Xa[X]),null==t||k||K.setAttributeForCell(t,Ma[X],Xa[X]);if(null!=V&&null!=la){var ia=la[Q.getAttribute(V)];null!=ia&&(K.labelChanged(Q,ia),null==t||k||K.cellLabelChanged(t,ia))}if(null!=ca&&null!=ea){var ka=ea[Q.getAttribute(ca)];null!=ka&&(Q.style=ka)}K.setAttributeForCell(Q,"placeholders","1");Q.style=K.replacePlaceholders(Q,Q.style,O);null==t||k?K.fireEvent(new mxEventObject("cellsInserted",
"cells",[Q])):(K.model.setStyle(t,Q.style),0>mxUtils.indexOf(C,t)&&C.push(t),K.fireEvent(new mxEventObject("cellsInserted","cells",[t])));k=null!=t;t=Q;if(!k)for(Ia=0;Ia<La.length;Ia++)L[La[Ia].to][t.getAttribute(La[Ia].to)]=t;null!=sa&&"link"!=sa&&(K.setLinkForCell(t,t.getAttribute(sa)),K.setAttributeForCell(t,sa,null));var pa=this.editor.graph.getPreferredSizeForCell(t);Z=null!=Ka?K.model.getCell(l+Xa[Ka]):null;if(t.vertex){Pa=null!=Z?0:ua;Ea=null!=Z?0:za;null!=J&&null!=t.getAttribute(J)&&(t.geometry.x=
-Pa+parseFloat(t.getAttribute(J)));null!=V&&null!=t.getAttribute(V)&&(t.geometry.y=Ea+parseFloat(t.getAttribute(V)));var xa="@"==u.charAt(0)?t.getAttribute(u.substring(1)):null;t.geometry.width=null!=xa&&"auto"!=xa?parseFloat(t.getAttribute(u.substring(1))):"auto"==u||"auto"==xa?pa.width+oa:parseFloat(u);var ta="@"==H.charAt(0)?t.getAttribute(H.substring(1)):null;t.geometry.height=null!=ta&&"auto"!=ta&&"width"!=H?parseFloat(ta):"auto"==H||"auto"==ta?pa.height+oa:"width"==H?t.geometry.width:parseFloat(H);
-ra+=t.geometry.height+ba}k?(null==I[N]&&(I[N]=[]),I[N].push(t)):(A.push(t),null!=Z?(Z.style=K.replacePlaceholders(Z,Y,O),K.addCell(t,Z),z.push(Z)):C.push(K.addCell(t)))}for(ya=0;ya<z.length;ya++)xa="@"==u.charAt(0)?z[ya].getAttribute(u.substring(1)):null,ta="@"==H.charAt(0)?z[ya].getAttribute(H.substring(1)):null,"auto"!=u&&"auto"!=xa||"auto"!=H&&"auto"!=ta||K.updateGroupBounds([z[ya]],oa,!0);var va=C.slice(),Da=C.slice();for(Ia=0;Ia<La.length;Ia++){var Na=La[Ia];for(ya=0;ya<A.length;ya++){t=A[ya];
+Pa+parseFloat(t.getAttribute(J)));null!=W&&null!=t.getAttribute(W)&&(t.geometry.y=Ea+parseFloat(t.getAttribute(W)));var xa="@"==u.charAt(0)?t.getAttribute(u.substring(1)):null;t.geometry.width=null!=xa&&"auto"!=xa?parseFloat(t.getAttribute(u.substring(1))):"auto"==u||"auto"==xa?pa.width+oa:parseFloat(u);var ta="@"==H.charAt(0)?t.getAttribute(H.substring(1)):null;t.geometry.height=null!=ta&&"auto"!=ta&&"width"!=H?parseFloat(ta):"auto"==H||"auto"==ta?pa.height+oa:"width"==H?t.geometry.width:parseFloat(H);
+ra+=t.geometry.height+ba}k?(null==I[N]&&(I[N]=[]),I[N].push(t)):(B.push(t),null!=Z?(Z.style=K.replacePlaceholders(Z,Y,O),K.addCell(t,Z),z.push(Z)):C.push(K.addCell(t)))}for(ya=0;ya<z.length;ya++)xa="@"==u.charAt(0)?z[ya].getAttribute(u.substring(1)):null,ta="@"==H.charAt(0)?z[ya].getAttribute(H.substring(1)):null,"auto"!=u&&"auto"!=xa||"auto"!=H&&"auto"!=ta||K.updateGroupBounds([z[ya]],oa,!0);var va=C.slice(),Da=C.slice();for(Ia=0;Ia<La.length;Ia++){var Na=La[Ia];for(ya=0;ya<B.length;ya++){t=B[ya];
var Ya=mxUtils.bind(this,function(nb,lb,db){var mb=lb.getAttribute(db.from);if(null!=mb&&""!=mb){mb=mb.split(",");for(var ub=0;ub<mb.length;ub++){var eb=L[db.to][mb[ub]];if(null==eb&&null!=ma){eb=new mxCell(mb[ub],new mxGeometry(ua,za,0,0),ma);eb.style=K.replacePlaceholders(lb,eb.style,O);var ob=this.editor.graph.getPreferredSizeForCell(eb);eb.geometry.width=ob.width+oa;eb.geometry.height=ob.height+oa;L[db.to][mb[ub]]=eb;eb.vertex=!0;eb.id=mb[ub];C.push(K.addCell(eb))}if(null!=eb){ob=db.label;null!=
db.fromlabel&&(ob=(lb.getAttribute(db.fromlabel)||"")+(ob||""));null!=db.sourcelabel&&(ob=K.replacePlaceholders(lb,db.sourcelabel,O)+(ob||""));null!=db.tolabel&&(ob=(ob||"")+(eb.getAttribute(db.tolabel)||""));null!=db.targetlabel&&(ob=(ob||"")+K.replacePlaceholders(eb,db.targetlabel,O));var tb="target"==db.placeholders==!db.invert?eb:nb;tb=null!=db.style?K.replacePlaceholders(tb,db.style,O):K.createCurrentEdgeStyle();ob=K.insertEdge(null,null,ob||"",db.invert?eb:nb,db.invert?nb:eb,tb);if(null!=db.labels)for(tb=
0;tb<db.labels.length;tb++){var pb=db.labels[tb],wb=new mxCell(pb.label||tb,new mxGeometry(null!=pb.x?pb.x:0,null!=pb.y?pb.y:0,0,0),"resizable=0;html=1;");wb.vertex=!0;wb.connectable=!1;wb.geometry.relative=!0;null!=pb.placeholders&&(wb.value=K.replacePlaceholders("target"==pb.placeholders==!db.invert?eb:nb,wb.value,O));if(null!=pb.dx||null!=pb.dy)wb.geometry.offset=new mxPoint(null!=pb.dx?pb.dx:0,null!=pb.dy?pb.dy:0);ob.insert(wb)}if(null!=db.data)for(var vb in db.data)K.setAttributeForCell(ob,vb,
-db.data[vb]);Da.push(ob);mxUtils.remove(db.invert?nb:eb,va)}}}});Ya(t,t,Na);if(null!=I[t.id])for(X=0;X<I[t.id].length;X++)Ya(t,I[t.id][X],Na)}}if(null!=Aa)for(ya=0;ya<A.length;ya++)for(t=A[ya],X=0;X<Aa.length;X++)K.setAttributeForCell(t,mxUtils.trim(Aa[X]),null);if(0<C.length){var Za=new mxParallelEdgeLayout(K);Za.spacing=aa;Za.checkOverlap=!0;var ab=function(){0<Za.spacing&&Za.execute(K.getDefaultParent());for(var nb=0;nb<C.length;nb++){var lb=K.getCellGeometry(C[nb]);lb.x=Math.round(K.snap(lb.x));
+db.data[vb]);Da.push(ob);mxUtils.remove(db.invert?nb:eb,va)}}}});Ya(t,t,Na);if(null!=I[t.id])for(X=0;X<I[t.id].length;X++)Ya(t,I[t.id][X],Na)}}if(null!=Aa)for(ya=0;ya<B.length;ya++)for(t=B[ya],X=0;X<Aa.length;X++)K.setAttributeForCell(t,mxUtils.trim(Aa[X]),null);if(0<C.length){var Za=new mxParallelEdgeLayout(K);Za.spacing=aa;Za.checkOverlap=!0;var ab=function(){0<Za.spacing&&Za.execute(K.getDefaultParent());for(var nb=0;nb<C.length;nb++){var lb=K.getCellGeometry(C[nb]);lb.x=Math.round(K.snap(lb.x));
lb.y=Math.round(K.snap(lb.y));"auto"==u&&(lb.width=Math.round(K.snap(lb.width)));"auto"==H&&(lb.height=Math.round(K.snap(lb.height)))}};if("["==Ca.charAt(0)){var Ra=qa;K.view.validate();this.executeLayouts(K.createLayouts(JSON.parse(Ca)),function(){ab();Ra()});qa=null}else if("circle"==Ca){var Oa=new mxCircleLayout(K);Oa.disableEdgeStyle=!1;Oa.resetEdges=!1;var kb=Oa.isVertexIgnored;Oa.isVertexIgnored=function(nb){return kb.apply(this,arguments)||0>mxUtils.indexOf(C,nb)};this.executeLayout(function(){Oa.execute(K.getDefaultParent());
ab()},!0,qa);qa=null}else if("horizontaltree"==Ca||"verticaltree"==Ca||"auto"==Ca&&Da.length==2*C.length-1&&1==va.length){K.view.validate();var cb=new mxCompactTreeLayout(K,"horizontaltree"==Ca);cb.levelDistance=ba;cb.edgeRouting=!1;cb.resetEdges=!1;cb.sortEdges=!0;this.executeLayout(function(){cb.execute(K.getDefaultParent(),0<va.length?va[0]:null)},!0,qa);qa=null}else if("horizontalflow"==Ca||"verticalflow"==Ca||"auto"==Ca&&1==va.length){K.view.validate();var $a=new mxHierarchicalLayout(K,"horizontalflow"==
Ca?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);$a.intraCellSpacing=ba;$a.parallelEdgeSpacing=aa;$a.interRankCellSpacing=ja;$a.disableEdgeStyle=!1;this.executeLayout(function(){$a.execute(K.getDefaultParent(),Da);K.moveCells(Da,ua,za)},!0,qa);qa=null}else if("orgchart"==Ca){K.view.validate();var fb=new mxOrgChartLayout(K,2,ja,ba),jb=fb.isVertexIgnored;fb.isVertexIgnored=function(nb){return jb.apply(this,arguments)||0>mxUtils.indexOf(C,nb)};this.executeLayout(function(){fb.execute(K.getDefaultParent());
ab()},!0,qa);qa=null}else if("organic"==Ca||"auto"==Ca&&Da.length>C.length){K.view.validate();var sb=new mxFastOrganicLayout(K);sb.forceConstant=3*ba;sb.disableEdgeStyle=!1;sb.resetEdges=!1;var Ab=sb.isVertexIgnored;sb.isVertexIgnored=function(nb){return Ab.apply(this,arguments)||0>mxUtils.indexOf(C,nb)};this.executeLayout(function(){sb.execute(K.getDefaultParent());ab()},!0,qa);qa=null}}this.hideDialog()}finally{K.model.endUpdate()}null!=qa&&qa()}}catch(nb){this.handleError(nb)}};EditorUi.prototype.getSearch=
-function(c){var f="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var k="?",A;for(A in urlParams)0>mxUtils.indexOf(c,A)&&null!=urlParams[A]&&(f+=k+A+"="+urlParams[A],k="&")}else f=window.location.search;return f};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var f=0<c.indexOf("?")?1:0;if("1"==urlParams.offline)c+=window.location.search;else{var k="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),
-A;for(A in urlParams)0>mxUtils.indexOf(k,A)&&(c=0==f?c+"?":c+"&",null!=urlParams[A]&&(c+=A+"="+urlParams[A],f++))}return c};EditorUi.prototype.showLinkDialog=function(c,f,k,A,z){c=new LinkDialog(this,c,f,k,!0,A,z);this.showDialog(c.container,440,120,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var f=1;null==this.drive&&"function"!==typeof window.DriveClient||f++;null==this.dropbox&&"function"!==typeof window.DropboxClient||f++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||
+function(c){var f="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var k="?",B;for(B in urlParams)0>mxUtils.indexOf(c,B)&&null!=urlParams[B]&&(f+=k+B+"="+urlParams[B],k="&")}else f=window.location.search;return f};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var f=0<c.indexOf("?")?1:0;if("1"==urlParams.offline)c+=window.location.search;else{var k="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),
+B;for(B in urlParams)0>mxUtils.indexOf(k,B)&&(c=0==f?c+"?":c+"&",null!=urlParams[B]&&(c+=B+"="+urlParams[B],f++))}return c};EditorUi.prototype.showLinkDialog=function(c,f,k,B,z){c=new LinkDialog(this,c,f,k,!0,B,z);this.showDialog(c.container,440,120,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var f=1;null==this.drive&&"function"!==typeof window.DriveClient||f++;null==this.dropbox&&"function"!==typeof window.DropboxClient||f++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||
f++;null!=this.gitHub&&f++;null!=this.gitLab&&f++;c&&isLocalStorage&&"1"==urlParams.browser&&f++;return f};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var c=this.getCurrentFile(),f=null!=c||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(f);this.menus.get("viewZoom").setEnabled(f);var k=("1"!=urlParams.embed||"1"==urlParams.embedRT||!this.editor.graph.isEnabled())&&(null==c||c.isRestricted());this.actions.get("makeCopy").setEnabled(!k);
this.actions.get("print").setEnabled(!k);this.menus.get("exportAs").setEnabled(!k);this.menus.get("embed").setEnabled(!k);k="1"!=urlParams.embed||this.editor.graph.isEnabled();this.menus.get("extras").setEnabled(k);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(k),this.menus.get("newLibrary").setEnabled(k));c="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=c&&c.isEditable();this.actions.get("image").setEnabled(f);this.actions.get("zoomIn").setEnabled(f);this.actions.get("zoomOut").setEnabled(f);
this.actions.get("smartFit").setEnabled(f);this.actions.get("resetView").setEnabled(f);this.actions.get("darkMode").setEnabled("atlas"!=Editor.currentTheme);this.actions.get("lightMode").setEnabled("atlas"!=Editor.currentTheme);k=this.actions.get("autoMode");k.setEnabled(k.isEnabled()&&"atlas"!=Editor.currentTheme);this.menus.get("edit").setEnabled(f);this.menus.get("view").setEnabled(f);this.menus.get("importFrom").setEnabled(c);this.menus.get("arrange").setEnabled(c);null!=this.toolbar&&(null!=
this.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(c),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(c));this.updateUserElement()};EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.updateUserElement=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var c=this.getCurrentFile();return null!=c&&c.isEditable()||"1"==urlParams.embed&&
this.editor.graph.isEnabled()};var P=EditorUi.prototype.createSidebar;EditorUi.prototype.createSidebar=function(c){var f=P.apply(this,arguments),k=mxUtils.bind(this,function(){f.refresh();this.restoreOpenLibraries()});this.addListener("sketchModeChanged",k);this.addListener("currentThemeChanged",k);return f};EditorUi.prototype.restoreOpenLibraries=function(){var c=this.openLibraries;this.openLibraries=null;if(null!=c)for(var f=0;f<c.length;f++)this.libraryLoaded(c[f].file,c[f].images,c[f].title,null!=
-c[f].div?"none"!=c[f].div.style.display:c[f].expand)};var R=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){R.apply(this,arguments);var c=this.editor.graph,f=this.getCurrentFile(),k=this.getSelectionState(),A=this.isDiagramActive(),z="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=f&&f.isEditable();this.actions.get("undo").setEnabled(this.canUndo()&&z);this.actions.get("redo").setEnabled(this.canRedo()&&z);this.actions.get("autosave").setEnabled(null!=
-f&&f.isEditable()&&f.isAutosaveOptional());this.actions.get("guides").setEnabled(A);this.actions.get("editData").setEnabled(c.isEnabled());this.actions.get("editConnectionPoints").setEnabled(A&&0==k.edges.length&&1==k.vertices.length);this.actions.get("editImage").setEnabled(A&&k.image&&0<k.cells.length);this.actions.get("crop").setEnabled(A&&k.image&&0<k.cells.length);this.actions.get("pageSetup").setEnabled(A);this.actions.get("shadowVisible").setEnabled(A);this.actions.get("connectionArrows").setEnabled(A);
-this.actions.get("connectionPoints").setEnabled(A);this.actions.get("copyStyle").setEnabled(A&&!c.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(null!=this.copiedStyle&&A&&0<k.cells.length);this.actions.get("editGeometry").setEnabled(0<k.vertices.length);this.actions.get("createShape").setEnabled(A);this.actions.get("createRevision").setEnabled(A);this.actions.get("moveToFolder").setEnabled(null!=f);this.actions.get("makeCopy").setEnabled(null!=f&&!f.isRestricted());this.actions.get("editDiagram").setEnabled(A&&
+c[f].div?"none"!=c[f].div.style.display:c[f].expand)};var R=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){R.apply(this,arguments);var c=this.editor.graph,f=this.getCurrentFile(),k=this.getSelectionState(),B=this.isDiagramActive(),z="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=f&&f.isEditable();this.actions.get("undo").setEnabled(this.canUndo()&&z);this.actions.get("redo").setEnabled(this.canRedo()&&z);this.actions.get("autosave").setEnabled(null!=
+f&&f.isEditable()&&f.isAutosaveOptional());this.actions.get("guides").setEnabled(B);this.actions.get("editData").setEnabled(c.isEnabled());this.actions.get("editConnectionPoints").setEnabled(B&&0==k.edges.length&&1==k.vertices.length);this.actions.get("editImage").setEnabled(B&&k.image&&0<k.cells.length);this.actions.get("crop").setEnabled(B&&k.image&&0<k.cells.length);this.actions.get("pageSetup").setEnabled(B);this.actions.get("shadowVisible").setEnabled(B);this.actions.get("connectionArrows").setEnabled(B);
+this.actions.get("connectionPoints").setEnabled(B);this.actions.get("copyStyle").setEnabled(B&&!c.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(null!=this.copiedStyle&&B&&0<k.cells.length);this.actions.get("editGeometry").setEnabled(0<k.vertices.length);this.actions.get("createShape").setEnabled(B);this.actions.get("createRevision").setEnabled(B);this.actions.get("moveToFolder").setEnabled(null!=f);this.actions.get("makeCopy").setEnabled(null!=f&&!f.isRestricted());this.actions.get("editDiagram").setEnabled(B&&
(null==f||!f.isRestricted()));this.actions.get("publishLink").setEnabled(null!=f&&!f.isRestricted());this.actions.get("removeFormat").setEnabled(c.isEnabled()&&!c.isSelectionEmpty()&&!c.isEditing());this.actions.get("tags").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("layers").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("outline").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("rename").setEnabled(null!=
-f&&f.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=f);this.actions.get("properties").setEnabled(null!=f);this.menus.get("publish").setEnabled(null!=f&&!f.isRestricted());f=this.actions.get("findReplace");f.setEnabled("hidden"!=this.diagramContainer.style.visibility);f.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(A&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};
-var T=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);T.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,f,k,A,z,C,I,L){var K=c.editor.graph;if("xml"==k)c.hideDialog(),c.saveData(f,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==k)c.hideDialog(),c.saveData(f,
-"svg",mxUtils.getXml(K.getSvg(A,z,C)),"image/svg+xml");else{var O=c.getFileData(!0,null,null,null,null,!0),da=K.getGraphBounds(),ea=Math.floor(da.width*z/K.view.scale),ca=Math.floor(da.height*z/K.view.scale);if(O.length<=MAX_REQUEST_SIZE&&ea*ca<MAX_AREA)if(c.hideDialog(),"png"!=k&&"jpg"!=k&&"jpeg"!=k||!c.isExportToCanvas()){var W={globalVars:K.getExportVariables()};L&&(W.grid={size:K.gridSize,steps:K.view.gridSteps,color:K.view.gridColor});c.saveRequest(f,k,function(ma,la){return new mxXmlRequest(EXPORT_URL,
-"format="+k+"&base64="+(la||"0")+(null!=ma?"&filename="+encodeURIComponent(ma):"")+"&extras="+encodeURIComponent(JSON.stringify(W))+(0<I?"&dpi="+I:"")+"&bg="+(null!=A?A:"none")+"&w="+ea+"&h="+ca+"&border="+C+"&xml="+encodeURIComponent(O))})}else"png"==k?c.exportImage(z,null==A||"none"==A,!0,!1,!1,C,!0,!1,null,L,I):c.exportImage(z,!1,!0,!1,!1,C,!0,!1,"jpeg",L);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);
-var c=this.editor.graph,f="";if(null!=this.pages)for(var k=0;k<this.pages.length;k++){var A=c;this.currentPage!=this.pages[k]&&(A=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[k]),A.model.setRoot(this.pages[k].root));f+=this.pages[k].getName()+" "+A.getIndexableText()+" "}else f=c.getIndexableText();this.editor.graph.setEnabled(!0);return f};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var f={},k=document.createElement("div");k.style.whiteSpace="nowrap";var A=
-document.createElement("h3");mxUtils.write(A,mxUtils.htmlEntities(c));A.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";k.appendChild(A);var z=document.createElement("div");z.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";z.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var C={};try{var I=mxSettings.getCustomLibraries();for(c=0;c<I.length;c++){var L=I[c];if("R"==L.substring(0,1)){var K=JSON.parse(decodeURIComponent(L.substring(1)));
-C[K[0]]={id:K[0],title:K[1],downloadUrl:K[2]}}}}catch(O){}this.remoteInvoke("getCustomLibraries",null,null,function(O){z.innerText="";if(0==O.length)z.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var da=0;da<O.length;da++){var ea=O[da];C[ea.id]&&(f[ea.id]=ea);var ca=this.addCheckbox(z,ea.title,C[ea.id]);(function(W,ma){mxEvent.addListener(ma,"change",function(){this.checked?f[W.id]=W:delete f[W.id]})})(ea,
+f&&f.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=f);this.actions.get("properties").setEnabled(null!=f);this.menus.get("publish").setEnabled(null!=f&&!f.isRestricted());f=this.actions.get("findReplace");f.setEnabled("hidden"!=this.diagramContainer.style.visibility);f.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(B&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};
+var T=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);T.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,f,k,B,z,C,I,L){var K=c.editor.graph;if("xml"==k)c.hideDialog(),c.saveData(f,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==k)c.hideDialog(),c.saveData(f,
+"svg",mxUtils.getXml(K.getSvg(B,z,C)),"image/svg+xml");else{var O=c.getFileData(!0,null,null,null,null,!0),da=K.getGraphBounds(),ea=Math.floor(da.width*z/K.view.scale),ca=Math.floor(da.height*z/K.view.scale);if(O.length<=MAX_REQUEST_SIZE&&ea*ca<MAX_AREA)if(c.hideDialog(),"png"!=k&&"jpg"!=k&&"jpeg"!=k||!c.isExportToCanvas()){var V={globalVars:K.getExportVariables()};L&&(V.grid={size:K.gridSize,steps:K.view.gridSteps,color:K.view.gridColor});c.saveRequest(f,k,function(ma,la){return new mxXmlRequest(EXPORT_URL,
+"format="+k+"&base64="+(la||"0")+(null!=ma?"&filename="+encodeURIComponent(ma):"")+"&extras="+encodeURIComponent(JSON.stringify(V))+(0<I?"&dpi="+I:"")+"&bg="+(null!=B?B:"none")+"&w="+ea+"&h="+ca+"&border="+C+"&xml="+encodeURIComponent(O))})}else"png"==k?c.exportImage(z,null==B||"none"==B,!0,!1,!1,C,!0,!1,null,L,I):c.exportImage(z,!1,!0,!1,!1,C,!0,!1,"jpeg",L);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);
+var c=this.editor.graph,f="";if(null!=this.pages)for(var k=0;k<this.pages.length;k++){var B=c;this.currentPage!=this.pages[k]&&(B=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[k]),B.model.setRoot(this.pages[k].root));f+=this.pages[k].getName()+" "+B.getIndexableText()+" "}else f=c.getIndexableText();this.editor.graph.setEnabled(!0);return f};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var f={},k=document.createElement("div");k.style.whiteSpace="nowrap";var B=
+document.createElement("h3");mxUtils.write(B,mxUtils.htmlEntities(c));B.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";k.appendChild(B);var z=document.createElement("div");z.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";z.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var C={};try{var I=mxSettings.getCustomLibraries();for(c=0;c<I.length;c++){var L=I[c];if("R"==L.substring(0,1)){var K=JSON.parse(decodeURIComponent(L.substring(1)));
+C[K[0]]={id:K[0],title:K[1],downloadUrl:K[2]}}}}catch(O){}this.remoteInvoke("getCustomLibraries",null,null,function(O){z.innerText="";if(0==O.length)z.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var da=0;da<O.length;da++){var ea=O[da];C[ea.id]&&(f[ea.id]=ea);var ca=this.addCheckbox(z,ea.title,C[ea.id]);(function(V,ma){mxEvent.addListener(ma,"change",function(){this.checked?f[V.id]=V:delete f[V.id]})})(ea,
ca)}},mxUtils.bind(this,function(O){z.innerText="";var da=document.createElement("div");da.style.padding="8px";da.style.textAlign="center";mxUtils.write(da,mxResources.get("error")+": ");mxUtils.write(da,null!=O&&null!=O.message?O.message:mxResources.get("unknownError"));z.appendChild(da)}));k.appendChild(z);k=new CustomDialog(this,k,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var O=0,da;for(da in f)null==C[da]&&(O++,mxUtils.bind(this,function(ea){this.remoteInvoke("getFileContent",
-[ea.downloadUrl],null,mxUtils.bind(this,function(ca){O--;0==O&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,ca,ea)),this.showSidebar()}catch(W){this.handleError(W,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){O--;0==O&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(f[da]));for(da in C)f[da]||this.closeLibrary(new RemoteLibrary(this,null,C[da]));0==O&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");
+[ea.downloadUrl],null,mxUtils.bind(this,function(ca){O--;0==O&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,ca,ea)),this.showSidebar()}catch(V){this.handleError(V,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){O--;0==O&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(f[da]));for(da in C)f[da]||this.closeLibrary(new RemoteLibrary(this,null,C[da]));0==O&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");
this.showDialog(k.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(c){this.remoteWin=
-c;for(var f=0;f<this.remoteInvokeQueue.length;f++)c.postMessage(this.remoteInvokeQueue[f],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var f=c.msgMarkers,k=this.remoteInvokeCallbacks[f.callbackId];if(null==k)throw Error("No callback for "+(null!=f?f.callbackId:"null"));c.error?k.error&&k.error(c.error.errResp):k.callback&&k.callback.apply(this,c.resp);this.remoteInvokeCallbacks[f.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,f,k,A,z){var C=
-!0,I=window.setTimeout(mxUtils.bind(this,function(){C=!1;z({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),L=mxUtils.bind(this,function(){window.clearTimeout(I);C&&A.apply(this,arguments)}),K=mxUtils.bind(this,function(){window.clearTimeout(I);C&&z.apply(this,arguments)});k=k||{};k.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:L,error:K});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:f,msgMarkers:k});null!=this.remoteWin?
-this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,f){var k=mxUtils.bind(this,function(O,da){var ea={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=da?ea.error={errResp:da}:null!=O&&(ea.resp=O);this.remoteWin.postMessage(JSON.stringify(ea),"*")});try{var A=c.funtionName,z=this.remoteInvokableFns[A];if(null!=z&&"function"===typeof this[A]){if(z.allowedDomains){for(var C=!1,I=0;I<z.allowedDomains.length;I++)if(f=="https://"+
-z.allowedDomains[I]){C=!0;break}if(!C){k(null,"Invalid Call: "+A+" is not allowed.");return}}var L=c.functionArgs;Array.isArray(L)||(L=[]);if(z.isAsync)L.push(function(){k(Array.prototype.slice.apply(arguments))}),L.push(function(O){k(null,O||"Unkown Error")}),this[A].apply(this,L);else{var K=this[A].apply(this,L);k([K])}}else k(null,"Invalid Call: "+A+" is not found.")}catch(O){k(null,"Invalid Call: An error occurred, "+O.message)}};EditorUi.prototype.openDatabase=function(c,f){if(null==this.database){var k=
-window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=k)try{var A=k.open("database",2);A.onupgradeneeded=function(z){try{var C=A.result;1>z.oldVersion&&C.createObjectStore("objects",{keyPath:"key"});2>z.oldVersion&&(C.createObjectStore("files",{keyPath:"title"}),C.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(I){null!=f&&f(I)}};A.onsuccess=mxUtils.bind(this,function(z){try{var C=A.result;this.database=C;EditorUi.migrateStorageFiles&&
+c;for(var f=0;f<this.remoteInvokeQueue.length;f++)c.postMessage(this.remoteInvokeQueue[f],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var f=c.msgMarkers,k=this.remoteInvokeCallbacks[f.callbackId];if(null==k)throw Error("No callback for "+(null!=f?f.callbackId:"null"));c.error?k.error&&k.error(c.error.errResp):k.callback&&k.callback.apply(this,c.resp);this.remoteInvokeCallbacks[f.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,f,k,B,z){var C=
+!0,I=window.setTimeout(mxUtils.bind(this,function(){C=!1;z({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),L=mxUtils.bind(this,function(){window.clearTimeout(I);C&&B.apply(this,arguments)}),K=mxUtils.bind(this,function(){window.clearTimeout(I);C&&z.apply(this,arguments)});k=k||{};k.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:L,error:K});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:f,msgMarkers:k});null!=this.remoteWin?
+this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,f){var k=mxUtils.bind(this,function(O,da){var ea={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=da?ea.error={errResp:da}:null!=O&&(ea.resp=O);this.remoteWin.postMessage(JSON.stringify(ea),"*")});try{var B=c.funtionName,z=this.remoteInvokableFns[B];if(null!=z&&"function"===typeof this[B]){if(z.allowedDomains){for(var C=!1,I=0;I<z.allowedDomains.length;I++)if(f=="https://"+
+z.allowedDomains[I]){C=!0;break}if(!C){k(null,"Invalid Call: "+B+" is not allowed.");return}}var L=c.functionArgs;Array.isArray(L)||(L=[]);if(z.isAsync)L.push(function(){k(Array.prototype.slice.apply(arguments))}),L.push(function(O){k(null,O||"Unkown Error")}),this[B].apply(this,L);else{var K=this[B].apply(this,L);k([K])}}else k(null,"Invalid Call: "+B+" is not found.")}catch(O){k(null,"Invalid Call: An error occurred, "+O.message)}};EditorUi.prototype.openDatabase=function(c,f){if(null==this.database){var k=
+window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=k)try{var B=k.open("database",2);B.onupgradeneeded=function(z){try{var C=B.result;1>z.oldVersion&&C.createObjectStore("objects",{keyPath:"key"});2>z.oldVersion&&(C.createObjectStore("files",{keyPath:"title"}),C.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(I){null!=f&&f(I)}};B.onsuccess=mxUtils.bind(this,function(z){try{var C=B.result;this.database=C;EditorUi.migrateStorageFiles&&
(StorageFile.migrate(C),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(I){if(!I||"1"==urlParams.forceMigration){var L=document.createElement("iframe");L.style.display="none";L.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(L);var K=!0,O=!1,da,ea=0,ca=mxUtils.bind(this,function(){O=
-!0;this.setDatabaseItem(".drawioMigrated3",!0);L.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),W=mxUtils.bind(this,function(){ea++;ma()}),ma=mxUtils.bind(this,function(){try{if(ea>=da.length)ca();else{var Y=da[ea];StorageFile.getFileContent(this,Y,mxUtils.bind(this,function(fa){null==fa||".scratchpad"==Y&&fa==this.emptyLibraryXml?L.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[Y]}),
-"*"):W()}),W)}}catch(fa){console.log(fa)}}),la=mxUtils.bind(this,function(Y){try{this.setDatabaseItem(null,[{title:Y.title,size:Y.data.length,lastModified:Date.now(),type:Y.isLib?"L":"F"},{title:Y.title,data:Y.data}],W,W,["filesInfo","files"])}catch(fa){console.log(fa)}});I=mxUtils.bind(this,function(Y){try{if(Y.source==L.contentWindow){var fa={};try{fa=JSON.parse(Y.data)}catch(Z){}"init"==fa.event?(L.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),L.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",
-funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=fa.event||O||(K?null!=fa.resp&&0<fa.resp.length&&null!=fa.resp[0]?(da=fa.resp[0],K=!1,ma()):ca():null!=fa.resp&&0<fa.resp.length&&null!=fa.resp[0]?la(fa.resp[0]):W())}}catch(Z){console.log(Z)}});window.addEventListener("message",I)}})));c(C);C.onversionchange=function(){C.close()}}catch(I){null!=f?f(I):null!=window.console&&console.warn(I)}});A.onerror=f;A.onblocked=function(){}}catch(z){null!=f?f(z):null!=window.console&&console.error(z)}else null!=
-f&&f(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,f,k,A,z){this.openDatabase(mxUtils.bind(this,function(C){try{z=z||"objects";Array.isArray(z)||(z=[z],c=[c],f=[f]);var I=C.transaction(z,"readwrite");I.oncomplete=k;I.onerror=A;for(C=0;C<z.length;C++)I.objectStore(z[C]).put(null!=c&&null!=c[C]?{key:c[C],data:f[C]}:f[C])}catch(L){null!=A&&A(L)}}),A)};EditorUi.prototype.removeDatabaseItem=function(c,f,k,A){this.openDatabase(mxUtils.bind(this,function(z){try{A=
-A||"objects";Array.isArray(A)||(A=[A],c=[c]);var C=z.transaction(A,"readwrite");C.oncomplete=f;C.onerror=k;for(z=0;z<A.length;z++)C.objectStore(A[z]).delete(c[z])}catch(I){null!=k&&k(I)}}),k)};EditorUi.prototype.getDatabaseItem=function(c,f,k,A){this.openDatabase(mxUtils.bind(this,function(z){try{A=A||"objects";var C=z.transaction([A],"readonly").objectStore(A).get(c);C.onsuccess=function(){f(C.result)};C.onerror=k}catch(I){null!=k&&k(I)}}),k)};EditorUi.prototype.getDatabaseItems=function(c,f,k){this.openDatabase(mxUtils.bind(this,
-function(A){try{k=k||"objects";var z=A.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)),C=[];z.onsuccess=function(I){null==I.target.result?c(C):(C.push(I.target.result.value),I.target.result.continue())};z.onerror=f}catch(I){null!=f&&f(I)}}),f)};EditorUi.prototype.getDatabaseItemKeys=function(c,f,k){this.openDatabase(mxUtils.bind(this,function(A){try{k=k||"objects";var z=A.transaction([k],"readonly").objectStore(k).getAllKeys();z.onsuccess=function(){c(z.result)};z.onerror=
+!0;this.setDatabaseItem(".drawioMigrated3",!0);L.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),V=mxUtils.bind(this,function(){ea++;ma()}),ma=mxUtils.bind(this,function(){try{if(ea>=da.length)ca();else{var Y=da[ea];StorageFile.getFileContent(this,Y,mxUtils.bind(this,function(fa){null==fa||".scratchpad"==Y&&fa==this.emptyLibraryXml?L.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[Y]}),
+"*"):V()}),V)}}catch(fa){console.log(fa)}}),la=mxUtils.bind(this,function(Y){try{this.setDatabaseItem(null,[{title:Y.title,size:Y.data.length,lastModified:Date.now(),type:Y.isLib?"L":"F"},{title:Y.title,data:Y.data}],V,V,["filesInfo","files"])}catch(fa){console.log(fa)}});I=mxUtils.bind(this,function(Y){try{if(Y.source==L.contentWindow){var fa={};try{fa=JSON.parse(Y.data)}catch(Z){}"init"==fa.event?(L.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),L.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",
+funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=fa.event||O||(K?null!=fa.resp&&0<fa.resp.length&&null!=fa.resp[0]?(da=fa.resp[0],K=!1,ma()):ca():null!=fa.resp&&0<fa.resp.length&&null!=fa.resp[0]?la(fa.resp[0]):V())}}catch(Z){console.log(Z)}});window.addEventListener("message",I)}})));c(C);C.onversionchange=function(){C.close()}}catch(I){null!=f?f(I):null!=window.console&&console.warn(I)}});B.onerror=f;B.onblocked=function(){}}catch(z){null!=f?f(z):null!=window.console&&console.error(z)}else null!=
+f&&f(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,f,k,B,z){this.openDatabase(mxUtils.bind(this,function(C){try{z=z||"objects";Array.isArray(z)||(z=[z],c=[c],f=[f]);var I=C.transaction(z,"readwrite");I.oncomplete=k;I.onerror=B;for(C=0;C<z.length;C++)I.objectStore(z[C]).put(null!=c&&null!=c[C]?{key:c[C],data:f[C]}:f[C])}catch(L){null!=B&&B(L)}}),B)};EditorUi.prototype.removeDatabaseItem=function(c,f,k,B){this.openDatabase(mxUtils.bind(this,function(z){try{B=
+B||"objects";Array.isArray(B)||(B=[B],c=[c]);var C=z.transaction(B,"readwrite");C.oncomplete=f;C.onerror=k;for(z=0;z<B.length;z++)C.objectStore(B[z]).delete(c[z])}catch(I){null!=k&&k(I)}}),k)};EditorUi.prototype.getDatabaseItem=function(c,f,k,B){this.openDatabase(mxUtils.bind(this,function(z){try{B=B||"objects";var C=z.transaction([B],"readonly").objectStore(B).get(c);C.onsuccess=function(){f(C.result)};C.onerror=k}catch(I){null!=k&&k(I)}}),k)};EditorUi.prototype.getDatabaseItems=function(c,f,k){this.openDatabase(mxUtils.bind(this,
+function(B){try{k=k||"objects";var z=B.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)),C=[];z.onsuccess=function(I){null==I.target.result?c(C):(C.push(I.target.result.value),I.target.result.continue())};z.onerror=f}catch(I){null!=f&&f(I)}}),f)};EditorUi.prototype.getDatabaseItemKeys=function(c,f,k){this.openDatabase(mxUtils.bind(this,function(B){try{k=k||"objects";var z=B.transaction([k],"readonly").objectStore(k).getAllKeys();z.onsuccess=function(){c(z.result)};z.onerror=
f}catch(C){null!=f&&f(C)}}),f)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,f){var k=this.getCurrentFile();null!=k?k.getComments(c,f):c([])};EditorUi.prototype.addComment=
-function(c,f,k){var A=this.getCurrentFile();null!=A?A.addComment(c,f,k):f(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.newComment=function(c,f){var k=this.getCurrentFile();return null!=k?k.newComment(c,f):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,f)};EditorUi.prototype.isRevisionHistorySupported=
+function(c,f,k){var B=this.getCurrentFile();null!=B?B.addComment(c,f,k):f(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.newComment=function(c,f){var k=this.getCurrentFile();return null!=k?k.newComment(c,f):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,f)};EditorUi.prototype.isRevisionHistorySupported=
function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(c,f){var k=this.getCurrentFile();null!=k&&k.getRevisions?k.getRevisions(c,f):f({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=
-function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,f,k,A,z,C,I,L){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,f,k,A,z,C,I,L)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=
-function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,f)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W,ma,la){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,f,k,A,z,C,I,L,K,O,da,ea,ca,W,ma,la)};EditorUi.prototype.createImageUrlConverter=
-function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,f,k,A){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,f,k,A)};EditorUi.prototype.convertImageToDataUri=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,f)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");
-return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,f,k,A){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,f,k,A)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,f,k,A,z){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,f,k,A,z)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==
-localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],f=0;f<localStorage.length;f++){var k=localStorage.key(f),A=localStorage.getItem(k);if(0<k.length&&(".scratchpad"==k||"."!=k.charAt(0))&&0<A.length){var z="<mxfile "===A.substring(0,8)||"<?xml"===A.substring(0,5)||"\x3c!--[if IE]>"===A.substring(0,12);A="<mxlibrary>"===A.substring(0,11);(z||A)&&c.push(k)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&
+function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,f,k,B,z,C,I,L){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,f,k,B,z,C,I,L)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=
+function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,f)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V,ma,la){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,f,k,B,z,C,I,L,K,O,da,ea,ca,V,ma,la)};EditorUi.prototype.createImageUrlConverter=
+function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,f,k,B){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,f,k,B)};EditorUi.prototype.convertImageToDataUri=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,f)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");
+return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,f,k,B){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,f,k,B)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,f,k,B,z){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,f,k,B,z)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==
+localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],f=0;f<localStorage.length;f++){var k=localStorage.key(f),B=localStorage.getItem(k);if(0<k.length&&(".scratchpad"==k||"."!=k.charAt(0))&&0<B.length){var z="<mxfile "===B.substring(0,8)||"<?xml"===B.substring(0,5)||"\x3c!--[if IE]>"===B.substring(0,12);B="<mxlibrary>"===B.substring(0,11);(z||B)&&c.push(k)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&
"1"!=urlParams.forceMigration)return null;var f=localStorage.getItem(c);return{title:c,data:f,isLib:"<mxlibrary>"===f.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();
-var CommentsWindow=function(b,e,g,m,v,p){function B(){for(var W=C.getElementsByTagName("div"),ma=0,la=0;la<W.length;la++)"none"!=W[la].style.display&&W[la].parentNode==C&&ma++;I.style.display=0==ma?"block":"none"}function G(W,ma,la,Y){function fa(){ma.removeChild(u);ma.removeChild(H);l.style.display="block";Z.style.display="block"}k={div:ma,comment:W,saveCallback:la,deleteOnCancel:Y};var Z=ma.querySelector(".geCommentTxt"),l=ma.querySelector(".geCommentActionsList"),u=document.createElement("textarea");
-u.className="geCommentEditTxtArea";u.style.minHeight=Z.offsetHeight+"px";u.value=W.content;ma.insertBefore(u,Z);var H=document.createElement("div");H.className="geCommentEditBtns";var U=mxUtils.button(mxResources.get("cancel"),function(){Y?(ma.parentNode.removeChild(ma),B()):fa();k=null});U.className="geCommentEditBtn";H.appendChild(U);var J=mxUtils.button(mxResources.get("save"),function(){Z.innerText="";W.content=u.value;mxUtils.write(Z,W.content);fa();la(W);k=null});mxEvent.addListener(u,"keydown",
-mxUtils.bind(this,function(V){mxEvent.isConsumed(V)||((mxEvent.isControlDown(V)||mxClient.IS_MAC&&mxEvent.isMetaDown(V))&&13==V.keyCode?(J.click(),mxEvent.consume(V)):27==V.keyCode&&(U.click(),mxEvent.consume(V)))}));J.focus();J.className="geCommentEditBtn gePrimaryBtn";H.appendChild(J);ma.insertBefore(H,Z);l.style.display="none";Z.style.display="none";u.focus()}function S(W,ma){ma.innerText="";W=new Date(W.modifiedDate);var la=b.timeSince(W);null==la&&(la=mxResources.get("lessThanAMinute"));mxUtils.write(ma,
-mxResources.get("timeAgo",[la],"{1} ago"));ma.setAttribute("title",W.toLocaleDateString()+" "+W.toLocaleTimeString())}function F(W){var ma=document.createElement("img");ma.className="geCommentBusyImg";ma.src=IMAGE_PATH+"/spin.gif";W.appendChild(ma);W.busyImg=ma}function P(W){W.style.border="1px solid red";W.busyImg.parentNode==W&&W.removeChild(W.busyImg)}function R(W){W.style.border="";W.busyImg.parentNode==W&&W.removeChild(W.busyImg)}function T(W,ma,la,Y,fa){function Z(ba,ja,oa){var qa=document.createElement("li");
-qa.className="geCommentAction";var ra=document.createElement("a");ra.className="geCommentActionLnk";mxUtils.write(ra,ba);qa.appendChild(ra);mxEvent.addListener(ra,"click",function(ua){ja(ua,W);ua.preventDefault();mxEvent.consume(ua)});aa.appendChild(qa);oa&&(qa.style.display="none")}function l(){function ba(qa){ja.push(oa);if(null!=qa.replies)for(var ra=0;ra<qa.replies.length;ra++)oa=oa.nextSibling,ba(qa.replies[ra])}var ja=[],oa=H;ba(W);return{pdiv:oa,replies:ja}}function u(ba,ja,oa,qa,ra){function ua(){F(La);
-W.addReply(Ca,function(sa){Ca.id=sa;W.replies.push(Ca);R(La);oa&&oa()},function(sa){za();P(La);b.handleError(sa,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},qa,ra)}function za(){G(Ca,La,function(sa){ua()},!0)}var Ba=l().pdiv,Ca=b.newComment(ba,b.getCurrentUser());Ca.pCommentId=W.id;null==W.replies&&(W.replies=[]);var La=T(Ca,W.replies,Ba,Y+1);ja?za():ua()}if(fa||!W.isResolved){I.style.display="none";var H=document.createElement("div");H.className="geCommentContainer";H.setAttribute("data-commentId",
-W.id);H.style.marginLeft=20*Y+5+"px";W.isResolved&&(A.style.opacity="0.7");var U=document.createElement("div");U.className="geCommentHeader";var J=document.createElement("img");J.className="geCommentUserImg";J.src=null!=W.user&&null!=W.user.pictureUrl?W.user.pictureUrl:Editor.userImage;U.appendChild(J);J=document.createElement("div");J.className="geCommentHeaderTxt";U.appendChild(J);var V=document.createElement("div");V.className="geCommentUsername";mxUtils.write(V,null!=W.user?W.user.displayName:
-mxResources.get("unknownUser"));J.appendChild(V);V=document.createElement("div");V.className="geCommentDate";V.setAttribute("data-commentId",W.id);S(W,V);J.appendChild(V);H.appendChild(U);U=document.createElement("div");U.className="geCommentTxt";mxUtils.write(U,W.content||"");H.appendChild(U);W.isLocked&&(H.style.opacity="0.5");U=document.createElement("div");U.className="geCommentActions";var aa=document.createElement("ul");aa.className="geCommentActionsList";U.appendChild(aa);c||W.isLocked||0!=
-Y&&!f||Z(mxResources.get("reply"),function(){u("",!0)},W.isResolved);J=b.getCurrentUser();null==J||null==W.user||J.id!=W.user.id||c||W.isLocked||(Z(mxResources.get("edit"),function(){function ba(){G(W,H,function(){F(H);W.editComment(W.content,function(){R(H)},function(ja){P(H);ba();b.handleError(ja,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}ba()},W.isResolved),Z(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){F(H);W.deleteComment(function(ba){if(!0===
-ba){ba=H.querySelector(".geCommentTxt");ba.innerText="";mxUtils.write(ba,mxResources.get("msgDeleted"));var ja=H.querySelectorAll(".geCommentAction");for(ba=0;ba<ja.length;ba++)ja[ba].parentNode.removeChild(ja[ba]);R(H);H.style.opacity="0.5"}else{ja=l(W).replies;for(ba=0;ba<ja.length;ba++)C.removeChild(ja[ba]);for(ba=0;ba<ma.length;ba++)if(ma[ba]==W){ma.splice(ba,1);break}I.style.display=0==C.getElementsByTagName("div").length?"block":"none"}},function(ba){P(H);b.handleError(ba,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},
-W.isResolved));c||W.isLocked||0!=Y||Z(W.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(ba){function ja(){var oa=ba.target;oa.innerText="";W.isResolved=!W.isResolved;mxUtils.write(oa,W.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var qa=W.isResolved?"none":"",ra=l(W).replies,ua="light-dark("+(W.isResolved?"ghostWhite":"white")+", transparent)",za=0;za<ra.length;za++){ra[za].style.backgroundColor=ua;for(var Ba=ra[za].querySelectorAll(".geCommentAction"),
-Ca=0;Ca<Ba.length;Ca++)Ba[Ca]!=oa.parentNode&&(Ba[Ca].style.display=qa);da||(ra[za].style.display="none")}B()}W.isResolved?u(mxResources.get("reOpened")+": ",!0,ja,!1,!0):u(mxResources.get("markedAsResolved"),!1,ja,!0)});H.appendChild(U);null!=la?C.insertBefore(H,la.nextSibling):C.appendChild(H);for(la=0;null!=W.replies&&la<W.replies.length;la++)U=W.replies[la],U.isResolved=W.isResolved,T(U,W.replies,null,Y+1,fa);null!=k&&(k.comment.id==W.id?(fa=W.content,W.content=k.comment.content,G(W,H,k.saveCallback,
-k.deleteOnCancel),W.content=fa):null==k.comment.id&&k.comment.pCommentId==W.id&&(C.appendChild(k.div),G(k.comment,k.div,k.saveCallback,k.deleteOnCancel)));return H}}var c=!b.canComment(),f=b.canReplyToReplies(),k=null,A=document.createElement("div");A.className="geCommentsWin";A.style.background="light-dark(whiteSmoke, "+Editor.darkColor+")";var z=EditorUi.compactUi?"26px":"30px",C=document.createElement("div");C.className="geCommentsList";C.style.backgroundColor="light-dark(whiteSmoke, "+Editor.darkColor+
-")";C.style.bottom=parseInt(z)+7+"px";A.appendChild(C);var I=document.createElement("span");I.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(I,mxResources.get("noCommentsFound"));var L=document.createElement("div");L.className="geToolbarContainer geCommentsToolbar";L.style.height=z;L.style.padding="3px 4px 4px 4px";z=document.createElement("a");z.className="geToolbarButton geAdaptiveAsset geToggleItem";z.style.width="16px";z.style.height="18px";z.style.backgroundPosition=
-"center center";z.style.backgroundRepeat="no-repeat";z.style.backgroundSize="20px";z.style.margin="0 2px";z.style.display="inline-block";z.style.cursor="pointer";if(!c){var K=z.cloneNode();K.style.backgroundImage="url("+Editor.plusImage+")";K.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(K,"click",function(W){function ma(){G(la,Y,function(fa){F(Y);b.addComment(fa,function(Z){fa.id=Z;ea.push(fa);R(Y)},function(Z){P(Y);ma();b.handleError(Z,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},
-!0)}var la=b.newComment("",b.getCurrentUser()),Y=T(la,ea,null,0);ma();W.preventDefault();mxEvent.consume(W)});L.appendChild(K)}var O=z.cloneNode();O.classList.add("geToggleItem");O.style.backgroundImage="url("+Editor.checkImage+")";O.setAttribute("title",mxResources.get("showResolved"));var da=!1;mxEvent.addListener(O,"click",function(W){(da=!da)?O.classList.add("geActiveItem"):O.classList.remove("geActiveItem");ca();W.preventDefault();mxEvent.consume(W)});L.appendChild(O);b.commentsRefreshNeeded()&&
-(K=z.cloneNode(),K.style.backgroundImage="url("+Editor.refreshImage+")",K.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(K,"click",function(W){ca();W.preventDefault();mxEvent.consume(W)}),L.appendChild(K));b.commentsSaveNeeded()&&(z=z.cloneNode(),z.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',z.setAttribute("title",mxResources.get("save")),z.className="geButton geAdaptiveAsset",mxEvent.addListener(z,"click",function(W){p();W.preventDefault();
-mxEvent.consume(W)}),L.appendChild(z));A.appendChild(L);var ea=[],ca=mxUtils.bind(this,function(){this.hasError=!1;if(null!=k)try{k.div=k.div.cloneNode(!0);var W=k.div.querySelector(".geCommentEditTxtArea"),ma=k.div.querySelector(".geCommentEditBtns");k.comment.content=W.value;W.parentNode.removeChild(W);ma.parentNode.removeChild(ma)}catch(la){b.handleError(la)}C.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+
+var CommentsWindow=function(b,e,g,m,v,p){function A(){for(var V=C.getElementsByTagName("div"),ma=0,la=0;la<V.length;la++)"none"!=V[la].style.display&&V[la].parentNode==C&&ma++;I.style.display=0==ma?"block":"none"}function G(V,ma,la,Y){function fa(){ma.removeChild(u);ma.removeChild(H);l.style.display="block";Z.style.display="block"}k={div:ma,comment:V,saveCallback:la,deleteOnCancel:Y};var Z=ma.querySelector(".geCommentTxt"),l=ma.querySelector(".geCommentActionsList"),u=document.createElement("textarea");
+u.className="geCommentEditTxtArea";u.style.minHeight=Z.offsetHeight+"px";u.value=V.content;ma.insertBefore(u,Z);var H=document.createElement("div");H.className="geCommentEditBtns";var U=mxUtils.button(mxResources.get("cancel"),function(){Y?(ma.parentNode.removeChild(ma),A()):fa();k=null});U.className="geCommentEditBtn";H.appendChild(U);var J=mxUtils.button(mxResources.get("save"),function(){Z.innerText="";V.content=u.value;mxUtils.write(Z,V.content);fa();la(V);k=null});mxEvent.addListener(u,"keydown",
+mxUtils.bind(this,function(W){mxEvent.isConsumed(W)||((mxEvent.isControlDown(W)||mxClient.IS_MAC&&mxEvent.isMetaDown(W))&&13==W.keyCode?(J.click(),mxEvent.consume(W)):27==W.keyCode&&(U.click(),mxEvent.consume(W)))}));J.focus();J.className="geCommentEditBtn gePrimaryBtn";H.appendChild(J);ma.insertBefore(H,Z);l.style.display="none";Z.style.display="none";u.focus()}function S(V,ma){ma.innerText="";V=new Date(V.modifiedDate);var la=b.timeSince(V);null==la&&(la=mxResources.get("lessThanAMinute"));mxUtils.write(ma,
+mxResources.get("timeAgo",[la],"{1} ago"));ma.setAttribute("title",V.toLocaleDateString()+" "+V.toLocaleTimeString())}function F(V){var ma=document.createElement("img");ma.className="geCommentBusyImg";ma.src=IMAGE_PATH+"/spin.gif";V.appendChild(ma);V.busyImg=ma}function P(V){V.style.border="1px solid red";V.busyImg.parentNode==V&&V.removeChild(V.busyImg)}function R(V){V.style.border="";V.busyImg.parentNode==V&&V.removeChild(V.busyImg)}function T(V,ma,la,Y,fa){function Z(ba,ja,oa){var qa=document.createElement("li");
+qa.className="geCommentAction";var ra=document.createElement("a");ra.className="geCommentActionLnk";mxUtils.write(ra,ba);qa.appendChild(ra);mxEvent.addListener(ra,"click",function(ua){ja(ua,V);ua.preventDefault();mxEvent.consume(ua)});aa.appendChild(qa);oa&&(qa.style.display="none")}function l(){function ba(qa){ja.push(oa);if(null!=qa.replies)for(var ra=0;ra<qa.replies.length;ra++)oa=oa.nextSibling,ba(qa.replies[ra])}var ja=[],oa=H;ba(V);return{pdiv:oa,replies:ja}}function u(ba,ja,oa,qa,ra){function ua(){F(La);
+V.addReply(Ca,function(sa){Ca.id=sa;V.replies.push(Ca);R(La);oa&&oa()},function(sa){za();P(La);b.handleError(sa,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},qa,ra)}function za(){G(Ca,La,function(sa){ua()},!0)}var Ba=l().pdiv,Ca=b.newComment(ba,b.getCurrentUser());Ca.pCommentId=V.id;null==V.replies&&(V.replies=[]);var La=T(Ca,V.replies,Ba,Y+1);ja?za():ua()}if(fa||!V.isResolved){I.style.display="none";var H=document.createElement("div");H.className="geCommentContainer";H.setAttribute("data-commentId",
+V.id);H.style.marginLeft=20*Y+5+"px";V.isResolved&&(B.style.opacity="0.7");var U=document.createElement("div");U.className="geCommentHeader";var J=document.createElement("img");J.className="geCommentUserImg";J.src=null!=V.user&&null!=V.user.pictureUrl?V.user.pictureUrl:Editor.userImage;U.appendChild(J);J=document.createElement("div");J.className="geCommentHeaderTxt";U.appendChild(J);var W=document.createElement("div");W.className="geCommentUsername";mxUtils.write(W,null!=V.user?V.user.displayName:
+mxResources.get("unknownUser"));J.appendChild(W);W=document.createElement("div");W.className="geCommentDate";W.setAttribute("data-commentId",V.id);S(V,W);J.appendChild(W);H.appendChild(U);U=document.createElement("div");U.className="geCommentTxt";mxUtils.write(U,V.content||"");H.appendChild(U);V.isLocked&&(H.style.opacity="0.5");U=document.createElement("div");U.className="geCommentActions";var aa=document.createElement("ul");aa.className="geCommentActionsList";U.appendChild(aa);c||V.isLocked||0!=
+Y&&!f||Z(mxResources.get("reply"),function(){u("",!0)},V.isResolved);J=b.getCurrentUser();null==J||null==V.user||J.id!=V.user.id||c||V.isLocked||(Z(mxResources.get("edit"),function(){function ba(){G(V,H,function(){F(H);V.editComment(V.content,function(){R(H)},function(ja){P(H);ba();b.handleError(ja,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}ba()},V.isResolved),Z(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){F(H);V.deleteComment(function(ba){if(!0===
+ba){ba=H.querySelector(".geCommentTxt");ba.innerText="";mxUtils.write(ba,mxResources.get("msgDeleted"));var ja=H.querySelectorAll(".geCommentAction");for(ba=0;ba<ja.length;ba++)ja[ba].parentNode.removeChild(ja[ba]);R(H);H.style.opacity="0.5"}else{ja=l(V).replies;for(ba=0;ba<ja.length;ba++)C.removeChild(ja[ba]);for(ba=0;ba<ma.length;ba++)if(ma[ba]==V){ma.splice(ba,1);break}I.style.display=0==C.getElementsByTagName("div").length?"block":"none"}},function(ba){P(H);b.handleError(ba,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},
+V.isResolved));c||V.isLocked||0!=Y||Z(V.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(ba){function ja(){var oa=ba.target;oa.innerText="";V.isResolved=!V.isResolved;mxUtils.write(oa,V.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var qa=V.isResolved?"none":"",ra=l(V).replies,ua="light-dark("+(V.isResolved?"ghostWhite":"white")+", transparent)",za=0;za<ra.length;za++){ra[za].style.backgroundColor=ua;for(var Ba=ra[za].querySelectorAll(".geCommentAction"),
+Ca=0;Ca<Ba.length;Ca++)Ba[Ca]!=oa.parentNode&&(Ba[Ca].style.display=qa);da||(ra[za].style.display="none")}A()}V.isResolved?u(mxResources.get("reOpened")+": ",!0,ja,!1,!0):u(mxResources.get("markedAsResolved"),!1,ja,!0)});H.appendChild(U);null!=la?C.insertBefore(H,la.nextSibling):C.appendChild(H);for(la=0;null!=V.replies&&la<V.replies.length;la++)U=V.replies[la],U.isResolved=V.isResolved,T(U,V.replies,null,Y+1,fa);null!=k&&(k.comment.id==V.id?(fa=V.content,V.content=k.comment.content,G(V,H,k.saveCallback,
+k.deleteOnCancel),V.content=fa):null==k.comment.id&&k.comment.pCommentId==V.id&&(C.appendChild(k.div),G(k.comment,k.div,k.saveCallback,k.deleteOnCancel)));return H}}var c=!b.canComment(),f=b.canReplyToReplies(),k=null,B=document.createElement("div");B.className="geCommentsWin";B.style.background="light-dark(whiteSmoke, "+Editor.darkColor+")";var z=EditorUi.compactUi?"26px":"30px",C=document.createElement("div");C.className="geCommentsList";C.style.backgroundColor="light-dark(whiteSmoke, "+Editor.darkColor+
+")";C.style.bottom=parseInt(z)+7+"px";B.appendChild(C);var I=document.createElement("span");I.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(I,mxResources.get("noCommentsFound"));var L=document.createElement("div");L.className="geToolbarContainer geCommentsToolbar";L.style.height=z;L.style.padding="3px 4px 4px 4px";z=document.createElement("a");z.className="geToolbarButton geAdaptiveAsset geToggleItem";z.style.width="16px";z.style.height="18px";z.style.backgroundPosition=
+"center center";z.style.backgroundRepeat="no-repeat";z.style.backgroundSize="20px";z.style.margin="0 2px";z.style.display="inline-block";z.style.cursor="pointer";if(!c){var K=z.cloneNode();K.style.backgroundImage="url("+Editor.plusImage+")";K.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(K,"click",function(V){function ma(){G(la,Y,function(fa){F(Y);b.addComment(fa,function(Z){fa.id=Z;ea.push(fa);R(Y)},function(Z){P(Y);ma();b.handleError(Z,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},
+!0)}var la=b.newComment("",b.getCurrentUser()),Y=T(la,ea,null,0);ma();V.preventDefault();mxEvent.consume(V)});L.appendChild(K)}var O=z.cloneNode();O.classList.add("geToggleItem");O.style.backgroundImage="url("+Editor.checkImage+")";O.setAttribute("title",mxResources.get("showResolved"));var da=!1;mxEvent.addListener(O,"click",function(V){(da=!da)?O.classList.add("geActiveItem"):O.classList.remove("geActiveItem");ca();V.preventDefault();mxEvent.consume(V)});L.appendChild(O);b.commentsRefreshNeeded()&&
+(K=z.cloneNode(),K.style.backgroundImage="url("+Editor.refreshImage+")",K.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(K,"click",function(V){ca();V.preventDefault();mxEvent.consume(V)}),L.appendChild(K));b.commentsSaveNeeded()&&(z=z.cloneNode(),z.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',z.setAttribute("title",mxResources.get("save")),z.className="geButton geAdaptiveAsset",mxEvent.addListener(z,"click",function(V){p();V.preventDefault();
+mxEvent.consume(V)}),L.appendChild(z));B.appendChild(L);var ea=[],ca=mxUtils.bind(this,function(){this.hasError=!1;if(null!=k)try{k.div=k.div.cloneNode(!0);var V=k.div.querySelector(".geCommentEditTxtArea"),ma=k.div.querySelector(".geCommentEditBtns");k.comment.content=V.value;V.parentNode.removeChild(V);ma.parentNode.removeChild(ma)}catch(la){b.handleError(la)}C.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+
"...</div>";f=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(la){function Y(fa){if(null!=fa){fa.sort(function(l,u){return new Date(l.modifiedDate)-new Date(u.modifiedDate)});for(var Z=0;Z<fa.length;Z++)Y(fa[Z].replies)}}la.sort(function(fa,Z){return new Date(fa.modifiedDate)-new Date(Z.modifiedDate)});C.innerText="";C.appendChild(I);I.style.display="block";ea=la;for(la=0;la<ea.length;la++)Y(ea[la].replies),T(ea[la],ea,null,0,da);null!=k&&null==k.comment.id&&null==k.comment.pCommentId&&
-(C.appendChild(k.div),G(k.comment,k.div,k.saveCallback,k.deleteOnCancel))},mxUtils.bind(this,function(la){C.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(la&&la.message?": "+la.message:""));this.hasError=!0})):C.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});ca();this.refreshComments=ca;L=mxUtils.bind(this,function(){function W(Z){var l=la[Z.id];if(null!=l)for(S(Z,l),l=0;null!=Z.replies&&l<Z.replies.length;l++)W(Z.replies[l])}if(this.window.isVisible()){for(var ma=C.querySelectorAll(".geCommentDate"),
-la={},Y=0;Y<ma.length;Y++){var fa=ma[Y];la[fa.getAttribute("data-commentId")]=fa}for(Y=0;Y<ea.length;Y++)W(ea[Y])}});setInterval(L,6E4);this.refreshCommentsTime=L;this.window=new mxWindow(mxResources.get("comments"),A,e,g,m,v,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));
-b.installResizeHandler(this,!0)},ConfirmDialog=function(b,e,g,m,v,p,B,G,S,F,P){var R=document.createElement("div");R.style.textAlign="center";P=null!=P?P:44;var T=document.createElement("div");T.style.padding="6px";T.style.overflow="auto";T.style.maxHeight=P+"px";T.style.lineHeight="1.2em";mxUtils.write(T,e);R.appendChild(T);null!=F&&(T=document.createElement("div"),T.style.padding="6px 0 6px 0",e=document.createElement("img"),e.setAttribute("src",F),T.appendChild(e),R.appendChild(T));F=document.createElement("div");
+(C.appendChild(k.div),G(k.comment,k.div,k.saveCallback,k.deleteOnCancel))},mxUtils.bind(this,function(la){C.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(la&&la.message?": "+la.message:""));this.hasError=!0})):C.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});ca();this.refreshComments=ca;L=mxUtils.bind(this,function(){function V(Z){var l=la[Z.id];if(null!=l)for(S(Z,l),l=0;null!=Z.replies&&l<Z.replies.length;l++)V(Z.replies[l])}if(this.window.isVisible()){for(var ma=C.querySelectorAll(".geCommentDate"),
+la={},Y=0;Y<ma.length;Y++){var fa=ma[Y];la[fa.getAttribute("data-commentId")]=fa}for(Y=0;Y<ea.length;Y++)V(ea[Y])}});setInterval(L,6E4);this.refreshCommentsTime=L;this.window=new mxWindow(mxResources.get("comments"),B,e,g,m,v,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));
+b.installResizeHandler(this,!0)},ConfirmDialog=function(b,e,g,m,v,p,A,G,S,F,P){var R=document.createElement("div");R.style.textAlign="center";P=null!=P?P:44;var T=document.createElement("div");T.style.padding="6px";T.style.overflow="auto";T.style.maxHeight=P+"px";T.style.lineHeight="1.2em";mxUtils.write(T,e);R.appendChild(T);null!=F&&(T=document.createElement("div"),T.style.padding="6px 0 6px 0",e=document.createElement("img"),e.setAttribute("src",F),T.appendChild(e),R.appendChild(T));F=document.createElement("div");
F.style.textAlign="center";F.style.whiteSpace="nowrap";var c=document.createElement("input");c.setAttribute("type","checkbox");p=mxUtils.button(p||mxResources.get("cancel"),function(){b.hideDialog();null!=m&&m(c.checked)});p.className="geBtn";null!=G&&(p.innerHTML=G+"<br>"+p.innerHTML,p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&F.appendChild(p);var f=mxUtils.button(v||mxResources.get("ok"),function(){b.hideDialog();null!=g&&
-g(c.checked)});F.appendChild(f);null!=B?(f.innerHTML=B+"<br>"+f.innerHTML+"<br>",f.style.paddingBottom="8px",f.style.paddingTop="8px",f.style.height="auto",f.className="geBtn",f.style.width="40%"):f.className="geBtn gePrimaryBtn";b.editor.cancelFirst||F.appendChild(p);R.appendChild(F);S?(F.style.marginTop="10px",T=document.createElement("p"),T.style.marginTop="20px",T.style.marginBottom="0px",T.appendChild(c),v=document.createElement("span"),mxUtils.write(v," "+mxResources.get("rememberThisSetting")),
+g(c.checked)});F.appendChild(f);null!=A?(f.innerHTML=A+"<br>"+f.innerHTML+"<br>",f.style.paddingBottom="8px",f.style.paddingTop="8px",f.style.height="auto",f.className="geBtn",f.style.width="40%"):f.className="geBtn gePrimaryBtn";b.editor.cancelFirst||F.appendChild(p);R.appendChild(F);S?(F.style.marginTop="10px",T=document.createElement("p"),T.style.marginTop="20px",T.style.marginBottom="0px",T.appendChild(c),v=document.createElement("span"),mxUtils.write(v," "+mxResources.get("rememberThisSetting")),
T.appendChild(v),R.appendChild(T),mxEvent.addListener(v,"click",function(k){c.checked=!c.checked;mxEvent.consume(k)})):F.style.marginTop="12px";this.init=function(){f.focus()};this.container=R},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};
HeadlessEditorUi.prototype.updateActionStates=function(){};function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.diagramModified=!1;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
DiagramPage.prototype.setName=function(b){null==b?this.node.removeAttribute("name"):this.node.setAttribute("name",b)};DiagramPage.prototype.setDiagramModified=function(b){this.diagramModified=b};DiagramPage.prototype.isDiagramModified=function(){return this.diagramModified};function RenamePage(b,e,g){this.ui=b;this.page=e;this.previous=this.name=g}
@@ -4032,16 +4047,16 @@ EditorUi.prototype.getSelectedPageIndex=function(){return this.getPageIndex(this
EditorUi.prototype.createImageForPageLink=function(b,e,g,m){var v=b.indexOf(","),p=null;0<v&&(v=this.getPageById(b.substring(v+1)),null!=v&&v!=e&&(p=this.getImageForPage(v,e,g,m),p.originalSrc=b));null==p&&(p={originalSrc:b});return p};
EditorUi.prototype.pageSelected=function(){var b=this.editor.graph,e=this.currentPage;null!=e&&(b.tooltipHandler.hide(),null==e.viewState||null==e.viewState.scrollTop||null==e.viewState.scrollLeft?(b.selectUnlockedLayer(),this.resetScrollbars(),b.isLightboxView()&&this.lightboxFit(),null!=this.chromelessResize&&(b.container.scrollleft=0,b.container.scrollTop=0,this.chromelessResize())):b.setScrollbarPositions(e.viewState,b.view.translate.x,b.view.translate.y),this.updateTabContainer(),this.scrollToPage())};
EditorUi.prototype.getImageForPage=function(b,e,g,m){g=null!=g?g:this.editor.graph;var v=g.getGlobalVariable;g=this.createTemporaryGraph(g.getStylesheet());var p=this.getPageIndex(null!=e?e:this.currentPage);g.getGlobalVariable=function(G){return"pagenumber"==G?p+1:"page"==G&&null!=e?e.getName():v.apply(this,arguments)};document.body.appendChild(g.container);this.updatePageRoot(b);g.setAdaptiveColors(b.viewState.adaptiveColors);g.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText=
-"";m=g.getSvg(null,null,null,null,null,null,null,null,null,null,m,null,null,null,!0,!0);var B=g.getGraphBounds();document.body.removeChild(g.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(m)),B.width,B.height,B.x,B.y)};
-EditorUi.prototype.initPages=function(){if(!this.editor.graph.standalone){this.actions.addAction("previousPage",mxUtils.bind(this,function(){this.selectNextPage(!1)}));this.actions.addAction("nextPage",mxUtils.bind(this,function(){this.selectNextPage(!0)}));this.isPagesEnabled()&&(this.keyHandler.bindAction(33,!0,"previousPage",!0),this.keyHandler.bindAction(34,!0,"nextPage",!0));var b=this.editor.graph,e=b.view.validateBackground;b.view.validateBackground=mxUtils.bind(this,function(){if(null!=this.tabContainer){var B=
-this.tabContainer.style.height;this.tabContainer.style.height=null==this.fileNode||null==this.pages||1==this.pages.length&&"0"==urlParams.pages?"0px":this.tabContainerHeight+"px";this.tabContainer.style.visibility=0==parseInt(this.tabContainer.style.height)?"hidden":"";B!=this.tabContainer.style.height&&this.refresh(!1)}e.apply(b.view,arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,
-function(B,G){B=G.getProperty("edit").changes;for(G=0;G<B.length;G++)if(B[G]instanceof RenamePage||B[G]instanceof ChangePage||B[G]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==B.length&&B[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var g=b.sizeDidChange,m=null,v=this;b.sizeDidChange=function(){var B=g.apply(this,arguments);null!=v.currentPage&&m!=v.currentPage&&(m=v.currentPage,v.pageSelected());return B};b.addListener(mxEvent.ROOT,mxUtils.bind(this,
-function(){b.checkDefaultParent()}));var p=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",p);this.editor.addListener("pagesPatched",p);this.editor.addListener("pageRenamed",p);this.editor.addListener("pageMoved",p);this.editor.addListener("fileLoaded",p);this.editor.addListener("pageSelected",mxUtils.bind(this,function(B,G){this.scrollToPage();this.updateHashObject();this.updateTabContainer();this.updateDocumentTitle();null!=
-this.toolbar&&this.toolbar.updateZoom()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(B,G){this.scrollToPage();this.updateHashObject()}));mxEvent.addListener(window,"resize",mxUtils.bind(this,function(){this.checkTabScrollerOverflow()}))}};
+"";m=g.getSvg(null,null,null,null,null,null,null,null,null,null,m,null,null,null,!0,!0);var A=g.getGraphBounds();document.body.removeChild(g.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(m)),A.width,A.height,A.x,A.y)};
+EditorUi.prototype.initPages=function(){if(!this.editor.graph.standalone){this.actions.addAction("previousPage",mxUtils.bind(this,function(){this.selectNextPage(!1)}));this.actions.addAction("nextPage",mxUtils.bind(this,function(){this.selectNextPage(!0)}));this.isPagesEnabled()&&(this.keyHandler.bindAction(33,!0,"previousPage",!0),this.keyHandler.bindAction(34,!0,"nextPage",!0));var b=this.editor.graph,e=b.view.validateBackground;b.view.validateBackground=mxUtils.bind(this,function(){if(null!=this.tabContainer){var A=
+this.tabContainer.style.height;this.tabContainer.style.height=null==this.fileNode||null==this.pages||1==this.pages.length&&"0"==urlParams.pages?"0px":this.tabContainerHeight+"px";this.tabContainer.style.visibility=0==parseInt(this.tabContainer.style.height)?"hidden":"";A!=this.tabContainer.style.height&&this.refresh(!1)}e.apply(b.view,arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,
+function(A,G){A=G.getProperty("edit").changes;for(G=0;G<A.length;G++)if(A[G]instanceof RenamePage||A[G]instanceof ChangePage||A[G]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==A.length&&A[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var g=b.sizeDidChange,m=null,v=this;b.sizeDidChange=function(){var A=g.apply(this,arguments);null!=v.currentPage&&m!=v.currentPage&&(m=v.currentPage,v.pageSelected());return A};b.addListener(mxEvent.ROOT,mxUtils.bind(this,
+function(){b.checkDefaultParent()}));var p=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",p);this.editor.addListener("pagesPatched",p);this.editor.addListener("pageRenamed",p);this.editor.addListener("pageMoved",p);this.editor.addListener("fileLoaded",p);this.editor.addListener("pageSelected",mxUtils.bind(this,function(A,G){this.scrollToPage();this.updateHashObject();this.updateTabContainer();this.updateDocumentTitle();null!=
+this.toolbar&&this.toolbar.updateZoom()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(A,G){this.scrollToPage();this.updateHashObject()}));mxEvent.addListener(window,"resize",mxUtils.bind(this,function(){this.checkTabScrollerOverflow()}))}};
EditorUi.prototype.scrollToPage=function(b,e){var g=null!=b?this.getPageIndex(b):this.getSelectedPageIndex(),m=null!=b?b:this.currentPage;null!=g&&null!=this.tabScroller&&this.tabScroller.children.length>g&&null!=this.tabScroller.children[g]&&(m!=this.lastScrollPage||e)&&(this.tabScroller.children[g].scrollIntoView({block:"nearest",inline:null!=b?"nearest":"center"}),this.tabScroller.children[g].className="geTab gePageTab geActivePage",this.lastScrollPage=m)};
EditorUi.prototype.restoreViewState=function(b,e,g){b=null!=b?this.getPageById(b.getId()):null;var m=this.editor.graph;null!=b&&null!=this.currentPage&&null!=this.pages&&(b!=this.currentPage?this.selectPage(b,!0,e):(m.setViewState(e),this.editor.updateGraphComponents(),m.view.revalidate(),m.sizeDidChange()),m.container.scrollLeft=m.view.translate.x*m.view.scale+e.scrollLeft,m.container.scrollTop=m.view.translate.y*m.view.scale+e.scrollTop,m.restoreSelection(g))};
-Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),g=parseFloat(b.getAttribute("pageScale")),m=parseFloat(b.getAttribute("pageWidth")),v=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),B=this.parseBackgroundImage(b.getAttribute("backgroundImage")),G=b.getAttribute("extFonts");if(G)try{G=G.split("|").map(function(S){S=S.split("^");return{name:S[0],url:S[1]}})}catch(S){console.log("ExtFonts format error: "+S.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),
-gridSize:parseFloat(b.getAttribute("gridSize"))||mxGraph.prototype.gridSize,guidesEnabled:"0"!=b.getAttribute("guides"),foldingEnabled:"0"!=b.getAttribute("fold"),shadowVisible:"1"==b.getAttribute("shadow"),pageVisible:this.isLightboxView()?!1:null!=e?"0"!=e:this.defaultPageVisible,background:null!=p&&0<p.length?p:null,backgroundImage:B,pageScale:isNaN(g)?mxGraph.prototype.pageScale:g,pageFormat:isNaN(m)||isNaN(v)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:
+Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),g=parseFloat(b.getAttribute("pageScale")),m=parseFloat(b.getAttribute("pageWidth")),v=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),A=this.parseBackgroundImage(b.getAttribute("backgroundImage")),G=b.getAttribute("extFonts");if(G)try{G=G.split("|").map(function(S){S=S.split("^");return{name:S[0],url:S[1]}})}catch(S){console.log("ExtFonts format error: "+S.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),
+gridSize:parseFloat(b.getAttribute("gridSize"))||mxGraph.prototype.gridSize,guidesEnabled:"0"!=b.getAttribute("guides"),foldingEnabled:"0"!=b.getAttribute("fold"),shadowVisible:"1"==b.getAttribute("shadow"),pageVisible:this.isLightboxView()?!1:null!=e?"0"!=e:this.defaultPageVisible,background:null!=p&&0<p.length?p:null,backgroundImage:A,pageScale:isNaN(g)?mxGraph.prototype.pageScale:g,pageFormat:isNaN(m)||isNaN(v)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:
mxSettings.getPageFormat():new mxRectangle(0,0,m,v),tooltips:"0"!=b.getAttribute("tooltips"),connect:"0"!=b.getAttribute("connect"),arrows:"0"!=b.getAttribute("arrows"),mathEnabled:"1"==b.getAttribute("math"),adaptiveColors:b.getAttribute("adaptiveColors"),selectionCells:null,defaultParent:null,scrollbars:this.defaultScrollbars,scale:1,hiddenTags:[],extFonts:G||[]}};
Graph.prototype.saveViewState=function(b,e,g,m){g||(e.setAttribute("grid",(null==b?this.defaultGridEnabled:b.gridEnabled)?"1":"0"),e.setAttribute("page",(null==b?this.defaultPageVisible:b.pageVisible)?"1":"0"),e.setAttribute("gridSize",null!=b?b.gridSize:mxGraph.prototype.gridSize),e.setAttribute("guides",null==b||b.guidesEnabled?"1":"0"),e.setAttribute("tooltips",null==b||b.tooltips?"1":"0"),e.setAttribute("connect",null==b||b.connect?"1":"0"),e.setAttribute("arrows",null==b||b.arrows?"1":"0"),e.setAttribute("fold",
null==b||b.foldingEnabled?"1":"0"));e.setAttribute("pageScale",null!=b&&null!=b.pageScale?b.pageScale:mxGraph.prototype.pageScale);g=null!=b?b.pageFormat:"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat();null!=g&&(e.setAttribute("pageWidth",g.width),e.setAttribute("pageHeight",g.height));null!=b&&(null!=b.background&&e.setAttribute("background",b.background),m=this.getBackgroundImageObject(b.backgroundImage,m),null!=m&&e.setAttribute("backgroundImage",
@@ -4058,19 +4073,19 @@ m=!0;for(v=0;v<g.length;v++)if(g[v].name==b){m=!1;break}m&&this.extFonts.push({n
EditorUi.prototype.updatePageRoot=function(b,e){if(null==b.root){e=this.editor.extractGraphModel(b.node,null,e);var g=Editor.extractParserError(e);if(g)throw Error(g);null!=e?(b.graphModelNode=e,b.viewState=this.editor.graph.createViewState(e),g=new mxCodec(e.ownerDocument),b.root=g.decode(e).root):(b.root=this.editor.graph.model.createRoot(),b.root.setId("0"),b.root.children[0].setId("1"),b.needsUpdate=!0)}else if(null==b.viewState){if(null==b.graphModelNode){e=this.editor.extractGraphModel(b.node);
if(g=Editor.extractParserError(e))throw Error(g);null!=e&&(b.graphModelNode=e)}null!=b.graphModelNode&&(b.viewState=this.editor.graph.createViewState(b.graphModelNode))}if(null==b.root.children||0==b.root.children.length)e=new mxCell,e.setId("1"),b.root.insert(e),b.needsUpdate=!0;return b};EditorUi.prototype.getDiagramSnapshot=function(){return{node:this.editor.getGraphXml(),page:this.currentPage}};
EditorUi.prototype.updateDiagramData=function(b,e){if(null==this.getPageIndex(b.page))this.insertPage(null,null,e);else{var g=new mxCodec(b.node.ownerDocument),m=new mxGraphModel;g.decode(b.node,m);g=new mxCodec(e.ownerDocument);var v=new mxGraphModel;g.decode(e,v);this.selectPage(b.page);e=this.diffCells(m.root,v.root);this.patchPage(b.page,e,null,!0)}};EditorUi.prototype.replaceDiagramData=function(b){this.editor.graph.model.execute(new ReplaceDiagram(this,mxUtils.parseXml(b).documentElement))};
-EditorUi.prototype.selectPage=function(b,e,g){try{if(b!=this.currentPage){var m=this.editor.graph;m.isEditing()&&m.stopEditing(!1);e=null!=e?e:!1;m.isMouseDown=!1;m.reset();var v=m.model.createUndoableEdit();v.ignoreEdit=!0;var p=new SelectPage(this,b,g);p.execute();v.add(p);v.notify();e||m.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",v))}}catch(B){this.handleError(B)}};
+EditorUi.prototype.selectPage=function(b,e,g){try{if(b!=this.currentPage){var m=this.editor.graph;m.isEditing()&&m.stopEditing(!1);e=null!=e?e:!1;m.isMouseDown=!1;m.reset();var v=m.model.createUndoableEdit();v.ignoreEdit=!0;var p=new SelectPage(this,b,g);p.execute();v.add(p);v.notify();e||m.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",v))}}catch(A){this.handleError(A)}};
EditorUi.prototype.selectNextPage=function(b){var e=this.currentPage;null!=e&&null!=this.pages&&(e=mxUtils.indexOf(this.pages,e),b?this.selectPage(this.pages[mxUtils.mod(e+1,this.pages.length)]):b||this.selectPage(this.pages[mxUtils.mod(e-1,this.pages.length)]))};
EditorUi.prototype.insertPage=function(b,e,g){this.editor.graph.isEnabled()&&(this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1),b=null!=b?b:this.createPage(null,this.createPageId(),g),e=null!=e?e:this.pages.length,e=new ChangePage(this,b,b,e),this.editor.graph.model.execute(e));return b};EditorUi.prototype.createPageId=function(){do var b=Editor.guid();while(null!=this.getPageById(b));return b};
EditorUi.prototype.createPage=function(b,e,g){e=new DiagramPage((null!=this.fileNode?this.fileNode.ownerDocument:document).createElement("diagram"),e);e.setName(null!=b?b:this.createPageName());this.initDiagramNode(e,g);return e};EditorUi.prototype.createPageName=function(){for(var b={},e=0;e<this.pages.length;e++){var g=this.pages[e].getName();null!=g&&0<g.length&&(b[g]=g)}e=this.pages.length;do g=mxResources.get("pageWithNumber",[++e]);while(null!=b[g]);return g};
EditorUi.prototype.removePage=function(b){try{var e=this.editor.graph,g=mxUtils.indexOf(this.pages,b);if(e.isEnabled()&&0<=g){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);e.model.beginUpdate();try{var m=this.currentPage;m==b&&1<this.pages.length?(g==this.pages.length-1?g--:g++,m=this.pages[g]):1>=this.pages.length&&(m=this.insertPage(),e.model.execute(new RenamePage(this,m,mxResources.get("pageWithNumber",[1]))));e.model.execute(new ChangePage(this,b,m))}finally{e.model.endUpdate()}}}catch(v){this.handleError(v)}return b};
-EditorUi.prototype.duplicatePage=function(b,e){var g=null;try{var m=this.editor.graph;if(m.isEnabled()){m.isEditing()&&m.stopEditing();var v=b.node.cloneNode(!1);v.removeAttribute("id");var p={},B=m.createCellLookup([m.model.root]);g=new DiagramPage(v);g.root=m.cloneCell(m.model.root,null,p);var G=new mxGraphModel;G.prefix=Editor.guid()+"-";G.setRoot(g.root);m.updateCustomLinks(m.createCellMapping(p,B),[g.root]);g.viewState=b==this.currentPage?m.getViewState():b.viewState;this.initDiagramNode(g);
+EditorUi.prototype.duplicatePage=function(b,e){var g=null;try{var m=this.editor.graph;if(m.isEnabled()){m.isEditing()&&m.stopEditing();var v=b.node.cloneNode(!1);v.removeAttribute("id");var p={},A=m.createCellLookup([m.model.root]);g=new DiagramPage(v);g.root=m.cloneCell(m.model.root,null,p);var G=new mxGraphModel;G.prefix=Editor.guid()+"-";G.setRoot(g.root);m.updateCustomLinks(m.createCellMapping(p,A),[g.root]);g.viewState=b==this.currentPage?m.getViewState():b.viewState;this.initDiagramNode(g);
g.viewState.scale=1;delete g.viewState.scrollLeft;delete g.viewState.scrollTop;delete g.viewState.currentRoot;delete g.viewState.defaultParent;g.setName(e);g=this.insertPage(g,mxUtils.indexOf(this.pages,b)+1)}}catch(S){this.handleError(S)}return g};EditorUi.prototype.initDiagramNode=function(b,e){null==e&&(e=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root)));this.editor.graph.saveViewState(b.viewState,e);EditorUi.removeChildNodes(b.node);b.node.appendChild(e)};
EditorUi.prototype.clonePages=function(b){for(var e=[],g=[],m=0;m<b.length;m++)try{g.push(this.clonePage(b[m]))}catch(v){e.push(mxResources.get("pageWithNumber",[m+1])+": "+v.toString())}if(0<e.length){b=Error(e.join("\n"));try{0<g.length&&(b.fallbackFileData=this.getXmlForPages(g))}catch(v){}throw b;}return g};
EditorUi.prototype.clonePage=function(b){this.updatePageRoot(b);var e=new DiagramPage(b.node.cloneNode(!0)),g=b==this.currentPage?this.editor.graph.getViewState():b.viewState;e.viewState=mxUtils.clone(g,EditorUi.transientViewStateProperties);e.root=this.editor.graph.model.cloneCell(b.root,null,!0);e.diagramModified=b.diagramModified;return e};
EditorUi.prototype.renamePage=function(b){if(this.editor.graph.isEnabled()){var e=new FilenameDialog(this,b.getName(),mxResources.get("rename"),mxUtils.bind(this,function(g){null!=g&&0<g.length&&this.editor.graph.model.execute(new RenamePage(this,b,g))}),mxResources.get("rename"));this.showDialog(e.container,300,80,!0,!0);e.init()}return b};EditorUi.prototype.movePage=function(b,e){this.editor.graph.model.execute(new MovePage(this,b,e))};
EditorUi.prototype.createTabContainer=function(){var b=document.createElement("div");b.className="geTabContainer geTabItem";return b};
-EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&null!=this.pages){var b=this.editor.graph,e=document.createElement("div");e.className="geTabScroller";for(var g=null,m=0;m<this.pages.length;m++)mxUtils.bind(this,function(v,p){p.className=this.pages[v]==this.currentPage?"geTab gePageTab geActivePage":"geTab gePageTab geInactivePage";p.setAttribute("draggable","true");mxEvent.addListener(p,"dragstart",mxUtils.bind(this,function(B){b.isEnabled()?(mxClient.IS_FF&&B.dataTransfer.setData("Text",
-"<diagram/>"),g=v):mxEvent.consume(B)}));mxEvent.addListener(p,"dragend",mxUtils.bind(this,function(B){g=null;B.stopPropagation();B.preventDefault()}));mxEvent.addListener(p,"dragover",mxUtils.bind(this,function(B){null!=g&&(B.dataTransfer.dropEffect="move");B.stopPropagation();B.preventDefault()}));mxEvent.addListener(p,"drop",mxUtils.bind(this,function(B){null!=g&&v!=g&&this.movePage(g,v);B.stopPropagation();B.preventDefault()}));e.appendChild(p)})(m,this.createTabForPage(this.pages[m],m+1));m=
+EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&null!=this.pages){var b=this.editor.graph,e=document.createElement("div");e.className="geTabScroller";for(var g=null,m=0;m<this.pages.length;m++)mxUtils.bind(this,function(v,p){p.className=this.pages[v]==this.currentPage?"geTab gePageTab geActivePage":"geTab gePageTab geInactivePage";p.setAttribute("draggable","true");mxEvent.addListener(p,"dragstart",mxUtils.bind(this,function(A){b.isEnabled()?(mxClient.IS_FF&&A.dataTransfer.setData("Text",
+"<diagram/>"),g=v):mxEvent.consume(A)}));mxEvent.addListener(p,"dragend",mxUtils.bind(this,function(A){g=null;A.stopPropagation();A.preventDefault()}));mxEvent.addListener(p,"dragover",mxUtils.bind(this,function(A){null!=g&&(A.dataTransfer.dropEffect="move");A.stopPropagation();A.preventDefault()}));mxEvent.addListener(p,"drop",mxUtils.bind(this,function(A){null!=g&&v!=g&&this.movePage(g,v);A.stopPropagation();A.preventDefault()}));e.appendChild(p)})(m,this.createTabForPage(this.pages[m],m+1));m=
null!=this.tabScroller?this.tabScroller.scrollLeft:0;this.tabContainer.innerText="";"simple"!=Editor.currentTheme&&(this.pageMenuTab=this.createPageMenuTab(),this.tabContainer.appendChild(this.pageMenuTab));this.tabContainer.appendChild(e);this.isPageInsertTabVisible()&&this.tabContainer.appendChild(this.createPageInsertTab());this.leftScrollTab=this.createLeftScrollTab();this.tabContainer.appendChild(this.leftScrollTab);this.rightScrollTab=this.createRightScrollTab();this.tabContainer.appendChild(this.rightScrollTab);
this.tabScroller=e;this.tabScroller.scrollLeft=m;this.checkTabScrollerOverflow();mxEvent.addListener(this.tabScroller,"scroll",mxUtils.bind(this,function(v){this.checkTabScrollerOverflow()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.leftScrollTab.style,"transition","all 0.2s linear");mxUtils.setPrefixedStyle(this.rightScrollTab.style,"transition","all 0.2s linear")}),0)}};
EditorUi.prototype.checkTabScrollerOverflow=function(){null!=this.tabScroller&&null!=this.tabContainer&&2<this.tabContainer.children.length&&(this.tabScroller.scrollWidth>this.tabScroller.offsetWidth?(this.leftScrollTab.style.display="",this.rightScrollTab.style.display="",0==this.tabScroller.scrollLeft?this.leftScrollTab.classList.add("geDisabledControlTab"):this.leftScrollTab.classList.remove("geDisabledControlTab"),Math.ceil(this.tabScroller.scrollLeft)+this.tabScroller.offsetWidth>=this.tabScroller.scrollWidth?
@@ -4082,101 +4097,101 @@ EditorUi.prototype.createLeftScrollTab=function(){return this.createControlTab(n
EditorUi.prototype.createRightScrollTab=function(){return this.createControlTab(null,Editor.thinArrowRightImage,mxUtils.bind(this,function(b){var e=Math.max(60,this.tabScroller.clientWidth/2);null!=this.tabScroller.scrollBy?this.tabScroller.scrollBy({left:e,top:0,behavior:"smooth"}):this.tabScroller.scrollLeft+=e;mxEvent.consume(b)}))};
EditorUi.prototype.createPageMenuTab=function(){return this.createControlTab(mxResources.get("pages"),Editor.verticalDotsImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var e=new mxPopupMenu(mxUtils.bind(this,function(v,p){this.menus.get("pages").funct(v,p)}));e.div.className+=" geMenubarMenu";e.smartSeparators=!0;e.showDisabled=!0;e.autoExpand=!0;e.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(e,arguments);e.destroy()});var g=mxEvent.getClientX(b),
m=mxEvent.getClientY(b);e.popup(g,m,null,b);this.setCurrentMenu(e);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,e){var g=this.createTab(),m=b.getName()||mxResources.get("untitled"),v=b.getId();g.setAttribute("title",m+(null!=v?" ("+v+")":"")+" ["+e+"]");e=document.createElement("span");e.style.maxWidth="160px";e.style.textOverflow="ellipsis";e.style.overflow="hidden";mxUtils.write(e,m);g.appendChild(e);this.addTabListeners(b,g);return g};
-EditorUi.prototype.addTabListeners=function(b,e){mxEvent.disableContextMenu(e);var g=this.editor.graph;mxEvent.addListener(e,"dblclick",mxUtils.bind(this,function(S){this.renamePage(b);mxEvent.consume(S)}));var m=document.createElement("div");m.className="geTabMenuButton";m.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";m.style.backgroundPosition="center center";m.style.backgroundRepeat="no-repeat";m.style.backgroundSize="10px";e.appendChild(m);var v=!1,p=!1,B=mxUtils.bind(this,
+EditorUi.prototype.addTabListeners=function(b,e){mxEvent.disableContextMenu(e);var g=this.editor.graph;mxEvent.addListener(e,"dblclick",mxUtils.bind(this,function(S){this.renamePage(b);mxEvent.consume(S)}));var m=document.createElement("div");m.className="geTabMenuButton";m.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";m.style.backgroundPosition="center center";m.style.backgroundRepeat="no-repeat";m.style.backgroundSize="10px";e.appendChild(m);var v=!1,p=!1,A=mxUtils.bind(this,
function(S){v=null!=this.currentMenu;p=b==this.currentPage;this.scrollToPage(b);g.isMouseDown||p||this.selectPage(b)}),G=mxUtils.bind(this,function(S){if(g.isEnabled()&&!g.isMouseDown&&(p&&(mxEvent.isTouchEvent(S)||mxEvent.getSource(S)==m)||mxEvent.isPopupTrigger(S))&&(g.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(S)||!v)){var F=new mxPopupMenu(this.createPageMenu(b));F.div.className+=" geMenubarMenu";F.smartSeparators=!0;F.showDisabled=!0;F.autoExpand=!0;F.hideMenu=mxUtils.bind(this,
-function(){mxPopupMenu.prototype.hideMenu.apply(F,arguments);this.resetCurrentMenu();F.destroy()});var P=mxEvent.getClientX(S),R=mxEvent.getClientY(S);F.popup(P,R,null,S);this.setCurrentMenu(F,e)}mxEvent.consume(S)});mxEvent.addGestureListeners(m,B,null,G);mxEvent.addGestureListeners(e,B,null,G)};
+function(){mxPopupMenu.prototype.hideMenu.apply(F,arguments);this.resetCurrentMenu();F.destroy()});var P=mxEvent.getClientX(S),R=mxEvent.getClientY(S);F.popup(P,R,null,S);this.setCurrentMenu(F,e)}mxEvent.consume(S)});mxEvent.addGestureListeners(m,A,null,G);mxEvent.addGestureListeners(e,A,null,G)};
EditorUi.prototype.createPageMenu=function(b,e){return mxUtils.bind(this,function(g,m){1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=this.getServiceName()||g.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){this.editor.editAsNew(this.getFileData(!0,null,null,null,!0,!0))}),m));g.addItem(mxResources.get("duplicate"),null,mxUtils.bind(this,function(){this.duplicatePage(b,mxResources.get("copyOf",[b.getName()]))}),m);g.addSeparator(m);this.currentPage==
b&&1<this.pages.length&&this.menus.addSubmenu("movePage",g,m,mxResources.get("move"));g.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){this.removePage(b)}),m);g.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){this.renamePage(b,e)}),m)})};(function(){mxCodecRegistry.getCodec(ChangePageSetup).exclude.push("page")})();
(function(){var b=new mxObjectCodec(new MovePage,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){e=m.oldIndex;m.oldIndex=m.newIndex;m.newIndex=e;return m};mxCodecRegistry.register(b)})();(function(){var b=new mxObjectCodec(new RenamePage,["ui","page"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){e=m.previous;m.previous=m.name;m.name=e;return m};mxCodecRegistry.register(b)})();
(function(){var b=new mxObjectCodec(new ChangePage,["ui","relatedPage","index","page","previousPage"]);b.afterEncode=function(e,g,m){m.setAttribute("relatedPage",g.relatedPage.getId());null==g.index&&(m.setAttribute("name",g.relatedPage.getName()),null!=g.relatedPage.viewState&&m.setAttribute("viewState",JSON.stringify(g.relatedPage.viewState,function(v,p){return 0>mxUtils.indexOf(EditorUi.transientViewStateProperties,v)?p:void 0})),null!=g.relatedPage.root&&e.encodeCell(g.relatedPage.root,m));return m};
b.beforeDecode=function(e,g,m){m.ui=e.ui;m.relatedPage=m.ui.getPageById(g.getAttribute("relatedPage"));if(null==m.relatedPage){var v=g.ownerDocument.createElement("diagram");v.setAttribute("id",g.getAttribute("relatedPage"));v.setAttribute("name",g.getAttribute("name"));m.relatedPage=new DiagramPage(v);v=g.getAttribute("viewState");null!=v&&(m.relatedPage.viewState=JSON.parse(v),g.removeAttribute("viewState"));g=g.cloneNode(!0);v=g.firstChild;if(null!=v)for(m.relatedPage.root=e.decodeCell(v,!1),m=
-v.nextSibling,v.parentNode.removeChild(v),v=m;null!=v;){m=v.nextSibling;if(v.nodeType==mxConstants.NODETYPE_ELEMENT){var p=v.getAttribute("id");null==e.lookup(p)&&e.decodeCell(v)}v.parentNode.removeChild(v);v=m}}return g};b.afterDecode=function(e,g,m){m.index=m.previousIndex;return m};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(m,v,p,B,G){v=null!=v?v:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),m));this.stopEditing();this.model.beginUpdate();try{for(var S=p.slice(),F=0;F<p.length;F++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[F]),"treeFolding","0")&&this.foldTreeCell(m,p[F]);p=S;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(m,v){this.model.beginUpdate();try{var p=
-[];this.traverse(v,!0,mxUtils.bind(this,function(G,S){var F=null!=S&&this.isTreeEdge(S);F&&p.push(S);G==v||null!=S&&!F||p.push(G);return(null==S||F)&&(G==v||!this.model.isCollapsed(G))}));this.model.setCollapsed(v,m);for(var B=0;B<p.length;B++)this.model.setVisible(p[B],!m)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(m){return!this.isEdgeIgnored(m)};Graph.prototype.getTreeEdges=function(m,v,p,B,G,S){return this.model.filterCells(this.getEdges(m,v,p,B,G,S),mxUtils.bind(this,
+v.nextSibling,v.parentNode.removeChild(v),v=m;null!=v;){m=v.nextSibling;if(v.nodeType==mxConstants.NODETYPE_ELEMENT){var p=v.getAttribute("id");null==e.lookup(p)&&e.decodeCell(v)}v.parentNode.removeChild(v);v=m}}return g};b.afterDecode=function(e,g,m){m.index=m.previousIndex;return m};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(m,v,p,A,G){v=null!=v?v:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),m));this.stopEditing();this.model.beginUpdate();try{for(var S=p.slice(),F=0;F<p.length;F++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[F]),"treeFolding","0")&&this.foldTreeCell(m,p[F]);p=S;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(m,v){this.model.beginUpdate();try{var p=
+[];this.traverse(v,!0,mxUtils.bind(this,function(G,S){var F=null!=S&&this.isTreeEdge(S);F&&p.push(S);G==v||null!=S&&!F||p.push(G);return(null==S||F)&&(G==v||!this.model.isCollapsed(G))}));this.model.setCollapsed(v,m);for(var A=0;A<p.length;A++)this.model.setVisible(p[A],!m)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(m){return!this.isEdgeIgnored(m)};Graph.prototype.getTreeEdges=function(m,v,p,A,G,S){return this.model.filterCells(this.getEdges(m,v,p,A,G,S),mxUtils.bind(this,
function(F){return this.isTreeEdge(F)}))};Graph.prototype.getIncomingTreeEdges=function(m,v){return this.getTreeEdges(m,v,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(m,v){return this.getTreeEdges(m,v,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function m(Y){return k.isVertex(Y)&&p(Y)}function v(Y){var fa=!1;null!=Y&&(fa=
-"1"==f.getCurrentCellStyle(Y).treeMoving);return fa}function p(Y){var fa=!1;null!=Y&&(Y=k.getParent(Y),fa=f.view.getState(Y),fa="tree"==(null!=fa?fa.style:f.getCellStyle(Y)).containerType);return fa}function B(Y){var fa=!1;null!=Y&&(Y=k.getParent(Y),fa=f.view.getState(Y),f.view.getState(Y),fa=null!=(null!=fa?fa.style:f.getCellStyle(Y)).childLayout);return fa}function G(Y){Y=f.view.getState(Y);if(null!=Y){var fa=f.getIncomingTreeEdges(Y.cell);if(0<fa.length&&(fa=f.view.getState(fa[0]),null!=fa&&(fa=
+"1"==f.getCurrentCellStyle(Y).treeMoving);return fa}function p(Y){var fa=!1;null!=Y&&(Y=k.getParent(Y),fa=f.view.getState(Y),fa="tree"==(null!=fa?fa.style:f.getCellStyle(Y)).containerType);return fa}function A(Y){var fa=!1;null!=Y&&(Y=k.getParent(Y),fa=f.view.getState(Y),f.view.getState(Y),fa=null!=(null!=fa?fa.style:f.getCellStyle(Y)).childLayout);return fa}function G(Y){Y=f.view.getState(Y);if(null!=Y){var fa=f.getIncomingTreeEdges(Y.cell);if(0<fa.length&&(fa=f.view.getState(fa[0]),null!=fa&&(fa=
fa.absolutePoints,null!=fa&&0<fa.length&&(fa=fa[fa.length-1],null!=fa)))){if(fa.y==Y.y&&Math.abs(fa.x-Y.getCenterX())<Y.width/2)return mxConstants.DIRECTION_SOUTH;if(fa.y==Y.y+Y.height&&Math.abs(fa.x-Y.getCenterX())<Y.width/2)return mxConstants.DIRECTION_NORTH;if(fa.x>Y.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function S(Y,fa){fa=null!=fa?fa:!0;f.model.beginUpdate();try{var Z=f.model.getParent(Y),l=f.getIncomingTreeEdges(Y),u=f.cloneCells([l[0],Y]);f.model.setTerminal(u[0],
-f.model.getTerminal(l[0],!0),!0);var H=G(Y),U=Z.geometry;H==mxConstants.DIRECTION_SOUTH||H==mxConstants.DIRECTION_NORTH?u[1].geometry.x+=fa?Y.geometry.width+10:-u[1].geometry.width-10:u[1].geometry.y+=fa?Y.geometry.height+10:-u[1].geometry.height-10;f.view.currentRoot!=Z&&(u[1].geometry.x-=U.x,u[1].geometry.y-=U.y);var J=f.view.getState(Y),V=f.view.scale;if(null!=J){var aa=mxRectangle.fromRectangle(J);H==mxConstants.DIRECTION_SOUTH||H==mxConstants.DIRECTION_NORTH?aa.x+=(fa?Y.geometry.width+10:-u[1].geometry.width-
-10)*V:aa.y+=(fa?Y.geometry.height+10:-u[1].geometry.height-10)*V;var ba=f.getOutgoingTreeEdges(f.model.getTerminal(l[0],!0));if(null!=ba){for(var ja=H==mxConstants.DIRECTION_SOUTH||H==mxConstants.DIRECTION_NORTH,oa=U=l=0;oa<ba.length;oa++){var qa=f.model.getTerminal(ba[oa],!1);if(H==G(qa)){var ra=f.view.getState(qa);qa!=Y&&null!=ra&&(ja&&fa!=ra.getCenterX()<J.getCenterX()||!ja&&fa!=ra.getCenterY()<J.getCenterY())&&mxUtils.intersects(aa,ra)&&(l=10+Math.max(l,(Math.min(aa.x+aa.width,ra.x+ra.width)-
-Math.max(aa.x,ra.x))/V),U=10+Math.max(U,(Math.min(aa.y+aa.height,ra.y+ra.height)-Math.max(aa.y,ra.y))/V))}}ja?U=0:l=0;for(oa=0;oa<ba.length;oa++)if(qa=f.model.getTerminal(ba[oa],!1),H==G(qa)&&(ra=f.view.getState(qa),qa!=Y&&null!=ra&&(ja&&fa!=ra.getCenterX()<J.getCenterX()||!ja&&fa!=ra.getCenterY()<J.getCenterY()))){var ua=[];f.traverse(ra.cell,!0,function(za,Ba){var Ca=null!=Ba&&f.isTreeEdge(Ba);Ca&&ua.push(Ba);(null==Ba||Ca)&&ua.push(za);return null==Ba||Ca});f.moveCells(ua,(fa?1:-1)*l,(fa?1:-1)*
+f.model.getTerminal(l[0],!0),!0);var H=G(Y),U=Z.geometry;H==mxConstants.DIRECTION_SOUTH||H==mxConstants.DIRECTION_NORTH?u[1].geometry.x+=fa?Y.geometry.width+10:-u[1].geometry.width-10:u[1].geometry.y+=fa?Y.geometry.height+10:-u[1].geometry.height-10;f.view.currentRoot!=Z&&(u[1].geometry.x-=U.x,u[1].geometry.y-=U.y);var J=f.view.getState(Y),W=f.view.scale;if(null!=J){var aa=mxRectangle.fromRectangle(J);H==mxConstants.DIRECTION_SOUTH||H==mxConstants.DIRECTION_NORTH?aa.x+=(fa?Y.geometry.width+10:-u[1].geometry.width-
+10)*W:aa.y+=(fa?Y.geometry.height+10:-u[1].geometry.height-10)*W;var ba=f.getOutgoingTreeEdges(f.model.getTerminal(l[0],!0));if(null!=ba){for(var ja=H==mxConstants.DIRECTION_SOUTH||H==mxConstants.DIRECTION_NORTH,oa=U=l=0;oa<ba.length;oa++){var qa=f.model.getTerminal(ba[oa],!1);if(H==G(qa)){var ra=f.view.getState(qa);qa!=Y&&null!=ra&&(ja&&fa!=ra.getCenterX()<J.getCenterX()||!ja&&fa!=ra.getCenterY()<J.getCenterY())&&mxUtils.intersects(aa,ra)&&(l=10+Math.max(l,(Math.min(aa.x+aa.width,ra.x+ra.width)-
+Math.max(aa.x,ra.x))/W),U=10+Math.max(U,(Math.min(aa.y+aa.height,ra.y+ra.height)-Math.max(aa.y,ra.y))/W))}}ja?U=0:l=0;for(oa=0;oa<ba.length;oa++)if(qa=f.model.getTerminal(ba[oa],!1),H==G(qa)&&(ra=f.view.getState(qa),qa!=Y&&null!=ra&&(ja&&fa!=ra.getCenterX()<J.getCenterX()||!ja&&fa!=ra.getCenterY()<J.getCenterY()))){var ua=[];f.traverse(ra.cell,!0,function(za,Ba){var Ca=null!=Ba&&f.isTreeEdge(Ba);Ca&&ua.push(Ba);(null==Ba||Ca)&&ua.push(za);return null==Ba||Ca});f.moveCells(ua,(fa?1:-1)*l,(fa?1:-1)*
U)}}}return f.addCells(u,Z)}finally{f.model.endUpdate()}}function F(Y){f.model.beginUpdate();try{var fa=G(Y),Z=f.getIncomingTreeEdges(Y),l=f.cloneCells([Z[0],Y]);f.model.setTerminal(Z[0],l[1],!1);f.model.setTerminal(l[0],l[1],!0);f.model.setTerminal(l[0],Y,!1);var u=f.model.getParent(Y),H=u.geometry,U=[];f.view.currentRoot!=u&&(l[1].geometry.x-=H.x,l[1].geometry.y-=H.y);f.traverse(Y,!0,function(aa,ba){var ja=null!=ba&&f.isTreeEdge(ba);ja&&U.push(ba);(null==ba||ja)&&U.push(aa);return null==ba||ja});
-var J=Y.geometry.width+40,V=Y.geometry.height+40;fa==mxConstants.DIRECTION_SOUTH?J=0:fa==mxConstants.DIRECTION_NORTH?(J=0,V=-V):fa==mxConstants.DIRECTION_WEST?(J=-J,V=0):fa==mxConstants.DIRECTION_EAST&&(V=0);f.moveCells(U,J,V);return f.addCells(l,u)}finally{f.model.endUpdate()}}function P(Y,fa){f.model.beginUpdate();try{var Z=f.model.getParent(Y),l=f.getIncomingTreeEdges(Y),u=G(Y);0==l.length&&(l=[f.createEdge(Z,null,"",null,null,f.createCurrentEdgeStyle())],u=fa);var H=f.cloneCells([l[0],Y]);f.model.setTerminal(H[0],
-Y,!0);null==f.model.getTerminal(H[0],!1)&&(f.model.setTerminal(H[0],H[1],!1),f.applyNewEdgeStyle(H[1],[H[0]],u));l=f.getOutgoingTreeEdges(Y);var U=Z.geometry;fa=[];f.view.currentRoot==Z&&(U=new mxRectangle);for(var J=0;J<l.length;J++){var V=f.model.getTerminal(l[J],!1);null!=V&&fa.push(V)}var aa=f.view.getBounds(fa),ba=f.view.translate,ja=f.view.scale;u==mxConstants.DIRECTION_SOUTH?(H[1].geometry.x=null==aa?Y.geometry.x+(Y.geometry.width-H[1].geometry.width)/2:(aa.x+aa.width)/ja-ba.x-U.x+10,H[1].geometry.y+=
+var J=Y.geometry.width+40,W=Y.geometry.height+40;fa==mxConstants.DIRECTION_SOUTH?J=0:fa==mxConstants.DIRECTION_NORTH?(J=0,W=-W):fa==mxConstants.DIRECTION_WEST?(J=-J,W=0):fa==mxConstants.DIRECTION_EAST&&(W=0);f.moveCells(U,J,W);return f.addCells(l,u)}finally{f.model.endUpdate()}}function P(Y,fa){f.model.beginUpdate();try{var Z=f.model.getParent(Y),l=f.getIncomingTreeEdges(Y),u=G(Y);0==l.length&&(l=[f.createEdge(Z,null,"",null,null,f.createCurrentEdgeStyle())],u=fa);var H=f.cloneCells([l[0],Y]);f.model.setTerminal(H[0],
+Y,!0);null==f.model.getTerminal(H[0],!1)&&(f.model.setTerminal(H[0],H[1],!1),f.applyNewEdgeStyle(H[1],[H[0]],u));l=f.getOutgoingTreeEdges(Y);var U=Z.geometry;fa=[];f.view.currentRoot==Z&&(U=new mxRectangle);for(var J=0;J<l.length;J++){var W=f.model.getTerminal(l[J],!1);null!=W&&fa.push(W)}var aa=f.view.getBounds(fa),ba=f.view.translate,ja=f.view.scale;u==mxConstants.DIRECTION_SOUTH?(H[1].geometry.x=null==aa?Y.geometry.x+(Y.geometry.width-H[1].geometry.width)/2:(aa.x+aa.width)/ja-ba.x-U.x+10,H[1].geometry.y+=
H[1].geometry.height-U.y+40):u==mxConstants.DIRECTION_NORTH?(H[1].geometry.x=null==aa?Y.geometry.x+(Y.geometry.width-H[1].geometry.width)/2:(aa.x+aa.width)/ja-ba.x+-U.x+10,H[1].geometry.y-=H[1].geometry.height+U.y+40):(H[1].geometry.x=u==mxConstants.DIRECTION_WEST?H[1].geometry.x-(H[1].geometry.width+U.x+40):H[1].geometry.x+(H[1].geometry.width-U.x+40),H[1].geometry.y=null==aa?Y.geometry.y+(Y.geometry.height-H[1].geometry.height)/2:(aa.y+aa.height)/ja-ba.y+-U.y+10);return f.addCells(H,Z)}finally{f.model.endUpdate()}}
function R(Y,fa,Z){Y=f.getOutgoingTreeEdges(Y);Z=f.view.getState(Z);var l=[];if(null!=Z&&null!=Y){for(var u=0;u<Y.length;u++){var H=f.view.getState(f.model.getTerminal(Y[u],!1));null!=H&&(!fa&&Math.min(H.x+H.width,Z.x+Z.width)>=Math.max(H.x,Z.x)||fa&&Math.min(H.y+H.height,Z.y+Z.height)>=Math.max(H.y,Z.y))&&l.push(H)}l.sort(function(U,J){return fa?U.x+U.width-J.x-J.width:U.y+U.height-J.y-J.height})}return l}function T(Y,fa){var Z=G(Y),l=fa==mxConstants.DIRECTION_EAST||fa==mxConstants.DIRECTION_WEST;
(Z==mxConstants.DIRECTION_EAST||Z==mxConstants.DIRECTION_WEST)==l&&Z!=fa?c.actions.get("selectParent").funct():Z==fa?(fa=f.getOutgoingTreeEdges(Y),null!=fa&&0<fa.length&&f.setSelectionCell(f.model.getTerminal(fa[0],!1))):(Z=f.getIncomingTreeEdges(Y),null!=Z&&0<Z.length&&(l=R(f.model.getTerminal(Z[0],!0),l,Y),Y=f.view.getState(Y),null!=Y&&(Y=mxUtils.indexOf(l,Y),0<=Y&&(Y+=fa==mxConstants.DIRECTION_NORTH||fa==mxConstants.DIRECTION_WEST?-1:1,0<=Y&&Y<=l.length-1&&f.setSelectionCell(l[Y].cell)))))}var c=
-this,f=c.editor.graph,k=f.getModel(),A=c.menus.createPopupMenu;c.menus.createPopupMenu=function(Y,fa,Z){A.apply(this,arguments);if(1==f.getSelectionCount()){fa=f.getSelectionCell();var l=f.getOutgoingTreeEdges(fa);Y.addSeparator();0<l.length&&(m(f.getSelectionCell())&&this.addMenuItems(Y,["selectChildren"],null,Z),this.addMenuItems(Y,["selectDescendants"],null,Z));m(f.getSelectionCell())?(Y.addSeparator(),0<f.getIncomingTreeEdges(fa).length&&this.addMenuItems(Y,["selectSiblings","selectParent"],null,
+this,f=c.editor.graph,k=f.getModel(),B=c.menus.createPopupMenu;c.menus.createPopupMenu=function(Y,fa,Z){B.apply(this,arguments);if(1==f.getSelectionCount()){fa=f.getSelectionCell();var l=f.getOutgoingTreeEdges(fa);Y.addSeparator();0<l.length&&(m(f.getSelectionCell())&&this.addMenuItems(Y,["selectChildren"],null,Z),this.addMenuItems(Y,["selectDescendants"],null,Z));m(f.getSelectionCell())?(Y.addSeparator(),0<f.getIncomingTreeEdges(fa).length&&this.addMenuItems(Y,["selectSiblings","selectParent"],null,
Z)):0<f.model.getEdgeCount(fa)&&this.addMenuItems(Y,["selectConnections"],null,Z)}};c.actions.addAction("selectChildren",function(Y){if(f.isEnabled()&&1==f.getSelectionCount()){var fa=f.getSelectionCell();Y=mxEvent.isControlDown(Y)?null:f.getOutgoingTreeEdges(fa);if(null!=Y&&0<Y.length){fa=[];for(var Z=0;Z<Y.length;Z++)fa.push(f.model.getTerminal(Y[Z],!1));f.setSelectionCells(fa)}else f.setSelectionCells(f.model.getChildren(fa))}},null,null,"Alt+Shift+C");c.actions.addAction("selectDescendants",function(Y){var fa=
f.getSelectionCell();if(f.isEnabled()&&null!=fa){var Z=[];mxEvent.isControlDown(Y)||f.traverse(fa,!0,function(l,u){var H=null!=u&&f.isTreeEdge(u);H&&mxEvent.isControlDown(Y)&&Z.push(u);(null==u||H)&&Z.push(l);return null==u||H});if(0==Z.length||1==Z.length&&Z[0]==fa)Z=f.model.getDescendants(fa);f.setSelectionCells(Z)}},null,null,"Alt+Shift+X");c.actions.addAction("selectParent",function(Y){var fa=f.getSelectionCell();f.isEnabled()&&null!=fa&&(Y=mxEvent.isControlDown(Y)?null:f.getIncomingTreeEdges(fa),
null!=Y&&0<Y.length?f.setSelectionCell(f.model.getTerminal(Y[0],!0)):f.selectParentCell())},null,null,"Alt+Shift+P");c.actions.addAction("selectSiblings",function(Y){if(f.isEnabled()&&1==f.getSelectionCount()){var fa=f.getSelectionCell(),Z=mxEvent.isControlDown(Y)?null:f.getIncomingTreeEdges(fa);Y=[];if(null!=Z&&0<Z.length&&(Z=f.getOutgoingTreeEdges(f.model.getTerminal(Z[0],!0)),null!=Z))for(var l=0;l<Z.length;l++)Y.push(f.model.getTerminal(Z[l],!1));0==Y.length&&(Y=f.model.getChildren(f.model.getParent(fa)));
-f.setSelectionCells(Y)}},null,null,"Alt+Shift+S");var z=f.removeCells;f.removeCells=function(Y,fa){fa=null!=fa?fa:!0;null==Y&&(Y=this.getDeletableCells(this.getSelectionCells()));fa&&(Y=this.getDeletableCells(this.addAllEdges(Y)));for(var Z=[],l=0;l<Y.length;l++){var u=Y[l];k.isEdge(u)&&p(u)&&(Z.push(u),u=k.getTerminal(u,!1));if(m(u)){var H=[];f.traverse(u,!0,function(U,J){var V=null!=J&&f.isTreeEdge(J);V&&H.push(J);(null==J||V)&&H.push(U);return null==J||V});0<H.length&&(Z=Z.concat(H),u=f.getIncomingTreeEdges(Y[l]),
+f.setSelectionCells(Y)}},null,null,"Alt+Shift+S");var z=f.removeCells;f.removeCells=function(Y,fa){fa=null!=fa?fa:!0;null==Y&&(Y=this.getDeletableCells(this.getSelectionCells()));fa&&(Y=this.getDeletableCells(this.addAllEdges(Y)));for(var Z=[],l=0;l<Y.length;l++){var u=Y[l];k.isEdge(u)&&p(u)&&(Z.push(u),u=k.getTerminal(u,!1));if(m(u)){var H=[];f.traverse(u,!0,function(U,J){var W=null!=J&&f.isTreeEdge(J);W&&H.push(J);(null==J||W)&&H.push(U);return null==J||W});0<H.length&&(Z=Z.concat(H),u=f.getIncomingTreeEdges(Y[l]),
Y=Y.concat(u))}else null!=u&&Z.push(Y[l])}Y=Z;return z.apply(this,arguments)};c.hoverIcons.getStateAt=function(Y,fa,Z){return m(Y.cell)?null:this.graph.view.getState(this.graph.getCellAt(fa,Z))};var C=f.duplicateCells;f.duplicateCells=function(Y,fa){Y=null!=Y?Y:this.getSelectionCells();for(var Z=Y.slice(0),l=0;l<Z.length;l++){var u=f.view.getState(Z[l]);if(null!=u&&m(u.cell)){var H=f.getIncomingTreeEdges(u.cell);for(u=0;u<H.length;u++)mxUtils.remove(H[u],Y)}}this.model.beginUpdate();try{var U=C.call(this,
-Y,fa);if(U.length==Y.length)for(l=0;l<Y.length;l++)if(m(Y[l])){var J=f.getIncomingTreeEdges(U[l]);H=f.getIncomingTreeEdges(Y[l]);if(0==J.length&&0<H.length){var V=this.cloneCell(H[0]);this.addEdge(V,f.getDefaultParent(),this.model.getTerminal(H[0],!0),U[l])}}}finally{this.model.endUpdate()}return U};var I=f.moveCells;f.moveCells=function(Y,fa,Z,l,u,H,U){for(var J=null,V=[],aa=0;aa<Y.length;aa++)(v(Y[aa])||m(Y[aa]))&&!B(Y[aa])&&this.isCellCollapsed(Y[aa])?V=V.concat(this.getSubtree(Y[aa])):V.push(Y[aa]);
-Y=mxUtils.removeDuplicates(V);this.model.beginUpdate();try{V=u;var ba=this.getCurrentCellStyle(u);if(null!=Y&&m(u)&&"1"==mxUtils.getValue(ba,"treeFolding","0")){for(aa=0;aa<Y.length;aa++)if(m(Y[aa])||f.model.isEdge(Y[aa])&&null==f.model.getTerminal(Y[aa],!0)){u=f.model.getParent(Y[aa]);break}if(null!=V&&u!=V&&null!=this.view.getState(Y[0])){var ja=f.getIncomingTreeEdges(Y[0]);if(0<ja.length){var oa=f.view.getState(f.model.getTerminal(ja[0],!0));if(null!=oa){var qa=f.view.getState(V);null!=qa&&(fa=
-(qa.getCenterX()-oa.getCenterX())/f.view.scale,Z=(qa.getCenterY()-oa.getCenterY())/f.view.scale)}}}}J=I.apply(this,arguments);if(null!=J&&null!=Y&&J.length==Y.length)for(aa=0;aa<J.length;aa++)if(this.model.isEdge(J[aa]))m(V)&&0>mxUtils.indexOf(J,this.model.getTerminal(J[aa],!0))&&this.model.setTerminal(J[aa],V,!0);else if(m(Y[aa])&&(ja=f.getIncomingTreeEdges(Y[aa]),0<ja.length))if(!l)m(V)&&0>mxUtils.indexOf(Y,this.model.getTerminal(ja[0],!0))&&this.model.setTerminal(ja[0],V,!0);else if(0==f.getIncomingTreeEdges(J[aa]).length){ba=
-V;if(null==ba||ba==f.model.getParent(Y[aa]))ba=f.model.getTerminal(ja[0],!0);l=this.cloneCell(ja[0]);this.addEdge(l,f.getDefaultParent(),ba,J[aa])}}finally{this.model.endUpdate()}return J};if(null!=c.sidebar){var L=c.sidebar.dropAndConnect;c.sidebar.dropAndConnect=function(Y,fa,Z,l){var u=f.model,H=null;u.beginUpdate();try{if(H=L.apply(this,arguments),m(Y))for(var U=0;U<H.length;U++)if(u.isEdge(H[U])&&null==u.getTerminal(H[U],!0)){u.setTerminal(H[U],Y,!0);var J=f.getCellGeometry(H[U]);J.points=null;
+Y,fa);if(U.length==Y.length)for(l=0;l<Y.length;l++)if(m(Y[l])){var J=f.getIncomingTreeEdges(U[l]);H=f.getIncomingTreeEdges(Y[l]);if(0==J.length&&0<H.length){var W=this.cloneCell(H[0]);this.addEdge(W,f.getDefaultParent(),this.model.getTerminal(H[0],!0),U[l])}}}finally{this.model.endUpdate()}return U};var I=f.moveCells;f.moveCells=function(Y,fa,Z,l,u,H,U){for(var J=null,W=[],aa=0;aa<Y.length;aa++)(v(Y[aa])||m(Y[aa]))&&!A(Y[aa])&&this.isCellCollapsed(Y[aa])?W=W.concat(this.getSubtree(Y[aa])):W.push(Y[aa]);
+Y=mxUtils.removeDuplicates(W);this.model.beginUpdate();try{W=u;var ba=this.getCurrentCellStyle(u);if(null!=Y&&m(u)&&"1"==mxUtils.getValue(ba,"treeFolding","0")){for(aa=0;aa<Y.length;aa++)if(m(Y[aa])||f.model.isEdge(Y[aa])&&null==f.model.getTerminal(Y[aa],!0)){u=f.model.getParent(Y[aa]);break}if(null!=W&&u!=W&&null!=this.view.getState(Y[0])){var ja=f.getIncomingTreeEdges(Y[0]);if(0<ja.length){var oa=f.view.getState(f.model.getTerminal(ja[0],!0));if(null!=oa){var qa=f.view.getState(W);null!=qa&&(fa=
+(qa.getCenterX()-oa.getCenterX())/f.view.scale,Z=(qa.getCenterY()-oa.getCenterY())/f.view.scale)}}}}J=I.apply(this,arguments);if(null!=J&&null!=Y&&J.length==Y.length)for(aa=0;aa<J.length;aa++)if(this.model.isEdge(J[aa]))m(W)&&0>mxUtils.indexOf(J,this.model.getTerminal(J[aa],!0))&&this.model.setTerminal(J[aa],W,!0);else if(m(Y[aa])&&(ja=f.getIncomingTreeEdges(Y[aa]),0<ja.length))if(!l)m(W)&&0>mxUtils.indexOf(Y,this.model.getTerminal(ja[0],!0))&&this.model.setTerminal(ja[0],W,!0);else if(0==f.getIncomingTreeEdges(J[aa]).length){ba=
+W;if(null==ba||ba==f.model.getParent(Y[aa]))ba=f.model.getTerminal(ja[0],!0);l=this.cloneCell(ja[0]);this.addEdge(l,f.getDefaultParent(),ba,J[aa])}}finally{this.model.endUpdate()}return J};if(null!=c.sidebar){var L=c.sidebar.dropAndConnect;c.sidebar.dropAndConnect=function(Y,fa,Z,l){var u=f.model,H=null;u.beginUpdate();try{if(H=L.apply(this,arguments),m(Y))for(var U=0;U<H.length;U++)if(u.isEdge(H[U])&&null==u.getTerminal(H[U],!0)){u.setTerminal(H[U],Y,!0);var J=f.getCellGeometry(H[U]);J.points=null;
null!=J.getTerminalPoint(!0)&&J.setTerminalPoint(null,!0)}}finally{u.endUpdate()}return H}}var K={67:c.actions.get("selectChildren"),88:c.actions.get("selectDescendants"),80:c.actions.get("selectParent"),83:c.actions.get("selectSiblings")},O={67:c.actions.get("copyStyle"),86:c.actions.get("pasteStyle")},da=c.onKeyDown;c.onKeyDown=function(Y){try{var fa=f.getSelectionCell();if(f.isEnabled()&&!f.isEditing()&&null!=fa){var Z=mxEvent.isAltDown(Y)&&mxEvent.isShiftDown(Y)?K[Y.keyCode]:mxEvent.isAltDown(Y)?
O[Y.keyCode]:null;null!=Z?(Z.funct(Y),mxEvent.consume(Y)):m(fa)&&(Z=null,0<f.getIncomingTreeEdges(fa).length&&(9==Y.which?Z=mxEvent.isShiftDown(Y)?F(fa):P(fa):13==Y.which&&(Z=S(fa,!mxEvent.isShiftDown(Y)))),null!=Z&&0<Z.length?(1==Z.length&&f.model.isEdge(Z[0])?f.setSelectionCell(f.model.getTerminal(Z[0],!1)):f.setSelectionCell(Z[Z.length-1]),null!=c.hoverIcons&&c.hoverIcons.update(f.view.getState(fa)),f.startEditingAtCell(fa),mxEvent.consume(Y)):37==Y.keyCode?(T(fa,mxConstants.DIRECTION_WEST),mxEvent.consume(Y)):
-38==Y.keyCode?(T(fa,mxConstants.DIRECTION_NORTH),mxEvent.consume(Y)):39==Y.keyCode?(T(fa,mxConstants.DIRECTION_EAST),mxEvent.consume(Y)):40==Y.keyCode&&(T(fa,mxConstants.DIRECTION_SOUTH),mxEvent.consume(Y)))}}catch(l){c.handleError(l)}mxEvent.isConsumed(Y)||da.apply(this,arguments)};var ea=f.connectVertex;f.connectVertex=function(Y,fa,Z,l,u,H,U){var J=f.getIncomingTreeEdges(Y);if(m(Y)){var V=G(Y),aa=V==mxConstants.DIRECTION_EAST||V==mxConstants.DIRECTION_WEST,ba=fa==mxConstants.DIRECTION_EAST||fa==
-mxConstants.DIRECTION_WEST;return V==fa||0==J.length?P(Y,fa):aa==ba?F(Y):S(Y,fa!=mxConstants.DIRECTION_NORTH&&fa!=mxConstants.DIRECTION_WEST)}return ea.apply(this,arguments)};f.getSubtree=function(Y){var fa=[Y];!v(Y)&&!m(Y)||B(Y)||f.traverse(Y,!0,function(Z,l){var u=null!=l&&f.isTreeEdge(l);u&&0>mxUtils.indexOf(fa,l)&&fa.push(l);(null==l||u)&&0>mxUtils.indexOf(fa,Z)&&fa.push(Z);return null==l||u});return fa};var ca=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ca.apply(this,
-arguments);(v(this.state.cell)||m(this.state.cell))&&!B(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?null==this.moveHandle&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title","Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),
-this.redrawMoveHandle(),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(Y){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(Y),mxEvent.getClientY(Y),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(Y);this.graph.isMouseDown=!0;c.hoverIcons.reset();mxEvent.consume(Y)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var W=mxVertexHandler.prototype.redrawHandles;
-mxVertexHandler.prototype.redrawHandles=function(){W.apply(this,arguments);this.redrawMoveHandle()};mxVertexHandler.prototype.redrawMoveHandle=function(){null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var ma=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(Y){ma.apply(this,arguments);null!=
+38==Y.keyCode?(T(fa,mxConstants.DIRECTION_NORTH),mxEvent.consume(Y)):39==Y.keyCode?(T(fa,mxConstants.DIRECTION_EAST),mxEvent.consume(Y)):40==Y.keyCode&&(T(fa,mxConstants.DIRECTION_SOUTH),mxEvent.consume(Y)))}}catch(l){c.handleError(l)}mxEvent.isConsumed(Y)||da.apply(this,arguments)};var ea=f.connectVertex;f.connectVertex=function(Y,fa,Z,l,u,H,U){var J=f.getIncomingTreeEdges(Y);if(m(Y)){var W=G(Y),aa=W==mxConstants.DIRECTION_EAST||W==mxConstants.DIRECTION_WEST,ba=fa==mxConstants.DIRECTION_EAST||fa==
+mxConstants.DIRECTION_WEST;return W==fa||0==J.length?P(Y,fa):aa==ba?F(Y):S(Y,fa!=mxConstants.DIRECTION_NORTH&&fa!=mxConstants.DIRECTION_WEST)}return ea.apply(this,arguments)};f.getSubtree=function(Y){var fa=[Y];!v(Y)&&!m(Y)||A(Y)||f.traverse(Y,!0,function(Z,l){var u=null!=l&&f.isTreeEdge(l);u&&0>mxUtils.indexOf(fa,l)&&fa.push(l);(null==l||u)&&0>mxUtils.indexOf(fa,Z)&&fa.push(Z);return null==l||u});return fa};var ca=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ca.apply(this,
+arguments);(v(this.state.cell)||m(this.state.cell))&&!A(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?null==this.moveHandle&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title","Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),
+this.redrawMoveHandle(),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(Y){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(Y),mxEvent.getClientY(Y),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(Y);this.graph.isMouseDown=!0;c.hoverIcons.reset();mxEvent.consume(Y)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var V=mxVertexHandler.prototype.redrawHandles;
+mxVertexHandler.prototype.redrawHandles=function(){V.apply(this,arguments);this.redrawMoveHandle()};mxVertexHandler.prototype.redrawMoveHandle=function(){null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var ma=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(Y){ma.apply(this,arguments);null!=
this.moveHandle&&(this.moveHandle.style.display=Y?"":"none")};var la=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(Y,fa){la.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var g=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var m=g.apply(this,arguments),v=this.graph,p=this;return m.concat([this.addEntry("tree container",
-function(){var B=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");B.vertex=!0;var G=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');G.vertex=!0;var S=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
-S.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");F.geometry.relative=!0;F.edge=!0;G.insertEdge(F,!0);S.insertEdge(F,!1);B.insert(F);B.insert(G);B.insert(S);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var B=new mxCell("Mindmap",new mxGeometry(0,
-0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");B.vertex=!0;var G=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');G.vertex=!0;var S=new mxCell("Topic",new mxGeometry(320,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
+function(){var A=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");A.vertex=!0;var G=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');G.vertex=!0;var S=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
+S.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");F.geometry.relative=!0;F.edge=!0;G.insertEdge(F,!0);S.insertEdge(F,!1);A.insert(F);A.insert(G);A.insert(S);return p.createVertexTemplateFromCells([A],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var A=new mxCell("Mindmap",new mxGeometry(0,
+0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");A.vertex=!0;var G=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');G.vertex=!0;var S=new mxCell("Topic",new mxGeometry(320,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
S.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");F.geometry.relative=!0;F.edge=!0;G.insertEdge(F,!0);S.insertEdge(F,!1);var P=new mxCell("Branch",new mxGeometry(320,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
P.vertex=!0;var R=new mxCell("",new mxGeometry(0,0,0,0),F.style);R.geometry.relative=!0;R.edge=!0;G.insertEdge(R,!0);P.insertEdge(R,!1);var T=new mxCell("Topic",new mxGeometry(20,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
T.vertex=!0;var c=new mxCell("",new mxGeometry(0,0,0,0),F.style);c.geometry.relative=!0;c.edge=!0;G.insertEdge(c,!0);T.insertEdge(c,!1);var f=new mxCell("Branch",new mxGeometry(20,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
-f.vertex=!0;var k=new mxCell("",new mxGeometry(0,0,0,0),F.style);k.geometry.relative=!0;k.edge=!0;G.insertEdge(k,!0);f.insertEdge(k,!1);B.insert(F);B.insert(R);B.insert(c);B.insert(k);B.insert(G);B.insert(S);B.insert(P);B.insert(T);B.insert(f);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var B=new mxCell("Central Idea",new mxGeometry(0,0,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};treeFolding=1;treeMoving=1;');
-B.vertex=!0;return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var B=new mxCell("Branch",new mxGeometry(0,0,80,20),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;recursiveResize=0;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
-B.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");G.geometry.setTerminalPoint(new mxPoint(-40,40),!0);G.geometry.relative=!0;G.edge=!0;B.insertEdge(G,!1);return p.createVertexTemplateFromCells([B,G],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var B=new mxCell("Sub Topic",new mxGeometry(0,0,80,26),
-'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');B.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
-G.geometry.setTerminalPoint(new mxPoint(-40,40),!0);G.geometry.relative=!0;G.edge=!0;B.insertEdge(G,!1);return p.createVertexTemplateFromCells([B,G],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree orgchart organization division",function(){var B=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');B.vertex=!0;var G=new mxCell("Organization",new mxGeometry(80,
+f.vertex=!0;var k=new mxCell("",new mxGeometry(0,0,0,0),F.style);k.geometry.relative=!0;k.edge=!0;G.insertEdge(k,!0);f.insertEdge(k,!1);A.insert(F);A.insert(R);A.insert(c);A.insert(k);A.insert(G);A.insert(S);A.insert(P);A.insert(T);A.insert(f);return p.createVertexTemplateFromCells([A],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var A=new mxCell("Central Idea",new mxGeometry(0,0,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};treeFolding=1;treeMoving=1;');
+A.vertex=!0;return p.createVertexTemplateFromCells([A],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var A=new mxCell("Branch",new mxGeometry(0,0,80,20),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;recursiveResize=0;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
+A.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");G.geometry.setTerminalPoint(new mxPoint(-40,40),!0);G.geometry.relative=!0;G.edge=!0;A.insertEdge(G,!1);return p.createVertexTemplateFromCells([A,G],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var A=new mxCell("Sub Topic",new mxGeometry(0,0,80,26),
+'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');A.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
+G.geometry.setTerminalPoint(new mxPoint(-40,40),!0);G.geometry.relative=!0;G.edge=!0;A.insertEdge(G,!1);return p.createVertexTemplateFromCells([A,G],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree orgchart organization division",function(){var A=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');A.vertex=!0;var G=new mxCell("Organization",new mxGeometry(80,
40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');v.setAttributeForCell(G,"treeRoot","1");G.vertex=!0;var S=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');S.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
F.geometry.relative=!0;F.edge=!0;G.insertEdge(F,!0);S.insertEdge(F,!1);var P=new mxCell("Division",new mxGeometry(160,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');P.vertex=!0;var R=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");R.geometry.relative=
-!0;R.edge=!0;G.insertEdge(R,!0);P.insertEdge(R,!1);B.insert(F);B.insert(R);B.insert(G);B.insert(S);B.insert(P);return p.createVertexTemplateFromCells([B],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree root",function(){var B=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');v.setAttributeForCell(B,"treeRoot","1");B.vertex=!0;return p.createVertexTemplateFromCells([B],
-B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree division",function(){var B=new mxCell("Division",new mxGeometry(20,40,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');B.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
-G.geometry.setTerminalPoint(new mxPoint(0,0),!0);G.geometry.relative=!0;G.edge=!0;B.insertEdge(G,!1);return p.createVertexTemplateFromCells([B,G],B.geometry.width,B.geometry.height,B.value)}),this.addEntry("tree sub sections",function(){var B=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");B.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;targetPortConstraint=eastwest;sourcePortConstraint=northsouth;curved=0;rounded=0;");
-G.geometry.setTerminalPoint(new mxPoint(110,-40),!0);G.geometry.relative=!0;G.edge=!0;B.insertEdge(G,!1);var S=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");S.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),G.style);F.geometry.setTerminalPoint(new mxPoint(110,-40),!0);F.geometry.relative=!0;F.edge=!0;S.insertEdge(F,!1);return p.createVertexTemplateFromCells([G,F,B,S],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
+!0;R.edge=!0;G.insertEdge(R,!0);P.insertEdge(R,!1);A.insert(F);A.insert(R);A.insert(G);A.insert(S);A.insert(P);return p.createVertexTemplateFromCells([A],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree root",function(){var A=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');v.setAttributeForCell(A,"treeRoot","1");A.vertex=!0;return p.createVertexTemplateFromCells([A],
+A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree division",function(){var A=new mxCell("Division",new mxGeometry(20,40,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');A.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
+G.geometry.setTerminalPoint(new mxPoint(0,0),!0);G.geometry.relative=!0;G.edge=!0;A.insertEdge(G,!1);return p.createVertexTemplateFromCells([A,G],A.geometry.width,A.geometry.height,A.value)}),this.addEntry("tree sub sections",function(){var A=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");A.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;targetPortConstraint=eastwest;sourcePortConstraint=northsouth;curved=0;rounded=0;");
+G.geometry.setTerminalPoint(new mxPoint(110,-40),!0);G.geometry.relative=!0;G.edge=!0;A.insertEdge(G,!1);var S=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");S.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),G.style);F.geometry.setTerminalPoint(new mxPoint(110,-40),!0);F.geometry.relative=!0;F.edge=!0;S.insertEdge(F,!1);return p.createVertexTemplateFromCells([G,F,A,S],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
EditorUi.initMinimalTheme=function(){function b(T,c){if(EditorUi.windowed){var f=T.editor.graph;f.popupMenuHandler.hideMenu();null==T.formatWindow?(c=Math.max(10,T.diagramContainer.clientWidth-248),f=Math.min(566,f.container.clientHeight-10),T.formatWindow=new WrapperWindow(T,mxResources.get("format"),c,60,240,f,function(k){T.createFormat(k).init()}),T.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){T.formatWindow.window.fit()})),T.formatWindow.window.minimumSize=new mxRectangle(0,
0,240,80)):T.formatWindow.window.setVisible(null!=c?c:!T.formatWindow.window.isVisible())}else null==T.formatElt&&(T.formatElt=T.createSidebarContainer(),T.createFormat(T.formatElt).init(),T.formatElt.style.border="none",T.formatElt.style.width="240px",T.formatElt.style.borderLeftWidth="1px",T.formatElt.style.borderLeftStyle="solid",T.formatElt.style.right="0px"),f=T.diagramContainer.parentNode,null!=T.formatElt.parentNode?(T.formatElt.parentNode.removeChild(T.formatElt),f.style.right="0px"):(f.parentNode.appendChild(T.formatElt),
f.style.right=T.formatElt.style.width)}function e(T,c){function f(z,C){var I=T.menus.get(z);z=k.addMenu(C,mxUtils.bind(this,function(){I.funct.apply(this,arguments)}));z.setAttribute("title",C);z.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";z.className="geTitle";c.appendChild(z);return z}var k=new Menubar(T,c);if(Editor.enableCustomLibraries&&
-("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=T.actions.get("newLibrary")){var A=document.createElement("div");A.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";A.className="geTitle";mxUtils.write(A,mxResources.get("newLibrary"));c.appendChild(A);mxEvent.addListener(A,"click",this.actions.get("newLibrary").funct);
-A=A.cloneNode(!1);A.style.left="50%";A.style.borderLeftStyle="solid";mxUtils.write(A,mxResources.get("openLibrary"));c.appendChild(A);mxEvent.addListener(A,"click",this.actions.get("openLibrary").funct)}else A=f("newLibrary",mxResources.get("newLibrary")),A.style.display="block",A.style.fontSize="11px",A.style.left="0",A=f("openLibraryFrom",mxResources.get("openLibraryFrom")),A.style.borderLeftStyle="solid",A.style.display="block",A.style.fontSize="11px",A.style.left="50%";c.appendChild(T.sidebar.container);
+("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=T.actions.get("newLibrary")){var B=document.createElement("div");B.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";B.className="geTitle";mxUtils.write(B,mxResources.get("newLibrary"));c.appendChild(B);mxEvent.addListener(B,"click",this.actions.get("newLibrary").funct);
+B=B.cloneNode(!1);B.style.left="50%";B.style.borderLeftStyle="solid";mxUtils.write(B,mxResources.get("openLibrary"));c.appendChild(B);mxEvent.addListener(B,"click",this.actions.get("openLibrary").funct)}else B=f("newLibrary",mxResources.get("newLibrary")),B.style.display="block",B.style.fontSize="11px",B.style.left="0",B=f("openLibraryFrom",mxResources.get("openLibraryFrom")),B.style.borderLeftStyle="solid",B.style.display="block",B.style.fontSize="11px",B.style.left="50%";c.appendChild(T.sidebar.container);
c.style.overflow="hidden"}function g(T,c){if(EditorUi.windowed){var f=T.editor.graph;f.popupMenuHandler.hideMenu();null==T.sidebarWindow?(c=Math.min(f.container.clientWidth-10,218),f=Math.min(f.container.clientHeight-40,650),T.sidebarWindow=new WrapperWindow(T,mxResources.get("shapes"),10,56,c-6,f-6,function(k){e(T,k)}),T.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){T.sidebarWindow.window.fit()})),T.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90),T.sidebarWindow.window.setVisible(!0),
isLocalStorage&&T.getLocalData("sidebar",function(k){T.sidebar.showEntries(k,null,!0)}),T.restoreLibraries()):T.sidebarWindow.window.setVisible(null!=c?c:!T.sidebarWindow.window.isVisible())}else null==T.sidebarElt&&(T.sidebarElt=T.createSidebarContainer(),e(T,T.sidebarElt),T.sidebarElt.style.border="none",T.sidebarElt.style.width="210px",T.sidebarElt.style.borderRight="1px solid gray"),f=T.diagramContainer.parentNode,null!=T.sidebarElt.parentNode?(T.sidebarElt.parentNode.removeChild(T.sidebarElt),
-f.style.left="0px"):(f.parentNode.appendChild(T.sidebarElt),f.style.left=T.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var m=0;try{m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}catch(T){}Menus.prototype.autoPopup=!1;Editor.checkmarkImage=Graph.createSvgImage(22,18,'<path transform="translate(4 0)" d="M7.181,15.007a1,1,0,0,1-.793-0.391L3.222,10.5A1,1,0,1,1,4.808,9.274L7.132,12.3l6.044-8.86A1,1,0,1,1,14.83,4.569l-6.823,10a1,1,0,0,1-.8.437H7.181Z" fill="#29b6f2"/>').src;
-mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');mxOutline.prototype.sizerImage=null;mxConstants.VERTEX_SELECTION_COLOR="#C0C0C0";mxConstants.EDGE_SELECTION_COLOR="#C0C0C0";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.DEFAULT_VALID_COLOR="#29b6f2";mxConstants.GUIDE_COLOR="#C0C0C0";mxConstants.OUTLINE_COLOR="#29b6f2";
-mxConstants.OUTLINE_HANDLE_FILLCOLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#fff";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowSize="0.6";Graph.prototype.svgShadowBlur="1.2";mxRubberband.prototype.defaultOpacity=50;HoverIcons.prototype.inactiveOpacity=25;Format.prototype.showCloseButton=!1;EditorUi.prototype.closableScratchpad=!1;EditorUi.prototype.toolbarHeight=46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=
-!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var v=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(T){v.apply(this,arguments);null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var p=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){p.apply(this,arguments);this.menus.get("save").setEnabled(null!=
-this.getCurrentFile()||"1"==urlParams.embed)};var B=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(T,c){null!=c.shortcut&&900>m&&!mxClient.IS_IOS?T.firstChild.nextSibling.setAttribute("title",c.shortcut):B.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(T){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=T?T:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||
-null==this.formatWindow&&0<this.formatWidth};var G=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();G.apply(this,arguments)};var S=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(T){S.apply(this,arguments);if(T){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=c&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=c&&this.formatWindow.window.setVisible(!0)}else null!=
-this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};var F=Menus.prototype.init;Menus.prototype.init=function(){F.apply(this,arguments);var T=this.editorUi;EditorUi.enablePlantUml&&!T.isOffline()&&T.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var k=new ParseDialog(T,mxResources.get("plantUml")+"...","plantUml");T.showDialog(k.container,
-620,420,!0,!1);k.init()}));T.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var k=new ParseDialog(T,mxResources.get("mermaid")+"...","mermaid");T.showDialog(k.container,620,420,!0,!1);k.init()}));var c="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),f=function(k,A,z,C){k.addItem(z,null,mxUtils.bind(this,function(){var I=new CreateGraphDialog(T,z,C);T.showDialog(I.container,620,420,!0,!1);I.init()}),A)};this.put("insertLayout",
-new Menu(mxUtils.bind(this,function(k,A){for(var z=0;z<c.length;z++)"-"==c[z]?k.addSeparator(A):f(k,A,mxResources.get(c[z])+"...",c[z])})))};EditorUi.prototype.installFormatToolbar=function(T){var c=this.editor.graph,f=document.createElement("div");f.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,
-function(k,A){0<c.getSelectionCount()?(T.appendChild(f),f.innerHTML="Selected: "+c.getSelectionCount()):null!=f.parentNode&&f.parentNode.removeChild(f)}))};var P=!1;EditorUi.prototype.initFormatWindow=function(){if(!P&&null!=this.formatWindow){P=!0;var T=this.formatWindow.window.toggleMinimized,c=240;this.formatWindow.window.toggleMinimized=function(){T.apply(this,arguments);this.minimized?(c=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=
-parseInt(this.div.style.left)+c-140+"px"):(this.div.style.width=c+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(f){mxEvent.getSource(f)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var R=EditorUi.prototype.init;EditorUi.prototype.init=function(){function T(ja,oa,qa){var ra=C.menus.get(ja),
-ua=O.addMenu(mxResources.get(ja),mxUtils.bind(this,function(){ua.classList.contains("mxDisabled")||ra.funct.apply(this,arguments)}),K);ua.className="geMenuItem";ua.style.display="inline-block";ua.style.boxSizing="border-box";ua.style.top="6px";ua.style.marginRight="6px";ua.style.height="30px";ua.style.paddingTop="6px";ua.style.paddingBottom="6px";ua.style.cursor="pointer";ua.setAttribute("title",mxResources.get(ja));C.menus.menuCreated(ra,ua,"geMenuItem");null!=qa?(ua.style.backgroundImage="url("+
-qa+")",ua.style.backgroundPosition="center center",ua.style.backgroundRepeat="no-repeat",ua.style.backgroundSize="24px 24px",ua.style.width="34px",ua.innerText=""):oa||(ua.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",ua.style.backgroundPosition="right 6px center",ua.style.backgroundRepeat="no-repeat",ua.style.paddingRight="22px");return ua}function c(ja,oa,qa,ra,ua,za){var Ba=document.createElement("a");Ba.className="geMenuItem";Ba.style.display="inline-block";Ba.style.boxSizing=
-"border-box";Ba.style.height="30px";Ba.style.padding="6px";Ba.style.position="relative";Ba.style.verticalAlign="top";Ba.style.top="0px";null!=C.statusContainer?L.insertBefore(Ba,C.statusContainer):L.appendChild(Ba);null!=za?(Ba.style.backgroundImage="url("+za+")",Ba.style.backgroundPosition="center center",Ba.style.backgroundRepeat="no-repeat",Ba.style.backgroundSize="24px 24px",Ba.style.width="34px"):mxUtils.write(Ba,ja);mxEvent.addListener(Ba,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,
-function(Ca){Ca.preventDefault()}));mxEvent.addListener(Ba,"click",function(Ca){"disabled"!=Ba.getAttribute("disabled")&&oa(Ca);mxEvent.consume(Ca)});null==qa&&(Ba.style.marginRight="4px");null!=ra&&Ba.setAttribute("title",ra);null!=ua&&(ja=function(){ua.isEnabled()?(Ba.removeAttribute("disabled"),Ba.style.cursor="pointer"):(Ba.setAttribute("disabled","disabled"),Ba.style.cursor="default")},ua.addListener("stateChanged",ja),I.addListener("enabledChanged",ja),ja());return Ba}function f(ja,oa,qa){qa=
-document.createElement("div");qa.className="geMenuItem";qa.style.display="inline-block";qa.style.verticalAlign="top";qa.style.marginRight="6px";qa.style.padding="0 4px 0 4px";qa.style.height="30px";qa.style.position="relative";qa.style.top="0px";for(var ra=0;ra<ja.length;ra++)null!=ja[ra]&&(ja[ra].style.margin="0px",ja[ra].style.boxShadow="none",qa.appendChild(ja[ra]));null!=oa&&mxUtils.setOpacity(qa,oa);null!=C.statusContainer?L.insertBefore(qa,C.statusContainer):L.appendChild(qa);return qa}function k(){for(var ja=
-L.firstChild;null!=ja;){var oa=ja.nextSibling;"geMenuItem"!=ja.className&&"geItem"!=ja.className||ja.parentNode.removeChild(ja);ja=oa}K=L.firstChild;m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;ja=1E3>m;var qa=null;ja||(qa=T("diagram"));oa=ja?T("diagram",null,Editor.menuImage):null;null!=oa&&(qa=oa);f([qa,c(mxResources.get("shapes"),C.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),C.actions.get("image"),ja?Editor.shapesImage:null),c(mxResources.get("format"),
-C.actions.get("format").funct,null,mxResources.get("format")+" ("+C.actions.get("format").shortcut+")",C.actions.get("image"),ja?Editor.formatImage:null)],ja?60:null);oa=T("insert",!0,ja?ca:null);f([oa,c(mxResources.get("delete"),C.actions.get("delete").funct,null,mxResources.get("delete"),C.actions.get("delete"),ja?Editor.trashImage:null)],ja?60:null);I.isEnabled()||oa.classList.add("mxDisabled");411<=m&&(f([U,J],60),520<=m&&f([V,640<=m?c("",fa.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+
-" +)",fa,Editor.zoomInImage):null,640<=m?c("",Z.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",Z,Editor.zoomOutImage):null],60))}R.apply(this,arguments);var A=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=A&&(A.classList.add("geSimple"),A.classList.add("geMinimal"));A=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);var z=document.createElement("div");z.style.cssText="position:absolute;left:0px;right:0px;top:0px;overflow-y:auto;overflow-x:hidden;";
-z.style.bottom=A?"32px":"0px";this.sidebar=this.createSidebar(z);if(1E3<=m||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])g(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search"));EditorUi.windowed&&1E3<=m&&(b(this,!0),this.formatWindow.window.setVisible(!0));var C=this,I=C.editor.graph;C.toolbar=this.createToolbar(C.createDiv("geToolbar"));
-C.defaultLibraryName=mxResources.get("untitledLibrary");var L=document.createElement("div");L.className="geMenubarContainer";var K=null,O=new Menubar(C,L);C.statusContainer=C.createStatusContainer();C.statusContainer.style.position="relative";C.statusContainer.style.maxWidth="";C.statusContainer.style.cursor="default";var da=C.hideCurrentMenu;C.hideCurrentMenu=function(){da.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var ea=C.descriptorChanged;C.descriptorChanged=function(){ea.apply(this,
-arguments);var ja=C.getCurrentFile();if(null!=ja&&null!=ja.getTitle()){var oa=ja.getMode();"google"==oa?oa="googleDrive":"github"==oa?oa="gitHub":"gitlab"==oa?oa="gitLab":"onedrive"==oa&&(oa="oneDrive");oa=mxResources.get(oa);L.setAttribute("title",ja.getTitle()+(null!=oa?" ("+oa+")":""))}else L.removeAttribute("title")};C.setStatusText(C.editor.getStatus());L.appendChild(C.statusContainer);C.buttonContainer=document.createElement("div");C.buttonContainer.style.cssText="display:flex;justify-content:flex-end;padding-right:10px;gap:6px;white-space:nowrap;background-color:inherit;align-items:center;min-width:0;margin-left:auto;";
-L.appendChild(C.buttonContainer);C.menubarContainer=C.buttonContainer;C.tabContainer=document.createElement("div");C.tabContainer.className="geTabContainer geTabItem";C.tabContainer.style.cssText="position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;visibility:hidden;";A=C.diagramContainer.parentNode;z=document.createElement("div");z.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";C.diagramContainer.style.top="47px";var ca=Editor.addBoxImage;
-if(null!=C.hoverIcons){var W=C.hoverIcons.update;C.hoverIcons.update=function(){I.freehand.isDrawing()||W.apply(this,arguments)}}if(null!=I.freehand){var ma=I.freehand.createStyle;I.freehand.createStyle=function(ja){return ma.apply(this,arguments)+"sketch=0;"}}C.editor.addListener("statusChanged",mxUtils.bind(this,function(){C.setStatusText(C.editor.getStatus())}));C.setStatusText(C.editor.getStatus());var la=C.menus.get("viewZoom");if(null!=la){var Y=function(ja){if(mxEvent.isAltDown(ja))C.hideCurrentMenu(),
-C.actions.get("customZoom").funct(),mxEvent.consume(ja);else if("geMenuItem"==mxEvent.getSource(ja).className||mxEvent.isShiftDown(ja))C.hideCurrentMenu(),C.actions.get("smartFit").funct(),mxEvent.consume(ja)},fa=C.actions.get("zoomIn"),Z=C.actions.get("zoomOut"),l=C.actions.get("resetView"),u=C.actions.get("undo"),H=C.actions.get("redo"),U=c("",u.funct,null,mxResources.get("undo")+" ("+u.shortcut+")",u,Editor.undoImage),J=c("",H.funct,null,mxResources.get("redo")+" ("+H.shortcut+")",H,Editor.redoImage),
-V=c("",Y,!0,mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)",l,Editor.zoomFitImage);L.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";var aa=O.addMenu("100%",la.funct);aa.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)");aa.className="geTabItem";aa.style.height=C.tabContainerHeight+"px";aa.style.position="absolute";aa.style.display="0"!=urlParams.pages?"flex":"none";aa.style.alignItems=
-"center";aa.style.justifyContent="center";aa.style.paddingRight="11px";aa.style.whiteSpace="nowrap";aa.style.overflow="hidden";aa.style.fontSize="11px";aa.style.width="51px";aa.style.right="0px";aa.style.bottom="0px";aa.style.boxSizing="content-box";aa.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";aa.style.backgroundPosition="right 6px top 15px";aa.style.backgroundRepeat="no-repeat";aa.style.backgroundSize="10px";aa.style.zIndex="1";z.appendChild(aa);(function(ja){mxEvent.addListener(ja,
-"click",Y);var oa=mxUtils.bind(this,function(qa,ra,ua){ja.innerText="";mxUtils.write(ja,Math.round(100*C.editor.graph.view.scale*(null!=ua?ua:1))+"%")});C.editor.graph.view.addListener(mxEvent.EVENT_SCALE,oa);C.editor.addListener("resetGraphView",oa);C.editor.addListener("pageSelected",oa);C.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(qa,ra){oa(qa,ra,ra.getProperty("factor"))}))})(aa);var ba=C.setGraphEnabled;C.setGraphEnabled=function(){ba.apply(this,arguments);null!=this.tabContainer&&
-(aa.style.visibility=this.tabContainer.style.visibility,this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}z.appendChild(L);z.appendChild(C.diagramContainer);A.appendChild(z);C.updateTabContainer();!EditorUi.windowed&&1E3<=m&&b(this,!0);z.appendChild(C.tabContainer);k();C.addListener("lockedChanged",k);mxEvent.addListener(window,"resize",function(){k();null!=C.sidebarWindow&&C.sidebarWindow.window.fit();null!=
-C.formatWindow&&C.formatWindow.window.fit();null!=C.actions.outlineWindow&&C.actions.outlineWindow.window.fit();null!=C.actions.layersWindow&&C.actions.layersWindow.window.fit();null!=C.menus.chatWindow&&C.menus.chatWindow.window.fit();null!=C.menus.tagsWindow&&C.menus.tagsWindow.window.fit();null!=C.menus.findWindow&&C.menus.findWindow.window.fit();null!=C.menus.findReplaceWindow&&C.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,v,p,B){this.file=b;this.id=e;this.content=g;this.modifiedDate=m;this.createdDate=v;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,v){e()};DrawioComment.prototype.editComment=function(b,e,g){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DrawioUser=function(b,e,g,m,v){this.id=b;this.email=e;this.displayName=g;this.pictureUrl=m;this.locale=v};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.\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;
+f.style.left="0px"):(f.parentNode.appendChild(T.sidebarElt),f.style.left=T.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var m=0;try{m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}catch(T){}Menus.prototype.autoPopup=!1;mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');
+mxOutline.prototype.sizerImage=null;mxConstants.VERTEX_SELECTION_COLOR="#C0C0C0";mxConstants.EDGE_SELECTION_COLOR="#C0C0C0";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.DEFAULT_VALID_COLOR="#29b6f2";mxConstants.GUIDE_COLOR="#C0C0C0";mxConstants.OUTLINE_COLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#fff";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowSize="0.6";Graph.prototype.svgShadowBlur=
+"1.2";mxRubberband.prototype.defaultOpacity=50;HoverIcons.prototype.inactiveOpacity=25;Format.prototype.showCloseButton=!1;EditorUi.prototype.closableScratchpad=!1;EditorUi.prototype.toolbarHeight=46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var v=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(T){v.apply(this,arguments);
+null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var p=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){p.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var A=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(T,c){null!=c.shortcut&&900>m&&!mxClient.IS_IOS?T.firstChild.nextSibling.setAttribute("title",c.shortcut):
+A.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(T){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=T?T:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};var G=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();G.apply(this,arguments)};var S=EditorUi.prototype.setGraphEnabled;
+EditorUi.prototype.setGraphEnabled=function(T){S.apply(this,arguments);if(T){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=c&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=c&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};
+var F=Menus.prototype.init;Menus.prototype.init=function(){F.apply(this,arguments);var T=this.editorUi;EditorUi.enablePlantUml&&!T.isOffline()&&T.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var k=new ParseDialog(T,mxResources.get("plantUml")+"...","plantUml");T.showDialog(k.container,620,420,!0,!1);k.init()}));T.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var k=new ParseDialog(T,mxResources.get("mermaid")+"...","mermaid");T.showDialog(k.container,
+620,420,!0,!1);k.init()}));var c="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),f=function(k,B,z,C){k.addItem(z,null,mxUtils.bind(this,function(){var I=new CreateGraphDialog(T,z,C);T.showDialog(I.container,620,420,!0,!1);I.init()}),B)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(k,B){for(var z=0;z<c.length;z++)"-"==c[z]?k.addSeparator(B):f(k,B,mxResources.get(c[z])+"...",c[z])})))};EditorUi.prototype.installFormatToolbar=function(T){var c=
+this.editor.graph,f=document.createElement("div");f.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(k,B){0<c.getSelectionCount()?(T.appendChild(f),f.innerHTML="Selected: "+c.getSelectionCount()):null!=f.parentNode&&f.parentNode.removeChild(f)}))};var P=!1;EditorUi.prototype.initFormatWindow=
+function(){if(!P&&null!=this.formatWindow){P=!0;var T=this.formatWindow.window.toggleMinimized,c=240;this.formatWindow.window.toggleMinimized=function(){T.apply(this,arguments);this.minimized?(c=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+c-140+"px"):(this.div.style.width=c+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};
+mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(f){mxEvent.getSource(f)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var R=EditorUi.prototype.init;EditorUi.prototype.init=function(){function T(ja,oa,qa){var ra=C.menus.get(ja),ua=O.addMenu(mxResources.get(ja),mxUtils.bind(this,function(){ua.classList.contains("mxDisabled")||ra.funct.apply(this,arguments)}),K);ua.className="geMenuItem";ua.style.display="inline-block";ua.style.boxSizing=
+"border-box";ua.style.top="6px";ua.style.marginRight="6px";ua.style.height="30px";ua.style.paddingTop="6px";ua.style.paddingBottom="6px";ua.style.cursor="pointer";ua.setAttribute("title",mxResources.get(ja));C.menus.menuCreated(ra,ua,"geMenuItem");null!=qa?(ua.style.backgroundImage="url("+qa+")",ua.style.backgroundPosition="center center",ua.style.backgroundRepeat="no-repeat",ua.style.backgroundSize="24px 24px",ua.style.width="34px",ua.innerText=""):oa||(ua.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+
+")",ua.style.backgroundPosition="right 6px center",ua.style.backgroundRepeat="no-repeat",ua.style.paddingRight="22px");return ua}function c(ja,oa,qa,ra,ua,za){var Ba=document.createElement("a");Ba.className="geMenuItem";Ba.style.display="inline-block";Ba.style.boxSizing="border-box";Ba.style.height="30px";Ba.style.padding="6px";Ba.style.position="relative";Ba.style.verticalAlign="top";Ba.style.top="0px";null!=C.statusContainer?L.insertBefore(Ba,C.statusContainer):L.appendChild(Ba);null!=za?(Ba.style.backgroundImage=
+"url("+za+")",Ba.style.backgroundPosition="center center",Ba.style.backgroundRepeat="no-repeat",Ba.style.backgroundSize="24px 24px",Ba.style.width="34px"):mxUtils.write(Ba,ja);mxEvent.addListener(Ba,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(Ca){Ca.preventDefault()}));mxEvent.addListener(Ba,"click",function(Ca){"disabled"!=Ba.getAttribute("disabled")&&oa(Ca);mxEvent.consume(Ca)});null==qa&&(Ba.style.marginRight="4px");null!=ra&&Ba.setAttribute("title",ra);null!=ua&&(ja=
+function(){ua.isEnabled()?(Ba.removeAttribute("disabled"),Ba.style.cursor="pointer"):(Ba.setAttribute("disabled","disabled"),Ba.style.cursor="default")},ua.addListener("stateChanged",ja),I.addListener("enabledChanged",ja),ja());return Ba}function f(ja,oa,qa){qa=document.createElement("div");qa.className="geMenuItem";qa.style.display="inline-block";qa.style.verticalAlign="top";qa.style.marginRight="6px";qa.style.padding="0 4px 0 4px";qa.style.height="30px";qa.style.position="relative";qa.style.top=
+"0px";for(var ra=0;ra<ja.length;ra++)null!=ja[ra]&&(ja[ra].style.margin="0px",ja[ra].style.boxShadow="none",qa.appendChild(ja[ra]));null!=oa&&mxUtils.setOpacity(qa,oa);null!=C.statusContainer?L.insertBefore(qa,C.statusContainer):L.appendChild(qa);return qa}function k(){for(var ja=L.firstChild;null!=ja;){var oa=ja.nextSibling;"geMenuItem"!=ja.className&&"geItem"!=ja.className||ja.parentNode.removeChild(ja);ja=oa}K=L.firstChild;m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
+ja=1E3>m;var qa=null;ja||(qa=T("diagram"));oa=ja?T("diagram",null,Editor.menuImage):null;null!=oa&&(qa=oa);f([qa,c(mxResources.get("shapes"),C.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),C.actions.get("image"),ja?Editor.shapesImage:null),c(mxResources.get("format"),C.actions.get("format").funct,null,mxResources.get("format")+" ("+C.actions.get("format").shortcut+")",C.actions.get("image"),ja?Editor.formatImage:null)],ja?60:null);oa=T("insert",!0,ja?ca:null);f([oa,c(mxResources.get("delete"),
+C.actions.get("delete").funct,null,mxResources.get("delete"),C.actions.get("delete"),ja?Editor.trashImage:null)],ja?60:null);I.isEnabled()||oa.classList.add("mxDisabled");411<=m&&(f([U,J],60),520<=m&&f([W,640<=m?c("",fa.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",fa,Editor.zoomInImage):null,640<=m?c("",Z.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",Z,Editor.zoomOutImage):null],60))}R.apply(this,arguments);var B=mxUtils.isAncestorNode(document.body,this.container)?
+this.container:this.editor.graph.container;null!=B&&(B.classList.add("geSimple"),B.classList.add("geMinimal"));B=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);var z=document.createElement("div");z.style.cssText="position:absolute;left:0px;right:0px;top:0px;overflow-y:auto;overflow-x:hidden;";z.style.bottom=B?"32px":"0px";this.sidebar=this.createSidebar(z);if(1E3<=m||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])g(this,!0),null!=this.sidebar&&
+null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search"));EditorUi.windowed&&1E3<=m&&(b(this,!0),this.formatWindow.window.setVisible(!0));var C=this,I=C.editor.graph;C.toolbar=this.createToolbar(C.createDiv("geToolbar"));C.defaultLibraryName=mxResources.get("untitledLibrary");var L=document.createElement("div");L.className="geMenubarContainer";var K=null,O=new Menubar(C,L);C.statusContainer=C.createStatusContainer();
+C.statusContainer.style.position="relative";C.statusContainer.style.maxWidth="";C.statusContainer.style.cursor="default";var da=C.hideCurrentMenu;C.hideCurrentMenu=function(){da.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var ea=C.descriptorChanged;C.descriptorChanged=function(){ea.apply(this,arguments);var ja=C.getCurrentFile();if(null!=ja&&null!=ja.getTitle()){var oa=ja.getMode();"google"==oa?oa="googleDrive":"github"==oa?oa="gitHub":"gitlab"==oa?oa="gitLab":"onedrive"==
+oa&&(oa="oneDrive");oa=mxResources.get(oa);L.setAttribute("title",ja.getTitle()+(null!=oa?" ("+oa+")":""))}else L.removeAttribute("title")};C.setStatusText(C.editor.getStatus());L.appendChild(C.statusContainer);C.buttonContainer=document.createElement("div");C.buttonContainer.style.cssText="display:flex;justify-content:flex-end;padding-right:10px;gap:6px;white-space:nowrap;background-color:inherit;align-items:center;min-width:0;margin-left:auto;";L.appendChild(C.buttonContainer);C.menubarContainer=
+C.buttonContainer;C.tabContainer=document.createElement("div");C.tabContainer.className="geTabContainer geTabItem";C.tabContainer.style.cssText="position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;visibility:hidden;";B=C.diagramContainer.parentNode;z=document.createElement("div");z.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";C.diagramContainer.style.top="47px";var ca=Editor.addBoxImage;if(null!=C.hoverIcons){var V=C.hoverIcons.update;
+C.hoverIcons.update=function(){I.freehand.isDrawing()||V.apply(this,arguments)}}if(null!=I.freehand){var ma=I.freehand.createStyle;I.freehand.createStyle=function(ja){return ma.apply(this,arguments)+"sketch=0;"}}C.editor.addListener("statusChanged",mxUtils.bind(this,function(){C.setStatusText(C.editor.getStatus())}));C.setStatusText(C.editor.getStatus());var la=C.menus.get("viewZoom");if(null!=la){var Y=function(ja){if(mxEvent.isAltDown(ja))C.hideCurrentMenu(),C.actions.get("customZoom").funct(),
+mxEvent.consume(ja);else if("geMenuItem"==mxEvent.getSource(ja).className||mxEvent.isShiftDown(ja))C.hideCurrentMenu(),C.actions.get("smartFit").funct(),mxEvent.consume(ja)},fa=C.actions.get("zoomIn"),Z=C.actions.get("zoomOut"),l=C.actions.get("resetView"),u=C.actions.get("undo"),H=C.actions.get("redo"),U=c("",u.funct,null,mxResources.get("undo")+" ("+u.shortcut+")",u,Editor.undoImage),J=c("",H.funct,null,mxResources.get("redo")+" ("+H.shortcut+")",H,Editor.redoImage),W=c("",Y,!0,mxResources.get("fit")+
+" ("+Editor.ctrlKey+"+H)",l,Editor.zoomFitImage);L.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";var aa=O.addMenu("100%",la.funct);aa.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)");aa.className="geTabItem";aa.style.height=C.tabContainerHeight+"px";aa.style.position="absolute";aa.style.display="0"!=urlParams.pages?"flex":"none";aa.style.alignItems="center";aa.style.justifyContent=
+"center";aa.style.paddingRight="11px";aa.style.whiteSpace="nowrap";aa.style.overflow="hidden";aa.style.fontSize="11px";aa.style.width="51px";aa.style.right="0px";aa.style.bottom="0px";aa.style.boxSizing="content-box";aa.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";aa.style.backgroundPosition="right 6px top 15px";aa.style.backgroundRepeat="no-repeat";aa.style.backgroundSize="10px";aa.style.zIndex="1";z.appendChild(aa);(function(ja){mxEvent.addListener(ja,"click",Y);var oa=mxUtils.bind(this,
+function(qa,ra,ua){ja.innerText="";mxUtils.write(ja,Math.round(100*C.editor.graph.view.scale*(null!=ua?ua:1))+"%")});C.editor.graph.view.addListener(mxEvent.EVENT_SCALE,oa);C.editor.addListener("resetGraphView",oa);C.editor.addListener("pageSelected",oa);C.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(qa,ra){oa(qa,ra,ra.getProperty("factor"))}))})(aa);var ba=C.setGraphEnabled;C.setGraphEnabled=function(){ba.apply(this,arguments);null!=this.tabContainer&&(aa.style.visibility=this.tabContainer.style.visibility,
+this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}z.appendChild(L);z.appendChild(C.diagramContainer);B.appendChild(z);C.updateTabContainer();!EditorUi.windowed&&1E3<=m&&b(this,!0);z.appendChild(C.tabContainer);k();C.addListener("lockedChanged",k);mxEvent.addListener(window,"resize",function(){k();null!=C.sidebarWindow&&C.sidebarWindow.window.fit();null!=C.formatWindow&&C.formatWindow.window.fit();null!=C.actions.outlineWindow&&
+C.actions.outlineWindow.window.fit();null!=C.actions.layersWindow&&C.actions.layersWindow.window.fit();null!=C.menus.chatWindow&&C.menus.chatWindow.window.fit();null!=C.menus.tagsWindow&&C.menus.tagsWindow.window.fit();null!=C.menus.findWindow&&C.menus.findWindow.window.fit();null!=C.menus.findReplaceWindow&&C.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,v,p,A){this.file=b;this.id=e;this.content=g;this.modifiedDate=m;this.createdDate=v;this.isResolved=p;this.user=A;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,g,m,v){e()};DrawioComment.prototype.editComment=function(b,e,g){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DrawioUser=function(b,e,g,m,v){this.id=b;this.email=e;this.displayName=g;this.pictureUrl=m;this.locale=v};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.\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=
@@ -4184,16 +4199,16 @@ null!=this.graphConfig["allow-zoom-in"]?this.graphConfig["allow-zoom-in"]:this.a
this.toolbarItems=null!=this.graphConfig.toolbar?this.graphConfig.toolbar.split(" "):[];this.zoomEnabled=0<=mxUtils.indexOf(this.toolbarItems,"zoom");this.layersEnabled=0<=mxUtils.indexOf(this.toolbarItems,"layers");this.tagsEnabled=0<=mxUtils.indexOf(this.toolbarItems,"tags");this.lightboxEnabled=0<=mxUtils.indexOf(this.toolbarItems,"lightbox");this.lightboxClickEnabled=0!=this.graphConfig.lightbox;this.initialOverflow=document.body.style.overflow;this.initialWidth=null!=b?b.style.width:null;this.widthIsEmpty=
null!=this.initialWidth?""==this.initialWidth:!0;this.currentPage=parseInt(this.graphConfig.page)||0;this.responsive=(null!=this.graphConfig.responsive?this.graphConfig.responsive:this.responsive)&&!this.zoomEnabled&&!mxClient.NO_FO&&!mxClient.IS_SF;this.pageId=this.graphConfig.pageId;this.editor=null;var m=this;"inline"==this.graphConfig["toolbar-position"]&&(this.minHeight+=this.toolbarHeight);if(null!=e&&(this.xmlDocument=e.ownerDocument,this.xmlNode=e,this.xml=mxUtils.getXml(e),null!=b)){var v=
mxUtils.bind(this,function(){this.graph=new Graph(b);this.graph.enableFlowAnimation=!0;this.installDarkModeListener();if(this.responsive&&this.graph.dialect==mxConstants.DIALECT_SVG){var G=this.graph.view.getDrawPane().ownerSVGElement;null!=this.graphConfig.border?G.style.padding=this.graphConfig.border+"px":""==b.style.padding&&(G.style.padding="8px");G.style.forcedColorAdjust="none";G.style.boxSizing="border-box";G.style.overflow="visible";this.graph.fit=function(){};this.graph.sizeDidChange=function(){var k=
-this.view.graphBounds,A=this.view.translate;G.setAttribute("viewBox",k.x+A.x-this.panDx+" "+(k.y+A.y-this.panDy)+" "+(k.width+1)+" "+(k.height+1));this.container.style.backgroundColor=G.style.backgroundColor;this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",k))}}this.graphConfig.move&&(this.graph.isMoveCellsEvent=function(k){return!0});this.lightboxClickEnabled&&(b.style.cursor="pointer");this.editor=new Editor(!0,null,null,this.graph);this.editor.editBlankUrl=this.editBlankUrl;this.graph.lightbox=
+this.view.graphBounds,B=this.view.translate;G.setAttribute("viewBox",k.x+B.x-this.panDx+" "+(k.y+B.y-this.panDy)+" "+(k.width+1)+" "+(k.height+1));this.container.style.backgroundColor=G.style.backgroundColor;this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",k))}}this.graphConfig.move&&(this.graph.isMoveCellsEvent=function(k){return!0});this.lightboxClickEnabled&&(b.style.cursor="pointer");this.editor=new Editor(!0,null,null,this.graph);this.editor.editBlankUrl=this.editBlankUrl;this.graph.lightbox=
!0;this.graph.centerZoom=!1;this.graph.autoExtend=!1;this.graph.autoScroll=!1;this.graph.setEnabled(!1);1==this.graphConfig["toolbar-nohide"]&&(this.editor.defaultGraphOverflow="visible");var S=this.editor.extractGraphModel(this.xmlNode,!0);if(null!=S&&S!=e)try{this.xml=mxUtils.getXml(S),this.xmlNode=S,this.xmlDocument=S.ownerDocument}catch(k){}this.graph.getImageFromBundles=function(k){return m.getImageUrl(k)};mxClient.IS_SVG&&this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement,null,!0);
-if("mxfile"==this.xmlNode.nodeName){var F=this.xmlNode.getElementsByTagName("diagram");if(0<F.length){if(null!=this.pageId)for(S=0;S<F.length;S++)if(this.pageId==F[S].getAttribute("id")){this.currentPage=S;break}var P=this.graph.getGlobalVariable;this.graph.getGlobalVariable=function(k){var A=F[m.currentPage];return"page"==k?A.getAttribute("name")||"Page-"+(m.currentPage+1):"pagenumber"==k?m.currentPage+1:"pagecount"==k?F.length:P.apply(this,arguments)}}}this.diagrams=[];var R=null;this.selectPage=
-function(k){this.handlingResize||(this.currentPage=mxUtils.mod(k,this.diagrams.length),this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage])))};this.selectPageById=function(k){k=this.getIndexById(k);var A=0<=k;A&&this.selectPage(k);return A};S=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=R&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),R=this.xmlNode)});var T=this.graph.setBackgroundImage;this.graph.setBackgroundImage=
-function(k){if(null!=k&&Graph.isPageLink(k.src)){var A=k.src,z=A.indexOf(",");0<z&&(z=m.getIndexById(A.substring(z+1)),0<=z&&(k=m.getImageForGraphModel(Editor.parseDiagramNode(m.diagrams[z])),k.originalSrc=A))}T.apply(this,arguments)};var c=this.graph.getGraphBounds;this.graph.getGraphBounds=function(k){var A=c.apply(this,arguments);k=this.backgroundImage;if(null!=k){var z=this.view.translate,C=this.view.scale;A=mxRectangle.fromRectangle(A);A.add(new mxRectangle((z.x+k.x)*C,(z.y+k.y)*C,k.width*C,
-k.height*C))}return A};this.addListener("xmlNodeChanged",S);S();urlParams.page=m.currentPage;S=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),this.graph.view.scale=this.graphConfig.zoom||1,S=this.setLayersVisible(),this.fireEvent(new mxEventObject("graphInitialized")),this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8),this.installBackgroundColorHandler(),GraphViewer.viewerInitialized(this)}finally{this.graph.getModel().endUpdate()}this.responsive||
+if("mxfile"==this.xmlNode.nodeName){var F=this.xmlNode.getElementsByTagName("diagram");if(0<F.length){if(null!=this.pageId)for(S=0;S<F.length;S++)if(this.pageId==F[S].getAttribute("id")){this.currentPage=S;break}var P=this.graph.getGlobalVariable;this.graph.getGlobalVariable=function(k){var B=F[m.currentPage];return"page"==k?B.getAttribute("name")||"Page-"+(m.currentPage+1):"pagenumber"==k?m.currentPage+1:"pagecount"==k?F.length:P.apply(this,arguments)}}}this.diagrams=[];var R=null;this.selectPage=
+function(k){this.handlingResize||(this.currentPage=mxUtils.mod(k,this.diagrams.length),this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage])))};this.selectPageById=function(k){k=this.getIndexById(k);var B=0<=k;B&&this.selectPage(k);return B};S=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=R&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),R=this.xmlNode)});var T=this.graph.setBackgroundImage;this.graph.setBackgroundImage=
+function(k){if(null!=k&&Graph.isPageLink(k.src)){var B=k.src,z=B.indexOf(",");0<z&&(z=m.getIndexById(B.substring(z+1)),0<=z&&(k=m.getImageForGraphModel(Editor.parseDiagramNode(m.diagrams[z])),k.originalSrc=B))}T.apply(this,arguments)};var c=this.graph.getGraphBounds;this.graph.getGraphBounds=function(k){var B=c.apply(this,arguments);k=this.backgroundImage;if(null!=k){var z=this.view.translate,C=this.view.scale;B=mxRectangle.fromRectangle(B);B.add(new mxRectangle((z.x+k.x)*C,(z.y+k.y)*C,k.width*C,
+k.height*C))}return B};this.addListener("xmlNodeChanged",S);S();urlParams.page=m.currentPage;S=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),this.graph.view.scale=this.graphConfig.zoom||1,S=this.setLayersVisible(),this.fireEvent(new mxEventObject("graphInitialized")),this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8),this.installBackgroundColorHandler(),GraphViewer.viewerInitialized(this)}finally{this.graph.getModel().endUpdate()}this.responsive||
(this.graph.panningHandler.isForcePanningEvent=function(k){return!mxEvent.isPopupTrigger(k.getEvent())&&"auto"==this.graph.container.style.overflow},this.graph.panningHandler.useLeftButtonForPanning=!0,this.graph.panningHandler.ignoreCell=!0,this.graph.panningHandler.usePopupTrigger=!1,this.graph.panningHandler.pinchEnabled=!1);this.graph.setPanning(!1);null!=this.graphConfig.toolbar?this.addToolbar():null!=this.graphConfig.title&&this.showTitleAsTooltip&&b.setAttribute("title",this.graphConfig.titleTooltip||
-this.graphConfig.title);this.responsive||this.addSizeHandler();!this.showLayers(this.graph)||this.forceCenter||this.layersEnabled&&!this.autoCrop||this.crop();this.addClickHandler(this.graph);this.graph.setTooltips(0!=this.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};null!=S&&this.setLayersVisible(S);this.graph.customLinkClicked=function(k,A){try{if(Graph.isPageLink(k)){var z=k.indexOf(",");m.selectPageById(k.substring(z+
-1))||alert(mxResources.get("pageNotFound")||"Page not found")}else{var C=this.getGraphBounds();this.handleCustomLink(k,A);C.equals(this.getGraphBounds())||m.crop()}}catch(I){alert(I.message)}return!0};var f=this.graph.foldTreeCell;this.graph.foldTreeCell=mxUtils.bind(this,function(){this.treeCellFolded=!0;return f.apply(this.graph,arguments)});this.fireEvent(new mxEventObject("render"))});g=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(this.checkVisibleState&&
-0==b.offsetWidth&&null==this.getAncestorDetails(b)&&"undefined"!==typeof g){var p=this.getObservableParent(b),B=new g(mxUtils.bind(this,function(G){0<b.offsetWidth&&(B.disconnect(),v())}));B.observe(p,{attributes:!0})}else v()}};
+this.graphConfig.title);this.responsive||this.addSizeHandler();!this.showLayers(this.graph)||this.forceCenter||this.layersEnabled&&!this.autoCrop||this.crop();this.addClickHandler(this.graph);this.graph.setTooltips(0!=this.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};null!=S&&this.setLayersVisible(S);this.graph.customLinkClicked=function(k,B){try{if(Graph.isPageLink(k)){var z=k.indexOf(",");m.selectPageById(k.substring(z+
+1))||alert(mxResources.get("pageNotFound")||"Page not found")}else{var C=this.getGraphBounds();this.handleCustomLink(k,B);C.equals(this.getGraphBounds())||m.crop()}}catch(I){alert(I.message)}return!0};var f=this.graph.foldTreeCell;this.graph.foldTreeCell=mxUtils.bind(this,function(){this.treeCellFolded=!0;return f.apply(this.graph,arguments)});this.fireEvent(new mxEventObject("render"))});g=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(this.checkVisibleState&&
+0==b.offsetWidth&&null==this.getAncestorDetails(b)&&"undefined"!==typeof g){var p=this.getObservableParent(b),A=new g(mxUtils.bind(this,function(G){0<b.offsetWidth&&(A.disconnect(),v())}));A.observe(p,{attributes:!0})}else v()}};
GraphViewer.prototype.installBackgroundColorHandler=function(){var b=this.graph;if(null!=b){null!=GraphViewer.shapeBackgroundColor&&(b.shapeBackgroundColor=GraphViewer.shapeBackgroundColor);b.defaultPageBackgroundColor="transparent";b.diagramBackgroundColor="transparent";b.transparentBackground=!1;var e=b.background,g=mxUtils.bind(this,function(m){"none"==b.getAdaptiveColors()&&null==e&&(this.isDarkMode()?b.background="#ffffff":b.background=null,m&&b.view.validateBackground())});this.addListener("graphChanged",
function(){e=b.background;g(!0)});this.addListener("darkModeChanged",function(){g(!0)});g(!1)}};GraphViewer.prototype.installDarkModeListener=function(){null!=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(){this.darkModeChanged();this.fireEvent(new mxEventObject("darkModeChanged"))}));this.darkModeChanged()};
GraphViewer.prototype.darkModeChanged=function(){if(null!=this.graph){var b=this.graph.container,e=this.isDarkMode();e?b.classList.add("geDarkMode"):b.classList.remove("geDarkMode");b.style.colorScheme=e?"dark":"light"}};GraphViewer.prototype.getAncestorDetails=function(b){for(;null!=b;){if("DETAILS"==b.nodeName)return b;b=b.parentNode}return null};
@@ -4210,21 +4225,21 @@ this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWi
(this.allowZoomIn?null:1),this.graph.fit(null,null,null,null,null,!0),(this.center||0==this.graphConfig.resize&&""!=b.style.height)&&this.graph.center(),this.graph.maxFitScale=null,0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,this.graph.getGraphBounds().height+2*this.graph.border+1)),this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale},v=S,window.setTimeout(mxUtils.bind(this,function(){this.handlingResize=
!1}),0))});GraphViewer.useResizeSensor&&(9>=document.documentMode?(mxEvent.addListener(window,"resize",m),this.graph.addListener("size",m)):new ResizeSensor(this.graph.container,m));if(this.graphConfig.resize||(this.zoomEnabled||!this.autoFit)&&0!=this.graphConfig.resize)this.graph.minimumContainerSize=new mxRectangle(0,0,this.minWidth,this.minHeight),this.graph.resizeContainer=!0;else if(!this.widthIsEmpty||""!=b.style.height&&this.autoFit||this.updateContainerWidth(b,e.width+2*this.graph.border),
0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,e.height+2*this.graph.border+1)),!this.zoomEnabled&&this.autoFit){var p=v=null;m=mxUtils.bind(this,function(){window.clearTimeout(p);this.handlingResize||(p=window.setTimeout(mxUtils.bind(this,this.fitGraph),100))});GraphViewer.useResizeSensor&&(9>=document.documentMode?mxEvent.addListener(window,"resize",m):new ResizeSensor(this.graph.container,m))}else 9>=document.documentMode||this.graph.addListener("size",
-m);var B=mxUtils.bind(this,function(G){var S=b.style.minWidth;this.widthIsEmpty&&(b.style.minWidth="100%");var F=null!=this.graphConfig["max-height"]?this.graphConfig["max-height"]:""!=b.style.height&&this.autoFit?b.offsetHeight:void 0;0<b.offsetWidth&&null==G&&this.allowZoomOut&&(this.allowZoomIn||e.width+2*this.graph.border>b.offsetWidth||e.height+2*this.graph.border>F)?(G=null,null!=F&&e.height+2*this.graph.border>F-2&&(G=(F-2*this.graph.border-2)/e.height),this.fitGraph(G)):this.widthIsEmpty||
-null!=G||0!=this.graphConfig.resize||""==b.style.height?(G=null!=G?G:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-e.x/this.graph.view.scale)+G.x,Math.floor(this.graph.border-e.y/this.graph.view.scale)+G.y),v=b.offsetWidth):this.graph.center((!this.widthIsEmpty||e.width<this.minWidth)&&1!=this.graphConfig.resize);b.style.minWidth=S});8==document.documentMode?window.setTimeout(B,0):B();this.positionGraph=function(G){e=this.graph.getGraphBounds();v=null;B(G)}};
+m);var A=mxUtils.bind(this,function(G){var S=b.style.minWidth;this.widthIsEmpty&&(b.style.minWidth="100%");var F=null!=this.graphConfig["max-height"]?this.graphConfig["max-height"]:""!=b.style.height&&this.autoFit?b.offsetHeight:void 0;0<b.offsetWidth&&null==G&&this.allowZoomOut&&(this.allowZoomIn||e.width+2*this.graph.border>b.offsetWidth||e.height+2*this.graph.border>F)?(G=null,null!=F&&e.height+2*this.graph.border>F-2&&(G=(F-2*this.graph.border-2)/e.height),this.fitGraph(G)):this.widthIsEmpty||
+null!=G||0!=this.graphConfig.resize||""==b.style.height?(G=null!=G?G:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-e.x/this.graph.view.scale)+G.x,Math.floor(this.graph.border-e.y/this.graph.view.scale)+G.y),v=b.offsetWidth):this.graph.center((!this.widthIsEmpty||e.width<this.minWidth)&&1!=this.graphConfig.resize);b.style.minWidth=S});8==document.documentMode?window.setTimeout(A,0):A();this.positionGraph=function(G){e=this.graph.getGraphBounds();v=null;A(G)}};
GraphViewer.prototype.crop=function(){var b=this.graph,e=b.getGraphBounds(),g=b.border,m=b.view.scale;b.view.setTranslate(null!=e.x?Math.floor(b.view.translate.x-e.x/m+g):g,null!=e.y?Math.floor(b.view.translate.y-e.y/m+g):g)};GraphViewer.prototype.updateContainerWidth=function(b,e){b.style.width=e+"px"};GraphViewer.prototype.updateContainerHeight=function(b,e){if(this.forceCenter||this.zoomEnabled||!this.autoFit||"BackCompat"==document.compatMode||8==document.documentMode)b.style.height=e+"px"};
-GraphViewer.prototype.showLayers=function(b,e){var g=this.graphConfig.layers;g=null!=g&&0<g.length?g.split(" "):[];var m=this.graphConfig.layerIds,v=null!=m&&0<m.length,p=!1;if(0<g.length||v||null!=e){e=null!=e?e.getModel():null;b=b.getModel();b.beginUpdate();try{var B=b.getChildCount(b.root);if(null==e){e=!1;p={};if(v)for(var G=0;G<m.length;G++){var S=b.getCell(m[G]);null!=S&&(e=!0,p[S.id]=!0)}else for(G=0;G<g.length;G++)S=b.getChildAt(b.root,parseInt(g[G])),null!=S&&(e=!0,p[S.id]=!0);for(G=0;e&&
-G<B;G++)S=b.getChildAt(b.root,G),b.setVisible(S,p[S.id]||!1)}else for(G=0;G<B;G++)b.setVisible(b.getChildAt(b.root,G),e.isVisible(e.getChildAt(e.root,G)))}finally{b.endUpdate()}p=!0}return p};
+GraphViewer.prototype.showLayers=function(b,e){var g=this.graphConfig.layers;g=null!=g&&0<g.length?g.split(" "):[];var m=this.graphConfig.layerIds,v=null!=m&&0<m.length,p=!1;if(0<g.length||v||null!=e){e=null!=e?e.getModel():null;b=b.getModel();b.beginUpdate();try{var A=b.getChildCount(b.root);if(null==e){e=!1;p={};if(v)for(var G=0;G<m.length;G++){var S=b.getCell(m[G]);null!=S&&(e=!0,p[S.id]=!0)}else for(G=0;G<g.length;G++)S=b.getChildAt(b.root,parseInt(g[G])),null!=S&&(e=!0,p[S.id]=!0);for(G=0;e&&
+G<A;G++)S=b.getChildAt(b.root,G),b.setVisible(S,p[S.id]||!1)}else for(G=0;G<A;G++)b.setVisible(b.getChildAt(b.root,G),e.isVisible(e.getChildAt(e.root,G)))}finally{b.endUpdate()}p=!0}return p};
GraphViewer.prototype.addToolbar=function(){var b=this.graph.container;"bottom"==this.graphConfig["toolbar-position"]?b.style.marginBottom=this.toolbarHeight+"px":"inline"!=this.graphConfig["toolbar-position"]&&(b.style.marginTop=this.toolbarHeight+"px");var e=b.ownerDocument.createElement("div");e.style.display="flex";e.style.alignItems="center";e.style.position="absolute";e.style.overflow="hidden";e.style.boxSizing="border-box";e.style.whiteSpace="nowrap";e.style.textAlign="left";e.style.zIndex=
this.toolbarZIndex;e.style.backgroundColor="light-dark(#eeeeee, "+GraphViewer.darkBackgroundColor+")";e.style.height=this.toolbarHeight+"px";var g=mxUtils.bind(this,function(){this.isDarkMode()?(e.classList.add("geDarkMode"),e.style.colorScheme="dark"):(e.classList.remove("geDarkMode"),e.style.colorScheme="light")});this.addListener("darkModeChanged",g);this.toolbar=e;g();if("inline"==this.graphConfig["toolbar-position"]){mxUtils.setPrefixedStyle(e.style,"transition","opacity 100ms ease-in-out");
-mxUtils.setOpacity(e,30);var m=null,v=null,p=mxUtils.bind(this,function(ea){null!=m&&(window.clearTimeout(m),fadeThead=null);null!=v&&(window.clearTimeout(v),fadeThead2=null);m=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(e,0);m=null;v=window.setTimeout(mxUtils.bind(this,function(){e.style.display="none";v=null}),100)}),ea||200)}),B=mxUtils.bind(this,function(ea){null!=m&&(window.clearTimeout(m),fadeThead=null);null!=v&&(window.clearTimeout(v),fadeThead2=null);e.style.display=
-"";mxUtils.setOpacity(e,ea||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(ea){mxEvent.isTouchEvent(ea)||(B(30),p())}));mxEvent.addListener(e,mxClient.IS_POINTER?"pointermove":"mousemove",function(ea){mxEvent.consume(ea)});mxEvent.addListener(e,"mouseenter",mxUtils.bind(this,function(ea){B(100)}));mxEvent.addListener(e,"mousemove",mxUtils.bind(this,function(ea){B(100);mxEvent.consume(ea)}));mxEvent.addListener(e,"mouseleave",
-mxUtils.bind(this,function(ea){mxEvent.isTouchEvent(ea)||B(30)}));var G=this.graph,S=G.getTolerance();G.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(ea,ca){this.startX=ca.getGraphX();this.startY=ca.getGraphY();this.scrollLeft=G.container.scrollLeft;this.scrollTop=G.container.scrollTop},mouseMove:function(ea,ca){},mouseUp:function(ea,ca){mxEvent.isTouchEvent(ca.getEvent())&&Math.abs(this.scrollLeft-G.container.scrollLeft)<S&&Math.abs(this.scrollTop-G.container.scrollTop)<
-S&&Math.abs(this.startX-ca.getGraphX())<S&&Math.abs(this.startY-ca.getGraphY())<S&&(0<parseFloat(e.style.opacity||0)?p():B(30))}})}g=this.toolbarItems;for(var F=0,P=mxUtils.bind(this,function(ea,ca,W,ma){ea=this.createToolbarButton(ea,ca,W,ma);e.appendChild(ea);F++;return ea}),R=this.graph.getModel(),T=null,c=null,f=null,k=null,A=0;A<g.length;A++){var z=g[A];if("pages"==z){k=b.ownerDocument.createElement("div");k.style.display="inline-flex";k.style.position="relative";k.style.alignItems="center";
+mxUtils.setOpacity(e,30);var m=null,v=null,p=mxUtils.bind(this,function(ea){null!=m&&(window.clearTimeout(m),fadeThead=null);null!=v&&(window.clearTimeout(v),fadeThead2=null);m=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(e,0);m=null;v=window.setTimeout(mxUtils.bind(this,function(){e.style.display="none";v=null}),100)}),ea||200)}),A=mxUtils.bind(this,function(ea){null!=m&&(window.clearTimeout(m),fadeThead=null);null!=v&&(window.clearTimeout(v),fadeThead2=null);e.style.display=
+"";mxUtils.setOpacity(e,ea||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(ea){mxEvent.isTouchEvent(ea)||(A(30),p())}));mxEvent.addListener(e,mxClient.IS_POINTER?"pointermove":"mousemove",function(ea){mxEvent.consume(ea)});mxEvent.addListener(e,"mouseenter",mxUtils.bind(this,function(ea){A(100)}));mxEvent.addListener(e,"mousemove",mxUtils.bind(this,function(ea){A(100);mxEvent.consume(ea)}));mxEvent.addListener(e,"mouseleave",
+mxUtils.bind(this,function(ea){mxEvent.isTouchEvent(ea)||A(30)}));var G=this.graph,S=G.getTolerance();G.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(ea,ca){this.startX=ca.getGraphX();this.startY=ca.getGraphY();this.scrollLeft=G.container.scrollLeft;this.scrollTop=G.container.scrollTop},mouseMove:function(ea,ca){},mouseUp:function(ea,ca){mxEvent.isTouchEvent(ca.getEvent())&&Math.abs(this.scrollLeft-G.container.scrollLeft)<S&&Math.abs(this.scrollTop-G.container.scrollTop)<
+S&&Math.abs(this.startX-ca.getGraphX())<S&&Math.abs(this.startY-ca.getGraphY())<S&&(0<parseFloat(e.style.opacity||0)?p():A(30))}})}g=this.toolbarItems;for(var F=0,P=mxUtils.bind(this,function(ea,ca,V,ma){ea=this.createToolbarButton(ea,ca,V,ma);e.appendChild(ea);F++;return ea}),R=this.graph.getModel(),T=null,c=null,f=null,k=null,B=0;B<g.length;B++){var z=g[B];if("pages"==z){k=b.ownerDocument.createElement("div");k.style.display="inline-flex";k.style.position="relative";k.style.alignItems="center";
k.style.padding="4px";k.style.fontFamily=GraphViewer.cssFontFamily;k.style.fontSize="12px";k.style.cursor="default";k.style.color="light-dark(#000000, #ffffff)";mxUtils.setOpacity(k,70);var C=P(mxUtils.bind(this,function(){this.selectPage(this.currentPage-1)}),Editor.previousImage,mxResources.get("previousPage")||"Previous Page");C.style.borderRightStyle="none";C.style.paddingLeft="0px";C.style.paddingRight="0px";e.appendChild(k);var I=P(mxUtils.bind(this,function(){this.selectPage(this.currentPage+
1)}),Editor.nextImage,mxResources.get("nextPage")||"Next Page");I.style.paddingLeft="0px";I.style.paddingRight="0px";z=mxUtils.bind(this,function(){k.innerText="";mxUtils.write(k,this.currentPage+1+" / "+this.diagrams.length);k.style.display=1<this.diagrams.length?"inline-flex":"none";C.style.display=k.style.display;I.style.display=k.style.display});this.addListener("graphChanged",z);z()}else if("zoom"==z)this.zoomEnabled&&(P(mxUtils.bind(this,function(){this.graph.zoomOut()}),Editor.zoomOutImage,
mxResources.get("zoomOut")||"Zoom Out"),P(mxUtils.bind(this,function(){this.graph.zoomIn()}),Editor.zoomInImage,mxResources.get("zoomIn")||"Zoom In"),P(mxUtils.bind(this,function(){this.graph.view.scaleAndTranslate(this.graph.initialViewState.scale,this.graph.initialViewState.translate.x,this.graph.initialViewState.translate.y)}),Editor.zoomFitImage,mxResources.get("fit")||"Fit"));else if("layers"==z){if(this.layersEnabled){var L=P(mxUtils.bind(this,function(ea){if(null!=T)T.parentNode.removeChild(T),
-T=null;else{T=this.graph.createLayersDialog(mxUtils.bind(this,function(){if(this.autoCrop)this.crop();else if(this.autoOrigin){var W=this.graph.getGraphBounds(),ma=this.graph.view;0>W.x||0>W.y?(this.crop(),this.graph.originalViewState=this.graph.initialViewState,this.graph.initialViewState={translate:ma.translate.clone(),scale:ma.scale}):null!=this.graph.originalViewState&&0<W.x/ma.scale+this.graph.originalViewState.translate.x-ma.translate.x&&0<W.y/ma.scale+this.graph.originalViewState.translate.y-
+T=null;else{T=this.graph.createLayersDialog(mxUtils.bind(this,function(){if(this.autoCrop)this.crop();else if(this.autoOrigin){var V=this.graph.getGraphBounds(),ma=this.graph.view;0>V.x||0>V.y?(this.crop(),this.graph.originalViewState=this.graph.initialViewState,this.graph.initialViewState={translate:ma.translate.clone(),scale:ma.scale}):null!=this.graph.originalViewState&&0<V.x/ma.scale+this.graph.originalViewState.translate.x-ma.translate.x&&0<V.y/ma.scale+this.graph.originalViewState.translate.y-
ma.translate.y&&(ma.setTranslate(this.graph.originalViewState.translate.x,this.graph.originalViewState.translate.y),this.graph.originalViewState=null,this.graph.initialViewState={translate:ma.translate.clone(),scale:ma.scale})}}));mxEvent.addListener(T,"mouseleave",function(){T.parentNode.removeChild(T);T=null});ea=L.getBoundingClientRect();T.style.width="140px";T.style.padding="2px 0px 2px 0px";T.style.border="1px solid #d0d0d0";T.style.backgroundColor="#eee";T.style.fontFamily=GraphViewer.cssFontFamily;
T.style.fontSize="11px";T.style.overflowY="auto";T.style.maxHeight=this.graph.container.clientHeight-this.toolbarHeight-10+"px";T.style.zIndex=this.toolbarZIndex+1;T.style.color="#000";mxUtils.setOpacity(T,85);var ca=mxUtils.getDocumentScrollOrigin(document);T.style.left=ca.x+ea.left-1+"px";T.style.top=ca.y+ea.bottom-2+"px";this.isDarkMode()&&(T.style.filter="invert(93%) hue-rotate(180deg)");document.body.appendChild(T)}}),Editor.layersImage,mxResources.get("layers")||"Layers");R.addListener(mxEvent.CHANGE,
function(){L.style.display=1<R.getChildCount(R.root)?"inline-flex":"none"});L.style.display=1<R.getChildCount(R.root)?"inline-flex":"none"}}else if("tags"==z){if(this.tagsEnabled){var K=P(mxUtils.bind(this,function(ea){null==c&&(c=this.graph.createTagsDialog(mxUtils.bind(this,function(){return!0})),c.div.getElementsByTagName("div")[0].style.position="",c.div.style.maxHeight="160px",c.div.style.maxWidth="120px",c.div.style.padding="2px",c.div.style.overflow="auto",c.div.style.height="auto",c.div.style.position=
@@ -4233,8 +4248,8 @@ ea=K.getBoundingClientRect();var ca=mxUtils.getDocumentScrollOrigin(document);f.
"none"}}else"lightbox"==z?this.lightboxEnabled&&P(mxUtils.bind(this,function(){try{this.showLightbox()}catch(ea){alert(ea.message)}}),Editor.fullscreenImage,mxResources.get("fullscreen")||"Fullscreen"):null!=this.graphConfig["toolbar-buttons"]&&(z=this.graphConfig["toolbar-buttons"][z],null!=z&&(z.elem=P(null==z.enabled||z.enabled?z.handler:function(){},z.image,z.title,z.enabled)))}null!=this.graph.minimumContainerSize&&(this.graph.minimumContainerSize.width=34*F);null!=this.graphConfig.title&&(g=
b.ownerDocument.createElement("div"),g.style.display="inline-flex",g.style.position="relative",g.style.alignItems="center",g.style.padding="6px",g.style.fontFamily=GraphViewer.cssFontFamily,g.style.fontSize="12px",g.style.cursor="default",g.style.color="light-dark(#000000, #ffffff)",g.setAttribute("title",this.graphConfig.titleTooltip||this.graphConfig.title),mxUtils.write(g,this.graphConfig.title),mxUtils.setOpacity(g,70),e.appendChild(g),this.filename=g);this.minToolbarWidth=34*F;var O=b.style.border,
da=mxUtils.bind(this,function(){e.style.width="inline"==this.graphConfig["toolbar-position"]?"auto":Math.max(this.minToolbarWidth,b.offsetWidth)+"px";e.style.border="1px solid #d0d0d0";if(1!=this.graphConfig["toolbar-nohide"]){var ea=b.getBoundingClientRect(),ca=mxUtils.getScrollOrigin(document.body);ca="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-ca.x,top:-ca.y};ea={left:ea.left-ca.left,top:ea.top-ca.top,bottom:ea.bottom-ca.top,right:ea.right-ca.left};e.style.left=
-ea.left+"px";"bottom"==this.graphConfig["toolbar-position"]?e.style.top=ea.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(e.style.marginTop=-this.toolbarHeight+"px",e.style.top=ea.top+1+"px"):e.style.top=ea.top+"px";"1px solid transparent"==O&&(b.style.border="1px solid #d0d0d0");document.body.appendChild(e);var W=mxUtils.bind(this,function(){null!=e.parentNode&&e.parentNode.removeChild(e);null!=f&&(f.parentNode.removeChild(f),f=null);null!=T&&(T.parentNode.removeChild(T),T=null);b.style.border=
-O});mxEvent.addListener(document,"mousemove",function(ma){for(ma=mxEvent.getSource(ma);null!=ma;){if(ma==b||ma==e||ma==T||ma==f)return;ma=ma.parentNode}W()});mxEvent.addListener(document.body,"mouseleave",function(ma){W()})}else e.style.top=-this.toolbarHeight+"px",b.appendChild(e)});1!=this.graphConfig["toolbar-nohide"]?mxEvent.addListener(b,"mouseenter",da):da();this.responsive&&"undefined"!==typeof ResizeObserver&&(new ResizeObserver(function(){null!=e.parentNode&&da()})).observe(b)};
+ea.left+"px";"bottom"==this.graphConfig["toolbar-position"]?e.style.top=ea.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(e.style.marginTop=-this.toolbarHeight+"px",e.style.top=ea.top+1+"px"):e.style.top=ea.top+"px";"1px solid transparent"==O&&(b.style.border="1px solid #d0d0d0");document.body.appendChild(e);var V=mxUtils.bind(this,function(){null!=e.parentNode&&e.parentNode.removeChild(e);null!=f&&(f.parentNode.removeChild(f),f=null);null!=T&&(T.parentNode.removeChild(T),T=null);b.style.border=
+O});mxEvent.addListener(document,"mousemove",function(ma){for(ma=mxEvent.getSource(ma);null!=ma;){if(ma==b||ma==e||ma==T||ma==f)return;ma=ma.parentNode}V()});mxEvent.addListener(document.body,"mouseleave",function(ma){V()})}else e.style.top=-this.toolbarHeight+"px",b.appendChild(e)});1!=this.graphConfig["toolbar-nohide"]?mxEvent.addListener(b,"mouseenter",da):da();this.responsive&&"undefined"!==typeof ResizeObserver&&(new ResizeObserver(function(){null!=e.parentNode&&da()})).observe(b)};
GraphViewer.prototype.createToolbarButton=function(b,e,g,m){var v=document.createElement("div");v.style.borderRight="1px solid #d0d0d0";v.style.display="inline-flex";v.style.alignItems="center";v.style.padding="6px";mxEvent.addListener(v,"click",b);null!=g&&v.setAttribute("title",g);b=document.createElement("img");b.setAttribute("border","0");b.setAttribute("src",e);b.style.width="18px";b.className="geAdaptiveAsset";null==m||m?(mxEvent.addListener(v,"mouseenter",function(){v.style.backgroundColor=
"light-dark(#dddddd,#333333)"}),mxEvent.addListener(v,"mouseleave",function(){v.style.backgroundColor="transparent"}),mxUtils.setOpacity(b,60),v.style.cursor="pointer"):mxUtils.setOpacity(v,30);v.appendChild(b);return v};
GraphViewer.prototype.disableButton=function(b,e){var g=this.graphConfig["toolbar-buttons"]?this.graphConfig["toolbar-buttons"][b]:null;null!=g&&(mxUtils.setOpacity(g.elem,30),mxEvent.removeListener(g.elem,"click",g.handler),mxEvent.addListener(g.elem,"mouseenter",function(){g.elem.style.backgroundColor="#eee"}),e&&g.elem.setAttribute("title",e))};
@@ -4246,8 +4261,8 @@ this.graphConfig.highlight&&(g.highlight=this.graphConfig.highlight.substring(1)
GraphViewer.prototype.showLocalLightbox=function(b){var e=document.createElement("div");e.style.position="fixed";e.style.top="0";e.style.left="0";e.style.bottom="0";e.style.right="0";e.style.zIndex=this.lightboxZIndex;e.style.backgroundColor="#000000";mxUtils.setOpacity(e,70);document.body.appendChild(e);var g=document.createElement("img");g.setAttribute("border","0");g.setAttribute("src",Editor.closeBlackImage);g.style.position="fixed";g.style.top="32px";g.style.right="32px";g.style.cursor="pointer";
g.className="geAdaptiveAsset";var m=mxUtils.bind(this,function(){p.setDarkMode(this.isDarkMode())});mxEvent.addListener(g,"click",mxUtils.bind(this,function(){this.removeListener("darkModeChanged",m);p.destroy()}));urlParams.pages="1";urlParams.page=this.currentPage;urlParams["page-id"]=this.graphConfig.pageId;urlParams["layer-ids"]=null!=this.graphConfig.layerIds&&0<this.graphConfig.layerIds.length?this.graphConfig.layerIds.join(" "):null;urlParams.nav=0!=this.graphConfig.nav?"1":"0";urlParams.layers=
this.layersEnabled?"1":"0";urlParams.dark=this.isDarkMode()?"1":"0";this.tagsEnabled&&(urlParams.tags="{}");if(null!=b)try{var v=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));v.noCloseBtn=!0;urlParams["toolbar-config"]=encodeURIComponent(JSON.stringify(v))}catch(c){}if(null==document.documentMode||10<=document.documentMode)Editor.prototype.editButtonLink=this.graphConfig.edit,Editor.prototype.editButtonFunc=this.graphConfig.editFunc;EditorUi.prototype.updateActionStates=function(){};
-EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=function(){};v=Graph.prototype.shadowId;Graph.prototype.shadowId="lightboxDropShadow";var p=new EditorUi(new Editor(!0),document.createElement("div"),!0);this.addListener("darkModeChanged",m);p.editor.editBlankUrl=this.editBlankUrl;p.editor.graph.shadowId="lightboxDropShadow";Graph.prototype.shadowId=v;p.refresh=function(){};var B=mxUtils.bind(this,function(c){27==c.keyCode&&p.destroy()}),G=this.initialOverflow,
-S=p.destroy;p.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",B),document.body.removeChild(e),document.body.removeChild(g),document.body.style.overflow=G,GraphViewer.resizeSensorEnabled=!0,S.apply(this,arguments))};var F=p.editor.graph,P=F.container;P.style.overflow="hidden";this.lightboxChrome&&null==b?(P.style.border="1px solid #c0c0c0",P.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",B)):(e.style.display="none",g.style.display=
+EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=function(){};v=Graph.prototype.shadowId;Graph.prototype.shadowId="lightboxDropShadow";var p=new EditorUi(new Editor(!0),document.createElement("div"),!0);this.addListener("darkModeChanged",m);p.editor.editBlankUrl=this.editBlankUrl;p.editor.graph.shadowId="lightboxDropShadow";Graph.prototype.shadowId=v;p.refresh=function(){};var A=mxUtils.bind(this,function(c){27==c.keyCode&&p.destroy()}),G=this.initialOverflow,
+S=p.destroy;p.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",A),document.body.removeChild(e),document.body.removeChild(g),document.body.style.overflow=G,GraphViewer.resizeSensorEnabled=!0,S.apply(this,arguments))};var F=p.editor.graph,P=F.container;P.style.overflow="hidden";this.lightboxChrome&&null==b?(P.style.border="1px solid #c0c0c0",P.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",A)):(e.style.display="none",g.style.display=
"none");var R=this;F.getImageFromBundles=function(c){return R.getImageUrl(c)};var T=p.createTemporaryGraph;p.createTemporaryGraph=function(){var c=T.apply(this,arguments);c.getImageFromBundles=function(f){return R.getImageUrl(f)};return c};this.graphConfig.move&&(F.isMoveCellsEvent=function(c){return!0});mxUtils.setPrefixedStyle(P.style,"border-radius","4px");P.style.position="fixed";GraphViewer.resizeSensorEnabled=!1;document.body.style.overflow="hidden";this.addClickHandler(F,p);window.setTimeout(mxUtils.bind(this,
function(){try{mxEvent.addListener(e,"click",function(){p.destroy()}),P.style.outline="none",P.style.zIndex=this.lightboxZIndex,g.style.zIndex=this.lightboxZIndex,null!=b?(b.innerHTML="",b.appendChild(P)):(document.body.appendChild(P),document.body.appendChild(g)),p.setFileData(this.xml),mxUtils.setPrefixedStyle(P.style,"transform","rotateY(0deg)"),p.chromelessToolbar.style.bottom="60px",p.chromelessToolbar.style.zIndex=this.lightboxZIndex,(b||document.body).appendChild(p.chromelessToolbar),p.getEditBlankXml=
mxUtils.bind(this,function(){return this.xml}),this.showLayers(F,this.graph),p.lightboxFit(),p.chromelessResize()}catch(c){p.handleError(c,null,function(){p.destroy()})}}),0);return p};Dialog.prototype.getDocumentSize=function(){return new mxRectangle(0,0,Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0))};
@@ -4258,14 +4273,14 @@ GraphViewer.createViewerForElement=function(b,e){var g=b.getAttribute("data-mxgr
GraphViewer.blockedAncestorFrames=function(){try{if(window.location.ancestorOrigins&&window.location.hostname&&window.location.ancestorOrigins.length&&0<window.location.ancestorOrigins.length){var b=window.location.hostname;b&&1<b.length&&"/"==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1));for(var e="",g=0;g<window.location.ancestorOrigins.length;g++)if(e+=" -> "+window.location.ancestorOrigins[g],e.endsWith("dan6v7pm1f1a1.cloudfront.net")||e.endsWith("confluence-cloud-excalidraw-ll3likebca-uc.a.run.app"))return!0;
(b.endsWith("ac.draw.io")||b.endsWith("aj.draw.io"))&&1==window.location.ancestorOrigins.length&&window.location.ancestorOrigins[0]&&window.location.ancestorOrigins[0].endsWith(".atlassian.net")}}catch(m){}return!1};GraphViewer.darkBackgroundColor=Editor.darkColor;GraphViewer.cssFontFamily=Editor.defaultHtmlFont;GraphViewer.shapeBackgroundColor=null;GraphViewer.viewerInitialized=function(b){};
GraphViewer.initCss=function(){try{null==GraphViewer.styleElement&&(GraphViewer.styleElement=document.createElement("style"),GraphViewer.styleElement.setAttribute("type","text/css"),GraphViewer.styleElement.innerHTML=GraphViewer.getCss(),GraphViewer.blockedAncestorFrames()||document.getElementsByTagName("head")[0].appendChild(GraphViewer.styleElement))}catch(b){}};
-GraphViewer.getCss=function(){return[".geDarkMode img, .geDarkMode .geSprite {\n\tfilter: invert(1);\n}\ndiv.mxTooltip {\n box-shadow: 3px 3px 12px light-dark(#c0c0c0, transparent);"," background: light-dark(#ffffcc, "+GraphViewer.darkBackgroundColor+");"," border-style: solid;\n border-width: 1px;\n border-color: black;"," font-family: "+GraphViewer.cssFontFamily+";"," font-size: 8pt;\n position: absolute;\n cursor: default;\n padding: 4px;\n color: black;\n}\ntd.mxPopupMenuIcon div {\n width: 16px;\n height: 16px;\n}\ndiv.mxPopupMenu {\n box-shadow: 2px 2px 3px light-dark(#d5d5d5, transparent);\n background: white;\n position: absolute;\n border: 3px solid #e7e7e7;\n padding: 3px;\n}\ntable.mxPopupMenu {\n border-collapse: collapse;\n margin: 0px;\n}\ntd.mxPopupMenuItem {\n padding: 7px 30px;",
+GraphViewer.getCss=function(){return[".geDarkMode img {\n\tfilter: invert(1);\n}\ndiv.mxTooltip {\n box-shadow: 3px 3px 12px light-dark(#c0c0c0, transparent);"," background: light-dark(#ffffcc, "+GraphViewer.darkBackgroundColor+");"," border-style: solid;\n border-width: 1px;\n border-color: black;"," font-family: "+GraphViewer.cssFontFamily+";"," font-size: 8pt;\n position: absolute;\n cursor: default;\n padding: 4px;\n color: black;\n}\ntd.mxPopupMenuIcon div {\n width: 16px;\n height: 16px;\n}\ndiv.mxPopupMenu {\n box-shadow: 2px 2px 3px light-dark(#d5d5d5, transparent);\n background: white;\n position: absolute;\n border: 3px solid #e7e7e7;\n padding: 3px;\n}\ntable.mxPopupMenu {\n border-collapse: collapse;\n margin: 0px;\n}\ntd.mxPopupMenuItem {\n padding: 7px 30px;",
" font-family: "+GraphViewer.cssFontFamily+";"," font-size: 10pt;\n}\ntd.mxPopupMenuIcon {"," background-color: light-dark(#ffffff, "+GraphViewer.darkBackgroundColor+");"," padding: 0px;\n}\ntd.mxPopupMenuIcon .geIcon {\n padding: 2px;\n padding-bottom: 4px;\n margin: 2px;\n border: 1px solid transparent;\n opacity: 0.5;\n}\ntd.mxPopupMenuIcon .geIcon:hover {\n border: 1px solid gray;\n border-radius: 2px;\n opacity: 1;\n}\ntr.mxPopupMenuItemHover {\n background-color: #eeeeee;\n color: black;\n}\ntable.mxPopupMenu hr {\n color: #cccccc;\n background-color: #cccccc;\n border: none;\n height: 1px;\n}\ntable.mxPopupMenu tr {\n font-size: 4pt;\n}\n.geDialog, .geDialog table {",
" font-family: "+GraphViewer.cssFontFamily+";"," font-size: 10pt;\n border: none;\n margin: 0px;\n}\n.geDialog {\n position: absolute;"," background: light-dark(#ffffff, "+GraphViewer.darkBackgroundColor+");","\t color: light-dark(#3f3f3f, #c0c0c0);\n box-shadow: 0px 0px 2px 2px light-dark(#d5d5d5, transparent);\n border: 1px solid light-dark(#dadada, #565656);\n overflow: hidden;\n padding: 30px;\n z-index: 2;\n}\n.geDialogClose {\n position: absolute;\n width: 9px;\n height: 9px;\n opacity: 0.5;\n cursor: pointer;\n}\n.geDialogClose:hover {\n opacity: 1;\n}\n.geDialogTitle {\n box-sizing: border-box;\n white-space: nowrap;",
" background: light-dark(#f1f3f4, "+GraphViewer.darkBackgroundColor+");"," border-bottom: 1px solid rgb(192, 192, 192);\n font-size: 15px;\n font-weight: bold;\n text-align: center;\n color: rgb(35, 86, 149);\n}\n.geDialogFooter {"," background: light-dark(#f1f3f4, "+GraphViewer.darkBackgroundColor+");"," white-space: nowrap;\n text-align: right;\n box-sizing: border-box;\n border-top: 1px solid #e5e5e5;\n color: darkGray;\n}\n.geBtn, .mxWindow .geBtn {\n background-color: light-dark(#eeeeee, #1b1d1e);\n border: 1px solid light-dark(#d8d8d8, #333333);\n color: light-dark(#3f3f3f, #c0c0c0);\n font-size: 13px;\n font-weight: 500;\n border-radius: 4px;\n height: 30px;\n margin: 0 0 0 8px;\n min-width: 72px;\n outline: 0;\n padding: 0 8px;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n.geBtn:hover:not(.gePrimaryBtn), .geBtn:focus {\n border: 1px solid light-dark(#c6c6c6, #333333);\n background: light-dark(#dadada, #333333);\n}\n.geBtn:disabled {\n opacity: .5;\n}\n.gePrimaryBtn {\n background: linear-gradient(light-dark(#4d90fe, #003555) 0px, light-dark(#4787ed, #003555) 100%);\n border: 1px solid light-dark(#3079ed, transparent);\n color: light-dark(#ffffff, #c0c0c0);\n}\n.gePrimaryBtn:hover:not([disabled]) {\n background: linear-gradient(light-dark(#4d90fe, #004a77) 0px, light-dark(#357ae8, #004a77) 100%);\n border: 1px solid light-dark(#2f5bb7, transparent);\n}\n.geBtn:disabled {\n opacity: .5;\n}"].join("\n")};
GraphViewer.cachedUrls={};GraphViewer.getUrl=function(b,e,g){if(null!=GraphViewer.cachedUrls[b])e(GraphViewer.cachedUrls[b]);else{var m=null!=navigator.userAgent&&0<navigator.userAgent.indexOf("MSIE 9")?new XDomainRequest:new XMLHttpRequest;m.open("GET",b);m.onload=function(){e(null!=m.getText?m.getText():m.responseText)};m.onerror=g;m.send()}};GraphViewer.resizeSensorEnabled=!0;GraphViewer.useResizeObserver=!0;GraphViewer.useResizeSensor=!0;
-(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(g){return window.setTimeout(g,20)},e=function(g,m){function v(){this.q=[];this.add=function(k){this.q.push(k)};var c,f;this.call=function(){c=0;for(f=this.q.length;c<f;c++)this.q[c].call()}}function p(c,f){return c.currentStyle?c.currentStyle[f]:window.getComputedStyle?window.getComputedStyle(c,null).getPropertyValue(f):c.style[f]}function B(c,f){if(!c.resizedAttached)c.resizedAttached=
+(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(g){return window.setTimeout(g,20)},e=function(g,m){function v(){this.q=[];this.add=function(k){this.q.push(k)};var c,f;this.call=function(){c=0;for(f=this.q.length;c<f;c++)this.q[c].call()}}function p(c,f){return c.currentStyle?c.currentStyle[f]:window.getComputedStyle?window.getComputedStyle(c,null).getPropertyValue(f):c.style[f]}function A(c,f){if(!c.resizedAttached)c.resizedAttached=
new v,c.resizedAttached.add(f);else if(c.resizedAttached){c.resizedAttached.add(f);return}c.resizeSensor=document.createElement("div");c.resizeSensor.className="resize-sensor";c.resizeSensor.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";c.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div class="resize-sensor-shrink" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s; width: 200%; height: 200%"></div></div>';
-c.appendChild(c.resizeSensor);"static"==p(c,"position")&&(c.style.position="relative");var k=c.resizeSensor.childNodes[0],A=k.childNodes[0],z=c.resizeSensor.childNodes[1],C=function(){A.style.width="100000px";A.style.height="100000px";k.scrollLeft=1E5;k.scrollTop=1E5;z.scrollLeft=1E5;z.scrollTop=1E5};C();var I=!1,L=function(){c.resizedAttached&&(I&&(c.resizedAttached.call(),I=!1),b(L))};b(L);var K,O,da,ea;f=function(){if((da=c.offsetWidth)!=K||(ea=c.offsetHeight)!=O)I=!0,K=da,O=ea;C()};var ca=function(W,
-ma,la){W.attachEvent?W.attachEvent("on"+ma,la):W.addEventListener(ma,la)};ca(k,"scroll",f);ca(z,"scroll",f)}var G=function(){GraphViewer.resizeSensorEnabled&&m()};if(GraphViewer.useResizeObserver&&"undefined"!==typeof ResizeObserver){var S=null,F=!1;(new ResizeObserver(function(){F||(null!=S&&window.clearTimeout(S),S=window.setTimeout(function(){F=!0;G();S=null;F=!1},200))})).observe(g)}else{var P=Object.prototype.toString.call(g),R="[object Array]"===P||"[object NodeList]"===P||"[object HTMLCollection]"===
-P||"undefined"!==typeof jQuery&&g instanceof jQuery||"undefined"!==typeof Elements&&g instanceof Elements;if(R){P=0;for(var T=g.length;P<T;P++)B(g[P],G)}else B(g,G);this.detach=function(){if(R)for(var c=0,f=g.length;c<f;c++)e.detach(g[c]);else e.detach(g)}}};e.detach=function(g){g.resizeSensor&&(g.removeChild(g.resizeSensor),delete g.resizeSensor,delete g.resizedAttached)};window.ResizeSensor=e})();
+c.appendChild(c.resizeSensor);"static"==p(c,"position")&&(c.style.position="relative");var k=c.resizeSensor.childNodes[0],B=k.childNodes[0],z=c.resizeSensor.childNodes[1],C=function(){B.style.width="100000px";B.style.height="100000px";k.scrollLeft=1E5;k.scrollTop=1E5;z.scrollLeft=1E5;z.scrollTop=1E5};C();var I=!1,L=function(){c.resizedAttached&&(I&&(c.resizedAttached.call(),I=!1),b(L))};b(L);var K,O,da,ea;f=function(){if((da=c.offsetWidth)!=K||(ea=c.offsetHeight)!=O)I=!0,K=da,O=ea;C()};var ca=function(V,
+ma,la){V.attachEvent?V.attachEvent("on"+ma,la):V.addEventListener(ma,la)};ca(k,"scroll",f);ca(z,"scroll",f)}var G=function(){GraphViewer.resizeSensorEnabled&&m()};if(GraphViewer.useResizeObserver&&"undefined"!==typeof ResizeObserver){var S=null,F=!1;(new ResizeObserver(function(){F||(null!=S&&window.clearTimeout(S),S=window.setTimeout(function(){F=!0;G();S=null;F=!1},200))})).observe(g)}else{var P=Object.prototype.toString.call(g),R="[object Array]"===P||"[object NodeList]"===P||"[object HTMLCollection]"===
+P||"undefined"!==typeof jQuery&&g instanceof jQuery||"undefined"!==typeof Elements&&g instanceof Elements;if(R){P=0;for(var T=g.length;P<T;P++)A(g[P],G)}else A(g,G);this.detach=function(){if(R)for(var c=0,f=g.length;c<f;c++)e.detach(g[c]);else e.detach(g)}}};e.detach=function(g){g.resizeSensor&&(g.removeChild(g.resizeSensor),delete g.resizeSensor,delete g.resizedAttached)};window.ResizeSensor=e})();
(function(){Editor.initMath();if(null!=window.onDrawioViewerLoad)window.onDrawioViewerLoad();else GraphViewer.processElements()})();
diff --git a/src/main/webapp/mxgraph/images/submenu.gif b/src/main/webapp/mxgraph/images/submenu.gif
deleted file mode 100644
index ffe76176d..000000000
Binary files a/src/main/webapp/mxgraph/images/submenu.gif and /dev/null differ
diff --git a/src/main/webapp/resources/dia_de.txt b/src/main/webapp/resources/dia_de.txt
index 3374734f2..26b1c6a15 100644
--- a/src/main/webapp/resources/dia_de.txt
+++ b/src/main/webapp/resources/dia_de.txt
@@ -1219,7 +1219,7 @@ teamsNoEditingMsg=Bearbeiten nur in Desktopumgebung möglich (in der MS Teams Ap
contactOwner=Besitzer kontaktieren
viewerOnlyMsg=Diagramme können auf Mobilgeräten nicht bearbeitet werden, bitte nutzen Sie die Desktopumgebung oder einen Browser.
website=Website
-check4Updates=Auf Änderungen prüfen
+check4Updates=Nach Updates suchen
attWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...
confPartialPageList=We couldn't fetch all pages due to an error in Confluence. Continuing using {1} pages only.
spellCheck=Rechtschreibeprüfung
diff --git a/src/main/webapp/service-worker.js b/src/main/webapp/service-worker.js
index 1d21102a4..e4844765a 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:"3059a90571bd21b16f45654b1cad8d09"},{url:"js/extensions.min.js",revision:"c3d2f690a4ce657d36232c0556d59419"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"f760278d924467fb1d2289448c73fe27"},{url:"js/shapes-14-6-5.min.js",revision:"317413c8e37c127ada9a5c84ffd3463d"},{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:"d8e9e3b4d5b08ebe68444d7424b0809a"},{url:"styles/atlas.css",revision:"37685668ee7cfda6dfe503436dcfef2f"},{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:"a8c01c57ae1ab4aea6562e46e9f5dabe"},{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:"1c9a0a3df274b56bd471283165f8aa5c"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"c3215554d29cc3f5df885cab999563c3"},{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:"aa5ca84da421c280e9057b3a39c8a456"},{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:"a71935d0acd4b0a6ee70795b0f298699"},{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:"73927d303703a329ff06d681553e993d"},{url:"resources/dia_am.txt",revision:"8d60c82458b57bb9ccc7b0c4f6ed3f79"},{url:"resources/dia_ar.txt",revision:"e278657437cf14eeedbb3b641d3ba8c0"},{url:"resources/dia_bg.txt",revision:"61c2ef14ee768be21fcb22b1928f7cac"},{url:"resources/dia_bn.txt",revision:"45e3683c1150ad2e139f42fedaf9e7aa"},{url:"resources/dia_bs.txt",revision:"ed33364ad4282d0e29775ca2e2f351e0"},{url:"resources/dia_ca.txt",revision:"101dbe73020d8471a5208da4d8ae247e"},{url:"resources/dia_cs.txt",revision:"ba2fd4196222285218549625600a530f"},{url:"resources/dia_da.txt",revision:"b3eb739977ead9876a8afe0103ad7e36"},{url:"resources/dia_de.txt",revision:"95357e2d517ad36e2db9ed683914f9b3"},{url:"resources/dia_el.txt",revision:"faa7d843ef32aba9b9f11e367ca362d5"},{url:"resources/dia_eo.txt",revision:"619ff072153d5897b7184ee0fe925f18"},{url:"resources/dia_es.txt",revision:"1feb3c63ee76afc71ebec607c8a9347a"},{url:"resources/dia_et.txt",revision:"67482775f1ff0d1b2cb31f6226c519d3"},{url:"resources/dia_eu.txt",revision:"a7dce4832af9f1d0b4e5f5bf189ef328"},{url:"resources/dia_fa.txt",revision:"743a891d016470e8e0a3651be32fb3c5"},{url:"resources/dia_fi.txt",revision:"771de2b3741f25b4114e51c93ce1a866"},{url:"resources/dia_fil.txt",revision:"637b4984bb64580b4ef61e28ef7ca664"},{url:"resources/dia_fr.txt",revision:"ad7e62eb41228b929489d9427d206e82"},{url:"resources/dia_gl.txt",revision:"a89e3f7e7cb3b6867d3e74eb949894dd"},{url:"resources/dia_gu.txt",revision:"769be61a373049c5d3b358201f1acb65"},{url:"resources/dia_he.txt",revision:"238e53f20884ef57b1a9c06bd800b9ef"},{url:"resources/dia_hi.txt",revision:"755e1872b614c9a5b27c5459062c8320"},{url:"resources/dia_hr.txt",revision:"adf6788e96b0e3f0029cbae30a4faefb"},{url:"resources/dia_hu.txt",revision:"c645a78fdda2843acd6aa9d9bf60a6e8"},{url:"resources/dia_id.txt",revision:"9da16676fc1b33c61b4a025a352dc916"},{url:"resources/dia_it.txt",revision:"57b0f8eb2319f99f96b79507966f4e6f"},{url:"resources/dia_ja.txt",revision:"b4b10c93e53b13dbd3e407532813b9e0"},{url:"resources/dia_kn.txt",revision:"7cbbba0381a1a6cdeade3bc28ac01962"},{url:"resources/dia_ko.txt",revision:"943b020ff0430e9f81fe3e1875423b7d"},{url:"resources/dia_lt.txt",revision:"94aff34cd118d39d79abacf2a16aea7d"},{url:"resources/dia_lv.txt",revision:"325ed2d9ffa2ddc493d9ed10d46007ad"},{url:"resources/dia_ml.txt",revision:"fc666763d3fbff227411defda23b1942"},{url:"resources/dia_mr.txt",revision:"e8746ae5b0123155bdd837ae7f01b5f5"},{url:"resources/dia_ms.txt",revision:"e1600b30e6517d4dc4a7002ce675c641"},{url:"resources/dia_my.txt",revision:"4acfe58eb8f47895f188af8bfd33659c"},{url:"resources/dia_nl.txt",revision:"e9512982f5d9e89015435ee50d577bbc"},{url:"resources/dia_no.txt",revision:"6f0812d787ab931475343320d2547158"},{url:"resources/dia_pl.txt",revision:"3c7d08a5fefc693e6b6b4521a3c0a6cc"},{url:"resources/dia_pt-br.txt",revision:"5d7431a638a268dfedd3bc7f463e17d6"},{url:"resources/dia_pt.txt",revision:"981210fd60e7fd0831fcd6d26ca26f74"},{url:"resources/dia_ro.txt",revision:"1d77510ecd2b1b1c26640dfe77e00f48"},{url:"resources/dia_ru.txt",revision:"4c2d2f96df120afc4c3b3c58d0bc6ebc"},{url:"resources/dia_si.txt",revision:"2db82ba649f3ab7d578a73b247b06c4f"},{url:"resources/dia_sk.txt",revision:"4b9033183a2c90ccf0f75136fd7b14b0"},{url:"resources/dia_sl.txt",revision:"c27148e1c9480a35642162595480ff1f"},{url:"resources/dia_sr.txt",revision:"ef3562ada2e69e5d33609d58a677b6db"},{url:"resources/dia_sv.txt",revision:"7357682c42f6d47729b6b1784aaa5e9b"},{url:"resources/dia_sw.txt",revision:"377dd914bd645c2348e342bf55306439"},{url:"resources/dia_ta.txt",revision:"00ce65e244e159a2dcb93b9829a2e603"},{url:"resources/dia_te.txt",revision:"8aaca1c42eb1c027a77138f0fccc85c7"},{url:"resources/dia_th.txt",revision:"c2be3eae6995b41ba466651629c69143"},{url:"resources/dia_tr.txt",revision:"9571764eb899cc108c6fb2631d694ca3"},{url:"resources/dia_uk.txt",revision:"76e4f285ac8c648d3b3fbc6ab59aad17"},{url:"resources/dia_vi.txt",revision:"ced105b1a1ea57902c88fdd36ab041c0"},{url:"resources/dia_zh-tw.txt",revision:"ce0a47eca469dbb93e8c4f26aba7ea73"},{url:"resources/dia_zh.txt",revision:"a69a22b12a4ced3f62285b2521355755"},{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:"06e3f3c5095f5b8e69c5e53c77cec957"},{url:"js/extensions.min.js",revision:"c3d2f690a4ce657d36232c0556d59419"},{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:"655426517a1bd9c9b805c2359ab8d4b9"},{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:"1c9a0a3df274b56bd471283165f8aa5c"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"c3215554d29cc3f5df885cab999563c3"},{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:"aa5ca84da421c280e9057b3a39c8a456"},{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:"781ebdd3dda1d88c31eb00da02f872ef"},{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:"73927d303703a329ff06d681553e993d"},{url:"resources/dia_am.txt",revision:"8d60c82458b57bb9ccc7b0c4f6ed3f79"},{url:"resources/dia_ar.txt",revision:"e278657437cf14eeedbb3b641d3ba8c0"},{url:"resources/dia_bg.txt",revision:"61c2ef14ee768be21fcb22b1928f7cac"},{url:"resources/dia_bn.txt",revision:"45e3683c1150ad2e139f42fedaf9e7aa"},{url:"resources/dia_bs.txt",revision:"ed33364ad4282d0e29775ca2e2f351e0"},{url:"resources/dia_ca.txt",revision:"101dbe73020d8471a5208da4d8ae247e"},{url:"resources/dia_cs.txt",revision:"ba2fd4196222285218549625600a530f"},{url:"resources/dia_da.txt",revision:"b3eb739977ead9876a8afe0103ad7e36"},{url:"resources/dia_de.txt",revision:"fd7945d51201ff95e51d082750c67c39"},{url:"resources/dia_el.txt",revision:"faa7d843ef32aba9b9f11e367ca362d5"},{url:"resources/dia_eo.txt",revision:"619ff072153d5897b7184ee0fe925f18"},{url:"resources/dia_es.txt",revision:"1feb3c63ee76afc71ebec607c8a9347a"},{url:"resources/dia_et.txt",revision:"67482775f1ff0d1b2cb31f6226c519d3"},{url:"resources/dia_eu.txt",revision:"a7dce4832af9f1d0b4e5f5bf189ef328"},{url:"resources/dia_fa.txt",revision:"743a891d016470e8e0a3651be32fb3c5"},{url:"resources/dia_fi.txt",revision:"771de2b3741f25b4114e51c93ce1a866"},{url:"resources/dia_fil.txt",revision:"637b4984bb64580b4ef61e28ef7ca664"},{url:"resources/dia_fr.txt",revision:"ad7e62eb41228b929489d9427d206e82"},{url:"resources/dia_gl.txt",revision:"a89e3f7e7cb3b6867d3e74eb949894dd"},{url:"resources/dia_gu.txt",revision:"769be61a373049c5d3b358201f1acb65"},{url:"resources/dia_he.txt",revision:"238e53f20884ef57b1a9c06bd800b9ef"},{url:"resources/dia_hi.txt",revision:"755e1872b614c9a5b27c5459062c8320"},{url:"resources/dia_hr.txt",revision:"adf6788e96b0e3f0029cbae30a4faefb"},{url:"resources/dia_hu.txt",revision:"c645a78fdda2843acd6aa9d9bf60a6e8"},{url:"resources/dia_id.txt",revision:"9da16676fc1b33c61b4a025a352dc916"},{url:"resources/dia_it.txt",revision:"57b0f8eb2319f99f96b79507966f4e6f"},{url:"resources/dia_ja.txt",revision:"b4b10c93e53b13dbd3e407532813b9e0"},{url:"resources/dia_kn.txt",revision:"7cbbba0381a1a6cdeade3bc28ac01962"},{url:"resources/dia_ko.txt",revision:"943b020ff0430e9f81fe3e1875423b7d"},{url:"resources/dia_lt.txt",revision:"94aff34cd118d39d79abacf2a16aea7d"},{url:"resources/dia_lv.txt",revision:"325ed2d9ffa2ddc493d9ed10d46007ad"},{url:"resources/dia_ml.txt",revision:"fc666763d3fbff227411defda23b1942"},{url:"resources/dia_mr.txt",revision:"e8746ae5b0123155bdd837ae7f01b5f5"},{url:"resources/dia_ms.txt",revision:"e1600b30e6517d4dc4a7002ce675c641"},{url:"resources/dia_my.txt",revision:"4acfe58eb8f47895f188af8bfd33659c"},{url:"resources/dia_nl.txt",revision:"e9512982f5d9e89015435ee50d577bbc"},{url:"resources/dia_no.txt",revision:"6f0812d787ab931475343320d2547158"},{url:"resources/dia_pl.txt",revision:"3c7d08a5fefc693e6b6b4521a3c0a6cc"},{url:"resources/dia_pt-br.txt",revision:"5d7431a638a268dfedd3bc7f463e17d6"},{url:"resources/dia_pt.txt",revision:"981210fd60e7fd0831fcd6d26ca26f74"},{url:"resources/dia_ro.txt",revision:"1d77510ecd2b1b1c26640dfe77e00f48"},{url:"resources/dia_ru.txt",revision:"4c2d2f96df120afc4c3b3c58d0bc6ebc"},{url:"resources/dia_si.txt",revision:"2db82ba649f3ab7d578a73b247b06c4f"},{url:"resources/dia_sk.txt",revision:"4b9033183a2c90ccf0f75136fd7b14b0"},{url:"resources/dia_sl.txt",revision:"c27148e1c9480a35642162595480ff1f"},{url:"resources/dia_sr.txt",revision:"ef3562ada2e69e5d33609d58a677b6db"},{url:"resources/dia_sv.txt",revision:"7357682c42f6d47729b6b1784aaa5e9b"},{url:"resources/dia_sw.txt",revision:"377dd914bd645c2348e342bf55306439"},{url:"resources/dia_ta.txt",revision:"00ce65e244e159a2dcb93b9829a2e603"},{url:"resources/dia_te.txt",revision:"8aaca1c42eb1c027a77138f0fccc85c7"},{url:"resources/dia_th.txt",revision:"c2be3eae6995b41ba466651629c69143"},{url:"resources/dia_tr.txt",revision:"9571764eb899cc108c6fb2631d694ca3"},{url:"resources/dia_uk.txt",revision:"76e4f285ac8c648d3b3fbc6ab59aad17"},{url:"resources/dia_vi.txt",revision:"ced105b1a1ea57902c88fdd36ab041c0"},{url:"resources/dia_zh-tw.txt",revision:"ce0a47eca469dbb93e8c4f26aba7ea73"},{url:"resources/dia_zh.txt",revision:"a69a22b12a4ced3f62285b2521355755"},{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.map
diff --git a/src/main/webapp/service-worker.js.map b/src/main/webapp/service-worker.js.map
index d029caafb..462a68a84 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/136dd13f877e48511d96441567125475/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\": \"3059a90571bd21b16f45654b1cad8d09\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"c3d2f690a4ce657d36232c0556d59419\"\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\": \"317413c8e37c127ada9a5c84ffd3463d\"\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\": \"d8e9e3b4d5b08ebe68444d7424b0809a\"\n },\n {\n \"url\": \"styles/atlas.css\",\n \"revision\": \"37685668ee7cfda6dfe503436dcfef2f\"\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\": \"a8c01c57ae1ab4aea6562e46e9f5dabe\"\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\": \"1c9a0a3df274b56bd471283165f8aa5c\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"c3215554d29cc3f5df885cab999563c3\"\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\": \"aa5ca84da421c280e9057b3a39c8a456\"\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\": \"a71935d0acd4b0a6ee70795b0f298699\"\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\": \"73927d303703a329ff06d681553e993d\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"8d60c82458b57bb9ccc7b0c4f6ed3f79\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"e278657437cf14eeedbb3b641d3ba8c0\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"61c2ef14ee768be21fcb22b1928f7cac\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"45e3683c1150ad2e139f42fedaf9e7aa\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"ed33364ad4282d0e29775ca2e2f351e0\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"101dbe73020d8471a5208da4d8ae247e\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"ba2fd4196222285218549625600a530f\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"b3eb739977ead9876a8afe0103ad7e36\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"95357e2d517ad36e2db9ed683914f9b3\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"faa7d843ef32aba9b9f11e367ca362d5\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"619ff072153d5897b7184ee0fe925f18\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"1feb3c63ee76afc71ebec607c8a9347a\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"67482775f1ff0d1b2cb31f6226c519d3\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"a7dce4832af9f1d0b4e5f5bf189ef328\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"743a891d016470e8e0a3651be32fb3c5\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"771de2b3741f25b4114e51c93ce1a866\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"637b4984bb64580b4ef61e28ef7ca664\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"ad7e62eb41228b929489d9427d206e82\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"a89e3f7e7cb3b6867d3e74eb949894dd\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"769be61a373049c5d3b358201f1acb65\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"238e53f20884ef57b1a9c06bd800b9ef\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"755e1872b614c9a5b27c5459062c8320\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"adf6788e96b0e3f0029cbae30a4faefb\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"c645a78fdda2843acd6aa9d9bf60a6e8\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"9da16676fc1b33c61b4a025a352dc916\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"57b0f8eb2319f99f96b79507966f4e6f\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"b4b10c93e53b13dbd3e407532813b9e0\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"7cbbba0381a1a6cdeade3bc28ac01962\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"943b020ff0430e9f81fe3e1875423b7d\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"94aff34cd118d39d79abacf2a16aea7d\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"325ed2d9ffa2ddc493d9ed10d46007ad\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"fc666763d3fbff227411defda23b1942\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"e8746ae5b0123155bdd837ae7f01b5f5\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"e1600b30e6517d4dc4a7002ce675c641\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"4acfe58eb8f47895f188af8bfd33659c\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"e9512982f5d9e89015435ee50d577bbc\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"6f0812d787ab931475343320d2547158\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"3c7d08a5fefc693e6b6b4521a3c0a6cc\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"5d7431a638a268dfedd3bc7f463e17d6\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"981210fd60e7fd0831fcd6d26ca26f74\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"1d77510ecd2b1b1c26640dfe77e00f48\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"4c2d2f96df120afc4c3b3c58d0bc6ebc\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"2db82ba649f3ab7d578a73b247b06c4f\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"4b9033183a2c90ccf0f75136fd7b14b0\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"c27148e1c9480a35642162595480ff1f\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"ef3562ada2e69e5d33609d58a677b6db\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"7357682c42f6d47729b6b1784aaa5e9b\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"377dd914bd645c2348e342bf55306439\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"00ce65e244e159a2dcb93b9829a2e603\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"8aaca1c42eb1c027a77138f0fccc85c7\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"c2be3eae6995b41ba466651629c69143\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"9571764eb899cc108c6fb2631d694ca3\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"76e4f285ac8c648d3b3fbc6ab59aad17\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"ced105b1a1ea57902c88fdd36ab041c0\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"ce0a47eca469dbb93e8c4f26aba7ea73\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"a69a22b12a4ced3f62285b2521355755\"\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/31cbc1f7eb7cb574eb1e4dcaa4232b01/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\": \"06e3f3c5095f5b8e69c5e53c77cec957\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"c3d2f690a4ce657d36232c0556d59419\"\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\": \"655426517a1bd9c9b805c2359ab8d4b9\"\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\": \"1c9a0a3df274b56bd471283165f8aa5c\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"c3215554d29cc3f5df885cab999563c3\"\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\": \"aa5ca84da421c280e9057b3a39c8a456\"\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\": \"781ebdd3dda1d88c31eb00da02f872ef\"\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\": \"73927d303703a329ff06d681553e993d\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"8d60c82458b57bb9ccc7b0c4f6ed3f79\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"e278657437cf14eeedbb3b641d3ba8c0\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"61c2ef14ee768be21fcb22b1928f7cac\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"45e3683c1150ad2e139f42fedaf9e7aa\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"ed33364ad4282d0e29775ca2e2f351e0\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"101dbe73020d8471a5208da4d8ae247e\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"ba2fd4196222285218549625600a530f\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"b3eb739977ead9876a8afe0103ad7e36\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"fd7945d51201ff95e51d082750c67c39\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"faa7d843ef32aba9b9f11e367ca362d5\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"619ff072153d5897b7184ee0fe925f18\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"1feb3c63ee76afc71ebec607c8a9347a\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"67482775f1ff0d1b2cb31f6226c519d3\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"a7dce4832af9f1d0b4e5f5bf189ef328\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"743a891d016470e8e0a3651be32fb3c5\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"771de2b3741f25b4114e51c93ce1a866\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"637b4984bb64580b4ef61e28ef7ca664\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"ad7e62eb41228b929489d9427d206e82\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"a89e3f7e7cb3b6867d3e74eb949894dd\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"769be61a373049c5d3b358201f1acb65\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"238e53f20884ef57b1a9c06bd800b9ef\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"755e1872b614c9a5b27c5459062c8320\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"adf6788e96b0e3f0029cbae30a4faefb\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"c645a78fdda2843acd6aa9d9bf60a6e8\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"9da16676fc1b33c61b4a025a352dc916\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"57b0f8eb2319f99f96b79507966f4e6f\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"b4b10c93e53b13dbd3e407532813b9e0\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"7cbbba0381a1a6cdeade3bc28ac01962\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"943b020ff0430e9f81fe3e1875423b7d\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"94aff34cd118d39d79abacf2a16aea7d\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"325ed2d9ffa2ddc493d9ed10d46007ad\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"fc666763d3fbff227411defda23b1942\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"e8746ae5b0123155bdd837ae7f01b5f5\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"e1600b30e6517d4dc4a7002ce675c641\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"4acfe58eb8f47895f188af8bfd33659c\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"e9512982f5d9e89015435ee50d577bbc\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"6f0812d787ab931475343320d2547158\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"3c7d08a5fefc693e6b6b4521a3c0a6cc\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"5d7431a638a268dfedd3bc7f463e17d6\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"981210fd60e7fd0831fcd6d26ca26f74\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"1d77510ecd2b1b1c26640dfe77e00f48\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"4c2d2f96df120afc4c3b3c58d0bc6ebc\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"2db82ba649f3ab7d578a73b247b06c4f\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"4b9033183a2c90ccf0f75136fd7b14b0\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"c27148e1c9480a35642162595480ff1f\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"ef3562ada2e69e5d33609d58a677b6db\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"7357682c42f6d47729b6b1784aaa5e9b\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"377dd914bd645c2348e342bf55306439\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"00ce65e244e159a2dcb93b9829a2e603\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"8aaca1c42eb1c027a77138f0fccc85c7\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"c2be3eae6995b41ba466651629c69143\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"9571764eb899cc108c6fb2631d694ca3\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"76e4f285ac8c648d3b3fbc6ab59aad17\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"ced105b1a1ea57902c88fdd36ab041c0\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"ce0a47eca469dbb93e8c4f26aba7ea73\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"a69a22b12a4ced3f62285b2521355755\"\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
diff --git a/src/main/webapp/styles/atlas.css b/src/main/webapp/styles/atlas.css
index 7a4afe0a7..07a6b4e72 100644
--- a/src/main/webapp/styles/atlas.css
+++ b/src/main/webapp/styles/atlas.css
@@ -4,55 +4,18 @@
background: transparent !important;
}
}
-html body .geToolbarContainer .geButton, html body .geToolbarContainer .geLabel {
- padding:3px 5px 5px 5px;
- position: relative;
- text-align: center;
- vertical-align: middle;
- border-radius:3px;
-}
html body .geMenubarContainer .geBigButton {
margin-top: 4px;
}
html body .geBigStandardButton:active, .geSidebarContainer .geTitle:active {
- background-color: #DEEBFF;
- color: #0052CC;
+ background-color: light-dark(#DEEBFF, var(--dark-border-color));
}
body .geToolbarContainer .geButton:active, body .geToolbarContainer .geLabel:active {
- background-color: #DEEBFF;
- color: #0052CC;
-}
-body > .geToolbarContainer .geLabel, body > .geToolbarContainer .geButton {
- -webkit-box-shadow: none !important;
- -moz-box-shadow: none !important;
- box-shadow: none !important;
- border: 1px solid transparent !important;
-}
-body > .geToolbarContainer:not(.geDarkMode *) {
- background: #f5f5f5 !important;
- border-bottom: 1px solid #ccc !important;
- -webkit-box-shadow: none !important;
- -moz-box-shadow: none !important;
- box-shadow: none !important;
-}
-body > .geToolbarContainer > .geToolbar {
- padding-top:4px !important;
+ background-color: light-dark(#DEEBFF, var(--dark-border-color));
}
body > .geToolbarContainer > .geToolbar .geSeparator:not(.geDarkMode *) {
background:#cccccc !important;
}
-body > .geToolbarContainer > .geToolbar .geSeparator {
- width:1px !important;
- margin-top:3px;
- height:24px;
-}
-.geSidebarContainer .geToolbarContainer .geButton {
- padding:0px 2px 4px 2px;
-}
-.geToolbarContainer .geLabel {
- height:18px;
- _height:31px;
-}
html body .geStatus .geStatusAlert:not(.geDarkMode *) {
color:#ffffff !important;
font-size:12px;
@@ -85,24 +48,16 @@ html body .geStatus .geStatusMessage:hover:not(.geDarkMode *) {
background-color: #2d6ca2;
background-image: linear-gradient(rgb(90, 148, 211) 0px, rgb(54, 115, 181) 100%);
}
-html body div.mxWindow .geButton, .mxWindow .geLabel {
- -webkit-box-shadow: none !important;
- -moz-box-shadow: none !important;
- box-shadow: none !important;
- background-image: none !important;
- border:1px solid transparent !important;
-}
-body > .geToolbarContainer .geButton {
- margin:0px -1px 0px 0px !important;
- height:20px;
-}
html body .geSidebarTooltip, .geSidebarTooltipImage {
z-index:2;
}
-html body .geSidebarContainer .geTitle {
- font-size:13px;
- padding:8px 0px 8px 16px;
+.geTitle, .geItem, .geLabel {
+ color: light-dark(var(--text-color), var(--dark-text-color));
+}
+#mxHeaderDocumentName {
+ color: light-dark(#DEEBFF, var(--dark-text-color));
}
+
html body .geMenubarContainer *:not(.geDarkMode *) {
color: #DEEBFF;
}
@@ -112,21 +67,6 @@ html body .geMenubarContainer .geStatus:not(.geDarkMode *) {
.geMenubarContainer .geItem:hover:not(.geStatus) {
background-color: rgba(9, 30, 66, 0.48) !important;
}
-html body .geToolbarContainer .geLabel {
- margin:0px;
- padding:6px 20px 4px 10px !important;
-}
-.geToolbar .geSeparator {
- width:0px !important;
-}
-.geMenubarContainer .geItem, .geToolbar .geButton, .geToolbar .geLabel,
-.geSidebar, .geSidebarContainer .geTitle, .geSidebar .geItem, .mxPopupMenuItem {
- -webkit-transition: none;
- -moz-transition: none;
- -o-transition: none;
- -ms-transition: none;
- transition: none;
-}
html body .geMenubarContainer:not(.geDarkMode *) {
background-color: #0049B0;
color: #ffffff;
@@ -150,14 +90,6 @@ html body .geSidebarContainer .geToolbarContainer .geLabel {
margin:2px !important;
padding:4px !important;
}
-html body .geToolbar:not(.geDarkMode *) {
- margin:0px;
- padding:8px 10px 0px 10px;
- -webkit-box-shadow:none;
- -moz-box-shadow:none;
- box-shadow:none;
- border:none;
-}
html body .geMenubarContainer .mxDisabled {
opacity: 1;
color: rgb(179, 179, 179);
@@ -189,4 +121,8 @@ html .geNotification-bell {
html .geNotification-bell *:not(.geDarkMode *) {
background-color: #DEEBFF;
box-shadow: 0px 0px 10px #DEEBFF;
+}
+
+body.geSimple.geDarkMode .geMenuItem {
+ filter: none !important;
}
\ No newline at end of file
diff --git a/src/main/webapp/styles/grapheditor.css b/src/main/webapp/styles/grapheditor.css
index 9c3ea6b5d..d0dc81584 100644
--- a/src/main/webapp/styles/grapheditor.css
+++ b/src/main/webapp/styles/grapheditor.css
@@ -14,15 +14,21 @@
* {
forced-color-adjust: none;
}
+button, select {
+ color: light-dark(#000000, var(--dark-text-color));
+}
html body.geSimple.geDarkMode .geMenubarContainer div.geMenuItem {
border-width:1px;
border-style:solid;
}
html body.geSimple.geDarkMode .geToolbarContainer .geMenuItem, html body.geSimple.geDarkMode .geToolbarContainer .geToolbarButton,
html body.geSimple.geDarkMode .geMenubarContainer .geMenuItem .geMenuItem, html body.geSimple.geDarkMode .geMenubarContainer a.geMenuItem,
-html body.geSimple.geDarkMode .geMenubarContainer .geToolbarButton {
+html body.geSimple.geDarkMode .geMenubarContainer .geToolbarButton, .geDarkMode .mxPopupMenuItem > div:not(:has(img)) {
filter: invert(100%);
}
+.mxPopupMenuItem > div {
+ opacity: 0.7;
+}
html body.geEditor.geMinimal:not(.geDarkMode) div.diagramContainer button.gePrimaryBtn,
html body.geEditor.geMinimal:not(.geDarkMode) .mxWindow button.gePrimaryBtn,
html body.geEditor.geMinimal:not(.geDarkMode) .geDialog button.gePrimaryBtn,
@@ -77,7 +83,7 @@ html body.geSimple .geMenuItem {
padding: 6px 10px 6px 10px;
border: none;
border-radius: 5px;
- color: #353535;
+ color: light-dark(#353535, #cccccc);
box-shadow: inset 0 0 0 1px rgba(0,0,0,.11), inset 0 -1px 0 0 rgba(0,0,0,.08), 0 1px 2px 0 rgba(0,0,0,.04);
}
html body div.mxPopupMenu {
@@ -562,7 +568,8 @@ a.geStatus .geStatusMessage {
box-shadow:none;
z-index:1;
}
-.geShapePicker {
+html .geShapePicker {
+ display:block;
position:absolute;
border-radius:10px;
border-style:solid;
@@ -572,31 +579,21 @@ a.geStatus .geStatusMessage {
box-shadow:0px 0px 3px 1px #d1d1d1;
}
.geBtnStepper {
+ display:inline-block;
border-radius:3px;
border-style:solid;
border-width:1px;
}
-.geBtnUp {
- background-image:url(data:image/gif;base64,R0lGODlhCgAGAJECAGZmZtXV1f///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0QzM3ODJERjg4NUQxMUU0OTFEQ0E2MzRGQzcwNUY3NCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0QzM3ODJFMDg4NUQxMUU0OTFEQ0E2MzRGQzcwNUY3NCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjRDMzc4MkREODg1RDExRTQ5MURDQTYzNEZDNzA1Rjc0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRDMzc4MkRFODg1RDExRTQ5MURDQTYzNEZDNzA1Rjc0Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAgAsAAAAAAoABgAAAg6UjwiQBhGYglCKhXFLBQA7);
+.geBtnStepper > div {
+ position:relative;
background-position:center center;
background-repeat:no-repeat;
border-bottom-style:solid;
+ background-size:18px;
border-width:1px;
}
-.geBtnUp:active {
- background-color:#4d90fe;
- background-image:linear-gradient(#4d90fe 0px,#357ae8 100%);
-}
-.geBtnDown {
- background-image:url(data:image/gif;base64,R0lGODlhCgAGAJECANXV1WZmZv///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0QzM3ODJEQjg4NUQxMUU0OTFEQ0E2MzRGQzcwNUY3NCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0QzM3ODJEQzg4NUQxMUU0OTFEQ0E2MzRGQzcwNUY3NCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjRDMzc4MkQ5ODg1RDExRTQ5MURDQTYzNEZDNzA1Rjc0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRDMzc4MkRBODg1RDExRTQ5MURDQTYzNEZDNzA1Rjc0Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAgAsAAAAAAoABgAAAg6UjxLLewEiCAnOZBzeBQA7);
- background-position:center center;
- background-repeat:no-repeat;
- border-style:solid;
- border-width:1px;
-}
-.geBtnDown:active {
+.geBtnStepper > div:active {
background-color:#4d90fe;
- background-image:linear-gradient(#4d90fe 0px,#357ae8 100%);
}
html .geColorBtn {
padding:0px;
@@ -674,41 +671,40 @@ html body.geEditor .geToolbarButton {
text-overflow:ellipsis;
overflow:hidden;
}
+div.mxWindow .geButton {
+ margin: -1px 2px 2px 2px;
+ padding: 1px 2px 2px 1px;
+}
+.geToolbarContainer, .geToolbar {
+ display:flex;
+ align-items:center;
+}
.geToolbar {
- padding:5px 0px 0px 6px;
- border-top:1px solid #dadce0;
- box-shadow: inset 0 1px 0 0 #fff;
+ height:100%;
+ border-top-style:solid;
+ border-top-width:1px;
}
-.geToolbarContainer .geSeparator {
- float:left;
- width:1px;
+.geToolbar .geToolbarButton, .geToolbar .geLabel,
+.geToolbar .geButton {
+ display:inline-flex;
+ align-items:center;
+ cursor:pointer;
height:20px;
+ width:20px;
+ padding:2px;
+ margin:2px;
+}
+.geToolbar .geSeparator {
+ display:inline-block;
background:#e5e5e5;
margin-left:6px;
margin-right:6px;
- margin-top:4px;
+ height:20px;
+ width:1px;
}
.geToolbarContainer .geButton {
- float:left;
- width:20px;
- height:20px;
- padding:0px 2px 4px 2px;
- margin:2px;
- border:1px solid transparent;
- cursor:pointer;
opacity:0.6;
}
-div.mxWindow .geButton {
- margin: -1px 2px 2px 2px;
- padding: 1px 2px 2px 1px;
-}
-.geToolbarContainer .geLabel {
- float:left;
- margin:2px;
- cursor:pointer;
- padding:3px 5px 3px 5px;
- border:1px solid transparent;
-}
.geToolbarContainer .mxDisabled:hover {
border-color:transparent !important;
opacity:0.2 !important;
@@ -985,11 +981,6 @@ div.mxWindow .geButton {
border-top-width:1px;
border-top-style:solid;
}
-.geSprite {
- background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAABeQCAMAAAByzXKPAAAA1VBMVEUAAAAzMzIzMzIzMzE1NTUzMzIzMzIzMzEzMzIyMjIzMzIzMzIzMzIzMzE6OjoyMjIzMzIzMzIzMzEzMzI0NDA0NDIwMDAyMjEzMzIzMzEzMzE0NDAzMzMzMzIyMjIzMzI0NDE0NDQyMjIzMzIzMzIzMzIzMzM5OTkAAAC1tbX///9mZmYwMDAQEBAmJiZTiPJ7e3v/Z2RwcHAgICB+fn5hYWFzc3NAQECoqKiampqMjIxTU1NGRkY3NzcbGxsNDQ3w8PBQUFDg4ODAwMCwsLCgoKBPT09W+xp5AAAAKHRSTlMAh4DDEd187+mljnhvVge5nmhMQi4hA8uxk2IlHOOYc102M/jW088J/2liTQAACt5JREFUeNrs3O1um0AQheG5nIPCoIq1Q7+r/Mn9X1K9xtEAM9RLQmODzyO1cV+NtzjShhjHkRkAgn9DMCaYnRXIGOQdtWmk1zRWm0vNN6az+Y+v2fXZ5iTX/kZ4ZGvUNT6/RJuCM/VVRKFB7YBwtnY1k3h2wboaHy8RFQC2VGuc1D730WWLS2GIZ27aM4yUT+9tXaLNw9m0mI9uokepRLeC+ZyCfFCoqwckqV3WBHFZaxHLFrNxVpgUVRWjg/jli2WbfH4WyxYnWcVV0Rz7FYj26X9ezQcuE3VYkXzFSYpm9eq6pqSiuNYAaj+r0GiFxKv5tEOqxVfV0utrCkZF/HCXTuOdGz2IHKbDR5wdJ6PdeRmIsfviED0C5ZV7ojf487v59fPHsT18//a1Yn1HJdoSjIUXBG5XgaBejhMYVmT9B1dRUONj4KtyRHNmNkULDYeD2CGVjiZ0paOK1jVuYKIpjJTO7m9dovvEn3bz/DH4440f2+d9fvlVh+4LLuK6cM8GVcKKkmq3ZqqBfbhaef4n+pijBudNZH3H+OW3No+rbTmVXjfciPbs/GVQ7QU6tWqUW5lonefHfn5f6xI9DAxdqQU3n55uU821mj2ZuUq0SYo2ivA5tThxk3rK6u+urYtZiqKuGiWMEkbp4/OFLITIvyrfekt35WGvjvP6OlERwP6+VU39z+ansp+0SThP8jk+0SeoAehRjObmdha0f2YwfucMss7uaPVF3rThN/EH6fH3YhEt3bD1zMlwGtu8/8a5zrHJuR6NyrkKMK5N5qqf9ev6Y4hfGfSPrc7ZWZqPQrQPa+x5Cfe8FO55m3Xrcs8T3TFUYQ0zqj5jTPoMmagQz4brFh8D3x5L9OngyRy+IEa0JgBRlaBWAIJYyVYjYDF47PwNV/TwAIRfB+BiFcyeolchija6+P7xd//IveI+JlpwnrdZP7xexdD6/4N/PDzP06NZdc8vP4H7WKFXLbqjQcU9T7QZvFhHdN/+sndmy6lCQRQ9KOA8Ro1TxjttYuUlX5BK5f+/6YJIWjlNFREkpLJXGQuWO01e2mPaU4pA17qH7iEeKfRsrrqh4/t0hJQPEJSokULPFpJse0Iu0PNQNVSNnOu8ZHPWZc8TUhkBgECRikZMrp4Xq9W1NPubkIIUm4hnrtyikSIjq+jck3bOBQkpnSBrkU97ALl73pJqXfFc5AlJqN3cXvoTEKIzJcu5PSEFqHiGp6ahz+33Z3rWtpzhEfK16DO8XXi3S2vIvfUCHnpWrcsZHiHVAFUG0KQJoEgjGjGRFG1l9bq25gyPkIoANBcEab9DEPf27iCk40VbWa0uP86WkMsTQHPQHBSnJJHCytp1dW9Uz2cBQoo0PEqVes/r2bM0131CLtLzUCVUidw9n6uuaPY8IdnUYMet2BTccUtIfShnz60mBe65JaTunL/tVqTAbbeE1ImCc3vl16McIEiWc3tCClD5DM9Ak7ZFZCBkZEVzhkfI5/n6Hbdp+wF33BJSH8rZc6vISB/gnltCas/Z225FStdz2y0hZXE19lrt5p177NyR11+OHb/THhzJP86wP2uYrjvz1h92eTseNEzDbB2nd/OY1Py9WNw6/qjnN+fmvnmwnYkxjf1t+mAW7XlsbzaJ3a7DzH1sf3Udp7m/dcOf615sW26SdfvGrCaxbV4l9nEan0X0xqEaRrbvmnlrGFu3PTN3ndUoLOuapW8ODLzudLVomMHA71z/MwmT9mTmN+bOZnS9NcJDs+V53t+WPzQnbNa9/nRoCPl2AKqObKFvltEBoPvcVwNwmavxOy3IDwFAlkWCWPBqhJDC8GtsCPlGYI8ciQyRI+3/CLHHscysXvf0ynzWIOQsPr3wWllkxNQskD+b82/Ihi8qCCm150XpObXnc2RFs+cJqRhAE5AHpI8BOZbH5TQdlXB8JAUEIC4AvkFPSMEl/dQ+v74+2/bl6enFtm/v72+W/c/eHSW3CUNRGNZyjgiZNHE6fW2b6f63VGScCHSvI7CxjfH/tYnTU43CywFiAfnT/On+lunH3274R5G2zbv03rTj9F+z92+U7pqPX52PZjdM35uf6vxs3ofp799Kulf2B8CEc2JVjvJm6OIT5CO9PekvD/8T767XgTc2z1umnEdggyT5eX2s+k9yGpvH1kqvI523IVfSAzdlW2gbu3zn5+6j/JFcfIft0lBOi4/J6cbmBTZJTdPo9fV1/3pamqTUFCalOVkunVdNTU5bSa2Nn7ULjl0A7o5/aGt6Z6TKUpVC7/VLSrWzqTo7b+yzO+9i28shHtugl5cXXS9NLnyYHVZ+Nz79UG7y4in7Aqza9po+tBsXP1B8wCW3m01yVqq9G3w3q/X+/1lpZ5WEbKdOTnNsxiYtd+ngjl28Fw+zhwGwLA0/mDeIS46AxWnO2MVnUFD627+sasuAxyJpTsp3A+6WgnplGpILpL1JR21lZt5k2ZSrFPE41AteEy+Q9qrn58qW77lNM877sXXq+fcGLp/2giETZO5tTYumHObxKDQ0aezhxb2feNE0MWlvqZS1SzwsJZdslu3x9fYae8HFXYeAKcIVejxwzgwc0YE6jTzuWOAuqOS+GTY3rc+rmDxAKn7VEPAt+amm/7Yu8ev0gfnkHckljT8nSoaf/RkeNgUejaKburGiYt696FNIcXrt/3yJh8Qba+advg0BwJCk66Qamp3WvxtX1gMzSDZya+BU8y2OR+ogyk7w5h+Nox+/6S04pNunwKqpt9Db9yemA2GokjqThGR+ms1JeYMe92hu5y2Zbs5O5be7mkru2Hlpgc5j434M1NPiq0qqgXoaDkwqTU21V0s7dgY/TfLX9XMT1udx56RJqTqf5aqlR3vVqtOWaYpbp4NtW2tmPaXbwAZI0U1zroI/tiRW9oBVOtL5QT6uu2TH0nlgnXRSqsLkGXg+JnBTCjopVeGceXk2FnAtColkUynGMn1SrHXejq3Py4U5wHXZvtluJtXO27H+vFyMB9xElFIxNQ6fUmFj9Xm6Sr67SrA6b94Gfp4HLsb2rSM53VSMpseK1c7bsXbechs4zgO3EiUvs6kK7tgsUmlglaLkZiZVStzOBzoPrJHOS1VgVR5YuTPXz1VgXR5YM/+u9xglkyZRT2WqghlbnVc8CA+4mtxRp5vB7XxW7bw3LwvywI0pr5MN6HNNrUi/fUZO4o6tzxuiuO0GuLzUUdu3GOV3M6raeTu2Nm8aR+eBlVD1BnoVjowt0HBgnY51PrqdT/9yxtJ5YHWkeGKswoxJuMcGuIYoKdowKOQ4Xxov+4Zb/khU8Mf681a3gZ/0gYt1PjGdV1J2/mBS5z/58zrbQOeBE6zpGZgA7smRzgc6D2xKlORlCiUVKrfSslMAVulI56PX+XHv81g6D6yPFM+MVWCJDliLJdfoMhVYowPWYsk1ukwF1uiAu1R/Hh5v2wNb8r+9O0pBGAaiKLqdm/1vUCiFSCdhTIjWhntAwefY5sMxRW1ToJnZ89KjQTnuGzGUWB1DLkJtul0ofocn3SOf5wMu3mu97q30GN2e99he2gKEpj6Dkvwjj4tebb5d8EBAuhuUJJ87f96f4aT/1OlNz7GRfgg+WheCUFsfE16cpEFNx5exIUmHx09zd34AaRdACCDp+TVLSlFv1blzgKR2egx5zx/see0pn+djbR4FIVofz4/UeV67G3+vr3niC+H04Oz/nbwA7lqtm+wByfQAAAAASUVORK5CYII=') no-repeat;
- width:21px;
- height:21px;
-}
.geEditor .geBaseButton {
padding:10px;
border-radius:6px;
@@ -1033,149 +1024,6 @@ html body .geBigStandardButton:active {
@media print {
div.geNoPrint { display: none !important; }
}
-.geSprite-actualsize { background-position: 0 0; }
-.geSprite-bold { background-position: 0 -46px; }
-.geSprite-bottom { background-position: 0 -92px; }
-.geSprite-center { background-position: 0 -138px; }
-.geSprite-delete { background-position: 0 -184px; }
-.geSprite-fillcolor { background-position: 0 -229px; }
-.geSprite-fit { background-position: 0 -277px; }
-.geSprite-fontcolor { background-position: 0 -322px; }
-.geSprite-gradientcolor { background-position: 0 -368px; }
-.geSprite-image { background-position: 0 -414px; }
-.geSprite-italic { background-position: 0 -460px; }
-.geSprite-left { background-position: 0 -505px; }
-.geSprite-middle { background-position: 0 -552px; }
-.geSprite-print { background-position: 0 -598px; }
-.geSprite-redo { background-position: 0 -644px; }
-.geSprite-right { background-position: 0 -689px; }
-.geSprite-shadow { background-position: 0 -735px; }
-.geSprite-strokecolor { background-position: 0 -782px; }
-.geSprite-top { background-position: 0 -828px; }
-.geSprite-underline { background-position: 0 -874px; }
-.geSprite-undo { background-position: 0 -920px; }
-.geSprite-zoomin { background-position: 0 -966px; }
-.geSprite-zoomout { background-position: 0 -1012px; }
-.geSprite-arrow { background-position: 0 -1059px; }
-.geSprite-linkedge { background-position: 0 -1105px; }
-.geSprite-straight { background-position: 0 -1150px; }
-.geSprite-entity { background-position: 0 -1196px; }
-.geSprite-orthogonal { background-position: 0 -1242px; }
-.geSprite-curved { background-position: 0 -1288px; }
-.geSprite-noarrow { background-position: 0 -1334px; }
-.geSprite-endclassic { background-position: 0 -1380px; }
-.geSprite-endopen { background-position: 0 -1426px; }
-.geSprite-endblock { background-position: 0 -1472px; }
-.geSprite-endoval { background-position: 0 -1518px; }
-.geSprite-enddiamond { background-position: 0 -1564px; }
-.geSprite-endthindiamond { background-position: 0 -1610px; }
-.geSprite-endclassictrans { background-position: 0 -1656px; }
-.geSprite-endblocktrans { background-position: 0 -1702px; }
-.geSprite-endovaltrans { background-position: 0 -1748px; }
-.geSprite-enddiamondtrans { background-position: 0 -1794px; }
-.geSprite-endthindiamondtrans { background-position: 0 -1840px; }
-.geSprite-startclassic { background-position: 0 -1886px; }
-.geSprite-startopen { background-position: 0 -1932px; }
-.geSprite-startblock { background-position: 0 -1978px; }
-.geSprite-startoval { background-position: 0 -2024px; }
-.geSprite-startdiamond { background-position: 0 -2070px; }
-.geSprite-startthindiamond { background-position: 0 -2116px; }
-.geSprite-startclassictrans { background-position: 0 -2162px; }
-.geSprite-startblocktrans { background-position: 0 -2208px; }
-.geSprite-startovaltrans { background-position: 0 -2254px; }
-.geSprite-startdiamondtrans { background-position: 0 -2300px; }
-.geSprite-startthindiamondtrans { background-position: 0 -2346px; }
-.geSprite-globe { background-position: 0 -2392px; }
-.geSprite-orderedlist { background-position: 0 -2438px; }
-.geSprite-unorderedlist { background-position: 0 -2484px; }
-.geSprite-horizontalrule { background-position: 0 -2530px; }
-.geSprite-link { background-position: 0 -2576px; }
-.geSprite-indent { background-position: 0 -2622px; }
-.geSprite-outdent { background-position: 0 -2668px; }
-.geSprite-code { background-position: 0 -2714px; }
-.geSprite-fontbackground { background-position: 0 -2760px; }
-.geSprite-removeformat { background-position: 0 -2806px; }
-.geSprite-superscript { background-position: 0 -2852px; }
-.geSprite-subscript { background-position: 0 -2898px; }
-.geSprite-table { background-position: 0 -2944px; }
-.geSprite-deletecolumn { background-position: 0 -2990px; }
-.geSprite-deleterow { background-position: 0 -3036px; }
-.geSprite-insertcolumnafter { background-position: 0 -3082px; }
-.geSprite-insertcolumnbefore { background-position: 0 -3128px; }
-.geSprite-insertrowafter { background-position: 0 -3174px; }
-.geSprite-insertrowbefore { background-position: 0 -3220px; }
-.geSprite-grid { background-position: 0 -3272px; }
-.geSprite-guides { background-position: 0 -3324px; }
-.geSprite-dots { background-position: 0 -3370px; }
-.geSprite-alignleft { background-position: 0 -3416px; }
-.geSprite-alignright { background-position: 0 -3462px; }
-.geSprite-aligncenter { background-position: 0 -3508px; }
-.geSprite-aligntop { background-position: 0 -3554px; }
-.geSprite-alignbottom { background-position: 0 -3600px; }
-.geSprite-alignmiddle { background-position: 0 -3646px; }
-.geSprite-justifyfull { background-position: 0 -3692px; }
-.geSprite-formatpanel { background-position: 0 -3738px; }
-.geSprite-connection { background-position: 0 -3784px; }
-.geSprite-vertical { background-position: 0 -3830px; }
-.geSprite-simplearrow { background-position: 0 -3876px; }
-.geSprite-plus { background-position: 0 -3922px; }
-.geSprite-rounded { background-position: 0 -3968px; }
-.geSprite-toback { background-position: 0 -4014px; }
-.geSprite-tofront { background-position: 0 -4060px; }
-.geSprite-duplicate { background-position: 0 -4106px; }
-.geSprite-insert { background-position: 0 -4152px; }
-.geSprite-endblockthin { background-position: 0 -4201px; }
-.geSprite-endblockthintrans { background-position: 0 -4247px; }
-.geSprite-enderone { background-position: 0 -4293px; }
-.geSprite-enderonetoone { background-position: 0 -4339px; }
-.geSprite-enderonetomany { background-position: 0 -4385px; }
-.geSprite-endermany { background-position: 0 -4431px; }
-.geSprite-enderoneopt { background-position: 0 -4477px; }
-.geSprite-endermanyopt { background-position: 0 -4523px; }
-.geSprite-endclassicthin { background-position: 0 -4938px; }
-.geSprite-endclassicthintrans { background-position: 0 -4984px; }
-.geSprite-enddash { background-position: 0 -5029px; }
-.geSprite-endcircleplus { background-position: 0 -5075px; }
-.geSprite-endcircle { background-position: 0 -5121px; }
-.geSprite-endasync { background-position: 0 -5167px; }
-.geSprite-endasynctrans { background-position: 0 -5213px; }
-.geSprite-startblockthin { background-position: 0 -4569px; }
-.geSprite-startblockthintrans { background-position: 0 -4615px; }
-.geSprite-starterone { background-position: 0 -4661px; }
-.geSprite-starteronetoone { background-position: 0 -4707px; }
-.geSprite-starteronetomany { background-position: 0 -4753px; }
-.geSprite-startermany { background-position: 0 -4799px; }
-.geSprite-starteroneopt { background-position: 0 -4845px; }
-.geSprite-startermanyopt { background-position: 0 -4891px; }
-.geSprite-startclassicthin { background-position: 0 -5259px; }
-.geSprite-startclassicthintrans { background-position: 0 -5305px; }
-.geSprite-startdash { background-position: 0 -5351px; }
-.geSprite-startcircleplus { background-position: 0 -5397px; }
-.geSprite-startcircle { background-position: 0 -5443px; }
-.geSprite-startasync { background-position: 0 -5489px; }
-.geSprite-startasynctrans { background-position: 0 -5535px; }
-.geSprite-startcross { background-position: 0 -5581px; }
-.geSprite-startopenthin { background-position: 0 -5627px; }
-.geSprite-startopenasync { background-position: 0 -5673px; }
-.geSprite-endcross { background-position: 0 -5719px; }
-.geSprite-endopenthin { background-position: 0 -5765px; }
-.geSprite-endopenasync { background-position: 0 -5811px; }
-.geSprite-verticalelbow { background-position: 0 -5857px; }
-.geSprite-horizontalelbow { background-position: 0 -5903px; }
-.geSprite-horizontalisometric { background-position: 0 -5949px; }
-.geSprite-verticalisometric { background-position: 0 -5995px; }
-.geSvgSprite {
- background-position: center center;
-}
-.geFlipSprite {
- transform:scaleX(-1);
-}
-.geSprite-box {
- background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='10' transform='translate(0.5,0.5)'><rect stroke='black' fill='none' x='2' y='2' width='6' height='6'/><path stroke='black' d='M8 5 L 18 5'/></svg>");
-}
-.geSprite-halfCircle {
- background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='10' transform='translate(0.5,0.5)'><path stroke='black' fill='none' d='M 2 2 Q 6 2 6 5 Q 6 8 2 8 M 6 5 L 18 5'/></svg>");
-}
html div.mxRubberband {
border-color:#0000DD;
background:#99ccff;
@@ -1229,7 +1077,6 @@ td.mxPopupMenuIcon .geIcon {
border:1px solid transparent;
opacity:0.5;
}
-
table.mxPopupMenu tr {
font-size:4pt;
}
@@ -1239,7 +1086,6 @@ table.mxPopupMenu hr {
border:none;
height:1px;
}
-
html td.mxWindowTitle {
color:light-dark(var(--text-color), var(--dark-text-color));
background-image:none;
diff --git a/src/main/webapp/styles/high-contrast.css b/src/main/webapp/styles/high-contrast.css
index 8458e4afc..465098487 100644
--- a/src/main/webapp/styles/high-contrast.css
+++ b/src/main/webapp/styles/high-contrast.css
@@ -11,9 +11,15 @@
font-size:14px !important;
line-height:14px !important;
}
+.geSidebarContainer .geTitle:hover {
+ background-color: light-dark(#c0c0c0, #414141) !important;
+}
.geEditor div.mxTooltip {
font-size: 12px;
}
+.geAdaptiveAsset, .geColorBtn > div:has(.geAdaptiveAsset) {
+ opacity: 1 !important;
+}
.geHint {
font-size:11pt;
}
@@ -27,14 +33,20 @@ html > body.geDarkMode > div > div.geToolbarContainer.geSimpleMainMenu,
border-color: #ffffff !important;
color: #ffffff !important;
}
-*:not(svg *, .mxCellEditor, .mxCellEditor *, .geButton, .geLabel, img, .geIcon,
-.geSpinnerStatus, .geInverseToolbarButton input), div.mxWindow, .geToolbarContainer,
-.geActiveItem, .geBtn, .geToolbarButton:not(.geInverseToolbarButton), .geEditor select,
-.geSidebarTooltip, html body .geDialog button.gePrimaryBtn:not(.geDarkMode *), .geTitle,
-html body button.gePrimaryBtn, .geEditor button, *::-webkit-scrollbar-thumb {
+*:not(svg *, .mxCellEditor, .mxCellEditor *, .geButton, .geLabel, img, .geIcon, .geSpinnerStatus,
+.geInverseToolbarButton input, .geMinimal.geDarkMode .geMenubarContainer .geMenuItem .geMenuItem,
+.geToolbarButton.geInverseToolbarButton), div.mxWindow, .geToolbarContainer, .geActiveItem, .geBtn,
+.geToolbarButton:not(.geInverseToolbarButton), .geEditor select, .geSidebarTooltip, html body .geDialog
+button.gePrimaryBtn:not(.geDarkMode *), .geTitle, html body button.gePrimaryBtn, .geEditor button,
+*::-webkit-scrollbar-thumb {
border-color: light-dark(#000000, #FFFFFF) !important;
color: light-dark(#000000, #FFFFFF) !important;
}
+.geSketch .geToolbarContainer {
+ box-shadow: none !important;
+ border-width:1px;
+ border-style:solid;
+};
.geDarkMode .geInverseToolbarButton {
border-color: #000000 !important;
color: #000000 !important;